@bygd/gd-sdk-pes 1.37.12 → 1.38.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,o,a,i){try{var s=e[a](i),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function t(t){return function(){var r=this,n=arguments;return new Promise((function(o,a){var i=t.apply(r,n);function s(t){e(i,o,a,s,u,"next",t)}function u(t){e(i,o,a,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 o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i(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={},o=Object.prototype,a=o.hasOwnProperty,i=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 o=t&&t.prototype instanceof m?t:m,a=Object.create(o.prototype),s=new D(n||[]);return i(a,"_invoke",{value:k(e,r,s)}),a}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 b={};l(b,u,(function(){return this}));var _=Object.getPrototypeOf,y=_&&_(_(T([])));y&&y!==o&&a.call(y,u)&&(b=y);var w=g.prototype=m.prototype=Object.create(b);function A(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,r){function n(o,i,s,u){var c=p(e[o],e,i);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 o;i(this,"_invoke",{value:function(e,t){function a(){return new r((function(r,o){n(e,t,r,o)}))}return o=o?o.then(a,a):a()}})}function k(e,t,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return O()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var s=E(i,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 o=p(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,h;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=void 0),t.delegate=null,h):a:(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 R(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function T(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(a.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:O}}function O(){return{value:void 0,done:!0}}return v.prototype=g,i(w,"constructor",{value:g,configurable:!0}),i(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(w),e},n.awrap=function(e){return{__await:e}},A(x.prototype),l(x.prototype,c,(function(){return this})),n.AsyncIterator=x,n.async=function(e,t,r,o,a){void 0===a&&(a=Promise);var i=new x(f(e,t,r,o),a);return n.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},A(w),l(w,d,"Generator"),l(w,u,(function(){return this})),l(w,"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=T,D.prototype={constructor:D,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(R),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,n){return i.type="throw",i.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 o=this.tryEntries[n],i=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=a.call(o,"catchLoc"),u=a.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new 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 o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),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),R(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 o=n.arg;R(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:T(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,o=[];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;o.push(n+"="+r)}return o.length?t+o.join("&"):""},l.parse=function(e){for(var t,r=/([^=?#&]+)=?([^&]*)/g,n={};t=r.exec(e);){var o=p(t[1]),a=p(t[2]);null===o||null===a||o in n||(n[o]=a)}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]+/,b=/[\n\r\t]/g,_=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,y=/:\d+$/,w=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,A=/^[a-zA-Z]:/;function x(e){return(e||"").toString().replace(g,"")}var k=[["#","hash"],["?","query"],function(e,t){return R(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!==o?o:"undefined"!=typeof self?self:{}).location||{},n={},a=typeof(e=e||r);if("blob:"===e.protocol)n=new T(unescape(e.pathname),{});else if("string"===a)for(t in n=new T(e,{}),E)delete n[t];else if("object"===a){for(t in e)t in E||(n[t]=e[t]);void 0===n.slashes&&(n.slashes=_.test(e.href))}return n}function R(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function D(e,t){e=(e=x(e)).replace(b,""),t=t||{};var r,n=w.exec(e),o=n[1]?n[1].toLowerCase():"",a=!!n[2],i=!!n[3],s=0;return a?i?(r=n[2]+n[3]+n[4],s=n[2].length+n[3].length):(r=n[2]+n[4],s=n[2].length):i?(r=n[3]+n[4],s=n[3].length):r=n[4],"file:"===o?s>=2&&(r=r.slice(2)):R(o)?r=n[4]:o?a&&(r=r.slice(2)):s>=2&&R(t.protocol)&&(r=n[4]),{protocol:o,slashes:a||R(o),slashesCount:s,rest:r}}function T(e,t,r){if(e=(e=x(e)).replace(b,""),!(this instanceof T))return new T(e,t,r);var n,o,a,i,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=!(o=D(e||"",t=S(t))).protocol&&!o.slashes,l.slashes=o.slashes||n&&t.slashes,l.protocol=o.protocol||t.protocol||"",e=o.rest,("file:"===o.protocol&&(2!==o.slashesCount||A.test(e))||!o.slashes&&(o.protocol||o.slashesCount<2||!R(l.protocol)))&&(c[3]=[/(.*)/,"pathname"]);f<c.length;f++)"function"!=typeof(i=c[f])?(a=i[0],u=i[1],a!=a?l[u]=e:"string"==typeof a?~(s="@"===a?e.lastIndexOf(a):e.indexOf(a))&&("number"==typeof i[2]?(l[u]=e.slice(0,s),e=e.slice(s+i[2])):(l[u]=e.slice(s),e=e.slice(0,s))):(s=a.exec(e))&&(l[u]=s[1],e=e.slice(0,s.index)),l[u]=l[u]||n&&i[3]&&t[u]||"",i[4]&&(l[u]=l[u].toLowerCase())):e=i(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,o=r[n-1],a=!1,i=0;n--;)"."===r[n]?r.splice(n,1):".."===r[n]?(r.splice(n,1),i++):i&&(0===n&&(a=!0),r.splice(n,1),i--);return a&&r.unshift(""),"."!==o&&".."!==o||r.push(""),r.join("/")}(l.pathname,t.pathname)),"/"!==l.pathname.charAt(0)&&R(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&&R(l.protocol)&&l.host?l.protocol+"//"+l.host:"null",l.href=l.toString()}T.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 o="pathname"===e?"/":"#";n[e]=t.charAt(0)!==o?o+t:t}else n[e]=t;break;case"username":case"password":n[e]=encodeURIComponent(t);break;case"auth":var a=t.indexOf(":");~a?(n.username=t.slice(0,a),n.username=encodeURIComponent(decodeURIComponent(n.username)),n.password=t.slice(a+1),n.password=encodeURIComponent(decodeURIComponent(n.password))):n.username=encodeURIComponent(decodeURIComponent(t))}for(var i=0;i<k.length;i++){var s=k[i];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&&R(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,o=r.protocol;o&&":"!==o.charAt(o.length-1)&&(o+=":");var a=o+(r.protocol&&r.slashes||R(r.protocol)?"//":"");return r.username?(a+=r.username,r.password&&(a+=":"+r.password),a+="@"):r.password?(a+=":"+r.password,a+="@"):"file:"!==r.protocol&&R(r.protocol)&&!n&&"/"!==r.pathname&&(a+="@"),(":"===n[n.length-1]||y.test(r.hostname)&&!r.port)&&(n+=":"),a+=n+r.pathname,(t="object"==typeof r.query?e(r.query):r.query)&&(a+="?"!==t.charAt(0)?"?"+t:t),r.hash&&(a+=r.hash),a}},T.extractProtocol=D,T.location=S,T.trimLeft=x,T.qs=v;var O=T;function I(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==n(o))return o;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,C(n.key),n)}}function L(e,t,r){return t&&P(e.prototype,t),r&&P(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var M={exports:{}};!function(e,t){var r="__lodash_hash_undefined__",n=9007199254740991,a="[object Arguments]",i="[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]",b="[object WeakMap]",_="[object ArrayBuffer]",y="[object DataView]",w="[object Float32Array]",A="[object Float64Array]",x="[object Int8Array]",k="[object Int16Array]",E="[object Int32Array]",S="[object Uint8Array]",R="[object Uint8ClampedArray]",D="[object Uint16Array]",T="[object Uint32Array]",O=/\w*$/,I=/^\[object .+?Constructor\]$/,C=/^(?:0|[1-9]\d*)$/,P={};P[a]=P["[object Array]"]=P[_]=P[y]=P[i]=P[s]=P[w]=P[A]=P[x]=P[k]=P[E]=P[d]=P[l]=P[f]=P[h]=P[m]=P[v]=P[g]=P[S]=P[R]=P[D]=P[T]=!0,P["[object Error]"]=P[u]=P[b]=!1;var L="object"==typeof o&&o&&o.Object===Object&&o,M="object"==typeof self&&self&&self.Object===Object&&self,j=L||M||Function("return this")(),U=t&&!t.nodeType&&t,$=U&&e&&!e.nodeType&&e,B=$&&$.exports===U;function N(e,t){return e.set(t[0],t[1]),e}function F(e,t){return e.add(t),e}function G(e,t,r,n){var o=-1,a=e?e.length:0;for(n&&a&&(r=e[++o]);++o<a;)r=t(r,e[o],o,e);return r}function z(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function H(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,W=Function.prototype,V=Object.prototype,Y=j["__core-js_shared__"],J=function(){var e=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Q=W.toString,X=V.hasOwnProperty,ee=V.toString,te=RegExp("^"+Q.call(X).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),re=B?j.Buffer:void 0,ne=j.Symbol,oe=j.Uint8Array,ae=Z(Object.getPrototypeOf,Object),ie=Object.create,se=V.propertyIsEnumerable,ue=q.splice,ce=Object.getOwnPropertySymbols,de=re?re.isBuffer:void 0,le=Z(Object.keys,Object),fe=Ue(j,"DataView"),pe=Ue(j,"Map"),he=Ue(j,"Promise"),me=Ue(j,"Set"),ve=Ue(j,"WeakMap"),ge=Ue(Object,"create"),be=Ge(fe),_e=Ge(pe),ye=Ge(he),we=Ge(me),Ae=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 Re(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){this.__data__=new Se(e)}function Te(e,t){var r=He(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)==a)}(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,o=!!n;for(var i in e)!t&&!X.call(e,i)||o&&("length"==i||Ne(i,n))||r.push(i);return r}function Oe(e,t,r){var n=e[t];X.call(e,t)&&ze(n,r)&&(void 0!==r||t in e)||(e[t]=r)}function Ie(e,t){for(var r=e.length;r--;)if(ze(e[r][0],t))return r;return-1}function Ce(e,t,r,n,o,p,b){var I;if(n&&(I=p?n(e,o,p,b):n(e)),void 0!==I)return I;if(!We(e))return e;var C=He(e);if(C){if(I=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,I)}else{var L=Be(e),M=L==u||L==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(L==f||L==a||M&&!p){if(z(e))return p?e:{};if(I=function(e){return"function"!=typeof e.constructor||Fe(e)?{}:(t=ae(e),We(t)?ie(t):{});var t}(M?{}:e),!t)return function(e,t){return Me(e,$e(e),t)}(e,function(e,t){return e&&Me(t,Ve(t),e)}(I,e))}else{if(!P[L])return p?e:{};I=function(e,t,r,n){var o=e.constructor;switch(t){case _:return Le(e);case i:case s:return new o(+e);case y:return function(e,t){var r=t?Le(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,n);case w:case A:case x:case k:case E:case S:case R:case D:case T:return function(e,t){var r=t?Le(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(H(e),!0):H(e);return G(n,N,new e.constructor)}(e,n,r);case l:case v:return new o(e);case h:return function(e){var t=new e.constructor(e.source,O.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,F,new e.constructor)}(e,n,r);case g:return a=e,ke?Object(ke.call(a)):{}}var a}(e,L,Ce,t)}}b||(b=new De);var j=b.get(e);if(j)return j;if(b.set(e,I),!C)var U=r?function(e){return function(e,t,r){var n=t(e);return He(e)?n:function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}(n,r(e))}(e,Ve,$e)}(e):Ve(e);return function(e,t){for(var r=-1,n=e?e.length:0;++r<n&&!1!==t(e[r],r,e););}(U||e,(function(o,a){U&&(o=e[a=o]),Oe(I,a,Ce(o,t,r,n,a,e,b))})),I}function Pe(e){return!(!We(e)||(t=e,J&&J in t))&&(qe(e)||z(e)?te:I).test(Ge(e));var t}function Le(e){var t=new e.constructor(e.byteLength);return new oe(t).set(new oe(e)),t}function Me(e,t,r,n){r||(r={});for(var o=-1,a=t.length;++o<a;){var i=t[o],s=n?n(r[i],e[i],i,r,e):void 0;Oe(r,i,void 0===s?e[i]:s)}return r}function je(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function Ue(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=Ie(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=Ie(t,e);return r<0?void 0:t[r][1]},Se.prototype.has=function(e){return Ie(this.__data__,e)>-1},Se.prototype.set=function(e,t){var r=this.__data__,n=Ie(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},Re.prototype.clear=function(){this.__data__={hash:new Ee,map:new(pe||Se),string:new Ee}},Re.prototype.delete=function(e){return je(this,e).delete(e)},Re.prototype.get=function(e){return je(this,e).get(e)},Re.prototype.has=function(e){return je(this,e).has(e)},Re.prototype.set=function(e,t){return je(this,e).set(e,t),this},De.prototype.clear=function(){this.__data__=new Se},De.prototype.delete=function(e){return this.__data__.delete(e)},De.prototype.get=function(e){return this.__data__.get(e)},De.prototype.has=function(e){return this.__data__.has(e)},De.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 Re(n)}return r.set(e,t),this};var $e=ce?Z(ce,Object):function(){return[]},Be=function(e){return ee.call(e)};function Ne(e,t){return!!(t=null==t?n:t)&&("number"==typeof e||C.test(e))&&e>-1&&e%1==0&&e<t}function Fe(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||V)}function Ge(e){if(null!=e){try{return Q.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function ze(e,t){return e===t||e!=e&&t!=t}(fe&&Be(new fe(new ArrayBuffer(1)))!=y||pe&&Be(new pe)!=d||he&&Be(he.resolve())!=p||me&&Be(new me)!=m||ve&&Be(new ve)!=b)&&(Be=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 be:return y;case _e:return d;case ye:return p;case we:return m;case Ae:return b}return t});var He=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=We(e)?ee.call(e):"";return t==u||t==c}function We(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ve(e){return Ze(e)?Te(e):function(e){if(!Fe(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 Ce(e,!0,!0)}}(M,M.exports);var j=M.exports;
|
|
1
|
+
!function(){"use strict";function e(e,t,r,n,o,a,i){try{var s=e[a](i),u=s.value}catch(e){return void r(e)}s.done?t(u):Promise.resolve(u).then(n,o)}function t(t){return function(){var r=this,n=arguments;return new Promise((function(o,a){var i=t.apply(r,n);function s(t){e(i,o,a,s,u,"next",t)}function u(t){e(i,o,a,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 o="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function a(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i(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 o},e.exports.__esModule=!0,e.exports.default=e.exports;var n,o={},a=Object.prototype,i=a.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 o=t&&t.prototype instanceof _?t:_,a=Object.create(o.prototype),i=new P(n||[]);return s(a,"_invoke",{value:T(e,r,i)}),a}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}o.wrap=p;var m="suspendedStart",v="suspendedYield",g="executing",b="completed",y={};function _(){}function w(){}function A(){}var x={};f(x,c,(function(){return this}));var k=Object.getPrototypeOf,E=k&&k(k(L([])));E&&E!==a&&i.call(E,c)&&(x=E);var S=A.prototype=_.prototype=Object.create(x);function R(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function D(e,r){function n(o,a,s,u){var c=h(e[o],e,a);if("throw"!==c.type){var d=c.arg,l=d.value;return l&&"object"==t(l)&&i.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 o;s(this,"_invoke",{value:function(e,t){function a(){return new r((function(r,o){n(e,t,r,o)}))}return o=o?o.then(a,a):a()}})}function T(e,t,r){var o=m;return function(a,i){if(o===g)throw new Error("Generator is already running");if(o===b){if("throw"===a)throw i;return{value:n,done:!0}}for(r.method=a,r.arg=i;;){var s=r.delegate;if(s){var u=O(s,r);if(u){if(u===y)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===m)throw o=b,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=g;var c=h(e,t,r);if("normal"===c.type){if(o=r.done?b:v,c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=b,r.method="throw",r.arg=c.arg)}}}function O(e,t){var r=t.method,o=e.iterator[r];if(o===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=n,O(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var a=h(o,e.iterator,t.arg);if("throw"===a.type)return t.method="throw",t.arg=a.arg,t.delegate=null,y;var i=a.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,y):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,y)}function I(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 C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function L(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 o=-1,a=function t(){for(;++o<e.length;)if(i.call(e,o))return t.value=e[o],t.done=!1,t;return t.value=n,t.done=!0,t};return a.next=a}}throw new TypeError(t(e)+" is not iterable")}return w.prototype=A,s(S,"constructor",{value:A,configurable:!0}),s(A,"constructor",{value:w,configurable:!0}),w.displayName=f(A,l,"GeneratorFunction"),o.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},o.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,A):(e.__proto__=A,f(e,l,"GeneratorFunction")),e.prototype=Object.create(S),e},o.awrap=function(e){return{__await:e}},R(D.prototype),f(D.prototype,d,(function(){return this})),o.AsyncIterator=D,o.async=function(e,t,r,n,a){void 0===a&&(a=Promise);var i=new D(p(e,t,r,n),a);return o.isGeneratorFunction(t)?i:i.next().then((function(e){return e.done?e.value:i.next()}))},R(S),f(S,l,"Generator"),f(S,c,(function(){return this})),f(S,"toString",(function(){return"[object Generator]"})),o.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}},o.values=L,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(C),!e)for(var t in this)"t"===t.charAt(0)&&i.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,o){return s.type="throw",s.arg=e,t.next=r,o&&(t.method="next",t.arg=n),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=i.call(a,"catchLoc"),c=i.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.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&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,y):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),y},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),C(r),y}},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 o=n.arg;C(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:L(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),y}},o}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,o=[];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;o.push(n+"="+r)}return o.length?t+o.join("&"):""},l.parse=function(e){for(var t,r=/([^=?#&]+)=?([^&]*)/g,n={};t=r.exec(e);){var o=p(t[1]),a=p(t[2]);null===o||null===a||o in n||(n[o]=a)}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]+/,b=/[\n\r\t]/g,y=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,_=/:\d+$/,w=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,A=/^[a-zA-Z]:/;function x(e){return(e||"").toString().replace(g,"")}var k=[["#","hash"],["?","query"],function(e,t){return R(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!==o?o:"undefined"!=typeof self?self:{}).location||{},n={},a=typeof(e=e||r);if("blob:"===e.protocol)n=new T(unescape(e.pathname),{});else if("string"===a)for(t in n=new T(e,{}),E)delete n[t];else if("object"===a){for(t in e)t in E||(n[t]=e[t]);void 0===n.slashes&&(n.slashes=y.test(e.href))}return n}function R(e){return"file:"===e||"ftp:"===e||"http:"===e||"https:"===e||"ws:"===e||"wss:"===e}function D(e,t){e=(e=x(e)).replace(b,""),t=t||{};var r,n=w.exec(e),o=n[1]?n[1].toLowerCase():"",a=!!n[2],i=!!n[3],s=0;return a?i?(r=n[2]+n[3]+n[4],s=n[2].length+n[3].length):(r=n[2]+n[4],s=n[2].length):i?(r=n[3]+n[4],s=n[3].length):r=n[4],"file:"===o?s>=2&&(r=r.slice(2)):R(o)?r=n[4]:o?a&&(r=r.slice(2)):s>=2&&R(t.protocol)&&(r=n[4]),{protocol:o,slashes:a||R(o),slashesCount:s,rest:r}}function T(e,t,r){if(e=(e=x(e)).replace(b,""),!(this instanceof T))return new T(e,t,r);var n,o,a,i,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=!(o=D(e||"",t=S(t))).protocol&&!o.slashes,l.slashes=o.slashes||n&&t.slashes,l.protocol=o.protocol||t.protocol||"",e=o.rest,("file:"===o.protocol&&(2!==o.slashesCount||A.test(e))||!o.slashes&&(o.protocol||o.slashesCount<2||!R(l.protocol)))&&(c[3]=[/(.*)/,"pathname"]);f<c.length;f++)"function"!=typeof(i=c[f])?(a=i[0],u=i[1],a!=a?l[u]=e:"string"==typeof a?~(s="@"===a?e.lastIndexOf(a):e.indexOf(a))&&("number"==typeof i[2]?(l[u]=e.slice(0,s),e=e.slice(s+i[2])):(l[u]=e.slice(s),e=e.slice(0,s))):(s=a.exec(e))&&(l[u]=s[1],e=e.slice(0,s.index)),l[u]=l[u]||n&&i[3]&&t[u]||"",i[4]&&(l[u]=l[u].toLowerCase())):e=i(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,o=r[n-1],a=!1,i=0;n--;)"."===r[n]?r.splice(n,1):".."===r[n]?(r.splice(n,1),i++):i&&(0===n&&(a=!0),r.splice(n,1),i--);return a&&r.unshift(""),"."!==o&&".."!==o||r.push(""),r.join("/")}(l.pathname,t.pathname)),"/"!==l.pathname.charAt(0)&&R(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&&R(l.protocol)&&l.host?l.protocol+"//"+l.host:"null",l.href=l.toString()}T.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,_.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 o="pathname"===e?"/":"#";n[e]=t.charAt(0)!==o?o+t:t}else n[e]=t;break;case"username":case"password":n[e]=encodeURIComponent(t);break;case"auth":var a=t.indexOf(":");~a?(n.username=t.slice(0,a),n.username=encodeURIComponent(decodeURIComponent(n.username)),n.password=t.slice(a+1),n.password=encodeURIComponent(decodeURIComponent(n.password))):n.username=encodeURIComponent(decodeURIComponent(t))}for(var i=0;i<k.length;i++){var s=k[i];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&&R(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,o=r.protocol;o&&":"!==o.charAt(o.length-1)&&(o+=":");var a=o+(r.protocol&&r.slashes||R(r.protocol)?"//":"");return r.username?(a+=r.username,r.password&&(a+=":"+r.password),a+="@"):r.password?(a+=":"+r.password,a+="@"):"file:"!==r.protocol&&R(r.protocol)&&!n&&"/"!==r.pathname&&(a+="@"),(":"===n[n.length-1]||_.test(r.hostname)&&!r.port)&&(n+=":"),a+=n+r.pathname,(t="object"==typeof r.query?e(r.query):r.query)&&(a+="?"!==t.charAt(0)?"?"+t:t),r.hash&&(a+=r.hash),a}},T.extractProtocol=D,T.location=S,T.trimLeft=x,T.qs=v;var O=T;function I(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(e){var t=function(e,t){if("object"!==n(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==n(o))return o;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,C(n.key),n)}}function L(e,t,r){return t&&P(e.prototype,t),r&&P(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}var M={exports:{}};!function(e,t){var r="__lodash_hash_undefined__",n=9007199254740991,a="[object Arguments]",i="[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]",b="[object WeakMap]",y="[object ArrayBuffer]",_="[object DataView]",w="[object Float32Array]",A="[object Float64Array]",x="[object Int8Array]",k="[object Int16Array]",E="[object Int32Array]",S="[object Uint8Array]",R="[object Uint8ClampedArray]",D="[object Uint16Array]",T="[object Uint32Array]",O=/\w*$/,I=/^\[object .+?Constructor\]$/,C=/^(?:0|[1-9]\d*)$/,P={};P[a]=P["[object Array]"]=P[y]=P[_]=P[i]=P[s]=P[w]=P[A]=P[x]=P[k]=P[E]=P[d]=P[l]=P[f]=P[h]=P[m]=P[v]=P[g]=P[S]=P[R]=P[D]=P[T]=!0,P["[object Error]"]=P[u]=P[b]=!1;var L="object"==typeof o&&o&&o.Object===Object&&o,M="object"==typeof self&&self&&self.Object===Object&&self,j=L||M||Function("return this")(),$=t&&!t.nodeType&&t,U=$&&e&&!e.nodeType&&e,B=U&&U.exports===$;function N(e,t){return e.set(t[0],t[1]),e}function F(e,t){return e.add(t),e}function G(e,t,r,n){var o=-1,a=e?e.length:0;for(n&&a&&(r=e[++o]);++o<a;)r=t(r,e[o],o,e);return r}function z(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function H(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,W=Function.prototype,V=Object.prototype,Y=j["__core-js_shared__"],J=function(){var e=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Q=W.toString,X=V.hasOwnProperty,ee=V.toString,te=RegExp("^"+Q.call(X).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),re=B?j.Buffer:void 0,ne=j.Symbol,oe=j.Uint8Array,ae=Z(Object.getPrototypeOf,Object),ie=Object.create,se=V.propertyIsEnumerable,ue=q.splice,ce=Object.getOwnPropertySymbols,de=re?re.isBuffer:void 0,le=Z(Object.keys,Object),fe=$e(j,"DataView"),pe=$e(j,"Map"),he=$e(j,"Promise"),me=$e(j,"Set"),ve=$e(j,"WeakMap"),ge=$e(Object,"create"),be=Ge(fe),ye=Ge(pe),_e=Ge(he),we=Ge(me),Ae=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 Re(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){this.__data__=new Se(e)}function Te(e,t){var r=He(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)==a)}(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,o=!!n;for(var i in e)!t&&!X.call(e,i)||o&&("length"==i||Ne(i,n))||r.push(i);return r}function Oe(e,t,r){var n=e[t];X.call(e,t)&&ze(n,r)&&(void 0!==r||t in e)||(e[t]=r)}function Ie(e,t){for(var r=e.length;r--;)if(ze(e[r][0],t))return r;return-1}function Ce(e,t,r,n,o,p,b){var I;if(n&&(I=p?n(e,o,p,b):n(e)),void 0!==I)return I;if(!We(e))return e;var C=He(e);if(C){if(I=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,I)}else{var L=Be(e),M=L==u||L==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(L==f||L==a||M&&!p){if(z(e))return p?e:{};if(I=function(e){return"function"!=typeof e.constructor||Fe(e)?{}:(t=ae(e),We(t)?ie(t):{});var t}(M?{}:e),!t)return function(e,t){return Me(e,Ue(e),t)}(e,function(e,t){return e&&Me(t,Ve(t),e)}(I,e))}else{if(!P[L])return p?e:{};I=function(e,t,r,n){var o=e.constructor;switch(t){case y:return Le(e);case i:case s:return new o(+e);case _:return function(e,t){var r=t?Le(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,n);case w:case A:case x:case k:case E:case S:case R:case D:case T:return function(e,t){var r=t?Le(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(H(e),!0):H(e);return G(n,N,new e.constructor)}(e,n,r);case l:case v:return new o(e);case h:return function(e){var t=new e.constructor(e.source,O.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,F,new e.constructor)}(e,n,r);case g:return a=e,ke?Object(ke.call(a)):{}}var a}(e,L,Ce,t)}}b||(b=new De);var j=b.get(e);if(j)return j;if(b.set(e,I),!C)var $=r?function(e){return function(e,t,r){var n=t(e);return He(e)?n:function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}(n,r(e))}(e,Ve,Ue)}(e):Ve(e);return function(e,t){for(var r=-1,n=e?e.length:0;++r<n&&!1!==t(e[r],r,e););}($||e,(function(o,a){$&&(o=e[a=o]),Oe(I,a,Ce(o,t,r,n,a,e,b))})),I}function Pe(e){return!(!We(e)||(t=e,J&&J in t))&&(qe(e)||z(e)?te:I).test(Ge(e));var t}function Le(e){var t=new e.constructor(e.byteLength);return new oe(t).set(new oe(e)),t}function Me(e,t,r,n){r||(r={});for(var o=-1,a=t.length;++o<a;){var i=t[o],s=n?n(r[i],e[i],i,r,e):void 0;Oe(r,i,void 0===s?e[i]:s)}return r}function je(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function $e(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=Ie(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=Ie(t,e);return r<0?void 0:t[r][1]},Se.prototype.has=function(e){return Ie(this.__data__,e)>-1},Se.prototype.set=function(e,t){var r=this.__data__,n=Ie(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},Re.prototype.clear=function(){this.__data__={hash:new Ee,map:new(pe||Se),string:new Ee}},Re.prototype.delete=function(e){return je(this,e).delete(e)},Re.prototype.get=function(e){return je(this,e).get(e)},Re.prototype.has=function(e){return je(this,e).has(e)},Re.prototype.set=function(e,t){return je(this,e).set(e,t),this},De.prototype.clear=function(){this.__data__=new Se},De.prototype.delete=function(e){return this.__data__.delete(e)},De.prototype.get=function(e){return this.__data__.get(e)},De.prototype.has=function(e){return this.__data__.has(e)},De.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 Re(n)}return r.set(e,t),this};var Ue=ce?Z(ce,Object):function(){return[]},Be=function(e){return ee.call(e)};function Ne(e,t){return!!(t=null==t?n:t)&&("number"==typeof e||C.test(e))&&e>-1&&e%1==0&&e<t}function Fe(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||V)}function Ge(e){if(null!=e){try{return Q.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function ze(e,t){return e===t||e!=e&&t!=t}(fe&&Be(new fe(new ArrayBuffer(1)))!=_||pe&&Be(new pe)!=d||he&&Be(he.resolve())!=p||me&&Be(new me)!=m||ve&&Be(new ve)!=b)&&(Be=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 be:return _;case ye:return d;case _e:return p;case we:return m;case Ae:return b}return t});var He=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=We(e)?ee.call(e):"";return t==u||t==c}function We(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Ve(e){return Ze(e)?Te(e):function(e){if(!Fe(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 Ce(e,!0,!0)}}(M,M.exports);var j=M.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 U(e){return"[object Object]"===Object.prototype.toString.call(e)}function $(e){var t,r;return!1!==U(e)&&(void 0===(t=e.constructor)||!1!==U(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}var B=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 o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0},N=String.prototype.valueOf,F=Object.prototype.toString,G=B()&&!!Symbol.toStringTag,z=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]"===F.call(e))},H=Array.isArray,Z=Object.prototype.toString,K=H||function(e){return!!e&&"[object Array]"==Z.call(e)},q=function(e){if(!e)return!1;var t=W.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)},W=Object.prototype.toString;var V="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==V&&V,Y={searchParams:"URLSearchParams"in V,iterable:"Symbol"in V&&"iterator"in Symbol,blob:"FileReader"in V&&"Blob"in V&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in V,arrayBuffer:"ArrayBuffer"in V};if(Y.arrayBuffer)var J=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Q=ArrayBuffer.isView||function(e){return e&&J.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 oe(e){return new Promise((function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}}))}function ae(e){var t=new FileReader,r=oe(t);return t.readAsArrayBuffer(e),r}function ie(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=ie(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Y.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||Q(e))?this._bodyArrayBuffer=ie(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(ae)}),this.text=function(){var e=ne(this);if(e)return e;if(this._bodyBlob)return function(e){var t=new FileReader,r=oe(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," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}})),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=V.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 o=new ce(e,t);if(o.signal&&o.signal.aborted)return n(new pe("Aborted","AbortError"));var a=new XMLHttpRequest;function i(){a.abort()}a.onload=function(){var e,t,n={status:a.status,statusText:a.statusText,headers:(e=a.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 o=r.join(":").trim();t.append(n,o)}})),t)};n.url="responseURL"in a?a.responseURL:n.headers.get("X-Request-URL");var o="response"in a?a.response:a.responseText;setTimeout((function(){r(new le(o,n))}),0)},a.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},a.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},a.onabort=function(){setTimeout((function(){n(new pe("Aborted","AbortError"))}),0)},a.open(o.method,function(e){try{return""===e&&V.location.href?V.location.href:e}catch(t){return e}}(o.url),!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&(Y.blob?a.responseType="blob":Y.arrayBuffer&&o.headers.get("Content-Type")&&-1!==o.headers.get("Content-Type").indexOf("application/octet-stream")&&(a.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof re?o.headers.forEach((function(e,t){a.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){a.setRequestHeader(e,ee(t.headers[e]))})),o.signal&&(o.signal.addEventListener("abort",i),a.onreadystatechange=function(){4===a.readyState&&o.signal.removeEventListener("abort",i)}),a.send(void 0===o._bodyInit?null:o._bodyInit)}))}he.polyfill=!0,V.fetch||(V.fetch=he,V.Headers=re,V.Request=ce,V.Response=le);var me,ve,ge={exports:{}};me=ge,ve=ge.exports,function(e,t){var r="function",n="undefined",o="object",a="string",i="major",s="model",u="name",c="type",d="vendor",l="version",f="architecture",p="console",h="mobile",m="tablet",v="smarttv",g="wearable",b="embedded",_="Amazon",y="Apple",w="ASUS",A="BlackBerry",x="Browser",k="Chrome",E="Firefox",S="Google",R="Huawei",D="LG",T="Microsoft",O="Motorola",I="Opera",C="Samsung",P="Sharp",L="Sony",M="Xiaomi",j="Zebra",U="Facebook",$="Chromium OS",B="Mac OS",N=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},F=function(e,t){return typeof e===a&&-1!==G(t).indexOf(G(e))},G=function(e){return e.toLowerCase()},z=function(e,t){if(typeof e===a)return e=e.replace(/^\s\s*/,""),typeof t===n?e:e.substring(0,350)},H=function(e,n){for(var a,i,s,u,c,d,l=0;l<n.length&&!c;){var f=n[l],p=n[l+1];for(a=i=0;a<f.length&&!c&&f[a];)if(c=f[a++].exec(e))for(s=0;s<p.length;s++)d=c[++i],typeof(u=p[s])===o&&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]===o&&r[n].length>0){for(var a=0;a<r[n].length;a++)if(F(r[n][a],e))return"?"===n?t:n}else if(F(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,I+" Mini"]],[/\bopr\/([\w\.]+)/i],[l,[u,I]],[/(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,I+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[l,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[l,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[l,[u,I+" 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,U],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,C],[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,C],[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,R],[c,m]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[s,[d,R],[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,M],[c,h]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[s,/_/g," "],[d,M],[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,O],[c,h]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[s,[d,O],[c,m]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[s,[d,D],[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,D],[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,L],[c,h]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[s,"Xperia Tablet"],[d,L],[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,_],[c,m]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[s,/(.+)/g,"Fire Phone $1"],[d,_],[c,h]],[/(playbook);[-\w\),; ]+(rim)/i],[s,d,[c,m]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[s,[d,A],[c,h]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[s,[d,w],[c,m]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[s,[d,w],[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,T],[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,T],[c,h]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[s,[d,j],[c,m]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[s,[d,j],[c,h]],[/smart-tv.+(samsung)/i],[d,[c,v]],[/hbbtv.+maple;(\d+)/i],[[s,/^/,"SmartTV"],[d,C],[c,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,D],[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,_],[c,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[s,[d,P],[c,v]],[/(bravia[\w ]+)( bui|\))/i],[s,[d,L],[c,v]],[/(mitv-\w{5}) bui/i],[s,[d,M],[c,v]],[/Hbbtv.*(technisat) (.*);/i],[d,s,[c,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,z],[s,z],[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,L],[c,p]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[s,[d,T],[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,j],[c,g]],[/(quest( 2| pro)?)/i],[s,[d,U],[c,g]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[c,b]],[/(aeobc)\b/i],[s,[d,_],[c,b]],[/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,B],[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,A]],[/(?: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,$],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]]},W=function(p,v){if(typeof p===o&&(v=p,p=t),!(this instanceof W))return new W(p,v).getResult();var g=typeof e!==n&&e.navigator?e.navigator:t,b=p||(g&&g.userAgent?g.userAgent:""),_=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,w=g&&g.userAgent==b;return this.getBrowser=function(){var e={};return e[u]=t,e[l]=t,H.call(e,b,y.browser),e[i]=function(e){return typeof e===a?e.replace(/[^\d\.]/g,"").split(".")[0]:t}(e[l]),w&&g&&g.brave&&typeof g.brave.isBrave==r&&(e[u]="Brave"),e},this.getCPU=function(){var e={};return e[f]=t,H.call(e,b,y.cpu),e},this.getDevice=function(){var e={};return e[d]=t,e[s]=t,e[c]=t,H.call(e,b,y.device),w&&!e[c]&&_&&_.mobile&&(e[c]=h),w&&"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,H.call(e,b,y.engine),e},this.getOS=function(){var e={};return e[u]=t,e[l]=t,H.call(e,b,y.os),w&&!e[u]&&_&&"Unknown"!=_.platform&&(e[u]=_.platform.replace(/chrome os/i,$).replace(/macos/i,B)),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 b},this.setUA=function(e){return b=typeof e===a&&e.length>350?z(e,350):e,this},this.setUA(b),this};W.VERSION="0.7.35",W.BROWSER=N([u,l,i]),W.CPU=N([f]),W.DEVICE=N([s,d,c,p,h,v,m,g,b]),W.ENGINE=W.OS=N([u,l]),me.exports&&(ve=me.exports=W),ve.UAParser=W;var V=typeof e!==n&&(e.jQuery||e.Zepto);if(V&&!V.ua){var Y=new W;V.ua=Y.getResult(),V.ua.get=function(){return Y.getUA()},V.ua.set=function(e){Y.setUA(e);var t=Y.getResult();for(var r in t)V.ua[r]=t[r]}}}("object"==typeof window?window:o);var be=ge.exports;const _e="3.7.5",ye=_e,we="function"==typeof atob,Ae="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+/="),Re=(e=>{let t={};return e.forEach(((e,r)=>t[e]=r)),t})(Se),De=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Te=String.fromCharCode.bind(String),Oe="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),Ie=e=>e.replace(/=/g,"").replace(/[+\/]/g,(e=>"+"==e?"-":"_")),Ce=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),Pe=e=>{let t,r,n,o,a="";const i=e.length%3;for(let i=0;i<e.length;){if((r=e.charCodeAt(i++))>255||(n=e.charCodeAt(i++))>255||(o=e.charCodeAt(i++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|o,a+=Se[t>>18&63]+Se[t>>12&63]+Se[t>>6&63]+Se[63&t]}return i?a.slice(0,i-3)+"===".substring(i):a},Le=Ae?e=>btoa(e):xe?e=>Buffer.from(e,"binary").toString("base64"):Pe,Me=xe?e=>Buffer.from(e).toString("base64"):e=>{let t=[];for(let r=0,n=e.length;r<n;r+=4096)t.push(Te.apply(null,e.subarray(r,r+4096)));return Le(t.join(""))},je=(e,t=!1)=>t?Ie(Me(e)):Me(e),Ue=e=>{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?Te(192|t>>>6)+Te(128|63&t):Te(224|t>>>12&15)+Te(128|t>>>6&63)+Te(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return Te(240|t>>>18&7)+Te(128|t>>>12&63)+Te(128|t>>>6&63)+Te(128|63&t)},$e=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,Be=e=>e.replace($e,Ue),Ne=xe?e=>Buffer.from(e,"utf8").toString("base64"):Ee?e=>Me(Ee.encode(e)):e=>Le(Be(e)),Fe=(e,t=!1)=>t?Ie(Ne(e)):Ne(e),Ge=e=>Fe(e,!0),ze=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,He=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 Te(55296+(t>>>10))+Te(56320+(1023&t));case 3:return Te((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Te((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},Ze=e=>e.replace(ze,He),Ke=e=>{if(e=e.replace(/\s+/g,""),!De.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(3&e.length));let t,r,n,o="";for(let a=0;a<e.length;)t=Re[e.charAt(a++)]<<18|Re[e.charAt(a++)]<<12|(r=Re[e.charAt(a++)])<<6|(n=Re[e.charAt(a++)]),o+=64===r?Te(t>>16&255):64===n?Te(t>>16&255,t>>8&255):Te(t>>16&255,t>>8&255,255&t);return o},qe=we?e=>atob(Ce(e)):xe?e=>Buffer.from(e,"base64").toString("binary"):Ke,We=xe?e=>Oe(Buffer.from(e,"base64")):e=>Oe(qe(e).split("").map((e=>e.charCodeAt(0)))),Ve=e=>We(Je(e)),Ye=xe?e=>Buffer.from(e,"base64").toString("utf8"):ke?e=>ke.decode(We(e)):e=>Ze(qe(e)),Je=e=>Ce(e.replace(/[-_]/g,(e=>"-"==e?"+":"/"))),Qe=e=>Ye(Je(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 Qe(this)})),e("toBase64",(function(e){return Fe(this,e)})),e("toBase64URI",(function(){return Fe(this,!0)})),e("toBase64URL",(function(){return Fe(this,!0)})),e("toUint8Array",(function(){return Ve(this)}))},tt=function(){const e=(e,t)=>Object.defineProperty(Uint8Array.prototype,e,Xe(t));e("toBase64",(function(e){return je(this,e)})),e("toBase64URI",(function(){return je(this,!0)})),e("toBase64URL",(function(){return je(this,!0)}))},rt={version:_e,VERSION:ye,atob:qe,atobPolyfill:Ke,btoa:Le,btoaPolyfill:Pe,fromBase64:Qe,toBase64:Fe,encode:Fe,encodeURI:Ge,encodeURL:Ge,utob:Be,btou:Ze,decode:Qe,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:je,toUint8Array:Ve,extendString:et,extendUint8Array:tt,extendBuiltins:()=>{et(),tt()}};var nt={Rewarded:"rewarded",Interstitial:"interstitial",Preroll:"interstitial",Midroll:"interstitial",Display:"display"};function ot(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 at(){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 it(){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," "))},o=window.location.search.substring(1),a={};e=r.exec(o);)a[n(e[1])]=n(e[2]);return a}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,o){if(r&&r.exists&&r.exists())n(ht(null==r?void 0:r.alternates));else{var a=r&&r.alternates&&r.alternates.length>0?ht(r.alternates):void 0,i=a||document.createElement("script"),s=r&&r.error_prefix?r.error_prefix:"Failed:";if(i.onload=function(){r&&r.exists&&!r.exists()?o("".concat(s," ").concat(e)):n(i)},i.onerror=function(){o("".concat(s," ").concat(e))},!a){if(i.type="text/javascript",!0===r.defer?i.defer=!0:i.async=!0,null==r?void 0:r.attrs)for(var u in r.attrs)i.setAttribute(u,r.attrs[u]);i.src=e,i.id=t,document.head.appendChild(i)}}}))}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 O(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)}},bt=Date.now(),_t={console:!1};function yt(e,t,r){try{if(gt.available&>.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",o=console.log("["+(Date.now()-bt)/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,o)}}catch(e){console.log(e)}}var wt=["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"],At=["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,Rt=function(){function e(){if(I(this,e),St)return St;St=this,this.listeners={}}return L(e,[{key:"_getListenerIdx",value:function(e,t,r){var n,o=this.listeners[e],a=-1;if(!o||0===o.length)return a;for(n=0;n<o.length;n++)if(o[n].callback===t&&(!r||r===o[n].scope)){a=n;break}return a}},{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],o=this.listeners[n],a=0;a<o.length;a++)o[a].scope===e&&(o.splice(a,1),a--);0===o.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],o=this.listeners[n],a=0;a<o.length;a++)o[a].scope===e&&console.log(n,e)}}]),e}(),Dt=function(){function e(t){I(this,e),this.game=t.game,this.bridge=t.bridge}return L(e,[{key:"transform",value:function(e,t){var r=j(e);return this.transformValue(r,t)}},{key:"transformValue",value:function(e,t){if($(e)||K(e))for(var r in e)e[r]=this.transformValue(e[r],t);else if(z(e)){var n,o=/\{\{(\w+)\}\}/g,a=[];do{if(n=o.exec(e)){n[0];var i=n[1],s=this.getMacroKeyValue(i,t);void 0!==s&&a.push({key:i,value:s})}}while(n);a.length>0&&a.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}(),Tt=function(){function e(t){I(this,e),this._config=t||{},this._url=t.url||"https://msgrt.gamedistribution.com/collect",this._topic_counter={},this._ua=(new be).getResult(),this._init_layout()}return L(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}(),Ot=null,It=function(){function e(t){if(I(this,e),Ot)return Ot;Ot=this,this.eventBus=new Rt,this._sdk=t}return L(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],o=document.createElement("div");o.id="gdsdk__console",o.style.position="fixed",o.style.zIndex=Et.zIndex,o.style.bottom="0",o.style.left="0",o.style.width="100%",o.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(o);var a=document.getElementById("gdsdk__showLeaderboard"),i=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"),a.addEventListener("click",(function(){window.gdsdk.showLeaderBoard().catch((function(e){}))})),i.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}(),Ct=function(e){return e&&e.Math==Math&&e},Pt=Ct("object"==typeof globalThis&&globalThis)||Ct("object"==typeof window&&window)||Ct("object"==typeof self&&self)||Ct("object"==typeof o&&o)||function(){return this}()||Function("return this")(),Lt={exports:{}},Mt=Pt,jt=Object.defineProperty,Ut=function(e,t){try{jt(Mt,e,{value:t,configurable:!0,writable:!0})}catch(r){Mt[e]=t}return t},$t=Ut,Bt="__core-js_shared__",Nt=Pt[Bt]||$t(Bt,{}),Ft=Nt;(Lt.exports=function(e,t){return Ft[e]||(Ft[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,zt,Ht=function(e){try{return!!e()}catch(e){return!0}},Zt=!Ht((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),Kt=Zt,qt=Function.prototype,Wt=qt.call,Vt=Kt&&qt.bind.bind(Wt,Wt),Yt=Kt?Vt:function(e){return function(){return Wt.apply(e,arguments)}},Jt=function(e){return null==e},Qt=Jt,Xt=TypeError,er=function(e){if(Qt(e))throw Xt("Can't call method on "+e);return e},tr=er,rr=Object,nr=function(e){return rr(tr(e))},or=nr,ar=Yt({}.hasOwnProperty),ir=Object.hasOwn||function(e,t){return ar(or(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,br=gr&&gr.v8;br&&(zt=(Gt=br.split("."))[0]>0&&Gt[0]<4?1:+(Gt[0]+Gt[1])),!zt&&hr&&(!(Gt=hr.match(/Edge\/(\d+)/))||Gt[1]>=74)&&(Gt=hr.match(/Chrome\/(\d+)/))&&(zt=+Gt[1]);var _r=zt,yr=_r,wr=Ht,Ar=!!Object.getOwnPropertySymbols&&!wr((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&yr&&yr<41})),xr=Ar&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,kr=Pt,Er=Lt.exports,Sr=ir,Rr=lr,Dr=Ar,Tr=xr,Or=kr.Symbol,Ir=Er("wks"),Cr=Tr?Or.for||Or:Or&&Or.withoutSetter||Rr,Pr=function(e){return Sr(Ir,e)||(Ir[e]=Dr&&Sr(Or,e)?Or[e]:Cr("Symbol."+e)),Ir[e]},Lr={};Lr[Pr("toStringTag")]="z";var Mr="[object z]"===String(Lr),jr="object"==typeof document&&document.all,Ur={all:jr,IS_HTMLDDA:void 0===jr&&void 0!==jr},$r=Ur.all,Br=Ur.IS_HTMLDDA?function(e){return"function"==typeof e||e===$r}:function(e){return"function"==typeof e},Nr={},Fr=!Ht((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),Gr=Br,zr=Ur.all,Hr=Ur.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:Gr(e)||e===zr}:function(e){return"object"==typeof e?null!==e:Gr(e)},Zr=Hr,Kr=Pt.document,qr=Zr(Kr)&&Zr(Kr.createElement),Wr=function(e){return qr?Kr.createElement(e):{}},Vr=Wr,Yr=!Fr&&!Ht((function(){return 7!=Object.defineProperty(Vr("div"),"a",{get:function(){return 7}}).a})),Jr=Fr&&Ht((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Qr=Hr,Xr=String,en=TypeError,tn=function(e){if(Qr(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=Br,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=Br,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=Br,bn=vn,_n=TypeError,yn=function(e){if(gn(e))return e;throw _n(bn(e)+" is not a function")},wn=yn,An=Jt,xn=function(e,t){var r=e[t];return An(r)?void 0:wn(r)},kn=on,En=Br,Sn=Hr,Rn=TypeError,Dn=on,Tn=Hr,On=hn,In=xn,Cn=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 Rn("Can't convert object to primitive value")},Pn=TypeError,Ln=Pr("toPrimitive"),Mn=function(e,t){if(!Tn(e)||On(e))return e;var r,n=In(e,Ln);if(n){if(void 0===t&&(t="default"),r=Dn(n,e,t),!Tn(r)||On(r))return r;throw Pn("Can't convert object to primitive value")}return void 0===t&&(t="number"),Cn(e,t)},jn=hn,Un=function(e){var t=Mn(e,"string");return jn(t)?t:t+""},$n=Fr,Bn=Yr,Nn=Jr,Fn=tn,Gn=Un,zn=TypeError,Hn=Object.defineProperty,Zn=Object.getOwnPropertyDescriptor,Kn="enumerable",qn="configurable",Wn="writable";Nr.f=$n?Nn?function(e,t,r){if(Fn(e),t=Gn(t),Fn(r),"function"==typeof e&&"prototype"===t&&"value"in r&&Wn in r&&!r[Wn]){var n=Zn(e,t);n&&n[Wn]&&(e[t]=r.value,r={configurable:qn in r?r[qn]:n[qn],enumerable:Kn in r?r[Kn]:n[Kn],writable:!1})}return Hn(e,t,r)}:Hn:function(e,t,r){if(Fn(e),t=Gn(t),Fn(r),Bn)try{return Hn(e,t,r)}catch(e){}if("get"in r||"set"in r)throw zn("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var Vn={exports:{}},Yn=Fr,Jn=ir,Qn=Function.prototype,Xn=Yn&&Object.getOwnPropertyDescriptor,eo=Jn(Qn,"name"),to={EXISTS:eo,PROPER:eo&&"something"===function(){}.name,CONFIGURABLE:eo&&(!Yn||Yn&&Xn(Qn,"name").configurable)},ro=Br,no=Nt,oo=Yt(Function.toString);ro(no.inspectSource)||(no.inspectSource=function(e){return oo(e)});var ao,io,so,uo=no.inspectSource,co=Br,lo=Pt.WeakMap,fo=co(lo)&&/native code/.test(String(lo)),po=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},ho=Nr,mo=po,vo=Fr?function(e,t,r){return ho.f(e,t,mo(1,r))}:function(e,t,r){return e[t]=r,e},go=Lt.exports,bo=lr,_o=go("keys"),yo=function(e){return _o[e]||(_o[e]=bo(e))},wo={},Ao=fo,xo=Pt,ko=Hr,Eo=vo,So=ir,Ro=Nt,Do=yo,To=wo,Oo="Object already initialized",Io=xo.TypeError,Co=xo.WeakMap;if(Ao||Ro.state){var Po=Ro.state||(Ro.state=new Co);Po.get=Po.get,Po.has=Po.has,Po.set=Po.set,ao=function(e,t){if(Po.has(e))throw Io(Oo);return t.facade=e,Po.set(e,t),t},io=function(e){return Po.get(e)||{}},so=function(e){return Po.has(e)}}else{var Lo=Do("state");To[Lo]=!0,ao=function(e,t){if(So(e,Lo))throw Io(Oo);return t.facade=e,Eo(e,Lo,t),t},io=function(e){return So(e,Lo)?e[Lo]:{}},so=function(e){return So(e,Lo)}}var Mo={set:ao,get:io,has:so,enforce:function(e){return so(e)?io(e):ao(e,{})},getterFor:function(e){return function(t){var r;if(!ko(t)||(r=io(t)).type!==e)throw Io("Incompatible receiver, "+e+" required");return r}}},jo=Yt,Uo=Ht,$o=Br,Bo=ir,No=Fr,Fo=to.CONFIGURABLE,Go=uo,zo=Mo.enforce,Ho=Mo.get,Zo=String,Ko=Object.defineProperty,qo=jo("".slice),Wo=jo("".replace),Vo=jo([].join),Yo=No&&!Uo((function(){return 8!==Ko((function(){}),"length",{value:8}).length})),Jo=String(String).split("String"),Qo=Vn.exports=function(e,t,r){"Symbol("===qo(Zo(t),0,7)&&(t="["+Wo(Zo(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!Bo(e,"name")||Fo&&e.name!==t)&&(No?Ko(e,"name",{value:t,configurable:!0}):e.name=t),Yo&&r&&Bo(r,"arity")&&e.length!==r.arity&&Ko(e,"length",{value:r.arity});try{r&&Bo(r,"constructor")&&r.constructor?No&&Ko(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=zo(e);return Bo(n,"source")||(n.source=Vo(Jo,"string"==typeof t?t:"")),e};Function.prototype.toString=Qo((function(){return $o(this)&&Ho(this).source||Go(this)}),"toString");var Xo=Br,ea=Nr,ta=Vn.exports,ra=Ut,na=function(e,t,r,n){n||(n={});var o=n.enumerable,a=void 0!==n.name?n.name:t;if(Xo(r)&&ta(r,a,n),n.global)o?e[t]=r:ra(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:ea.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},oa=Yt,aa=oa({}.toString),ia=oa("".slice),sa=function(e){return ia(aa(e),8,-1)},ua=Mr,ca=Br,da=sa,la=Pr("toStringTag"),fa=Object,pa="Arguments"==da(function(){return arguments}()),ha=ua?da: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=fa(e),la))?r:pa?da(t):"Object"==(n=da(t))&&ca(t.callee)?"Arguments":n},ma=ha,va=Mr?{}.toString:function(){return"[object "+ma(this)+"]"};Mr||na(Object.prototype,"toString",va,{unsafe:!0});var ga={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},ba=Wr("span").classList,_a=ba&&ba.constructor&&ba.constructor.prototype,ya=_a===Object.prototype?void 0:_a,wa=sa,Aa=Yt,xa=function(e){if("Function"===wa(e))return Aa(e)},ka=yn,Ea=Zt,Sa=xa(xa.bind),Ra=function(e,t){return ka(e),void 0===t?e:Ea?Sa(e,t):function(){return e.apply(t,arguments)}},Da=Ht,Ta=sa,Oa=Object,Ia=Yt("".split),Ca=Da((function(){return!Oa("z").propertyIsEnumerable(0)}))?function(e){return"String"==Ta(e)?Ia(e,""):Oa(e)}:Oa,Pa=Math.ceil,La=Math.floor,Ma=Math.trunc||function(e){var t=+e;return(t>0?La:Pa)(t)},ja=Ma,Ua=function(e){var t=+e;return t!=t||0===t?0:ja(t)},$a=Ua,Ba=Math.min,Na=function(e){return e>0?Ba($a(e),9007199254740991):0},Fa=Na,Ga=function(e){return Fa(e.length)},za=sa,Ha=Array.isArray||function(e){return"Array"==za(e)},Za=Yt,Ka=Ht,qa=Br,Wa=ha,Va=uo,Ya=function(){},Ja=[],Qa=un("Reflect","construct"),Xa=/^\s*(?:class|function)\b/,ei=Za(Xa.exec),ti=!Xa.exec(Ya),ri=function(e){if(!qa(e))return!1;try{return Qa(Ya,Ja,e),!0}catch(e){return!1}},ni=function(e){if(!qa(e))return!1;switch(Wa(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ti||!!ei(Xa,Va(e))}catch(e){return!0}};ni.sham=!0;var oi=!Qa||Ka((function(){var e;return ri(ri.call)||!ri(Object)||!ri((function(){e=!0}))||e}))?ni:ri,ai=Ha,ii=oi,si=Hr,ui=Pr("species"),ci=Array,di=function(e){var t;return ai(e)&&(t=e.constructor,(ii(t)&&(t===ci||ai(t.prototype))||si(t)&&null===(t=t[ui]))&&(t=void 0)),void 0===t?ci:t},li=function(e,t){return new(di(e))(0===t?0:t)},fi=Ra,pi=Ca,hi=nr,mi=Ga,vi=li,gi=Yt([].push),bi=function(e){var t=1==e,r=2==e,n=3==e,o=4==e,a=6==e,i=7==e,s=5==e||a;return function(u,c,d,l){for(var f,p,h=hi(u),m=pi(h),v=fi(c,d),g=mi(m),b=0,_=l||vi,y=t?_(u,g):r||i?_(u,0):void 0;g>b;b++)if((s||b in m)&&(p=v(f=m[b],b,h),e))if(t)y[b]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return b;case 2:gi(y,f)}else switch(e){case 4:return!1;case 7:gi(y,f)}return a?-1:n||o?o:y}},_i={forEach:bi(0),map:bi(1),filter:bi(2),some:bi(3),every:bi(4),find:bi(5),findIndex:bi(6),filterReject:bi(7)},yi=Ht,wi=function(e,t){var r=[][e];return!!r&&yi((function(){r.call(null,t||function(){return 1},1)}))},Ai=_i.forEach,xi=wi("forEach")?[].forEach:function(e){return Ai(this,e,arguments.length>1?arguments[1]:void 0)},ki=Pt,Ei=ga,Si=ya,Ri=xi,Di=vo,Ti=function(e){if(e&&e.forEach!==Ri)try{Di(e,"forEach",Ri)}catch(t){e.forEach=Ri}};for(var Oi in Ei)Ei[Oi]&&Ti(ki[Oi]&&ki[Oi].prototype);Ti(Si);var Ii={},Ci={},Pi={}.propertyIsEnumerable,Li=Object.getOwnPropertyDescriptor,Mi=Li&&!Pi.call({1:2},1);Ci.f=Mi?function(e){var t=Li(this,e);return!!t&&t.enumerable}:Pi;var ji=Ca,Ui=er,$i=function(e){return ji(Ui(e))},Bi=Fr,Ni=on,Fi=Ci,Gi=po,zi=$i,Hi=Un,Zi=ir,Ki=Yr,qi=Object.getOwnPropertyDescriptor;Ii.f=Bi?qi:function(e,t){if(e=zi(e),t=Hi(t),Ki)try{return qi(e,t)}catch(e){}if(Zi(e,t))return Gi(!Ni(Fi.f,e,t),e[t])};var Wi={},Vi=Ua,Yi=Math.max,Ji=Math.min,Qi=function(e,t){var r=Vi(e);return r<0?Yi(r+t,0):Ji(r,t)},Xi=$i,es=Qi,ts=Ga,rs=function(e){return function(t,r,n){var o,a=Xi(t),i=ts(a),s=es(n,i);if(e&&r!=r){for(;i>s;)if((o=a[s++])!=o)return!0}else for(;i>s;s++)if((e||s in a)&&a[s]===r)return e||s||0;return!e&&-1}},ns={includes:rs(!0),indexOf:rs(!1)},os=ir,as=$i,is=ns.indexOf,ss=wo,us=Yt([].push),cs=function(e,t){var r,n=as(e),o=0,a=[];for(r in n)!os(ss,r)&&os(n,r)&&us(a,r);for(;t.length>o;)os(n,r=t[o++])&&(~is(a,r)||us(a,r));return a},ds=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ls=cs,fs=ds.concat("length","prototype");Wi.f=Object.getOwnPropertyNames||function(e){return ls(e,fs)};var ps={};ps.f=Object.getOwnPropertySymbols;var hs=un,ms=Wi,vs=ps,gs=tn,bs=Yt([].concat),_s=hs("Reflect","ownKeys")||function(e){var t=ms.f(gs(e)),r=vs.f;return r?bs(t,r(e)):t},ys=ir,ws=_s,As=Ii,xs=Nr,ks=function(e,t,r){for(var n=ws(t),o=xs.f,a=As.f,i=0;i<n.length;i++){var s=n[i];ys(e,s)||r&&ys(r,s)||o(e,s,a(t,s))}},Es=Ht,Ss=Br,Rs=/#|\.prototype\./,Ds=function(e,t){var r=Os[Ts(e)];return r==Cs||r!=Is&&(Ss(t)?Es(t):!!t)},Ts=Ds.normalize=function(e){return String(e).replace(Rs,".").toLowerCase()},Os=Ds.data={},Is=Ds.NATIVE="N",Cs=Ds.POLYFILL="P",Ps=Ds,Ls=Pt,Ms=Ii.f,js=vo,Us=na,$s=Ut,Bs=ks,Ns=Ps,Fs=function(e,t){var r,n,o,a,i,s=e.target,u=e.global,c=e.stat;if(r=u?Ls:c?Ls[s]||$s(s,{}):(Ls[s]||{}).prototype)for(n in t){if(a=t[n],o=e.dontCallGetSet?(i=Ms(r,n))&&i.value:r[n],!Ns(u?n:s+(c?".":"#")+n,e.forced)&&void 0!==o){if(typeof a==typeof o)continue;Bs(a,o)}(e.sham||o&&o.sham)&&js(a,"sham",!0),Us(r,n,a,e)}},Gs=cs,zs=ds,Hs=Object.keys||function(e){return Gs(e,zs)},Zs=nr,Ks=Hs;Fs({target:"Object",stat:!0,forced:Ht((function(){Ks(1)}))},{keys:function(e){return Ks(Zs(e))}});var Ws={name:"@bygd/gd-sdk-pes",version:"1.37.12",files:["dist/*"],scripts:{build:"NODE_ENV=production rollup --config",watch:"rollup --config --watch --sourcemap --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",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"}},Vs=function(e){var t=Ys("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},Ys=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 o=Math.floor(Math.random()*Math.floor(n));n=0;for(var a=0;a<e.length;a++){var i=e[a];if(o<(n+=i.weight))return i}},Js=function(){var e;(e=console).log.apply(e,arguments)},Qs=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 Xs={};function eu(e,t,r){return(t=C(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var tu=ha,ru=String,nu=function(e){if("Symbol"===tu(e))throw TypeError("Cannot convert a Symbol value to a string");return ru(e)},ou={},au=Fr,iu=Jr,su=Nr,uu=tn,cu=$i,du=Hs;ou.f=au&&!iu?Object.defineProperties:function(e,t){uu(e);for(var r,n=cu(t),o=du(t),a=o.length,i=0;a>i;)su.f(e,r=o[i++],n[r]);return e};var lu,fu=un("document","documentElement"),pu=tn,hu=ou,mu=ds,vu=wo,gu=fu,bu=Wr,_u="prototype",yu="script",wu=yo("IE_PROTO"),Au=function(){},xu=function(e){return"<"+yu+">"+e+"</"+yu+">"},ku=function(e){e.write(xu("")),e.close();var t=e.parentWindow.Object;return e=null,t},Eu=function(){try{lu=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;Eu="undefined"!=typeof document?document.domain&&lu?ku(lu):(t=bu("iframe"),r="java"+yu+":",t.style.display="none",gu.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(xu("document.F=Object")),e.close(),e.F):ku(lu);for(var n=mu.length;n--;)delete Eu[_u][mu[n]];return Eu()};vu[wu]=!0;var Su=Object.create||function(e,t){var r;return null!==e?(Au[_u]=pu(e),r=new Au,Au[_u]=null,r[wu]=e):r=Eu(),void 0===t?r:hu.f(r,t)},Ru={},Du=Un,Tu=Nr,Ou=po,Iu=function(e,t,r){var n=Du(t);n in e?Tu.f(e,n,Ou(0,r)):e[n]=r},Cu=Qi,Pu=Ga,Lu=Iu,Mu=Array,ju=Math.max,Uu=function(e,t,r){for(var n=Pu(e),o=Cu(t,n),a=Cu(void 0===r?n:r,n),i=Mu(ju(a-o,0)),s=0;o<a;o++,s++)Lu(i,s,e[o]);return i.length=s,i},$u=sa,Bu=$i,Nu=Wi.f,Fu=Uu,Gu="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Ru.f=function(e){return Gu&&"Window"==$u(e)?function(e){try{return Nu(e)}catch(e){return Fu(Gu)}}(e):Nu(Bu(e))};var zu=Vn.exports,Hu=Nr,Zu=function(e,t,r){return r.get&&zu(r.get,t,{getter:!0}),r.set&&zu(r.set,t,{setter:!0}),Hu.f(e,t,r)},Ku={},qu=Pr;Ku.f=qu;var Wu=Pt,Vu=ir,Yu=Ku,Ju=Nr.f,Qu=function(e){var t=Wu.Symbol||(Wu.Symbol={});Vu(t,e)||Ju(t,e,{value:Yu.f(e)})},Xu=on,ec=un,tc=Pr,rc=na,nc=Nr.f,oc=ir,ac=Pr("toStringTag"),ic=function(e,t,r){e&&!r&&(e=e.prototype),e&&!oc(e,ac)&&nc(e,ac,{configurable:!0,value:t})},sc=Fs,uc=Pt,cc=on,dc=Yt,lc=Fr,fc=Ar,pc=Ht,hc=ir,mc=cn,vc=tn,gc=$i,bc=Un,_c=nu,yc=po,wc=Su,Ac=Hs,xc=Wi,kc=Ru,Ec=ps,Sc=Ii,Rc=Nr,Dc=ou,Tc=Ci,Oc=na,Ic=Zu,Cc=Lt.exports,Pc=wo,Lc=lr,Mc=Pr,jc=Ku,Uc=Qu,$c=function(){var e=ec("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=tc("toPrimitive");t&&!t[n]&&rc(t,n,(function(e){return Xu(r,this)}),{arity:1})},Bc=ic,Nc=Mo,Fc=_i.forEach,Gc=yo("hidden"),zc="Symbol",Hc="prototype",Zc=Nc.set,Kc=Nc.getterFor(zc),qc=Object[Hc],Wc=uc.Symbol,Vc=Wc&&Wc[Hc],Yc=uc.TypeError,Jc=uc.QObject,Qc=Sc.f,Xc=Rc.f,ed=kc.f,td=Tc.f,rd=dc([].push),nd=Cc("symbols"),od=Cc("op-symbols"),ad=Cc("wks"),id=!Jc||!Jc[Hc]||!Jc[Hc].findChild,sd=lc&&pc((function(){return 7!=wc(Xc({},"a",{get:function(){return Xc(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=Qc(qc,t);n&&delete qc[t],Xc(e,t,r),n&&e!==qc&&Xc(qc,t,n)}:Xc,ud=function(e,t){var r=nd[e]=wc(Vc);return Zc(r,{type:zc,tag:e,description:t}),lc||(r.description=t),r},cd=function(e,t,r){e===qc&&cd(od,t,r),vc(e);var n=bc(t);return vc(r),hc(nd,n)?(r.enumerable?(hc(e,Gc)&&e[Gc][n]&&(e[Gc][n]=!1),r=wc(r,{enumerable:yc(0,!1)})):(hc(e,Gc)||Xc(e,Gc,yc(1,{})),e[Gc][n]=!0),sd(e,n,r)):Xc(e,n,r)},dd=function(e,t){vc(e);var r=gc(t),n=Ac(r).concat(hd(r));return Fc(n,(function(t){lc&&!cc(ld,r,t)||cd(e,t,r[t])})),e},ld=function(e){var t=bc(e),r=cc(td,this,t);return!(this===qc&&hc(nd,t)&&!hc(od,t))&&(!(r||!hc(this,t)||!hc(nd,t)||hc(this,Gc)&&this[Gc][t])||r)},fd=function(e,t){var r=gc(e),n=bc(t);if(r!==qc||!hc(nd,n)||hc(od,n)){var o=Qc(r,n);return!o||!hc(nd,n)||hc(r,Gc)&&r[Gc][n]||(o.enumerable=!0),o}},pd=function(e){var t=ed(gc(e)),r=[];return Fc(t,(function(e){hc(nd,e)||hc(Pc,e)||rd(r,e)})),r},hd=function(e){var t=e===qc,r=ed(t?od:gc(e)),n=[];return Fc(r,(function(e){!hc(nd,e)||t&&!hc(qc,e)||rd(n,nd[e])})),n};fc||(Wc=function(){if(mc(Vc,this))throw Yc("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?_c(arguments[0]):void 0,t=Lc(e),r=function(e){this===qc&&cc(r,od,e),hc(this,Gc)&&hc(this[Gc],t)&&(this[Gc][t]=!1),sd(this,t,yc(1,e))};return lc&&id&&sd(qc,t,{configurable:!0,set:r}),ud(t,e)},Oc(Vc=Wc[Hc],"toString",(function(){return Kc(this).tag})),Oc(Wc,"withoutSetter",(function(e){return ud(Lc(e),e)})),Tc.f=ld,Rc.f=cd,Dc.f=dd,Sc.f=fd,xc.f=kc.f=pd,Ec.f=hd,jc.f=function(e){return ud(Mc(e),e)},lc&&(Ic(Vc,"description",{configurable:!0,get:function(){return Kc(this).description}}),Oc(qc,"propertyIsEnumerable",ld,{unsafe:!0}))),sc({global:!0,constructor:!0,wrap:!0,forced:!fc,sham:!fc},{Symbol:Wc}),Fc(Ac(ad),(function(e){Uc(e)})),sc({target:zc,stat:!0,forced:!fc},{useSetter:function(){id=!0},useSimple:function(){id=!1}}),sc({target:"Object",stat:!0,forced:!fc,sham:!lc},{create:function(e,t){return void 0===t?wc(e):dd(wc(e),t)},defineProperty:cd,defineProperties:dd,getOwnPropertyDescriptor:fd}),sc({target:"Object",stat:!0,forced:!fc},{getOwnPropertyNames:pd}),$c(),Bc(Wc,zc),Pc[Gc]=!0;var md=Ar&&!!Symbol.for&&!!Symbol.keyFor,vd=Fs,gd=un,bd=ir,_d=nu,yd=Lt.exports,wd=md,Ad=yd("string-to-symbol-registry"),xd=yd("symbol-to-string-registry");vd({target:"Symbol",stat:!0,forced:!wd},{for:function(e){var t=_d(e);if(bd(Ad,t))return Ad[t];var r=gd("Symbol")(t);return Ad[t]=r,xd[r]=t,r}});var kd=Fs,Ed=ir,Sd=hn,Rd=vn,Dd=md,Td=(0,Lt.exports)("symbol-to-string-registry");kd({target:"Symbol",stat:!0,forced:!Dd},{keyFor:function(e){if(!Sd(e))throw TypeError(Rd(e)+" is not a symbol");if(Ed(Td,e))return Td[e]}});var Od=Zt,Id=Function.prototype,Cd=Id.apply,Pd=Id.call,Ld="object"==typeof Reflect&&Reflect.apply||(Od?Pd.bind(Cd):function(){return Pd.apply(Cd,arguments)}),Md=Yt([].slice),jd=Ha,Ud=Br,$d=sa,Bd=nu,Nd=Yt([].push),Fd=Fs,Gd=un,zd=Ld,Hd=on,Zd=Yt,Kd=Ht,qd=Br,Wd=hn,Vd=Md,Yd=function(e){if(Ud(e))return e;if(jd(e)){for(var t=e.length,r=[],n=0;n<t;n++){var o=e[n];"string"==typeof o?Nd(r,o):"number"!=typeof o&&"Number"!=$d(o)&&"String"!=$d(o)||Nd(r,Bd(o))}var a=r.length,i=!0;return function(e,t){if(i)return i=!1,t;if(jd(this))return t;for(var n=0;n<a;n++)if(r[n]===e)return t}}},Jd=Ar,Qd=String,Xd=Gd("JSON","stringify"),el=Zd(/./.exec),tl=Zd("".charAt),rl=Zd("".charCodeAt),nl=Zd("".replace),ol=Zd(1..toString),al=/[\uD800-\uDFFF]/g,il=/^[\uD800-\uDBFF]$/,sl=/^[\uDC00-\uDFFF]$/,ul=!Jd||Kd((function(){var e=Gd("Symbol")();return"[null]"!=Xd([e])||"{}"!=Xd({a:e})||"{}"!=Xd(Object(e))})),cl=Kd((function(){return'"\\udf06\\ud834"'!==Xd("\udf06\ud834")||'"\\udead"'!==Xd("\udead")})),dl=function(e,t){var r=Vd(arguments),n=Yd(t);if(qd(n)||void 0!==e&&!Wd(e))return r[1]=function(e,t){if(qd(n)&&(t=Hd(n,this,Qd(e),t)),!Wd(t))return t},zd(Xd,null,r)},ll=function(e,t,r){var n=tl(r,t-1),o=tl(r,t+1);return el(il,e)&&!el(sl,o)||el(sl,e)&&!el(il,n)?"\\u"+ol(rl(e,0),16):e};Xd&&Fd({target:"JSON",stat:!0,arity:3,forced:ul||cl},{stringify:function(e,t,r){var n=Vd(arguments),o=zd(ul?dl:Xd,null,n);return cl&&"string"==typeof o?nl(o,al,ll):o}});var fl=ps,pl=nr;Fs({target:"Object",stat:!0,forced:!Ar||Ht((function(){fl.f(1)}))},{getOwnPropertySymbols:function(e){var t=fl.f;return t?t(pl(e)):[]}});var hl=Ht,ml=_r,vl=Pr("species"),gl=function(e){return ml>=51||!hl((function(){var t=[];return(t.constructor={})[vl]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},bl=_i.filter;Fs({target:"Array",proto:!0,forced:!gl("filter")},{filter:function(e){return bl(this,e,arguments.length>1?arguments[1]:void 0)}});var _l=Fs,yl=Ht,wl=$i,Al=Ii.f,xl=Fr;_l({target:"Object",stat:!0,forced:!xl||yl((function(){Al(1)})),sham:!xl},{getOwnPropertyDescriptor:function(e,t){return Al(wl(e),t)}});var kl=_s,El=$i,Sl=Ii,Rl=Iu;Fs({target:"Object",stat:!0,sham:!Fr},{getOwnPropertyDescriptors:function(e){for(var t,r,n=El(e),o=Sl.f,a=kl(n),i={},s=0;a.length>s;)void 0!==(r=o(n,t=a[s++]))&&Rl(i,t,r);return i}});var Dl=Fs,Tl=Ha,Ol=oi,Il=Hr,Cl=Qi,Pl=Ga,Ll=$i,Ml=Iu,jl=Pr,Ul=Md,$l=gl("slice"),Bl=jl("species"),Nl=Array,Fl=Math.max;Dl({target:"Array",proto:!0,forced:!$l},{slice:function(e,t){var r,n,o,a=Ll(this),i=Pl(a),s=Cl(e,i),u=Cl(void 0===t?i:t,i);if(Tl(a)&&(r=a.constructor,(Ol(r)&&(r===Nl||Tl(r.prototype))||Il(r)&&null===(r=r[Bl]))&&(r=void 0),r===Nl||void 0===r))return Ul(a,s,u);for(n=new(void 0===r?Nl:r)(Fl(u-s,0)),o=0;s<u;s++,o++)s in a&&Ml(n,o,a[s]);return n.length=o,n}});var Gl=on,zl=tn,Hl=xn,Zl=function(e,t,r){var n,o;zl(e);try{if(!(n=Hl(e,"return"))){if("throw"===t)throw r;return r}n=Gl(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return zl(n),r},Kl=tn,ql=Zl,Wl={},Vl=Wl,Yl=Pr("iterator"),Jl=Array.prototype,Ql=function(e){return void 0!==e&&(Vl.Array===e||Jl[Yl]===e)},Xl=ha,ef=xn,tf=Jt,rf=Wl,nf=Pr("iterator"),of=function(e){if(!tf(e))return ef(e,nf)||ef(e,"@@iterator")||rf[Xl(e)]},af=on,sf=yn,uf=tn,cf=vn,df=of,lf=TypeError,ff=function(e,t){var r=arguments.length<2?df(e):t;if(sf(r))return uf(af(r,e));throw lf(cf(e)+" is not iterable")},pf=Ra,hf=on,mf=nr,vf=function(e,t,r,n){try{return n?t(Kl(r)[0],r[1]):t(r)}catch(t){ql(e,"throw",t)}},gf=Ql,bf=oi,_f=Ga,yf=Iu,wf=ff,Af=of,xf=Array,kf=function(e){var t=mf(e),r=bf(this),n=arguments.length,o=n>1?arguments[1]:void 0,a=void 0!==o;a&&(o=pf(o,n>2?arguments[2]:void 0));var i,s,u,c,d,l,f=Af(t),p=0;if(!f||this===xf&&gf(f))for(i=_f(t),s=r?new this(i):xf(i);i>p;p++)l=a?o(t[p],p):t[p],yf(s,p,l);else for(d=(c=wf(t,f)).next,s=r?new this:[];!(u=hf(d,c)).done;p++)l=a?vf(c,o,[u.value,p],!0):u.value,yf(s,p,l);return s.length=p,s},Ef=Pr("iterator"),Sf=!1;try{var Rf=0,Df={next:function(){return{done:!!Rf++}},return:function(){Sf=!0}};Df[Ef]=function(){return this},Array.from(Df,(function(){throw 2}))}catch(kS){}var Tf=function(e,t){if(!t&&!Sf)return!1;var r=!1;try{var n={};n[Ef]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r},Of=kf;Fs({target:"Array",stat:!0,forced:!Tf((function(e){Array.from(e)}))},{from:Of});var If,Cf,Pf,Lf=Yt,Mf=Ua,jf=nu,Uf=er,$f=Lf("".charAt),Bf=Lf("".charCodeAt),Nf=Lf("".slice),Ff=function(e){return function(t,r){var n,o,a=jf(Uf(t)),i=Mf(r),s=a.length;return i<0||i>=s?e?"":void 0:(n=Bf(a,i))<55296||n>56319||i+1===s||(o=Bf(a,i+1))<56320||o>57343?e?$f(a,i):n:e?Nf(a,i,i+2):o-56320+(n-55296<<10)+65536}},Gf={codeAt:Ff(!1),charAt:Ff(!0)},zf=!Ht((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Hf=ir,Zf=Br,Kf=nr,qf=zf,Wf=yo("IE_PROTO"),Vf=Object,Yf=Vf.prototype,Jf=qf?Vf.getPrototypeOf:function(e){var t=Kf(e);if(Hf(t,Wf))return t[Wf];var r=t.constructor;return Zf(r)&&t instanceof r?r.prototype:t instanceof Vf?Yf:null},Qf=Ht,Xf=Br,ep=Hr,tp=Jf,rp=na,np=Pr("iterator"),op=!1;[].keys&&("next"in(Pf=[].keys())?(Cf=tp(tp(Pf)))!==Object.prototype&&(If=Cf):op=!0);var ap=!ep(If)||Qf((function(){var e={};return If[np].call(e)!==e}));ap&&(If={}),Xf(If[np])||rp(If,np,(function(){return this}));var ip={IteratorPrototype:If,BUGGY_SAFARI_ITERATORS:op},sp=ip.IteratorPrototype,up=Su,cp=po,dp=ic,lp=Wl,fp=function(){return this},pp=function(e,t,r,n){var o=t+" Iterator";return e.prototype=up(sp,{next:cp(+!n,r)}),dp(e,o,!1),lp[o]=fp,e},hp=Yt,mp=yn,vp=Br,gp=String,bp=TypeError,_p=function(e,t,r){try{return hp(mp(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}},yp=tn,wp=function(e){if("object"==typeof e||vp(e))return e;throw bp("Can't set "+gp(e)+" as a prototype")},Ap=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 yp(r),wp(n),t?e(r,n):r.__proto__=n,r}}():void 0),xp=Fs,kp=on,Ep=Br,Sp=pp,Rp=Jf,Dp=Ap,Tp=ic,Op=vo,Ip=na,Cp=Wl,Pp=to.PROPER,Lp=to.CONFIGURABLE,Mp=ip.IteratorPrototype,jp=ip.BUGGY_SAFARI_ITERATORS,Up=Pr("iterator"),$p="keys",Bp="values",Np="entries",Fp=function(){return this},Gp=function(e,t,r,n,o,a,i){Sp(r,t,n);var s,u,c,d=function(e){if(e===o&&m)return m;if(!jp&&e in p)return p[e];switch(e){case $p:case Bp:case Np:return function(){return new r(this,e)}}return function(){return new r(this)}},l=t+" Iterator",f=!1,p=e.prototype,h=p[Up]||p["@@iterator"]||o&&p[o],m=!jp&&h||d(o),v="Array"==t&&p.entries||h;if(v&&(s=Rp(v.call(new e)))!==Object.prototype&&s.next&&(Rp(s)!==Mp&&(Dp?Dp(s,Mp):Ep(s[Up])||Ip(s,Up,Fp)),Tp(s,l,!0)),Pp&&o==Bp&&h&&h.name!==Bp&&(Lp?Op(p,"name",Bp):(f=!0,m=function(){return kp(h,this)})),o)if(u={values:d(Bp),keys:a?m:d($p),entries:d(Np)},i)for(c in u)(jp||f||!(c in p))&&Ip(p,c,u[c]);else xp({target:t,proto:!0,forced:jp||f},u);return p[Up]!==m&&Ip(p,Up,m,{name:o}),Cp[t]=m,u},zp=function(e,t){return{value:e,done:t}},Hp=Gf.charAt,Zp=nu,Kp=Mo,qp=Gp,Wp=zp,Vp="String Iterator",Yp=Kp.set,Jp=Kp.getterFor(Vp);qp(String,"String",(function(e){Yp(this,{type:Vp,string:Zp(e),index:0})}),(function(){var e,t=Jp(this),r=t.string,n=t.index;return n>=r.length?Wp(void 0,!0):(e=Hp(r,n),t.index+=e.length,Wp(e,!1))}));var Qp=tn,Xp=function(){var e=Qp(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},eh=Ht,th=Pt.RegExp,rh=eh((function(){var e=th("a","y");return e.lastIndex=2,null!=e.exec("abcd")})),nh=rh||eh((function(){return!th("a","y").sticky})),oh=rh||eh((function(){var e=th("^r","gy");return e.lastIndex=2,null!=e.exec("str")})),ah={BROKEN_CARET:oh,MISSED_STICKY:nh,UNSUPPORTED_Y:rh},ih=Ht,sh=Pt.RegExp,uh=ih((function(){var e=sh(".","s");return!(e.dotAll&&e.exec("\n")&&"s"===e.flags)})),ch=Ht,dh=Pt.RegExp,lh=ch((function(){var e=dh("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),fh=on,ph=Yt,hh=nu,mh=Xp,vh=ah,gh=Lt.exports,bh=Su,_h=Mo.get,yh=uh,wh=lh,Ah=gh("native-string-replace",String.prototype.replace),xh=RegExp.prototype.exec,kh=xh,Eh=ph("".charAt),Sh=ph("".indexOf),Rh=ph("".replace),Dh=ph("".slice),Th=function(){var e=/a/,t=/b*/g;return fh(xh,e,"a"),fh(xh,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),Oh=vh.BROKEN_CARET,Ih=void 0!==/()??/.exec("")[1];(Th||Ih||Oh||yh||wh)&&(kh=function(e){var t,r,n,o,a,i,s,u=this,c=_h(u),d=hh(e),l=c.raw;if(l)return l.lastIndex=u.lastIndex,t=fh(kh,l,d),u.lastIndex=l.lastIndex,t;var f=c.groups,p=Oh&&u.sticky,h=fh(mh,u),m=u.source,v=0,g=d;if(p&&(h=Rh(h,"y",""),-1===Sh(h,"g")&&(h+="g"),g=Dh(d,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==Eh(d,u.lastIndex-1))&&(m="(?: "+m+")",g=" "+g,v++),r=new RegExp("^(?:"+m+")",h)),Ih&&(r=new RegExp("^"+m+"$(?!\\s)",h)),Th&&(n=u.lastIndex),o=fh(xh,p?r:u,g),p?o?(o.input=Dh(o.input,v),o[0]=Dh(o[0],v),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:Th&&o&&(u.lastIndex=u.global?o.index+o[0].length:n),Ih&&o&&o.length>1&&fh(Ah,o[0],r,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o&&f)for(o.groups=i=bh(null),a=0;a<f.length;a++)i[(s=f[a])[0]]=o[s[1]];return o});var Ch=kh;Fs({target:"RegExp",proto:!0,forced:/./.exec!==Ch},{exec:Ch});var Ph=Fs,Lh=Fr,Mh=Yt,jh=ir,Uh=Br,$h=cn,Bh=nu,Nh=Zu,Fh=ks,Gh=Pt.Symbol,zh=Gh&&Gh.prototype;if(Lh&&Uh(Gh)&&(!("description"in zh)||void 0!==Gh().description)){var Hh={},Zh=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:Bh(arguments[0]),t=$h(zh,this)?new Gh(e):void 0===e?Gh():Gh(e);return""===e&&(Hh[t]=!0),t};Fh(Zh,Gh),Zh.prototype=zh,zh.constructor=Zh;var Kh="Symbol(test)"==String(Gh("test")),qh=Mh(zh.valueOf),Wh=Mh(zh.toString),Vh=/^Symbol\((.*)\)[^)]+$/,Yh=Mh("".replace),Jh=Mh("".slice);Nh(zh,"description",{configurable:!0,get:function(){var e=qh(this);if(jh(Hh,e))return"";var t=Wh(e),r=Kh?Jh(t,7,-1):Yh(t,Vh,"$1");return""===r?void 0:r}}),Ph({global:!0,constructor:!0,forced:!0},{Symbol:Zh})}Qu("iterator");var Qh=Pr,Xh=Su,em=Nr.f,tm=Qh("unscopables"),rm=Array.prototype;null==rm[tm]&&em(rm,tm,{configurable:!0,value:Xh(null)});var nm=function(e){rm[tm][e]=!0},om=$i,am=nm,im=Wl,sm=Mo,um=Nr.f,cm=Gp,dm=zp,lm=Fr,fm="Array Iterator",pm=sm.set,hm=sm.getterFor(fm),mm=cm(Array,"Array",(function(e,t){pm(this,{type:fm,target:om(e),index:0,kind:t})}),(function(){var e=hm(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,dm(void 0,!0)):dm("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values"),vm=im.Arguments=im.Array;if(am("keys"),am("values"),am("entries"),lm&&"values"!==vm.name)try{um(vm,"name",{value:"values"})}catch(kS){}var gm=Pt,bm=ga,_m=ya,ym=mm,wm=vo,Am=Pr,xm=Am("iterator"),km=Am("toStringTag"),Em=ym.values,Sm=function(e,t){if(e){if(e[xm]!==Em)try{wm(e,xm,Em)}catch(t){e[xm]=Em}if(e[km]||wm(e,km,t),bm[t])for(var r in ym)if(e[r]!==ym[r])try{wm(e,r,ym[r])}catch(t){e[r]=ym[r]}}};for(var Rm in bm)Sm(gm[Rm]&&gm[Rm].prototype,Rm);Sm(_m,"DOMTokenList");var Dm,Tm,Om,Im,Cm="undefined"!=typeof process&&"process"==sa(process),Pm=un,Lm=Zu,Mm=Fr,jm=Pr("species"),Um=function(e){var t=Pm(e);Mm&&t&&!t[jm]&&Lm(t,jm,{configurable:!0,get:function(){return this}})},$m=cn,Bm=TypeError,Nm=function(e,t){if($m(t,e))return e;throw Bm("Incorrect invocation")},Fm=oi,Gm=vn,zm=TypeError,Hm=tn,Zm=function(e){if(Fm(e))return e;throw zm(Gm(e)+" is not a constructor")},Km=Jt,qm=Pr("species"),Wm=function(e,t){var r,n=Hm(e).constructor;return void 0===n||Km(r=Hm(n)[qm])?t:Zm(r)},Vm=TypeError,Ym=function(e,t){if(e<t)throw Vm("Not enough arguments");return e},Jm=/(?:ipad|iphone|ipod).*applewebkit/i.test(fr),Qm=Pt,Xm=Ld,ev=Ra,tv=Br,rv=ir,nv=Ht,ov=fu,av=Md,iv=Wr,sv=Ym,uv=Jm,cv=Cm,dv=Qm.setImmediate,lv=Qm.clearImmediate,fv=Qm.process,pv=Qm.Dispatch,hv=Qm.Function,mv=Qm.MessageChannel,vv=Qm.String,gv=0,bv={},_v="onreadystatechange";nv((function(){Dm=Qm.location}));var yv=function(e){if(rv(bv,e)){var t=bv[e];delete bv[e],t()}},wv=function(e){return function(){yv(e)}},Av=function(e){yv(e.data)},xv=function(e){Qm.postMessage(vv(e),Dm.protocol+"//"+Dm.host)};dv&&lv||(dv=function(e){sv(arguments.length,1);var t=tv(e)?e:hv(e),r=av(arguments,1);return bv[++gv]=function(){Xm(t,void 0,r)},Tm(gv),gv},lv=function(e){delete bv[e]},cv?Tm=function(e){fv.nextTick(wv(e))}:pv&&pv.now?Tm=function(e){pv.now(wv(e))}:mv&&!uv?(Im=(Om=new mv).port2,Om.port1.onmessage=Av,Tm=ev(Im.postMessage,Im)):Qm.addEventListener&&tv(Qm.postMessage)&&!Qm.importScripts&&Dm&&"file:"!==Dm.protocol&&!nv(xv)?(Tm=xv,Qm.addEventListener("message",Av,!1)):Tm=_v in iv("script")?function(e){ov.appendChild(iv("script"))[_v]=function(){ov.removeChild(this),yv(e)}}:function(e){setTimeout(wv(e),0)});var kv={set:dv,clear:lv},Ev=function(){this.head=null,this.tail=null};Ev.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 Sv,Rv,Dv,Tv,Ov,Iv=Ev,Cv=/ipad|iphone|ipod/i.test(fr)&&"undefined"!=typeof Pebble,Pv=/web0s(?!.*chrome)/i.test(fr),Lv=Pt,Mv=Ra,jv=Ii.f,Uv=kv.set,$v=Iv,Bv=Jm,Nv=Cv,Fv=Pv,Gv=Cm,zv=Lv.MutationObserver||Lv.WebKitMutationObserver,Hv=Lv.document,Zv=Lv.process,Kv=Lv.Promise,qv=jv(Lv,"queueMicrotask"),Wv=qv&&qv.value;if(!Wv){var Vv=new $v,Yv=function(){var e,t;for(Gv&&(e=Zv.domain)&&e.exit();t=Vv.get();)try{t()}catch(e){throw Vv.head&&Sv(),e}e&&e.enter()};Bv||Gv||Fv||!zv||!Hv?!Nv&&Kv&&Kv.resolve?((Tv=Kv.resolve(void 0)).constructor=Kv,Ov=Mv(Tv.then,Tv),Sv=function(){Ov(Yv)}):Gv?Sv=function(){Zv.nextTick(Yv)}:(Uv=Mv(Uv,Lv),Sv=function(){Uv(Yv)}):(Rv=!0,Dv=Hv.createTextNode(""),new zv(Yv).observe(Dv,{characterData:!0}),Sv=function(){Dv.data=Rv=!Rv}),Wv=function(e){Vv.head||Sv(),Vv.add(e)}}var Jv=Wv,Qv=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Xv=Pt.Promise,eg="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,tg=!eg&&!Cm&&"object"==typeof window&&"object"==typeof document,rg=Pt,ng=Xv,og=Br,ag=Ps,ig=uo,sg=Pr,ug=tg,cg=eg,dg=_r;ng&&ng.prototype;var lg=sg("species"),fg=!1,pg=og(rg.PromiseRejectionEvent),hg=ag("Promise",(function(){var e=ig(ng),t=e!==String(ng);if(!t&&66===dg)return!0;if(!dg||dg<51||!/native code/.test(e)){var r=new ng((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[lg]=n,!(fg=r.then((function(){}))instanceof n))return!0}return!t&&(ug||cg)&&!pg})),mg={CONSTRUCTOR:hg,REJECTION_EVENT:pg,SUBCLASSING:fg},vg={},gg=yn,bg=TypeError,_g=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw bg("Bad Promise constructor");t=e,r=n})),this.resolve=gg(t),this.reject=gg(r)};vg.f=function(e){return new _g(e)};var yg,wg,Ag,xg=Fs,kg=Cm,Eg=Pt,Sg=on,Rg=na,Dg=Ap,Tg=ic,Og=Um,Ig=yn,Cg=Br,Pg=Hr,Lg=Nm,Mg=Wm,jg=kv.set,Ug=Jv,$g=function(e,t){try{1==arguments.length?console.error(e):console.error(e,t)}catch(e){}},Bg=Qv,Ng=Iv,Fg=Mo,Gg=Xv,zg=vg,Hg="Promise",Zg=mg.CONSTRUCTOR,Kg=mg.REJECTION_EVENT,qg=mg.SUBCLASSING,Wg=Fg.getterFor(Hg),Vg=Fg.set,Yg=Gg&&Gg.prototype,Jg=Gg,Qg=Yg,Xg=Eg.TypeError,eb=Eg.document,tb=Eg.process,rb=zg.f,nb=rb,ob=!!(eb&&eb.createEvent&&Eg.dispatchEvent),ab="unhandledrejection",ib=function(e){var t;return!(!Pg(e)||!Cg(t=e.then))&&t},sb=function(e,t){var r,n,o,a=t.value,i=1==t.state,s=i?e.ok:e.fail,u=e.resolve,c=e.reject,d=e.domain;try{s?(i||(2===t.rejection&&fb(t),t.rejection=1),!0===s?r=a:(d&&d.enter(),r=s(a),d&&(d.exit(),o=!0)),r===e.promise?c(Xg("Promise-chain cycle")):(n=ib(r))?Sg(n,r,u,c):u(r)):c(a)}catch(e){d&&!o&&d.exit(),c(e)}},ub=function(e,t){e.notified||(e.notified=!0,Ug((function(){for(var r,n=e.reactions;r=n.get();)sb(r,e);e.notified=!1,t&&!e.rejection&&db(e)})))},cb=function(e,t,r){var n,o;ob?((n=eb.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),Eg.dispatchEvent(n)):n={promise:t,reason:r},!Kg&&(o=Eg["on"+e])?o(n):e===ab&&$g("Unhandled promise rejection",r)},db=function(e){Sg(jg,Eg,(function(){var t,r=e.facade,n=e.value;if(lb(e)&&(t=Bg((function(){kg?tb.emit("unhandledRejection",n,r):cb(ab,r,n)})),e.rejection=kg||lb(e)?2:1,t.error))throw t.value}))},lb=function(e){return 1!==e.rejection&&!e.parent},fb=function(e){Sg(jg,Eg,(function(){var t=e.facade;kg?tb.emit("rejectionHandled",t):cb("rejectionhandled",t,e.value)}))},pb=function(e,t,r){return function(n){e(t,n,r)}},hb=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,ub(e,!0))},mb=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw Xg("Promise can't be resolved itself");var n=ib(t);n?Ug((function(){var r={done:!1};try{Sg(n,t,pb(mb,r,e),pb(hb,r,e))}catch(t){hb(r,t,e)}})):(e.value=t,e.state=1,ub(e,!1))}catch(t){hb({done:!1},t,e)}}};if(Zg&&(Jg=function(e){Lg(this,Qg),Ig(e),Sg(yg,this);var t=Wg(this);try{e(pb(mb,t),pb(hb,t))}catch(e){hb(t,e)}},Qg=Jg.prototype,(yg=function(e){Vg(this,{type:Hg,done:!1,notified:!1,parent:!1,reactions:new Ng,rejection:!1,state:0,value:void 0})}).prototype=Rg(Qg,"then",(function(e,t){var r=Wg(this),n=rb(Mg(this,Jg));return r.parent=!0,n.ok=!Cg(e)||e,n.fail=Cg(t)&&t,n.domain=kg?tb.domain:void 0,0==r.state?r.reactions.add(n):Ug((function(){sb(n,r)})),n.promise})),wg=function(){var e=new yg,t=Wg(e);this.promise=e,this.resolve=pb(mb,t),this.reject=pb(hb,t)},zg.f=rb=function(e){return e===Jg||undefined===e?new wg(e):nb(e)},Cg(Gg)&&Yg!==Object.prototype)){Ag=Yg.then,qg||Rg(Yg,"then",(function(e,t){var r=this;return new Jg((function(e,t){Sg(Ag,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete Yg.constructor}catch(kS){}Dg&&Dg(Yg,Qg)}xg({global:!0,constructor:!0,wrap:!0,forced:Zg},{Promise:Jg}),Tg(Jg,Hg,!1),Og(Hg);var vb=Ra,gb=on,bb=tn,_b=vn,yb=Ql,wb=Ga,Ab=cn,xb=ff,kb=of,Eb=Zl,Sb=TypeError,Rb=function(e,t){this.stopped=e,this.result=t},Db=Rb.prototype,Tb=function(e,t,r){var n,o,a,i,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=vb(t,d),v=function(e){return n&&Eb(n,"normal",e),new Rb(!0,e)},g=function(e){return l?(bb(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(!(o=kb(e)))throw Sb(_b(e)+" is not iterable");if(yb(o)){for(a=0,i=wb(e);i>a;a++)if((s=g(e[a]))&&Ab(Db,s))return s;return new Rb(!1)}n=xb(e,o)}for(u=f?e.next:n.next;!(c=gb(u,n)).done;){try{s=g(c.value)}catch(e){Eb(n,"throw",e)}if("object"==typeof s&&s&&Ab(Db,s))return s}return new Rb(!1)},Ob=Xv,Ib=mg.CONSTRUCTOR||!Tf((function(e){Ob.all(e).then(void 0,(function(){}))})),Cb=on,Pb=yn,Lb=vg,Mb=Qv,jb=Tb;Fs({target:"Promise",stat:!0,forced:Ib},{all:function(e){var t=this,r=Lb.f(t),n=r.resolve,o=r.reject,a=Mb((function(){var r=Pb(t.resolve),a=[],i=0,s=1;jb(e,(function(e){var u=i++,c=!1;s++,Cb(r,t,e).then((function(e){c||(c=!0,a[u]=e,--s||n(a))}),o)})),--s||n(a)}));return a.error&&o(a.value),r.promise}});var Ub=Fs,$b=mg.CONSTRUCTOR,Bb=Xv,Nb=un,Fb=Br,Gb=na,zb=Bb&&Bb.prototype;if(Ub({target:"Promise",proto:!0,forced:$b,real:!0},{catch:function(e){return this.then(void 0,e)}}),Fb(Bb)){var Hb=Nb("Promise").prototype.catch;zb.catch!==Hb&&Gb(zb,"catch",Hb,{unsafe:!0})}var Zb=on,Kb=yn,qb=vg,Wb=Qv,Vb=Tb;Fs({target:"Promise",stat:!0,forced:Ib},{race:function(e){var t=this,r=qb.f(t),n=r.reject,o=Wb((function(){var o=Kb(t.resolve);Vb(e,(function(e){Zb(o,t,e).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var Yb=on,Jb=vg;Fs({target:"Promise",stat:!0,forced:mg.CONSTRUCTOR},{reject:function(e){var t=Jb.f(this);return Yb(t.reject,void 0,e),t.promise}});var Qb=tn,Xb=Hr,e_=vg,t_=function(e,t){if(Qb(e),Xb(t)&&t.constructor===e)return t;var r=e_.f(e);return(0,r.resolve)(t),r.promise},r_=Fs,n_=mg.CONSTRUCTOR,o_=t_;un("Promise"),r_({target:"Promise",stat:!0,forced:n_},{resolve:function(e){return o_(this,e)}});var a_=TypeError,i_=Fs,s_=Ht,u_=Ha,c_=Hr,d_=nr,l_=Ga,f_=function(e){if(e>9007199254740991)throw a_("Maximum allowed index exceeded");return e},p_=Iu,h_=li,m_=gl,v_=_r,g_=Pr("isConcatSpreadable"),b_=v_>=51||!s_((function(){var e=[];return e[g_]=!1,e.concat()[0]!==e})),__=function(e){if(!c_(e))return!1;var t=e[g_];return void 0!==t?!!t:u_(e)};i_({target:"Array",proto:!0,arity:1,forced:!b_||!m_("concat")},{concat:function(e){var t,r,n,o,a,i=d_(this),s=h_(i,0),u=0;for(t=-1,n=arguments.length;t<n;t++)if(__(a=-1===t?i:arguments[t]))for(o=l_(a),f_(u+o),r=0;r<o;r++,u++)r in a&&p_(s,u,a[r]);else f_(u+1),p_(s,u++,a);return s.length=u,s}});var y_=Fr,w_=to.EXISTS,A_=Yt,x_=Zu,k_=Function.prototype,E_=A_(k_.toString),S_=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,R_=A_(S_.exec);function D_(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 T_(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 T_(e,t)}(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,i=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw a}}}}function T_(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 O_(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 I_(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?O_(Object(r),!0).forEach((function(t){eu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}y_&&!w_&&x_(k_,"name",{configurable:!0,get:function(){try{return R_(S_,E_(this))[1]}catch(e){return""}}});var C_,P_={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"}},L_={},M_=function(e,t){L_[e]=I_(I_({},t),{},{isLoading:!1})},j_=function(e){var t=this,n=e.id,o=e.src;return new Promise(function(e,a){if(r(this,t),document.getElementById(n))e();else{var i=document.createElement("script");i.onload=function(){e()},i.id=n,i.setAttribute("crossorigin",!0),i.src=o,document.head.appendChild(i)}}.bind(this))},U_=function(){var e=t(d.mark((function e(t){var r,n,o,a,i,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=L_[t]).isLoading){e.next=6;break}return e.abrupt("return");case 6:n.isLoading=!0,o=D_(n.dependencies),e.prev=8,o.s();case 10:if((a=o.n()).done){e.next=26;break}if(i=a.value,e.prev=12,s=P_[i].name,!window[s]){e.next=16;break}return e.abrupt("continue",24);case 16:return e.next=18,j_({id:i,src:P_[i].src});case 18:e.next=24;break;case 20:e.prev=20,e.t0=e.catch(12),u=i.id,c=i.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),o.e(e.t1);case 31:return e.prev=31,o.f(),e.finish(31);case 34:return e.prev=34,e.next=37,j_({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)}}(),$_=L((function e(){var r=this;I(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,U_("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"]},M_(this.moduleName,this.moduleConfig)})),B_=new $_,N_=Hr,F_=sa,G_=Pr("match"),z_=function(e){var t;return N_(e)&&(void 0!==(t=e[G_])?!!t:"RegExp"==F_(e))},H_=z_,Z_=TypeError,K_=function(e){if(H_(e))throw Z_("The method doesn't accept regular expressions");return e},q_=Pr("match"),W_=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[q_]=!1,"/./"[e](t)}catch(e){}}return!1},V_=Fs,Y_=xa,J_=Ii.f,Q_=Na,X_=nu,ey=K_,ty=er,ry=W_,ny=Y_("".startsWith),oy=Y_("".slice),ay=Math.min,iy=ry("startsWith");V_({target:"String",proto:!0,forced:!!(iy||(C_=J_(String.prototype,"startsWith"),!C_||C_.writable))&&!iy},{startsWith:function(e){var t=X_(ty(this));ey(e);var r=Q_(ay(arguments.length>1?arguments[1]:void 0,t.length)),n=X_(e);return ny?ny(t,n,r):oy(t,r,r+n.length)===n}});var sy=on,uy=ir,cy=cn,dy=Xp,ly=RegExp.prototype,fy=function(e){var t=e.flags;return void 0!==t||"flags"in ly||uy(e,"flags")||!cy(ly,e)?t:sy(dy,e)},py=to.PROPER,hy=na,my=tn,vy=nu,gy=Ht,by=fy,_y="toString",yy=RegExp.prototype[_y],wy=gy((function(){return"/a/b"!=yy.call({source:"a",flags:"b"})})),Ay=py&&yy.name!=_y;(wy||Ay)&&hy(RegExp.prototype,_y,(function(){var e=my(this);return"/"+vy(e.source)+"/"+vy(by(e))}),{unsafe:!0});var xy=xa,ky=na,Ey=Ch,Sy=Ht,Ry=Pr,Dy=vo,Ty=Ry("species"),Oy=RegExp.prototype,Iy=function(e,t,r,n){var o=Ry(e),a=!Sy((function(){var t={};return t[o]=function(){return 7},7!=""[e](t)})),i=a&&!Sy((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[Ty]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!a||!i||r){var s=xy(/./[o]),u=t(o,""[e],(function(e,t,r,n,o){var i=xy(e),u=t.exec;return u===Ey||u===Oy.exec?a&&!o?{done:!0,value:s(t,r,n)}:{done:!0,value:i(r,t,n)}:{done:!1}}));ky(String.prototype,e,u[0]),ky(Oy,o,u[1])}n&&Dy(Oy[o],"sham",!0)},Cy=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},Py=on,Ly=tn,My=Br,jy=sa,Uy=Ch,$y=TypeError,By=function(e,t){var r=e.exec;if(My(r)){var n=Py(r,e,t);return null!==n&&Ly(n),n}if("RegExp"===jy(e))return Py(Uy,e,t);throw $y("RegExp#exec called on incompatible receiver")},Ny=on,Fy=tn,Gy=Jt,zy=er,Hy=Cy,Zy=nu,Ky=xn,qy=By;function Wy(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 Vy(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Wy(Object(r),!0).forEach((function(t){eu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wy(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}Iy("search",(function(e,t,r){return[function(t){var r=zy(this),n=Gy(t)?void 0:Ky(t,e);return n?Ny(n,t,r):new RegExp(t)[e](Zy(r))},function(e){var n=Fy(this),o=Zy(e),a=r(t,n,o);if(a.done)return a.value;var i=n.lastIndex;Hy(i,0)||(n.lastIndex=0);var s=qy(n,o);return Hy(n.lastIndex,i)||(n.lastIndex=i),null===s?-1:s.index}]}));var Yy,Jy,Qy=function(){function e(){I(this,e)}return L(e,[{key:"getBridgeContext",value:function(){var e=this._isTokenGameURL(),t=this._isMasterGameURL(),r=this._isExtHostedGameURL(),n=e||r?this._getTokenGameURLConfig():{};n=n||{};var o=decodeURIComponent((e||r)&&n.parentURL?n.parentURL:it()),a=decodeURIComponent((e||r)&&n.parentDomain?n.parentDomain:at()),i=decodeURIComponent((e||r)&&n.topDomain?n.topDomain:r&&0===pt()?a: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:o,parentDomain:a,topDomain:i&&i.length?i:a,noGAPageView:d,noLotamePageView:l,noGamedockSDK:f,noMinijuegosSDK:p,version:n.version,pauseGameOnStartup:m,depth:pt(),domainMatched:a===i,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 O(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 O(document.referrer,!0);if(!n.query.gd_zone_config)return;e=n.query.gd_zone_config}else{var o=new O(location.href,!0);if(!o.query.gd_zone_config)return;e=o.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 O(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 O(e,!0);return r.query=Vy(Vy({},r.query),t),r.toString()}},{key:"_base64_encode",value:function(e){return rt.encode(JSON.stringify(e))}}]),e}(),Xy=function(){try{return(new Qy).getBridgeContext()}catch(e){return{}}}(),ew={userDeclinedTracking:document.location.search.indexOf("gdpr-tracking=0")>=0||document.cookie.indexOf("ogdpr_tracking=0")>=0,whitelabelPartner:(Yy=!1,(Jy=ut()).hasOwnProperty("xanthophyll")&&"true"===Jy.xanthophyll&&(Yy=!0),Yy)},tw=Gf.charAt,rw=Yt,nw=nr,ow=Math.floor,aw=rw("".charAt),iw=rw("".replace),sw=rw("".slice),uw=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,cw=/\$([$&'`]|\d{1,2})/g,dw=Ld,lw=on,fw=Yt,pw=Iy,hw=Ht,mw=tn,vw=Br,gw=Jt,bw=Ua,_w=Na,yw=nu,ww=er,Aw=function(e,t,r){return t+(r?tw(e,t).length:1)},xw=xn,kw=function(e,t,r,n,o,a){var i=r+e.length,s=n.length,u=cw;return void 0!==o&&(o=nw(o),u=uw),iw(a,u,(function(a,u){var c;switch(aw(u,0)){case"$":return"$";case"&":return e;case"`":return sw(t,0,r);case"'":return sw(t,i);case"<":c=o[sw(u,1,-1)];break;default:var d=+u;if(0===d)return a;if(d>s){var l=ow(d/10);return 0===l?a:l<=s?void 0===n[l-1]?aw(u,1):n[l-1]+aw(u,1):a}c=n[d-1]}return void 0===c?"":c}))},Ew=By,Sw=Pr("replace"),Rw=Math.max,Dw=Math.min,Tw=fw([].concat),Ow=fw([].push),Iw=fw("".indexOf),Cw=fw("".slice),Pw=function(e){return void 0===e?e:String(e)},Lw="$0"==="a".replace(/./,"$0"),Mw=!!/./[Sw]&&""===/./[Sw]("a","$0"),jw=!hw((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));pw("replace",(function(e,t,r){var n=Mw?"$":"$0";return[function(e,r){var n=ww(this),o=gw(e)?void 0:xw(e,Sw);return o?lw(o,e,n,r):lw(t,yw(n),e,r)},function(e,o){var a=mw(this),i=yw(e);if("string"==typeof o&&-1===Iw(o,n)&&-1===Iw(o,"$<")){var s=r(t,a,i,o);if(s.done)return s.value}var u=vw(o);u||(o=yw(o));var c=a.global;if(c){var d=a.unicode;a.lastIndex=0}for(var l=[];;){var f=Ew(a,i);if(null===f)break;if(Ow(l,f),!c)break;""===yw(f[0])&&(a.lastIndex=Aw(i,_w(a.lastIndex),d))}for(var p="",h=0,m=0;m<l.length;m++){for(var v=yw((f=l[m])[0]),g=Rw(Dw(bw(f.index),i.length),0),b=[],_=1;_<f.length;_++)Ow(b,Pw(f[_]));var y=f.groups;if(u){var w=Tw([v],b,g,i);void 0!==y&&Ow(w,y);var A=yw(dw(o,void 0,w))}else A=kw(v,i,g,b,y,o);g>=h&&(p+=Cw(i,h,g)+A,h=g+v.length)}return p+Cw(i,h)}]}),!jw||!Lw||Mw);var Uw=Ht,$w=Fr,Bw=Pr("iterator"),Nw=!Uw((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&&!$w||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[Bw]||"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})),Fw=na,Gw=Uu,zw=Math.floor,Hw=function(e,t){var r=e.length,n=zw(r/2);return r<8?Zw(e,t):Kw(e,Hw(Gw(e,0,n),t),Hw(Gw(e,n),t),t)},Zw=function(e,t){for(var r,n,o=e.length,a=1;a<o;){for(n=a,r=e[a];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==a++&&(e[n]=r)}return e},Kw=function(e,t,r,n){for(var o=t.length,a=r.length,i=0,s=0;i<o||s<a;)e[i+s]=i<o&&s<a?n(t[i],r[s])<=0?t[i++]:r[s++]:i<o?t[i++]:r[s++];return e},qw=Fs,Ww=Pt,Vw=on,Yw=Yt,Jw=Fr,Qw=Nw,Xw=na,eA=Zu,tA=function(e,t,r){for(var n in t)Fw(e,n,t[n],r);return e},rA=ic,nA=pp,oA=Mo,aA=Nm,iA=Br,sA=ir,uA=Ra,cA=ha,dA=tn,lA=Hr,fA=nu,pA=Su,hA=po,mA=ff,vA=of,gA=Ym,bA=Hw,_A=Pr("iterator"),yA="URLSearchParams",wA=yA+"Iterator",AA=oA.set,xA=oA.getterFor(yA),kA=oA.getterFor(wA),EA=Object.getOwnPropertyDescriptor,SA=function(e){if(!Jw)return Ww[e];var t=EA(Ww,e);return t&&t.value},RA=SA("fetch"),DA=SA("Request"),TA=SA("Headers"),OA=DA&&DA.prototype,IA=TA&&TA.prototype,CA=Ww.RegExp,PA=Ww.TypeError,LA=Ww.decodeURIComponent,MA=Ww.encodeURIComponent,jA=Yw("".charAt),UA=Yw([].join),$A=Yw([].push),BA=Yw("".replace),NA=Yw([].shift),FA=Yw([].splice),GA=Yw("".split),zA=Yw("".slice),HA=/\+/g,ZA=Array(4),KA=function(e){return ZA[e-1]||(ZA[e-1]=CA("((?:%[\\da-f]{2}){"+e+"})","gi"))},qA=function(e){try{return LA(e)}catch(t){return e}},WA=function(e){var t=BA(e,HA," "),r=4;try{return LA(t)}catch(e){for(;r;)t=BA(t,KA(r--),qA);return t}},VA=/[!'()~]|%20/g,YA={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},JA=function(e){return YA[e]},QA=function(e){return BA(MA(e),VA,JA)},XA=nA((function(e,t){AA(this,{type:wA,iterator:mA(xA(e).entries),kind:t})}),"Iterator",(function(){var e=kA(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),ex=function(e){this.entries=[],this.url=null,void 0!==e&&(lA(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===jA(e,0)?zA(e,1):e:fA(e)))};ex.prototype={type:yA,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,a,i,s,u=vA(e);if(u)for(r=(t=mA(e,u)).next;!(n=Vw(r,t)).done;){if(a=(o=mA(dA(n.value))).next,(i=Vw(a,o)).done||(s=Vw(a,o)).done||!Vw(a,o).done)throw PA("Expected sequence with length 2");$A(this.entries,{key:fA(i.value),value:fA(s.value)})}else for(var c in e)sA(e,c)&&$A(this.entries,{key:c,value:fA(e[c])})},parseQuery:function(e){if(e)for(var t,r,n=GA(e,"&"),o=0;o<n.length;)(t=n[o++]).length&&(r=GA(t,"="),$A(this.entries,{key:WA(NA(r)),value:WA(UA(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],$A(r,QA(e.key)+"="+QA(e.value));return UA(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var tx=function(){aA(this,rx);var e=AA(this,new ex(arguments.length>0?arguments[0]:void 0));Jw||(this.length=e.entries.length)},rx=tx.prototype;if(tA(rx,{append:function(e,t){gA(arguments.length,2);var r=xA(this);$A(r.entries,{key:fA(e),value:fA(t)}),Jw||this.length++,r.updateURL()},delete:function(e){gA(arguments.length,1);for(var t=xA(this),r=t.entries,n=fA(e),o=0;o<r.length;)r[o].key===n?FA(r,o,1):o++;Jw||(this.length=r.length),t.updateURL()},get:function(e){gA(arguments.length,1);for(var t=xA(this).entries,r=fA(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){gA(arguments.length,1);for(var t=xA(this).entries,r=fA(e),n=[],o=0;o<t.length;o++)t[o].key===r&&$A(n,t[o].value);return n},has:function(e){gA(arguments.length,1);for(var t=xA(this).entries,r=fA(e),n=0;n<t.length;)if(t[n++].key===r)return!0;return!1},set:function(e,t){gA(arguments.length,1);for(var r,n=xA(this),o=n.entries,a=!1,i=fA(e),s=fA(t),u=0;u<o.length;u++)(r=o[u]).key===i&&(a?FA(o,u--,1):(a=!0,r.value=s));a||$A(o,{key:i,value:s}),Jw||(this.length=o.length),n.updateURL()},sort:function(){var e=xA(this);bA(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=xA(this).entries,n=uA(e,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((t=r[o++]).value,t.key,this)},keys:function(){return new XA(this,"keys")},values:function(){return new XA(this,"values")},entries:function(){return new XA(this,"entries")}},{enumerable:!0}),Xw(rx,_A,rx.entries,{name:"entries"}),Xw(rx,"toString",(function(){return xA(this).serialize()}),{enumerable:!0}),Jw&&eA(rx,"size",{get:function(){return xA(this).entries.length},configurable:!0,enumerable:!0}),rA(tx,yA),qw({global:!0,constructor:!0,forced:!Qw},{URLSearchParams:tx}),!Qw&&iA(TA)){var nx=Yw(IA.has),ox=Yw(IA.set),ax=function(e){if(lA(e)){var t,r=e.body;if(cA(r)===yA)return t=e.headers?new TA(e.headers):new TA,nx(t,"content-type")||ox(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),pA(e,{body:hA(0,fA(r)),headers:hA(0,t)})}return e};if(iA(RA)&&qw({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return RA(e,arguments.length>1?ax(arguments[1]):{})}}),iA(DA)){var ix=function(e){return aA(this,OA),new DA(e,arguments.length>1?ax(arguments[1]):{})};OA.constructor=ix,ix.prototype=OA,qw({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:ix})}}var sx={URLSearchParams:tx,getState:xA},ux=ns.includes,cx=nm;Fs({target:"Array",proto:!0,forced:Ht((function(){return!Array(1).includes()}))},{includes:function(e){return ux(this,e,arguments.length>1?arguments[1]:void 0)}}),cx("includes");var dx=Fs,lx=K_,fx=er,px=nu,hx=W_,mx=Yt("".indexOf);dx({target:"String",proto:!0,forced:!hx("includes")},{includes:function(e){return!!~mx(px(fx(this)),px(lx(e)),arguments.length>1?arguments[1]:void 0)}});var vx={exports:{}},gx={exports:{}},bx={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}(bx,bx.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=bx.exports)&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default}(gx,gx.exports);var _x={exports:{}},yx={},wx={};Object.defineProperty(wx,"__esModule",{value:!0}),wx.commaDecimal=wx.dotDecimal=wx.bengaliLocales=wx.farsiLocales=wx.arabicLocales=wx.englishLocales=wx.decimal=wx.alphanumeric=wx.alpha=void 0;var Ax={"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]+$/};wx.alpha=Ax;var xx={"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]+$/};wx.alphanumeric=xx;var kx={"en-US":".",ar:"٫"};wx.decimal=kx;var Ex=["AU","GB","HK","IN","NZ","ZA","ZM"];wx.englishLocales=Ex;for(var Sx,Rx=0;Rx<Ex.length;Rx++)Ax[Sx="en-".concat(Ex[Rx])]=Ax["en-US"],xx[Sx]=xx["en-US"],kx[Sx]=kx["en-US"];var Dx=["AE","BH","DZ","EG","IQ","JO","KW","LB","LY","MA","QM","QA","SA","SD","SY","TN","YE"];wx.arabicLocales=Dx;for(var Tx,Ox=0;Ox<Dx.length;Ox++)Ax[Tx="ar-".concat(Dx[Ox])]=Ax.ar,xx[Tx]=xx.ar,kx[Tx]=kx.ar;var Ix=["IR","AF"];wx.farsiLocales=Ix;for(var Cx,Px=0;Px<Ix.length;Px++)xx[Cx="fa-".concat(Ix[Px])]=xx.fa,kx[Cx]=kx.ar;var Lx=["BD","IN"];wx.bengaliLocales=Lx;for(var Mx,jx=0;jx<Lx.length;jx++)Ax[Mx="bn-".concat(Lx[jx])]=Ax.bn,xx[Mx]=xx.bn,kx[Mx]=kx["en-US"];var Ux=["ar-EG","ar-LB","ar-LY"];wx.dotDecimal=Ux;var $x=["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"];wx.commaDecimal=$x;for(var Bx=0;Bx<Ux.length;Bx++)kx[Ux[Bx]]=kx["en-US"];for(var Nx=0;Nx<$x.length;Nx++)kx[$x[Nx]]=",";Ax["fr-CA"]=Ax["fr-FR"],xx["fr-CA"]=xx["fr-FR"],Ax["pt-BR"]=Ax["pt-PT"],xx["pt-BR"]=xx["pt-PT"],kx["pt-BR"]=kx["pt-PT"],Ax["pl-Pl"]=Ax["pl-PL"],xx["pl-Pl"]=xx["pl-PL"],kx["pl-Pl"]=kx["pl-PL"],Ax["fa-AF"]=Ax.fa,Object.defineProperty(yx,"__esModule",{value:!0}),yx.default=function(e,t){(0,Gx.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)},yx.locales=void 0;var Fx,Gx=(Fx=bx.exports)&&Fx.__esModule?Fx:{default:Fx},zx=wx;var Hx=Object.keys(zx.decimal);yx.locales=Hx,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}}(yx);e.exports=t.default,e.exports.default=t.default}(_x,_x.exports);var Zx={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}}(bx.exports);e.exports=t.default,e.exports.default=t.default}(Zx,Zx.exports);var Kx={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}}(bx.exports);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(e,t){return(0,r.default)(e),e===t};var r=function(e){return e&&e.__esModule?e:{default:e}}(bx.exports);e.exports=t.default,e.exports.default=t.default}(qx,qx.exports);var Wx={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){"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}(Vx,Vx.exports);var Yx={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}(Yx,Yx.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,a){if((0,r.default)(e),a=(0,o.default)(a,i),a.ignoreCase)return e.toLowerCase().split((0,n.default)(t).toLowerCase()).length>a.minOccurrences;return e.split((0,n.default)(t)).length>a.minOccurrences};var r=a(bx.exports),n=a(Vx.exports),o=a(Yx.exports);function a(e){return e&&e.__esModule?e:{default:e}}var i={ignoreCase:!1,minOccurrences:1};e.exports=t.default,e.exports.default=t.default}(Wx,Wx.exports);var Jx={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}}(bx.exports);e.exports=t.default,e.exports.default=t.default}(Jx,Jx.exports);var Qx={exports:{}},Xx={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var o,a;(0,r.default)(e),"object"===n(t)?(o=t.min||0,a=t.max):(o=arguments[1],a=arguments[2]);var i=encodeURI(e).split(/%..|./).length-1;return i>=o&&(void 0===a||i<=a)};var r=function(e){return e&&e.__esModule?e:{default:e}}(bx.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}(Xx,Xx.exports);var ek={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e),t=(0,n.default)(t,a),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 o=e.split("."),i=o[o.length-1];if(t.require_tld){if(o.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(i))return!1;if(/\s/.test(i))return!1}if(!t.allow_numeric_tld&&/^\d+$/.test(i))return!1;return o.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=o(bx.exports),n=o(Yx.exports);function o(e){return e&&e.__esModule?e:{default:e}}var a={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}(ek,ek.exports);var tk={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 a.test(t);if("6"===n)return s.test(t);return!1};var r=function(e){return e&&e.__esModule?e:{default:e}}(bx.exports);var n="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",o="(".concat(n,"[.]){3}").concat(n),a=new RegExp("^".concat(o,"$")),i="(?:[0-9a-fA-F]{1,4})",s=new RegExp("^("+"(?:".concat(i,":){7}(?:").concat(i,"|:)|")+"(?:".concat(i,":){6}(?:").concat(o,"|:").concat(i,"|:)|")+"(?:".concat(i,":){5}(?::").concat(o,"|(:").concat(i,"){1,2}|:)|")+"(?:".concat(i,":){4}(?:(:").concat(i,"){0,1}:").concat(o,"|(:").concat(i,"){1,3}|:)|")+"(?:".concat(i,":){3}(?:(:").concat(i,"){0,2}:").concat(o,"|(:").concat(i,"){1,4}|:)|")+"(?:".concat(i,":){2}(?:(:").concat(i,"){0,3}:").concat(o,"|(:").concat(i,"){1,5}|:)|")+"(?:".concat(i,":){1}(?:(:").concat(i,"){0,4}:").concat(o,"|(:").concat(i,"){1,6}|:)|")+"(?::((?::".concat(i,"){0,5}:").concat(o,"|(?::").concat(i,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");e.exports=t.default,e.exports.default=t.default}(tk,tk.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("@"),b=g.pop(),_=b.toLowerCase();if(t.host_blacklist.includes(_))return!1;if(t.host_whitelist.length>0&&!t.host_whitelist.includes(_))return!1;var y=g.join("@");if(t.domain_specific_validation&&("gmail.com"===_||"googlemail.com"===_)){var w=(y=y.toLowerCase()).split("+")[0];if(!(0,o.default)(w.replace(/\./g,""),{min:6,max:30}))return!1;for(var A=w.split("."),x=0;x<A.length;x++)if(!l.test(A[x]))return!1}if(!(!1!==t.ignore_max_length||(0,o.default)(y,{max:64})&&(0,o.default)(b,{max:254})))return!1;if(!(0,a.default)(b,{require_tld:t.require_tld,ignore_max_length:t.ignore_max_length})){if(!t.allow_ip_domain)return!1;if(!(0,i.default)(b)){if(!b.startsWith("[")||!b.endsWith("]"))return!1;var k=b.slice(1,-1);if(0===k.length||!(0,i.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("."),R=0;R<S.length;R++)if(!E.test(S[R]))return!1;if(t.blacklisted_chars&&-1!==y.search(new RegExp("[".concat(t.blacklisted_chars,"]+"),"g")))return!1;return!0};var r=s(bx.exports),n=s(Yx.exports),o=s(Xx.exports),a=s(ek.exports),i=s(tk.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}(Qx,Qx.exports);var rk={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,a.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 i,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(i=v.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(i))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 b=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,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}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[0],y=b[1];if(""===_&&""===y)return!1}p=v.join("@"),m=null,g=null;var w=p.match(c);w?(f="",g=w[1],m=w[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,o.default)(f)||(0,n.default)(f,t)||g&&(0,o.default)(g,6)))return!1;if(f=f||g,t.host_blacklist&&l(f,t.host_blacklist))return!1;return!0};var r=i(bx.exports),n=i(ek.exports),o=i(tk.exports),a=i(Yx.exports);function i(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}(rk,rk.exports);var nk={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?o.test(t):"64"===c.eui?s.test(t):o.test(t)||s.test(t);if("48"===(null==c?void 0:c.eui))return n.test(t)||a.test(t);if("64"===(null==c?void 0:c.eui))return i.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}}(bx.exports);var n=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){4}([0-9a-fA-F]{2})$/,o=/^([0-9a-fA-F]){12}$/,a=/^([0-9a-fA-F]{4}\.){2}([0-9a-fA-F]{4})$/,i=/^(?:[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}(nk,nk.exports);var ok={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 o=e.split("/");if(2!==o.length)return!1;if(!a.test(o[1]))return!1;if(o[1].length>1&&o[1].startsWith("0"))return!1;var u=(0,n.default)(o[0],t);if(!u)return!1;var c=null;switch(String(t)){case"4":c=i;break;case"6":c=s;break;default:c=(0,n.default)(o[0],"6")?s:i}return o[1]<=c&&o[1]>=0};var r=o(bx.exports),n=o(tk.exports);function o(e){return e&&e.__esModule?e:{default:e}}var a=/^\d{1,3}$/,i=32,s=128;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,t){t="string"==typeof t?(0,r.default)({format:t},i):(0,r.default)(t,i);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 a,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),o=0;o<n;o++)r.push([e[o],t[o]]);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=o(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 i,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,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw i}}}}(c);try{for(l.s();!(a=l.n()).done;){var f=n(a.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}}(Yx.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,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return r}(e,t)||o(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 o(e,t){if(e){if("string"==typeof e)return a(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)?a(e,t):void 0}}function a(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 i={format:"YYYY/MM/DD",delimiters:["/","-"],strictMode:!1};e.exports=t.default,e.exports.default=t.default}(ak,ak.exports);var ik={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&&o[t.hourFormat][t.mode].test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(Yx.exports);var n={hourFormat:"hour24",mode:"default"},o={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}(ik,ik.exports);var sk={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 a.includes(e.toLowerCase());return o.includes(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(bx.exports);var n={loose:!1},o=["true","false","1","0"],a=[].concat(o,["yes","no"]);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){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}}(bx.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}(uk,uk.exports);var ck={};Object.defineProperty(ck,"__esModule",{value:!0}),ck.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,dk.default)(e);var n=e,o=r.ignore;if(o)if(o instanceof RegExp)n=n.replace(o,"");else{if("string"!=typeof o)throw new Error("ignore should be instance of a String or RegExp");n=n.replace(new RegExp("[".concat(o.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in lk.alpha)return lk.alpha[t].test(n);throw new Error("Invalid locale '".concat(t,"'"))},ck.locales=void 0;var dk=function(e){return e&&e.__esModule?e:{default:e}}(bx.exports),lk=wx;var fk=Object.keys(lk.alpha);ck.locales=fk;var pk={};Object.defineProperty(pk,"__esModule",{value:!0}),pk.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,hk.default)(e);var n=e,o=r.ignore;if(o)if(o instanceof RegExp)n=n.replace(o,"");else{if("string"!=typeof o)throw new Error("ignore should be instance of a String or RegExp");n=n.replace(new RegExp("[".concat(o.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in mk.alphanumeric)return mk.alphanumeric[t].test(n);throw new Error("Invalid locale '".concat(t,"'"))},pk.locales=void 0;var hk=function(e){return e&&e.__esModule?e:{default:e}}(bx.exports),mk=wx;var vk=Object.keys(mk.alphanumeric);pk.locales=vk;var gk={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 o.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}}(bx.exports),n=wx;var o=/^[0-9]+$/;e.exports=t.default,e.exports.default=t.default}(gk,gk.exports);var bk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);var o=e.replace(/\s/g,"").toUpperCase();return t.toUpperCase()in n&&n[t].test(o)};var r=function(e){return e&&e.__esModule?e:{default:e}}(bx.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}(bk,bk.exports);var _k={exports:{}},yk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e),t=t||{};var a=t.hasOwnProperty("allow_leading_zeroes")&&!t.allow_leading_zeroes?n:o,i=!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 a.test(e)&&i&&s&&u&&c};var r=function(e){return e&&e.__esModule?e:{default:e}}(bx.exports);var n=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,o=/^[-+]?[0-9]+$/;e.exports=t.default,e.exports.default=t.default}(yk,yk.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}}(yk.exports);e.exports=t.default,e.exports.default=t.default}(_k,_k.exports);var wk={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}}(bx.exports);e.exports=t.default,e.exports.default=t.default}(wk,wk.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}}(bx.exports);e.exports=t.default,e.exports.default=t.default}(Ak,Ak.exports);var xk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e),t=t||{};var a=n;t.allow_hyphens&&(a=o);if(!a.test(e))return!1;e=e.replace(/-/g,"");for(var i=0,s=2,u=0;u<14;u++){var c=e.substring(14-u-1,14-u),d=parseInt(c,10)*s;i+=d>=10?d%10+1:d,1===s?s+=1:s-=1}if((10-i%10)%10!==parseInt(e.substring(14,15),10))return!1;return!0};var r=function(e){return e&&e.__esModule?e:{default:e}}(bx.exports);var n=/^[0-9]{15}$/,o=/^\d{2}-\d{6}-\d{6}-\d{1}$/;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),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(bx.exports);var n=/^[\x00-\x7F]+$/;e.exports=t.default,e.exports.default=t.default}(kk,kk.exports);var Ek={};Object.defineProperty(Ek,"__esModule",{value:!0}),Ek.default=function(e){return(0,Sk.default)(e),Rk.test(e)},Ek.fullWidth=void 0;var Sk=function(e){return e&&e.__esModule?e:{default:e}}(bx.exports);var Rk=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;Ek.fullWidth=Rk;var Dk={};Object.defineProperty(Dk,"__esModule",{value:!0}),Dk.default=function(e){return(0,Tk.default)(e),Ok.test(e)},Dk.halfWidth=void 0;var Tk=function(e){return e&&e.__esModule?e:{default:e}}(bx.exports);var Ok=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;Dk.halfWidth=Ok;var Ik={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.fullWidth.test(e)&&o.halfWidth.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(bx.exports),n=Ek,o=Dk;e.exports=t.default,e.exports.default=t.default}(Ik,Ik.exports);var Ck={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}}(bx.exports);var n=/[^\x00-\x7F]/;e.exports=t.default,e.exports.default=t.default}(Ck,Ck.exports);var Pk={exports:{}},Lk={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}(Lk,Lk.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),o.test(e)};var r=n(bx.exports);function n(e){return e&&e.__esModule?e:{default:e}}var o=(0,n(Lk.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}(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}}(bx.exports);var n=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;e.exports=t.default,e.exports.default=t.default}(Mk,Mk.exports);var jk={exports:{}},Uk={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}(Uk,Uk.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 a.decimal)return!(0,o.default)(u,e.replace(/ /g,""))&&function(e){var t=new RegExp("^[-+]?([0-9]+)?(\\".concat(a.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=i(Yx.exports),n=i(bx.exports),o=i(Uk.exports),a=wx;function i(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}(jk,jk.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}}(bx.exports);var n=/^(0x|0h)?[0-9A-F]+$/i;e.exports=t.default,e.exports.default=t.default}($k,$k.exports);var Bk={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}}(bx.exports);var n=/^(0o)?[0-7]+$/i;e.exports=t.default,e.exports.default=t.default}(Bk,Bk.exports);var Nk={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=o(bx.exports),n=o(_x.exports);function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default}(Nk,Nk.exports);var Fk={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}}(bx.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}(Fk,Fk.exports);var Gk={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)||o.test(e);return n.test(e)||o.test(e)||a.test(e)||i.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(bx.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])\)$/,o=/^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)?)\)$/,a=/^rgb\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]%|100%)\)$/,i=/^rgba\((([0-9]%|[1-9][0-9]%|100%),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/;e.exports=t.default,e.exports.default=t.default}(Gk,Gk.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 o.test(t)};var r=function(e){return e&&e.__esModule?e:{default:e}}(bx.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,o=/^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 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}}(bx.exports);var n=/^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;e.exports=t.default,e.exports.default=t.default}(Hk,Hk.exports);var Zk={};Object.defineProperty(Zk,"__esModule",{value:!0}),Zk.default=function(e){return(0,Kk.default)(e),function(e){var t=e.replace(/[\s\-]+/gi,"").toUpperCase(),r=t.slice(0,2).toUpperCase();return r in qk&&qk[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)},Zk.locales=void 0;var Kk=function(e){return e&&e.__esModule?e:{default:e}}(bx.exports);var qk={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 Wk=Object.keys(qk);Zk.locales=Wk;var Vk={exports:{}},Yk={};Object.defineProperty(Yk,"__esModule",{value:!0}),Yk.default=function(e){return(0,Jk.default)(e),Qk.has(e.toUpperCase())},Yk.CountryCodes=void 0;var Jk=function(e){return e&&e.__esModule?e:{default:e}}(bx.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"]);var Xk=Qk;Yk.CountryCodes=Xk,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 o.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(bx.exports),n=Yk;var o=/^[A-Za-z]{6}[A-Za-z0-9]{2}([A-Za-z0-9]{3})?$/;e.exports=t.default,e.exports.default=t.default}(Vk,Vk.exports);var eE={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}}(bx.exports);var n=/^[a-f0-9]{32}$/;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){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}}(bx.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}(tE,tE.exports);var rE={exports:{}},nE={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 o=e.length;if(t.urlSafe)return i.test(e);if(o%4!=0||a.test(e))return!1;var u=e.indexOf("=");return-1===u||u===o-1||u===o-2&&"="===e[o-1]};var r=o(bx.exports),n=o(Yx.exports);function o(e){return e&&e.__esModule?e:{default:e}}var a=/[^A-Z0-9+\/=]/i,i=/^[A-Z0-9_\-]*$/i,s={urlSafe:!1};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){(0,r.default)(e);var t=e.split("."),o=t.length;if(o>3||o<2)return!1;return t.reduce((function(e,t){return e&&(0,n.default)(t,{urlSafe:!0})}),!0)};var r=o(bx.exports),n=o(nE.exports);function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default}(rE,rE.exports);var oE={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,i);var o=[];t.allow_primitives&&(o=[null,!1,!0]);var s=JSON.parse(e);return o.includes(s)||!!s&&"object"===a(s)}catch(e){}return!1};var r=o(bx.exports),n=o(Yx.exports);function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="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},a(e)}var i={allow_primitives:!1};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,t){return(0,r.default)(e),t=(0,n.default)(t,a),0===(t.ignore_whitespace?e.trim().length:e.length)};var r=o(bx.exports),n=o(Yx.exports);function o(e){return e&&e.__esModule?e:{default:e}}var a={ignore_whitespace:!1};e.exports=t.default,e.exports.default=t.default}(aE,aE.exports);var iE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var o,a;(0,r.default)(e),"object"===n(t)?(o=t.min||0,a=t.max):(o=arguments[1]||0,a=arguments[2]);var i=e.match(/(\uFE0F|\uFE0E)/g)||[],s=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],u=e.length-i.length-s.length;return u>=o&&(void 0===a||u<=a)};var r=function(e){return e&&e.__esModule?e:{default:e}}(bx.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}(iE,iE.exports);var sE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);var o=n[[void 0,null].includes(t)?"all":t];return!!o&&o.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(bx.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}(sE,sE.exports);var uE={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=o(bx.exports),n=o($k.exports);function o(e){return e&&e.__esModule?e:{default: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){var n=(null==t?void 0:t.comparisonDate)||t||Date().toString(),o=(0,r.default)(n),a=(0,r.default)(e);return!!(a&&o&&a>o)};var r=function(e){return e&&e.__esModule?e:{default:e}}(gx.exports);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){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:String(new Date);(0,r.default)(e);var o=(0,n.default)(t),a=(0,n.default)(e);return!!(a&&o&&a<o)};var r=o(bx.exports),n=o(gx.exports);function o(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 o;if((0,r.default)(e),"[object Array]"===Object.prototype.toString.call(t)){var i=[];for(o in t)({}).hasOwnProperty.call(t,o)&&(i[o]=(0,n.default)(t[o]));return i.indexOf(e)>=0}if("object"===a(t))return t.hasOwnProperty(e);if(t&&"function"==typeof t.indexOf)return t.indexOf(e)>=0;return!1};var r=o(bx.exports),n=o(Vx.exports);function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="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},a(e)}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){(0,r.default)(e);for(var t,n,o,a=e.replace(/[- ]+/g,""),i=0,s=a.length-1;s>=0;s--)t=a.substring(s,s+1),n=parseInt(t,10),i+=o&&(n*=2)>=10?n%10+1:n,o=!o;return!(i%10!=0||!a)};var r=function(e){return e&&e.__esModule?e:{default:e}}(bx.exports);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){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,r.default)(e);var o=t.provider,s=e.replace(/[- ]+/g,"");if(o&&o.toLowerCase()in a){if(!a[o.toLowerCase()].test(s))return!1}else{if(o&&!(o.toLowerCase()in a))throw new Error("".concat(o," is not a valid credit card provider."));if(!i.test(s))return!1}return(0,n.default)(e)};var r=o(bx.exports),n=o(fE.exports);function o(e){return e&&e.__esModule?e:{default:e}}var a={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})?$/},i=/^(?: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}(pE,pE.exports);var hE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),t in a)return a[t](e);if("any"===t){for(var n in a){if(a.hasOwnProperty(n))if((0,a[n])(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var r=o(bx.exports),n=o(yk.exports);function o(e){return e&&e.__esModule?e:{default:e}}var a={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 o=e.split("").slice(0,-1).reduce((function(e,r,n){return e+Number(r)*t[n+1]}),0),a=o%10,i=Number(e.charAt(e.length-1));if(0===a&&0===i||i===10-a)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 o=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"][o%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 o=0;return n.replace(/\s/g,"").split("").map(Number).reverse().forEach((function(e,n){o=t[o][r[n%8][e]]})),0===o},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,o=(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]&&o===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,o=0,a=0;a<n.length;a++)o+=(r=Number(n[a])*(a%2+1))>9?r-9:r;return o%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"],o=["1","0","X","9","8","7","6","5","4","3","2"],a=function(e){return r.includes(e)},i=function(e){var t=parseInt(e.substring(0,4),10),r=parseInt(e.substring(4,6),10),n=parseInt(e.substring(6),10),o=new Date(t,r-1,n);return!(o>new Date)&&(o.getFullYear()===t&&o.getMonth()===r-1&&o.getDate()===n)},s=function(e){return function(e){for(var t=e.substring(0,17),r=0,a=0;a<17;a++)r+=parseInt(t.charAt(a),10)*parseInt(n[a],10);return o[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=a(r)))return!1;var n="19".concat(e.substring(6,12));return!!(t=i(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=a(r)))return!1;var n=e.substring(6,14);return!!(t=i(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 o=t[r];return o%10*9+Math.floor(o/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}(hE,hE.exports);var mE={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 a.test(e)&&t===(i=e,s=i.slice(0,-1).split("").map((function(e,t){return Number(e)*function(e,t){return e===n||e===o?t%2==0?3:1:t%2==0?1:3}(i.length,t)})).reduce((function(e,t){return e+t}),0),u=10-s%10,u<10?u:0);var i,s,u};var r=function(e){return e&&e.__esModule?e:{default:e}}(bx.exports);var n=8,o=14,a=/^(\d{8}|\d{13}|\d{14})$/;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){if((0,r.default)(e),!n.test(e))return!1;for(var t=!0,o=0,a=e.length-2;a>=0;a--)if(e[a]>="A"&&e[a]<="Z")for(var i=e[a].charCodeAt(0)-55,s=0,u=[i%10,Math.trunc(i/10)];s<u.length;s++){var c=u[s];o+=t?c>=5?1+2*(c-5):2*c:c,t=!t}else{var d=e[a].charCodeAt(0)-"0".charCodeAt(0);o+=t?d>=5?1+2*(d-5):2*d:d,t=!t}var l=10*Math.trunc((o+9)/10)-o;return+e[e.length-1]===l};var r=function(e){return e&&e.__esModule?e:{default:e}}(bx.exports);var n=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;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(t,i){(0,r.default)(t);var s=String((null==i?void 0:i.version)||i);if(!(null!=i&&i.version||i))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(!o.test(u))return!1;for(var l=0;l<12;l++)c+=a[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}}(bx.exports);var n=/^(?:[0-9]{9}X|[0-9]{10})$/,o=/^(?:[0-9]{13})$/,a=[1,3];e.exports=t.default,e.exports.default=t.default}(gE,gE.exports);var bE={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 o=n;if(o=t.require_hyphen?o.replace("?",""):o,o=t.case_sensitive?new RegExp(o):new RegExp(o,"i"),!o.test(e))return!1;for(var a=e.replace("-","").toUpperCase(),i=0,s=0;s<a.length;s++){var u=a[s];i+=("X"===u?10:+u)*(8-s)}return i%11==0};var r=function(e){return e&&e.__esModule?e:{default:e}}(bx.exports);var n="^\\d{4}-?\\d{3}[\\dX]$";e.exports=t.default,e.exports.default=t.default}(bE,bE.exports);var _E={exports:{}},yE={};Object.defineProperty(yE,"__esModule",{value:!0}),yE.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)},yE.luhnCheck=function(e){for(var t=0,r=!1,n=e.length-1;n>=0;n--){if(r){var o=2*parseInt(e[n],10);t+=o>9?o.toString().split("").map((function(e){return parseInt(e,10)})).reduce((function(e,t){return e+t}),0):o}else t+=parseInt(e[n],10);r=!r}return t%10==0},yE.reverseMultiplyAndSum=function(e,t){for(var r=0,n=0;n<e.length;n++)r+=e[n]*(t-n);return r},yE.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(""),o=0,a=0;a<n.length;a++)o=t[o][r[a%8][parseInt(n[a],10)]];return 0===o},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(bx.exports),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(yE),a=s(ak.exports);function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=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,a.default)(n,"YYYY/MM/DD"))return!1;for(var o=e.split("").map((function(e){return parseInt(e,10)})),i=[2,4,8,5,10,9,7,3,6],s=0,u=0;u<i.length;u++)s+=o[u]*i[u];return(s=s%11==10?0:s%11)===o[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,a.default)(n,"YYYY/MM/DD"))return!1;if(10===e.length&&parseInt(e,10)%11!=0){var o=parseInt(e.slice(0,9),10)%11;if(!(parseInt(t,10)<1986&&10===o))return!1;if(0!==parseInt(e.slice(9),10))return!1}return!0},"de-AT":function(e){return o.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 a=0;a<t.length-1;a++)t[n]===t[a]&&(r[n]+=a)}if(2!==(r=r.filter((function(e){return e.length>1}))).length&&3!==r.length)return!1;if(3===r[0].length){for(var i=r[0].split("").map((function(e){return parseInt(e,10)})),s=0,u=0;u<i.length-1;u++)i[u]+1===i[u+1]&&(s+=1);if(2===s)return!1}return o.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,a.default)(r,"YYYY/MM/DD"))return!1;for(var n=e.split("").map((function(e){return parseInt(e,10)})),o=0,i=4,s=0;s<9;s++)o+=n[s]*i,1===(i-=1)&&(i=7);return 1!==(o%=11)&&(0===o?0===n[9]:n[9]===11-o)},"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 o=0;o<t.length;o+=2)t[o]<2?r+=1-t[o]:(r+=2*(t[o]-2)+5,t[o]>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=o.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,a.default)(r,"YYYY/MM/DD"))return!1;for(var n=e.split("").map((function(e){return parseInt(e,10)})),o=0,i=1,s=0;s<10;s++)o+=n[s]*i,10===(i+=1)&&(i=1);if(o%11==10){o=0,i=3;for(var u=0;u<10;u++)o+=n[u]*i,10===(i+=1)&&(i=1);if(o%11==10)return 0===n[10]}return o%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,a.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,a.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,a.default)(t,"YYYY/MM/DD")&&(!!o.luhnCheck(e.slice(0,12))&&o.verhoeffCheck("".concat(e.slice(0,11)).concat(e[12])))},"hr-HR":function(e){return o.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,o=[6,7,9,10,12,13,14];n<o.length;n++){var i=o[n];t[i]in r&&t.splice(i,1,r[t[i]])}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,a.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,a.default)(n,"YYYY/MM/DD"))return!1}for(var o=1101,i=[1,6,3,7,9,10,5,8,4,2],s=0;s<e.length-1;s++)o-=parseInt(e[s],10)*i[s];return parseInt(e[10],10)===o%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 o.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 o=e.slice(0,2),i=parseInt(e.slice(2,4),10);i>80?(o="18".concat(o),i-=80):i>60?(o="22".concat(o),i-=60):i>40?(o="21".concat(o),i-=40):i>20?(o="20".concat(o),i-=20):o="19".concat(o),i<10&&(i="0".concat(i));var s="".concat(o,"/").concat(i,"/").concat(e.slice(4,6));if(!(0,a.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 o=1;o<=10;o++)t+=parseInt(e.substring(o-1,o),10)*(12-o);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 a=e.length-2,i=e.substring(0,a),s=e.substring(a),u=0,c=a-7,d=a;d>=1;d--)u+=i.charAt(a-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;a+=1,i=e.substring(0,a),u=0,c=a-7;for(var f=a;f>=1;f--)u+=i.charAt(a-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-o.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,a.default)(r,"YY/MM/DD"))return!1}else if(!(0,a.default)(r,"YYYY/MM/DD"))return!1;for(var n=e.split("").map((function(e){return parseInt(e,10)})),o=[2,7,9,1,4,6,3,5,8,2,7,9],i=0,s=0;s<o.length;s++)i+=n[s]*o[s];return i%11==10?1===n[12]:n[12]===i%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,a.default)(n,"YYYY/MM/DD"))return!1}return!0},"sl-SI":function(e){var t=11-o.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),i=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&&i<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}i>60&&(i-=60),i<10&&(i="0".concat(i));var c="".concat(r,"/").concat(n,"/").concat(i);if(8===c.length){if(!(0,a.default)(c,"YY/MM/DD"))return!1}else if(!(0,a.default)(c,"YYYY/MM/DD"))return!1;return o.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 wE={};Object.defineProperty(wE,"__esModule",{value:!0}),wE.default=function(e,t,r){if((0,AE.default)(e),r&&r.strictMode&&!e.startsWith("+"))return!1;if(Array.isArray(t))return t.some((function(t){if(xE.hasOwnProperty(t)&&xE[t].test(e))return!0;return!1}));if(t in xE)return xE[t].test(e);if(!t||"any"===t){for(var n in xE){if(xE.hasOwnProperty(n))if(xE[n].test(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))},wE.locales=void 0;var AE=function(e){return e&&e.__esModule?e:{default:e}}(bx.exports);var xE={"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})$/};xE["en-CA"]=xE["en-US"],xE["fr-CA"]=xE["en-CA"],xE["fr-BE"]=xE["nl-BE"],xE["zh-HK"]=xE["en-HK"],xE["zh-MO"]=xE["en-MO"],xE["ga-IE"]=xE["en-IE"],xE["fr-CH"]=xE["de-CH"],xE["it-CH"]=xE["fr-CH"];var kE=Object.keys(xE);wE.locales=kE;var EE={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}}(bx.exports);var n=/^(0x)[0-9a-f]{40}$/i;e.exports=t.default,e.exports.default=t.default}(EE,EE.exports);var SE={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,a),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="-?",o="[1-9]\\d{0,2}(\\".concat(e.thousands_separator,"\\d{3})*"),a="(".concat(["0","[1-9]\\d*",o].join("|"),")?"),i="(\\".concat(e.decimal_separator,"(").concat(t,"))").concat(e.require_decimal?"":"?"),s=a+(e.allow_decimal||e.require_decimal?i:"");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=o(Yx.exports),n=o(bx.exports);function o(e){return e&&e.__esModule?e:{default:e}}var a={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}(SE,SE.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)||o.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(bx.exports);var n=/^(bc1)[a-z0-9]{25,39}$/,o=/^(1|3)[A-HJ-NP-Za-km-z1-9]{25,39}$/;e.exports=t.default,e.exports.default=t.default}(RE,RE.exports);var DE={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}}(bx.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}(DE,DE.exports);var TE={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.strictSeparator?o.test(e):n.test(e);return i&&t.strict?a(e):i};var r=function(e){return e&&e.__esModule?e:{default:e}}(bx.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)?)?)?)?$/,o=/^([\+-]?\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)?)?)?)?$/,a=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 o=e.match(/(\d{4})-?(\d{0,2})-?(\d*)/).map(Number),a=o[1],i=o[2],s=o[3],u=i?"0".concat(i).slice(-2):i,c=s?"0".concat(s).slice(-2):s,d=new Date("".concat(a,"-").concat(u||"01","-").concat(c||"01"));return!i||!s||d.getUTCFullYear()===a&&d.getUTCMonth()+1===i&&d.getUTCDate()===s};e.exports=t.default,e.exports.default=t.default}(TE,TE.exports);var OE={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}}(bx.exports);var n=/([01][0-9]|2[0-3])/,o=/[0-5][0-9]/,a=new RegExp("[-+]".concat(n.source,":").concat(o.source)),i=new RegExp("([zZ]|".concat(a.source,")")),s=new RegExp("".concat(n.source,":").concat(o.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(i.source)),d=new RegExp("^".concat(u.source,"[ tT]").concat(c.source,"$"));e.exports=t.default,e.exports.default=t.default}(OE,OE.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}}(bx.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.default=function(e){return(0,PE.default)(e),LE.has(e.toUpperCase())},CE.CurrencyCodes=void 0;var PE=function(e){return e&&e.__esModule?e:{default:e}}(bx.exports);var LE=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 ME=LE;CE.CurrencyCodes=ME;var jE={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 i.test(e);var o=e.length;if(o%8==0&&a.test(e))return!0;return!1};var r=o(bx.exports),n=o(Yx.exports);function o(e){return e&&e.__esModule?e:{default:e}}var a=/^[A-Z2-7]+=*$/,i=/^[A-HJKMNP-TV-Z0-9]+$/,s={crockford:!1};e.exports=t.default,e.exports.default=t.default}(jE,jE.exports);var UE={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}}(bx.exports);var n=/^[A-HJ-NP-Za-km-z1-9]*$/;e.exports=t.default,e.exports.default=t.default}(UE,UE.exports);var $E={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 i=t.shift().trim().split(";"),s=i.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<i.length;c++)if((c!==i.length-1||"base64"!==i[c].toLowerCase())&&!o.test(i[c]))return!1;for(var d=0;d<t.length;d++)if(!a.test(t[d]))return!1;return!0};var r=function(e){return e&&e.__esModule?e:{default:e}}(bx.exports);var n=/^[a-z]+\/[a-z0-9\-\+\._]+$/i,o=/^[a-z\-]+=[a-z0-9\-]+$/i,a=/^[a-z0-9!\$&'\(\)\*\+,;=\-\._~:@\/\?%\s]*$/i;e.exports=t.default,e.exports.default=t.default}($E,$E.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}}(bx.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 NE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.test(e)||o.test(e)||a.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(bx.exports);var n=/^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9\.\-\+_]{1,100}$/i,o=/^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,a=/^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}(NE,NE.exports);var FE={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 o=e.split(",");if(o[0].startsWith("(")&&!o[1].endsWith(")")||o[1].endsWith(")")&&!o[0].startsWith("("))return!1;if(t.checkDMS)return s.test(o[0])&&u.test(o[1]);return a.test(o[0])&&i.test(o[1])};var r=o(bx.exports),n=o(Yx.exports);function o(e){return e&&e.__esModule?e:{default:e}}var a=/^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/,i=/^\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}(FE,FE.exports);var GE={};Object.defineProperty(GE,"__esModule",{value:!0}),GE.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,"'"))},GE.locales=void 0;var zE=function(e){return e&&e.__esModule?e:{default:e}}(bx.exports);var HE=/^\d{3}$/,ZE=/^\d{4}$/,KE=/^\d{5}$/,qE=/^\d{6}$/,WE={AD:/^AD\d{3}$/,AT:ZE,AU:ZE,AZ:/^AZ\d{4}$/,BA:/^([7-8]\d{4}$)/,BE:ZE,BG:ZE,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:ZE,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:KE,DK:ZE,DO:KE,DZ:KE,EE:KE,ES:/^(5[0-2]{1}|[0-4]{1}\d{1})\d{3}$/,FI:KE,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:ZE,ID:KE,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:HE,IT:KE,JP:/^\d{3}\-\d{4}$/,KE:KE,KR:/^(\d{5}|\d{6})$/,LI:/^(948[5-9]|949[0-7])$/,LT:/^LT\-\d{5}$/,LU:ZE,LV:/^LV\-\d{4}$/,LK:KE,MG:HE,MX:KE,MT:/^[A-Za-z]{3}\s{0,1}\d{4}$/,MY:KE,NL:/^\d{4}\s?[a-z]{2}$/i,NO:ZE,NP:/^(10|21|22|32|33|34|44|45|56|57)\d{3}$|^(977)$/i,NZ:ZE,PL:/^\d{2}\-\d{3}$/,PR:/^00[679]\d{2}([ -]\d{4})?$/,PT:/^\d{4}\-\d{3}?$/,RO:qE,RU:qE,SA:KE,SE:/^[1-9]\d{2}\s?\d{2}$/,SG:qE,SI:ZE,SK:/^\d{3}\s?\d{2}$/,TH:KE,TN:ZE,TW:/^\d{3}(\d{2})?$/,UA:KE,US:/^\d{5}(-\d{4})?$/,ZA:ZE,ZM:KE},VE=Object.keys(WE);GE.locales=VE;var YE={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}}(bx.exports);e.exports=t.default,e.exports.default=t.default}(YE,YE.exports);var JE={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 o=e.length-1;for(;/\s/.test(e.charAt(o));)o-=1;return e.slice(0,o+1)};var r=function(e){return e&&e.__esModule?e:{default:e}}(bx.exports);e.exports=t.default,e.exports.default=t.default}(JE,JE.exports);var QE={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=o(JE.exports),n=o(YE.exports);function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default}(QE,QE.exports);var XE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/\//g,"/").replace(/\\/g,"\").replace(/`/g,"`")};var r=function(e){return e&&e.__esModule?e:{default:e}}(bx.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){return(0,r.default)(e),e.replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(///g,"/").replace(/\/g,"\\").replace(/`/g,"`").replace(/&/g,"&")};var r=function(e){return e&&e.__esModule?e:{default:e}}(bx.exports);e.exports=t.default,e.exports.default=t.default}(eS,eS.exports);var tS={exports:{}},rS={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}}(bx.exports);e.exports=t.default,e.exports.default=t.default}(rS,rS.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);var o=t?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return(0,n.default)(e,o)};var r=o(bx.exports),n=o(rS.exports);function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default}(tS,tS.exports);var nS={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}}(bx.exports);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){(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}}(bx.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){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(o.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(a.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(i.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}}(Yx.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},o=["icloud.com","me.com"],a=["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"],i=["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}(aS,aS.exports);var iS={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}}(bx.exports);var n=/^[^\s-_](?!.*?[-_]{2,})[a-z0-9-\\][^\s]*[^-_\s]$/;e.exports=t.default,e.exports.default=t.default}(iS,iS.exports);var sS={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 o in n){if((0,n[o])(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var r=function(e){return e&&e.__esModule?e:{default:e}}(bx.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}(sS,sS.exports);var uS={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 o=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){a.test(e)?r.uppercaseCount+=t[e]:i.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}(o,t);return o.length>=t.minLength&&o.lowercaseCount>=t.minLowercase&&o.uppercaseCount>=t.minUppercase&&o.numberCount>=t.minNumbers&&o.symbolCount>=t.minSymbols};var r=o(Yx.exports),n=o(bx.exports);function o(e){return e&&e.__esModule?e:{default:e}}var a=/^[A-Z]$/,i=/^[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}(uS,uS.exports);var cS={};function dS(e){return dS="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},dS(e)}Object.defineProperty(cS,"__esModule",{value:!0}),cS.default=function(e,t){if((0,lS.default)(e),(0,lS.default)(t),t in hS)return hS[t](e);throw new Error("Invalid country code: '".concat(t,"'"))},cS.vatMatchers=void 0;var lS=function(e){return e&&e.__esModule?e:{default:e}}(bx.exports),fS=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==dS(e)&&"function"!=typeof e)return{default:e};var t=pS();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(yE);function pS(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return pS=function(){return e},e}var hS={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-fS.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)}};cS.vatMatchers=hS,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(gx.exports),o=qe(_x.exports),a=qe(Zx.exports),i=qe(Kx.exports),s=qe(qx.exports),u=qe(Wx.exports),c=qe(Jx.exports),d=qe(Qx.exports),l=qe(rk.exports),f=qe(nk.exports),p=qe(tk.exports),h=qe(ok.exports),m=qe(ek.exports),v=qe(ak.exports),g=qe(ik.exports),b=qe(sk.exports),_=qe(uk.exports),y=Ke(ck),w=Ke(pk),A=qe(gk.exports),x=qe(bk.exports),k=qe(_k.exports),E=qe(wk.exports),S=qe(Ak.exports),R=qe(xk.exports),D=qe(kk.exports),T=qe(Ek),O=qe(Dk),I=qe(Ik.exports),C=qe(Ck.exports),P=qe(Pk.exports),L=qe(Mk.exports),M=qe(yk.exports),j=Ke(yx),U=qe(jk.exports),$=qe($k.exports),B=qe(Bk.exports),N=qe(Nk.exports),F=qe(Fk.exports),G=qe(Gk.exports),z=qe(zk.exports),H=qe(Hk.exports),Z=Ke(Zk),K=qe(Vk.exports),q=qe(eE.exports),W=qe(tE.exports),V=qe(rE.exports),Y=qe(oE.exports),J=qe(aE.exports),Q=qe(iE.exports),X=qe(Xx.exports),ee=qe(sE.exports),te=qe(uE.exports),re=qe(cE.exports),ne=qe(dE.exports),oe=qe(lE.exports),ae=qe(fE.exports),ie=qe(pE.exports),se=qe(hE.exports),ue=qe(mE.exports),ce=qe(vE.exports),de=qe(gE.exports),le=qe(bE.exports),fe=qe(_E.exports),pe=Ke(wE),he=qe(EE.exports),me=qe(SE.exports),ve=qe(RE.exports),ge=qe(DE.exports),be=qe(TE.exports),_e=qe(OE.exports),ye=qe(Yk),we=qe(IE.exports),Ae=qe(CE),xe=qe(jE.exports),ke=qe(UE.exports),Ee=qe(nE.exports),Se=qe($E.exports),Re=qe(BE.exports),De=qe(NE.exports),Te=qe(FE.exports),Oe=Ke(GE),Ie=qe(YE.exports),Ce=qe(JE.exports),Pe=qe(QE.exports),Le=qe(XE.exports),Me=qe(eS.exports),je=qe(tS.exports),Ue=qe(nS.exports),$e=qe(rS.exports),Be=qe(oS.exports),Ne=qe(aS.exports),Fe=qe(iS.exports),Ge=qe(sS.exports),ze=qe(uS.exports),He=qe(cS);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={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function qe(e){return e&&e.__esModule?e:{default:e}}var We={version:"13.9.0",toDate:n.default,toFloat:o.default,toInt:a.default,toBoolean:i.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:b.default,isIBAN:Z.default,isBIC:K.default,isAlpha:y.default,isAlphaLocales:y.locales,isAlphanumeric:w.default,isAlphanumericLocales:w.locales,isNumeric:A.default,isPassportNumber:x.default,isPort:k.default,isLowercase:E.default,isUppercase:S.default,isAscii:D.default,isFullWidth:T.default,isHalfWidth:O.default,isVariableWidth:I.default,isMultibyte:C.default,isSemVer:P.default,isSurrogatePair:L.default,isInt:M.default,isIMEI:R.default,isFloat:j.default,isFloatLocales:j.locales,isDecimal:U.default,isHexadecimal:$.default,isOctal:B.default,isDivisibleBy:N.default,isHexColor:F.default,isRgbColor:G.default,isHSL:z.default,isISRC:H.default,isMD5:q.default,isHash:W.default,isJWT:V.default,isJSON:Y.default,isEmpty:J.default,isLength:Q.default,isLocale:_.default,isByteLength:X.default,isUUID:ee.default,isMongoId:te.default,isAfter:re.default,isBefore:ne.default,isIn:oe.default,isLuhnNumber:ae.default,isCreditCard:ie.default,isIdentityCard:se.default,isEAN:ue.default,isISIN:ce.default,isISBN:de.default,isISSN:le.default,isMobilePhone:pe.default,isMobilePhoneLocales:pe.locales,isPostalCode:Oe.default,isPostalCodeLocales:Oe.locales,isEthereumAddress:he.default,isCurrency:me.default,isBtcAddress:ve.default,isISO6391:ge.default,isISO8601:be.default,isRFC3339:_e.default,isISO31661Alpha2:ye.default,isISO31661Alpha3:we.default,isISO4217:Ae.default,isBase32:xe.default,isBase58:ke.default,isBase64:Ee.default,isDataURI:Se.default,isMagnetURI:Re.default,isMimeType:De.default,isLatLong:Te.default,ltrim:Ie.default,rtrim:Ce.default,trim:Pe.default,escape:Le.default,unescape:Me.default,stripLow:je.default,whitelist:Ue.default,blacklist:$e.default,isWhitelisted:Be.default,normalizeEmail:Ne.default,toString:toString,isSlug:Fe.default,isStrongPassword:ze.default,isTaxID:fe.default,isDate:v.default,isTime:g.default,isLicensePlate:Ge.default,isVAT:He.default,ibanLocales:Z.locales};t.default=We,e.exports=t.default,e.exports.default=t.default}(vx,vx.exports);var mS=a(vx.exports);const vS=2147483647,gS=36,bS=/^xn--/,_S=/[^\0-\x7F]/,yS=/[\x2E\u3002\uFF0E\uFF61]/g,wS={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},AS=Math.floor,xS=String.fromCharCode;function kS(e){throw new RangeError(wS[e])}function ES(e,t){const r=e.split("@");let n="";r.length>1&&(n=r[0]+"@",e=r[1]);const o=function(e,t){const r=[];let n=e.length;for(;n--;)r[n]=t(e[n]);return r}((e=e.replace(yS,".")).split("."),t).join(".");return n+o}function SS(e){const t=[];let r=0;const n=e.length;for(;r<n;){const o=e.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){const n=e.charCodeAt(r++);56320==(64512&n)?t.push(((1023&o)<<10)+(1023&n)+65536):(t.push(o),r--)}else t.push(o)}return t}const RS=e=>String.fromCodePoint(...e),DS=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},TS=function(e,t,r){let n=0;for(e=r?AS(e/700):e>>1,e+=AS(e/t);e>455;n+=gS)e=AS(e/35);return AS(n+36*e/(e+38))},OS=function(e){const t=[],r=e.length;let n=0,o=128,a=72,i=e.lastIndexOf("-");i<0&&(i=0);for(let r=0;r<i;++r)e.charCodeAt(r)>=128&&kS("not-basic"),t.push(e.charCodeAt(r));for(let u=i>0?i+1:0;u<r;){const i=n;for(let t=1,o=gS;;o+=gS){u>=r&&kS("invalid-input");const i=(s=e.charCodeAt(u++))>=48&&s<58?s-48+26:s>=65&&s<91?s-65:s>=97&&s<123?s-97:gS;i>=gS&&kS("invalid-input"),i>AS((vS-n)/t)&&kS("overflow"),n+=i*t;const c=o<=a?1:o>=a+26?26:o-a;if(i<c)break;const d=gS-c;t>AS(vS/d)&&kS("overflow"),t*=d}const c=t.length+1;a=TS(n-i,c,0==i),AS(n/c)>vS-o&&kS("overflow"),o+=AS(n/c),n%=c,t.splice(n++,0,o)}var s;return String.fromCodePoint(...t)},IS=function(e){const t=[],r=(e=SS(e)).length;let n=128,o=0,a=72;for(const r of e)r<128&&t.push(xS(r));const i=t.length;let s=i;for(i&&t.push("-");s<r;){let r=vS;for(const t of e)t>=n&&t<r&&(r=t);const u=s+1;r-n>AS((vS-o)/u)&&kS("overflow"),o+=(r-n)*u,n=r;for(const r of e)if(r<n&&++o>vS&&kS("overflow"),r===n){let e=o;for(let r=gS;;r+=gS){const n=r<=a?1:r>=a+26?26:r-a;if(e<n)break;const o=e-n,i=gS-n;t.push(xS(DS(n+o%i,0))),e=AS(o/i)}t.push(xS(DS(e,0))),a=TS(o,u,s===i),o=0,++s}++o,++n}return t.join("")},CS=function(e){return ES(e,(function(e){return bS.test(e)?OS(e.slice(4).toLowerCase()):e}))},PS=function(e){return ES(e,(function(e){return _S.test(e)?"xn--"+IS(e):e}))},LS={version:"2.1.0",ucs2:{decode:SS,encode:RS},decode:OS,encode:IS,toASCII:PS,toUnicode:CS};var MS=Object.freeze({__proto__:null,ucs2decode:SS,ucs2encode:RS,decode:OS,encode:IS,toASCII:PS,toUnicode:CS,default:LS}),jS=i(MS),US={"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 $S=jS,BS=US,NS={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 FS=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=$S.toASCII(e)),e.length>253)return!1;if(!/^([\u0E00-\u0E7Fa-z0-9-._*]+)$/g.test(e))return!1;if(t.topLevel&&NS[e.replace(/\.$/,"")])return!0;const r=e.match(/(.*)\.(([\u0E00-\u0E7Fa-z0-9]+)(\.[a-z0-9]+))/);let n=null,o=null;if(r&&r.length>2&&BS[r[2]]&&(n=r[2],o=r[1].split(".")),!o){if(o=e.split("."),o.length<=1)return!1;n=o.pop();if(!/^(?:xn--)?(?!^\d+$)[\u0E00-\u0E7Fa-z0-9]+$/gi.test(n))return!1}if(!1===t.subdomain&&o.length>1)return!1;const a=o.every((function(e,r){if(t.wildcard&&0===r&&"*"===e&&o.length>1)return!0;let n=/^([\u0E00-\u0E7Fa-zA-Z0-9-_]+)$/g;r===o.length-1&&(n=/^([\u0E00-\u0E7Fa-zA-Z0-9-]+)$/g);const a=(e.match(/--(--)?/g)||[]).length,i=(e.match(/xn--/g)||[]).length;if(r===o.length-1&&a!==i)return!1;return n.test(e)&&e.length<64&&!e.startsWith("-")&&!e.endsWith("-")}));return a},GS=function(e){return null!=e&&"object"==typeof e&&!1===Array.isArray(e)};
|
|
7
|
+
*/function $(e){return"[object Object]"===Object.prototype.toString.call(e)}function U(e){var t,r;return!1!==$(e)&&(void 0===(t=e.constructor)||!1!==$(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}var B=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 o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0},N=String.prototype.valueOf,F=Object.prototype.toString,G=B()&&!!Symbol.toStringTag,z=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]"===F.call(e))},H=Array.isArray,Z=Object.prototype.toString,K=H||function(e){return!!e&&"[object Array]"==Z.call(e)},q=function(e){if(!e)return!1;var t=W.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)},W=Object.prototype.toString;var V="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||"undefined"!=typeof global&&global||{},Y="URLSearchParams"in V,J="Symbol"in V&&"iterator"in Symbol,Q="FileReader"in V&&"Blob"in V&&function(){try{return new Blob,!0}catch(e){return!1}}(),X="FormData"in V,ee="ArrayBuffer"in V;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 oe(e){return"string"!=typeof e&&(e=String(e)),e}function ae(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return J&&(t[Symbol.iterator]=function(){return t}),t}function ie(e){this.map={},e instanceof ie?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:Q&&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&&Q&&((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"))},Q&&(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(Q)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),o=n?n[1]:"utf-8";return t.readAsText(e,o),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}ie.prototype.append=function(e,t){e=ne(e),t=oe(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},ie.prototype.delete=function(e){delete this.map[ne(e)]},ie.prototype.get=function(e){return e=ne(e),this.has(e)?this.map[e]:null},ie.prototype.has=function(e){return this.map.hasOwnProperty(ne(e))},ie.prototype.set=function(e,t){this.map[ne(e)]=oe(t)},ie.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},ie.prototype.keys=function(){var e=[];return this.forEach((function(t,r){e.push(r)})),ae(e)},ie.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),ae(e)},ie.prototype.entries=function(){var e=[];return this.forEach((function(t,r){e.push([r,t])})),ae(e)},J&&(ie.prototype[Symbol.iterator]=ie.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 ie(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 ie(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 V)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," "),o=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(o))}})),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 ie(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 ie(this.headers),url:this.url})},me.error=function(){var e=new me(null,{status:200,statusText:""});return 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=V.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 be(e,t){return new Promise((function(r,n){var o=new pe(e,t);if(o.signal&&o.signal.aborted)return n(new ge("Aborted","AbortError"));var a=new XMLHttpRequest;function i(){a.abort()}if(a.onload=function(){var e,t,n={statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new ie,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 o=r.join(":").trim();try{t.append(n,o)}catch(e){console.warn("Response "+e.message)}}})),t)};o.url.startsWith("file://")&&(a.status<200||a.status>599)?n.status=200:n.status=a.status,n.url="responseURL"in a?a.responseURL:n.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;setTimeout((function(){r(new me(i,n))}),0)},a.onerror=function(){setTimeout((function(){n(new TypeError("Network request failed"))}),0)},a.ontimeout=function(){setTimeout((function(){n(new TypeError("Network request timed out"))}),0)},a.onabort=function(){setTimeout((function(){n(new ge("Aborted","AbortError"))}),0)},a.open(o.method,function(e){try{return""===e&&V.location.href?V.location.href:e}catch(t){return e}}(o.url),!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&(Q?a.responseType="blob":ee&&(a.responseType="arraybuffer")),t&&"object"==typeof t.headers&&!(t.headers instanceof ie||V.Headers&&t.headers instanceof V.Headers)){var s=[];Object.getOwnPropertyNames(t.headers).forEach((function(e){s.push(ne(e)),a.setRequestHeader(e,oe(t.headers[e]))})),o.headers.forEach((function(e,t){-1===s.indexOf(t)&&a.setRequestHeader(t,e)}))}else o.headers.forEach((function(e,t){a.setRequestHeader(t,e)}));o.signal&&(o.signal.addEventListener("abort",i),a.onreadystatechange=function(){4===a.readyState&&o.signal.removeEventListener("abort",i)}),a.send(void 0===o._bodyInit?null:o._bodyInit)}))}be.polyfill=!0,V.fetch||(V.fetch=be,V.Headers=ie,V.Request=pe,V.Response=me);var ye,_e,we={exports:{}};ye=we,_e=we.exports,function(e,t){var r="function",n="undefined",o="object",a="string",i="major",s="model",u="name",c="type",d="vendor",l="version",f="architecture",p="console",h="mobile",m="tablet",v="smarttv",g="wearable",b="embedded",y="Amazon",_="Apple",w="ASUS",A="BlackBerry",x="Browser",k="Chrome",E="Firefox",S="Google",R="Huawei",D="LG",T="Microsoft",O="Motorola",I="Opera",C="Samsung",P="Sharp",L="Sony",M="Xiaomi",j="Zebra",$="Facebook",U="Chromium OS",B="Mac OS",N=function(e){for(var t={},r=0;r<e.length;r++)t[e[r].toUpperCase()]=e[r];return t},F=function(e,t){return typeof e===a&&-1!==G(t).indexOf(G(e))},G=function(e){return e.toLowerCase()},z=function(e,t){if(typeof e===a)return e=e.replace(/^\s\s*/,""),typeof t===n?e:e.substring(0,500)},H=function(e,n){for(var a,i,s,u,c,d,l=0;l<n.length&&!c;){var f=n[l],p=n[l+1];for(a=i=0;a<f.length&&!c&&f[a];)if(c=f[a++].exec(e))for(s=0;s<p.length;s++)d=c[++i],typeof(u=p[s])===o&&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]===o&&r[n].length>0){for(var a=0;a<r[n].length;a++)if(F(r[n][a],e))return"?"===n?t:n}else if(F(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,I+" Mini"]],[/\bopr\/([\w\.]+)/i],[l,[u,I]],[/\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],[/(?:\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,I+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[l,[u,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[l,[u,"Dolphin"]],[/coast\/([\w\.]+)/i],[l,[u,I+" 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,C+" 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,$],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,/(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,C],[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,C],[c,h]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[s,[d,_],[c,h]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[s,[d,_],[c,m]],[/(macintosh);/i],[s,[d,_]],[/\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,R],[c,m]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[s,[d,R],[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,M],[c,h]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[s,/_/g," "],[d,M],[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[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,O],[c,h]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[s,[d,O],[c,m]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[s,[d,D],[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,D],[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,L],[c,h]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[s,"Xperia Tablet"],[d,L],[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,y],[c,m]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[s,/(.+)/g,"Fire Phone $1"],[d,y],[c,h]],[/(playbook);[-\w\),; ]+(rim)/i],[s,d,[c,m]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[s,[d,A],[c,h]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[s,[d,w],[c,m]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[s,[d,w],[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,T],[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,T],[c,h]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[s,[d,j],[c,m]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[s,[d,j],[c,h]],[/smart-tv.+(samsung)/i],[d,[c,v]],[/hbbtv.+maple;(\d+)/i],[[s,/^/,"SmartTV"],[d,C],[c,v]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[d,D],[c,v]],[/(apple) ?tv/i],[d,[s,_+" TV"],[c,v]],[/crkey/i],[[s,k+"cast"],[d,S],[c,v]],[/droid.+aft(\w+)( bui|\))/i],[s,[d,y],[c,v]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[s,[d,P],[c,v]],[/(bravia[\w ]+)( bui|\))/i],[s,[d,L],[c,v]],[/(mitv-\w{5}) bui/i],[s,[d,M],[c,v]],[/Hbbtv.*(technisat) (.*);/i],[d,s,[c,v]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[d,z],[s,z],[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,L],[c,p]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[s,[d,T],[c,p]],[/((pebble))app/i],[d,s,[c,g]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[s,[d,_],[c,g]],[/droid.+; (glass) \d/i],[s,[d,S],[c,g]],[/droid.+; (wt63?0{2,3})\)/i],[s,[d,j],[c,g]],[/(quest( 2| pro)?)/i],[s,[d,$],[c,g]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[d,[c,b]],[/(aeobc)\b/i],[s,[d,y],[c,b]],[/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,B],[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,A]],[/(?: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]]},W=function(p,v){if(typeof p===o&&(v=p,p=t),!(this instanceof W))return new W(p,v).getResult();var g=typeof e!==n&&e.navigator?e.navigator:t,b=p||(g&&g.userAgent?g.userAgent:""),y=g&&g.userAgentData?g.userAgentData:t,_=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,w=g&&g.userAgent==b;return this.getBrowser=function(){var e={};return e[u]=t,e[l]=t,H.call(e,b,_.browser),e[i]=function(e){return typeof e===a?e.replace(/[^\d\.]/g,"").split(".")[0]:t}(e[l]),w&&g&&g.brave&&typeof g.brave.isBrave==r&&(e[u]="Brave"),e},this.getCPU=function(){var e={};return e[f]=t,H.call(e,b,_.cpu),e},this.getDevice=function(){var e={};return e[d]=t,e[s]=t,e[c]=t,H.call(e,b,_.device),w&&!e[c]&&y&&y.mobile&&(e[c]=h),w&&"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,H.call(e,b,_.engine),e},this.getOS=function(){var e={};return e[u]=t,e[l]=t,H.call(e,b,_.os),w&&!e[u]&&y&&"Unknown"!=y.platform&&(e[u]=y.platform.replace(/chrome os/i,U).replace(/macos/i,B)),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 b},this.setUA=function(e){return b=typeof e===a&&e.length>500?z(e,500):e,this},this.setUA(b),this};W.VERSION="0.7.37",W.BROWSER=N([u,l,i]),W.CPU=N([f]),W.DEVICE=N([s,d,c,p,h,v,m,g,b]),W.ENGINE=W.OS=N([u,l]),ye.exports&&(_e=ye.exports=W),_e.UAParser=W;var V=typeof e!==n&&(e.jQuery||e.Zepto);if(V&&!V.ua){var Y=new W;V.ua=Y.getResult(),V.ua.get=function(){return Y.getUA()},V.ua.set=function(e){Y.setUA(e);var t=Y.getResult();for(var r in t)V.ua[r]=t[r]}}}("object"==typeof window?window:o);var Ae=we.exports;const xe="3.7.5",ke=xe,Ee="function"==typeof atob,Se="function"==typeof btoa,Re="function"==typeof Buffer,De="function"==typeof TextDecoder?new TextDecoder:void 0,Te="function"==typeof TextEncoder?new TextEncoder:void 0,Oe=Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="),Ie=(e=>{let t={};return e.forEach(((e,r)=>t[e]=r)),t})(Oe),Ce=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,Pe=String.fromCharCode.bind(String),Le="function"==typeof Uint8Array.from?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),Me=e=>e.replace(/=/g,"").replace(/[+\/]/g,(e=>"+"==e?"-":"_")),je=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),$e=e=>{let t,r,n,o,a="";const i=e.length%3;for(let i=0;i<e.length;){if((r=e.charCodeAt(i++))>255||(n=e.charCodeAt(i++))>255||(o=e.charCodeAt(i++))>255)throw new TypeError("invalid character found");t=r<<16|n<<8|o,a+=Oe[t>>18&63]+Oe[t>>12&63]+Oe[t>>6&63]+Oe[63&t]}return i?a.slice(0,i-3)+"===".substring(i):a},Ue=Se?e=>btoa(e):Re?e=>Buffer.from(e,"binary").toString("base64"):$e,Be=Re?e=>Buffer.from(e).toString("base64"):e=>{let t=[];for(let r=0,n=e.length;r<n;r+=4096)t.push(Pe.apply(null,e.subarray(r,r+4096)));return Ue(t.join(""))},Ne=(e,t=!1)=>t?Me(Be(e)):Be(e),Fe=e=>{if(e.length<2)return(t=e.charCodeAt(0))<128?e:t<2048?Pe(192|t>>>6)+Pe(128|63&t):Pe(224|t>>>12&15)+Pe(128|t>>>6&63)+Pe(128|63&t);var t=65536+1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320);return Pe(240|t>>>18&7)+Pe(128|t>>>12&63)+Pe(128|t>>>6&63)+Pe(128|63&t)},Ge=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,ze=e=>e.replace(Ge,Fe),He=Re?e=>Buffer.from(e,"utf8").toString("base64"):Te?e=>Be(Te.encode(e)):e=>Ue(ze(e)),Ze=(e,t=!1)=>t?Me(He(e)):He(e),Ke=e=>Ze(e,!0),qe=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,We=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 Pe(55296+(t>>>10))+Pe(56320+(1023&t));case 3:return Pe((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return Pe((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},Ve=e=>e.replace(qe,We),Ye=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,o="";for(let a=0;a<e.length;)t=Ie[e.charAt(a++)]<<18|Ie[e.charAt(a++)]<<12|(r=Ie[e.charAt(a++)])<<6|(n=Ie[e.charAt(a++)]),o+=64===r?Pe(t>>16&255):64===n?Pe(t>>16&255,t>>8&255):Pe(t>>16&255,t>>8&255,255&t);return o},Je=Ee?e=>atob(je(e)):Re?e=>Buffer.from(e,"base64").toString("binary"):Ye,Qe=Re?e=>Le(Buffer.from(e,"base64")):e=>Le(Je(e).split("").map((e=>e.charCodeAt(0)))),Xe=e=>Qe(tt(e)),et=Re?e=>Buffer.from(e,"base64").toString("utf8"):De?e=>De.decode(Qe(e)):e=>Ve(Je(e)),tt=e=>je(e.replace(/[-_]/g,(e=>"-"==e?"+":"/"))),rt=e=>et(tt(e)),nt=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),ot=function(){const e=(e,t)=>Object.defineProperty(String.prototype,e,nt(t));e("fromBase64",(function(){return rt(this)})),e("toBase64",(function(e){return Ze(this,e)})),e("toBase64URI",(function(){return Ze(this,!0)})),e("toBase64URL",(function(){return Ze(this,!0)})),e("toUint8Array",(function(){return Xe(this)}))},at=function(){const e=(e,t)=>Object.defineProperty(Uint8Array.prototype,e,nt(t));e("toBase64",(function(e){return Ne(this,e)})),e("toBase64URI",(function(){return Ne(this,!0)})),e("toBase64URL",(function(){return Ne(this,!0)}))},it={version:xe,VERSION:ke,atob:Je,atobPolyfill:Ye,btoa:Ue,btoaPolyfill:$e,fromBase64:rt,toBase64:Ze,encode:Ze,encodeURI:Ke,encodeURL:Ke,utob:ze,btou:Ve,decode:rt,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:Ne,toUint8Array:Xe,extendString:ot,extendUint8Array:at,extendBuiltins:()=>{ot(),at()}};var st={Rewarded:"rewarded",Interstitial:"interstitial",Preroll:"interstitial",Midroll:"interstitial",Display:"display"};function ut(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 ct(){var e=ft(),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=lt("ref",document.referrer);if(r){""!==r&&"{portal%20name}"!==r&&"{spilgames}"!==r&&"{portal name}"!==r&&(t=ht(r).replace(/^(?:https?:\/\/)?(?:\/\/)?(?:www\.)?/i,"").split("/")[0])}}else-1!==document.referrer.indexOf("localhost")&&(t="gamedistribution.com");return t}function dt(){var e=ft();if(e.gd_sdk_referrer_url)return 0===gt()&&(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=lt("ref",document.referrer);if(r){""!==r&&"{portal%20name}"!==r&&"{spilgames}"!==r&&"{portal name}"!==r&&(t=ht(r).replace(/^(?:https?:\/\/)?(?:\/\/)?/i,""),t="https://".concat(t))}}else-1!==document.referrer.indexOf("localhost")&&(t="https://gamedistribution.com/");return t}function lt(e,t){var r=t||window.location.href,n=new RegExp("[?&]"+e+"=([^&#]*)","i").exec(r);return n?n[1]:null}function ft(){for(var e,t=/\+/g,r=/([^&=]+)=?([^&]*)/g,n=function(e){return decodeURIComponent(e.toLowerCase().replace(t," "))},o=window.location.search.substring(1),a={};e=r.exec(o);)a[n(e[1])]=n(e[2]);return a}function pt(e){return(e=e||"")!==decodeURIComponent(e)}function ht(e){for(;pt(e);)e=decodeURIComponent(e);return e}function mt(){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 vt(e,t,r){return new Promise((function(n,o){if(r&&r.exists&&r.exists())n(bt(null==r?void 0:r.alternates));else{var a=r&&r.alternates&&r.alternates.length>0?bt(r.alternates):void 0,i=a||document.createElement("script"),s=r&&r.error_prefix?r.error_prefix:"Failed:";if(i.onload=function(){r&&r.exists&&!r.exists()?o("".concat(s," ").concat(e)):n(i)},i.onerror=function(){o("".concat(s," ").concat(e))},!a){if(i.type="text/javascript",!0===r.defer?i.defer=!0:i.async=!0,null==r?void 0:r.attrs)for(var u in r.attrs)i.setAttribute(u,r.attrs[u]);i.src=e,i.id=t,document.head.appendChild(i)}}}))}function gt(){var e=0,t=window;try{for(;t!=t.parent;)e++,t=t.parent}catch(e){}return e}function bt(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 yt(e){return!!localStorage.getItem(e)}function _t(){var e=gt();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 O(e)}catch(e){}}(document.referrer);if(t)return t.host.replace(/^www\.(.*)$/i,"$1")}}var wt=function(e,t){if(!yt(e))return t;var r=localStorage.getItem(e);return"true"===r||!0===r||1===r||"1"===r},At=function(){var e=Date.now();try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}}(),xt=function(e){localStorage.removeItem(e)},kt=function(e,t){localStorage.setItem(e,t)},Et=Date.now(),St={console:!1};function Rt(e,t,r){try{if(At&&wt("gd_debug_ex")||St&&!0===St.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",o=console.log("["+(Date.now()-Et)/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,o)}}catch(e){console.log(e)}}var Dt=["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"],Tt=["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"],Ot={zIndex:1010},It={zIndex:1020},Ct={zIndex:1100},Pt=null,Lt=function(){function e(){if(I(this,e),Pt)return Pt;Pt=this,this.listeners={}}return L(e,[{key:"_getListenerIdx",value:function(e,t,r){var n,o=this.listeners[e],a=-1;if(!o||0===o.length)return a;for(n=0;n<o.length;n++)if(o[n].callback===t&&(!r||r===o[n].scope)){a=n;break}return a}},{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],o=this.listeners[n],a=0;a<o.length;a++)o[a].scope===e&&(o.splice(a,1),a--);0===o.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],o=this.listeners[n],a=0;a<o.length;a++)o[a].scope===e&&console.log(n,e)}}]),e}(),Mt=function(){function e(t){I(this,e),this.game=t.game,this.bridge=t.bridge}return L(e,[{key:"transform",value:function(e,t){var r=j(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(z(e)){var n,o=/\{\{(\w+)\}\}/g,a=[];do{if(n=o.exec(e)){n[0];var i=n[1],s=this.getMacroKeyValue(i,t);void 0!==s&&a.push({key:i,value:s})}}while(n);a.length>0&&a.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}(),jt=function(){function e(t){I(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 L(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}(),$t=null,Ut=function(){function e(t){if(I(this,e),$t)return $t;$t=this,this.eventBus=new Lt,this._sdk=t}return L(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],o=document.createElement("div");o.id="gdsdk__console",o.style.position="fixed",o.style.zIndex=Ct.zIndex,o.style.bottom="0",o.style.left="0",o.style.width="100%",o.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(o);var a=document.getElementById("gdsdk__showLeaderboard"),i=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");wt("gd_tag")?(c.innerHTML="Revert Vast tag",c.style.background="#ff8c1c"):(c.innerHTML="Demo VAST tag",c.style.background="#44a5ab"),wt("gd_disable_midroll_timer")?(d.innerHTML="Revert delay",d.style.background="#ff8c1c"):(d.innerHTML="Disable delay",d.style.background="#44a5ab"),wt("gd_hb_debug")?(l.innerHTML="Revert HB Debug",l.style.background="#ff8c1c"):(l.innerHTML="HB Debug",l.style.background="#44a5ab"),a.addEventListener("click",(function(){window.gdsdk.showLeaderBoard().catch((function(e){}))})),i.addEventListener("click",(function(){window.gdsdk.showAd(st.Interstitial).catch((function(e){}))})),s.addEventListener("click",(function(){window.gdsdk.showAd(st.Rewarded).catch((function(e){}))})),u.addEventListener("click",(function(){window.gdsdk.cancelAd().then((function(e){})).catch((function(e){}))})),c.addEventListener("click",(function(){try{wt("gd_tag")?xt("gd_tag"):kt("gd_tag",!0),location.reload()}catch(e){console.log(e)}})),d.addEventListener("click",(function(){try{wt("gd_disable_midroll_timer")?xt("gd_disable_midroll_timer"):kt("gd_disable_midroll_timer",!0),location.reload()}catch(e){console.log(e)}})),p.addEventListener("click",(function(){try{wt("gd_debug_ex")?xt("gd_debug_ex"):kt("gd_debug_ex",!0),location.reload()}catch(e){console.log(e)}})),l.addEventListener("click",(function(){try{wt("gd_hb_debug")?xt("gd_hb_debug"):kt("gd_hb_debug",!0),window.idhb&&window.idhb.debug(!(!At||!wt("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}(),Bt=function(e){return e&&e.Math===Math&&e},Nt=Bt("object"==typeof globalThis&&globalThis)||Bt("object"==typeof window&&window)||Bt("object"==typeof self&&self)||Bt("object"==typeof o&&o)||Bt("object"==typeof o&&o)||function(){return this}()||Function("return this")(),Ft={exports:{}},Gt=Nt,zt=Object.defineProperty,Ht=function(e,t){try{zt(Gt,e,{value:t,configurable:!0,writable:!0})}catch(r){Gt[e]=t}return t},Zt=Ht,Kt="__core-js_shared__",qt=Nt[Kt]||Zt(Kt,{}),Wt=qt;(Ft.exports=function(e,t){return Wt[e]||(Wt[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.34.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.34.0/LICENSE",source:"https://github.com/zloirock/core-js"});var Vt,Yt,Jt=function(e){try{return!!e()}catch(e){return!0}},Qt=!Jt((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})),Xt=Qt,er=Function.prototype,tr=er.call,rr=Xt&&er.bind.bind(tr,tr),nr=Xt?rr:function(e){return function(){return tr.apply(e,arguments)}},or=function(e){return null==e},ar=or,ir=TypeError,sr=function(e){if(ar(e))throw new ir("Can't call method on "+e);return e},ur=sr,cr=Object,dr=function(e){return cr(ur(e))},lr=dr,fr=nr({}.hasOwnProperty),pr=Object.hasOwn||function(e,t){return fr(lr(e),t)},hr=nr,mr=0,vr=Math.random(),gr=hr(1..toString),br=function(e){return"Symbol("+(void 0===e?"":e)+")_"+gr(++mr+vr,36)},yr="undefined"!=typeof navigator&&String(navigator.userAgent)||"",_r=Nt,wr=yr,Ar=_r.process,xr=_r.Deno,kr=Ar&&Ar.versions||xr&&xr.version,Er=kr&&kr.v8;Er&&(Yt=(Vt=Er.split("."))[0]>0&&Vt[0]<4?1:+(Vt[0]+Vt[1])),!Yt&&wr&&(!(Vt=wr.match(/Edge\/(\d+)/))||Vt[1]>=74)&&(Vt=wr.match(/Chrome\/(\d+)/))&&(Yt=+Vt[1]);var Sr=Yt,Rr=Sr,Dr=Jt,Tr=Nt.String,Or=!!Object.getOwnPropertySymbols&&!Dr((function(){var e=Symbol("symbol detection");return!Tr(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Rr&&Rr<41})),Ir=Or&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Cr=Nt,Pr=Ft.exports,Lr=pr,Mr=br,jr=Or,$r=Ir,Ur=Cr.Symbol,Br=Pr("wks"),Nr=$r?Ur.for||Ur:Ur&&Ur.withoutSetter||Mr,Fr=function(e){return Lr(Br,e)||(Br[e]=jr&&Lr(Ur,e)?Ur[e]:Nr("Symbol."+e)),Br[e]},Gr={};Gr[Fr("toStringTag")]="z";var zr="[object z]"===String(Gr),Hr="object"==typeof document&&document.all,Zr={all:Hr,IS_HTMLDDA:void 0===Hr&&void 0!==Hr},Kr=Zr.all,qr=Zr.IS_HTMLDDA?function(e){return"function"==typeof e||e===Kr}:function(e){return"function"==typeof e},Wr={},Vr=!Jt((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),Yr=qr,Jr=Zr.all,Qr=Zr.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:Yr(e)||e===Jr}:function(e){return"object"==typeof e?null!==e:Yr(e)},Xr=Qr,en=Nt.document,tn=Xr(en)&&Xr(en.createElement),rn=function(e){return tn?en.createElement(e):{}},nn=rn,on=!Vr&&!Jt((function(){return 7!==Object.defineProperty(nn("div"),"a",{get:function(){return 7}}).a})),an=Vr&&Jt((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),sn=Qr,un=String,cn=TypeError,dn=function(e){if(sn(e))return e;throw new cn(un(e)+" is not an object")},ln=Qt,fn=Function.prototype.call,pn=ln?fn.bind(fn):function(){return fn.apply(fn,arguments)},hn=Nt,mn=qr,vn=function(e,t){return arguments.length<2?(r=hn[e],mn(r)?r:void 0):hn[e]&&hn[e][t];var r},gn=nr({}.isPrototypeOf),bn=vn,yn=qr,_n=gn,wn=Object,An=Ir?function(e){return"symbol"==typeof e}:function(e){var t=bn("Symbol");return yn(t)&&_n(t.prototype,wn(e))},xn=String,kn=function(e){try{return xn(e)}catch(e){return"Object"}},En=qr,Sn=kn,Rn=TypeError,Dn=function(e){if(En(e))return e;throw new Rn(Sn(e)+" is not a function")},Tn=Dn,On=or,In=function(e,t){var r=e[t];return On(r)?void 0:Tn(r)},Cn=pn,Pn=qr,Ln=Qr,Mn=TypeError,jn=pn,$n=Qr,Un=An,Bn=In,Nn=function(e,t){var r,n;if("string"===t&&Pn(r=e.toString)&&!Ln(n=Cn(r,e)))return n;if(Pn(r=e.valueOf)&&!Ln(n=Cn(r,e)))return n;if("string"!==t&&Pn(r=e.toString)&&!Ln(n=Cn(r,e)))return n;throw new Mn("Can't convert object to primitive value")},Fn=TypeError,Gn=Fr("toPrimitive"),zn=function(e,t){if(!$n(e)||Un(e))return e;var r,n=Bn(e,Gn);if(n){if(void 0===t&&(t="default"),r=jn(n,e,t),!$n(r)||Un(r))return r;throw new Fn("Can't convert object to primitive value")}return void 0===t&&(t="number"),Nn(e,t)},Hn=An,Zn=function(e){var t=zn(e,"string");return Hn(t)?t:t+""},Kn=Vr,qn=on,Wn=an,Vn=dn,Yn=Zn,Jn=TypeError,Qn=Object.defineProperty,Xn=Object.getOwnPropertyDescriptor,eo="enumerable",to="configurable",ro="writable";Wr.f=Kn?Wn?function(e,t,r){if(Vn(e),t=Yn(t),Vn(r),"function"==typeof e&&"prototype"===t&&"value"in r&&ro in r&&!r[ro]){var n=Xn(e,t);n&&n[ro]&&(e[t]=r.value,r={configurable:to in r?r[to]:n[to],enumerable:eo in r?r[eo]:n[eo],writable:!1})}return Qn(e,t,r)}:Qn:function(e,t,r){if(Vn(e),t=Yn(t),Vn(r),qn)try{return Qn(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new Jn("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var no={exports:{}},oo=Vr,ao=pr,io=Function.prototype,so=oo&&Object.getOwnPropertyDescriptor,uo=ao(io,"name"),co={EXISTS:uo,PROPER:uo&&"something"===function(){}.name,CONFIGURABLE:uo&&(!oo||oo&&so(io,"name").configurable)},lo=qr,fo=qt,po=nr(Function.toString);lo(fo.inspectSource)||(fo.inspectSource=function(e){return po(e)});var ho,mo,vo,go=fo.inspectSource,bo=qr,yo=Nt.WeakMap,_o=bo(yo)&&/native code/.test(String(yo)),wo=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Ao=Wr,xo=wo,ko=Vr?function(e,t,r){return Ao.f(e,t,xo(1,r))}:function(e,t,r){return e[t]=r,e},Eo=Ft.exports,So=br,Ro=Eo("keys"),Do=function(e){return Ro[e]||(Ro[e]=So(e))},To={},Oo=_o,Io=Nt,Co=Qr,Po=ko,Lo=pr,Mo=qt,jo=Do,$o=To,Uo="Object already initialized",Bo=Io.TypeError,No=Io.WeakMap;if(Oo||Mo.state){var Fo=Mo.state||(Mo.state=new No);Fo.get=Fo.get,Fo.has=Fo.has,Fo.set=Fo.set,ho=function(e,t){if(Fo.has(e))throw new Bo(Uo);return t.facade=e,Fo.set(e,t),t},mo=function(e){return Fo.get(e)||{}},vo=function(e){return Fo.has(e)}}else{var Go=jo("state");$o[Go]=!0,ho=function(e,t){if(Lo(e,Go))throw new Bo(Uo);return t.facade=e,Po(e,Go,t),t},mo=function(e){return Lo(e,Go)?e[Go]:{}},vo=function(e){return Lo(e,Go)}}var zo={set:ho,get:mo,has:vo,enforce:function(e){return vo(e)?mo(e):ho(e,{})},getterFor:function(e){return function(t){var r;if(!Co(t)||(r=mo(t)).type!==e)throw new Bo("Incompatible receiver, "+e+" required");return r}}},Ho=nr,Zo=Jt,Ko=qr,qo=pr,Wo=Vr,Vo=co.CONFIGURABLE,Yo=go,Jo=zo.enforce,Qo=zo.get,Xo=String,ea=Object.defineProperty,ta=Ho("".slice),ra=Ho("".replace),na=Ho([].join),oa=Wo&&!Zo((function(){return 8!==ea((function(){}),"length",{value:8}).length})),aa=String(String).split("String"),ia=no.exports=function(e,t,r){"Symbol("===ta(Xo(t),0,7)&&(t="["+ra(Xo(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(t="get "+t),r&&r.setter&&(t="set "+t),(!qo(e,"name")||Vo&&e.name!==t)&&(Wo?ea(e,"name",{value:t,configurable:!0}):e.name=t),oa&&r&&qo(r,"arity")&&e.length!==r.arity&&ea(e,"length",{value:r.arity});try{r&&qo(r,"constructor")&&r.constructor?Wo&&ea(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var n=Jo(e);return qo(n,"source")||(n.source=na(aa,"string"==typeof t?t:"")),e};Function.prototype.toString=ia((function(){return Ko(this)&&Qo(this).source||Yo(this)}),"toString");var sa=qr,ua=Wr,ca=no.exports,da=Ht,la=function(e,t,r,n){n||(n={});var o=n.enumerable,a=void 0!==n.name?n.name:t;if(sa(r)&&ca(r,a,n),n.global)o?e[t]=r:da(t,r);else{try{n.unsafe?e[t]&&(o=!0):delete e[t]}catch(e){}o?e[t]=r:ua.f(e,t,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e},fa=nr,pa=fa({}.toString),ha=fa("".slice),ma=function(e){return ha(pa(e),8,-1)},va=zr,ga=qr,ba=ma,ya=Fr("toStringTag"),_a=Object,wa="Arguments"===ba(function(){return arguments}()),Aa=va?ba: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=_a(e),ya))?r:wa?ba(t):"Object"===(n=ba(t))&&ga(t.callee)?"Arguments":n},xa=Aa,ka=zr?{}.toString:function(){return"[object "+xa(this)+"]"};zr||la(Object.prototype,"toString",ka,{unsafe:!0});var Ea={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},Sa=rn("span").classList,Ra=Sa&&Sa.constructor&&Sa.constructor.prototype,Da=Ra===Object.prototype?void 0:Ra,Ta=ma,Oa=nr,Ia=function(e){if("Function"===Ta(e))return Oa(e)},Ca=Dn,Pa=Qt,La=Ia(Ia.bind),Ma=function(e,t){return Ca(e),void 0===t?e:Pa?La(e,t):function(){return e.apply(t,arguments)}},ja=Jt,$a=ma,Ua=Object,Ba=nr("".split),Na=ja((function(){return!Ua("z").propertyIsEnumerable(0)}))?function(e){return"String"===$a(e)?Ba(e,""):Ua(e)}:Ua,Fa=Math.ceil,Ga=Math.floor,za=Math.trunc||function(e){var t=+e;return(t>0?Ga:Fa)(t)},Ha=za,Za=function(e){var t=+e;return t!=t||0===t?0:Ha(t)},Ka=Za,qa=Math.min,Wa=function(e){return e>0?qa(Ka(e),9007199254740991):0},Va=Wa,Ya=function(e){return Va(e.length)},Ja=ma,Qa=Array.isArray||function(e){return"Array"===Ja(e)},Xa=nr,ei=Jt,ti=qr,ri=Aa,ni=go,oi=function(){},ai=[],ii=vn("Reflect","construct"),si=/^\s*(?:class|function)\b/,ui=Xa(si.exec),ci=!si.test(oi),di=function(e){if(!ti(e))return!1;try{return ii(oi,ai,e),!0}catch(e){return!1}},li=function(e){if(!ti(e))return!1;switch(ri(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ci||!!ui(si,ni(e))}catch(e){return!0}};li.sham=!0;var fi=!ii||ei((function(){var e;return di(di.call)||!di(Object)||!di((function(){e=!0}))||e}))?li:di,pi=Qa,hi=fi,mi=Qr,vi=Fr("species"),gi=Array,bi=function(e){var t;return pi(e)&&(t=e.constructor,(hi(t)&&(t===gi||pi(t.prototype))||mi(t)&&null===(t=t[vi]))&&(t=void 0)),void 0===t?gi:t},yi=function(e,t){return new(bi(e))(0===t?0:t)},_i=Ma,wi=Na,Ai=dr,xi=Ya,ki=yi,Ei=nr([].push),Si=function(e){var t=1===e,r=2===e,n=3===e,o=4===e,a=6===e,i=7===e,s=5===e||a;return function(u,c,d,l){for(var f,p,h=Ai(u),m=wi(h),v=xi(m),g=_i(c,d),b=0,y=l||ki,_=t?y(u,v):r||i?y(u,0):void 0;v>b;b++)if((s||b in m)&&(p=g(f=m[b],b,h),e))if(t)_[b]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return b;case 2:Ei(_,f)}else switch(e){case 4:return!1;case 7:Ei(_,f)}return a?-1:n||o?o:_}},Ri={forEach:Si(0),map:Si(1),filter:Si(2),some:Si(3),every:Si(4),find:Si(5),findIndex:Si(6),filterReject:Si(7)},Di=Jt,Ti=function(e,t){var r=[][e];return!!r&&Di((function(){r.call(null,t||function(){return 1},1)}))},Oi=Ri.forEach,Ii=Ti("forEach")?[].forEach:function(e){return Oi(this,e,arguments.length>1?arguments[1]:void 0)},Ci=Nt,Pi=Ea,Li=Da,Mi=Ii,ji=ko,$i=function(e){if(e&&e.forEach!==Mi)try{ji(e,"forEach",Mi)}catch(t){e.forEach=Mi}};for(var Ui in Pi)Pi[Ui]&&$i(Ci[Ui]&&Ci[Ui].prototype);$i(Li);var Bi={},Ni={},Fi={}.propertyIsEnumerable,Gi=Object.getOwnPropertyDescriptor,zi=Gi&&!Fi.call({1:2},1);Ni.f=zi?function(e){var t=Gi(this,e);return!!t&&t.enumerable}:Fi;var Hi=Na,Zi=sr,Ki=function(e){return Hi(Zi(e))},qi=Vr,Wi=pn,Vi=Ni,Yi=wo,Ji=Ki,Qi=Zn,Xi=pr,es=on,ts=Object.getOwnPropertyDescriptor;Bi.f=qi?ts:function(e,t){if(e=Ji(e),t=Qi(t),es)try{return ts(e,t)}catch(e){}if(Xi(e,t))return Yi(!Wi(Vi.f,e,t),e[t])};var rs={},ns=Za,os=Math.max,as=Math.min,is=function(e,t){var r=ns(e);return r<0?os(r+t,0):as(r,t)},ss=Ki,us=is,cs=Ya,ds=function(e){return function(t,r,n){var o,a=ss(t),i=cs(a),s=us(n,i);if(e&&r!=r){for(;i>s;)if((o=a[s++])!=o)return!0}else for(;i>s;s++)if((e||s in a)&&a[s]===r)return e||s||0;return!e&&-1}},ls={includes:ds(!0),indexOf:ds(!1)},fs=pr,ps=Ki,hs=ls.indexOf,ms=To,vs=nr([].push),gs=function(e,t){var r,n=ps(e),o=0,a=[];for(r in n)!fs(ms,r)&&fs(n,r)&&vs(a,r);for(;t.length>o;)fs(n,r=t[o++])&&(~hs(a,r)||vs(a,r));return a},bs=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],ys=gs,_s=bs.concat("length","prototype");rs.f=Object.getOwnPropertyNames||function(e){return ys(e,_s)};var ws={};ws.f=Object.getOwnPropertySymbols;var As=vn,xs=rs,ks=ws,Es=dn,Ss=nr([].concat),Rs=As("Reflect","ownKeys")||function(e){var t=xs.f(Es(e)),r=ks.f;return r?Ss(t,r(e)):t},Ds=pr,Ts=Rs,Os=Bi,Is=Wr,Cs=function(e,t,r){for(var n=Ts(t),o=Is.f,a=Os.f,i=0;i<n.length;i++){var s=n[i];Ds(e,s)||r&&Ds(r,s)||o(e,s,a(t,s))}},Ps=Jt,Ls=qr,Ms=/#|\.prototype\./,js=function(e,t){var r=Us[$s(e)];return r===Ns||r!==Bs&&(Ls(t)?Ps(t):!!t)},$s=js.normalize=function(e){return String(e).replace(Ms,".").toLowerCase()},Us=js.data={},Bs=js.NATIVE="N",Ns=js.POLYFILL="P",Fs=js,Gs=Nt,zs=Bi.f,Hs=ko,Zs=la,Ks=Ht,Ws=Cs,Vs=Fs,Ys=function(e,t){var r,n,o,a,i,s=e.target,u=e.global,c=e.stat;if(r=u?Gs:c?Gs[s]||Ks(s,{}):(Gs[s]||{}).prototype)for(n in t){if(a=t[n],o=e.dontCallGetSet?(i=zs(r,n))&&i.value:r[n],!Vs(u?n:s+(c?".":"#")+n,e.forced)&&void 0!==o){if(typeof a==typeof o)continue;Ws(a,o)}(e.sham||o&&o.sham)&&Hs(a,"sham",!0),Zs(r,n,a,e)}},Js=gs,Qs=bs,Xs=Object.keys||function(e){return Js(e,Qs)},eu=dr,tu=Xs;Ys({target:"Object",stat:!0,forced:Jt((function(){tu(1)}))},{keys:function(e){return tu(eu(e))}});var ru=TypeError,nu=Zn,ou=Wr,au=wo,iu=function(e,t,r){var n=nu(t);n in e?ou.f(e,n,au(0,r)):e[n]=r},su=Jt,uu=Sr,cu=Fr("species"),du=function(e){return uu>=51||!su((function(){var t=[];return(t.constructor={})[cu]=function(){return{foo:1}},1!==t[e](Boolean).foo}))},lu=Ys,fu=Jt,pu=Qa,hu=Qr,mu=dr,vu=Ya,gu=function(e){if(e>9007199254740991)throw ru("Maximum allowed index exceeded");return e},bu=iu,yu=yi,_u=du,wu=Sr,Au=Fr("isConcatSpreadable"),xu=wu>=51||!fu((function(){var e=[];return e[Au]=!1,e.concat()[0]!==e})),ku=function(e){if(!hu(e))return!1;var t=e[Au];return void 0!==t?!!t:pu(e)};lu({target:"Array",proto:!0,arity:1,forced:!xu||!_u("concat")},{concat:function(e){var t,r,n,o,a,i=mu(this),s=yu(i,0),u=0;for(t=-1,n=arguments.length;t<n;t++)if(ku(a=-1===t?i:arguments[t]))for(o=vu(a),gu(u+o),r=0;r<o;r++,u++)r in a&&bu(s,u,a[r]);else gu(u+1),bu(s,u++,a);return s.length=u,s}});var Eu={name:"@bygd/gd-sdk-pes",version:"1.38.0",files:["dist/*"],scripts:{build:"NODE_ENV=production rollup --config",watch:"rollup --config --watch --sourcemap --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",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"}},Su=function(e){var t=Ru("object"===n(e)?e:function(e){if(e)try{return JSON.parse(e)}catch(e){}}(e));return t&&t.version?Eu.version>=t.version?t:void 0:t},Ru=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 o=Math.floor(Math.random()*Math.floor(n));n=0;for(var a=0;a<e.length;a++){var i=e[a];if(o<(n+=i.weight))return i}},Du=function(){var e;(e=console).log.apply(e,arguments)},Tu=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 Ou={};function Iu(e,t,r){return(t=C(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Cu=Aa,Pu=String,Lu=function(e){if("Symbol"===Cu(e))throw new TypeError("Cannot convert a Symbol value to a string");return Pu(e)},Mu={},ju=Vr,$u=an,Uu=Wr,Bu=dn,Nu=Ki,Fu=Xs;Mu.f=ju&&!$u?Object.defineProperties:function(e,t){Bu(e);for(var r,n=Nu(t),o=Fu(t),a=o.length,i=0;a>i;)Uu.f(e,r=o[i++],n[r]);return e};var Gu,zu=vn("document","documentElement"),Hu=dn,Zu=Mu,Ku=bs,qu=To,Wu=zu,Vu=rn,Yu="prototype",Ju="script",Qu=Do("IE_PROTO"),Xu=function(){},ec=function(e){return"<"+Ju+">"+e+"</"+Ju+">"},tc=function(e){e.write(ec("")),e.close();var t=e.parentWindow.Object;return e=null,t},rc=function(){try{Gu=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;rc="undefined"!=typeof document?document.domain&&Gu?tc(Gu):(t=Vu("iframe"),r="java"+Ju+":",t.style.display="none",Wu.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(ec("document.F=Object")),e.close(),e.F):tc(Gu);for(var n=Ku.length;n--;)delete rc[Yu][Ku[n]];return rc()};qu[Qu]=!0;var nc=Object.create||function(e,t){var r;return null!==e?(Xu[Yu]=Hu(e),r=new Xu,Xu[Yu]=null,r[Qu]=e):r=rc(),void 0===t?r:Zu.f(r,t)},oc={},ac=is,ic=Ya,sc=iu,uc=Array,cc=Math.max,dc=function(e,t,r){for(var n=ic(e),o=ac(t,n),a=ac(void 0===r?n:r,n),i=uc(cc(a-o,0)),s=0;o<a;o++,s++)sc(i,s,e[o]);return i.length=s,i},lc=ma,fc=Ki,pc=rs.f,hc=dc,mc="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];oc.f=function(e){return mc&&"Window"===lc(e)?function(e){try{return pc(e)}catch(e){return hc(mc)}}(e):pc(fc(e))};var vc=no.exports,gc=Wr,bc=function(e,t,r){return r.get&&vc(r.get,t,{getter:!0}),r.set&&vc(r.set,t,{setter:!0}),gc.f(e,t,r)},yc={},_c=Fr;yc.f=_c;var wc=Nt,Ac=pr,xc=yc,kc=Wr.f,Ec=function(e){var t=wc.Symbol||(wc.Symbol={});Ac(t,e)||kc(t,e,{value:xc.f(e)})},Sc=pn,Rc=vn,Dc=Fr,Tc=la,Oc=Wr.f,Ic=pr,Cc=Fr("toStringTag"),Pc=function(e,t,r){e&&!r&&(e=e.prototype),e&&!Ic(e,Cc)&&Oc(e,Cc,{configurable:!0,value:t})},Lc=Ys,Mc=Nt,jc=pn,$c=nr,Uc=Vr,Bc=Or,Nc=Jt,Fc=pr,Gc=gn,zc=dn,Hc=Ki,Zc=Zn,Kc=Lu,qc=wo,Wc=nc,Vc=Xs,Yc=rs,Jc=oc,Qc=ws,Xc=Bi,ed=Wr,td=Mu,rd=Ni,nd=la,od=bc,ad=Ft.exports,id=To,sd=br,ud=Fr,cd=yc,dd=Ec,ld=function(){var e=Rc("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,n=Dc("toPrimitive");t&&!t[n]&&Tc(t,n,(function(e){return Sc(r,this)}),{arity:1})},fd=Pc,pd=zo,hd=Ri.forEach,md=Do("hidden"),vd="Symbol",gd="prototype",bd=pd.set,yd=pd.getterFor(vd),_d=Object[gd],wd=Mc.Symbol,Ad=wd&&wd[gd],xd=Mc.RangeError,kd=Mc.TypeError,Ed=Mc.QObject,Sd=Xc.f,Rd=ed.f,Dd=Jc.f,Td=rd.f,Od=$c([].push),Id=ad("symbols"),Cd=ad("op-symbols"),Pd=ad("wks"),Ld=!Ed||!Ed[gd]||!Ed[gd].findChild,Md=function(e,t,r){var n=Sd(_d,t);n&&delete _d[t],Rd(e,t,r),n&&e!==_d&&Rd(_d,t,n)},jd=Uc&&Nc((function(){return 7!==Wc(Rd({},"a",{get:function(){return Rd(this,"a",{value:7}).a}})).a}))?Md:Rd,$d=function(e,t){var r=Id[e]=Wc(Ad);return bd(r,{type:vd,tag:e,description:t}),Uc||(r.description=t),r},Ud=function(e,t,r){e===_d&&Ud(Cd,t,r),zc(e);var n=Zc(t);return zc(r),Fc(Id,n)?(r.enumerable?(Fc(e,md)&&e[md][n]&&(e[md][n]=!1),r=Wc(r,{enumerable:qc(0,!1)})):(Fc(e,md)||Rd(e,md,qc(1,{})),e[md][n]=!0),jd(e,n,r)):Rd(e,n,r)},Bd=function(e,t){zc(e);var r=Hc(t),n=Vc(r).concat(zd(r));return hd(n,(function(t){Uc&&!jc(Nd,r,t)||Ud(e,t,r[t])})),e},Nd=function(e){var t=Zc(e),r=jc(Td,this,t);return!(this===_d&&Fc(Id,t)&&!Fc(Cd,t))&&(!(r||!Fc(this,t)||!Fc(Id,t)||Fc(this,md)&&this[md][t])||r)},Fd=function(e,t){var r=Hc(e),n=Zc(t);if(r!==_d||!Fc(Id,n)||Fc(Cd,n)){var o=Sd(r,n);return!o||!Fc(Id,n)||Fc(r,md)&&r[md][n]||(o.enumerable=!0),o}},Gd=function(e){var t=Dd(Hc(e)),r=[];return hd(t,(function(e){Fc(Id,e)||Fc(id,e)||Od(r,e)})),r},zd=function(e){var t=e===_d,r=Dd(t?Cd:Hc(e)),n=[];return hd(r,(function(e){!Fc(Id,e)||t&&!Fc(_d,e)||Od(n,Id[e])})),n};Bc||(wd=function(){if(Gc(Ad,this))throw new kd("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?Kc(arguments[0]):void 0,t=sd(e),r=function(e){var n=void 0===this?Mc:this;n===_d&&jc(r,Cd,e),Fc(n,md)&&Fc(n[md],t)&&(n[md][t]=!1);var o=qc(1,e);try{jd(n,t,o)}catch(e){if(!(e instanceof xd))throw e;Md(n,t,o)}};return Uc&&Ld&&jd(_d,t,{configurable:!0,set:r}),$d(t,e)},nd(Ad=wd[gd],"toString",(function(){return yd(this).tag})),nd(wd,"withoutSetter",(function(e){return $d(sd(e),e)})),rd.f=Nd,ed.f=Ud,td.f=Bd,Xc.f=Fd,Yc.f=Jc.f=Gd,Qc.f=zd,cd.f=function(e){return $d(ud(e),e)},Uc&&(od(Ad,"description",{configurable:!0,get:function(){return yd(this).description}}),nd(_d,"propertyIsEnumerable",Nd,{unsafe:!0}))),Lc({global:!0,constructor:!0,wrap:!0,forced:!Bc,sham:!Bc},{Symbol:wd}),hd(Vc(Pd),(function(e){dd(e)})),Lc({target:vd,stat:!0,forced:!Bc},{useSetter:function(){Ld=!0},useSimple:function(){Ld=!1}}),Lc({target:"Object",stat:!0,forced:!Bc,sham:!Uc},{create:function(e,t){return void 0===t?Wc(e):Bd(Wc(e),t)},defineProperty:Ud,defineProperties:Bd,getOwnPropertyDescriptor:Fd}),Lc({target:"Object",stat:!0,forced:!Bc},{getOwnPropertyNames:Gd}),ld(),fd(wd,vd),id[md]=!0;var Hd=Or&&!!Symbol.for&&!!Symbol.keyFor,Zd=Ys,Kd=vn,qd=pr,Wd=Lu,Vd=Ft.exports,Yd=Hd,Jd=Vd("string-to-symbol-registry"),Qd=Vd("symbol-to-string-registry");Zd({target:"Symbol",stat:!0,forced:!Yd},{for:function(e){var t=Wd(e);if(qd(Jd,t))return Jd[t];var r=Kd("Symbol")(t);return Jd[t]=r,Qd[r]=t,r}});var Xd=Ys,el=pr,tl=An,rl=kn,nl=Hd,ol=(0,Ft.exports)("symbol-to-string-registry");Xd({target:"Symbol",stat:!0,forced:!nl},{keyFor:function(e){if(!tl(e))throw new TypeError(rl(e)+" is not a symbol");if(el(ol,e))return ol[e]}});var al=Qt,il=Function.prototype,sl=il.apply,ul=il.call,cl="object"==typeof Reflect&&Reflect.apply||(al?ul.bind(sl):function(){return ul.apply(sl,arguments)}),dl=nr([].slice),ll=Qa,fl=qr,pl=ma,hl=Lu,ml=nr([].push),vl=Ys,gl=vn,bl=cl,yl=pn,_l=nr,wl=Jt,Al=qr,xl=An,kl=dl,El=function(e){if(fl(e))return e;if(ll(e)){for(var t=e.length,r=[],n=0;n<t;n++){var o=e[n];"string"==typeof o?ml(r,o):"number"!=typeof o&&"Number"!==pl(o)&&"String"!==pl(o)||ml(r,hl(o))}var a=r.length,i=!0;return function(e,t){if(i)return i=!1,t;if(ll(this))return t;for(var n=0;n<a;n++)if(r[n]===e)return t}}},Sl=Or,Rl=String,Dl=gl("JSON","stringify"),Tl=_l(/./.exec),Ol=_l("".charAt),Il=_l("".charCodeAt),Cl=_l("".replace),Pl=_l(1..toString),Ll=/[\uD800-\uDFFF]/g,Ml=/^[\uD800-\uDBFF]$/,jl=/^[\uDC00-\uDFFF]$/,$l=!Sl||wl((function(){var e=gl("Symbol")("stringify detection");return"[null]"!==Dl([e])||"{}"!==Dl({a:e})||"{}"!==Dl(Object(e))})),Ul=wl((function(){return'"\\udf06\\ud834"'!==Dl("\udf06\ud834")||'"\\udead"'!==Dl("\udead")})),Bl=function(e,t){var r=kl(arguments),n=El(t);if(Al(n)||void 0!==e&&!xl(e))return r[1]=function(e,t){if(Al(n)&&(t=yl(n,this,Rl(e),t)),!xl(t))return t},bl(Dl,null,r)},Nl=function(e,t,r){var n=Ol(r,t-1),o=Ol(r,t+1);return Tl(Ml,e)&&!Tl(jl,o)||Tl(jl,e)&&!Tl(Ml,n)?"\\u"+Pl(Il(e,0),16):e};Dl&&vl({target:"JSON",stat:!0,arity:3,forced:$l||Ul},{stringify:function(e,t,r){var n=kl(arguments),o=bl($l?Bl:Dl,null,n);return Ul&&"string"==typeof o?Cl(o,Ll,Nl):o}});var Fl=ws,Gl=dr;Ys({target:"Object",stat:!0,forced:!Or||Jt((function(){Fl.f(1)}))},{getOwnPropertySymbols:function(e){var t=Fl.f;return t?t(Gl(e)):[]}});var zl=Ri.filter;Ys({target:"Array",proto:!0,forced:!du("filter")},{filter:function(e){return zl(this,e,arguments.length>1?arguments[1]:void 0)}});var Hl=Ys,Zl=Jt,Kl=Ki,ql=Bi.f,Wl=Vr;Hl({target:"Object",stat:!0,forced:!Wl||Zl((function(){ql(1)})),sham:!Wl},{getOwnPropertyDescriptor:function(e,t){return ql(Kl(e),t)}});var Vl=Rs,Yl=Ki,Jl=Bi,Ql=iu;Ys({target:"Object",stat:!0,sham:!Vr},{getOwnPropertyDescriptors:function(e){for(var t,r,n=Yl(e),o=Jl.f,a=Vl(n),i={},s=0;a.length>s;)void 0!==(r=o(n,t=a[s++]))&&Ql(i,t,r);return i}});var Xl=Ys,ef=Qa,tf=fi,rf=Qr,nf=is,of=Ya,af=Ki,sf=iu,uf=Fr,cf=dl,df=du("slice"),lf=uf("species"),ff=Array,pf=Math.max;Xl({target:"Array",proto:!0,forced:!df},{slice:function(e,t){var r,n,o,a=af(this),i=of(a),s=nf(e,i),u=nf(void 0===t?i:t,i);if(ef(a)&&(r=a.constructor,(tf(r)&&(r===ff||ef(r.prototype))||rf(r)&&null===(r=r[lf]))&&(r=void 0),r===ff||void 0===r))return cf(a,s,u);for(n=new(void 0===r?ff:r)(pf(u-s,0)),o=0;s<u;s++,o++)s in a&&sf(n,o,a[s]);return n.length=o,n}});var hf=dn,mf=function(){var e=hf(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},vf=pn,gf=pr,bf=gn,yf=mf,_f=RegExp.prototype,wf=function(e){var t=e.flags;return void 0!==t||"flags"in _f||gf(e,"flags")||!bf(_f,e)?t:vf(yf,e)},Af=co.PROPER,xf=la,kf=dn,Ef=Lu,Sf=Jt,Rf=wf,Df="toString",Tf=RegExp.prototype[Df],Of=Sf((function(){return"/a/b"!==Tf.call({source:"a",flags:"b"})})),If=Af&&Tf.name!==Df;(Of||If)&&xf(RegExp.prototype,Df,(function(){var e=kf(this);return"/"+Ef(e.source)+"/"+Ef(Rf(e))}),{unsafe:!0});var Cf=pn,Pf=dn,Lf=In,Mf=function(e,t,r){var n,o;Pf(e);try{if(!(n=Lf(e,"return"))){if("throw"===t)throw r;return r}n=Cf(n,e)}catch(e){o=!0,n=e}if("throw"===t)throw r;if(o)throw n;return Pf(n),r},jf=dn,$f=Mf,Uf={},Bf=Uf,Nf=Fr("iterator"),Ff=Array.prototype,Gf=function(e){return void 0!==e&&(Bf.Array===e||Ff[Nf]===e)},zf=Aa,Hf=In,Zf=or,Kf=Uf,qf=Fr("iterator"),Wf=function(e){if(!Zf(e))return Hf(e,qf)||Hf(e,"@@iterator")||Kf[zf(e)]},Vf=pn,Yf=Dn,Jf=dn,Qf=kn,Xf=Wf,ep=TypeError,tp=function(e,t){var r=arguments.length<2?Xf(e):t;if(Yf(r))return Jf(Vf(r,e));throw new ep(Qf(e)+" is not iterable")},rp=Ma,np=pn,op=dr,ap=function(e,t,r,n){try{return n?t(jf(r)[0],r[1]):t(r)}catch(t){$f(e,"throw",t)}},ip=Gf,sp=fi,up=Ya,cp=iu,dp=tp,lp=Wf,fp=Array,pp=function(e){var t=op(e),r=sp(this),n=arguments.length,o=n>1?arguments[1]:void 0,a=void 0!==o;a&&(o=rp(o,n>2?arguments[2]:void 0));var i,s,u,c,d,l,f=lp(t),p=0;if(!f||this===fp&&ip(f))for(i=up(t),s=r?new this(i):fp(i);i>p;p++)l=a?o(t[p],p):t[p],cp(s,p,l);else for(d=(c=dp(t,f)).next,s=r?new this:[];!(u=np(d,c)).done;p++)l=a?ap(c,o,[u.value,p],!0):u.value,cp(s,p,l);return s.length=p,s},hp=Fr("iterator"),mp=!1;try{var vp=0,gp={next:function(){return{done:!!vp++}},return:function(){mp=!0}};gp[hp]=function(){return this},Array.from(gp,(function(){throw 2}))}catch(FS){}var bp=function(e,t){try{if(!t&&!mp)return!1}catch(e){return!1}var r=!1;try{var n={};n[hp]=function(){return{next:function(){return{done:r=!0}}}},e(n)}catch(e){}return r},yp=pp;Ys({target:"Array",stat:!0,forced:!bp((function(e){Array.from(e)}))},{from:yp});var _p,wp,Ap,xp=nr,kp=Za,Ep=Lu,Sp=sr,Rp=xp("".charAt),Dp=xp("".charCodeAt),Tp=xp("".slice),Op=function(e){return function(t,r){var n,o,a=Ep(Sp(t)),i=kp(r),s=a.length;return i<0||i>=s?e?"":void 0:(n=Dp(a,i))<55296||n>56319||i+1===s||(o=Dp(a,i+1))<56320||o>57343?e?Rp(a,i):n:e?Tp(a,i,i+2):o-56320+(n-55296<<10)+65536}},Ip={codeAt:Op(!1),charAt:Op(!0)},Cp=!Jt((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Pp=pr,Lp=qr,Mp=dr,jp=Cp,$p=Do("IE_PROTO"),Up=Object,Bp=Up.prototype,Np=jp?Up.getPrototypeOf:function(e){var t=Mp(e);if(Pp(t,$p))return t[$p];var r=t.constructor;return Lp(r)&&t instanceof r?r.prototype:t instanceof Up?Bp:null},Fp=Jt,Gp=qr,zp=Qr,Hp=Np,Zp=la,Kp=Fr("iterator"),qp=!1;[].keys&&("next"in(Ap=[].keys())?(wp=Hp(Hp(Ap)))!==Object.prototype&&(_p=wp):qp=!0);var Wp=!zp(_p)||Fp((function(){var e={};return _p[Kp].call(e)!==e}));Wp&&(_p={}),Gp(_p[Kp])||Zp(_p,Kp,(function(){return this}));var Vp={IteratorPrototype:_p,BUGGY_SAFARI_ITERATORS:qp},Yp=Vp.IteratorPrototype,Jp=nc,Qp=wo,Xp=Pc,eh=Uf,th=function(){return this},rh=function(e,t,r,n){var o=t+" Iterator";return e.prototype=Jp(Yp,{next:Qp(+!n,r)}),Xp(e,o,!1),eh[o]=th,e},nh=nr,oh=Dn,ah=qr,ih=String,sh=TypeError,uh=function(e,t,r){try{return nh(oh(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}},ch=dn,dh=function(e){if("object"==typeof e||ah(e))return e;throw new sh("Can't set "+ih(e)+" as a prototype")},lh=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=uh(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return ch(r),dh(n),t?e(r,n):r.__proto__=n,r}}():void 0),fh=Ys,ph=pn,hh=qr,mh=rh,vh=Np,gh=lh,bh=Pc,yh=ko,_h=la,wh=Uf,Ah=co.PROPER,xh=co.CONFIGURABLE,kh=Vp.IteratorPrototype,Eh=Vp.BUGGY_SAFARI_ITERATORS,Sh=Fr("iterator"),Rh="keys",Dh="values",Th="entries",Oh=function(){return this},Ih=function(e,t,r,n,o,a,i){mh(r,t,n);var s,u,c,d=function(e){if(e===o&&m)return m;if(!Eh&&e&&e in p)return p[e];switch(e){case Rh:case Dh:case Th:return function(){return new r(this,e)}}return function(){return new r(this)}},l=t+" Iterator",f=!1,p=e.prototype,h=p[Sh]||p["@@iterator"]||o&&p[o],m=!Eh&&h||d(o),v="Array"===t&&p.entries||h;if(v&&(s=vh(v.call(new e)))!==Object.prototype&&s.next&&(vh(s)!==kh&&(gh?gh(s,kh):hh(s[Sh])||_h(s,Sh,Oh)),bh(s,l,!0)),Ah&&o===Dh&&h&&h.name!==Dh&&(xh?yh(p,"name",Dh):(f=!0,m=function(){return ph(h,this)})),o)if(u={values:d(Dh),keys:a?m:d(Rh),entries:d(Th)},i)for(c in u)(Eh||f||!(c in p))&&_h(p,c,u[c]);else fh({target:t,proto:!0,forced:Eh||f},u);return p[Sh]!==m&&_h(p,Sh,m,{name:o}),wh[t]=m,u},Ch=function(e,t){return{value:e,done:t}},Ph=Ip.charAt,Lh=Lu,Mh=zo,jh=Ih,$h=Ch,Uh="String Iterator",Bh=Mh.set,Nh=Mh.getterFor(Uh);jh(String,"String",(function(e){Bh(this,{type:Uh,string:Lh(e),index:0})}),(function(){var e,t=Nh(this),r=t.string,n=t.index;return n>=r.length?$h(void 0,!0):(e=Ph(r,n),t.index+=e.length,$h(e,!1))}));var Fh=Jt,Gh=Nt.RegExp,zh=Fh((function(){var e=Gh("a","y");return e.lastIndex=2,null!==e.exec("abcd")})),Hh=zh||Fh((function(){return!Gh("a","y").sticky})),Zh=zh||Fh((function(){var e=Gh("^r","gy");return e.lastIndex=2,null!==e.exec("str")})),Kh={BROKEN_CARET:Zh,MISSED_STICKY:Hh,UNSUPPORTED_Y:zh},qh=Jt,Wh=Nt.RegExp,Vh=qh((function(){var e=Wh(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})),Yh=Jt,Jh=Nt.RegExp,Qh=Yh((function(){var e=Jh("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})),Xh=pn,em=nr,tm=Lu,rm=mf,nm=Kh,om=Ft.exports,am=nc,im=zo.get,sm=Vh,um=Qh,cm=om("native-string-replace",String.prototype.replace),dm=RegExp.prototype.exec,lm=dm,fm=em("".charAt),pm=em("".indexOf),hm=em("".replace),mm=em("".slice),vm=function(){var e=/a/,t=/b*/g;return Xh(dm,e,"a"),Xh(dm,t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),gm=nm.BROKEN_CARET,bm=void 0!==/()??/.exec("")[1];(vm||bm||gm||sm||um)&&(lm=function(e){var t,r,n,o,a,i,s,u=this,c=im(u),d=tm(e),l=c.raw;if(l)return l.lastIndex=u.lastIndex,t=Xh(lm,l,d),u.lastIndex=l.lastIndex,t;var f=c.groups,p=gm&&u.sticky,h=Xh(rm,u),m=u.source,v=0,g=d;if(p&&(h=hm(h,"y",""),-1===pm(h,"g")&&(h+="g"),g=mm(d,u.lastIndex),u.lastIndex>0&&(!u.multiline||u.multiline&&"\n"!==fm(d,u.lastIndex-1))&&(m="(?: "+m+")",g=" "+g,v++),r=new RegExp("^(?:"+m+")",h)),bm&&(r=new RegExp("^"+m+"$(?!\\s)",h)),vm&&(n=u.lastIndex),o=Xh(dm,p?r:u,g),p?o?(o.input=mm(o.input,v),o[0]=mm(o[0],v),o.index=u.lastIndex,u.lastIndex+=o[0].length):u.lastIndex=0:vm&&o&&(u.lastIndex=u.global?o.index+o[0].length:n),bm&&o&&o.length>1&&Xh(cm,o[0],r,(function(){for(a=1;a<arguments.length-2;a++)void 0===arguments[a]&&(o[a]=void 0)})),o&&f)for(o.groups=i=am(null),a=0;a<f.length;a++)i[(s=f[a])[0]]=o[s[1]];return o});var ym=lm;Ys({target:"RegExp",proto:!0,forced:/./.exec!==ym},{exec:ym});var _m=Ys,wm=Vr,Am=nr,xm=pr,km=qr,Em=gn,Sm=Lu,Rm=bc,Dm=Cs,Tm=Nt.Symbol,Om=Tm&&Tm.prototype;if(wm&&km(Tm)&&(!("description"in Om)||void 0!==Tm().description)){var Im={},Cm=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:Sm(arguments[0]),t=Em(Om,this)?new Tm(e):void 0===e?Tm():Tm(e);return""===e&&(Im[t]=!0),t};Dm(Cm,Tm),Cm.prototype=Om,Om.constructor=Cm;var Pm="Symbol(description detection)"===String(Tm("description detection")),Lm=Am(Om.valueOf),Mm=Am(Om.toString),jm=/^Symbol\((.*)\)[^)]+$/,$m=Am("".replace),Um=Am("".slice);Rm(Om,"description",{configurable:!0,get:function(){var e=Lm(this);if(xm(Im,e))return"";var t=Mm(e),r=Pm?Um(t,7,-1):$m(t,jm,"$1");return""===r?void 0:r}}),_m({global:!0,constructor:!0,forced:!0},{Symbol:Cm})}Ec("iterator");var Bm=Fr,Nm=nc,Fm=Wr.f,Gm=Bm("unscopables"),zm=Array.prototype;void 0===zm[Gm]&&Fm(zm,Gm,{configurable:!0,value:Nm(null)});var Hm=function(e){zm[Gm][e]=!0},Zm=Ki,Km=Hm,qm=Uf,Wm=zo,Vm=Wr.f,Ym=Ih,Jm=Ch,Qm=Vr,Xm="Array Iterator",ev=Wm.set,tv=Wm.getterFor(Xm),rv=Ym(Array,"Array",(function(e,t){ev(this,{type:Xm,target:Zm(e),index:0,kind:t})}),(function(){var e=tv(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=void 0,Jm(void 0,!0);switch(e.kind){case"keys":return Jm(r,!1);case"values":return Jm(t[r],!1)}return Jm([r,t[r]],!1)}),"values"),nv=qm.Arguments=qm.Array;if(Km("keys"),Km("values"),Km("entries"),Qm&&"values"!==nv.name)try{Vm(nv,"name",{value:"values"})}catch(FS){}var ov=Nt,av=Ea,iv=Da,sv=rv,uv=ko,cv=Pc,dv=Fr("iterator"),lv=sv.values,fv=function(e,t){if(e){if(e[dv]!==lv)try{uv(e,dv,lv)}catch(t){e[dv]=lv}if(cv(e,t,!0),av[t])for(var r in sv)if(e[r]!==sv[r])try{uv(e,r,sv[r])}catch(t){e[r]=sv[r]}}};for(var pv in av)fv(ov[pv]&&ov[pv].prototype,pv);fv(iv,"DOMTokenList");var hv,mv,vv,gv,bv="process"===ma(Nt.process),yv=vn,_v=bc,wv=Vr,Av=Fr("species"),xv=function(e){var t=yv(e);wv&&t&&!t[Av]&&_v(t,Av,{configurable:!0,get:function(){return this}})},kv=gn,Ev=TypeError,Sv=function(e,t){if(kv(t,e))return e;throw new Ev("Incorrect invocation")},Rv=fi,Dv=kn,Tv=TypeError,Ov=dn,Iv=function(e){if(Rv(e))return e;throw new Tv(Dv(e)+" is not a constructor")},Cv=or,Pv=Fr("species"),Lv=function(e,t){var r,n=Ov(e).constructor;return void 0===n||Cv(r=Ov(n)[Pv])?t:Iv(r)},Mv=TypeError,jv=function(e,t){if(e<t)throw new Mv("Not enough arguments");return e},$v=/(?:ipad|iphone|ipod).*applewebkit/i.test(yr),Uv=Nt,Bv=cl,Nv=Ma,Fv=qr,Gv=pr,zv=Jt,Hv=zu,Zv=dl,Kv=rn,qv=jv,Wv=$v,Vv=bv,Yv=Uv.setImmediate,Jv=Uv.clearImmediate,Qv=Uv.process,Xv=Uv.Dispatch,eg=Uv.Function,tg=Uv.MessageChannel,rg=Uv.String,ng=0,og={},ag="onreadystatechange";zv((function(){hv=Uv.location}));var ig=function(e){if(Gv(og,e)){var t=og[e];delete og[e],t()}},sg=function(e){return function(){ig(e)}},ug=function(e){ig(e.data)},cg=function(e){Uv.postMessage(rg(e),hv.protocol+"//"+hv.host)};Yv&&Jv||(Yv=function(e){qv(arguments.length,1);var t=Fv(e)?e:eg(e),r=Zv(arguments,1);return og[++ng]=function(){Bv(t,void 0,r)},mv(ng),ng},Jv=function(e){delete og[e]},Vv?mv=function(e){Qv.nextTick(sg(e))}:Xv&&Xv.now?mv=function(e){Xv.now(sg(e))}:tg&&!Wv?(gv=(vv=new tg).port2,vv.port1.onmessage=ug,mv=Nv(gv.postMessage,gv)):Uv.addEventListener&&Fv(Uv.postMessage)&&!Uv.importScripts&&hv&&"file:"!==hv.protocol&&!zv(cg)?(mv=cg,Uv.addEventListener("message",ug,!1)):mv=ag in Kv("script")?function(e){Hv.appendChild(Kv("script"))[ag]=function(){Hv.removeChild(this),ig(e)}}:function(e){setTimeout(sg(e),0)});var dg={set:Yv,clear:Jv},lg=function(){this.head=null,this.tail=null};lg.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 fg,pg,hg,mg,vg,gg=lg,bg=/ipad|iphone|ipod/i.test(yr)&&"undefined"!=typeof Pebble,yg=/web0s(?!.*chrome)/i.test(yr),_g=Nt,wg=Ma,Ag=Bi.f,xg=dg.set,kg=gg,Eg=$v,Sg=bg,Rg=yg,Dg=bv,Tg=_g.MutationObserver||_g.WebKitMutationObserver,Og=_g.document,Ig=_g.process,Cg=_g.Promise,Pg=Ag(_g,"queueMicrotask"),Lg=Pg&&Pg.value;if(!Lg){var Mg=new kg,jg=function(){var e,t;for(Dg&&(e=Ig.domain)&&e.exit();t=Mg.get();)try{t()}catch(e){throw Mg.head&&fg(),e}e&&e.enter()};Eg||Dg||Rg||!Tg||!Og?!Sg&&Cg&&Cg.resolve?((mg=Cg.resolve(void 0)).constructor=Cg,vg=wg(mg.then,mg),fg=function(){vg(jg)}):Dg?fg=function(){Ig.nextTick(jg)}:(xg=wg(xg,_g),fg=function(){xg(jg)}):(pg=!0,hg=Og.createTextNode(""),new Tg(jg).observe(hg,{characterData:!0}),fg=function(){hg.data=pg=!pg}),Lg=function(e){Mg.head||fg(),Mg.add(e)}}var $g=Lg,Ug=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Bg=Nt.Promise,Ng="object"==typeof Deno&&Deno&&"object"==typeof Deno.version,Fg=!Ng&&!bv&&"object"==typeof window&&"object"==typeof document,Gg=Nt,zg=Bg,Hg=qr,Zg=Fs,Kg=go,qg=Fr,Wg=Fg,Vg=Ng,Yg=Sr;zg&&zg.prototype;var Jg=qg("species"),Qg=!1,Xg=Hg(Gg.PromiseRejectionEvent),eb=Zg("Promise",(function(){var e=Kg(zg),t=e!==String(zg);if(!t&&66===Yg)return!0;if(!Yg||Yg<51||!/native code/.test(e)){var r=new zg((function(e){e(1)})),n=function(e){e((function(){}),(function(){}))};if((r.constructor={})[Jg]=n,!(Qg=r.then((function(){}))instanceof n))return!0}return!t&&(Wg||Vg)&&!Xg})),tb={CONSTRUCTOR:eb,REJECTION_EVENT:Xg,SUBCLASSING:Qg},rb={},nb=Dn,ob=TypeError,ab=function(e){var t,r;this.promise=new e((function(e,n){if(void 0!==t||void 0!==r)throw new ob("Bad Promise constructor");t=e,r=n})),this.resolve=nb(t),this.reject=nb(r)};rb.f=function(e){return new ab(e)};var ib,sb,ub,cb=Ys,db=bv,lb=Nt,fb=pn,pb=la,hb=lh,mb=Pc,vb=xv,gb=Dn,bb=qr,yb=Qr,_b=Sv,wb=Lv,Ab=dg.set,xb=$g,kb=function(e,t){try{1===arguments.length?console.error(e):console.error(e,t)}catch(e){}},Eb=Ug,Sb=gg,Rb=zo,Db=Bg,Tb=rb,Ob="Promise",Ib=tb.CONSTRUCTOR,Cb=tb.REJECTION_EVENT,Pb=tb.SUBCLASSING,Lb=Rb.getterFor(Ob),Mb=Rb.set,jb=Db&&Db.prototype,$b=Db,Ub=jb,Bb=lb.TypeError,Nb=lb.document,Fb=lb.process,Gb=Tb.f,zb=Gb,Hb=!!(Nb&&Nb.createEvent&&lb.dispatchEvent),Zb="unhandledrejection",Kb=function(e){var t;return!(!yb(e)||!bb(t=e.then))&&t},qb=function(e,t){var r,n,o,a=t.value,i=1===t.state,s=i?e.ok:e.fail,u=e.resolve,c=e.reject,d=e.domain;try{s?(i||(2===t.rejection&&Qb(t),t.rejection=1),!0===s?r=a:(d&&d.enter(),r=s(a),d&&(d.exit(),o=!0)),r===e.promise?c(new Bb("Promise-chain cycle")):(n=Kb(r))?fb(n,r,u,c):u(r)):c(a)}catch(e){d&&!o&&d.exit(),c(e)}},Wb=function(e,t){e.notified||(e.notified=!0,xb((function(){for(var r,n=e.reactions;r=n.get();)qb(r,e);e.notified=!1,t&&!e.rejection&&Yb(e)})))},Vb=function(e,t,r){var n,o;Hb?((n=Nb.createEvent("Event")).promise=t,n.reason=r,n.initEvent(e,!1,!0),lb.dispatchEvent(n)):n={promise:t,reason:r},!Cb&&(o=lb["on"+e])?o(n):e===Zb&&kb("Unhandled promise rejection",r)},Yb=function(e){fb(Ab,lb,(function(){var t,r=e.facade,n=e.value;if(Jb(e)&&(t=Eb((function(){db?Fb.emit("unhandledRejection",n,r):Vb(Zb,r,n)})),e.rejection=db||Jb(e)?2:1,t.error))throw t.value}))},Jb=function(e){return 1!==e.rejection&&!e.parent},Qb=function(e){fb(Ab,lb,(function(){var t=e.facade;db?Fb.emit("rejectionHandled",t):Vb("rejectionhandled",t,e.value)}))},Xb=function(e,t,r){return function(n){e(t,n,r)}},ey=function(e,t,r){e.done||(e.done=!0,r&&(e=r),e.value=t,e.state=2,Wb(e,!0))},ty=function(e,t,r){if(!e.done){e.done=!0,r&&(e=r);try{if(e.facade===t)throw new Bb("Promise can't be resolved itself");var n=Kb(t);n?xb((function(){var r={done:!1};try{fb(n,t,Xb(ty,r,e),Xb(ey,r,e))}catch(t){ey(r,t,e)}})):(e.value=t,e.state=1,Wb(e,!1))}catch(t){ey({done:!1},t,e)}}};if(Ib&&($b=function(e){_b(this,Ub),gb(e),fb(ib,this);var t=Lb(this);try{e(Xb(ty,t),Xb(ey,t))}catch(e){ey(t,e)}},Ub=$b.prototype,(ib=function(e){Mb(this,{type:Ob,done:!1,notified:!1,parent:!1,reactions:new Sb,rejection:!1,state:0,value:void 0})}).prototype=pb(Ub,"then",(function(e,t){var r=Lb(this),n=Gb(wb(this,$b));return r.parent=!0,n.ok=!bb(e)||e,n.fail=bb(t)&&t,n.domain=db?Fb.domain:void 0,0===r.state?r.reactions.add(n):xb((function(){qb(n,r)})),n.promise})),sb=function(){var e=new ib,t=Lb(e);this.promise=e,this.resolve=Xb(ty,t),this.reject=Xb(ey,t)},Tb.f=Gb=function(e){return e===$b||undefined===e?new sb(e):zb(e)},bb(Db)&&jb!==Object.prototype)){ub=jb.then,Pb||pb(jb,"then",(function(e,t){var r=this;return new $b((function(e,t){fb(ub,r,e,t)})).then(e,t)}),{unsafe:!0});try{delete jb.constructor}catch(FS){}hb&&hb(jb,Ub)}cb({global:!0,constructor:!0,wrap:!0,forced:Ib},{Promise:$b}),mb($b,Ob,!1),vb(Ob);var ry=Ma,ny=pn,oy=dn,ay=kn,iy=Gf,sy=Ya,uy=gn,cy=tp,dy=Wf,ly=Mf,fy=TypeError,py=function(e,t){this.stopped=e,this.result=t},hy=py.prototype,my=function(e,t,r){var n,o,a,i,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=ry(t,d),v=function(e){return n&&ly(n,"normal",e),new py(!0,e)},g=function(e){return l?(oy(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(!(o=dy(e)))throw new fy(ay(e)+" is not iterable");if(iy(o)){for(a=0,i=sy(e);i>a;a++)if((s=g(e[a]))&&uy(hy,s))return s;return new py(!1)}n=cy(e,o)}for(u=f?e.next:n.next;!(c=ny(u,n)).done;){try{s=g(c.value)}catch(e){ly(n,"throw",e)}if("object"==typeof s&&s&&uy(hy,s))return s}return new py(!1)},vy=Bg,gy=tb.CONSTRUCTOR||!bp((function(e){vy.all(e).then(void 0,(function(){}))})),by=pn,yy=Dn,_y=rb,wy=Ug,Ay=my;Ys({target:"Promise",stat:!0,forced:gy},{all:function(e){var t=this,r=_y.f(t),n=r.resolve,o=r.reject,a=wy((function(){var r=yy(t.resolve),a=[],i=0,s=1;Ay(e,(function(e){var u=i++,c=!1;s++,by(r,t,e).then((function(e){c||(c=!0,a[u]=e,--s||n(a))}),o)})),--s||n(a)}));return a.error&&o(a.value),r.promise}});var xy=Ys,ky=tb.CONSTRUCTOR,Ey=Bg,Sy=vn,Ry=qr,Dy=la,Ty=Ey&&Ey.prototype;if(xy({target:"Promise",proto:!0,forced:ky,real:!0},{catch:function(e){return this.then(void 0,e)}}),Ry(Ey)){var Oy=Sy("Promise").prototype.catch;Ty.catch!==Oy&&Dy(Ty,"catch",Oy,{unsafe:!0})}var Iy=pn,Cy=Dn,Py=rb,Ly=Ug,My=my;Ys({target:"Promise",stat:!0,forced:gy},{race:function(e){var t=this,r=Py.f(t),n=r.reject,o=Ly((function(){var o=Cy(t.resolve);My(e,(function(e){Iy(o,t,e).then(r.resolve,n)}))}));return o.error&&n(o.value),r.promise}});var jy=pn,$y=rb;Ys({target:"Promise",stat:!0,forced:tb.CONSTRUCTOR},{reject:function(e){var t=$y.f(this);return jy(t.reject,void 0,e),t.promise}});var Uy=dn,By=Qr,Ny=rb,Fy=function(e,t){if(Uy(e),By(t)&&t.constructor===e)return t;var r=Ny.f(e);return(0,r.resolve)(t),r.promise},Gy=Ys,zy=tb.CONSTRUCTOR,Hy=Fy;vn("Promise"),Gy({target:"Promise",stat:!0,forced:zy},{resolve:function(e){return Hy(this,e)}});var Zy=Vr,Ky=co.EXISTS,qy=nr,Wy=bc,Vy=Function.prototype,Yy=qy(Vy.toString),Jy=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Qy=qy(Jy.exec);function Xy(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 e_(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 e_(e,t)}(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,i=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw a}}}}function e_(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 t_(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 r_(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?t_(Object(r),!0).forEach((function(t){Iu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):t_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}Zy&&!Ky&&Wy(Vy,"name",{configurable:!0,get:function(){try{return Qy(Jy,Yy(this))[1]}catch(e){return""}}});var n_,o_={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"}},a_={},i_=function(e,t){a_[e]=r_(r_({},t),{},{isLoading:!1})},s_=function(e){var t=this,n=e.id,o=e.src;return new Promise(function(e,a){if(r(this,t),document.getElementById(n))e();else{var i=document.createElement("script");i.onload=function(){e()},i.id=n,i.setAttribute("crossorigin",!0),i.src=o,document.head.appendChild(i)}}.bind(this))},u_=function(){var e=t(d.mark((function e(t){var r,n,o,a,i,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=a_[t]).isLoading){e.next=6;break}return e.abrupt("return");case 6:n.isLoading=!0,o=Xy(n.dependencies),e.prev=8,o.s();case 10:if((a=o.n()).done){e.next=26;break}if(i=a.value,e.prev=12,s=o_[i].name,!window[s]){e.next=16;break}return e.abrupt("continue",24);case 16:return e.next=18,s_({id:i,src:o_[i].src});case 18:e.next=24;break;case 20:e.prev=20,e.t0=e.catch(12),u=i.id,c=i.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),o.e(e.t1);case 31:return e.prev=31,o.f(),e.finish(31);case 34:return e.prev=34,e.next=37,s_({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)}}(),c_=L((function e(){var r=this;I(this,e),Iu(this,"load",t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u_("Leaderboard");case 2:r.leaderboard=e.sent;case 3:case"end":return e.stop()}}),e)})))),Iu(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)}}()),Iu(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"]},i_(this.moduleName,this.moduleConfig)})),d_=new c_,l_=Qr,f_=ma,p_=Fr("match"),h_=function(e){var t;return l_(e)&&(void 0!==(t=e[p_])?!!t:"RegExp"===f_(e))},m_=h_,v_=TypeError,g_=function(e){if(m_(e))throw new v_("The method doesn't accept regular expressions");return e},b_=Fr("match"),y_=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[b_]=!1,"/./"[e](t)}catch(e){}}return!1},__=Ys,w_=Ia,A_=Bi.f,x_=Wa,k_=Lu,E_=g_,S_=sr,R_=y_,D_=w_("".startsWith),T_=w_("".slice),O_=Math.min,I_=R_("startsWith");__({target:"String",proto:!0,forced:!!(I_||(n_=A_(String.prototype,"startsWith"),!n_||n_.writable))&&!I_},{startsWith:function(e){var t=k_(S_(this));E_(e);var r=x_(O_(arguments.length>1?arguments[1]:void 0,t.length)),n=k_(e);return D_?D_(t,n,r):T_(t,r,r+n.length)===n}});var C_=Ia,P_=la,L_=ym,M_=Jt,j_=Fr,$_=ko,U_=j_("species"),B_=RegExp.prototype,N_=function(e,t,r,n){var o=j_(e),a=!M_((function(){var t={};return t[o]=function(){return 7},7!==""[e](t)})),i=a&&!M_((function(){var t=!1,r=/a/;return"split"===e&&((r={}).constructor={},r.constructor[U_]=function(){return r},r.flags="",r[o]=/./[o]),r.exec=function(){return t=!0,null},r[o](""),!t}));if(!a||!i||r){var s=C_(/./[o]),u=t(o,""[e],(function(e,t,r,n,o){var i=C_(e),u=t.exec;return u===L_||u===B_.exec?a&&!o?{done:!0,value:s(t,r,n)}:{done:!0,value:i(r,t,n)}:{done:!1}}));P_(String.prototype,e,u[0]),P_(B_,o,u[1])}n&&$_(B_[o],"sham",!0)},F_=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},G_=pn,z_=dn,H_=qr,Z_=ma,K_=ym,q_=TypeError,W_=function(e,t){var r=e.exec;if(H_(r)){var n=G_(r,e,t);return null!==n&&z_(n),n}if("RegExp"===Z_(e))return G_(K_,e,t);throw new q_("RegExp#exec called on incompatible receiver")},V_=pn,Y_=dn,J_=or,Q_=sr,X_=F_,ew=Lu,tw=In,rw=W_;function nw(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 ow(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nw(Object(r),!0).forEach((function(t){Iu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nw(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}N_("search",(function(e,t,r){return[function(t){var r=Q_(this),n=J_(t)?void 0:tw(t,e);return n?V_(n,t,r):new RegExp(t)[e](ew(r))},function(e){var n=Y_(this),o=ew(e),a=r(t,n,o);if(a.done)return a.value;var i=n.lastIndex;X_(i,0)||(n.lastIndex=0);var s=rw(n,o);return X_(n.lastIndex,i)||(n.lastIndex=i),null===s?-1:s.index}]}));var aw,iw,sw=function(){function e(){I(this,e)}return L(e,[{key:"getBridgeContext",value:function(){var e=this._isTokenGameURL(),t=this._isMasterGameURL(),r=this._isExtHostedGameURL(),n=e||r?this._getTokenGameURLConfig():{};n=n||{};var o=decodeURIComponent((e||r)&&n.parentURL?n.parentURL:dt()),a=decodeURIComponent((e||r)&&n.parentDomain?n.parentDomain:ct()),i=decodeURIComponent((e||r)&&n.topDomain?n.topDomain:r&&0===gt()?a:_t()),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:o,parentDomain:a,topDomain:i&&i.length?i:a,noGAPageView:d,noLotamePageView:l,noGamedockSDK:f,noMinijuegosSDK:p,version:n.version,pauseGameOnStartup:m,depth:gt(),domainMatched:a===i,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 O(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 O(document.referrer,!0);if(!n.query.gd_zone_config)return;e=n.query.gd_zone_config}else{var o=new O(location.href,!0);if(!o.query.gd_zone_config)return;e=o.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 O(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 O(e,!0);return r.query=ow(ow({},r.query),t),r.toString()}},{key:"_base64_encode",value:function(e){return it.encode(JSON.stringify(e))}}]),e}(),uw=function(){try{return(new sw).getBridgeContext()}catch(e){return{}}}(),cw={userDeclinedTracking:document.location.search.indexOf("gdpr-tracking=0")>=0||document.cookie.indexOf("ogdpr_tracking=0")>=0,whitelabelPartner:(aw=!1,(iw=ft()).hasOwnProperty("xanthophyll")&&"true"===iw.xanthophyll&&(aw=!0),aw)},dw=Ip.charAt,lw=nr,fw=dr,pw=Math.floor,hw=lw("".charAt),mw=lw("".replace),vw=lw("".slice),gw=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,bw=/\$([$&'`]|\d{1,2})/g,yw=cl,_w=pn,ww=nr,Aw=N_,xw=Jt,kw=dn,Ew=qr,Sw=or,Rw=Za,Dw=Wa,Tw=Lu,Ow=sr,Iw=function(e,t,r){return t+(r?dw(e,t).length:1)},Cw=In,Pw=function(e,t,r,n,o,a){var i=r+e.length,s=n.length,u=bw;return void 0!==o&&(o=fw(o),u=gw),mw(a,u,(function(a,u){var c;switch(hw(u,0)){case"$":return"$";case"&":return e;case"`":return vw(t,0,r);case"'":return vw(t,i);case"<":c=o[vw(u,1,-1)];break;default:var d=+u;if(0===d)return a;if(d>s){var l=pw(d/10);return 0===l?a:l<=s?void 0===n[l-1]?hw(u,1):n[l-1]+hw(u,1):a}c=n[d-1]}return void 0===c?"":c}))},Lw=W_,Mw=Fr("replace"),jw=Math.max,$w=Math.min,Uw=ww([].concat),Bw=ww([].push),Nw=ww("".indexOf),Fw=ww("".slice),Gw=function(e){return void 0===e?e:String(e)},zw="$0"==="a".replace(/./,"$0"),Hw=!!/./[Mw]&&""===/./[Mw]("a","$0"),Zw=!xw((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}));Aw("replace",(function(e,t,r){var n=Hw?"$":"$0";return[function(e,r){var n=Ow(this),o=Sw(e)?void 0:Cw(e,Mw);return o?_w(o,e,n,r):_w(t,Tw(n),e,r)},function(e,o){var a=kw(this),i=Tw(e);if("string"==typeof o&&-1===Nw(o,n)&&-1===Nw(o,"$<")){var s=r(t,a,i,o);if(s.done)return s.value}var u=Ew(o);u||(o=Tw(o));var c,d=a.global;d&&(c=a.unicode,a.lastIndex=0);for(var l,f=[];null!==(l=Lw(a,i))&&(Bw(f,l),d);){""===Tw(l[0])&&(a.lastIndex=Iw(i,Dw(a.lastIndex),c))}for(var p="",h=0,m=0;m<f.length;m++){for(var v,g=Tw((l=f[m])[0]),b=jw($w(Rw(l.index),i.length),0),y=[],_=1;_<l.length;_++)Bw(y,Gw(l[_]));var w=l.groups;if(u){var A=Uw([g],y,b,i);void 0!==w&&Bw(A,w),v=Tw(yw(o,void 0,A))}else v=Pw(g,i,b,y,w,o);b>=h&&(p+=Fw(i,h,b)+v,h=b+g.length)}return p+Fw(i,h)}]}),!Zw||!zw||Hw);var Kw=Jt,qw=Vr,Ww=Fr("iterator"),Vw=!Kw((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&&!qw||!t.sort||"http://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[Ww]||"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})),Yw=la,Jw=dc,Qw=Math.floor,Xw=function(e,t){var r=e.length,n=Qw(r/2);return r<8?eA(e,t):tA(e,Xw(Jw(e,0,n),t),Xw(Jw(e,n),t),t)},eA=function(e,t){for(var r,n,o=e.length,a=1;a<o;){for(n=a,r=e[a];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==a++&&(e[n]=r)}return e},tA=function(e,t,r,n){for(var o=t.length,a=r.length,i=0,s=0;i<o||s<a;)e[i+s]=i<o&&s<a?n(t[i],r[s])<=0?t[i++]:r[s++]:i<o?t[i++]:r[s++];return e},rA=Ys,nA=Nt,oA=pn,aA=nr,iA=Vr,sA=Vw,uA=la,cA=bc,dA=function(e,t,r){for(var n in t)Yw(e,n,t[n],r);return e},lA=Pc,fA=rh,pA=zo,hA=Sv,mA=qr,vA=pr,gA=Ma,bA=Aa,yA=dn,_A=Qr,wA=Lu,AA=nc,xA=wo,kA=tp,EA=Wf,SA=Ch,RA=jv,DA=Xw,TA=Fr("iterator"),OA="URLSearchParams",IA=OA+"Iterator",CA=pA.set,PA=pA.getterFor(OA),LA=pA.getterFor(IA),MA=Object.getOwnPropertyDescriptor,jA=function(e){if(!iA)return nA[e];var t=MA(nA,e);return t&&t.value},$A=jA("fetch"),UA=jA("Request"),BA=jA("Headers"),NA=UA&&UA.prototype,FA=BA&&BA.prototype,GA=nA.RegExp,zA=nA.TypeError,HA=nA.decodeURIComponent,ZA=nA.encodeURIComponent,KA=aA("".charAt),qA=aA([].join),WA=aA([].push),VA=aA("".replace),YA=aA([].shift),JA=aA([].splice),QA=aA("".split),XA=aA("".slice),ex=/\+/g,tx=Array(4),rx=function(e){return tx[e-1]||(tx[e-1]=GA("((?:%[\\da-f]{2}){"+e+"})","gi"))},nx=function(e){try{return HA(e)}catch(t){return e}},ox=function(e){var t=VA(e,ex," "),r=4;try{return HA(t)}catch(e){for(;r;)t=VA(t,rx(r--),nx);return t}},ax=/[!'()~]|%20/g,ix={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},sx=function(e){return ix[e]},ux=function(e){return VA(ZA(e),ax,sx)},cx=fA((function(e,t){CA(this,{type:IA,target:PA(e).entries,index:0,kind:t})}),OA,(function(){var e=LA(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=void 0,SA(void 0,!0);var n=t[r];switch(e.kind){case"keys":return SA(n.key,!1);case"values":return SA(n.value,!1)}return SA([n.key,n.value],!1)}),!0),dx=function(e){this.entries=[],this.url=null,void 0!==e&&(_A(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===KA(e,0)?XA(e,1):e:wA(e)))};dx.prototype={type:OA,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,r,n,o,a,i,s,u=this.entries,c=EA(e);if(c)for(r=(t=kA(e,c)).next;!(n=oA(r,t)).done;){if(a=(o=kA(yA(n.value))).next,(i=oA(a,o)).done||(s=oA(a,o)).done||!oA(a,o).done)throw new zA("Expected sequence with length 2");WA(u,{key:wA(i.value),value:wA(s.value)})}else for(var d in e)vA(e,d)&&WA(u,{key:d,value:wA(e[d])})},parseQuery:function(e){if(e)for(var t,r,n=this.entries,o=QA(e,"&"),a=0;a<o.length;)(t=o[a++]).length&&(r=QA(t,"="),WA(n,{key:ox(YA(r)),value:ox(qA(r,"="))}))},serialize:function(){for(var e,t=this.entries,r=[],n=0;n<t.length;)e=t[n++],WA(r,ux(e.key)+"="+ux(e.value));return qA(r,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var lx=function(){hA(this,fx);var e=CA(this,new dx(arguments.length>0?arguments[0]:void 0));iA||(this.size=e.entries.length)},fx=lx.prototype;if(dA(fx,{append:function(e,t){var r=PA(this);RA(arguments.length,2),WA(r.entries,{key:wA(e),value:wA(t)}),iA||this.length++,r.updateURL()},delete:function(e){for(var t=PA(this),r=RA(arguments.length,1),n=t.entries,o=wA(e),a=r<2?void 0:arguments[1],i=void 0===a?a:wA(a),s=0;s<n.length;){var u=n[s];if(u.key!==o||void 0!==i&&u.value!==i)s++;else if(JA(n,s,1),void 0!==i)break}iA||(this.size=n.length),t.updateURL()},get:function(e){var t=PA(this).entries;RA(arguments.length,1);for(var r=wA(e),n=0;n<t.length;n++)if(t[n].key===r)return t[n].value;return null},getAll:function(e){var t=PA(this).entries;RA(arguments.length,1);for(var r=wA(e),n=[],o=0;o<t.length;o++)t[o].key===r&&WA(n,t[o].value);return n},has:function(e){for(var t=PA(this).entries,r=RA(arguments.length,1),n=wA(e),o=r<2?void 0:arguments[1],a=void 0===o?o:wA(o),i=0;i<t.length;){var s=t[i++];if(s.key===n&&(void 0===a||s.value===a))return!0}return!1},set:function(e,t){var r=PA(this);RA(arguments.length,1);for(var n,o=r.entries,a=!1,i=wA(e),s=wA(t),u=0;u<o.length;u++)(n=o[u]).key===i&&(a?JA(o,u--,1):(a=!0,n.value=s));a||WA(o,{key:i,value:s}),iA||(this.size=o.length),r.updateURL()},sort:function(){var e=PA(this);DA(e.entries,(function(e,t){return e.key>t.key?1:-1})),e.updateURL()},forEach:function(e){for(var t,r=PA(this).entries,n=gA(e,arguments.length>1?arguments[1]:void 0),o=0;o<r.length;)n((t=r[o++]).value,t.key,this)},keys:function(){return new cx(this,"keys")},values:function(){return new cx(this,"values")},entries:function(){return new cx(this,"entries")}},{enumerable:!0}),uA(fx,TA,fx.entries,{name:"entries"}),uA(fx,"toString",(function(){return PA(this).serialize()}),{enumerable:!0}),iA&&cA(fx,"size",{get:function(){return PA(this).entries.length},configurable:!0,enumerable:!0}),lA(lx,OA),rA({global:!0,constructor:!0,forced:!sA},{URLSearchParams:lx}),!sA&&mA(BA)){var px=aA(FA.has),hx=aA(FA.set),mx=function(e){if(_A(e)){var t,r=e.body;if(bA(r)===OA)return t=e.headers?new BA(e.headers):new BA,px(t,"content-type")||hx(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),AA(e,{body:xA(0,wA(r)),headers:xA(0,t)})}return e};if(mA($A)&&rA({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return $A(e,arguments.length>1?mx(arguments[1]):{})}}),mA(UA)){var vx=function(e){return hA(this,NA),new UA(e,arguments.length>1?mx(arguments[1]):{})};NA.constructor=vx,vx.prototype=NA,rA({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:vx})}}var gx={URLSearchParams:lx,getState:PA},bx=ls.includes,yx=Hm;Ys({target:"Array",proto:!0,forced:Jt((function(){return!Array(1).includes()}))},{includes:function(e){return bx(this,e,arguments.length>1?arguments[1]:void 0)}}),yx("includes");var _x=Ys,wx=g_,Ax=sr,xx=Lu,kx=y_,Ex=nr("".indexOf);_x({target:"String",proto:!0,forced:!kx("includes")},{includes:function(e){return!!~Ex(xx(Ax(this)),xx(wx(e)),arguments.length>1?arguments[1]:void 0)}});var Sx={exports:{}},Rx={exports:{}},Dx={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}(Dx,Dx.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=Dx.exports)&&r.__esModule?r:{default:r};e.exports=t.default,e.exports.default=t.default}(Rx,Rx.exports);var Tx={exports:{}},Ox={},Ix={};Object.defineProperty(Ix,"__esModule",{value:!0}),Ix.commaDecimal=Ix.dotDecimal=Ix.bengaliLocales=Ix.farsiLocales=Ix.arabicLocales=Ix.englishLocales=Ix.decimal=Ix.alphanumeric=Ix.alpha=void 0;var Cx={"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:/^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,"hi-IN":/^[\u0900-\u0961]+[\u0972-\u097F]*$/i,"si-LK":/^[\u0D80-\u0DFF]+$/};Ix.alpha=Cx;var Px={"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:/^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣ০১২৩৪৫৬৭৮৯ৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,"hi-IN":/^[\u0900-\u0963]+[\u0966-\u097F]*$/i,"si-LK":/^[0-9\u0D80-\u0DFF]+$/};Ix.alphanumeric=Px;var Lx={"en-US":".",ar:"٫"};Ix.decimal=Lx;var Mx=["AU","GB","HK","IN","NZ","ZA","ZM"];Ix.englishLocales=Mx;for(var jx,$x=0;$x<Mx.length;$x++)Cx[jx="en-".concat(Mx[$x])]=Cx["en-US"],Px[jx]=Px["en-US"],Lx[jx]=Lx["en-US"];var Ux=["AE","BH","DZ","EG","IQ","JO","KW","LB","LY","MA","QM","QA","SA","SD","SY","TN","YE"];Ix.arabicLocales=Ux;for(var Bx,Nx=0;Nx<Ux.length;Nx++)Cx[Bx="ar-".concat(Ux[Nx])]=Cx.ar,Px[Bx]=Px.ar,Lx[Bx]=Lx.ar;var Fx=["IR","AF"];Ix.farsiLocales=Fx;for(var Gx,zx=0;zx<Fx.length;zx++)Px[Gx="fa-".concat(Fx[zx])]=Px.fa,Lx[Gx]=Lx.ar;var Hx=["BD","IN"];Ix.bengaliLocales=Hx;for(var Zx,Kx=0;Kx<Hx.length;Kx++)Cx[Zx="bn-".concat(Hx[Kx])]=Cx.bn,Px[Zx]=Px.bn,Lx[Zx]=Lx["en-US"];var qx=["ar-EG","ar-LB","ar-LY"];Ix.dotDecimal=qx;var Wx=["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","kk-KZ","si-LK","sl-SI","sr-RS@latin","sr-RS","sv-SE","tr-TR","uk-UA","vi-VN"];Ix.commaDecimal=Wx;for(var Vx=0;Vx<qx.length;Vx++)Lx[qx[Vx]]=Lx["en-US"];for(var Yx=0;Yx<Wx.length;Yx++)Lx[Wx[Yx]]=",";Cx["fr-CA"]=Cx["fr-FR"],Px["fr-CA"]=Px["fr-FR"],Cx["pt-BR"]=Cx["pt-PT"],Px["pt-BR"]=Px["pt-PT"],Lx["pt-BR"]=Lx["pt-PT"],Cx["pl-Pl"]=Cx["pl-PL"],Px["pl-Pl"]=Px["pl-PL"],Lx["pl-Pl"]=Lx["pl-PL"],Cx["fa-AF"]=Cx.fa,Object.defineProperty(Ox,"__esModule",{value:!0}),Ox.default=function(e,t){(0,Qx.default)(e),t=t||{};var r=new RegExp("^(?:[-+])?(?:[0-9]+)?(?:\\".concat(t.locale?Xx.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)},Ox.locales=void 0;var Jx,Qx=(Jx=Dx.exports)&&Jx.__esModule?Jx:{default:Jx},Xx=Ix;var ek=Object.keys(Xx.decimal);Ox.locales=ek,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}}(Ox);e.exports=t.default,e.exports.default=t.default}(Tx,Tx.exports);var tk={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}}(Dx.exports);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){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}}(Dx.exports);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(0,r.default)(e),e===t};var r=function(e){return e&&e.__esModule?e:{default:e}}(Dx.exports);e.exports=t.default,e.exports.default=t.default}(nk,nk.exports);var ok={exports:{}},ak={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}(ak,ak.exports);var ik={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}(ik,ik.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,a){if((0,r.default)(e),a=(0,o.default)(a,i),a.ignoreCase)return e.toLowerCase().split((0,n.default)(t).toLowerCase()).length>a.minOccurrences;return e.split((0,n.default)(t)).length>a.minOccurrences};var r=a(Dx.exports),n=a(ak.exports),o=a(ik.exports);function a(e){return e&&e.__esModule?e:{default:e}}var i={ignoreCase:!1,minOccurrences:1};e.exports=t.default,e.exports.default=t.default}(ok,ok.exports);var sk={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}}(Dx.exports);e.exports=t.default,e.exports.default=t.default}(sk,sk.exports);var uk={exports:{}},ck={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var o,a;(0,r.default)(e),"object"===n(t)?(o=t.min||0,a=t.max):(o=arguments[1],a=arguments[2]);var i=encodeURI(e).split(/%..|./).length-1;return i>=o&&(void 0===a||i<=a)};var r=function(e){return e&&e.__esModule?e:{default:e}}(Dx.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}(ck,ck.exports);var dk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e),t=(0,n.default)(t,a),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 o=e.split("."),i=o[o.length-1];if(t.require_tld){if(o.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(i))return!1;if(/\s/.test(i))return!1}if(!t.allow_numeric_tld&&/^\d+$/.test(i))return!1;return o.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=o(Dx.exports),n=o(ik.exports);function o(e){return e&&e.__esModule?e:{default:e}}var a={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}(dk,dk.exports);var lk={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 a.test(t);if("6"===n)return s.test(t);return!1};var r=function(e){return e&&e.__esModule?e:{default:e}}(Dx.exports);var n="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",o="(".concat(n,"[.]){3}").concat(n),a=new RegExp("^".concat(o,"$")),i="(?:[0-9a-fA-F]{1,4})",s=new RegExp("^("+"(?:".concat(i,":){7}(?:").concat(i,"|:)|")+"(?:".concat(i,":){6}(?:").concat(o,"|:").concat(i,"|:)|")+"(?:".concat(i,":){5}(?::").concat(o,"|(:").concat(i,"){1,2}|:)|")+"(?:".concat(i,":){4}(?:(:").concat(i,"){0,1}:").concat(o,"|(:").concat(i,"){1,3}|:)|")+"(?:".concat(i,":){3}(?:(:").concat(i,"){0,2}:").concat(o,"|(:").concat(i,"){1,4}|:)|")+"(?:".concat(i,":){2}(?:(:").concat(i,"){0,3}:").concat(o,"|(:").concat(i,"){1,5}|:)|")+"(?:".concat(i,":){1}(?:(:").concat(i,"){0,4}:").concat(o,"|(:").concat(i,"){1,6}|:)|")+"(?::((?::".concat(i,"){0,5}:").concat(o,"|(?::").concat(i,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");e.exports=t.default,e.exports.default=t.default}(lk,lk.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),t=(0,i.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("@"),b=g.pop(),y=b.toLowerCase();if(t.host_blacklist.includes(y))return!1;if(t.host_whitelist.length>0&&!t.host_whitelist.includes(y))return!1;var _=g.join("@");if(t.domain_specific_validation&&("gmail.com"===y||"googlemail.com"===y)){var w=(_=_.toLowerCase()).split("+")[0];if(!(0,n.default)(w.replace(/\./g,""),{min:6,max:30}))return!1;for(var A=w.split("."),x=0;x<A.length;x++)if(!l.test(A[x]))return!1}if(!(!1!==t.ignore_max_length||(0,n.default)(_,{max:64})&&(0,n.default)(b,{max:254})))return!1;if(!(0,o.default)(b,{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,a.default)(b)){if(!b.startsWith("[")||!b.endsWith("]"))return!1;var k=b.slice(1,-1);if(0===k.length||!(0,a.default)(k))return!1}}if('"'===_[0])return _=_.slice(1,_.length-1),t.allow_utf8_local_part?h.test(_):f.test(_);for(var E=t.allow_utf8_local_part?p:d,S=_.split("."),R=0;R<S.length;R++)if(!E.test(S[R]))return!1;if(t.blacklisted_chars&&-1!==_.search(new RegExp("[".concat(t.blacklisted_chars,"]+"),"g")))return!1;return!0};var r=s(Dx.exports),n=s(ck.exports),o=s(dk.exports),a=s(lk.exports),i=s(ik.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}(uk,uk.exports);var fk={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,a.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 i,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(i=v.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(i))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 b=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,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}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),y=b[0],_=b[1];if(""===y&&""===_)return!1}p=v.join("@"),m=null,g=null;var w=p.match(c);w?(f="",g=w[1],m=w[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,o.default)(f)||(0,n.default)(f,t)||g&&(0,o.default)(g,6)))return!1;if(f=f||g,t.host_blacklist&&l(f,t.host_blacklist))return!1;return!0};var r=i(Dx.exports),n=i(dk.exports),o=i(lk.exports),a=i(ik.exports);function i(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}(fk,fk.exports);var pk={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?o.test(t):"64"===c.eui?s.test(t):o.test(t)||s.test(t);if("48"===(null==c?void 0:c.eui))return n.test(t)||a.test(t);if("64"===(null==c?void 0:c.eui))return i.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}}(Dx.exports);var n=/^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){4}([0-9a-fA-F]{2})$/,o=/^([0-9a-fA-F]){12}$/,a=/^([0-9a-fA-F]{4}\.){2}([0-9a-fA-F]{4})$/,i=/^(?:[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}(pk,pk.exports);var hk={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 o=e.split("/");if(2!==o.length)return!1;if(!a.test(o[1]))return!1;if(o[1].length>1&&o[1].startsWith("0"))return!1;var u=(0,n.default)(o[0],t);if(!u)return!1;var c=null;switch(String(t)){case"4":c=i;break;case"6":c=s;break;default:c=(0,n.default)(o[0],"6")?s:i}return o[1]<=c&&o[1]>=0};var r=o(Dx.exports),n=o(lk.exports);function o(e){return e&&e.__esModule?e:{default:e}}var a=/^\d{1,3}$/,i=32,s=128;e.exports=t.default,e.exports.default=t.default}(hk,hk.exports);var mk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){t="string"==typeof t?(0,r.default)({format:t},i):(0,r.default)(t,i);if("string"==typeof e&&(g=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(g))){var a,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),o=0;o<n;o++)r.push([e[o],t[o]]);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=o(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:a}}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 i,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,i=e},f:function(){try{s||null==r.return||r.return()}finally{if(u)throw i}}}}(c);try{for(l.s();!(a=l.n()).done;){var f=n(a.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(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)}return new Date("".concat(m,"-").concat(d.m,"-").concat(d.d)).getDate()===+d.d}var g;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}}(ik.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,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return r}(e,t)||o(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 o(e,t){if(e){if("string"==typeof e)return a(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)?a(e,t):void 0}}function a(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 i={format:"YYYY/MM/DD",delimiters:["/","-"],strictMode:!1};e.exports=t.default,e.exports.default=t.default}(mk,mk.exports);var vk={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&&o[t.hourFormat][t.mode].test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(ik.exports);var n={hourFormat:"hour24",mode:"default"},o={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}(vk,vk.exports);var gk={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 a.includes(e.toLowerCase());return o.includes(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(Dx.exports);var n={loose:!1},o=["true","false","1","0"],a=[].concat(o,["yes","no"]);e.exports=t.default,e.exports.default=t.default}(gk,gk.exports);var bk={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}}(Dx.exports);var n="(([a-zA-Z]{2,3}(-".concat("([A-Za-z]{3}(-[A-Za-z]{3}){0,2})",")?)|([a-zA-Z]{5,8}))"),o="(".concat("(\\d|[A-W]|[Y-Z]|[a-w]|[y-z])","(-[A-Za-z0-9]{2,8})+)"),a="(x(-[A-Za-z0-9]{1,8})+)",i="(".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(o,")*(").concat(s).concat(a,")?"),c=new RegExp("(^".concat(a,"$)|(^").concat(i,"$)|(^").concat(u,"$)"));e.exports=t.default,e.exports.default=t.default}(bk,bk.exports);var yk={};Object.defineProperty(yk,"__esModule",{value:!0}),yk.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,_k.default)(e);var n=e,o=r.ignore;if(o)if(o instanceof RegExp)n=n.replace(o,"");else{if("string"!=typeof o)throw new Error("ignore should be instance of a String or RegExp");n=n.replace(new RegExp("[".concat(o.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in wk.alpha)return wk.alpha[t].test(n);throw new Error("Invalid locale '".concat(t,"'"))},yk.locales=void 0;var _k=function(e){return e&&e.__esModule?e:{default:e}}(Dx.exports),wk=Ix;var Ak=Object.keys(wk.alpha);yk.locales=Ak;var xk={};Object.defineProperty(xk,"__esModule",{value:!0}),xk.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,kk.default)(e);var n=e,o=r.ignore;if(o)if(o instanceof RegExp)n=n.replace(o,"");else{if("string"!=typeof o)throw new Error("ignore should be instance of a String or RegExp");n=n.replace(new RegExp("[".concat(o.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g,"\\$&"),"]"),"g"),"")}if(t in Ek.alphanumeric)return Ek.alphanumeric[t].test(n);throw new Error("Invalid locale '".concat(t,"'"))},xk.locales=void 0;var kk=function(e){return e&&e.__esModule?e:{default:e}}(Dx.exports),Ek=Ix;var Sk=Object.keys(Ek.alphanumeric);xk.locales=Sk;var Rk={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 o.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}}(Dx.exports),n=Ix;var o=/^[0-9]+$/;e.exports=t.default,e.exports.default=t.default}(Rk,Rk.exports);var Dk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);var o=e.replace(/\s/g,"").toUpperCase();return t.toUpperCase()in n&&n[t].test(o)};var r=function(e){return e&&e.__esModule?e:{default:e}}(Dx.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}(Dk,Dk.exports);var Tk={exports:{}},Ok={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e),t=t||{};var a=t.hasOwnProperty("allow_leading_zeroes")&&!t.allow_leading_zeroes?n:o,i=!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 a.test(e)&&i&&s&&u&&c};var r=function(e){return e&&e.__esModule?e:{default:e}}(Dx.exports);var n=/^(?:[-+]?(?:0|[1-9][0-9]*))$/,o=/^[-+]?[0-9]+$/;e.exports=t.default,e.exports.default=t.default}(Ok,Ok.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}}(Ok.exports);e.exports=t.default,e.exports.default=t.default}(Tk,Tk.exports);var Ik={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}}(Dx.exports);e.exports=t.default,e.exports.default=t.default}(Ik,Ik.exports);var Ck={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}}(Dx.exports);e.exports=t.default,e.exports.default=t.default}(Ck,Ck.exports);var Pk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e),t=t||{};var a=n;t.allow_hyphens&&(a=o);if(!a.test(e))return!1;e=e.replace(/-/g,"");for(var i=0,s=2,u=0;u<14;u++){var c=e.substring(14-u-1,14-u),d=parseInt(c,10)*s;i+=d>=10?d%10+1:d,1===s?s+=1:s-=1}if((10-i%10)%10!==parseInt(e.substring(14,15),10))return!1;return!0};var r=function(e){return e&&e.__esModule?e:{default:e}}(Dx.exports);var n=/^[0-9]{15}$/,o=/^\d{2}-\d{6}-\d{6}-\d{1}$/;e.exports=t.default,e.exports.default=t.default}(Pk,Pk.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}}(Dx.exports);var n=/^[\x00-\x7F]+$/;e.exports=t.default,e.exports.default=t.default}(Lk,Lk.exports);var Mk={};Object.defineProperty(Mk,"__esModule",{value:!0}),Mk.default=function(e){return(0,jk.default)(e),$k.test(e)},Mk.fullWidth=void 0;var jk=function(e){return e&&e.__esModule?e:{default:e}}(Dx.exports);var $k=/[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;Mk.fullWidth=$k;var Uk={};Object.defineProperty(Uk,"__esModule",{value:!0}),Uk.default=function(e){return(0,Bk.default)(e),Nk.test(e)},Uk.halfWidth=void 0;var Bk=function(e){return e&&e.__esModule?e:{default:e}}(Dx.exports);var Nk=/[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/;Uk.halfWidth=Nk;var Fk={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.fullWidth.test(e)&&o.halfWidth.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(Dx.exports),n=Mk,o=Uk;e.exports=t.default,e.exports.default=t.default}(Fk,Fk.exports);var Gk={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}}(Dx.exports);var n=/[^\x00-\x7F]/;e.exports=t.default,e.exports.default=t.default}(Gk,Gk.exports);var zk={exports:{}},Hk={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}(Hk,Hk.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),o.test(e)};var r=n(Dx.exports);function n(e){return e&&e.__esModule?e:{default:e}}var o=(0,n(Hk.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}(zk,zk.exports);var Zk={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}}(Dx.exports);var n=/[\uD800-\uDBFF][\uDC00-\uDFFF]/;e.exports=t.default,e.exports.default=t.default}(Zk,Zk.exports);var Kk={exports:{}},qk={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}(qk,qk.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 a.decimal)return!(0,o.default)(u,e.replace(/ /g,""))&&function(e){var t=new RegExp("^[-+]?([0-9]+)?(\\".concat(a.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=i(ik.exports),n=i(Dx.exports),o=i(qk.exports),a=Ix;function i(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}(Kk,Kk.exports);var Wk={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}}(Dx.exports);var n=/^(0x|0h)?[0-9A-F]+$/i;e.exports=t.default,e.exports.default=t.default}(Wk,Wk.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}}(Dx.exports);var n=/^(0o)?[0-7]+$/i;e.exports=t.default,e.exports.default=t.default}(Vk,Vk.exports);var Yk={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=o(Dx.exports),n=o(Tx.exports);function o(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){return(0,r.default)(e),n.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(Dx.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 Qk={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)||o.test(e);return n.test(e)||o.test(e)||a.test(e)||i.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(Dx.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])\)$/,o=/^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)?)\)$/,a=/^rgb\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]%|100%)\)$/,i=/^rgba\((([0-9]%|[1-9][0-9]%|100%),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/;e.exports=t.default,e.exports.default=t.default}(Qk,Qk.exports);var Xk={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 o.test(t)};var r=function(e){return e&&e.__esModule?e:{default:e}}(Dx.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,o=/^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}(Xk,Xk.exports);var eE={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}}(Dx.exports);var n=/^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/;e.exports=t.default,e.exports.default=t.default}(eE,eE.exports);var tE={};Object.defineProperty(tE,"__esModule",{value:!0}),tE.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,rE.default)(e),function(e,t){var r=e.replace(/[\s\-]+/gi,"").toUpperCase(),n=r.slice(0,2).toUpperCase(),o=n in nE;if(t.whitelist){if(!function(e){if(e.filter((function(e){return!(e in nE)})).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 o&&nE[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)},tE.locales=void 0;var rE=function(e){return e&&e.__esModule?e:{default:e}}(Dx.exports);var nE={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}$/,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}$/};var oE=Object.keys(nE);tE.locales=oE;var aE={exports:{}},iE={};Object.defineProperty(iE,"__esModule",{value:!0}),iE.default=function(e){return(0,sE.default)(e),uE.has(e.toUpperCase())},iE.CountryCodes=void 0;var sE=function(e){return e&&e.__esModule?e:{default:e}}(Dx.exports);var uE=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 cE=uE;iE.CountryCodes=cE,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 o.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(Dx.exports),n=iE;var o=/^[A-Za-z]{6}[A-Za-z0-9]{2}([A-Za-z0-9]{3})?$/;e.exports=t.default,e.exports.default=t.default}(aE,aE.exports);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}}(Dx.exports);var n=/^[a-f0-9]{32}$/;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){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}}(Dx.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}(lE,lE.exports);var fE={exports:{}},pE={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 o=e.length;if(t.urlSafe)return i.test(e);if(o%4!=0||a.test(e))return!1;var u=e.indexOf("=");return-1===u||u===o-1||u===o-2&&"="===e[o-1]};var r=o(Dx.exports),n=o(ik.exports);function o(e){return e&&e.__esModule?e:{default:e}}var a=/[^A-Z0-9+\/=]/i,i=/^[A-Z0-9_\-]*$/i,s={urlSafe:!1};e.exports=t.default,e.exports.default=t.default}(pE,pE.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=o(Dx.exports),n=o(pE.exports);function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default}(fE,fE.exports);var hE={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,i);var o=[];t.allow_primitives&&(o=[null,!1,!0]);var s=JSON.parse(e);return o.includes(s)||!!s&&"object"===a(s)}catch(e){}return!1};var r=o(Dx.exports),n=o(ik.exports);function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="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},a(e)}var i={allow_primitives:!1};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,t){return(0,r.default)(e),t=(0,n.default)(t,a),0===(t.ignore_whitespace?e.trim().length:e.length)};var r=o(Dx.exports),n=o(ik.exports);function o(e){return e&&e.__esModule?e:{default:e}}var a={ignore_whitespace:!1};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){var o,a;(0,r.default)(e),"object"===n(t)?(o=t.min||0,a=t.max):(o=arguments[1]||0,a=arguments[2]);var i=e.match(/(\uFE0F|\uFE0E)/g)||[],s=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],u=e.length-i.length-s.length;return u>=o&&(void 0===a||u<=a)};var r=function(e){return e&&e.__esModule?e:{default:e}}(Dx.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}(vE,vE.exports);var gE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);var o=n[[void 0,null].includes(t)?"all":t];return!!o&&o.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(Dx.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}(gE,gE.exports);var bE={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=o(Dx.exports),n=o(Wk.exports);function o(e){return e&&e.__esModule?e:{default:e}}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,t){var n=(null==t?void 0:t.comparisonDate)||t||Date().toString(),o=(0,r.default)(n),a=(0,r.default)(e);return!!(a&&o&&a>o)};var r=function(e){return e&&e.__esModule?e:{default:e}}(Rx.exports);e.exports=t.default,e.exports.default=t.default}(yE,yE.exports);var _E={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 o=(0,n.default)(t),a=(0,n.default)(e);return!!(a&&o&&a<o)};var r=o(Dx.exports),n=o(Rx.exports);function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default}(_E,_E.exports);var wE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var o;if((0,r.default)(e),"[object Array]"===Object.prototype.toString.call(t)){var i=[];for(o in t)({}).hasOwnProperty.call(t,o)&&(i[o]=(0,n.default)(t[o]));return i.indexOf(e)>=0}if("object"===a(t))return t.hasOwnProperty(e);if(t&&"function"==typeof t.indexOf)return t.indexOf(e)>=0;return!1};var r=o(Dx.exports),n=o(ak.exports);function o(e){return e&&e.__esModule?e:{default:e}}function a(e){return a="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},a(e)}e.exports=t.default,e.exports.default=t.default}(wE,wE.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,o,a=e.replace(/[- ]+/g,""),i=0,s=a.length-1;s>=0;s--)t=a.substring(s,s+1),n=parseInt(t,10),i+=o&&(n*=2)>=10?n%10+1:n,o=!o;return!(i%10!=0||!a)};var r=function(e){return e&&e.__esModule?e:{default:e}}(Dx.exports);e.exports=t.default,e.exports.default=t.default}(AE,AE.exports);var xE={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 o=t.provider,s=e.replace(/[- ]+/g,"");if(o&&o.toLowerCase()in a){if(!a[o.toLowerCase()].test(s))return!1}else{if(o&&!(o.toLowerCase()in a))throw new Error("".concat(o," is not a valid credit card provider."));if(!i.some((function(e){return e.test(s)})))return!1}return(0,n.default)(e)};var r=o(Dx.exports),n=o(AE.exports);function o(e){return e&&e.__esModule?e:{default:e}}var a={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})?$/},i=function(){var e=[];for(var t in a)a.hasOwnProperty(t)&&e.push(a[t]);return e}();e.exports=t.default,e.exports.default=t.default}(xE,xE.exports);var kE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),t in a)return a[t](e);if("any"===t){for(var n in a){if(a.hasOwnProperty(n))if((0,a[n])(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var r=o(Dx.exports),n=o(Ok.exports);function o(e){return e&&e.__esModule?e:{default:e}}var a={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 o=e.split("").slice(0,-1).reduce((function(e,r,n){return e+Number(r)*t[n+1]}),0),a=o%10,i=Number(e.charAt(e.length-1));if(0===a&&0===i||i===10-a)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 o=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"][o%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 o=0;return n.replace(/\s/g,"").split("").map(Number).reverse().forEach((function(e,n){o=t[o][r[n%8][e]]})),0===o},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,o=(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]&&o===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,o=0,a=0;a<n.length;a++)o+=(r=Number(n[a])*(a%2+1))>9?r-9:r;return o%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"],o=["1","0","X","9","8","7","6","5","4","3","2"],a=function(e){return r.includes(e)},i=function(e){var t=parseInt(e.substring(0,4),10),r=parseInt(e.substring(4,6),10),n=parseInt(e.substring(6),10),o=new Date(t,r-1,n);return!(o>new Date)&&(o.getFullYear()===t&&o.getMonth()===r-1&&o.getDate()===n)},s=function(e){return function(e){for(var t=e.substring(0,17),r=0,a=0;a<17;a++)r+=parseInt(t.charAt(a),10)*parseInt(n[a],10);return o[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=a(r)))return!1;var n="19".concat(e.substring(6,12));return!!(t=i(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=a(r)))return!1;var n=e.substring(6,14);return!!(t=i(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 o=t[r];return o%10*9+Math.floor(o/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}(kE,kE.exports);var EE={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 a.test(e)&&t===(i=e,s=i.slice(0,-1).split("").map((function(e,t){return Number(e)*function(e,t){return e===n||e===o?t%2==0?3:1:t%2==0?1:3}(i.length,t)})).reduce((function(e,t){return e+t}),0),u=10-s%10,u<10?u:0);var i,s,u};var r=function(e){return e&&e.__esModule?e:{default:e}}(Dx.exports);var n=8,o=14,a=/^(\d{8}|\d{13}|\d{14})$/;e.exports=t.default,e.exports.default=t.default}(EE,EE.exports);var SE={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,o=0,a=e.length-2;a>=0;a--)if(e[a]>="A"&&e[a]<="Z")for(var i=e[a].charCodeAt(0)-55,s=0,u=[i%10,Math.trunc(i/10)];s<u.length;s++){var c=u[s];o+=t?c>=5?1+2*(c-5):2*c:c,t=!t}else{var d=e[a].charCodeAt(0)-"0".charCodeAt(0);o+=t?d>=5?1+2*(d-5):2*d:d,t=!t}var l=10*Math.trunc((o+9)/10)-o;return+e[e.length-1]===l};var r=function(e){return e&&e.__esModule?e:{default:e}}(Dx.exports);var n=/^[A-Z]{2}[0-9A-Z]{9}[0-9]$/;e.exports=t.default,e.exports.default=t.default}(SE,SE.exports);var RE={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,i){(0,r.default)(t);var s=String((null==i?void 0:i.version)||i);if(!(null!=i&&i.version||i))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(!o.test(u))return!1;for(var l=0;l<12;l++)c+=a[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}}(Dx.exports);var n=/^(?:[0-9]{9}X|[0-9]{10})$/,o=/^(?:[0-9]{13})$/,a=[1,3];e.exports=t.default,e.exports.default=t.default}(RE,RE.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 o=n;if(o=t.require_hyphen?o.replace("?",""):o,o=t.case_sensitive?new RegExp(o):new RegExp(o,"i"),!o.test(e))return!1;for(var a=e.replace("-","").toUpperCase(),i=0,s=0;s<a.length;s++){var u=a[s];i+=("X"===u?10:+u)*(8-s)}return i%11==0};var r=function(e){return e&&e.__esModule?e:{default:e}}(Dx.exports);var n="^\\d{4}-?\\d{3}[\\dX]$";e.exports=t.default,e.exports.default=t.default}(DE,DE.exports);var TE={exports:{}},OE={};Object.defineProperty(OE,"__esModule",{value:!0}),OE.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)},OE.luhnCheck=function(e){for(var t=0,r=!1,n=e.length-1;n>=0;n--){if(r){var o=2*parseInt(e[n],10);t+=o>9?o.toString().split("").map((function(e){return parseInt(e,10)})).reduce((function(e,t){return e+t}),0):o}else t+=parseInt(e[n],10);r=!r}return t%10==0},OE.reverseMultiplyAndSum=function(e,t){for(var r=0,n=0;n<e.length;n++)r+=e[n]*(t-n);return r},OE.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(""),o=0,a=0;a<n.length;a++)o=t[o][r[a%8][parseInt(n[a],10)]];return 0===o},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(Dx.exports),o=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=i();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=o?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(n,a,s):n[a]=e[a]}n.default=e,t&&t.set(e,n);return n}(OE),a=s(mk.exports);function i(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return i=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,a.default)(n,"YYYY/MM/DD"))return!1;for(var o=e.split("").map((function(e){return parseInt(e,10)})),i=[2,4,8,5,10,9,7,3,6],s=0,u=0;u<i.length;u++)s+=o[u]*i[u];return(s=s%11==10?0:s%11)===o[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,a.default)(n,"YYYY/MM/DD"))return!1;if(10===e.length&&parseInt(e,10)%11!=0){var o=parseInt(e.slice(0,9),10)%11;if(!(parseInt(t,10)<1986&&10===o))return!1;if(0!==parseInt(e.slice(9),10))return!1}return!0},"de-AT":function(e){return o.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 a=0;a<t.length-1;a++)t[n]===t[a]&&(r[n]+=a)}if(2!==(r=r.filter((function(e){return e.length>1}))).length&&3!==r.length)return!1;if(3===r[0].length){for(var i=r[0].split("").map((function(e){return parseInt(e,10)})),s=0,u=0;u<i.length-1;u++)i[u]+1===i[u+1]&&(s+=1);if(2===s)return!1}return o.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,a.default)(r,"YYYY/MM/DD"))return!1;for(var n=e.split("").map((function(e){return parseInt(e,10)})),o=0,i=4,s=0;s<9;s++)o+=n[s]*i,1===(i-=1)&&(i=7);return 1!==(o%=11)&&(0===o?0===n[9]:n[9]===11-o)},"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 o=0;o<t.length;o+=2)t[o]<2?r+=1-t[o]:(r+=2*(t[o]-2)+5,t[o]>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=o.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,a.default)(r,"YYYY/MM/DD"))return!1;for(var n=e.split("").map((function(e){return parseInt(e,10)})),o=0,i=1,s=0;s<10;s++)o+=n[s]*i,10===(i+=1)&&(i=1);if(o%11==10){o=0,i=3;for(var u=0;u<10;u++)o+=n[u]*i,10===(i+=1)&&(i=1);if(o%11==10)return 0===n[10]}return o%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,a.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,a.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,a.default)(t,"YYYY/MM/DD")&&(!!o.luhnCheck(e.slice(0,12))&&o.verhoeffCheck("".concat(e.slice(0,11)).concat(e[12])))},"hr-HR":function(e){return o.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,o=[6,7,9,10,12,13,14];n<o.length;n++){var i=o[n];t[i]in r&&t.splice(i,1,r[t[i]])}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,a.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,a.default)(n,"YYYY/MM/DD"))return!1}for(var o=1101,i=[1,6,3,7,9,10,5,8,4,2],s=0;s<e.length-1;s++)o-=parseInt(e[s],10)*i[s];return parseInt(e[10],10)===o%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 o.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 o=e.slice(0,2),i=parseInt(e.slice(2,4),10);i>80?(o="18".concat(o),i-=80):i>60?(o="22".concat(o),i-=60):i>40?(o="21".concat(o),i-=40):i>20?(o="20".concat(o),i-=20):o="19".concat(o),i<10&&(i="0".concat(i));var s="".concat(o,"/").concat(i,"/").concat(e.slice(4,6));if(!(0,a.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 o=1;o<=10;o++)t+=parseInt(e.substring(o-1,o),10)*(12-o);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 a=e.length-2,i=e.substring(0,a),s=e.substring(a),u=0,c=a-7,d=a;d>=1;d--)u+=i.charAt(a-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;a+=1,i=e.substring(0,a),u=0,c=a-7;for(var f=a;f>=1;f--)u+=i.charAt(a-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-o.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,a.default)(r,"YY/MM/DD"))return!1}else if(!(0,a.default)(r,"YYYY/MM/DD"))return!1;for(var n=e.split("").map((function(e){return parseInt(e,10)})),o=[2,7,9,1,4,6,3,5,8,2,7,9],i=0,s=0;s<o.length;s++)i+=n[s]*o[s];return i%11==10?1===n[12]:n[12]===i%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,a.default)(n,"YYYY/MM/DD"))return!1}return!0},"sl-SI":function(e){var t=11-o.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),i=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&&i<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}i>60&&(i-=60),i<10&&(i="0".concat(i));var c="".concat(r,"/").concat(n,"/").concat(i);if(8===c.length){if(!(0,a.default)(c,"YY/MM/DD"))return!1}else if(!(0,a.default)(c,"YYYY/MM/DD"))return!1;return o.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}(TE,TE.exports);var IE={};Object.defineProperty(IE,"__esModule",{value:!0}),IE.default=function(e,t,r){if((0,CE.default)(e),r&&r.strictMode&&!e.startsWith("+"))return!1;if(Array.isArray(t))return t.some((function(t){if(PE.hasOwnProperty(t)&&PE[t].test(e))return!0;return!1}));if(t in PE)return PE[t].test(e);if(!t||"any"===t){for(var n in PE){if(PE.hasOwnProperty(n))if(PE[n].test(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))},IE.locales=void 0;var CE=function(e){return e&&e.__esModule?e:{default:e}}(Dx.exports);var PE={"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-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-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})$/};PE["en-CA"]=PE["en-US"],PE["fr-CA"]=PE["en-CA"],PE["fr-BE"]=PE["nl-BE"],PE["zh-HK"]=PE["en-HK"],PE["zh-MO"]=PE["en-MO"],PE["ga-IE"]=PE["en-IE"],PE["fr-CH"]=PE["de-CH"],PE["it-CH"]=PE["fr-CH"];var LE=Object.keys(PE);IE.locales=LE;var ME={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}}(Dx.exports);var n=/^(0x)[0-9a-f]{40}$/i;e.exports=t.default,e.exports.default=t.default}(ME,ME.exports);var jE={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,a),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="-?",o="[1-9]\\d{0,2}(\\".concat(e.thousands_separator,"\\d{3})*"),a="(".concat(["0","[1-9]\\d*",o].join("|"),")?"),i="(\\".concat(e.decimal_separator,"(").concat(t,"))").concat(e.require_decimal?"":"?"),s=a+(e.allow_decimal||e.require_decimal?i:"");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=o(ik.exports),n=o(Dx.exports);function o(e){return e&&e.__esModule?e:{default:e}}var a={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}(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)||o.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(Dx.exports);var n=/^(bc1)[a-z0-9]{25,39}$/,o=/^(1|3)[A-HJ-NP-Za-km-z1-9]{25,39}$/;e.exports=t.default,e.exports.default=t.default}($E,$E.exports);var UE={};Object.defineProperty(UE,"__esModule",{value:!0}),UE.isISO6346=GE,UE.isFreightContainerID=void 0;var BE=function(e){return e&&e.__esModule?e:{default:e}}(Dx.exports);var NE=/^[A-Z]{3}(U[0-9]{7})|([J,Z][0-9]{6,7})$/,FE=/^[0-9]$/;function GE(e){if((0,BE.default)(e),e=e.toUpperCase(),!NE.test(e))return!1;if(11===e.length){for(var t=0,r=0;r<e.length-1;r++)if(FE.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 o=t%11;return Number(e[e.length-1])===o}return!0}var zE=GE;UE.isFreightContainerID=zE;var HE={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}}(Dx.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}(HE,HE.exports);var ZE={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.strictSeparator?o.test(e):n.test(e);return i&&t.strict?a(e):i};var r=function(e){return e&&e.__esModule?e:{default:e}}(Dx.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)?)?)?)?$/,o=/^([\+-]?\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)?)?)?)?$/,a=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 o=e.match(/(\d{4})-?(\d{0,2})-?(\d*)/).map(Number),a=o[1],i=o[2],s=o[3],u=i?"0".concat(i).slice(-2):i,c=s?"0".concat(s).slice(-2):s,d=new Date("".concat(a,"-").concat(u||"01","-").concat(c||"01"));return!i||!s||d.getUTCFullYear()===a&&d.getUTCMonth()+1===i&&d.getUTCDate()===s};e.exports=t.default,e.exports.default=t.default}(ZE,ZE.exports);var KE={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}}(Dx.exports);var n=/([01][0-9]|2[0-3])/,o=/[0-5][0-9]/,a=new RegExp("[-+]".concat(n.source,":").concat(o.source)),i=new RegExp("([zZ]|".concat(a.source,")")),s=new RegExp("".concat(n.source,":").concat(o.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(i.source)),d=new RegExp("^".concat(u.source,"[ tT]").concat(c.source,"$"));e.exports=t.default,e.exports.default=t.default}(KE,KE.exports);var qE={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}}(Dx.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}(qE,qE.exports);var WE={};Object.defineProperty(WE,"__esModule",{value:!0}),WE.default=function(e){return(0,VE.default)(e),YE.has(e.toUpperCase())},WE.CurrencyCodes=void 0;var VE=function(e){return e&&e.__esModule?e:{default:e}}(Dx.exports);var YE=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=YE;WE.CurrencyCodes=JE;var QE={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 i.test(e);var o=e.length;if(o%8==0&&a.test(e))return!0;return!1};var r=o(Dx.exports),n=o(ik.exports);function o(e){return e&&e.__esModule?e:{default:e}}var a=/^[A-Z2-7]+=*$/,i=/^[A-HJKMNP-TV-Z0-9]+$/,s={crockford:!1};e.exports=t.default,e.exports.default=t.default}(QE,QE.exports);var XE={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}}(Dx.exports);var n=/^[A-HJ-NP-Za-km-z1-9]*$/;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){(0,r.default)(e);var t=e.split(",");if(t.length<2)return!1;var i=t.shift().trim().split(";"),s=i.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<i.length;c++)if((c!==i.length-1||"base64"!==i[c].toLowerCase())&&!o.test(i[c]))return!1;for(var d=0;d<t.length;d++)if(!a.test(t[d]))return!1;return!0};var r=function(e){return e&&e.__esModule?e:{default:e}}(Dx.exports);var n=/^[a-z]+\/[a-z0-9\-\+\._]+$/i,o=/^[a-z\-]+=[a-z0-9\-]+$/i,a=/^[a-z0-9!\$&'\(\)\*\+,;=\-\._~:@\/\?%\s]*$/i;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){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}}(Dx.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}(tS,tS.exports);var rS={exports:{}},nS={exports:{}},oS={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 o=e.length-1;for(;/\s/.test(e.charAt(o));)o-=1;return e.slice(0,o+1)};var r=function(e){return e&&e.__esModule?e:{default:e}}(Dx.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);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}}(Dx.exports);e.exports=t.default,e.exports.default=t.default}(aS,aS.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=o(oS.exports),n=o(aS.exports);function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default}(nS,nS.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,o.default)(e),0!==e.indexOf("mailto:"))return!1;var a=i(e.replace("mailto:","").split("?"),2),u=a[0],c=void 0===u?"":u,d=a[1],l=void 0===d?"":d;if(!c&&!l)return!0;var f=function(e){var t=new Set(["subject","body","cc","bcc"]),r={cc:"",bcc:""},n=!1,o=e.split("&");if(o.length>4)return!1;var a,u=function(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=s(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,i=!0,u=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return i=e.done,e},e:function(e){u=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(u)throw a}}}}(o);try{for(u.s();!(a=u.n()).done;){var c=i(a.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}(l);if(!f)return!1;return"".concat(c,",").concat(f.cc,",").concat(f.bcc).split(",").every((function(e){return!(e=(0,r.default)(e," "))||(0,n.default)(e,t)}))};var r=a(nS.exports),n=a(uk.exports),o=a(Dx.exports);function a(e){return e&&e.__esModule?e:{default:e}}function i(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,o=!1,a=void 0;try{for(var i,s=e[Symbol.iterator]();!(n=(i=s.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){o=!0,a=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw a}}return r}(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}(rS,rS.exports);var iS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),n.test(e)||o.test(e)||a.test(e)};var r=function(e){return e&&e.__esModule?e:{default:e}}(Dx.exports);var n=/^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9\.\-\+_]{1,100}$/i,o=/^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,a=/^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}(iS,iS.exports);var sS={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 o=e.split(",");if(o[0].startsWith("(")&&!o[1].endsWith(")")||o[1].endsWith(")")&&!o[0].startsWith("("))return!1;if(t.checkDMS)return s.test(o[0])&&u.test(o[1]);return a.test(o[0])&&i.test(o[1])};var r=o(Dx.exports),n=o(ik.exports);function o(e){return e&&e.__esModule?e:{default:e}}var a=/^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/,i=/^\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}(sS,sS.exports);var uS={};Object.defineProperty(uS,"__esModule",{value:!0}),uS.default=function(e,t){if((0,cS.default)(e),t in hS)return hS[t].test(e);if("any"===t){for(var r in hS){if(hS.hasOwnProperty(r))if(hS[r].test(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))},uS.locales=void 0;var cS=function(e){return e&&e.__esModule?e:{default:e}}(Dx.exports);var dS=/^\d{3}$/,lS=/^\d{4}$/,fS=/^\d{5}$/,pS=/^\d{6}$/,hS={AD:/^AD\d{3}$/,AT:lS,AU:lS,AZ:/^AZ\d{4}$/,BA:/^([7-8]\d{4}$)/,BE:lS,BG:lS,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:lS,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:fS,DK:lS,DO:fS,DZ:fS,EE:fS,ES:/^(5[0-2]{1}|[0-4]{1}\d{1})\d{3}$/,FI:fS,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:lS,ID:fS,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:dS,IT:fS,JP:/^\d{3}\-\d{4}$/,KE:fS,KR:/^(\d{5}|\d{6})$/,LI:/^(948[5-9]|949[0-7])$/,LT:/^LT\-\d{5}$/,LU:lS,LV:/^LV\-\d{4}$/,LK:fS,MG:dS,MX:fS,MT:/^[A-Za-z]{3}\s{0,1}\d{4}$/,MY:fS,NL:/^\d{4}\s?[a-z]{2}$/i,NO:lS,NP:/^(10|21|22|32|33|34|44|45|56|57)\d{3}$|^(977)$/i,NZ:lS,PL:/^\d{2}\-\d{3}$/,PR:/^00[679]\d{2}([ -]\d{4})?$/,PT:/^\d{4}\-\d{3}?$/,RO:pS,RU:pS,SA:fS,SE:/^[1-9]\d{2}\s?\d{2}$/,SG:pS,SI:lS,SK:/^\d{3}\s?\d{2}$/,TH:fS,TN:lS,TW:/^\d{3}(\d{2})?$/,UA:fS,US:/^\d{5}(-\d{4})?$/,ZA:lS,ZM:fS},mS=Object.keys(hS);uS.locales=mS;var vS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),e.replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(/\//g,"/").replace(/\\/g,"\").replace(/`/g,"`")};var r=function(e){return e&&e.__esModule?e:{default:e}}(Dx.exports);e.exports=t.default,e.exports.default=t.default}(vS,vS.exports);var gS={exports:{}};!function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return(0,r.default)(e),e.replace(/"/g,'"').replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">").replace(///g,"/").replace(/\/g,"\\").replace(/`/g,"`").replace(/&/g,"&")};var r=function(e){return e&&e.__esModule?e:{default:e}}(Dx.exports);e.exports=t.default,e.exports.default=t.default}(gS,gS.exports);var bS={exports:{}},yS={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}}(Dx.exports);e.exports=t.default,e.exports.default=t.default}(yS,yS.exports),function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e);var o=t?"\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F":"\\x00-\\x1F\\x7F";return(0,n.default)(e,o)};var r=o(Dx.exports),n=o(yS.exports);function o(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default,e.exports.default=t.default}(bS,bS.exports);var _S={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}}(Dx.exports);e.exports=t.default,e.exports.default=t.default}(_S,_S.exports);var wS={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}}(Dx.exports);e.exports=t.default,e.exports.default=t.default}(wS,wS.exports);var AS={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(o.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(a.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(i.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}}(ik.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},o=["icloud.com","me.com"],a=["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"],i=["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}(AS,AS.exports);var xS={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}}(Dx.exports);var n=/^[^\s-_](?!.*?[-_]{2,})[a-z0-9-\\][^\s]*[^-_\s]$/;e.exports=t.default,e.exports.default=t.default}(xS,xS.exports);var kS={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 o in n){if((0,n[o])(e))return!0}return!1}throw new Error("Invalid locale '".concat(t,"'"))};var r=function(e){return e&&e.__esModule?e:{default:e}}(Dx.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}(kS,kS.exports);var ES={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 o=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){a.test(e)?r.uppercaseCount+=t[e]:i.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}(o,t);return o.length>=t.minLength&&o.lowercaseCount>=t.minLowercase&&o.uppercaseCount>=t.minUppercase&&o.numberCount>=t.minNumbers&&o.symbolCount>=t.minSymbols};var r=o(ik.exports),n=o(Dx.exports);function o(e){return e&&e.__esModule?e:{default:e}}var a=/^[A-Z]$/,i=/^[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}(ES,ES.exports);var SS={};function RS(e){return RS="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},RS(e)}Object.defineProperty(SS,"__esModule",{value:!0}),SS.default=function(e,t){if((0,DS.default)(e),(0,DS.default)(t),t in IS)return IS[t](e);throw new Error("Invalid country code: '".concat(t,"'"))},SS.vatMatchers=void 0;var DS=function(e){return e&&e.__esModule?e:{default:e}}(Dx.exports),TS=function(e){if(e&&e.__esModule)return e;if(null===e||"object"!==RS(e)&&"function"!=typeof e)return{default:e};var t=OS();if(t&&t.has(e))return t.get(e);var r={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(r,o,a):r[o]=e[o]}r.default=e,t&&t.set(e,r);return r}(OE);function OS(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return OS=function(){return e},e}var IS={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-TS.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){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)}};SS.vatMatchers=IS,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=Ve(Rx.exports),o=Ve(Tx.exports),a=Ve(tk.exports),i=Ve(rk.exports),s=Ve(nk.exports),u=Ve(ok.exports),c=Ve(sk.exports),d=Ve(uk.exports),l=Ve(fk.exports),f=Ve(pk.exports),p=Ve(lk.exports),h=Ve(hk.exports),m=Ve(dk.exports),v=Ve(mk.exports),g=Ve(vk.exports),b=Ve(gk.exports),y=Ve(bk.exports),_=We(yk),w=We(xk),A=Ve(Rk.exports),x=Ve(Dk.exports),k=Ve(Tk.exports),E=Ve(Ik.exports),S=Ve(Ck.exports),R=Ve(Pk.exports),D=Ve(Lk.exports),T=Ve(Mk),O=Ve(Uk),I=Ve(Fk.exports),C=Ve(Gk.exports),P=Ve(zk.exports),L=Ve(Zk.exports),M=Ve(Ok.exports),j=We(Ox),$=Ve(Kk.exports),U=Ve(Wk.exports),B=Ve(Vk.exports),N=Ve(Yk.exports),F=Ve(Jk.exports),G=Ve(Qk.exports),z=Ve(Xk.exports),H=Ve(eE.exports),Z=We(tE),K=Ve(aE.exports),q=Ve(dE.exports),W=Ve(lE.exports),V=Ve(fE.exports),Y=Ve(hE.exports),J=Ve(mE.exports),Q=Ve(vE.exports),X=Ve(ck.exports),ee=Ve(gE.exports),te=Ve(bE.exports),re=Ve(yE.exports),ne=Ve(_E.exports),oe=Ve(wE.exports),ae=Ve(AE.exports),ie=Ve(xE.exports),se=Ve(kE.exports),ue=Ve(EE.exports),ce=Ve(SE.exports),de=Ve(RE.exports),le=Ve(DE.exports),fe=Ve(TE.exports),pe=We(IE),he=Ve(ME.exports),me=Ve(jE.exports),ve=Ve($E.exports),ge=UE,be=Ve(HE.exports),ye=Ve(ZE.exports),_e=Ve(KE.exports),we=Ve(iE),Ae=Ve(qE.exports),xe=Ve(WE),ke=Ve(QE.exports),Ee=Ve(XE.exports),Se=Ve(pE.exports),Re=Ve(eS.exports),De=Ve(tS.exports),Te=Ve(rS.exports),Oe=Ve(iS.exports),Ie=Ve(sS.exports),Ce=We(uS),Pe=Ve(aS.exports),Le=Ve(oS.exports),Me=Ve(nS.exports),je=Ve(vS.exports),$e=Ve(gS.exports),Ue=Ve(bS.exports),Be=Ve(_S.exports),Ne=Ve(yS.exports),Fe=Ve(wS.exports),Ge=Ve(AS.exports),ze=Ve(xS.exports),He=Ve(kS.exports),Ze=Ve(ES.exports),Ke=Ve(SS);function qe(){if("function"!=typeof WeakMap)return null;var e=new WeakMap;return qe=function(){return e},e}function We(e){if(e&&e.__esModule)return e;if(null===e||"object"!==r(e)&&"function"!=typeof e)return{default:e};var t=qe();if(t&&t.has(e))return t.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var i=o?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(n,a,i):n[a]=e[a]}return n.default=e,t&&t.set(e,n),n}function Ve(e){return e&&e.__esModule?e:{default:e}}var Ye={version:"13.11.0",toDate:n.default,toFloat:o.default,toInt:a.default,toBoolean:i.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:b.default,isIBAN:Z.default,isBIC:K.default,isAlpha:_.default,isAlphaLocales:_.locales,isAlphanumeric:w.default,isAlphanumericLocales:w.locales,isNumeric:A.default,isPassportNumber:x.default,isPort:k.default,isLowercase:E.default,isUppercase:S.default,isAscii:D.default,isFullWidth:T.default,isHalfWidth:O.default,isVariableWidth:I.default,isMultibyte:C.default,isSemVer:P.default,isSurrogatePair:L.default,isInt:M.default,isIMEI:R.default,isFloat:j.default,isFloatLocales:j.locales,isDecimal:$.default,isHexadecimal:U.default,isOctal:B.default,isDivisibleBy:N.default,isHexColor:F.default,isRgbColor:G.default,isHSL:z.default,isISRC:H.default,isMD5:q.default,isHash:W.default,isJWT:V.default,isJSON:Y.default,isEmpty:J.default,isLength:Q.default,isLocale:y.default,isByteLength:X.default,isUUID:ee.default,isMongoId:te.default,isAfter:re.default,isBefore:ne.default,isIn:oe.default,isLuhnNumber:ae.default,isCreditCard:ie.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,isISO6346:ge.isISO6346,isFreightContainerID:ge.isFreightContainerID,isISO6391:be.default,isISO8601:ye.default,isRFC3339:_e.default,isISO31661Alpha2:we.default,isISO31661Alpha3:Ae.default,isISO4217:xe.default,isBase32:ke.default,isBase58:Ee.default,isBase64:Se.default,isDataURI:Re.default,isMagnetURI:De.default,isMailtoURI:Te.default,isMimeType:Oe.default,isLatLong:Ie.default,ltrim:Pe.default,rtrim:Le.default,trim:Me.default,escape:je.default,unescape:$e.default,stripLow:Ue.default,whitelist:Be.default,blacklist:Ne.default,isWhitelisted:Fe.default,normalizeEmail:Ge.default,toString:toString,isSlug:ze.default,isStrongPassword:Ze.default,isTaxID:fe.default,isDate:v.default,isTime:g.default,isLicensePlate:He.default,isVAT:Ke.default,ibanLocales:Z.locales};t.default=Ye,e.exports=t.default,e.exports.default=t.default}(Sx,Sx.exports);var CS=a(Sx.exports);const PS=2147483647,LS=36,MS=/^xn--/,jS=/[^\0-\x7F]/,$S=/[\x2E\u3002\uFF0E\uFF61]/g,US={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,NS=String.fromCharCode;function FS(e){throw new RangeError(US[e])}function GS(e,t){const r=e.split("@");let n="";r.length>1&&(n=r[0]+"@",e=r[1]);const o=function(e,t){const r=[];let n=e.length;for(;n--;)r[n]=t(e[n]);return r}((e=e.replace($S,".")).split("."),t).join(".");return n+o}function zS(e){const t=[];let r=0;const n=e.length;for(;r<n;){const o=e.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){const n=e.charCodeAt(r++);56320==(64512&n)?t.push(((1023&o)<<10)+(1023&n)+65536):(t.push(o),r--)}else t.push(o)}return t}const HS=e=>String.fromCodePoint(...e),ZS=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},KS=function(e,t,r){let n=0;for(e=r?BS(e/700):e>>1,e+=BS(e/t);e>455;n+=LS)e=BS(e/35);return BS(n+36*e/(e+38))},qS=function(e){const t=[],r=e.length;let n=0,o=128,a=72,i=e.lastIndexOf("-");i<0&&(i=0);for(let r=0;r<i;++r)e.charCodeAt(r)>=128&&FS("not-basic"),t.push(e.charCodeAt(r));for(let u=i>0?i+1:0;u<r;){const i=n;for(let t=1,o=LS;;o+=LS){u>=r&&FS("invalid-input");const i=(s=e.charCodeAt(u++))>=48&&s<58?s-48+26:s>=65&&s<91?s-65:s>=97&&s<123?s-97:LS;i>=LS&&FS("invalid-input"),i>BS((PS-n)/t)&&FS("overflow"),n+=i*t;const c=o<=a?1:o>=a+26?26:o-a;if(i<c)break;const d=LS-c;t>BS(PS/d)&&FS("overflow"),t*=d}const c=t.length+1;a=KS(n-i,c,0==i),BS(n/c)>PS-o&&FS("overflow"),o+=BS(n/c),n%=c,t.splice(n++,0,o)}var s;return String.fromCodePoint(...t)},WS=function(e){const t=[],r=(e=zS(e)).length;let n=128,o=0,a=72;for(const r of e)r<128&&t.push(NS(r));const i=t.length;let s=i;for(i&&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-o)/u)&&FS("overflow"),o+=(r-n)*u,n=r;for(const r of e)if(r<n&&++o>PS&&FS("overflow"),r===n){let e=o;for(let r=LS;;r+=LS){const n=r<=a?1:r>=a+26?26:r-a;if(e<n)break;const o=e-n,i=LS-n;t.push(NS(ZS(n+o%i,0))),e=BS(o/i)}t.push(NS(ZS(e,0))),a=KS(o,u,s===i),o=0,++s}++o,++n}return t.join("")},VS=function(e){return GS(e,(function(e){return MS.test(e)?qS(e.slice(4).toLowerCase()):e}))},YS=function(e){return GS(e,(function(e){return jS.test(e)?"xn--"+WS(e):e}))},JS={version:"2.3.1",ucs2:{decode:zS,encode:HS},decode:qS,encode:WS,toASCII:YS,toUnicode:VS};var QS=Object.freeze({__proto__:null,ucs2decode:zS,ucs2encode:HS,decode:qS,encode:WS,toASCII:YS,toUnicode:VS,default:JS}),XS=i(QS),eR={"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 tR=XS,rR=eR,nR={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 oR=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=tR.toASCII(e)),e.length>253)return!1;if(!/^([\u0E00-\u0E7Fa-z0-9-._*]+)$/g.test(e))return!1;if(t.topLevel&&nR[e.replace(/\.$/,"")])return!0;const r=e.match(/(.*)\.(([\u0E00-\u0E7Fa-z0-9]+)(\.[a-z0-9]+))/);let n=null,o=null;if(r&&r.length>2&&rR[r[2]]&&(n=r[2],o=r[1].split(".")),!o){if(o=e.split("."),o.length<=1)return!1;n=o.pop();if(!/^(?:xn--)?(?!^\d+$)[\u0E00-\u0E7Fa-z0-9]+$/gi.test(n))return!1}if(!1===t.subdomain&&o.length>1)return!1;const a=o.every((function(e,r){if(t.wildcard&&0===r&&"*"===e&&o.length>1)return!0;let n=/^([\u0E00-\u0E7Fa-zA-Z0-9-_]+)$/g;r===o.length-1&&(n=/^([\u0E00-\u0E7Fa-zA-Z0-9-]+)$/g);const a=(e.match(/--(--)?/g)||[]).length,i=(e.match(/xn--/g)||[]).length;if(r===o.length-1&&a!==i)return!1;return n.test(e)&&e.length<64&&!e.startsWith("-")&&!e.endsWith("-")}));return a},aR=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
|
|
20
|
+
const iR=aR;function sR(e,t,r){return"function"==typeof r.join?r.join(e):e[0]+t+e[1]}function uR(e,t,r){return"function"!=typeof r.isValid||r.isValid(e,t)}function cR(e){return iR(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
|
|
26
|
+
*/var dR=aR;
|
|
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
|
|
32
|
+
*/function lR(e){return!0===dR(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:VS}=Reflect,YS=function(e){return"object"==typeof e?null===e:"function"!=typeof e},JS=function(e){var t,r;return!1!==WS(e)&&("function"==typeof(t=e.constructor)&&(!1!==WS(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf")))},QS=e=>"object"==typeof e&&null!==e||"function"==typeof e,XS=e=>{if(!YS(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}"`)},eR=(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);XS(n);const o=nR.cache.get(n)||r();return nR.cache.set(n,o),o},tR=(e,t)=>t&&"function"==typeof t.split?t.split(e):"symbol"==typeof e?[e]:Array.isArray(e)?e:eR(e,t,(()=>((e,t={})=>{const r=t.separator||".",n="/"!==r&&t.preservePaths;if("string"==typeof e&&!1!==n&&/\//.test(e))return[e];const o=[];let a="";const i=e=>{let t;""!==e.trim()&&Number.isInteger(t=Number(e))?o.push(t):o.push(e)};for(let t=0;t<e.length;t++){const n=e[t];"\\"!==n?n!==r?a+=n:(i(a),a=""):a+=e[++t]}return a&&i(a),o})(e,t))),rR=(e,t,r,n)=>{if(XS(t),void 0===r)VS(e,t);else if(n&&n.merge){const o="function"===n.merge?n.merge:Object.assign;o&&JS(e[t])&&JS(r)?e[t]=o(e[t],r):e[t]=r}else e[t]=r;return e},nR=(e,t,r,n)=>{if(!t||!QS(e))return e;const o=tR(t,n);let a=e;for(let e=0;e<o.length;e++){const t=o[e],i=o[e+1];if(XS(t),void 0===i){rR(a,t,r,n);break}"number"!=typeof i||Array.isArray(a[t])?(QS(a[t])||(a[t]={}),a=a[t]):a=a[t]=[]}return e};nR.split=tR,nR.cache=new Map,nR.clear=()=>{nR.cache=new Map};var oR,aR=nR;function iR(e){var t=this,n={},o=(null==e?void 0:e._ancestor_origins)||window.location.ancestorOrigins,a=(null==e?void 0:e.self_url)||window.location.href,i=(null==e?void 0:e.self_origin)||window.location.origin,s=(null==e?void 0:e.referrer_url)||document.referrer;function u(e){return function(e,t,r){if(zS(r)||(r={default:r}),!KS(e))return void 0!==r.default?r.default:e;"number"==typeof t&&(t=String(t));const n=Array.isArray(t),o="string"==typeof t,a=r.separator||".",i=r.joinChar||("string"==typeof a?a:".");if(!o&&!n)return e;if(o&&t in e)return ZS(t,e,r)?e[t]:r.default;let s=n?t:function(e,t,r){return"function"==typeof r.split?r.split(e):e.split(t)}(t,a,r),u=s.length,c=0;do{let t=s[c];for("number"==typeof t&&(t=String(t));t&&"\\"===t.slice(-1);)t=HS([t.slice(0,-1),s[++c]||""],i,r);if(t in e){if(!ZS(t,e,r))return r.default;e=e[t]}else{let n=!1,o=c+1;for(;o<u;)if(t=HS([t,s[o++]],i,r),n=t in e){if(!ZS(t,e,r))return r.default;e=e[t],c=o-1;break}if(!n)return r.default}}while(++c<u&&KS(e));return c===u?e:r.default}(n,e)}function c(e,t){return aR(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=o,t=n.depth.value,r=i;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=i,c("top.domain.from","self-top");else if(1===t){var a=l(s);a&&(r=a.origin,c("top.domain.from","referrer"))}c("top.domain.value",r.replace(/^https?:\/\/(www\.)?(.*)$/i,"$2"))}(),function(){var e=f();if(e)if(FS(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",a),c("partner.url.from","self-top")):e?FS(e)?(c("partner.url.value",a),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 O(e,t)}catch(e){console.log(e)}}function f(){for(var t=(null==e?void 0:e.urls)||[a,s],r=0;r<t.length;r++){var n,o=l(t[r]);if(o){var i=null===(n=o.query)||void 0===n?void 0:n.gd_sdk_referrer_url;if(i&&(i=decodeURIComponent(i),mS.isURL(i)))return i}}}return d(),{get:u,print:function(e){console.log(u(e))}}}var sR,uR=function(e){var t=this;if(!oR){var n={gameId:e.gameId,hours:(new Date).getHours(),topDomain:Xy.topDomain,domain:Xy.parentDomain,referrer:Xy.parentURL,depth:pt(),version:Ws.version,byloader:Xy.isTokenGameURL,isTokenGameURL:Xy.isTokenGameURL,isMasterGameURL:Xy.isMasterGameURL,isExtHostedGameURL:Xy.isExtHostedGameURL,byloaderVersion:Xy.version,tracking:ew.userDeclinedTracking,whitelabel:ew.whitelabelPartner,platform:lt()};oR=new Tt(n)}return oR||{send:function(){r(this,t)}.bind(this)}},cR={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){}}},dR={exports:{}},lR="object"==typeof Reflect?Reflect:null,fR=lR&&"function"==typeof lR.apply?lR.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};sR=lR&&"function"==typeof lR.ownKeys?lR.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var pR=Number.isNaN||function(e){return e!=e};function hR(){hR.init.call(this)}dR.exports=hR,dR.exports.once=function(e,t){return new Promise((function(r,n){function o(r){e.removeListener(t,a),n(r)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",o),r([].slice.call(arguments))}kR(e,t,a,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&kR(e,"error",t,r)}(e,o,{once:!0})}))},hR.EventEmitter=hR,hR.prototype._events=void 0,hR.prototype._eventsCount=0,hR.prototype._maxListeners=void 0;var mR=10;function vR(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function gR(e){return void 0===e._maxListeners?hR.defaultMaxListeners:e._maxListeners}function bR(e,t,r,n){var o,a,i,s;if(vR(r),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),i=a[t]),void 0===i)i=a[t]=r,++e._eventsCount;else if("function"==typeof i?i=a[t]=n?[r,i]:[i,r]:n?i.unshift(r):i.push(r),(o=gR(e))>0&&i.length>o&&!i.warned){i.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=i.length,s=u,console&&console.warn&&console.warn(s)}return e}function _R(){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 yR(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=_R.bind(n);return o.listener=r,n.wrapFn=o,o}function wR(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]: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}(o):xR(o,o.length)}function AR(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 xR(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function kR(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 o(a){n.once&&e.removeEventListener(t,o),r(a)}))}}Object.defineProperty(hR,"defaultMaxListeners",{enumerable:!0,get:function(){return mR},set:function(e){if("number"!=typeof e||e<0||pR(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");mR=e}}),hR.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},hR.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||pR(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},hR.prototype.getMaxListeners=function(){return gR(this)},hR.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,o=this._events;if(void 0!==o)n=n&&void 0===o.error;else if(!n)return!1;if(n){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var i=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw i.context=a,i}var s=o[e];if(void 0===s)return!1;if("function"==typeof s)fR(s,this,t);else{var u=s.length,c=xR(s,u);for(r=0;r<u;++r)fR(c[r],this,t)}return!0},hR.prototype.addListener=function(e,t){return bR(this,e,t,!1)},hR.prototype.on=hR.prototype.addListener,hR.prototype.prependListener=function(e,t){return bR(this,e,t,!0)},hR.prototype.once=function(e,t){return vR(t),this.on(e,yR(this,e,t)),this},hR.prototype.prependOnceListener=function(e,t){return vR(t),this.prependListener(e,yR(this,e,t)),this},hR.prototype.removeListener=function(e,t){var r,n,o,a,i;if(vR(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(o=-1,a=r.length-1;a>=0;a--)if(r[a]===t||r[a].listener===t){i=r[a].listener,o=a;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,o),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,i||t)}return this},hR.prototype.off=hR.prototype.removeListener,hR.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 o,a=Object.keys(r);for(n=0;n<a.length;++n)"removeListener"!==(o=a[n])&&this.removeAllListeners(o);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},hR.prototype.listeners=function(e){return wR(this,e,!0)},hR.prototype.rawListeners=function(e){return wR(this,e,!1)},hR.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):AR.call(e,t)},hR.prototype.listenerCount=AR,hR.prototype.eventNames=function(){return this._eventsCount>0?sR(this._events):[]};var ER={prod:["html5.gamedistribution.com","revision.gamedistribution.com"],acc:["html5-acc-real-aws.gamedistribution.com","acceptance-revision.gamedistribution.com"]},SR={gameAPI:"game.api.gamedistribution.com"},RR={gameAPI:"game-api-acc-real-aws.gamedistribution.com"},DR=function(){var e=this,t=ER.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?RR:SR}},TR=function(e){var t=this,n=e.url;return new Promise(function(e,o){r(this,t);var a=new XMLHttpRequest;a.open("GET",n,!0),a.onreadystatechange=function(){if(4==a.readyState)if(200==a.status){var t=JSON.parse(a.responseText);e(t)}else o(Error("Error occured on request: ".concat(a.status,", ").concat(a.statusText)))},a.onerror=function(e){o(e)},a.send()}.bind(this))};function OR(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 IR(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?OR(Object(r),!0).forEach((function(t){eu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):OR(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var CR,PR,LR,MR=new dR.exports.EventEmitter,jR=[],UR=function(e){jR.push(e)},$R=function(e){CR=uR(LR=e)},BR=function(){var e=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(PR){e.next=6;break}return e.next=3,GR(LR);case 3:PR=e.sent,MR.emit("game-data-ready",PR),NR();case 6:return e.abrupt("return",PR);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),NR=function(){var e,r;if(null!==(e=PR)&&void 0!==e&&null!==(r=e.aws_tst)&&void 0!==r&&r.enabled){var n,o,a,i,s;if(FR(),null!==(n=PR)&&void 0!==n&&null!==(o=n.aws_tst)&&void 0!==o&&null!==(a=o.ep)&&void 0!==a&&a.api&&null!==(i=PR)&&void 0!==i&&i.url)cR.getGameData(null===(s=PR)||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,GR(LR);case 3:PR=e.sent,null===(t=PR)||void 0===t||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)}},FR=function(){var e=window.fetch;window.fetch=t(d.mark((function t(){var n,o,a,i,s,u,c,l,f,p,h,m,v,g,b,_,y,w,A,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=PR)||void 0===n||null===(o=n.aws_tst)||void 0===o||null===(a=o.ep)||void 0===a?void 0:a.atm,v=null===(i=PR)||void 0===i||null===(s=i.aws_tst)||void 0===s||null===(u=s.ep)||void 0===u?void 0:u.msgrt,g=function(t,n){var o=this;r(this,x);var a=p.replace(t,n);e(a,h).then(function(){r(this,o)}.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&&(null===(b=PR)||void 0===b||b.aws_tst,null===(_=PR)||void 0===_||null===(y=_.aws_tst)||void 0===y||null===(w=y.ep)||void 0===w||w.msgrt,g("msgrt.gamedistribution.com","msgrt-prod-aws.gamedistribution.com"))}catch(e){}return t.next=9,e(p,h);case 9:return A=t.sent,t.abrupt("return",A);case 11:case"end":return t.stop()}}),t,this)})))},GR=function(e){var n=this;CR.send("gdfw.loading",{message:"loading"}),jR=[],UR("1"),UR("2");var o=new iR;UR("3");var a=o.get("partner.domain.value");UR("4");var i=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);UR("5");var s=function(){r(this,n);var t=u(),o=t?"&mode=".concat(t):"",i=DR().config;return"https://".concat(i.gameAPI,"/game/v4/get/").concat(e.gameId.replace(/-/g,""),"/?domain=").concat(a).concat(o,"&v=").concat(Ws.version,"&localTime=").concat((new Date).getHours())}.bind(this);UR("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 UR("7"),new Promise(function(e){var o=this;r(this,n),UR("7.1");var a=i();try{UR("7.2");var u=s();UR("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 UR("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),e.t0,e.next=12,TR({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,o),UR("7.5"),t.success){var i,s,c,d=t.result.game;UR("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,aws_tst:d.aws_tst,meta:d.meta,adspn:Vs(d.adspn)||{},__t4r:Vs(d.__t4r)||{},block_exts:Vs(d.push_cuda),bloc_gard:Vs(d.bloc_gard),cookie:Vs(d.cookie),gdpr:Vs(d.gdpr),diagnostic:Vs(d.diagnostic),cmp:Vs(d.cmp),gft:Vs(d.gft)||{},sdk:Vs(d.sdk)||{},sdkfw:Vs(d.sdkfw)||{},loader:Vs(d.loader)||{},splash:Vs(d.splash)||{},promo:Vs(d.promo)||{},dAds:Vs(d.dads)||{},pAds:Vs(d.pads)||{},mAds:Vs(d.mads)||{},rAds:Vs(d.rads)||{},lp:Vs(d.lp)||{},extsc:Vs(d.extsc)||{},evnts:Vs(d.evnts)||{},dp:Vs(d.dp)||{},adflw:Vs(d.adflw)||{},afgszf:Vs(d.afgszf)||{},fllc:Vs(d.fllc)||{},lotm:Vs(d.lotm)||{},t4rc:Vs(d.t4rc)||{},midroll_plus:Vs(d.midroll_plus)||{},gmky:Vs(d.gmky)||{},urlBlockExc:Vs(d.url_blck_exc)||{},sdk_wrp:Vs(d.sdk_wrp)||{},dbglg:Vs(d.dbglg)||{},extHosting:Vs(d.ext_hosting)||{},directTokenUse:Vs(d.dtu)||{},aeria:Vs(d.aeria)||{},advlm:Vs(d.advlm)||{},ad_blcks:Vs(d.ad_blcks)||{},rmblck:Vs(d.rmblck)||{}};UR("7.7");var f=ot(j(a),l);UR("7.8"),f.afg_disabled=!1===(null===(i=f.sdk)||void 0===i||null===(s=i.afg)||void 0===s?void 0:s.enabled),f.url=u,function(){r(this,n),void 0!==Xs.afgEnabled&&(f.afg_disabled=!Xs.afgEnabled),void 0!==Xs.promoEnabled&&(f.promo=f.promo||{},f.promo=IR(IR({},f.promo),{},{rainbow:{enabled:Xs.promoEnabled}}))}.bind(this),UR("7.9"),null!==(c=f.pAds)&&void 0!==c&&c.enabled&&(f.preroll=!0),UR("7.10"),CR.send("gdfw.success",{message:"success"}),e(f)}else{a.failed=!0;var p=jR[jR.length-1];CR.send("gdfw.err",{message:"".concat(p,": json error")}),e(a)}}.bind(this)).catch(function(t){r(this,o);var n=jR[jR.length-1];CR.send("gdfw.err",{message:"".concat(n,": ").concat(t.message?t.message:t)}),a.failed=!0,e(a)}.bind(this))}catch(t){var c=jR[jR.length-1];CR.send("gdfw.err",{message:"".concat(c,": global ").concat(t.message?t.message:t)}),a.failed=!0,e(a)}}.bind(this))},zR=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,BR();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)}}(),HR=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,BR();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)}}(),ZR=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,BR();case 2:return r=e.sent,e.next=5,zR();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)}}(),KR=function(){var e=t(d.mark((function e(){var t,r,n,o,a,i,s,u;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,BR();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===(o=s.extsc)||void 0===o?void 0:o.ref:"",loadedFlag:u?null==s||null===(a=s.extsc)||void 0===a?void 0:a.loadedFlag:void 0,loadedFlagCheck:!!u&&!(null==s||null===(i=s.extsc)||void 0===i||!i.loadedFlagCheck)});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),qR=function(){var e=t(d.mark((function e(){var t,n,o,a,i,s=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,KR();case 2:if((t=e.sent).enabled){e.next=5;break}return e.abrupt("return");case 5:return n=t.path,o=t.name,a=t.ref,e.prev=6,i={},e.next=10,ft(n,o,{error_prefix:"Blocked:",exists:function(){return r(this,s),!!a&&!!window[a]}.bind(this),attrs:i});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",o,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)}}(),WR=!1,VR=!1,YR=function(){return new Promise(function(){var e=t(d.mark((function e(t,n){var o,a,i,s,u,c=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!WR){e.next=4;break}return e.abrupt("return",t(VR));case 4:WR=!0;case 5:return e.next=7,KR();case 7:if((o=e.sent).enabled){e.next=10;break}return e.abrupt("return",t(!1));case 10:if(a=o.loadedFlag,!(i=o.loadedFlagCheck)||a){e.next=13;break}return e.abrupt("return",t(!1));case 13:if(i){e.next=16;break}return VR=!0,e.abrupt("return",t(!0));case 16:s=!0,setTimeout(function(){r(this,c),s&&(s=!1,WR=!0,t(!1))}.bind(this),5e3),u=setInterval(function(){r(this,c),s&&i&&window[a]?(s=!1,WR=!0,VR=!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)}}())},JR=Fs,QR=Xv,XR=Ht,eD=un,tD=Br,rD=Wm,nD=t_,oD=na,aD=QR&&QR.prototype;if(JR({target:"Promise",proto:!0,real:!0,forced:!!QR&&XR((function(){aD.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=rD(this,eD("Promise")),r=tD(e);return this.then(r?function(r){return nD(t,e()).then((function(){return r}))}:e,r?function(r){return nD(t,e()).then((function(){throw r}))}:e)}}),tD(QR)){var iD=eD("Promise").prototype.finally;aD.finally!==iD&&oD(aD,"finally",iD,{unsafe:!0})}var sD="\t\n\v\f\r \u2028\u2029\ufeff",uD=er,cD=nu,dD=sD,lD=Yt("".replace),fD=RegExp("^["+dD+"]+"),pD=RegExp("(^|[^"+dD+"])["+dD+"]+$"),hD=function(e){return function(t){var r=cD(uD(t));return 1&e&&(r=lD(r,fD,"")),2&e&&(r=lD(r,pD,"$1")),r}},mD={start:hD(1),end:hD(2),trim:hD(3)},vD=to.PROPER,gD=Ht,bD=sD,_D=mD.trim;Fs({target:"String",proto:!0,forced:function(e){return gD((function(){return!!bD[e]()||"
"!=="
"[e]()||vD&&bD[e].name!==e}))}("trim")},{trim:function(){return _D(this)}});var yD=Fs,wD=_i.find,AD=nm,xD="find",kD=!0;xD in[]&&Array(1)[xD]((function(){kD=!1})),yD({target:"Array",proto:!0,forced:kD},{find:function(e){return wD(this,e,arguments.length>1?arguments[1]:void 0)}}),AD(xD);var ED=Br,SD=Hr,RD=Ap,DD=Nr.f,TD=Fr,OD=Pt,ID=Yt,CD=Ps,PD=function(e,t,r){var n,o;return RD&&ED(n=t.constructor)&&n!==r&&SD(o=n.prototype)&&o!==r.prototype&&RD(e,o),e},LD=vo,MD=Wi.f,jD=cn,UD=z_,$D=nu,BD=fy,ND=ah,FD=function(e,t,r){r in e||DD(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})},GD=na,zD=Ht,HD=ir,ZD=Mo.enforce,KD=Um,qD=uh,WD=lh,VD=Pr("match"),YD=OD.RegExp,JD=YD.prototype,QD=OD.SyntaxError,XD=ID(JD.exec),eT=ID("".charAt),tT=ID("".replace),rT=ID("".indexOf),nT=ID("".slice),oT=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,aT=/a/g,iT=/a/g,sT=new YD(aT)!==aT,uT=ND.MISSED_STICKY,cT=ND.UNSUPPORTED_Y,dT=TD&&(!sT||uT||qD||WD||zD((function(){return iT[VD]=!1,YD(aT)!=aT||YD(iT)==iT||"/a/i"!=YD(aT,"i")})));if(CD("RegExp",dT)){for(var lT=function(e,t){var r,n,o,a,i,s,u=jD(JD,this),c=UD(e),d=void 0===t,l=[],f=e;if(!u&&c&&d&&e.constructor===lT)return e;if((c||jD(JD,e))&&(e=e.source,d&&(t=BD(f))),e=void 0===e?"":$D(e),t=void 0===t?"":$D(t),f=e,qD&&"dotAll"in aT&&(n=!!t&&rT(t,"s")>-1)&&(t=tT(t,/s/g,"")),r=t,uT&&"sticky"in aT&&(o=!!t&&rT(t,"y")>-1)&&cT&&(t=tT(t,/y/g,"")),WD&&(a=function(e){for(var t,r=e.length,n=0,o="",a=[],i={},s=!1,u=!1,c=0,d="";n<=r;n++){if("\\"===(t=eT(e,n)))t+=eT(e,++n);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:XD(oT,nT(e,n+1))&&(n+=2,u=!0),o+=t,c++;continue;case">"===t&&u:if(""===d||HD(i,d))throw new QD("Invalid capture group name");i[d]=!0,a[a.length]=[d,c],u=!1,d="";continue}u?d+=t:o+=t}return[o,a]}(e),e=a[0],l=a[1]),i=PD(YD(e,t),u?this:JD,lT),(n||o||l.length)&&(s=ZD(i),n&&(s.dotAll=!0,s.raw=lT(function(e){for(var t,r=e.length,n=0,o="",a=!1;n<=r;n++)"\\"!==(t=eT(e,n))?a||"."!==t?("["===t?a=!0:"]"===t&&(a=!1),o+=t):o+="[\\s\\S]":o+=t+eT(e,++n);return o}(e),r)),o&&(s.sticky=!0),l.length&&(s.groups=l)),e!==f)try{LD(i,"source",""===f?"(?:)":f)}catch(e){}return i},fT=MD(YD),pT=0;fT.length>pT;)FD(lT,YD,fT[pT++]);JD.constructor=lT,lT.prototype=JD,GD(OD,"RegExp",lT,{constructor:!0})}KD("RegExp");var hT=Fs,mT=Ca,vT=$i,gT=wi,bT=Yt([].join);hT({target:"Array",proto:!0,forced:mT!=Object||!gT("join",",")},{join:function(e){return bT(vT(this),void 0===e?",":e)}});var _T=_i.map;Fs({target:"Array",proto:!0,forced:!gl("map")},{map:function(e){return _T(this,e,arguments.length>1?arguments[1]:void 0)}});var yT=Fr,wT=Yt,AT=on,xT=Ht,kT=Hs,ET=ps,ST=Ci,RT=nr,DT=Ca,TT=Object.assign,OT=Object.defineProperty,IT=wT([].concat),CT=!TT||xT((function(){if(yT&&1!==TT({b:1},TT(OT({},"a",{enumerable:!0,get:function(){OT(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!=TT({},e)[r]||kT(TT({},t)).join("")!=n}))?function(e,t){for(var r=RT(e),n=arguments.length,o=1,a=ET.f,i=ST.f;n>o;)for(var s,u=DT(arguments[o++]),c=a?IT(kT(u),a(u)):kT(u),d=c.length,l=0;d>l;)s=c[l++],yT&&!AT(i,u,s)||(r[s]=u[s]);return r}:TT,PT=CT;Fs({target:"Object",stat:!0,arity:2,forced:Object.assign!==PT},{assign:PT});var LT,MT=Yt,jT=2147483647,UT=/[^\0-\u007E]/,$T=/[.\u3002\uFF0E\uFF61]/g,BT="Overflow: input needs wider integers to process",NT=RangeError,FT=MT($T.exec),GT=Math.floor,zT=String.fromCharCode,HT=MT("".charCodeAt),ZT=MT([].join),KT=MT([].push),qT=MT("".replace),WT=MT("".split),VT=MT("".toLowerCase),YT=function(e){return e+22+75*(e<26)},JT=function(e,t,r){var n=0;for(e=r?GT(e/700):e>>1,e+=GT(e/t);e>455;)e=GT(e/35),n+=36;return GT(n+36*e/(e+38))},QT=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=HT(e,r++);if(o>=55296&&o<=56319&&r<n){var a=HT(e,r++);56320==(64512&a)?KT(t,((1023&o)<<10)+(1023&a)+65536):(KT(t,o),r--)}else KT(t,o)}return t}(e);var r,n,o=e.length,a=128,i=0,s=72;for(r=0;r<e.length;r++)(n=e[r])<128&&KT(t,zT(n));var u=t.length,c=u;for(u&&KT(t,"-");c<o;){var d=jT;for(r=0;r<e.length;r++)(n=e[r])>=a&&n<d&&(d=n);var l=c+1;if(d-a>GT((jT-i)/l))throw NT(BT);for(i+=(d-a)*l,a=d,r=0;r<e.length;r++){if((n=e[r])<a&&++i>jT)throw NT(BT);if(n==a){for(var f=i,p=36;;){var h=p<=s?1:p>=s+26?26:p-s;if(f<h)break;var m=f-h,v=36-h;KT(t,zT(YT(h+m%v))),f=GT(m/v),p+=36}KT(t,zT(YT(f))),s=JT(i,l,c==u),i=0,c++}}i++,a++}return ZT(t,"")},XT=Fs,eO=Fr,tO=Nw,rO=Pt,nO=Ra,oO=Yt,aO=na,iO=Zu,sO=Nm,uO=ir,cO=CT,dO=kf,lO=Uu,fO=Gf.codeAt,pO=function(e){var t,r,n=[],o=WT(qT(VT(e),$T,"."),".");for(t=0;t<o.length;t++)r=o[t],KT(n,FT(UT,r)?"xn--"+QT(r):r);return ZT(n,".")},hO=nu,mO=ic,vO=Ym,gO=sx,bO=Mo,_O=bO.set,yO=bO.getterFor("URL"),wO=gO.URLSearchParams,AO=gO.getState,xO=rO.URL,kO=rO.TypeError,EO=rO.parseInt,SO=Math.floor,RO=Math.pow,DO=oO("".charAt),TO=oO(/./.exec),OO=oO([].join),IO=oO(1..toString),CO=oO([].pop),PO=oO([].push),LO=oO("".replace),MO=oO([].shift),jO=oO("".split),UO=oO("".slice),$O=oO("".toLowerCase),BO=oO([].unshift),NO="Invalid scheme",FO="Invalid host",GO="Invalid port",zO=/[a-z]/i,HO=/[\d+-.a-z]/i,ZO=/\d/,KO=/^0x/i,qO=/^[0-7]+$/,WO=/^\d+$/,VO=/^[\da-f]+$/i,YO=/[\0\t\n\r #%/:<>?@[\\\]^|]/,JO=/[\0\t\n\r #/:<>?@[\\\]^|]/,QO=/^[\u0000-\u0020]+/,XO=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,eI=/[\t\n\r]/g,tI=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)BO(t,e%256),e=SO(e/256);return OO(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,o=0,a=0;a<8;a++)0!==e[a]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=a),++o);return o>r&&(t=n,r=o),t}(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=IO(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},rI={},nI=cO({},rI,{" ":1,'"':1,"<":1,">":1,"`":1}),oI=cO({},nI,{"#":1,"?":1,"{":1,"}":1}),aI=cO({},oI,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),iI=function(e,t){var r=fO(e,0);return r>32&&r<127&&!uO(t,e)?e:encodeURIComponent(e)},sI={ftp:21,file:null,http:80,https:443,ws:80,wss:443},uI=function(e,t){var r;return 2==e.length&&TO(zO,DO(e,0))&&(":"==(r=DO(e,1))||!t&&"|"==r)},cI=function(e){var t;return e.length>1&&uI(UO(e,0,2))&&(2==e.length||"/"===(t=DO(e,2))||"\\"===t||"?"===t||"#"===t)},dI=function(e){return"."===e||"%2e"===$O(e)},lI={},fI={},pI={},hI={},mI={},vI={},gI={},bI={},_I={},yI={},wI={},AI={},xI={},kI={},EI={},SI={},RI={},DI={},TI={},OI={},II={},CI=function(e,t,r){var n,o,a,i=hO(e);if(t){if(o=this.parse(i))throw kO(o);this.searchParams=null}else{if(void 0!==r&&(n=new CI(r,!0)),o=this.parse(i,null,n))throw kO(o);(a=AO(new wO)).bindURL(this),this.searchParams=a}};CI.prototype={type:"URL",parse:function(e,t,r){var n,o,a,i,s,u=this,c=t||lI,d=0,l="",f=!1,p=!1,h=!1;for(e=hO(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=LO(e,QO,""),e=LO(e,XO,"$1")),e=LO(e,eI,""),n=dO(e);d<=n.length;){switch(o=n[d],c){case lI:if(!o||!TO(zO,o)){if(t)return NO;c=pI;continue}l+=$O(o),c=fI;break;case fI:if(o&&(TO(HO,o)||"+"==o||"-"==o||"."==o))l+=$O(o);else{if(":"!=o){if(t)return NO;l="",c=pI,d=0;continue}if(t&&(u.isSpecial()!=uO(sI,l)||"file"==l&&(u.includesCredentials()||null!==u.port)||"file"==u.scheme&&!u.host))return;if(u.scheme=l,t)return void(u.isSpecial()&&sI[u.scheme]==u.port&&(u.port=null));l="","file"==u.scheme?c=kI:u.isSpecial()&&r&&r.scheme==u.scheme?c=hI:u.isSpecial()?c=bI:"/"==n[d+1]?(c=mI,d++):(u.cannotBeABaseURL=!0,PO(u.path,""),c=TI)}break;case pI:if(!r||r.cannotBeABaseURL&&"#"!=o)return NO;if(r.cannotBeABaseURL&&"#"==o){u.scheme=r.scheme,u.path=lO(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,c=II;break}c="file"==r.scheme?kI:vI;continue;case hI:if("/"!=o||"/"!=n[d+1]){c=vI;continue}c=_I,d++;break;case mI:if("/"==o){c=yI;break}c=DI;continue;case vI:if(u.scheme=r.scheme,o==LT)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=lO(r.path),u.query=r.query;else if("/"==o||"\\"==o&&u.isSpecial())c=gI;else if("?"==o)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=lO(r.path),u.query="",c=OI;else{if("#"!=o){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=lO(r.path),u.path.length--,c=DI;continue}u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=lO(r.path),u.query=r.query,u.fragment="",c=II}break;case gI:if(!u.isSpecial()||"/"!=o&&"\\"!=o){if("/"!=o){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,c=DI;continue}c=yI}else c=_I;break;case bI:if(c=_I,"/"!=o||"/"!=DO(l,d+1))continue;d++;break;case _I:if("/"!=o&&"\\"!=o){c=yI;continue}break;case yI:if("@"==o){f&&(l="%40"+l),f=!0,a=dO(l);for(var m=0;m<a.length;m++){var v=a[m];if(":"!=v||h){var g=iI(v,aI);h?u.password+=g:u.username+=g}else h=!0}l=""}else if(o==LT||"/"==o||"?"==o||"#"==o||"\\"==o&&u.isSpecial()){if(f&&""==l)return"Invalid authority";d-=dO(l).length+1,l="",c=wI}else l+=o;break;case wI:case AI:if(t&&"file"==u.scheme){c=SI;continue}if(":"!=o||p){if(o==LT||"/"==o||"?"==o||"#"==o||"\\"==o&&u.isSpecial()){if(u.isSpecial()&&""==l)return FO;if(t&&""==l&&(u.includesCredentials()||null!==u.port))return;if(i=u.parseHost(l))return i;if(l="",c=RI,t)return;continue}"["==o?p=!0:"]"==o&&(p=!1),l+=o}else{if(""==l)return FO;if(i=u.parseHost(l))return i;if(l="",c=xI,t==AI)return}break;case xI:if(!TO(ZO,o)){if(o==LT||"/"==o||"?"==o||"#"==o||"\\"==o&&u.isSpecial()||t){if(""!=l){var b=EO(l,10);if(b>65535)return GO;u.port=u.isSpecial()&&b===sI[u.scheme]?null:b,l=""}if(t)return;c=RI;continue}return GO}l+=o;break;case kI:if(u.scheme="file","/"==o||"\\"==o)c=EI;else{if(!r||"file"!=r.scheme){c=DI;continue}if(o==LT)u.host=r.host,u.path=lO(r.path),u.query=r.query;else if("?"==o)u.host=r.host,u.path=lO(r.path),u.query="",c=OI;else{if("#"!=o){cI(OO(lO(n,d),""))||(u.host=r.host,u.path=lO(r.path),u.shortenPath()),c=DI;continue}u.host=r.host,u.path=lO(r.path),u.query=r.query,u.fragment="",c=II}}break;case EI:if("/"==o||"\\"==o){c=SI;break}r&&"file"==r.scheme&&!cI(OO(lO(n,d),""))&&(uI(r.path[0],!0)?PO(u.path,r.path[0]):u.host=r.host),c=DI;continue;case SI:if(o==LT||"/"==o||"\\"==o||"?"==o||"#"==o){if(!t&&uI(l))c=DI;else if(""==l){if(u.host="",t)return;c=RI}else{if(i=u.parseHost(l))return i;if("localhost"==u.host&&(u.host=""),t)return;l="",c=RI}continue}l+=o;break;case RI:if(u.isSpecial()){if(c=DI,"/"!=o&&"\\"!=o)continue}else if(t||"?"!=o)if(t||"#"!=o){if(o!=LT&&(c=DI,"/"!=o))continue}else u.fragment="",c=II;else u.query="",c=OI;break;case DI:if(o==LT||"/"==o||"\\"==o&&u.isSpecial()||!t&&("?"==o||"#"==o)){if(".."===(s=$O(s=l))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(u.shortenPath(),"/"==o||"\\"==o&&u.isSpecial()||PO(u.path,"")):dI(l)?"/"==o||"\\"==o&&u.isSpecial()||PO(u.path,""):("file"==u.scheme&&!u.path.length&&uI(l)&&(u.host&&(u.host=""),l=DO(l,0)+":"),PO(u.path,l)),l="","file"==u.scheme&&(o==LT||"?"==o||"#"==o))for(;u.path.length>1&&""===u.path[0];)MO(u.path);"?"==o?(u.query="",c=OI):"#"==o&&(u.fragment="",c=II)}else l+=iI(o,oI);break;case TI:"?"==o?(u.query="",c=OI):"#"==o?(u.fragment="",c=II):o!=LT&&(u.path[0]+=iI(o,rI));break;case OI:t||"#"!=o?o!=LT&&("'"==o&&u.isSpecial()?u.query+="%27":u.query+="#"==o?"%23":iI(o,rI)):(u.fragment="",c=II);break;case II:o!=LT&&(u.fragment+=iI(o,nI))}d++}},parseHost:function(e){var t,r,n;if("["==DO(e,0)){if("]"!=DO(e,e.length-1))return FO;if(t=function(e){var t,r,n,o,a,i,s,u=[0,0,0,0,0,0,0,0],c=0,d=null,l=0,f=function(){return DO(e,l)};if(":"==f()){if(":"!=DO(e,1))return;l+=2,d=++c}for(;f();){if(8==c)return;if(":"!=f()){for(t=r=0;r<4&&TO(VO,f());)t=16*t+EO(f(),16),l++,r++;if("."==f()){if(0==r)return;if(l-=r,c>6)return;for(n=0;f();){if(o=null,n>0){if(!("."==f()&&n<4))return;l++}if(!TO(ZO,f()))return;for(;TO(ZO,f());){if(a=EO(f(),10),null===o)o=a;else{if(0==o)return;o=10*o+a}if(o>255)return;l++}u[c]=256*u[c]+o,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(i=c-d,c=7;0!=c&&i>0;)s=u[c],u[c--]=u[d+i-1],u[d+--i]=s;else if(8!=c)return;return u}(UO(e,1,-1)),!t)return FO;this.host=t}else if(this.isSpecial()){if(e=pO(e),TO(YO,e))return FO;if(t=function(e){var t,r,n,o,a,i,s,u=jO(e,".");if(u.length&&""==u[u.length-1]&&u.length--,(t=u.length)>4)return e;for(r=[],n=0;n<t;n++){if(""==(o=u[n]))return e;if(a=10,o.length>1&&"0"==DO(o,0)&&(a=TO(KO,o)?16:8,o=UO(o,8==a?1:2)),""===o)i=0;else{if(!TO(10==a?WO:8==a?qO:VO,o))return e;i=EO(o,a)}PO(r,i)}for(n=0;n<t;n++)if(i=r[n],n==t-1){if(i>=RO(256,5-t))return null}else if(i>255)return null;for(s=CO(r),n=0;n<r.length;n++)s+=r[n]*RO(256,3-n);return s}(e),null===t)return FO;this.host=t}else{if(TO(JO,e))return FO;for(t="",r=dO(e),n=0;n<r.length;n++)t+=iI(r[n],rI);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"==this.scheme},includesCredentials:function(){return""!=this.username||""!=this.password},isSpecial:function(){return uO(sI,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"==this.scheme&&1==t&&uI(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,o=e.host,a=e.port,i=e.path,s=e.query,u=e.fragment,c=t+":";return null!==o?(c+="//",e.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=tI(o),null!==a&&(c+=":"+a)):"file"==t&&(c+="//"),c+=e.cannotBeABaseURL?i[0]:i.length?"/"+OO(i,"/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},setHref:function(e){var t=this.parse(e);if(t)throw kO(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"==e)try{return new PI(e.path[0]).origin}catch(e){return"null"}return"file"!=e&&this.isSpecial()?e+"://"+tI(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(hO(e)+":",lI)},getUsername:function(){return this.username},setUsername:function(e){var t=dO(hO(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=iI(t[r],aI)}},getPassword:function(){return this.password},setPassword:function(e){var t=dO(hO(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=iI(t[r],aI)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?tI(e):tI(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,wI)},getHostname:function(){var e=this.host;return null===e?"":tI(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,AI)},getPort:function(){var e=this.port;return null===e?"":hO(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""==(e=hO(e))?this.port=null:this.parse(e,xI))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+OO(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,RI))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""==(e=hO(e))?this.query=null:("?"==DO(e,0)&&(e=UO(e,1)),this.query="",this.parse(e,OI)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!=(e=hO(e))?("#"==DO(e,0)&&(e=UO(e,1)),this.fragment="",this.parse(e,II)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var PI=function(e){var t=sO(this,LI),r=vO(arguments.length,1)>1?arguments[1]:void 0,n=_O(t,new CI(e,!1,r));eO||(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())},LI=PI.prototype,MI=function(e,t){return{get:function(){return yO(this)[e]()},set:t&&function(e){return yO(this)[t](e)},configurable:!0,enumerable:!0}};if(eO&&(iO(LI,"href",MI("serialize","setHref")),iO(LI,"origin",MI("getOrigin")),iO(LI,"protocol",MI("getProtocol","setProtocol")),iO(LI,"username",MI("getUsername","setUsername")),iO(LI,"password",MI("getPassword","setPassword")),iO(LI,"host",MI("getHost","setHost")),iO(LI,"hostname",MI("getHostname","setHostname")),iO(LI,"port",MI("getPort","setPort")),iO(LI,"pathname",MI("getPathname","setPathname")),iO(LI,"search",MI("getSearch","setSearch")),iO(LI,"searchParams",MI("getSearchParams")),iO(LI,"hash",MI("getHash","setHash"))),aO(LI,"toJSON",(function(){return yO(this).serialize()}),{enumerable:!0}),aO(LI,"toString",(function(){return yO(this).serialize()}),{enumerable:!0}),xO){var jI=xO.createObjectURL,UI=xO.revokeObjectURL;jI&&aO(PI,"createObjectURL",nO(jI,xO)),UI&&aO(PI,"revokeObjectURL",nO(UI,xO))}mO(PI,"URL"),XT({global:!0,constructor:!0,forced:!tO,sham:!eO},{URL:PI});var $I=function(){function e(t){I(this,e),this.gameData=t,this.customParamKeys=["vid","_1ld","_1lp"]}return L(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,o=new O(location.href,!0);for(var a in o.query)t[a]=o.query[a];var i=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 i.length>0||n?(console.log("custom-params",t,n),t):void console.log("custom-params, none")}catch(e){console.log("_checkCustomParams.Error",e)}}}]),e}(),BI=function(){function e(t,r){I(this,e),this.adContainer=t,this.onResume=r}return L(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}(),NI=function(){function e(t,r){I(this,e),this.adContainer=t,this.onResume=r}return L(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}(),FI=function(){function e(t){I(this,e),this.adContainer=t}return L(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="ⓘ",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}(),GI=function(){function e(t){I(this,e),this.adContainer=t}return L(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}(),zI=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"}),HI=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 ZI(e){return Object.assign({muted:!1,timeout:250,inline:!1},e)}function KI(e,t){var r=e.muted,n=e.timeout,o=e.inline,a=t(),i=a.element,s=a.source,u=void 0,c=void 0,d=void 0;return i.muted=r,!0===r&&i.setAttribute("muted","muted"),!0===o&&i.setAttribute("playsinline","playsinline"),i.src=s,new Promise((function(e){u=i.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;i.remove(),i.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 qI={audio:function(e){return KI(e=ZI(e),(function(){return{element:document.createElement("audio"),source:URL.createObjectURL(zI)}}))},video:function(e){return KI(e=ZI(e),(function(){return{element:document.createElement("video"),source:URL.createObjectURL(HI)}}))}},WI={exports:{}};!function(e,t){var r="__lodash_hash_undefined__",n=9007199254740991,a="[object Arguments]",i="[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[a]=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 o&&o&&o.Object===Object&&o,g="object"==typeof self&&self&&self.Object===Object&&self,b=v||g||Function("return this")(),_=t&&!t.nodeType&&t,y=_&&e&&!e.nodeType&&e,w=y&&y.exports===_,A=w&&v.process,x=function(){try{var e=y&&y.require&&y.require("util").types;return e||A&&A.binding&&A.binding("util")}catch(e){}}(),k=x&&x.isTypedArray;var E,S,R=Array.prototype,D=Function.prototype,T=Object.prototype,O=b["__core-js_shared__"],I=D.toString,C=T.hasOwnProperty,P=function(){var e=/[^.]+$/.exec(O&&O.keys&&O.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),L=T.toString,M=I.call(Object),j=RegExp("^"+I.call(C).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),U=w?b.Buffer:void 0,$=b.Symbol,B=b.Uint8Array,N=U?U.allocUnsafe:void 0,F=(E=Object.getPrototypeOf,S=Object,function(e){return E(S(e))}),G=Object.create,z=T.propertyIsEnumerable,H=R.splice,Z=$?$.toStringTag:void 0,K=function(){try{var e=be(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),q=U?U.isBuffer:void 0,W=Math.max,V=Date.now,Y=be(b,"Map"),J=be(Object,"create"),Q=function(){function e(){}return function(t){if(!Oe(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),o=!r&&!n&&Re(e),a=!r&&!n&&!o&&Ce(e),i=r||n||o||a,s=i?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&&!C.call(e,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,u))||s.push(c);return s}function oe(e,t,r){(void 0!==r&&!xe(e[t],r)||void 0===r&&!(t in e))&&se(e,t,r)}function ae(e,t,r){var n=e[t];C.call(e,t)&&xe(n,r)&&(void 0!==r||t in e)||se(e,t,r)}function ie(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__=J?J(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(J){var n=t[e];return n===r?void 0:n}return C.call(t,e)?t[e]:void 0},X.prototype.has=function(e){var t=this.__data__;return J?void 0!==t[e]:C.call(t,e)},X.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=J&&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=ie(t,e);return!(r<0)&&(r==t.length-1?t.pop():H.call(t,r,1),--this.size,!0)},ee.prototype.get=function(e){var t=this.__data__,r=ie(t,e);return r<0?void 0:t[r][1]},ee.prototype.has=function(e){return ie(this.__data__,e)>-1},ee.prototype.set=function(e,t){var r=this.__data__,n=ie(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,o=Object(e),a=r(e),i=a.length;i--;){var s=a[ue?i:++n];if(!1===t(o[s],s,o))break}return e};function de(e){return null==e?void 0===e?f:c:Z&&Z in Object(e)?function(e){var t=C.call(e,Z),r=e[Z];try{e[Z]=void 0;var n=!0}catch(e){}var o=L.call(e);n&&(t?e[Z]=r:delete e[Z]);return o}(e):function(e){return L.call(e)}(e)}function le(e){return Ie(e)&&de(e)==a}function fe(e){return!(!Oe(e)||function(e){return!!P&&P in e}(e))&&(De(e)?j:p).test(function(e){if(null!=e){try{return I.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function pe(e){if(!Oe(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&&C.call(e,n))&&r.push(n);return r}function he(e,t,r,n,o){e!==t&&ce(t,(function(a,i){if(o||(o=new re),Oe(a))!function(e,t,r,n,o,a,i){var s=we(e,r),u=we(t,r),c=i.get(u);if(c)return void oe(e,r,c);var l=a?a(s,u,r+"",e,t,i):void 0,f=void 0===l;if(f){var p=Ee(u),h=!p&&Re(u),m=!p&&!h&&Ce(u);l=u,p||h||m?Ee(s)?l=s:Ie(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?(b=v.buffer,_=new b.constructor(b.byteLength),new B(_).set(new B(b)),_):v.buffer,l=new v.constructor(g,v.byteOffset,v.length)):l=[]:function(e){if(!Ie(e)||de(e)!=d)return!1;var t=F(e);if(null===t)return!0;var r=C.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&I.call(r)==M}(u)||ke(u)?(l=s,ke(s)?l=function(e){return function(e,t,r,n){var o=!r;r||(r={});var a=-1,i=t.length;for(;++a<i;){var s=t[a],u=n?n(r[s],e[s],s,r,e):void 0;void 0===u&&(u=e[s]),o?se(r,s,u):ae(r,s,u)}return r}(e,Pe(e))}(s):Oe(s)&&!De(s)||(l=function(e){return"function"!=typeof e.constructor||ye(e)?{}:Q(F(e))}(u))):f=!1}var v,g,b,_;var y;f&&(i.set(u,l),o(l,u,n,a,i),i.delete(u));oe(e,r,l)}(e,t,i,r,he,n,o);else{var s=n?n(we(e,i),a,i+"",e,t,o):void 0;void 0===s&&(s=a),oe(e,i,s)}}),Pe)}function me(e,t){return Ae(function(e,t,r){return t=W(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,a=W(n.length-t,0),i=Array(a);++o<a;)i[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(i),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,je),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}:je;function ge(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function be(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return fe(r)?r:void 0}function _e(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||T)}function we(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ae=function(e){var t=0,r=0;return function(){var n=V(),o=16-(n-r);if(r=n,o>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 Ie(e)&&C.call(e,"callee")&&!z.call(e,"callee")},Ee=Array.isArray;function Se(e){return null!=e&&Te(e.length)&&!De(e)}var Re=q||function(){return!1};function De(e){if(!Oe(e))return!1;var t=de(e);return t==s||t==u||t==i||t==l}function Te(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}function Oe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ie(e){return null!=e&&"object"==typeof e}var Ce=k?function(e){return function(t){return e(t)}}(k):function(e){return Ie(e)&&Te(e.length)&&!!m[de(e)]};function Pe(e){return Se(e)?ne(e,!0):pe(e)}var Le,Me=(Le=function(e,t,r){he(e,t,r)},me((function(e,t){var r=-1,n=t.length,o=n>1?t[n-1]:void 0,a=n>2?t[2]:void 0;for(o=Le.length>3&&"function"==typeof o?(n--,o):void 0,a&&function(e,t,r){if(!Oe(r))return!1;var n=typeof t;return!!("number"==n?Se(r)&&_e(t,r.length):"string"==n&&t in r)&&xe(r[t],e)}(t[0],t[1],a)&&(o=n<3?void 0:o,n=1),e=Object(e);++r<n;){var i=t[r];i&&Le(e,i,r,o)}return e})));function je(e){return e}e.exports=Me}(WI,WI.exports);var VI=WI.exports;function YI(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 JI(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?YI(Object(r),!0).forEach((function(t){eu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):YI(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function QI(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 XI,eC="13998",tC="_cc".concat(eC),rC=["https://tags.crwdcntrl.net/c/".concat(eC,"/cc.js?ns=").concat(tC)],nC=function(){return!!XI&&"function"==typeof XI.bcpf&&"function"==typeof XI.add},oC=function(e,t){try{if(!nC())return;XI.add(e,t),"lotame add success ".concat(e," ").concat(t)}catch(e){err}},aC=function(e,t){try{if(!nC())return;XI.bcpw(e,t),"lotame send success ".concat(e," ").concat(t)}catch(e){}},iC=function(e){var t=this;try{oC("act","play"),oC("med","game"),"complete"===document.readyState?XI.bcpf():XI.bcp(),e.tags.forEach(function(e){r(this,t),aC("int","tags : ".concat(e.title.toLowerCase()))}.bind(this)),aC("int","category : ".concat(e.category.toLowerCase()))}catch(e){}},sC=function(){window.addEventListener("load",(function(){MR.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,zR();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(rC[0],"LOTCC_".concat(eC),{alternates:rC});case 16:"object"===n(window[tC])&&(XI=window[tC]),nC()&&iC(t),e.next=23;break;case 20:e.prev=20,e.t1=e.catch(1),e.t1;case 23:case"end":return e.stop()}}),e,null,[[1,20]])})));return function(t){return e.apply(this,arguments)}}())}))},uC=function(){aC("genp","ad video"),aC("act","ad impression")},cC=function(){aC("act","ad skipped")},dC=function(){aC("act","ad click")},lC=function(){aC("act","ad complete")},fC=new iR,pC={preroll:"game-start-video",midroll:"mid-level-video",rewarded:"rewarded-video"},hC=function(e,t){var n=this,o=function(e,t){var r=fC.get("partner.url.value"),n=pC[t],o="".concat("web.latimes/games-puzzles-crossword","/").concat(e,"/").concat(n);return{env:"vp",iu:"/".concat("21787098806","/").concat(o),description_url:r,tfcd:0,npa:0,sz:"400x300|480x360|480x361|640x360|640x480",gdfp_req:1,output:"vast",unviewed_position_start:1,impl:"s",correlator:"".concat(Date.now())}}(e,t),a=Object.keys(o).map(function(e){return r(this,n),"".concat(e,"=").concat(o[e])}.bind(this)).join("&");return"".concat("https://pubads.g.doubleclick.net/gampad/ads","?").concat(a)},mC=(new iR).get("partner.domain.value"),vC=["latimes.com"],gC={exist:function(e){var t=this;return"Softgames-Azerion"===e.dname&&vC.some(function(e){return r(this,t),e===mC}.bind(this))},get:function(e,t){return function(e,t){return{"latimes.com":function(){var r=t.slug;return hC(r,e)}}[mC](e)}(e,t)}},bC=function(){var e=(new iR).get("partner.url.value"),t=new O(e,!0),r={isRevisionTest:!1,useTestAds:!1,disableMidrolltimer:!1};if("revision.gamedistribution.com"===t.host){var n=t.query.test,o="1"===n||"2"===n,a="1"===n;r={useTestAds:o,disableMidrolltimer:a,isRevisionTest:a||o}}return r},_C=function(){function e(){I(this,e),this.adContainer=window.document.body}return L(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 o=document.createElement("div");o.id="gd__spinner__button",o.setAttribute("title","Spinner"),o.classList.add("gd__spinner__button"),o.onclick=function(){r(this,e),this.hide()}.bind(this);var a=document.createElement("p");a.innerText="OK!",o.appendChild(a),this.adSpinnerButton=o;var i=document.createElement("div");i.id="gd__spinner__logo",i.setAttribute("title","Spinner"),i.classList.add("gd__spinner__logo"),this.adSpinnerLogo=i;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 yC(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 wC(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yC(Object(r),!0).forEach((function(t){eu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yC(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var AC=new dR.exports.EventEmitter,xC=null,kC=function(){function e(t,n,o){var a=this;if(I(this,e),xC)return xC;xC=this;var i={debug:!1,width:640,height:360,locale:"en"};this.options=n?ot(i,n):i,this.prefix="gdsdk__",this.adsLoader=null,this.adsManager=null,this.adDisplayContainer=null,this.eventBus=new Rt,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=o.parentDomain,this.topDomain=o.topDomain,this.parentURL=o.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.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,a),this._clearSafetyTimer("LOADED"),this._startSafetyTimer(8e3,"LOADED")}.bind(this),"ima"),this.eventBus.subscribe("STARTED",function(){r(this,a),this._clearSafetyTimer("STARTED")}.bind(this),"ima")}var n,o,a,i,s,u,c,f,p,h,m,v,g,b,_,y,w,A,x,k,E,S,R,D;return L(e,[{key:"start",value:(D=t(d.mark((function e(){var n,o,a,i=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,i._init_afg_script({adsense_channel:"4089988593"});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,i._init_hl_script();case 2:return e.next=4,i._init_ima_script();case 4:i._createPlayer(),i._setUpIMA();case 6:case"end":return e.stop()}}),e)}))));case 7:if(o=e.sent,this.imaInitSuccess=o.success,a=[],this.afgInitSuccess||a.push(n.error),this.imaInitSuccess||a.push(o.error),!(a.length>0)){e.next=14;break}throw a[0];case 14:window.eventTest=function(e){r(this,i),this._broadcast(e,{message:"",status:"success"})}.bind(this),e.next=21;break;case 17:throw e.prev=17,e.t0=e.catch(0),Qs("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 D.apply(this,arguments)})},{key:"adSystemInitialize",value:(R=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 R.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:(S=t(d.mark((function e(t){var r,n,o,a,i,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,i=null===(o=this.gameData.adflw)||void 0===o||null===(a=o.adapterConfig)||void 0===a?void 0:a.spil,s=this.nextAdPosition(r),e.next=6,this._create_dp_context(s,n);case 6:return u=e.sent,i?(this.gameData,c=i[s]||i.default||this._getDefaultSpilAdapterConfig()):c=this._getDefaultSpilAdapterConfig(),l=100*u.floor_price,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 S.apply(this,arguments)})},{key:"_getAdVast",value:function(e,n){var o=this;return new Promise(function(){var a=t(d.mark((function t(a){var i,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&>.getBoolean("gd_debug_ex")&>.getBoolean("gd_tag")||bC().useTestAds)){t.next=6;break}return i=o.IMASampleTags[e],s=Math.floor(Math.random()*i.length),u=i[s],a({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",a(o._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=null!=n&&n.adTypeFound?null==n?void 0:n.adTypeFound:o.nextAdPosition(e),o._broadcast("AD_REQUEST",{message:c}),l=o.options,"preroll"===c&&$(l.preroll)?l=l.preroll:"midroll"===c&&$(l.midroll)?l=l.midroll:"rewarded"===c&&$(l.rewarded)&&(l=l.rewarded),f="","audio"===n.adapter||"audio"===n.giftType?(o.isAudioAd=!0,f="midrollaudio"):(o.isAudioAd=!1,f="rewarded"===c?"rewardedVideo":"gdbanner"===c?"gd__banner":"midroll"===c?"midroll":"video1"),t.next=19,window.idhb.isLoaded();case 19:return t.next=21,o._create_dp_context(c,n);case 21:p=t.sent,Js("gd-adflow, before idhb",c,f),h=window.idhb.getAdserverTargetingForAdSlot(f),window.idhb.setAdserverTargeting(wC(wC({},h),{},{adaptor_order:n.adapterIndex})),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),!p||null!=t&&t.bidFloorApplied||fetch(p.skip_url).catch(function(e){r(this,n)}.bind(this));var i={src:"hl",tnl_keys:wC(wC({},window.idhb.getAdserverTargetingForAdSlot(f)),{},{tnl_ad_pos:c,tnl_asset_id:o.gameData.gameId}),url:e,dp:p,hl:t};o._extend_hl_url(i),a(i)}.bind(this)}),t.next=33;break;case 30:throw t.prev=30,t.t0=t.catch(10),new Error(t.t0);case 33:case"end":return t.stop()}}),t,this,[[10,30]])})));return function(e){return a.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(o){var a=this;if(r(this,n),"undefined"==typeof google)throw new Error("Unable to load ad, google IMA SDK not defined.");try{var i,s,u=null==e||null===(i=e.tnl_keys)||void 0===i?void 0:i.tnl_ad_pos;this.adSuccess=!1,this.contentPaused=!1;var c=new google.ima.AdsRequest,d=this._transformVast(e,t),l=wC(wC({},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,a),t.shouldFail&&(f?(f.adtag_url="dp_original_broken",f.fallback_url="dp_fallback_broken"):d.url="original_broken",null==f||f.adtag_url,null==f||f.fallback_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){var v=function(e){for(var t=[],r="",n=Date.now(),o={ppos:1,lip:!0,vad_type:"linear"},a=0;a<e.length;a++){var i=new O(e[a].adtag.url,!0);i.query=JI(JI({},i.query),{},{ad_rule:0,vpos:e[a].positon,pod:1,correlator:0===a?n:++n,output:"xml_vast3"}),a<e.length-1&&(i.query=JI(JI({},i.query),o)),t.push(i.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(QI({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){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){var b=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=b}else 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){}o(c)}catch(e){throw new Error(e)}}.bind(this))}},{key:"_getExternalVast",value:function(e){var t;try{var r=this.getCurrentAdPosition(e);t=gC.exist(this.gameData)&&gC.get(r,this.gameData)}catch(e){console.log("external-vast 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:(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 o=this;r(this,t);var a=navigator.userAgent.toLowerCase();a.indexOf("safari")>-1&&a.indexOf("chrome"),qI.video({inline:!0,muted:!1}).then(function(t){r(this,o);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 E.apply(this,arguments)})},{key:"_initDisplayContainerWithAutoPlay",value:(k=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 k.apply(this,arguments)})},{key:"startAd",value:(x=t(d.mark((function e(t){var n,o,a,i=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=t.adType,a=t.params,this.adType_=o,this.isAudioAd=!1,this.adContext=wC(wC({},a),{},{adType:o}),null!==(n=this.gameData.adspn)&&void 0!==n&&n.enabled&&(this.adFlowProcessSpinner||(this.adFlowProcessSpinner=new _C,this.adFlowProcessSpinner.add()),this.adFlowProcessSpinner.show(!0)),"promo"!==(null==a?void 0:a.adapter)){e.next=7;break}return e.abrupt("return",this._startPromo(a,o));case 7:if("adsense"!==(null==a?void 0:a.adapter)){e.next=31;break}if(o!==nt.Interstitial){e.next=24;break}if("preroll"!==(null==a?void 0:a.position)){e.next=13;break}return e.abrupt("return",this._startAdsensePlacementPreroll(t));case 13:if("start"!==(null==a?void 0:a.position)){e.next=17;break}return e.abrupt("return",this._startAdsensePlacementStart(t));case 17:if("next"!==(null==a?void 0:a.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(o!==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,i),e===(null==a?void 0:a.adapter)}.bind(this))){e.next=42;break}if(o!==nt.Interstitial){e.next=37;break}return e.abrupt("return",this._startInterstitialAd(a));case 37:if(o!==nt.Rewarded){e.next=41;break}return e.abrupt("return",this._startRewardedAd(a));case 41:throw new Error("Unsupported ad type");case 42:["opus"].some(function(e){return r(this,i),e===(null==a?void 0:a.adapter)}.bind(this))&&this._startOpusAd(a);case 44:case"end":return e.stop()}}),e,this)}))),function(e){return x.apply(this,arguments)})},{key:"_startOpusAd",value:(A=t(d.mark((function e(t){var n,o,a,i,s,u,c,l,f,p,h,m,v,g,b,_=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.adTypeFound="rewarded"===t.adTypeFound?"reward":t.adTypeFound,o=t.adTypeFound,!this.requestRunning){e.next=7;break}return this._broadcast("AD_IS_ALREADY_RUNNING",{status:"warning"}),this._broadcast("AD_ERROR",{message:"Ad is already running",status:"error"}),e.abrupt("return");case 7:if(a=null===(n=window.gdlocus)||void 0===n?void 0:n.adBreak){e.next=11;break}return this._broadcast("AD_ERROR",{message:"Locus adBreak not found",status:"error"}),e.abrupt("return");case 11:i=void function(){return r(this,_),!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:i},p=function(e){r(this,_),this.opusEventReceived=!0,this._broadcast("CONTENT_PAUSE_REQUESTED",{message:"",status:"success"}),this._broadcast("IMPRESSION",{message:"",status:"success"})}.bind(this),h=function(e){r(this,_),this.opusEventReceived=!0,this._broadcast("CONTENT_RESUME_REQUESTED",{message:"",status:"success"})}.bind(this),m=function(){r(this,_),this.opusEventReceived=!0}.bind(this),v=function(){r(this,_),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,_),this.opusEventReceived=!0,this.resetForNext();var t="".concat(o);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"})}.bind(this),console.log("opus-ad meta",f),b={type:o,meta:f,beforeAd:p,afterAd:h,adBreakDone:g},"reward"===o&&(b=wC(wC({},b),{},{adDismissed:m,adViewed:v})),this.opusEventReceived=!1,this._startTimeoutForOpus(),a&&a(b);case 27:case"end":return e.stop()}}),e,this)}))),function(e){return A.apply(this,arguments)})},{key:"preloadAd",value:(w=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 w.apply(this,arguments)})},{key:"addAdComponents",value:function(){var e=this,t=function(){r(this,e),this.adsManager.resume()}.bind(this);try{this.adResume=new BI(this.adContainer,t),this.adResume.add(),this.rewardedLabel=new NI(this.adContainer,t),this.rewardedLabel.add(),this.audioAdLabel=new FI(window.document.body),this.audioAdLabel.add(),this.audioAdLabel.hide()}catch(e){console.log("error on adding adResume",e)}}},{key:"loadDisplayAd",value:(y=t(d.mark((function e(n){var o=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,a){var i,s,u,c,l,f,p,h,m,v=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{(s=n?n.containerId:null)||a("Container id is not specified"),u=document.getElementById(s),document.getElementById(s)||a("No container is found with this id - ".concat(s)),void 0===window.idhb.requestAds&&a("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 }"),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)),o.atom_display=null,null!==(i=o.atom_display)&&void 0!==i&&i.params&&window.idhb.setAdserverTargeting(null===(h=o.atom_display)||void 0===h?void 0:h.params),(m={})[c]={maxSize:[u.offsetWidth,u.offsetHeight]},window.idhb.requestAds({slots:m,callback:function(e){r(this,v),JSON.stringify(e,null,2)}.bind(this)}),t()}catch(e){console.log("display_test error",e),a(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 y.apply(this,arguments)})},{key:"_startInterstitialAd",value:(_=t(d.mark((function e(t){var n,o,a,i,s=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,s),Xs.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 o=e.sent,e.next=13,this._loadInterstitialAd(wC(wC({},o),t));case 13:if(a=e.sent,i=a.success,a.args,i){e.next=18;break}return e.abrupt("return");case 18:o.autoplayRequiresMute&&this.adsManager.setVolume(0),!0===(null===(n=this.gameData.advlm)||void 0===n?void 0:n.mode)&&this.adsManager.setVolume(1),this.adsManager.init(this.options.width,this.options.height,google.ima.ViewMode.NORMAL),this.adsManager.start(),e.next=29;break;case 24:throw e.prev=24,e.t0=e.catch(0),e.t0,this._onError(e.t0),e.t0;case 29:case"end":return e.stop()}}),e,this,[[0,24]])}))),function(e){return _.apply(this,arguments)})},{key:"_startPromo",value:(b=t(d.mark((function e(t,r){var n,o,a,i;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 o=e.sent,e.next=11,this._loadPromo(wC(wC({},o),t),r);case 11:if(a=e.sent,i=a.success,a.args,i){e.next=16;break}return e.abrupt("return");case 16:o.autoplayRequiresMute&&this.adsManager.setVolume(0),!0===(null===(n=this.gameData.advlm)||void 0===n?void 0:n.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=28;break;case 23:throw e.prev=23,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 28:case"end":return e.stop()}}),e,this,[[0,23]])}))),function(e,t){return b.apply(this,arguments)})},{key:"_loadPromo",value:(g=t(d.mark((function e(t,r){var n,o;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._resetAdsLoader(),e.prev=1,n=this.nextAdPosition(r),o=this._create_promo_context(n),this._requestPromo(o,wC({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 g.apply(this,arguments)})},{key:"_loadInterstitialAd",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.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,wC({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 v.apply(this,arguments)})},{key:"_waitOnAdLoad",value:function(){var e=this;return new Promise(function(t,n){var o=this;r(this,e);var a="videoad.preloadad";this.eventBus.unsubscribeScope(a);var i=function(e){var n=this;r(this,o),setTimeout(function(){r(this,n),this.eventBus.unsubscribeScope(a),t({success:!0,args:e})}.bind(this),1)}.bind(this),s=function(e){var n=this;r(this,o),setTimeout(function(){r(this,n),this.eventBus.unsubscribeScope(a),t({success:!1,args:e})}.bind(this),1)}.bind(this);this.eventBus.subscribe("AD_SDK_MANAGER_READY",i,a),this.eventBus.subscribe("AD_SDK_CANCELED",s,a),this.eventBus.subscribe("AD_ERROR",s,a)}.bind(this))}},{key:"_startRewardedAd",value:(m=t(d.mark((function e(t){var n,o,a,i,s=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,s),Xs.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 o=e.sent,e.next=13,this._loadRewardedAd(wC(wC({},o),t));case 13:if(a=e.sent,i=a.success,a.args,i){e.next=18;break}return e.abrupt("return");case 18:o.autoplayRequiresMute&&this.adsManager.setVolume(0),!0===(null===(n=this.gameData.advlm)||void 0===n?void 0:n.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 24:throw e.prev=24,e.t0=e.catch(0),this._onError(e.t0),e.t0;case 28:case"end":return e.stop()}}),e,this,[[0,24]])}))),function(e){return m.apply(this,arguments)})},{key:"_loadRewardedAd",value:(h=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,wC({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 h.apply(this,arguments)})},{key:"_preloadInterstitialAd",value:(p=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 p.apply(this,arguments)})},{key:"_preloadRewardedAd",value:(f=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 f.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 o=this._adrequest_user_context.t4RResult?this._adrequest_user_context.t4RResult:this._isT4R(e);this._adrequest_user_context.t4RResult=o;var a=o.success,i=o.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}),a||this._broadcast("AD_T4R_NONE",{reason:i}),this.activeAdContainer.style.opacity=a?.001:1,a&&null!=e&&e.contentType.startsWith("video/")&&(this.t4rButton=new GI(this.adContainer),this.t4rButton.add(),this._broadcast("AD_T4R_VIDEO")),a&&this.adsManager.setVolume(0),a&&this._broadcast("AD_T4R"),a&&setTimeout(function(){r(this,t),this.activeAdContainer.style.opacity=1,this.adsManager.setVolume(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){if(a&&"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")}a||"click"!==n||this._broadcast("AD_CLICK"),this.t4rButton&&this.t4rButton.hide(),this.activeAdContainer.style.opacity=1,this.adsManager.setVolume(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 o=document.createElement("div");o.id="".concat(this.prefix,"advertisement_slot"),o.style.position="absolute",o.style.top="0",o.style.left="0",o.style.width=this.options.width+"px",o.style.height=this.options.height+"px",this.adContainerInner=o,this.activeAdContainer=this.adContainer,window.activeAdContainer=this.activeAdContainer,this.thirdPartyContainer?(this.adContainer.appendChild(o),this.thirdPartyContainer.appendChild(this.adContainer),this.activeAdContainer=this.thirdPartyContainer):(this.adContainer.appendChild(o),t.appendChild(this.adContainer)),this.addAdComponents(),this.activeAdContainer.style.visibility="hidden";var a=function(){r(this,e);var t=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,a=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:a,o.style.width=this.options.width+"px",o.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",a),window.document.addEventListener("DOMContentLoaded",a)}},{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 o=new Date,a=o.getHours(),i=o.getDate(),s=o.getMonth(),u=o.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(a," d").concat(i," m").concat(s," y").concat(u)}}),this._adrequest_user_context=e.getUserRequestContext()}},{key:"_onAdEvent",value:function(e){var t,n,o,a,i,s=this,u=new Date,c=u.getHours(),d=u.getDate(),l=u.getMonth(),f=u.getFullYear(),p=(a=google.ima.AdEvent.Type,i=e.type,Object.keys(a).find((function(e){return a[e]===i}))),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===(o=n.data)||void 0===o?void 0:o.title;this._sendIMAEventsToHB(e);var b=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&&(h=!0),this.isAudioAd&&(this.audioAdLabel.hide(),this.isAudioAd=!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 y=e.getAd().getContentType();this._show({mode:"click",contentType:y}),dC();break;case google.ima.AdEvent.Type.COMPLETE:e.getAd(),h=this._is_completed(e.getAd()),_="Fired when the ad completes playing.",this.adType_===nt.Rewarded&&this._broadcast("SDK_REWARDED_WATCH_COMPLETE",{message:"",status:"success"});break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.gameData.fllc.enabled&&(b.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&&(b.style.display="block"),_="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.t4rButton&&this.t4rButton.hide();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 w=e.getAd().getContentType();this._show({mode:"first_quartile",contentType:w});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 A=e.getAd().getContentType();_=A,this._show({mode:"loaded",contentType:A});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:v&&"VPAID"!==g&&this.adResume.show(),_="Fired when the ad is paused.";break;case google.ima.AdEvent.Type.RESUMED:_="Fired when the ad is resumed.",v&&(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:h=this._is_completed(e.getAd()),_="Fired when the ad is skipped by the user.",cC(),this.t4rButton&&this.t4rButton.hide();break;case google.ima.AdEvent.Type.STARTED:this.adType_===nt.Rewarded&&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:h=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(""!==p&&""!==_){var x=!this.contentPaused&&e.type===google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,k=!this.contentPaused&&e.type===google.ima.AdEvent.Type.ALL_ADS_COMPLETED;x||k||this.isAudioAd||this._broadcast(p,{name:p,message:_,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 E=e.getAd(),S="Rainbow"===(null==E?void 0:E.getAdSystem())&&(null==E?void 0:E.getWrapperAdIds().some(function(e){return r(this,s),"promo"===e}.bind(this)));null==E||E.getAdSystem(),null==E||E.getWrapperAdIds(),this._broadcast("AD_SUCCESS",{message:"Ad succeeded.",status:"success",isPromoSuccess:S}),this.resetForNext(e)}}},{key:"_run_atom_tag_aws_test",value:function(e){var t=this;try{var n,o,a,i,s;if(!((null===(n=this.gameData)||void 0===n||null===(o=n.aws_tst)||void 0===o?void 0:o.enabled)&&(null===(a=this.gameData)||void 0===a||null===(i=a.aws_tst)||void 0===i||null===(s=i.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,o={type:"none"};try{var a=this.current_dp,i=a.id,s=a.error_url,u=a.impression_url,c=a.fallback_imp_url,d=a.promo_imp_green_url;if(!e&&!t)return o={type:"imp_err",url:s};var l=e.getWrapperAdIds().some(function(e){return r(this,n),e==="".concat(i)}.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?o={type:"normal_imp",url:u}:l&&!t?o={type:"normal_err",url:s}:p&&t?o={type:"promo_imp",url:d}:f&&t&&(o={type:"fallbacj_imp",url:c})}catch(e){}return o}},{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(),o=this._getInnerErrorCode(r);AC.emit("AD_ERROR",n),this._broadcast(t,{message:n,details:o,status:"warning",analytics:{category:t,action:o,label:n}}),this._hideAddResume()}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:"_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 o=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 a in o.query||{}){var i=o.query[a];$(i)&&(o.query[a]=l.stringify(i))}var s=new O(o.url,!0);return VI(s.query,o.query||{}),wC({url:s.toString()},t)}}},{key:"_transformVast",value:function(e,t){var r={url:e.url};try{var n=new O(e.url,!0),o=this._transformQuery(e,t,n);o&&(r.url=n.toString());var a=o?n:new O(e.url,!0);if(a.query.cust_params){var i=l.parse(a.query.cust_params);r.bidder=i.hb_bidder,r.cust_params=i}r.url_parsed=a}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 o=this;if(e&&t&&e.tnl_keys){var a=this.options.vast_query;if(t.retry_on_success&&this.options.retry_on_success&&$(this.options.retry_on_success.vast_query)?a=this.options.retry_on_success.vast_query:t.retry_on_failure&&this.options.retry_on_failure&&$(this.options.retry_on_failure.vast_query)&&(a=this.options.retry_on_failure.vast_query),$(a=j(a))){var i=n.query;if(a.$$remove){for(var s in i){new RegExp(a.$$remove,"i").test(s)&&delete i[s]}delete a.$$remove}var u=l.parse(i.cust_params);if(a.cust_params&&a.cust_params.$$remove){for(var c in u){new RegExp(a.cust_params.$$remove,"i").test(c)&&delete u[c]}delete a.cust_params.$$remove}var d=this.macros.transform(a,{get:function(t){return r(this,o),e.tnl_keys[t.toLowerCase()]}.bind(this)});return i.cust_params=u,VI(i,d),i.cust_params=l.stringify(i.cust_params),!0}}}},{key:"_isExcludedBidderForT4R",value:function(){var e=this;try{var t,n,o,a,i=(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:i}),this._adrequest_user_context,'bidder:"'.concat(i,'"');var s=(null===(o=this.gameData.t4rc)||void 0===o?void 0:o.bidder_exc)||[],u=(null===(a=this.gameData.t4rc)||void 0===a?void 0:a.bidder_inc)||[],c=!1;return u.length>0?c=!u.some(function(t){return r(this,e),t===i}.bind(this)):s.length>0&&(c=s.some(function(t){return r(this,e),t===i}.bind(this))),c}catch(e){console.log("ex_bidder ERR",e)}}},{key:"_isExcludedBidderForT4RWithBidderExcRate",value:function(){var e,t,r,n,o=this._isExcludedBidderForT4R(),a=null===(e=this.gameData)||void 0===e||null===(t=e.t4rc)||void 0===t?void 0:t.bidder_exc_rate,i=null!=a&&a.enabled?(null==a?void 0:a.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 o||"adx"!==s&&u<i}},{key:"_isT4R",value:function(e){var t,r,n,o,a,i,s;if(!this.gameData.publishedAt)return{success:!1,reason:"pdate-2"};var u=new Date(this.gameData.publishedAt);if(((new Date).getTime()-u.getTime())/864e5<=10)return{success:!1,reason:"pdate-1"};var c=this.gameData.meta,d=e.t4r.meta;if((null==c||null===(t=c.ast)||void 0===t?void 0:t.c)>=(null==d||null===(r=d.ast)||void 0===r?void 0:r.c)&&(null==c||null===(n=c.sit)||void 0===n?void 0:n.c)>=(null==d||null===(o=d.sit)||void 0===o?void 0:o.c))return{success:!1,reason:"meta"};var l=this._isExcludedBidderForT4RWithBidderExcRate();if(console.log("zxcv isExcludedBidderForT4R",l),l)return this.msgrt.send("bidder.ex",{message:"true"}),{success:!1,reason:"bidder"};this.msgrt.send("bidder.ex",{message:"false"});var f=null===(a=this._adrequest_user_context)||void 0===a?void 0:a.tnl_ad_pos;if(this.clickCount[f]>=(null===(i=e.t4r[f])||void 0===i?void 0:i.count))return{success:!1,reason:"click-count"};if(null!=e&&null!==(s=e.contentType)&&void 0!==s&&s.startsWith("image/")||"text"===(null==e?void 0:e.contentType)){var p,h=f&&(null===(p=e.t4r[f])||void 0===p?void 0:p.enabled);return{success:h,reason:h?null:"rule-check"}}if(null!=e&&e.contentType.startsWith("video/")){var m,v=(null===(m=e.t4r[f])||void 0===m?void 0:m.viper)||0;if(v>0){var g,b=Math.random()<v,_=f&&b&&(null===(g=e.t4r[f])||void 0===g?void 0:g.enabled);return{success:_,reason:_?null:"viper-check"}}return{success:!1,reason:"rule-check-viper"}}return{success:!1,reason:"media-format"}}},{key:"_isVMAP",value:function(e){var t,r,n,o,a,i,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===(o=n.pAds)||void 0===o||null===(a=o.vmap)||void 0===a?void 0:a.enabled))||"midroll"===e&&(!0===(null===(i=this.gameData)||void 0===i||null===(s=i.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),b=this.adCounter[e];return void 0!==(null==g?void 0:g.start)?b>=(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,o=e.dp,a=n.count||2,i=[],s=1;s<=a;s++){var u={};u.adtag=this._createCustomAdVastUrl(n["vast_"+s])||t,u.position=r,u.dp=n["vast_"+s]?void 0:o,i.push(u)}return i}},{key:"_get_vmap_config",value:function(e){var t,r,n,o,a,i,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===(o=n.mAds)||void 0===o?void 0:o.vmap;case"rewarded":return null===(a=this.gameData)||void 0===a||null===(i=a.rAds)||void 0===i?void 0:i.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 o={id:this.topDomain||this.parentDomain,au:"display",ty:"display",aid:this.gameData.gameId,pgu:this.parentURL},a=new $I(this.gameData).checkCustomParams();a&&(o.cp=a);var i=encodeURIComponent(rt.encode(JSON.stringify(o)));fetch("https://tag.atom.gamedistribution.com/v1/atm?ar=".concat(i)).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 o=e.p/100;this.msgrt.send("dp.fp",{message:o}),t({params:{fp:o},error_url:"https://tag.atom.gamedistribution.com/v1/err?ar=".concat(i),impression_url:"https://tag.atom.gamedistribution.com/v1/imp?ar=".concat(i)})}.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,o={id:this.topDomain||this.parentDomain,au:e||"unknown",ty:"video",aid:this.gameData.gameId,pgu:this.parentURL},a=Object.keys(o).map(function(e){return r(this,n),"".concat(e,"=").concat(encodeURIComponent(o[e]))}.bind(this)).join("&");encodeURIComponent(rt.encode(JSON.stringify(o)));var i=null===(t=this.gameData.promo)||void 0===t?void 0:t.rainbow,s=null==i?void 0:i.enabled,u="https://tag.atom.gamedistribution.com/v1/rainbow/?".concat(a),c=s?u:void 0;return function(){r(this,n),Xs.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 o=this;return new Promise(function(){var a=t(d.mark((function t(a){var i,s,u,c,l,f=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,o._isDP(e)){t.next=5;break}return o.msgrt.send("dp.na",{message:"rule"}),t.abrupt("return",a());case 5:s={id:o.topDomain||o.parentDomain,au:e||"unknown",ty:"video",aid:o.gameData.gameId,pgu:o.parentURL},(u=new $I(o.gameData).checkCustomParams())&&(s.cp=u),c=encodeURIComponent(rt.encode(JSON.stringify(s))),null==n||n.adapterIndex,null==n||n.isLastAdapter,l=null===(i=o.gameData.promo)||void 0===i?void 0:i.rainbow,!1,null==l||l.enabled,null==n||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 o.msgrt.send("dp.na",{message:"atom"}),a();var t=e.p/100;o.msgrt.send("dp.fp",{message:t}),a({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),o.msgrt.send("dp.err",{message:(null==e?void 0:e.message)||e}),a()}.bind(this)),t.next=20;break;case 16:t.prev=16,t.t0=t.catch(0),o.msgrt.send("dp.err",{message:(null===t.t0||void 0===t.t0?void 0:t.t0.message)||t.t0}),a();case 20:case"end":return t.stop()}}),t,this,[[0,16]])})));return function(e){return a.apply(this,arguments)}}())}},{key:"_extend_dp_with_adsense",value:function(e,t){if(e&&t)try{var r,n=new O(t.vastUrl,!0);if(null===(r=n.query)||void 0===r||!r.cust_params)return;var o=l.parse(n.query.cust_params);if(!o.tnl_asset_id)return;o.adsense=1,n.query.cust_params=l.stringify(o,!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 o,a=new O(e.url,!0);if(null===(o=a.query)||void 0===o||!o.cust_params)return;var i=l.parse(a.query.cust_params);i.bfa=n,i.adsense=0,a.query.cust_params=l.stringify(i,!1),e.url=a.toString(),t.vastUrl=e.url}catch(e){}finally{this.msgrt.send("bfa",{message:n})}}},{key:"_init_hl_script",value:(c=t(d.mark((function e(t){var n,o,a,i,s,u,c,l,f=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this._getPrebidScripts(),o=n[0],a=function(){return r(this,f),!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||[],(i=new URL(o)).searchParams.append("referer",window.idhb.options.configUrl),o=i.href,e.next=13,ft(o,"gdsdk_prebid",{alternates:n,error_prefix:"Blocked:",exists:function(){return r(this,f),window.idhb.requestAds}.bind(this)});case 13: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",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,o,a=e.slotId.split("@");a=1===a.length?a[0]:a[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),this._broadcast("DISPLAYAD_ERROR",{message:a,status:"warning"})):(null!==(o=this.atom_display)&&void 0!==o&&o.impression_url&&(fetch(this.atom_display.impression_url).catch(function(e){r(this,t)}.bind(this)),delete this.atom_display),this._broadcast("DISPLAYAD_IMPRESSION",{message:a,status:"success"}))}catch(e){}}.bind(this));case 23:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"_init_ima_script",value:(u=t(d.mark((function e(t){var n,o,a=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"],o=this.options.debug?n[0]:n[1],e.next=4,ft(o,"gdsdk_ima",{alternates:n,error_prefix:"Blocked:",exists:function(){return r(this,a),window.google&&window.google.ima}.bind(this)});case 4:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{key:"_init_afg_script",value:(s=t(d.mark((function e(t){var n,o,a,i,s=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(i={}).crossorigin="anonymous",i["data-ad-client"]=(null==t||null===(n=t.adsense_client)||void 0===n?void 0:n.length)>0?t.adsense_client:"ca-pub-2316275586951220",i["data-ad-frequency-hint"]="30s",i.allow="autoplay",(null==t||null===(o=t.adsense_channel)||void 0===o?void 0:o.length)>0&&(i["data-ad-channel"]=t.adsense_channel),(null==t||null===(a=t.adsense_host)||void 0===a?void 0:a.length)>0&&(i["data-ad-host"]=t.adsense_host),!0===(null==t?void 0:t.adsense_adbreak_test)&&(i["data-adbreak-test"]="on"),e.next=14,ft("https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js","afg",{error_prefix:"Blocked:",exists:function(){return r(this,s),!!window.adsbygoogle}.bind(this),attrs:i});case 14:window.adsbygoogle=window.adsbygoogle||[],window.adsbygoogle.push({sound:"on",preloadAdBreaks:"on"});case 16:case"end":return e.stop()}}),e,this)}))),function(e){return s.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",o=r||!0,a=document.getElementsByClassName("adsbygoogle"),i=0;i<a.length;i++){var s,u=a[i],c=u&&(null===(s=u.children[0])||void 0===s?void 0:s.children[0]);c&&"IFRAME"===c.tagName&&c.style.height!==n&&(c.style.height=n,o&&(c.parentElement.style.overflow="auto"))}}catch(e){"out-of-bounds error: ".concat(e.message)}}},{key:"clearSession",value:function(){this.requestRunning=!1}},{key:"_startAdsensePlacementRewardedAd",value:(i=t(d.mark((function e(t){var n,o,a,i,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),Xs.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,o=function(){r(this,f),n=!0,this.fixOutOfBounds(),this._broadcast("CONTENT_PAUSE_REQUESTED",{message:"",status:"success"}),this._broadcast("IMPRESSION",{message:"",status:"success"})}.bind(this),a=function(){r(this,f),n=!0,this._broadcast("CONTENT_RESUME_REQUESTED",{message:"",status:"success"})}.bind(this),i=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||(Js("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:o,afterAd:a,adDismissed:i,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 i.apply(this,arguments)})},{key:"_startAdsensePlacementPreroll",value:(a=t(d.mark((function e(t){var n,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),Xs.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,a),this.adPlacementEventReceived=!0}.bind(this),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("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"}),i={type:"preroll",beforeAd:n,adBreakDone:o},window.adsbygoogle.push(i),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 i}),e,this,[[1,18]])}))),function(e){return a.apply(this,arguments)})},{key:"_startAdsensePlacementStart",value:(o=t(d.mark((function e(t){var n,o,a,i=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,i),Xs.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,i),this.adPlacementEventReceived=!0,this.fixOutOfBounds(),this._broadcast("CONTENT_PAUSE_REQUESTED",{message:"",status:"success"}),this._broadcast("IMPRESSION",{message:"",status:"success"})}.bind(this),o=function(){r(this,i),this.adPlacementEventReceived=!0,this._broadcast("CONTENT_RESUME_REQUESTED",{message:"",status:"success"})}.bind(this),this.adPlacementEventReceived=!1,a=function(e){r(this,i),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:o,adBreakDone:a},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,o,a,i,s,u=this;if(null===(t=this.gameData)||void 0===t||null===(n=t.ad_blcks)||void 0===n||null===(o=n.adsenseTimeout)||void 0===o?void 0:o.enabled)var c=(null==e?void 0:e.adType)||"default",d=null===(a=this.gameData)||void 0===a||null===(i=a.ad_blcks)||void 0===i||null===(s=i.adsenseTimeout)||void 0===s?void 0:s.timeout,l=(null==d?void 0:d[c])||(null==d?void 0:d.default)||15,f=setTimeout(function(){r(this,u),this.adPlacementEventReceived||(this._broadcast("AD_ERROR",{message:"timeout",status:"error"}),this.adPlacementEventReceived=!1,this.requestRunning=!1),clearTimeout(f)}.bind(this),1e3*l)}},{key:"_startTimeoutForOpus",value:function(){var e=this,t=setTimeout(function(){r(this,e),this.opusEventReceived||(this._broadcast("AD_ERROR",{message:"timeout",status:"error"}),this.opusEventReceived=!1,this.requestRunning=!1),clearTimeout(t)}.bind(this),5e3)}},{key:"_startAdsensePlacementNext",value:(n=t(d.mark((function e(t){var n,o,a,i=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,i),Xs.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,i),this.adPlacementEventReceived=!0,this.fixOutOfBounds(),this._broadcast("CONTENT_PAUSE_REQUESTED",{message:"",status:"success"}),this._broadcast("IMPRESSION",{message:"",status:"success"})}.bind(this),o=function(){r(this,i),this.adPlacementEventReceived=!0,this._broadcast("CONTENT_RESUME_REQUESTED",{message:"",status:"success"})}.bind(this),this.adPlacementEventReceived=!1,a=function(e){r(this,i),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:o,adBreakDone:a},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 n.apply(this,arguments)})},{key:"_send",value:function(e,t){try{var r=this.msgrt,n=r._layout,o=r._ua,a={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:o.browser.name,brvs:o.browser.version,osnm:o.os.name,osvs:o.os.version,dvmd:o.device.model,w:n.w,h:n.h}};return fetch("https://tag.atom.gamedistribution.com/v1/dmp?ar=".concat(encodeURIComponent(rt.encode(JSON.stringify(a)))))}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 iR).get();return r=wC(wC({},r),n),r=t?wC(wC({},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,o;if(this._isAfgPositionStart(e))t=null===(n=this.gameData.pAds)||void 0===n||!n.enabled||null!==(o=this.gameData.loader)&&void 0!==o&&o.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,o=!1;["AD_ERROR"].some(function(t){return r(this,n),t===e}.bind(this))&&(o=!this.adContext.isLastAdapter||this.adContext.extraPromoRunOnFail);var a=this.getCurrentAdPosition(this.adContext.adType);this.eventBus.broadcast(e,wC(wC({},t),{},{skipForward:o,adPosition:a}))}}]),e}(),EC=L((function e(r){var n=this;I(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,U_(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 o=r.package||"gd-sdk-stone-dynamic",a=r.package_version||"1.1.1",i=r.template||"puzzle",s=r.dependencies||[];this.moduleName="GDPromoByOrbit",this.moduleDefault=i.charAt(0).toUpperCase()+i.slice(1),this.moduleConfig={source:"https://pm.azerioncircle.com/@bygd/".concat(o,"/").concat(a,"/dist/").concat(i.toLowerCase(),"/iife/index.js"),dependencies:s},M_(this.moduleName,this.moduleConfig)})),SC=L((function e(r){var n=this;I(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,U_(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 o=r.package||"gd-sdk-air-dynamic",a=r.package_version||"1.2.0",i=r.template||"pluto",s=r.dependencies||[];this.moduleName="GDSplashDynamic",this.moduleDefault=i.charAt(0).toUpperCase()+i.slice(1),this.moduleConfig={source:"https://pm.azerioncircle.com/@bygd/".concat(o,"/").concat(a,"/dist/").concat(i.toLowerCase(),"/iife/index.js"),dependencies:s},M_(this.moduleName,this.moduleConfig)})),RC=function(e,t){console.log(e,t)},DC={},TC={},OC=null;function IC(){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 DC.version=n,DC.frame=e,DC.function=r,DC.version}function CC(e){var t=this;return OC||(OC=new Promise(function(n){function o(t,r){if(RC("Received a response from CMP",t),r){var o,a;if(!1!==t.gdprApplies)return"tcloaded"===t.eventStatus||"useractioncomplete"===t.eventStatus?(("boolean"!=typeof(a=(o=t)&&"boolean"==typeof o.gdprApplies?o.gdprApplies:e.defaultGdprScope)||!0===a&&"string"!=typeof o.tcString)&&n({result:"cmpUnexpectedResponse",cmp:DC,consentData:o}),void n({result:"ok",consentData:t})):void 0;n({result:"ok",consentData:t})}else n({result:"cmpCallFailed"})}r(this,t),IC(),DC.frame?2===DC.version?(RC("TCF v2 CMP found. Fetching the consent."),DC.function?(RC("CMP API is directly accessible, calling it now..."),DC.function("addEventListener",DC.version,o)):(RC("CMP API is outside the current iframe, calling it now..."),function(e,t,n){var o=this,a="__tcfapi";function i(e){var t="".concat(a,"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!==TC[n.callId]&&TC[n.callId](n.returnValue,n.success)}}window[a]=function(e,n,i,s){r(this,o);var u=Math.random()+"",c=eu({},"".concat(a,"Call"),{command:e,parameter:s,callId:u,version:n});TC[u]=i,t.postMessage(c,"*")}.bind(this),window.addEventListener("message",i,!1),window[a](e,DC.version,n)}("addEventListener",DC.frame,o))):n({result:"cmpVersionNotV2",cmp:DC}):n({result:"cmpNotFound"})}.bind(this)),OC)}var PC=function(){function e(){I(this,e),this.productName="Game Distribution"}var r;return L(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,o,a,i,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(a=null==t||null===(n=t.visitor)||void 0===n||null===(o=n.visitorData)||void 0===o?void 0:o.visitorId){e.next=6;break}return e.abrupt("return");case 6:return i=encodeURIComponent(this.productName),s=encodeURIComponent(a),e.prev=8,u="https://tracker-v4.gamedock.io/v1/events-tracker/track/product/".concat(i,"/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(i,"/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}(),LC=new PC;function MC(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 jC(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 jC(e,t)}(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,i=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw a}}}}function jC(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 UC,$C=function(e){var t=this,n=e.src,o=e.attributes,a=e.target,i=e.isAsync;return new Promise(function(e,s){var u=this;r(this,t);try{var c=document.createElement("script");if(c.async=null==i||i,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,o){var d,l=MC(o);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()}}a||(a=document.head),a.appendChild(c)}catch(e){var m="Error on script load catch, Error: ".concat(n);console.log(m,e),s(m)}}.bind(this))},BC="ffd4774b-99ae-4464-8f40-3afa12b4692e",NC=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,$C({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,$C({src:"https://cdn.cookielaw.org/consent/".concat(BC,"/OtAutoBlock.js"),attributes:[{key:"id",value:"gd-cookie-pro-autoblock"}],isAsync:!1});case 5:return e.next=7,$C({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:BC}],isAsync:!1});case 7:r=void 0,n=void 0,o=void 0,r=(t={inlineScript:"function OptanonWrapper() { }"}).inlineScript,n=t.target,(o=document.createElement("script")).text=r,n||(n=document.head),n.appendChild(o),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,o}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}(),FC=new dR.exports.EventEmitter,GC={"https://games.softgames.com":{"splash-hidden":"splash-hidden"},"https://sg.gamedistribution.com":{"splash-hidden":"splash-hidden"},"https://html5.gamedistribution.com":{key:"value"}},zC=!1;window.addEventListener("message",(function(e){var t=this,n=e.data,o=e.origin,a=n.type;if(Object.keys(GC).some(function(e){return r(this,t),e===o}.bind(this))&&(null==n||!n.__tcfapiCall)){var i=!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 o="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)&&(zC=!0),o&&zC&&(zC=!1,window.parent.postMessage({type:"sg-game-event",eventName:"levelFinish",data:{score:100}},"*"))}}(n);var s=function(){r(this,t);try{var n,o;return null==e||null===(n=e.source)||void 0===n||null===(o=n.location)||void 0===o?void 0:o.href}catch(e){}}.bind(this);if(window.parent&&i){if("https://html5.gamedistribution.com"===o){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(a){var p=GC[o][a];p&&FC.emit(p,n)}}}),!1);var HC=new Uint8Array(16);function ZC(){if(!UC&&!(UC="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 UC(HC)}var KC=/^(?:[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 qC=[],WC=0;WC<256;++WC)qC.push((WC+256).toString(16).substr(1));function VC(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(qC[e[t+0]]+qC[e[t+1]]+qC[e[t+2]]+qC[e[t+3]]+"-"+qC[e[t+4]]+qC[e[t+5]]+"-"+qC[e[t+6]]+qC[e[t+7]]+"-"+qC[e[t+8]]+qC[e[t+9]]+"-"+qC[e[t+10]]+qC[e[t+11]]+qC[e[t+12]]+qC[e[t+13]]+qC[e[t+14]]+qC[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&KC.test(e)}(r))throw TypeError("Stringified UUID is invalid");return r}function YC(e,t,r){var n=(e=e||{}).random||(e.rng||ZC)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return VC(n)}function JC(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 QC="__msgr",XC=YC(),eP=function(e){var t=this;if(!window[QC]){var n=document.createElement("iframe");if(n.src="https://static.gamedistribution.com/message/index.html",n.style.display="none",n.name=QC,document.body.appendChild(n),window!==window.top){var o={gameId:e.gameId,target:e.evnts.domain,token:XC,event_name:"TokenGenerated",timestamp:Date.now()};n.onload=function(){nP(o)},setInterval(function(){r(this,t),o.timestamp=Date.now(),o.event_name="Heartbeat",nP(o)}.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?JC(Object(r),!0).forEach((function(t){eu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):JC(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e.data);if(!n.event_name)return;n.token=XC,nP(n)}catch(e){console.error("GD Messager Error",e.message)}}.bind(this),!1)},tP=function(e){try{var t={gameId:e.game.gameId,target:e.game.evnts.domain,event_name:e.event,timestamp:Date.now()},r=rP(window);r!==window.top&&(null==r||r.postMessage(t,"https://html5.gamedistribution.com"))}catch(e){}},rP=function e(t){try{var r,n,o=null==t?void 0:t.parent;if("game"===(null===(r=o.document)||void 0===r||null===(n=r.activeElement)||void 0===n?void 0:n.id))return o;e(o)}catch(e){return t}},nP=function(e){try{window[QC]&&window[QC].postMessage(e,"*")}catch(e){console.log("GD Messager initialization, please wait....")}},oP=function(){function e(t){I(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,o,a;return L(e,[{key:"run",value:function(e){var n=e.duration,o=this;return new Promise(function(){var e=t(d.mark((function e(t,a){var i,s=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,o.add();case 3:i=o.show(),setTimeout(function(){r(this,s);try{o.hide(),t({success:i})}catch(e){a(e)}}.bind(this),1e3*n),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),a(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:(a=t(d.mark((function e(){var r,n,o,a=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),a.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)}}()),(o=document.createElement("iframe")).src=this.promo_data.renderer_url,o.setAttribute("frameborder",0),this.addStyles(),this.promo.classList.add("gd__promo"),o.classList.add("gd__promo__iframe"),this.promo.appendChild(o),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 a.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:(o=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 o.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 aP(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 iP(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?aP(Object(r),!0).forEach((function(t){eu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aP(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function sP(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 uP(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 uP(e,t)}(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,i=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw a}}}}function uP(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 cP,dP=function(){function e(t){var n=this;I(this,e),eu(this,"_getAdTypeByAfgPosition",function(e){var t=this;r(this,n);var o={preroll:["preroll","start"],midroll:["next"],rewarded:["reward"]},a=Object.keys(o).find(function(n){var a=this;return r(this,t),o[n].some(function(t){return r(this,a),t===e.params.position}.bind(this))}.bind(this));return a||"midroll"}.bind(this)),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._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 Rt}var n,o;return L(e,[{key:"runAdFlow",value:(o=t(d.mark((function e(t){var n,o,a,i,s,u,c,l,f,p,h,m,v,g,b,_,y,w,A,x,k,E,S,R,D,T,O,I,C,P,L,M,j,U,$,B,N,F,G,z,H,Z,K,q,W,V,Y=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.adRequest=t,c=this._getAdTypeByAfgPosition(t),t.params.adTypeFound=c,t.params.position,l=this._getAdFlow(c),f=this._gameData,p=f.afg_disabled,h=null===(n=t.params)||void 0===n?void 0:n.isGift,null===(o=t.params)||void 0===o||o.position,m=null===(a=f.promo)||void 0===a?void 0:a.rainbow,v=(null==m?void 0:m.enabled)&&(null===(i=m.position)||void 0===i?void 0:i[c]),g=null==m?void 0:m.gift,b=v&&null!=m&&m.duration?null==m?void 0:m.duration:5,_=p?l.filter(function(e){return r(this,Y),"adsense"!==e}.bind(this)):l,y=this.get_ad_system_init_result(),w=y.afg,A=y.ima,x=null==f||null===(s=f.ad_blcks)||void 0===s||null===(u=s.removeOtherAdaptors)||void 0===u?void 0:u.enabled,this.anyAdBlocking=!w||!A,this.bothAdBlocking=!w&&!A,this.adsBlocked=x&&this.anyAdBlocking||this.bothAdBlocking,this.adsBlocked?(Js("gd-adflow adsBlocked so changing the flow"),_=[]):(w||(_=_.filter(function(e){return r(this,Y),"adsense"!==e}.bind(this))),A||(_=_.filter(function(e){return r(this,Y),"ima"!==e}.bind(this)))),k=!1,E=!1,S=[],R=0,D=!1,O=sP(_),e.prev=30,O.s();case 32:if((I=O.n()).done){e.next=68;break}return C=I.value,t.params.adapter=C,P=R===_.length-1,L=h&&g||!h,M=P&&v&&L,t.params=iP(iP({},t.params),{},{adapterIndex:R,isLastAdapter:P,shouldFail:!1,extraPromoRunOnFail:M}),function(){r(this,Y),Xs.firstSuccessOrder&&!isNaN(Xs.firstSuccessOrder)&&(t.params.shouldFail=R<Xs.firstSuccessOrder)}.bind(this),Js("gd-adflow, before adInvoke",R,C,t.params.shouldFail),e.next=43,this.adInvoke(t);case 43:if(j=e.sent,U=j.success,$=j.args,B=j.isSkipped,N=j.noVast,F=j.t4r,!U){e.next=57;break}return Js("gd-adflow, adapter-result-success",R,C,$,F),k=!0,E=!(null==$||!$.isPromoSuccess),T=F,e.abrupt("break",68);case 57:if(Js("gd-adflow, adapter-result-failure",R,C,$.message),R++,S.push($.message),!B){e.next=62;break}return e.abrupt("break",68);case 62:if(!N){e.next=65;break}return this._runAutoResume(),e.abrupt("break",68);case 65:D=M;case 66:e.next=32;break;case 68:e.next=73;break;case 70:e.prev=70,e.t0=e.catch(30),O.e(e.t0);case 73:return e.prev=73,O.f(),e.finish(73);case 76:if(!D){e.next=82;break}return e.next=79,new oP(this).run({duration:b});case 79:e.sent.success&&(E=!0);case 82:return function(){var e;r(this,Y),Xs.disableGift&&null!==(e=f.gft)&&void 0!==e&&e[c].enabled&&(f.gft[c].enabled=!1)}.bind(this),G=S.join(" /n"),k?(this._setAdRequestTimer(),this._onResumeGame("Advertisement(s) are done. Start / resume the game.","success"),this._giveGift(c)):(this._onResumeGame(G,"warning"),this._giveGift(c)),z="-1",H="none",k?(z="index_".concat(R),H=_[R]):E&&(z="promo",H="promo"),Z=this.get_session_id(),this.anyAdBlocking&&"-1"===z?(K="rewarded"===c?"rewarded":this.blockedAdsMap.preroll?"midroll":"preroll",this.blockedAdsMap[K]=this.blockedAdsMap[K]?this.blockedAdsMap[K]+1:1,JSON.stringify(this.blockedAdsMap),this._msgrt.send("adflow.blocked.pos",{message:"".concat(K)}),this.send_atom_event("gd.adflow",{adBlocker:!0,afgBlocked:!w,imaBlocked:!A,adType:K,sessionId:Z,successAdapter:"none",adFlowIndex:z})):(eu(q={},"adflow.all.index",{message:"".concat(z)}),eu(q,"adflow.all.success_adapter",{message:"".concat(H)}),eu(q,"adflow.".concat(c,".index"),{message:"".concat(z)}),eu(q,"adflow.".concat(c,".success_adapter"),{message:"".concat(H)}),W=q,Object.keys(W).forEach(function(e){r(this,Y);var t=W[e];this._msgrt.send(e,t)}.bind(this)),this.send_atom_event("gd.adflow",{adFlowIndex:z,successAdapter:H,adBlocker:!1,afgBlocked:!w,imaBlocked:!A,adType:c,sessionId:Z,t4r:T})),V={adType:c},this.eventBus.broadcast("AD_FLOW_COMPLETE",V),e.abrupt("return",V);case 95:case"end":return e.stop()}}),e,this,[[30,70,73,76]])}))),function(e){return o.apply(this,arguments)})},{key:"adInvoke",value:(n=t(d.mark((function e(n){var o=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,a){var i,s,u,c,l=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i="main.showad.".concat(n.params.adapter,".").concat(n.params.adapterIndex),s={},u=function(e){r(this,l),o._eventBus.unsubscribeScope(i);var n="dismissed"===(null==e?void 0:e.message);t({success:!1,args:e,isSkipped:n,noVast:e.noVast})}.bind(this),c=function(e){r(this,l),o._eventBus.unsubscribeScope(i),t({success:!0,args:e,t4r:s})}.bind(this),o._eventBus.subscribe("AD_ERROR",u,i),o._eventBus.subscribe("AD_SDK_CANCELED",u,i),o._eventBus.subscribe("AD_SUCCESS",c,i),o._eventBus.subscribe("AD_T4R",function(){r(this,l),s.loaded=!0}.bind(this),i),o._eventBus.subscribe("AD_T4R_CLICK",function(){r(this,l),s.t4rClick=!0}.bind(this),i),o._eventBus.subscribe("AD_T4R_VIDEO",function(){r(this,l),s.t4rVideo=!0}.bind(this),i),o._eventBus.subscribe("AD_CLICK",function(){r(this,l),s.click=!0}.bind(this),i),o._eventBus.subscribe("AD_BIDDER",function(e){r(this,l),s.bidder=null==e?void 0:e.bidder}.bind(this),i),o._eventBus.subscribe("AD_T4R_NONE",function(e){r(this,l),s.fail_reason=null==e?void 0:e.reason}.bind(this),i),e.prev=13,e.next=16,o._adInstance.startAd(n);case 16:e.next=22;break;case 18:e.prev=18,e.t0=e.catch(13),Qs("gd-adflow startAd error",e.t0),t({success:!1,err:e.t0});case 22:case"end":return e.stop()}}),e,this,[[13,18]])})));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,o,a,i,s,u,c,d=this,l=void function(){if(r(this,d),Xs.customAdFlow)return JSON.parse(Xs.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===(o=f)||void 0===o||null===(a=o.adapters)||void 0===a?void 0:a.default:["ima","adsense"];return p=null!==(i=f)&&void 0!==i&&null!==(s=i.adapters)&&void 0!==s&&s[e]?null===(u=f)||void 0===u||null===(c=u.adapters)||void 0===c?void 0:c[e]:p}}]),e}(),lP=new dR.exports.EventEmitter,fP=["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,o=e.origin,a=e.source;if(fP.some(function(e){return r(this,t),e===o}.bind(this))&&(null==n||!n.__tcfapiCall)){var i=n.system;n.action;var s="aeriaExternalHostsConnector"===i;if("Softgames"===i)cP=a,(window.parent||window).postMessage(n,"*"),lP.emit("aeria-event",n);else if(s){cP&&cP.postMessage(n,"*");var u=window.parent||window;u&&u.postMessage(n,"*")}}}),!1);var pP="https://html5.gamedistribution.com",hP="parent-data-request",mP="parent-data-response",vP=function(){function e(){I(this,e)}var n;return L(e,[{key:"init",value:function(e){var t=this;this._registerForDataRequests(e),this._askForParentFrameData().then(function(n){if(r(this,t),n){var o=n.adRequestTimer;e.adRequestTimer=o,e.adRequestTimer}}.bind(this))}},{key:"_registerForDataRequests",value:function(e){var t=this;window.addEventListener("message",function(n){r(this,t);var o=n.data,a=n.origin,i=n.source,s=o.type;if(o.value,a===pP&&s===hP){var u={adRequestTimer:e.adRequestTimer};i.postMessage({type:mP,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 o=this;r(this,t);var a=!1;window.addEventListener("message",(function(t){var r=t.data,n=t.origin;t.source;var o=r.type,i=r.value;n===pP&&o===mP&&(e(i),a=!0)})),setTimeout(function(){r(this,o),a||e()}.bind(this),1e3);var i={type:hP};window.parent.postMessage(i,"*")}.bind(this)));case 1:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})}]),e}(),gP=new vP,bP={SDKExistsOnUpperFrame:!1},_P=function(){function e(){I(this,e),this.adContainer=window.document.body}return L(e,[{key:"show",value:function(){this.adBlockerOverlay.style.display="block",this.adBlockerButton.style.display="block"}},{key:"hide",value:function(){this.adBlockerOverlay.style.display="none"}},{key:"add",value:function(){var e=this;try{this.addStyles();var t=document.createElement("div");t.id="gd__adblocker__button",t.setAttribute("title","AdBlocker"),t.classList.add("gd__adblocker__button"),t.onclick=function(){r(this,e),this.hide(),window.location.reload()}.bind(this);var n=document.createElement("p");n.innerText="Continue",t.appendChild(n),this.adBlockerButton=t;var o=document.createElement("div");o.id="gd__adblocker__logo",o.setAttribute("title","AdBlocker"),o.classList.add("gd__adblocker__logo"),this.adBlockerLogo=o;var a=document.createElement("p");a.id="gd__adblocker__text",a.classList.add("gd__adblocker__text1"),a.innerText="Thanks for playing!",this.adBlockerText1=a;var i=document.createElement("p");i.id="gd__adblocker__text",i.classList.add("gd__adblocker__text1"),i.innerText="It seems you’re using a plugin to block advertising within this game.To ensure the game works properly and to support our game creators, we kindly ask that you disable your ad blocker.",this.adBlockerText2=i;var s=document.createElement("p");s.id="gd__adblocker__text",s.classList.add("gd__adblocker__text1"),s.innerText="Thank you!",this.adBlockerText3=s;var u=document.createElement("div");u.id="gd__adblocker__container",u.classList.add("gd__adblocker__container"),u.appendChild(this.adBlockerText1),u.appendChild(this.adBlockerText2),u.appendChild(this.adBlockerText3),u.appendChild(this.adBlockerButton),this.adBlockerContainer=u;var c=document.createElement("div");c.id="gd__adblocker__overlay",c.classList.add("gd__adblocker__overlay"),c.appendChild(this.adBlockerContainer),this.adBlockerOverlay=c,this.adContainer.appendChild(this.adBlockerOverlay)}catch(e){console.log("AdBlocker error",e)}}},{key:"addStyles",value:function(){var e=document.body||document.getElementsByTagName("body")[0];this.addStylesheet("gd__adblocker__style",e,"\n .gd__adblocker__button {\n text-align: center;\n width: 90%;\n height: 50px;\n position: absolute;\n display: none;\n z-index: 2000;\n cursor: pointer;\n bottom: calc(10% - 20px); /* Container'ın altından 20px yukarıda */\n left: 5%; /* Container'ın solundan %5 içeride */\n right: 5%; /* Container'ın sağından %5 içeride */\n font-size: large;\n font-family: monospace;\n background-color: #ff8c1c;\n border-radius: 50px;\n color: white;\n margin: 0 auto;\n }\n\n .gd__adblocker__button > p {\n position: relative;\n text-align: center;\n margin: 0 auto;\n height: 100%;\n top: 30%;\n color: white;\n }\n\n .gd__adblocker__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(20% - 50px);\n left: calc(50% - 50px);\n margin: 0;\n border-radius: 50%;\n }\n\n .gd__adblocker__container {\n position: absolute;\n z-index: 2000;\n cursor: pointer;\n border-radius: 20px;\n border: 5px solid #06b8a2;\n margin: 0 auto;\n top: 10%;\n left: 10%;\n right: 10%;\n bottom: 10%;\n max-width: 80%; \n max-height: 80%; \n width: auto; \n height: auto; \n }\n \n .gd__adblocker__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,1);\n z-index: 1999;\n cursor: pointer;\n }\n\n .gd__adblocker__text1 {\n text-align: center;\n top: 25%;\n position: relative;\n font-family: monospace;\n color: white;\n margin: 10px;\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 yP(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 wP(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?yP(Object(r),!0).forEach((function(t){eu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):yP(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var AP=YC(),xP=null,kP=null,EP=function(){function e(t){var n,o,a,i,s=this;if(I(this,e),xP)return xP;xP=this,this.blockedAdsMap={},this._defaults=this._getDefaultOptions(),this._extendDefaultOptions(this._defaults,t),this._version=t.version||"0.0.0",this._bridge=this._getBridgeContext(),this._location=new iR,this._location.print();var u=this._location.get(),c=(null==u||null===(n=u.top)||void 0===n||null===(o=n.domain)||void 0===o?void 0:o.value)||(null==u||null===(a=u.partner.domain)||void 0===a?void 0:a.value),d=null==u||null===(i=u.partner.url)||void 0===i?void 0:i.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,this._topDomain,this._parentURL,this._isFullScreen=!1,this._giftCount={preroll:0,midroll:0,rewarded:0},this._mplus_count=0,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,o,a=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._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!==(o=this._gameData.evnts)&&void 0!==o&&o.enabled&&this._isLoaderGameURL()&&(eP(this._gameData),this._gameData.evnts.gameId===this.options.gameId&&setInterval(function(){r(this,a),this._send_gametag_data("heartbeat")}.bind(this),1e3*this._gameData.evnts.heartbeatDuration)),gP.init(this),this._send_gametag_data("sdk_init"),this._executeMidrollPlus()}.bind(this)),this._registerSGBridge(),this._whichFrame(),this._loadLocus()}var n,o,a,i,s,u,c,f,p,h,m,v,g;return L(e,[{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:(g=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 g.apply(this,arguments)})},{key:"_loadCMP",value:(v=t(d.mark((function e(){var t,r,n,o,a,i;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._isMasterGameURL()){e.next=12;break}if(n=new iR,0!==(null==(o=n.get("depth"))?void 0:o.value)||null===(t=this._gameData)||void 0===t||null===(r=t.cmp)||void 0===r||!r.enabled){e.next=12;break}if(null===(a=this._gameData)||void 0===a||null===(i=a.cmp)||void 0===i||!i.checkDepthOnly){e.next=9;break}return e.next=7,NC();case 7:e.next=12;break;case 9:if("html5.gamedistribution.com"!==this._topDomain){e.next=12;break}return e.next=12,NC();case 12:case"end":return e.stop()}}),e,this)}))),function(){return v.apply(this,arguments)})},{key:"testConsent",value:function(){try{IC();t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,CC({});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;FC.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());O(location.href,!0);if(this._whichFrame(),this._isMasterGameURL(),this._isExtHostedGameURL(),this._isTokenGameURL(),this._isHostHTML5Domain(),this._isExternalHoster(),location.href,document.referrer,t)try{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._bridge.isCoreSDKMode&&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:(m=t(d.mark((function e(t,n){var o,a,i,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:this._bridge.isCoreSDKMode=(null===(o=this._gameData.disableAds)||void 0===o?void 0:o.default)||!1,this._safeInit(),this._checkGameId(),this._checkGameDeleted(),this._checkBlocking(),this._changeMidrollInDebugMode(),void 0!==this._gameData.diagnostic&&void 0!==(null===(a=this._gameData.diagnostic)||void 0===a?void 0:a.close_ads)&&!1!==(null===(i=this._gameData.diagnostic)||void 0===i?void 0:i.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"}))}.bind(this)).catch(function(e){r(this,s);var t="".concat(e).startsWith("Error: Blocked:");Js("gd-adflow adsBlocked",t,e);var n=this.get_ad_system_init_result(),o=n.ima,a=n.afg;if(this.adsBlocked=!o&&!a,this._isMasterGameURL()||this._isExtHostedGameURL()){this.msgrt.send("adblocker.flw",{message:"".concat(this.adsBlocked?"blocked":"ok")});var i=o||a?o?a?"none":"adsense":"ima":"all";this.msgrt.send("adblocker.adapters",{message:"".concat(i)})}this._checkAdBlocker(),console.error(e.message||e)}.bind(this))),t(this._gameData),e.next=21;break;case 16:e.prev=16,e.t0=e.catch(0),this._sendSDKError(e.t0),this.onResumeGame(e.t0.message,"warning"),n(e.t0);case 21:case"end":return e.stop()}}),e,this,[[0,16]])}))),function(e,t){return m.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:"_checkAdBlocker",value:function(){var e=this;try{var t,n=this.get_ad_system_init_result(),o=n.ima,a=n.afg;if(!o||!a)if(this._gameData.rmblck.enabled=!0,null!==(t=this._gameData.rmblck)&&void 0!==t&&t.enabled){var i=gt.getBoolean("infdl1JMwI9JRg3U2MAIiQ==");this.adBlockerPage||(this.adBlockerPage=new _P,this.adBlockerPage.add()),i?setTimeout(function(){r(this,e),this.adBlockerPage.show()}.bind(this),500):setTimeout(function(){r(this,e),gt.set("infdl1JMwI9JRg3U2MAIiQ==",!0),this.adBlockerPage.show()}.bind(this),18e4)}}catch(e){}}},{key:"_extendDefaultOptions",value:function(e,t){var r=j(e);this.options=t?ot(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:"_sendTunnlEvent",value:function(e){var t=this;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://ana.headerlift.com/event?".concat(l.stringify(n))).catch(function(o){r(this,t),this._sendHLAnalyicsLog({query:wP(wP({},n),{},{error:null==o?void 0:o.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,n=this,o=e.query,a=e.eventType,i=this._gameData.dbglg;if(i&&i.enabled&&i.topics&&(1===a?t="hl.gameplay":2===a?t="hl.gameload":-1===a?t="hl.gameplay.error":-2===a&&(t="hl.gameload.error"),t)){if(!i.topics.some(function(e){return r(this,n),e===t}.bind(this)))return;this.adInstance._send_atom_event(t,o)}}},{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?(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 Tt({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),kP=this._initGamedockTracker(window.GamedockSDK),this._sendGamedockEvent("pageview"),null!==(t=this._gameData.diagnostic)&&void 0!==t&&null!==(n=t.gameDock)&&void 0!==n&&n.adViewEvent&&kP.tracking.enableHeartBeatForPage({pageId:this.options.gameId,pageType:"game"},this._gameData.diagnostic.gameDock.heartbeatConfig),LC.track(kP,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=kP)||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,HR();case 2:if(e.sent){e.next=6;break}return console.log("locus-disabled"),e.abrupt("return");case 6:ft((t=["https://pm.azerioncircle.com/p/locus"])[0],"locus",{alternates:t}).catch(function(e){r(this,n),this._sendSDKError(e)}.bind(this)).then(function(){r(this,n)}.bind(this));case 8:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_loadGoogleAnalytics",value:function(){var e=this,t=["https://www.google-analytics.com/analytics.js"];ft(t[0],"gdsdk_google_analytics",{alternates:t,error_prefix:"Blocked:",exists:function(){return r(this,e),window.ga}.bind(this)}).then(function(){r(this,e),window.ga("create","UA-60359297-49",{name:"gd",cookieExpires:7776e3,sampleRate:5},"auto"),this._bridge.noGAPageView||window.ga("gd.send","pageview"),this._userDeclinedTracking||window.ga("gd.set","anonymizeIp",!0)}.bind(this)).catch(function(t){r(this,e),this._sendSDKError(t)}.bind(this))}},{key:"_subscribeToEvents",value:function(){var e=this;this.eventBus=new Rt,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),"sdk")}.bind(this)),At.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,o=t.gameApiDomain;if(n){fetch("https://".concat(o,"/game/v2/hasapi/").concat(this.options.gameId,"?timestamp=").concat((new Date).valueOf()));try{var a=JSON.stringify({type:"GD_SDK_IMPLEMENTED",gameID:this.options.gameId});window.location!==window.top.location?window.top.postMessage(a,"*"):null!==window.opener&&window.opener.location!==window.location&&window.opener.postMessage(a,"*")}catch(e){}}lC()}.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,o;r(this,e),this.msgrt.send("ad.impression"),uC(),null!==(n=this._gameData.diagnostic)&&void 0!==n&&null!==(o=n.gameDock)&&void 0!==o&&o.adViewEvent&&LC.track(kP,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:")){if(!this._bridge.noBlockerEvent&&(this.msgrt.send("error",{message:t.message}),!this._hasBlocker)){this._hasBlocker=!0;var n=Math.random()<.25;this.msgrt.send("adblck.src",{message:t.message}),n&&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=DR().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:(h=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=void 0===this._gameData.dmain||this._gameData.dmain,console.log("zxcv exclude, isAllowedDomain",n,t),t=t||n,(r.bloc_gard&&!0===r.bloc_gard.enabled||!t)&&this._redirectToBlocking();case 8:case"end":return e.stop()}}),e,this)}))),function(){return h.apply(this,arguments)})},{key:"_blockDirectTokenURLEmbedding",value:function(){var e,t,r=this._checkTokenGameUrl(),n=new iR,o="html5.gamedistribution.com"!==O(document.referrer).host,a=r&&!bP.SDKExistsOnUpperFrame&&n.get("depth.value")>0&&o;if(a&&(null===(e=this._gameData)||void 0===e||null===(t=e.directTokenUse)||void 0===t?void 0:t.enabled)){var i,s,u=null===(i=this._gameData)||void 0===i||null===(s=i.directTokenUse)||void 0===s?void 0:s.behavior;"to-loader"===u?this._redirectToLoaderFrame():"to-blocked-page"===u&&this._redirectToBlocking(!0)}return{blocked:a}}},{key:"_redirectToBlocking",value:function(e){var r=this;this.msgrt.send("blocked");var n=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:n.gameId,img:r._get_game_thumbnail_url(),title:n.title}));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,o,a,i;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=O(location.href,!0),o=wP(wP({},n.query),{},{rd:"1"}),a=l.stringify(o),i="https://html5.gamedistribution.com/".concat(r.gameId,"/?").concat(a),window.location.href=i;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;bC().disableMidrolltimer?e.midroll=0:gt.available&>.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 o,a=this._gameData,i=a.gdpr&&!0===a.gdpr.consent,s=a.loader,u=null===(t=a.promo)||void 0===t?void 0:t[null===(r=a.promo)||void 0===r||null===(n=r.template)||void 0===n?void 0:n.preroll];(a.preroll||(this.adRequestTimer=Date.now()),this.options.loader.enabled)?null!=u&&u.enabled?this._createPromoBeforeSplash(a,i):s.enabled&&!0!==(null===(o=s.splash)||void 0===o?void 0:o.skip)?this._createSplash(a,i):this.onResumeGame("Skipped splash.","success"):s.enabled||this._bridge.isTokenGameURL&&this._bridge.isExtHostedGameURL||(this.options.advertisementSettings.autoplay||i?null!=u&&u.enabled?this._createPromoBeforeSplash(a,i):!1!==s.enabled&&this._createSplash(a,i):null!=u&&u.enabled&&this._createPromo(a,i))}},{key:"_initializeVideoAd",value:(p=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=ot(this.options.advertisementSettings,t.sdk)),this.macros=new Dt({game:t,bridge:this._bridge}),this.adInstance=new kC(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 p.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:"_onEvent",value:function(e){yt(e.name,e.message,e.status);try{this.options.onEvent({name:e.name,message:e.message,status:e.status,skipForward:e.skipForward,adPosition:e.adPosition})}catch(e){yt("DEVELOPER_ERROR",e.message,"warning")}}},{key:"_getGameData",value:(f=t(d.mark((function e(){var t;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,BR();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 f.apply(this,arguments)})},{key:"_createSplash",value:(c=t(d.mark((function e(t,n){var o,a,i,s,u=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._getSplashTemplate(t);case 2:return o=e.sent,a=new o(wP(wP({},this.options),{},{isConsentDomain:n,version:Ws.version}),t,this._parentDomain),e.next=6,KR();case 6:i=e.sent,s=i.enabled,a.on("playClick",function(){var e,t,o=this;if(r(this,u),n){var i=new Date;i.setDate(i.getDate()+90),document.cookie="ogdpr_tracking=1; expires=".concat(i.toUTCString(),"; path=/")}if(this._hideCMPButton(),s)window.gdsdk.showAd(nt.Interstitial,{position:"preroll"}).catch(function(e){r(this,o),a.hide()}.bind(this));else{var c={position:"preroll"};(function(){r(this,o),Xs.firstAdapterModeAdsense&&(console.log("promo-test, set first adapter to adssense 1"),c.adapter="adsense")}).bind(this),this.showAd(nt.Interstitial,c).catch(function(e){r(this,o)}.bind(this))}null!==(e=this._gameData)&&void 0!==e&&null!==(t=e.evnts)&&void 0!==t&&t.enabled&&(tP({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,u),a.hide()}.bind(this)),this.eventBus.subscribe("SDK_GAME_START",function(){r(this,u),a.hide()}.bind(this));case 12:case"end":return e.stop()}}),e,this)}))),function(e,t){return c.apply(this,arguments)})},{key:"_createPromoBeforeSplash",value:(u=t(d.mark((function e(t,n){var o,a,i,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:i=e.sent,(s=new i(wP(wP({},this.options),{},{isConsentDomain:n,version:Ws.version,template:null===(o=t.promo)||void 0===o||null===(a=o.template)||void 0===a?void 0:a.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 u.apply(this,arguments)})},{key:"_createPromo",value:(s=t(d.mark((function e(t,n){var o,a,i,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:i=e.sent,(s=new i(wP(wP({},this.options),{},{isConsentDomain:n,version:Ws.version,template:null===(o=t.promo)||void 0===o||null===(a=o.template)||void 0===a?void 0:a.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 s.apply(this,arguments)})},{key:"showBanner",value:function(){var e=this;this.showAd(nt.Interstitial).catch(function(){r(this,e)}.bind(this))}},{key:"showAd",value:(i=t(d.mark((function e(r){var n,o=this,a=arguments;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},e.abrupt("return",new Promise(function(){var e=t(d.mark((function e(t,a){var i,s,u,c;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!o._autoResumeIfAdsAreDisabled(r||"interstitial")){e.next=5;break}return e.abrupt("return",t());case 5:return s={adType:r||"interstitial",params:n,adTimestamp:o.adRequestTimer},e.next=9,o.sdkReady;case 9:return u=e.sent,e.next=12,o.videoAdReady;case 12:if(null!==(i=o._gameData.lp)&&void 0!==i&&i.load||o._sendLoadedEvent(1),o._sendGamedockGamePlay(),o._rejectAdIfGameBlocked({gameData:u,adRequest:s}),o._rejectAdIfAdDisabled({gameData:u,adRequest:s}),o._rejectAdIfUnsupportedType({adRequest:s}),"rewarded"===r&&o._setGameRewardedFlag(),null!=n&&n.isGift||o._rejectAdIfAdRateHits({gameData:u,adRequest:s}),o.adInstance.attachAfgPosition(s),!o.adFlowRunning){e.next=22;break}return e.abrupt("return",t());case 22:return o.adFlowRunning=!0,c=new dP(o),e.next=26,c.runAdFlow(s);case 26:o.adFlowRunning=!1,t(),o._post_message({topic:"adrequest.instream"}),e.next=36;break;case 31:e.prev=31,e.t0=e.catch(0),o.adFlowRunning=!1,o.onResumeGame(e.t0.message,"warning"),a(e.t0.message);case 36:case"end":return e.stop()}}),e,null,[[0,31]])})));return function(t,r){return e.apply(this,arguments)}}()));case 2:case"end":return e.stop()}}),e)}))),function(e){return i.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,o=this._gameData.disableAds[e],a=n||o;return this._gameData.diagnostic,this._gameData.disableAds,a&&(this._runAutoResume(),r=!0),r}},{key:"_runAutoResume",value:function(){var e="CONTENT_PAUSE_REQUESTED",t="CONTENT_RESUME_REQUESTED";this.eventBus.broadcast(e,{name:e,message:"Auto pause when ads are disabled"}),this.eventBus.broadcast(t,{name:t,message:"Auto resume when ads are disabled"}),this.onResumeGame("Advertisement(s) are cancelled. Start / resume the game.","success")}},{key:"_giveGift",value:function(e){var t,r,n,o,a,i,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===(o=n.gft)||void 0===o||null===(a=o[e].durations[this._giftCount[e]])||void 0===a?void 0:a.after)===this.adInstance.adPrerollCount&&this.decideToGiveAGift(e);break;case"midroll":null!==(i=this._gameData)&&void 0!==i&&null!==(s=i.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=e.adRequest;if(t.disableAds[r.adType]||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,o,a,i,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===(o=n.useMidrollIndex)||void 0===o?void 0:o.indexes.length)-1||(c=6e4*(null===(a=s.diagnostic)||void 0===a||null===(i=a.useMidrollIndex)||void 0===i?void 0:i.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,o){var a,i;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 a=e.sent,e.next=6,n.videoAdReady;case 6:if(!a.bloc_gard||!0!==a.bloc_gard.enabled){e.next=8;break}throw new Error("Game or domain is blocked.");case 8:if(!a.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:return e.next=18,n.adInstance.preloadAd(r);case 18:i=e.sent,t(i),e.next=25;break;case 22:e.prev=22,e.t0=e.catch(0),o(e.t0);case 25:case"end":return e.stop()}}),e,null,[[0,22]])})));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,o){var a;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 a=t.sent,t.next=6,r.videoAdReady;case 6:if(!a.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:o("Display-Ads are disabled.");case 14:t.next=19;break;case 16:t.prev=16,t.t0=t.catch(0),o(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;this._allowExternals({enabled:!1});try{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(),null===(r=this._gameData.evnts)||void 0===r||!r.enabled||this._isMasterGameURL()&&!this._isExtHostedGameURL()||(tP({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()||(tP({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 It(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 o=new ActiveXObject("WScript.Shell");null!==o&&o.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,o=this,a=new O(e),i=a.host;return a.href,n=((null===(t=this._gameData.urlBlockExc)||void 0===t?void 0:t.hosts)||[]).some(function(e){return r(this,o),e===i}.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 o=!!(e.innerText.toLowerCase().includes("start")||e.innerText.toLowerCase().includes("play")||e.innerText.toLowerCase().includes("continue")),a=e.getAttribute("href");if(!this._shouldAllowExternalUrl(a)){var i=e.getAttribute("href");e.removeAttribute("href"),o||(e.onclick=function(e){return r(this,n),e.preventDefault(),this.msgrt.send("external",{message:"H> ".concat(i)}),!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 o=decodeURIComponent((e||r)&&n.parentURL?n.parentURL:it()),a=decodeURIComponent((e||r)&&n.parentDomain?n.parentDomain:at()),i=decodeURIComponent((e||r)&&n.topDomain?n.topDomain:r&&0===pt()?a: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:o,parentDomain:a,topDomain:i&&i.length?i:a,noGAPageView:d,noLotamePageView:l,noGamedockSDK:f,noMinijuegosSDK:p,version:n.version,pauseGameOnStartup:m,depth:pt(),domainMatched:a===i,exports:{formatTokenURLSearch:this._formatTokenURLSearch.bind(this),extendUrlQuery:this._extendUrlQuery.bind(this),base64Encode:this._base64_encode.bind(this)}}}},{key:"_isHostHTML5Domain",value:function(){var e=new O(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=O(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=O(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 O(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 O(document.referrer,!0);if(!n.query.gd_zone_config)return;e=n.query.gd_zone_config}else{var o=new O(location.href,!0);if(!o.query.gd_zone_config)return;e=o.query.gd_zone_config}return JSON.parse(rt.decode(decodeURIComponent(e)))}catch(e){}}},{key:"_getSplashTemplate",value:function(e){var t=e.splash;return new SC(t).splash()}},{key:"_createPrerollPromoTemplate",value:(n=t(d.mark((function e(t){var r,n,o,a,i;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return a=null===(r=t.promo)||void 0===r?void 0:r[null===(n=t.promo)||void 0===n||null===(o=n.template)||void 0===o?void 0:o.preroll],i=new EC(a),e.abrupt("return",i.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(rt.encode(JSON.stringify(e)))}catch(e){}try{var r=new O(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 O(e,!0);return r.query=wP(wP({},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 o;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:o=e._gameData,r({ads:{display:{enabled:o.dAds.enabled},rewarded:{enabled:o.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)kP.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,o=null!==(t=location.ancestorOrigins)&&void 0!==t&&t.length?location.ancestorOrigins[location.ancestorOrigins.length-1]:"*";try{var a=window.top||window.parent;a&&a.postMessage({source:"gdsdk",topic:r,data:n},o)}catch(e){console.error((null==e?void 0:e.message)||e)}}},{key:"decideToGiveAGift",value:function(e){var n=this;try{var o,a=null===(o=this._gameData)||void 0===o?void 0:o.gft[e],i=setInterval(t(d.mark((function t(){var o=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n.adInstance.requestRunning||n.adFlowRunning?console.log("Advertisement already running..."):(n.showAd(nt.Interstitial,{position:e,isGift:!0}).catch(function(e){r(this,o)}.bind(this)),clearInterval(i),n._giftCount[e]++);case 1:case"end":return t.stop()}}),t,this)}))),1e3*a.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 AP}},{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(null!==(e=this._gameData.midroll_plus)&&void 0!==e&&e.enabled&&this.adInstance.adMidrollCount<=0){var n,o=this._gameData.midroll_plus.type||"midroll";if(null!==(n=this._gameData.midroll_plus)&&void 0!==n&&n.interval)var a=setInterval(function(){var e,n,i=this;(r(this,t),this.adFlowRunning)||(this.showAd(nt.Interstitial,{position:"midroll",giftType:o}).catch(function(e){r(this,i)}.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(a))}.bind(this),6e4*this._gameData.midroll_plus.timer);else setTimeout(function(){var e=this;r(this,t),this.showAd(nt.Interstitial,{position:"midroll",giftType:o}).catch(function(t){r(this,e)}.bind(this))}.bind(this),this._gameData.midroll)}}}]),e}();function SP(){return SP=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,HR();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)}))),SP.apply(this,arguments)}var RP=new dR.exports.EventEmitter,DP=function(e){var t=this;!function(){SP.apply(this,arguments)}();var n,o=function(e){var n=this;return r(this,t),new Promise(function(t,o){var a=this;r(this,n);var i=function(e){r(this,a),"SDK_GAME_START"===e.name&&(RP.off("sdk-event",i),t())}.bind(this);RP.on("sdk-event",i),m("showAd",{adType:e})}.bind(this))}.bind(this),a=function(){return r(this,t),n||(n=new EP(e)),n}.bind(this),i=function(e){return r(this,t),o(e)}.bind(this),s=function(e){return r(this,t),"gdsdk://preloaded"}.bind(this),u=function(e){return r(this,t),a().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 o=this;return r(this,t),n||(n={}),new Promise(function(t,a){r(this,o);try{var i={type:"gd-sdk",method:e,options:n};window.parent.postMessage(i,"*"),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&&b(n)}),!1)}.bind(this),g=function(){r(this,t),v(),m("init")}.bind(this),b=function(n){r(this,t);try{RP.emit("sdk-event",n),e.onEvent&&e.onEvent(n)}catch(e){console.log("DEVELOPER ERROR on forwarder-sdk")}}.bind(this);return{showBanner:l,showAd:i,preloadAd:s,showDisplayAd:u,cancelAd:c,openConsole:d,getSession:f,onEvent:b,init:g,_sendSDKReady:h,sendGenericEvent:p}},TP=function(e){var t=DP(e);return t.init(),t},OP=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),o=function(){r(this,e);return/^http[s]?:\/\/.*?gd_sdk_referrer_url=.*$/i.test(location.href)}.bind(this),a=function(){r(this,e);var o="html5.gamedistribution.com"!==O(window.location.href).host;return t()&&!(n()||o)?"loader-frame":"game-frame"}.bind(this);return{isMasterGameURL:t,isTokenGameURL:n,isExtHostedGameURL:o,whichFrame:a}},IP="gd-sdk-frame-handshake-request",CP="gd-sdk-frame-handshake-response",PP=function(e){var t=this;return new Promise(function(e,n){var o=this;r(this,t);var a={type:IP},i=!1;window.addEventListener("message",(function(t){var r=t.data,n=t.origin,o=t.source,a=r.type;if(a===IP){var s={type:CP};o.postMessage(s,n)}else a===CP&&(i=!0,e({origin:n,source:o}))})),setTimeout(function(){r(this,o),i||e()}.bind(this),200),window.parent!==window?window.parent.postMessage(a,"*"):e()}.bind(this))},LP=function(){var e=t(d.mark((function e(){var t,r,n,o,a,i,s;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,zR();case 2:return t=e.sent,e.next=6,PP();case 6:if(r=e.sent,bP.SDKExistsOnUpperFrame=!!r,t){e.next=10;break}return e.abrupt("return",!1);case 10:return n=OP(),o=n.isMasterGameURL,n.isTokenGameURL,a=o(),e.next=14,ZR();case 14:return i=e.sent,s=!1,s=i?!a&&!!r:!a,e.abrupt("return",s);case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),MP=Fr,jP=Yt,UP=Hs,$P=$i,BP=jP(Ci.f),NP=jP([].push),FP=function(e){return function(t){for(var r,n=$P(t),o=UP(n),a=o.length,i=0,s=[];a>i;)r=o[i++],MP&&!BP(n,r)||NP(s,e?[r,n[r]]:n[r]);return s}},GP={entries:FP(!0),values:FP(!1)}.values;Fs({target:"Object",stat:!0},{values:function(e){return GP(e)}});var zP,HP={},ZP=function(e){try{if(e.skipForward)return;if(HP.source){var t={type:"gd-sdk-on-event",event:e};HP.source.postMessage(t,HP.origin)}}catch(e){console.log("gd-sdk forwardEvent err",e)}},KP=function(){ZP({name:"SDK_READY",status:"success",message:"Everything is ready."}),ZP({name:"SDK_GAME_START",status:"success",message:"Advertisement(s) are done. Start / resume the game."}),ZP({name:"CONTENT_RESUME_REQUESTED",status:"success",message:"Fired when content should be resumed. This usually happens when an ad finishes or collapses."})},qP=function(e){window.addEventListener("message",(function(n){var o=n.data,a=n.origin,i=n.source,s=o.type,u=o.method,c=o.options;if("gd-sdk-self"!==s){if("gd-sdk"===s){if(!HP.source&&"init"===u)return function(e){var t=e.source,r=e.origin;HP={source:t,origin:r}}({source:i,origin:a}),void KP();var l=e[u];l&&t(d.mark((function t(){var n,o=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,function(){r(this,o),"showAd"===u&&Xs.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)},WP=function(e){!function(e){var t=e.onEvent;e.onEvent=function(e){ZP(e),t.apply(this,arguments)}}(e);var t=new EP(e);return qP(t),t},VP=function(){function e(){I(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:[]},M_(this.moduleName,this.moduleConfig)}var r,n;return L(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,U_(this.moduleName);case 3:this.module=e.sent,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}(),YP=function(){var e=t(d.mark((function e(){var r,n,o,a,i,s,u,c,l,f,p,h,m,v,g,b;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=function(){var e,t=(e=new iR).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,o=r.isAeriaStagingDomain,!n){e.next=21;break}return s=function(){var e=(new iR).get("partner.url.value");return new O(e,!0)},u=function(){var e="ae-soft-323";try{var t=s(),r=t.pathname,n=r.split("/"),o=n[n.length-1];Js("aeria-ylogin:loc",t,r,o),e=o}catch(e){Qs("Error on getting aeria game id",e)}return e}(),c={action:"score",data:{gameId:u,score:100},env:o?"staging":"production",system:"Softgames"},l=function(){var e=window.parent||window,t=c;e.postMessage(t,"*")},f=new Rt,e.next=13,BR();case 13:p=e.sent,h=null==p||null===(a=p.aeria)||void 0===a?void 0:a.yMenuExcluded,m=null==p||null===(i=p.aeria)||void 0===i?void 0:i.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 VP).runYMenu({gameId:u});case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),g=OP(),b=g.whichFrame,"game-frame"===b()&&(h||v());case 21:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),JP=function(e){try{var t=uR(e);e.gameId||t.send("nogameid",{message:"".concat(Xy.parentURL)})}catch(e){}},QP=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,YP();case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),console.log("zxcv error on creating some bridge module");case 8:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(){return e.apply(this,arguments)}}(),XP=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,JP(t),$R(t),e.next=5,LP();case 5:return r=e.sent,e.next=8,QP();case 8:return n=r?TP(t):WP(t),qR(),e.abrupt("return",n);case 13:return e.prev=13,e.t0=e.catch(0),console.log("gd:adp: sdk adaptor create failed, fallback to default adapter",e.t0),e.abrupt("return",WP(t));case 17:case"end":return e.stop()}}),e,null,[[0,13]])})));return function(t){return e.apply(this,arguments)}}(),eL={create:XP};function tL(){return(tL=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,YR();case 2:if(!e.sent){e.next=7;break}e.t0=window.gdsdk,e.next=10;break;case 7:return e.next=9,aL(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 rL,nL,oL=!1;function aL(e){var t=this;return new Promise(function(n,o){var a=this;if(r(this,t),zP)return n(zP);if(oL)var i=setInterval(function(){r(this,a),zP&&(oL=!1,clearInterval(i),n(zP))}.bind(this),100);else oL=!0,eL.create(e).then(function(e){r(this,a),zP=e,e._sendSDKReady(),oL=!1,n(zP)}.bind(this))}.bind(this))}function iL(e){return aL(e),{invoke:function(t){return function(e,t){return tL.apply(this,arguments)}(e,t)}}}function sL(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 uL(e){return function(e){if(Array.isArray(e))return sL(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 sL(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)?sL(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.")}()}function cL(e,n){var o=this;return new Promise(function(a,i){var s,u=this;r(this,o);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);dL({text:"sdk-wrapper-script-load"}),ft(c[0],"gd-sdk-wrp",{alternates:c}).catch(function(e){r(this,u),dL({text:"sdk-wrapper load error",error:e.message}),this._sendSDKError(e),i(e)}.bind(this)).then(t(d.mark((function t(){var r,o;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,dL({text:"sdk-wrapper load success"}),r=window.GDSDKWRP.GDSDKWRP,o=new r,dL({text:"sdk-wrapper before gdSdkWrp.init"}),t.next=7,o.init(e,n);case 7:nL=t.sent,dL({text:"sdk-wrapper after gdSdkWrp.init"}),a(nL),t.next=16;break;case 12:t.prev=12,t.t0=t.catch(0),dL({text:"sdk-wrapper load error 2",error:t.t0.message}),i(t.t0);case 16:case"end":return t.stop()}}),t,null,[[0,12]])}))))}.bind(this))}function dL(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(uL(Object.values(e)))}catch(e){}}function lL(e){if(e){var t=e.name,r=e.message,n=e.status;try{dL({text:"samsung-wrp send-game-event",evt:e,hasOptions:!!rL}),rL&&rL.onEvent({name:t,message:r,status:n})}catch(t){dL({text:"samsung-wrp DEVELOPER-ERROR",evt:e,err:t})}}}function fL(e){return pL.apply(this,arguments)}function pL(){return(pL=t(d.mark((function e(t){var r,n,o,a,i,s,u,c,l;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return rL=t,$R(t),e.next=4,BR();case 4:if(a=e.sent,!nL){e.next=7;break}return e.abrupt("return",nL);case 7:if(i=null==a||null===(r=a.sdk_wrp)||void 0===r?void 0:r.enabled,s=null==a||null===(n=a.sdk_wrp)||void 0===n?void 0:n.version,u=null==a?void 0:a.gameId,c=null==a?void 0:a.title,gL("isWrapEnabled ".concat(i)),i){e.next=14;break}return e.abrupt("return");case 14:return l=null==a||null===(o=a.sdk_wrp)||void 0===o?void 0:o.wrapper,dL({text:"sdk-wrapper-load-instant-play"}),e.next=18,mL();case 18:return dL({text:"sdk-wrapper-load-instant-play-loaded"}),e.next=21,cL(l,{onEvent:lL,game:{gameId:u,title:c,version:s}});case 21:return nL=e.sent,e.abrupt("return",nL);case 23:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function hL(){return hL=t(d.mark((function e(t){var r,n,o;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t._get_developer_sets,gL("beforeGetDeveloperSettings"),n=r(),gL("afterGetDeveloperSettings"),e.prev=4,e.next=7,fL(n);case 7:o=e.sent,gL("after get SDK wrapper: ".concat(!!o)),o&&(gL("setting SDK Wrapper as gd-sdk"),window.sdkWrapper=o,window.gdsdk=o,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),gL("Error on SDK wrapper init: ".concat(e.t0.message));case 16:case"end":return e.stop()}}),e,null,[[4,12]])}))),hL.apply(this,arguments)}function mL(){return vL.apply(this,arguments)}function vL(){return(vL=t(d.mark((function e(){var t,n=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t="https://gtg.samsungapps.com/gsinstant-sdk/gsinstant.0.43.js",e.next=3,ft(t,"samsung_instant_play_sdk",{alternates:[t],error_prefix:"Blocked:",exists:function(){return r(this,n),window.GSInstant}.bind(this)});case 3:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function gL(e){window.sdkLog.push(e)}function bL(){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=O(window.location.href,!0),n=r.host,o=r.query,a=n,i=null==o?void 0:o.gd_sdk_referrer_url;return i&&(i=i.startsWith("https://")||i.startsWith("http://")?i:"https://".concat(i),null!==(t=e=O(i,!0))&&void 0!==t&&t.host&&(a=e.host)),a}()?gL("skipped normal SDK init!"):(!function(){sC();var e=iL(bL());function n(){var n=this;this.AdType=nt,this.preloadAd=function(t){var n=this;return e.invoke(function(e){return r(this,n),e.preloadAd(t)}.bind(this))},this.showAd=function(){var n=t(d.mark((function t(n,o){var a=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.invoke(function(e){var t=this;if(r(this,a),n===nt.Display)return e.showDisplayAd(o);var i={};return function(){r(this,t),Xs.firstAdapterModeAdsense&&(console.log("promo-test, set first adapter to adssense 2"),i.adapter="adsense")}.bind(this),e.showAd(n,i)}.bind(this)));case 1: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}(),gL("afterSDKInit")),function(e){hL.apply(this,arguments)}({_get_developer_sets:bL})}();
|
|
39
|
+
const{deleteProperty:fR}=Reflect,pR=function(e){return"object"==typeof e?null===e:"function"!=typeof e},hR=function(e){var t,r;return!1!==lR(e)&&("function"==typeof(t=e.constructor)&&(!1!==lR(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf")))},mR=e=>"object"==typeof e&&null!==e||"function"==typeof e,vR=e=>{if(!pR(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}"`)},gR=(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);vR(n);const o=_R.cache.get(n)||r();return _R.cache.set(n,o),o},bR=(e,t)=>t&&"function"==typeof t.split?t.split(e):"symbol"==typeof e?[e]:Array.isArray(e)?e:gR(e,t,(()=>((e,t={})=>{const r=t.separator||".",n="/"!==r&&t.preservePaths;if("string"==typeof e&&!1!==n&&/\//.test(e))return[e];const o=[];let a="";const i=e=>{let t;""!==e.trim()&&Number.isInteger(t=Number(e))?o.push(t):o.push(e)};for(let t=0;t<e.length;t++){const n=e[t];"\\"!==n?n!==r?a+=n:(i(a),a=""):a+=e[++t]}return a&&i(a),o})(e,t))),yR=(e,t,r,n)=>{if(vR(t),void 0===r)fR(e,t);else if(n&&n.merge){const o="function"===n.merge?n.merge:Object.assign;o&&hR(e[t])&&hR(r)?e[t]=o(e[t],r):e[t]=r}else e[t]=r;return e},_R=(e,t,r,n)=>{if(!t||!mR(e))return e;const o=bR(t,n);let a=e;for(let e=0;e<o.length;e++){const t=o[e],i=o[e+1];if(vR(t),void 0===i){yR(a,t,r,n);break}"number"!=typeof i||Array.isArray(a[t])?(mR(a[t])||(a[t]={}),a=a[t]):a=a[t]=[]}return e};_R.split=bR,_R.cache=new Map,_R.clear=()=>{_R.cache=new Map};var wR,AR=_R;function xR(e){var t=this,n={},o=(null==e?void 0:e._ancestor_origins)||window.location.ancestorOrigins,a=(null==e?void 0:e.self_url)||window.location.href,i=(null==e?void 0:e.self_origin)||window.location.origin,s=(null==e?void 0:e.referrer_url)||document.referrer;function u(e){return function(e,t,r){if(iR(r)||(r={default:r}),!cR(e))return void 0!==r.default?r.default:e;"number"==typeof t&&(t=String(t));const n=Array.isArray(t),o="string"==typeof t,a=r.separator||".",i=r.joinChar||("string"==typeof a?a:".");if(!o&&!n)return e;if(o&&t in e)return uR(t,e,r)?e[t]:r.default;let s=n?t:function(e,t,r){return"function"==typeof r.split?r.split(e):e.split(t)}(t,a,r),u=s.length,c=0;do{let t=s[c];for("number"==typeof t&&(t=String(t));t&&"\\"===t.slice(-1);)t=sR([t.slice(0,-1),s[++c]||""],i,r);if(t in e){if(!uR(t,e,r))return r.default;e=e[t]}else{let n=!1,o=c+1;for(;o<u;)if(t=sR([t,s[o++]],i,r),n=t in e){if(!uR(t,e,r))return r.default;e=e[t],c=o-1;break}if(!n)return r.default}}while(++c<u&&cR(e));return c===u?e:r.default}(n,e)}function c(e,t){return AR(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=o,t=n.depth.value,r=i;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=i,c("top.domain.from","self-top");else if(1===t){var a=l(s);a&&(r=a.origin,c("top.domain.from","referrer"))}c("top.domain.value",r.replace(/^https?:\/\/(www\.)?(.*)$/i,"$2"))}(),function(){var e=f();if(e)if(oR(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",a),c("partner.url.from","self-top")):e?oR(e)?(c("partner.url.value",a),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 O(e,t)}catch(e){console.log(e)}}function f(){for(var t=(null==e?void 0:e.urls)||[a,s],r=0;r<t.length;r++){var n,o=l(t[r]);if(o){var i=null===(n=o.query)||void 0===n?void 0:n.gd_sdk_referrer_url;if(i&&(i=decodeURIComponent(i),CS.isURL(i)))return i}}}return d(),{get:u,print:function(e){console.log(u(e))}}}var kR,ER=function(e){var t=this;if(!wR){var n={gameId:e.gameId,hours:(new Date).getHours(),topDomain:uw.topDomain,domain:uw.parentDomain,referrer:uw.parentURL,depth:gt(),version:Eu.version,byloader:uw.isTokenGameURL,isTokenGameURL:uw.isTokenGameURL,isMasterGameURL:uw.isMasterGameURL,isExtHostedGameURL:uw.isExtHostedGameURL,byloaderVersion:uw.version,tracking:cw.userDeclinedTracking,whitelabel:cw.whitelabelPartner,platform:mt()};wR=new jt(n)}return wR||{send:function(){r(this,t)}.bind(this)}},SR={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){}}},RR={exports:{}},DR="object"==typeof Reflect?Reflect:null,TR=DR&&"function"==typeof DR.apply?DR.apply:function(e,t,r){return Function.prototype.apply.call(e,t,r)};kR=DR&&"function"==typeof DR.ownKeys?DR.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var OR=Number.isNaN||function(e){return e!=e};function IR(){IR.init.call(this)}RR.exports=IR,RR.exports.once=function(e,t){return new Promise((function(r,n){function o(r){e.removeListener(t,a),n(r)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",o),r([].slice.call(arguments))}FR(e,t,a,{once:!0}),"error"!==t&&function(e,t,r){"function"==typeof e.on&&FR(e,"error",t,r)}(e,o,{once:!0})}))},IR.EventEmitter=IR,IR.prototype._events=void 0,IR.prototype._eventsCount=0,IR.prototype._maxListeners=void 0;var CR=10;function PR(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function LR(e){return void 0===e._maxListeners?IR.defaultMaxListeners:e._maxListeners}function MR(e,t,r,n){var o,a,i,s;if(PR(r),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,r.listener?r.listener:r),a=e._events),i=a[t]),void 0===i)i=a[t]=r,++e._eventsCount;else if("function"==typeof i?i=a[t]=n?[r,i]:[i,r]:n?i.unshift(r):i.push(r),(o=LR(e))>0&&i.length>o&&!i.warned){i.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+i.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=i.length,s=u,console&&console.warn&&console.warn(s)}return e}function jR(){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 $R(e,t,r){var n={fired:!1,wrapFn:void 0,target:e,type:t,listener:r},o=jR.bind(n);return o.listener=r,n.wrapFn=o,o}function UR(e,t,r){var n=e._events;if(void 0===n)return[];var o=n[t];return void 0===o?[]:"function"==typeof o?r?[o.listener||o]:[o]: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}(o):NR(o,o.length)}function BR(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 NR(e,t){for(var r=new Array(t),n=0;n<t;++n)r[n]=e[n];return r}function FR(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 o(a){n.once&&e.removeEventListener(t,o),r(a)}))}}Object.defineProperty(IR,"defaultMaxListeners",{enumerable:!0,get:function(){return CR},set:function(e){if("number"!=typeof e||e<0||OR(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");CR=e}}),IR.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},IR.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||OR(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},IR.prototype.getMaxListeners=function(){return LR(this)},IR.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var n="error"===e,o=this._events;if(void 0!==o)n=n&&void 0===o.error;else if(!n)return!1;if(n){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var i=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw i.context=a,i}var s=o[e];if(void 0===s)return!1;if("function"==typeof s)TR(s,this,t);else{var u=s.length,c=NR(s,u);for(r=0;r<u;++r)TR(c[r],this,t)}return!0},IR.prototype.addListener=function(e,t){return MR(this,e,t,!1)},IR.prototype.on=IR.prototype.addListener,IR.prototype.prependListener=function(e,t){return MR(this,e,t,!0)},IR.prototype.once=function(e,t){return PR(t),this.on(e,$R(this,e,t)),this},IR.prototype.prependOnceListener=function(e,t){return PR(t),this.prependListener(e,$R(this,e,t)),this},IR.prototype.removeListener=function(e,t){var r,n,o,a,i;if(PR(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(o=-1,a=r.length-1;a>=0;a--)if(r[a]===t||r[a].listener===t){i=r[a].listener,o=a;break}if(o<0)return this;0===o?r.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(r,o),1===r.length&&(n[e]=r[0]),void 0!==n.removeListener&&this.emit("removeListener",e,i||t)}return this},IR.prototype.off=IR.prototype.removeListener,IR.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 o,a=Object.keys(r);for(n=0;n<a.length;++n)"removeListener"!==(o=a[n])&&this.removeAllListeners(o);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},IR.prototype.listeners=function(e){return UR(this,e,!0)},IR.prototype.rawListeners=function(e){return UR(this,e,!1)},IR.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):BR.call(e,t)},IR.prototype.listenerCount=BR,IR.prototype.eventNames=function(){return this._eventsCount>0?kR(this._events):[]};var GR={prod:["html5.gamedistribution.com","revision.gamedistribution.com"],acc:["html5-acc-real-aws.gamedistribution.com","acceptance-revision.gamedistribution.com"]},zR={gameAPI:"game.api.gamedistribution.com"},HR={gameAPI:"game-api-acc-real-aws.gamedistribution.com"},ZR=function(){var e=this,t=GR.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?HR:zR}},KR=function(e){var t=this,n=e.url;return new Promise(function(e,o){r(this,t);var a=new XMLHttpRequest;a.open("GET",n,!0),a.onreadystatechange=function(){if(4==a.readyState)if(200==a.status){var t=JSON.parse(a.responseText);e(t)}else o(Error("Error occured on request: ".concat(a.status,", ").concat(a.statusText)))},a.onerror=function(e){o(e)},a.send()}.bind(this))};function qR(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 WR(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qR(Object(r),!0).forEach((function(t){Iu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qR(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var VR,YR,JR,QR=new RR.exports.EventEmitter,XR=[],eD=function(e){XR.push(e)},tD=function(e){VR=ER(JR=e)},rD=function(){var e=t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(YR){e.next=6;break}return e.next=3,aD(JR);case 3:YR=e.sent,QR.emit("game-data-ready",YR),nD();case 6:return e.abrupt("return",YR);case 7:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),nD=function(){var e;if(null!==(e=YR)&&void 0!==e&&null!==(e=e.aws_tst)&&void 0!==e&&e.enabled){var r,n,o;if(oD(),null!==(r=YR)&&void 0!==r&&null!==(r=r.aws_tst)&&void 0!==r&&null!==(r=r.ep)&&void 0!==r&&r.api&&null!==(n=YR)&&void 0!==n&&n.url)SR.getGameData(null===(o=YR)||void 0===o?void 0:o.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,aD(JR);case 3:YR=e.sent,null===(t=YR)||void 0===t||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)}},oD=function(){var e=window.fetch;window.fetch=t(d.mark((function t(){var n,o,a,i,s,u,c,l,f,p,h,m,v,g=this,b=arguments;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(a=b.length,i=new Array(a),s=0;s<a;s++)i[s]=b[s];u=i[0],c=i[1],l=null===(n=YR)||void 0===n||null===(n=n.aws_tst)||void 0===n||null===(n=n.ep)||void 0===n?void 0:n.atm,f=null===(o=YR)||void 0===o||null===(o=o.aws_tst)||void 0===o||null===(o=o.ep)||void 0===o?void 0:o.msgrt,p=function(t,n){var o=this;r(this,g);var a=u.replace(t,n);e(a,c).then(function(){r(this,o)}.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&&(null===(h=YR)||void 0===h||h.aws_tst,null===(m=YR)||void 0===m||null===(m=m.aws_tst)||void 0===m||null===(m=m.ep)||void 0===m||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)})))},aD=function(e){var n=this;VR.send("gdfw.loading",{message:"loading"}),XR=[],eD("1"),eD("2");var o=new xR;eD("3");var a=o.get("partner.domain.value");eD("4");var i=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);eD("5");var s=function(){r(this,n);var t=u(),o=t?"&mode=".concat(t):"",i=ZR().config;return"https://".concat(i.gameAPI,"/game/v4/get/").concat(e.gameId.replace(/-/g,""),"/?domain=").concat(a).concat(o,"&v=").concat(Eu.version,"&localTime=").concat((new Date).getHours())}.bind(this);eD("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 eD("7"),new Promise(function(e){var o=this;r(this,n),eD("7.1");var a=i();try{eD("7.2");var u=s();eD("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 eD("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),e.t0,e.next=12,KR({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,o),eD("7.5"),t.success){var i,s,c=t.result.game;eD("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,aws_tst:c.aws_tst,meta:c.meta,adspn:Su(c.adspn)||{},__t4r:Su(c.__t4r)||{},block_exts:Su(c.push_cuda),bloc_gard:Su(c.bloc_gard),cookie:Su(c.cookie),gdpr:Su(c.gdpr),diagnostic:Su(c.diagnostic),cmp:Su(c.cmp),gft:Su(c.gft)||{},sdk:Su(c.sdk)||{},sdkfw:Su(c.sdkfw)||{},loader:Su(c.loader)||{},splash:Su(c.splash)||{},promo:Su(c.promo)||{},dAds:Su(c.dads)||{},pAds:Su(c.pads)||{},mAds:Su(c.mads)||{},rAds:Su(c.rads)||{},lp:Su(c.lp)||{},extsc:Su(c.extsc)||{},evnts:Su(c.evnts)||{},dp:Su(c.dp)||{},adflw:Su(c.adflw)||{},afgszf:Su(c.afgszf)||{},fllc:Su(c.fllc)||{},lotm:Su(c.lotm)||{},t4rc:Su(c.t4rc)||{},midroll_plus:Su(c.midroll_plus)||{},gmky:Su(c.gmky)||{},urlBlockExc:Su(c.url_blck_exc)||{},sdk_wrp:Su(c.sdk_wrp)||{},dbglg:Su(c.dbglg)||{},extHosting:Su(c.ext_hosting)||{},directTokenUse:Su(c.dtu)||{},aeria:Su(c.aeria)||{},advlm:Su(c.advlm)||{},ad_blcks:Su(c.ad_blcks)||{},rmblck:Su(c.rmblck)||{}};eD("7.7");var l=ut(j(a),d);eD("7.8"),l.afg_disabled=!1===(null===(i=l.sdk)||void 0===i||null===(i=i.afg)||void 0===i?void 0:i.enabled),l.url=u,function(){r(this,n),void 0!==Ou.afgEnabled&&(l.afg_disabled=!Ou.afgEnabled),void 0!==Ou.promoEnabled&&(l.promo=l.promo||{},l.promo=WR(WR({},l.promo),{},{rainbow:{enabled:Ou.promoEnabled}}))}.bind(this),eD("7.9"),null!==(s=l.pAds)&&void 0!==s&&s.enabled&&(l.preroll=!0),eD("7.10"),VR.send("gdfw.success",{message:"success"}),e(l)}else{a.failed=!0;var f=XR[XR.length-1];VR.send("gdfw.err",{message:"".concat(f,": json error")}),e(a)}}.bind(this)).catch(function(t){r(this,o);var n=XR[XR.length-1];VR.send("gdfw.err",{message:"".concat(n,": ").concat(t.message?t.message:t)}),a.failed=!0,e(a)}.bind(this))}catch(t){var c=XR[XR.length-1];VR.send("gdfw.err",{message:"".concat(c,": global ").concat(t.message?t.message:t)}),a.failed=!0,e(a)}}.bind(this))},iD=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,rD();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)}}(),sD=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,rD();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)}}(),uD=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,rD();case 2:return r=e.sent,e.next=5,iD();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)}}(),cD=function(){var e=t(d.mark((function e(){var t,r,n,o,a,i,s,u;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,rD();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===(o=s.extsc)||void 0===o?void 0:o.ref:"",loadedFlag:u?null==s||null===(a=s.extsc)||void 0===a?void 0:a.loadedFlag:void 0,loadedFlagCheck:!!u&&!(null==s||null===(i=s.extsc)||void 0===i||!i.loadedFlagCheck)});case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),dD=function(){var e=t(d.mark((function e(){var t,n,o,a,i,s=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,cD();case 2:if((t=e.sent).enabled){e.next=5;break}return e.abrupt("return");case 5:return n=t.path,o=t.name,a=t.ref,e.prev=6,i={},e.next=10,vt(n,o,{error_prefix:"Blocked:",exists:function(){return r(this,s),!!a&&!!window[a]}.bind(this),attrs:i});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",o,e.t0),Rt("DEVELOPER_ERROR",e.t0,"warning");case 16:case"end":return e.stop()}}),e,this,[[6,12]])})));return function(){return e.apply(this,arguments)}}(),lD=!1,fD=!1,pD=function(){return new Promise(function(){var e=t(d.mark((function e(t,n){var o,a,i,s,u,c=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!lD){e.next=4;break}return e.abrupt("return",t(fD));case 4:lD=!0;case 5:return e.next=7,cD();case 7:if((o=e.sent).enabled){e.next=10;break}return e.abrupt("return",t(!1));case 10:if(a=o.loadedFlag,!(i=o.loadedFlagCheck)||a){e.next=13;break}return e.abrupt("return",t(!1));case 13:if(i){e.next=16;break}return fD=!0,e.abrupt("return",t(!0));case 16:s=!0,setTimeout(function(){r(this,c),s&&(s=!1,lD=!0,t(!1))}.bind(this),5e3),u=setInterval(function(){r(this,c),s&&i&&window[a]?(s=!1,lD=!0,fD=!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)}}())},hD=Ys,mD=Bg,vD=Jt,gD=vn,bD=qr,yD=Lv,_D=Fy,wD=la,AD=mD&&mD.prototype;if(hD({target:"Promise",proto:!0,real:!0,forced:!!mD&&vD((function(){AD.finally.call({then:function(){}},(function(){}))}))},{finally:function(e){var t=yD(this,gD("Promise")),r=bD(e);return this.then(r?function(r){return _D(t,e()).then((function(){return r}))}:e,r?function(r){return _D(t,e()).then((function(){throw r}))}:e)}}),bD(mD)){var xD=gD("Promise").prototype.finally;AD.finally!==xD&&wD(AD,"finally",xD,{unsafe:!0})}var kD="\t\n\v\f\r \u2028\u2029\ufeff",ED=sr,SD=Lu,RD=kD,DD=nr("".replace),TD=RegExp("^["+RD+"]+"),OD=RegExp("(^|[^"+RD+"])["+RD+"]+$"),ID=function(e){return function(t){var r=SD(ED(t));return 1&e&&(r=DD(r,TD,"")),2&e&&(r=DD(r,OD,"$1")),r}},CD={start:ID(1),end:ID(2),trim:ID(3)},PD=co.PROPER,LD=Jt,MD=kD,jD=CD.trim;Ys({target:"String",proto:!0,forced:function(e){return LD((function(){return!!MD[e]()||"
"!=="
"[e]()||PD&&MD[e].name!==e}))}("trim")},{trim:function(){return jD(this)}});var $D=Ys,UD=Ri.find,BD=Hm,ND="find",FD=!0;ND in[]&&Array(1)[ND]((function(){FD=!1})),$D({target:"Array",proto:!0,forced:FD},{find:function(e){return UD(this,e,arguments.length>1?arguments[1]:void 0)}}),BD(ND);var GD=qr,zD=Qr,HD=lh,ZD=Wr.f,KD=Vr,qD=Nt,WD=nr,VD=Fs,YD=function(e,t,r){var n,o;return HD&&GD(n=t.constructor)&&n!==r&&zD(o=n.prototype)&&o!==r.prototype&&HD(e,o),e},JD=ko,QD=nc,XD=rs.f,eT=gn,tT=h_,rT=Lu,nT=wf,oT=Kh,aT=function(e,t,r){r in e||ZD(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})},iT=la,sT=Jt,uT=pr,cT=zo.enforce,dT=xv,lT=Vh,fT=Qh,pT=Fr("match"),hT=qD.RegExp,mT=hT.prototype,vT=qD.SyntaxError,gT=WD(mT.exec),bT=WD("".charAt),yT=WD("".replace),_T=WD("".indexOf),wT=WD("".slice),AT=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,xT=/a/g,kT=/a/g,ET=new hT(xT)!==xT,ST=oT.MISSED_STICKY,RT=oT.UNSUPPORTED_Y,DT=KD&&(!ET||ST||lT||fT||sT((function(){return kT[pT]=!1,hT(xT)!==xT||hT(kT)===kT||"/a/i"!==String(hT(xT,"i"))})));if(VD("RegExp",DT)){for(var TT=function(e,t){var r,n,o,a,i,s,u=eT(mT,this),c=tT(e),d=void 0===t,l=[],f=e;if(!u&&c&&d&&e.constructor===TT)return e;if((c||eT(mT,e))&&(e=e.source,d&&(t=nT(f))),e=void 0===e?"":rT(e),t=void 0===t?"":rT(t),f=e,lT&&"dotAll"in xT&&(n=!!t&&_T(t,"s")>-1)&&(t=yT(t,/s/g,"")),r=t,ST&&"sticky"in xT&&(o=!!t&&_T(t,"y")>-1)&&RT&&(t=yT(t,/y/g,"")),fT&&(a=function(e){for(var t,r=e.length,n=0,o="",a=[],i=QD(null),s=!1,u=!1,c=0,d="";n<=r;n++){if("\\"===(t=bT(e,n)))t+=bT(e,++n);else if("]"===t)s=!1;else if(!s)switch(!0){case"["===t:s=!0;break;case"("===t:gT(AT,wT(e,n+1))&&(n+=2,u=!0),o+=t,c++;continue;case">"===t&&u:if(""===d||uT(i,d))throw new vT("Invalid capture group name");i[d]=!0,a[a.length]=[d,c],u=!1,d="";continue}u?d+=t:o+=t}return[o,a]}(e),e=a[0],l=a[1]),i=YD(hT(e,t),u?this:mT,TT),(n||o||l.length)&&(s=cT(i),n&&(s.dotAll=!0,s.raw=TT(function(e){for(var t,r=e.length,n=0,o="",a=!1;n<=r;n++)"\\"!==(t=bT(e,n))?a||"."!==t?("["===t?a=!0:"]"===t&&(a=!1),o+=t):o+="[\\s\\S]":o+=t+bT(e,++n);return o}(e),r)),o&&(s.sticky=!0),l.length&&(s.groups=l)),e!==f)try{JD(i,"source",""===f?"(?:)":f)}catch(e){}return i},OT=XD(hT),IT=0;OT.length>IT;)aT(TT,hT,OT[IT++]);mT.constructor=TT,TT.prototype=mT,iT(qD,"RegExp",TT,{constructor:!0})}dT("RegExp");var CT=Ys,PT=Na,LT=Ki,MT=Ti,jT=nr([].join);CT({target:"Array",proto:!0,forced:PT!==Object||!MT("join",",")},{join:function(e){return jT(LT(this),void 0===e?",":e)}});var $T=Ri.map;Ys({target:"Array",proto:!0,forced:!du("map")},{map:function(e){return $T(this,e,arguments.length>1?arguments[1]:void 0)}});var UT=Vr,BT=nr,NT=pn,FT=Jt,GT=Xs,zT=ws,HT=Ni,ZT=dr,KT=Na,qT=Object.assign,WT=Object.defineProperty,VT=BT([].concat),YT=!qT||FT((function(){if(UT&&1!==qT({b:1},qT(WT({},"a",{enumerable:!0,get:function(){WT(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!==qT({},e)[r]||GT(qT({},t)).join("")!==n}))?function(e,t){for(var r=ZT(e),n=arguments.length,o=1,a=zT.f,i=HT.f;n>o;)for(var s,u=KT(arguments[o++]),c=a?VT(GT(u),a(u)):GT(u),d=c.length,l=0;d>l;)s=c[l++],UT&&!NT(i,u,s)||(r[s]=u[s]);return r}:qT,JT=YT;Ys({target:"Object",stat:!0,arity:2,forced:Object.assign!==JT},{assign:JT});var QT,XT=nr,eO=2147483647,tO=/[^\0-\u007E]/,rO=/[.\u3002\uFF0E\uFF61]/g,nO="Overflow: input needs wider integers to process",oO=RangeError,aO=XT(rO.exec),iO=Math.floor,sO=String.fromCharCode,uO=XT("".charCodeAt),cO=XT([].join),dO=XT([].push),lO=XT("".replace),fO=XT("".split),pO=XT("".toLowerCase),hO=function(e){return e+22+75*(e<26)},mO=function(e,t,r){var n=0;for(e=r?iO(e/700):e>>1,e+=iO(e/t);e>455;)e=iO(e/35),n+=36;return iO(n+36*e/(e+38))},vO=function(e){var t=[];e=function(e){for(var t=[],r=0,n=e.length;r<n;){var o=uO(e,r++);if(o>=55296&&o<=56319&&r<n){var a=uO(e,r++);56320==(64512&a)?dO(t,((1023&o)<<10)+(1023&a)+65536):(dO(t,o),r--)}else dO(t,o)}return t}(e);var r,n,o=e.length,a=128,i=0,s=72;for(r=0;r<e.length;r++)(n=e[r])<128&&dO(t,sO(n));var u=t.length,c=u;for(u&&dO(t,"-");c<o;){var d=eO;for(r=0;r<e.length;r++)(n=e[r])>=a&&n<d&&(d=n);var l=c+1;if(d-a>iO((eO-i)/l))throw new oO(nO);for(i+=(d-a)*l,a=d,r=0;r<e.length;r++){if((n=e[r])<a&&++i>eO)throw new oO(nO);if(n===a){for(var f=i,p=36;;){var h=p<=s?1:p>=s+26?26:p-s;if(f<h)break;var m=f-h,v=36-h;dO(t,sO(hO(h+m%v))),f=iO(m/v),p+=36}dO(t,sO(hO(f))),s=mO(i,l,c===u),i=0,c++}}i++,a++}return cO(t,"")},gO=Ys,bO=Vr,yO=Vw,_O=Nt,wO=Ma,AO=nr,xO=la,kO=bc,EO=Sv,SO=pr,RO=YT,DO=pp,TO=dc,OO=Ip.codeAt,IO=function(e){var t,r,n=[],o=fO(lO(pO(e),rO,"."),".");for(t=0;t<o.length;t++)r=o[t],dO(n,aO(tO,r)?"xn--"+vO(r):r);return cO(n,".")},CO=Lu,PO=Pc,LO=jv,MO=gx,jO=zo,$O=jO.set,UO=jO.getterFor("URL"),BO=MO.URLSearchParams,NO=MO.getState,FO=_O.URL,GO=_O.TypeError,zO=_O.parseInt,HO=Math.floor,ZO=Math.pow,KO=AO("".charAt),qO=AO(/./.exec),WO=AO([].join),VO=AO(1..toString),YO=AO([].pop),JO=AO([].push),QO=AO("".replace),XO=AO([].shift),eI=AO("".split),tI=AO("".slice),rI=AO("".toLowerCase),nI=AO([].unshift),oI="Invalid scheme",aI="Invalid host",iI="Invalid port",sI=/[a-z]/i,uI=/[\d+-.a-z]/i,cI=/\d/,dI=/^0x/i,lI=/^[0-7]+$/,fI=/^\d+$/,pI=/^[\da-f]+$/i,hI=/[\0\t\n\r #%/:<>?@[\\\]^|]/,mI=/[\0\t\n\r #/:<>?@[\\\]^|]/,vI=/^[\u0000-\u0020]+/,gI=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,bI=/[\t\n\r]/g,yI=function(e){var t,r,n,o;if("number"==typeof e){for(t=[],r=0;r<4;r++)nI(t,e%256),e=HO(e/256);return WO(t,".")}if("object"==typeof e){for(t="",n=function(e){for(var t=null,r=1,n=null,o=0,a=0;a<8;a++)0!==e[a]?(o>r&&(t=n,r=o),n=null,o=0):(null===n&&(n=a),++o);return o>r&&(t=n,r=o),t}(e),r=0;r<8;r++)o&&0===e[r]||(o&&(o=!1),n===r?(t+=r?":":"::",o=!0):(t+=VO(e[r],16),r<7&&(t+=":")));return"["+t+"]"}return e},_I={},wI=RO({},_I,{" ":1,'"':1,"<":1,">":1,"`":1}),AI=RO({},wI,{"#":1,"?":1,"{":1,"}":1}),xI=RO({},AI,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),kI=function(e,t){var r=OO(e,0);return r>32&&r<127&&!SO(t,e)?e:encodeURIComponent(e)},EI={ftp:21,file:null,http:80,https:443,ws:80,wss:443},SI=function(e,t){var r;return 2===e.length&&qO(sI,KO(e,0))&&(":"===(r=KO(e,1))||!t&&"|"===r)},RI=function(e){var t;return e.length>1&&SI(tI(e,0,2))&&(2===e.length||"/"===(t=KO(e,2))||"\\"===t||"?"===t||"#"===t)},DI=function(e){return"."===e||"%2e"===rI(e)},TI={},OI={},II={},CI={},PI={},LI={},MI={},jI={},$I={},UI={},BI={},NI={},FI={},GI={},zI={},HI={},ZI={},KI={},qI={},WI={},VI={},YI=function(e,t,r){var n,o,a,i=CO(e);if(t){if(o=this.parse(i))throw new GO(o);this.searchParams=null}else{if(void 0!==r&&(n=new YI(r,!0)),o=this.parse(i,null,n))throw new GO(o);(a=NO(new BO)).bindURL(this),this.searchParams=a}};YI.prototype={type:"URL",parse:function(e,t,r){var n,o,a,i,s,u=this,c=t||TI,d=0,l="",f=!1,p=!1,h=!1;for(e=CO(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=QO(e,vI,""),e=QO(e,gI,"$1")),e=QO(e,bI,""),n=DO(e);d<=n.length;){switch(o=n[d],c){case TI:if(!o||!qO(sI,o)){if(t)return oI;c=II;continue}l+=rI(o),c=OI;break;case OI:if(o&&(qO(uI,o)||"+"===o||"-"===o||"."===o))l+=rI(o);else{if(":"!==o){if(t)return oI;l="",c=II,d=0;continue}if(t&&(u.isSpecial()!==SO(EI,l)||"file"===l&&(u.includesCredentials()||null!==u.port)||"file"===u.scheme&&!u.host))return;if(u.scheme=l,t)return void(u.isSpecial()&&EI[u.scheme]===u.port&&(u.port=null));l="","file"===u.scheme?c=GI:u.isSpecial()&&r&&r.scheme===u.scheme?c=CI:u.isSpecial()?c=jI:"/"===n[d+1]?(c=PI,d++):(u.cannotBeABaseURL=!0,JO(u.path,""),c=qI)}break;case II:if(!r||r.cannotBeABaseURL&&"#"!==o)return oI;if(r.cannotBeABaseURL&&"#"===o){u.scheme=r.scheme,u.path=TO(r.path),u.query=r.query,u.fragment="",u.cannotBeABaseURL=!0,c=VI;break}c="file"===r.scheme?GI:LI;continue;case CI:if("/"!==o||"/"!==n[d+1]){c=LI;continue}c=$I,d++;break;case PI:if("/"===o){c=UI;break}c=KI;continue;case LI:if(u.scheme=r.scheme,o===QT)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=TO(r.path),u.query=r.query;else if("/"===o||"\\"===o&&u.isSpecial())c=MI;else if("?"===o)u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=TO(r.path),u.query="",c=WI;else{if("#"!==o){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=TO(r.path),u.path.length--,c=KI;continue}u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,u.path=TO(r.path),u.query=r.query,u.fragment="",c=VI}break;case MI:if(!u.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){u.username=r.username,u.password=r.password,u.host=r.host,u.port=r.port,c=KI;continue}c=UI}else c=$I;break;case jI:if(c=$I,"/"!==o||"/"!==KO(l,d+1))continue;d++;break;case $I:if("/"!==o&&"\\"!==o){c=UI;continue}break;case UI:if("@"===o){f&&(l="%40"+l),f=!0,a=DO(l);for(var m=0;m<a.length;m++){var v=a[m];if(":"!==v||h){var g=kI(v,xI);h?u.password+=g:u.username+=g}else h=!0}l=""}else if(o===QT||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()){if(f&&""===l)return"Invalid authority";d-=DO(l).length+1,l="",c=BI}else l+=o;break;case BI:case NI:if(t&&"file"===u.scheme){c=HI;continue}if(":"!==o||p){if(o===QT||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()){if(u.isSpecial()&&""===l)return aI;if(t&&""===l&&(u.includesCredentials()||null!==u.port))return;if(i=u.parseHost(l))return i;if(l="",c=ZI,t)return;continue}"["===o?p=!0:"]"===o&&(p=!1),l+=o}else{if(""===l)return aI;if(i=u.parseHost(l))return i;if(l="",c=FI,t===NI)return}break;case FI:if(!qO(cI,o)){if(o===QT||"/"===o||"?"===o||"#"===o||"\\"===o&&u.isSpecial()||t){if(""!==l){var b=zO(l,10);if(b>65535)return iI;u.port=u.isSpecial()&&b===EI[u.scheme]?null:b,l=""}if(t)return;c=ZI;continue}return iI}l+=o;break;case GI:if(u.scheme="file","/"===o||"\\"===o)c=zI;else{if(!r||"file"!==r.scheme){c=KI;continue}switch(o){case QT:u.host=r.host,u.path=TO(r.path),u.query=r.query;break;case"?":u.host=r.host,u.path=TO(r.path),u.query="",c=WI;break;case"#":u.host=r.host,u.path=TO(r.path),u.query=r.query,u.fragment="",c=VI;break;default:RI(WO(TO(n,d),""))||(u.host=r.host,u.path=TO(r.path),u.shortenPath()),c=KI;continue}}break;case zI:if("/"===o||"\\"===o){c=HI;break}r&&"file"===r.scheme&&!RI(WO(TO(n,d),""))&&(SI(r.path[0],!0)?JO(u.path,r.path[0]):u.host=r.host),c=KI;continue;case HI:if(o===QT||"/"===o||"\\"===o||"?"===o||"#"===o){if(!t&&SI(l))c=KI;else if(""===l){if(u.host="",t)return;c=ZI}else{if(i=u.parseHost(l))return i;if("localhost"===u.host&&(u.host=""),t)return;l="",c=ZI}continue}l+=o;break;case ZI:if(u.isSpecial()){if(c=KI,"/"!==o&&"\\"!==o)continue}else if(t||"?"!==o)if(t||"#"!==o){if(o!==QT&&(c=KI,"/"!==o))continue}else u.fragment="",c=VI;else u.query="",c=WI;break;case KI:if(o===QT||"/"===o||"\\"===o&&u.isSpecial()||!t&&("?"===o||"#"===o)){if(".."===(s=rI(s=l))||"%2e."===s||".%2e"===s||"%2e%2e"===s?(u.shortenPath(),"/"===o||"\\"===o&&u.isSpecial()||JO(u.path,"")):DI(l)?"/"===o||"\\"===o&&u.isSpecial()||JO(u.path,""):("file"===u.scheme&&!u.path.length&&SI(l)&&(u.host&&(u.host=""),l=KO(l,0)+":"),JO(u.path,l)),l="","file"===u.scheme&&(o===QT||"?"===o||"#"===o))for(;u.path.length>1&&""===u.path[0];)XO(u.path);"?"===o?(u.query="",c=WI):"#"===o&&(u.fragment="",c=VI)}else l+=kI(o,AI);break;case qI:"?"===o?(u.query="",c=WI):"#"===o?(u.fragment="",c=VI):o!==QT&&(u.path[0]+=kI(o,_I));break;case WI:t||"#"!==o?o!==QT&&("'"===o&&u.isSpecial()?u.query+="%27":u.query+="#"===o?"%23":kI(o,_I)):(u.fragment="",c=VI);break;case VI:o!==QT&&(u.fragment+=kI(o,wI))}d++}},parseHost:function(e){var t,r,n;if("["===KO(e,0)){if("]"!==KO(e,e.length-1))return aI;if(t=function(e){var t,r,n,o,a,i,s,u=[0,0,0,0,0,0,0,0],c=0,d=null,l=0,f=function(){return KO(e,l)};if(":"===f()){if(":"!==KO(e,1))return;l+=2,d=++c}for(;f();){if(8===c)return;if(":"!==f()){for(t=r=0;r<4&&qO(pI,f());)t=16*t+zO(f(),16),l++,r++;if("."===f()){if(0===r)return;if(l-=r,c>6)return;for(n=0;f();){if(o=null,n>0){if(!("."===f()&&n<4))return;l++}if(!qO(cI,f()))return;for(;qO(cI,f());){if(a=zO(f(),10),null===o)o=a;else{if(0===o)return;o=10*o+a}if(o>255)return;l++}u[c]=256*u[c]+o,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(i=c-d,c=7;0!==c&&i>0;)s=u[c],u[c--]=u[d+i-1],u[d+--i]=s;else if(8!==c)return;return u}(tI(e,1,-1)),!t)return aI;this.host=t}else if(this.isSpecial()){if(e=IO(e),qO(hI,e))return aI;if(t=function(e){var t,r,n,o,a,i,s,u=eI(e,".");if(u.length&&""===u[u.length-1]&&u.length--,(t=u.length)>4)return e;for(r=[],n=0;n<t;n++){if(""===(o=u[n]))return e;if(a=10,o.length>1&&"0"===KO(o,0)&&(a=qO(dI,o)?16:8,o=tI(o,8===a?1:2)),""===o)i=0;else{if(!qO(10===a?fI:8===a?lI:pI,o))return e;i=zO(o,a)}JO(r,i)}for(n=0;n<t;n++)if(i=r[n],n===t-1){if(i>=ZO(256,5-t))return null}else if(i>255)return null;for(s=YO(r),n=0;n<r.length;n++)s+=r[n]*ZO(256,3-n);return s}(e),null===t)return aI;this.host=t}else{if(qO(mI,e))return aI;for(t="",r=DO(e),n=0;n<r.length;n++)t+=kI(r[n],_I);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return SO(EI,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&SI(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,r=e.username,n=e.password,o=e.host,a=e.port,i=e.path,s=e.query,u=e.fragment,c=t+":";return null!==o?(c+="//",e.includesCredentials()&&(c+=r+(n?":"+n:"")+"@"),c+=yI(o),null!==a&&(c+=":"+a)):"file"===t&&(c+="//"),c+=e.cannotBeABaseURL?i[0]:i.length?"/"+WO(i,"/"):"",null!==s&&(c+="?"+s),null!==u&&(c+="#"+u),c},setHref:function(e){var t=this.parse(e);if(t)throw new GO(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new JI(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+yI(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(CO(e)+":",TI)},getUsername:function(){return this.username},setUsername:function(e){var t=DO(CO(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var r=0;r<t.length;r++)this.username+=kI(t[r],xI)}},getPassword:function(){return this.password},setPassword:function(e){var t=DO(CO(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var r=0;r<t.length;r++)this.password+=kI(t[r],xI)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?yI(e):yI(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,BI)},getHostname:function(){var e=this.host;return null===e?"":yI(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,NI)},getPort:function(){var e=this.port;return null===e?"":CO(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=CO(e))?this.port=null:this.parse(e,FI))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+WO(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,ZI))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=CO(e))?this.query=null:("?"===KO(e,0)&&(e=tI(e,1)),this.query="",this.parse(e,WI)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=CO(e))?("#"===KO(e,0)&&(e=tI(e,1)),this.fragment="",this.parse(e,VI)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var JI=function(e){var t=EO(this,QI),r=LO(arguments.length,1)>1?arguments[1]:void 0,n=$O(t,new YI(e,!1,r));bO||(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())},QI=JI.prototype,XI=function(e,t){return{get:function(){return UO(this)[e]()},set:t&&function(e){return UO(this)[t](e)},configurable:!0,enumerable:!0}};if(bO&&(kO(QI,"href",XI("serialize","setHref")),kO(QI,"origin",XI("getOrigin")),kO(QI,"protocol",XI("getProtocol","setProtocol")),kO(QI,"username",XI("getUsername","setUsername")),kO(QI,"password",XI("getPassword","setPassword")),kO(QI,"host",XI("getHost","setHost")),kO(QI,"hostname",XI("getHostname","setHostname")),kO(QI,"port",XI("getPort","setPort")),kO(QI,"pathname",XI("getPathname","setPathname")),kO(QI,"search",XI("getSearch","setSearch")),kO(QI,"searchParams",XI("getSearchParams")),kO(QI,"hash",XI("getHash","setHash"))),xO(QI,"toJSON",(function(){return UO(this).serialize()}),{enumerable:!0}),xO(QI,"toString",(function(){return UO(this).serialize()}),{enumerable:!0}),FO){var eC=FO.createObjectURL,tC=FO.revokeObjectURL;eC&&xO(JI,"createObjectURL",wO(eC,FO)),tC&&xO(JI,"revokeObjectURL",wO(tC,FO))}PO(JI,"URL"),gO({global:!0,constructor:!0,forced:!yO,sham:!bO},{URL:JI});var rC=function(){function e(t){I(this,e),this.gameData=t,this.customParamKeys=["vid","_1ld","_1lp"]}return L(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,o=new O(location.href,!0);for(var a in o.query)t[a]=o.query[a];var i=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 i.length>0||n?(console.log("custom-params",t,n),t):void console.log("custom-params, none")}catch(e){console.log("_checkCustomParams.Error",e)}}}]),e}(),nC=function(){function e(t,r){I(this,e),this.adContainer=t,this.onResume=r}return L(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}(),oC=function(){function e(t,r){I(this,e),this.adContainer=t,this.onResume=r}return L(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}(),aC=function(){function e(t){I(this,e),this.adContainer=t}return L(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="ⓘ",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}(),iC=function(){function e(t){I(this,e),this.adContainer=t}return L(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}(),sC=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"}),uC=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 cC(e){return Object.assign({muted:!1,timeout:250,inline:!1},e)}function dC(e,t){var r=e.muted,n=e.timeout,o=e.inline,a=t(),i=a.element,s=a.source,u=void 0,c=void 0,d=void 0;return i.muted=r,!0===r&&i.setAttribute("muted","muted"),!0===o&&i.setAttribute("playsinline","playsinline"),i.src=s,new Promise((function(e){u=i.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;i.remove(),i.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 lC={audio:function(e){return dC(e=cC(e),(function(){return{element:document.createElement("audio"),source:URL.createObjectURL(sC)}}))},video:function(e){return dC(e=cC(e),(function(){return{element:document.createElement("video"),source:URL.createObjectURL(uC)}}))}},fC={exports:{}};!function(e,t){var r="__lodash_hash_undefined__",n=9007199254740991,a="[object Arguments]",i="[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[a]=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 o&&o&&o.Object===Object&&o,g="object"==typeof self&&self&&self.Object===Object&&self,b=v||g||Function("return this")(),y=t&&!t.nodeType&&t,_=y&&e&&!e.nodeType&&e,w=_&&_.exports===y,A=w&&v.process,x=function(){try{var e=_&&_.require&&_.require("util").types;return e||A&&A.binding&&A.binding("util")}catch(e){}}(),k=x&&x.isTypedArray;var E,S,R=Array.prototype,D=Function.prototype,T=Object.prototype,O=b["__core-js_shared__"],I=D.toString,C=T.hasOwnProperty,P=function(){var e=/[^.]+$/.exec(O&&O.keys&&O.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),L=T.toString,M=I.call(Object),j=RegExp("^"+I.call(C).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$=w?b.Buffer:void 0,U=b.Symbol,B=b.Uint8Array,N=$?$.allocUnsafe:void 0,F=(E=Object.getPrototypeOf,S=Object,function(e){return E(S(e))}),G=Object.create,z=T.propertyIsEnumerable,H=R.splice,Z=U?U.toStringTag:void 0,K=function(){try{var e=be(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),q=$?$.isBuffer:void 0,W=Math.max,V=Date.now,Y=be(b,"Map"),J=be(Object,"create"),Q=function(){function e(){}return function(t){if(!Oe(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),o=!r&&!n&&Re(e),a=!r&&!n&&!o&&Ce(e),i=r||n||o||a,s=i?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&&!C.call(e,c)||i&&("length"==c||o&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ye(c,u))||s.push(c);return s}function oe(e,t,r){(void 0!==r&&!xe(e[t],r)||void 0===r&&!(t in e))&&se(e,t,r)}function ae(e,t,r){var n=e[t];C.call(e,t)&&xe(n,r)&&(void 0!==r||t in e)||se(e,t,r)}function ie(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__=J?J(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(J){var n=t[e];return n===r?void 0:n}return C.call(t,e)?t[e]:void 0},X.prototype.has=function(e){var t=this.__data__;return J?void 0!==t[e]:C.call(t,e)},X.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=J&&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=ie(t,e);return!(r<0)&&(r==t.length-1?t.pop():H.call(t,r,1),--this.size,!0)},ee.prototype.get=function(e){var t=this.__data__,r=ie(t,e);return r<0?void 0:t[r][1]},ee.prototype.has=function(e){return ie(this.__data__,e)>-1},ee.prototype.set=function(e,t){var r=this.__data__,n=ie(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,o=Object(e),a=r(e),i=a.length;i--;){var s=a[ue?i:++n];if(!1===t(o[s],s,o))break}return e};function de(e){return null==e?void 0===e?f:c:Z&&Z in Object(e)?function(e){var t=C.call(e,Z),r=e[Z];try{e[Z]=void 0;var n=!0}catch(e){}var o=L.call(e);n&&(t?e[Z]=r:delete e[Z]);return o}(e):function(e){return L.call(e)}(e)}function le(e){return Ie(e)&&de(e)==a}function fe(e){return!(!Oe(e)||function(e){return!!P&&P in e}(e))&&(De(e)?j:p).test(function(e){if(null!=e){try{return I.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function pe(e){if(!Oe(e))return function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}(e);var t=_e(e),r=[];for(var n in e)("constructor"!=n||!t&&C.call(e,n))&&r.push(n);return r}function he(e,t,r,n,o){e!==t&&ce(t,(function(a,i){if(o||(o=new re),Oe(a))!function(e,t,r,n,o,a,i){var s=we(e,r),u=we(t,r),c=i.get(u);if(c)return void oe(e,r,c);var l=a?a(s,u,r+"",e,t,i):void 0,f=void 0===l;if(f){var p=Ee(u),h=!p&&Re(u),m=!p&&!h&&Ce(u);l=u,p||h||m?Ee(s)?l=s:Ie(_=s)&&Se(_)?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?(b=v.buffer,y=new b.constructor(b.byteLength),new B(y).set(new B(b)),y):v.buffer,l=new v.constructor(g,v.byteOffset,v.length)):l=[]:function(e){if(!Ie(e)||de(e)!=d)return!1;var t=F(e);if(null===t)return!0;var r=C.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&I.call(r)==M}(u)||ke(u)?(l=s,ke(s)?l=function(e){return function(e,t,r,n){var o=!r;r||(r={});var a=-1,i=t.length;for(;++a<i;){var s=t[a],u=n?n(r[s],e[s],s,r,e):void 0;void 0===u&&(u=e[s]),o?se(r,s,u):ae(r,s,u)}return r}(e,Pe(e))}(s):Oe(s)&&!De(s)||(l=function(e){return"function"!=typeof e.constructor||_e(e)?{}:Q(F(e))}(u))):f=!1}var v,g,b,y;var _;f&&(i.set(u,l),o(l,u,n,a,i),i.delete(u));oe(e,r,l)}(e,t,i,r,he,n,o);else{var s=n?n(we(e,i),a,i+"",e,t,o):void 0;void 0===s&&(s=a),oe(e,i,s)}}),Pe)}function me(e,t){return Ae(function(e,t,r){return t=W(void 0===t?e.length-1:t,0),function(){for(var n=arguments,o=-1,a=W(n.length-t,0),i=Array(a);++o<a;)i[o]=n[t+o];o=-1;for(var s=Array(t+1);++o<t;)s[o]=n[o];return s[t]=r(i),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,je),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}:je;function ge(e,t){var r,n,o=e.__data__;return("string"==(n=typeof(r=t))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function be(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return fe(r)?r:void 0}function ye(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 _e(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||T)}function we(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Ae=function(e){var t=0,r=0;return function(){var n=V(),o=16-(n-r);if(r=n,o>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 Ie(e)&&C.call(e,"callee")&&!z.call(e,"callee")},Ee=Array.isArray;function Se(e){return null!=e&&Te(e.length)&&!De(e)}var Re=q||function(){return!1};function De(e){if(!Oe(e))return!1;var t=de(e);return t==s||t==u||t==i||t==l}function Te(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}function Oe(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Ie(e){return null!=e&&"object"==typeof e}var Ce=k?function(e){return function(t){return e(t)}}(k):function(e){return Ie(e)&&Te(e.length)&&!!m[de(e)]};function Pe(e){return Se(e)?ne(e,!0):pe(e)}var Le,Me=(Le=function(e,t,r){he(e,t,r)},me((function(e,t){var r=-1,n=t.length,o=n>1?t[n-1]:void 0,a=n>2?t[2]:void 0;for(o=Le.length>3&&"function"==typeof o?(n--,o):void 0,a&&function(e,t,r){if(!Oe(r))return!1;var n=typeof t;return!!("number"==n?Se(r)&&ye(t,r.length):"string"==n&&t in r)&&xe(r[t],e)}(t[0],t[1],a)&&(o=n<3?void 0:o,n=1),e=Object(e);++r<n;){var i=t[r];i&&Le(e,i,r,o)}return e})));function je(e){return e}e.exports=Me}(fC,fC.exports);var pC=fC.exports;function hC(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 mC(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hC(Object(r),!0).forEach((function(t){Iu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hC(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function vC(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 gC,bC="13998",yC="_cc".concat(bC),_C=["https://tags.crwdcntrl.net/c/".concat(bC,"/cc.js?ns=").concat(yC)],wC=function(){return!!gC&&"function"==typeof gC.bcpf&&"function"==typeof gC.add},AC=function(e,t){try{if(!wC())return;gC.add(e,t),"lotame add success ".concat(e," ").concat(t)}catch(e){err}},xC=function(e,t){try{if(!wC())return;gC.bcpw(e,t),"lotame send success ".concat(e," ").concat(t)}catch(e){}},kC=function(e){var t=this;try{AC("act","play"),AC("med","game"),"complete"===document.readyState?gC.bcpf():gC.bcp(),e.tags.forEach(function(e){r(this,t),xC("int","tags : ".concat(e.title.toLowerCase()))}.bind(this)),xC("int","category : ".concat(e.category.toLowerCase()))}catch(e){}},EC=function(){window.addEventListener("load",(function(){QR.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!=uw&&uw.noLotamePageView,!e.t0){e.next=7;break}return e.next=6,iD();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,vt(_C[0],"LOTCC_".concat(bC),{alternates:_C});case 16:"object"===n(window[yC])&&(gC=window[yC]),wC()&&kC(t),e.next=23;break;case 20:e.prev=20,e.t1=e.catch(1),e.t1;case 23:case"end":return e.stop()}}),e,null,[[1,20]])})));return function(t){return e.apply(this,arguments)}}())}))},SC=function(){xC("genp","ad video"),xC("act","ad impression")},RC=function(){xC("act","ad skipped")},DC=function(){xC("act","ad click")},TC=function(){xC("act","ad complete")},OC=new xR,IC={preroll:"game-start-video",midroll:"mid-level-video",rewarded:"rewarded-video"},CC=function(e,t){var n=this,o=function(e,t){var r=OC.get("partner.url.value"),n=IC[t],o="".concat("web.latimes/games-puzzles-crossword","/").concat(e,"/").concat(n);return{env:"vp",iu:"/".concat("21787098806","/").concat(o),description_url:r,tfcd:0,npa:0,sz:"400x300|480x360|480x361|640x360|640x480",gdfp_req:1,output:"vast",unviewed_position_start:1,impl:"s",correlator:"".concat(Date.now())}}(e,t),a=Object.keys(o).map(function(e){return r(this,n),"".concat(e,"=").concat(o[e])}.bind(this)).join("&");return"".concat("https://pubads.g.doubleclick.net/gampad/ads","?").concat(a)},PC=(new xR).get("partner.domain.value"),LC=["latimes.com"],MC={exist:function(e){var t=this;return"Softgames-Azerion"===e.dname&&LC.some(function(e){return r(this,t),e===PC}.bind(this))},get:function(e,t){return function(e,t){return{"latimes.com":function(){var r=t.slug;return CC(r,e)}}[PC](e)}(e,t)}},jC=function(){var e=(new xR).get("partner.url.value"),t=new O(e,!0),r={isRevisionTest:!1,useTestAds:!1,disableMidrolltimer:!1};if("revision.gamedistribution.com"===t.host){var n=t.query.test,o="1"===n||"2"===n,a="1"===n;r={useTestAds:o,disableMidrolltimer:a,isRevisionTest:a||o}}return r},$C=function(){function e(){I(this,e),this.adContainer=window.document.body}return L(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 o=document.createElement("div");o.id="gd__spinner__button",o.setAttribute("title","Spinner"),o.classList.add("gd__spinner__button"),o.onclick=function(){r(this,e),this.hide()}.bind(this);var a=document.createElement("p");a.innerText="OK!",o.appendChild(a),this.adSpinnerButton=o;var i=document.createElement("div");i.id="gd__spinner__logo",i.setAttribute("title","Spinner"),i.classList.add("gd__spinner__logo"),this.adSpinnerLogo=i;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 UC(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 BC(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?UC(Object(r),!0).forEach((function(t){Iu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):UC(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var NC=new RR.exports.EventEmitter,FC=null,GC=function(){function e(t,n,o){var a=this;if(I(this,e),FC)return FC;FC=this;var i={debug:!1,width:640,height:360,locale:"en"};this.options=n?ut(i,n):i,this.prefix="gdsdk__",this.adsLoader=null,this.adsManager=null,this.adDisplayContainer=null,this.eventBus=new Lt,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=o.parentDomain,this.topDomain=o.topDomain,this.parentURL=o.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.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,a),this._clearSafetyTimer("LOADED"),this._startSafetyTimer(8e3,"LOADED")}.bind(this),"ima"),this.eventBus.subscribe("STARTED",function(){r(this,a),this._clearSafetyTimer("STARTED")}.bind(this),"ima")}var n,o,a,i,s,u,c,f,p,h,m,v,g,b,y,_,w,A,x,k,E,S,R,D;return L(e,[{key:"start",value:(D=t(d.mark((function e(){var n,o,a,i=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,i._init_afg_script({adsense_channel:"4089988593"});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,i._init_hl_script();case 2:return e.next=4,i._init_ima_script();case 4:i._createPlayer(),i._setUpIMA();case 6:case"end":return e.stop()}}),e)}))));case 7:if(o=e.sent,this.imaInitSuccess=o.success,a=[],this.afgInitSuccess||a.push(n.error),this.imaInitSuccess||a.push(o.error),!(a.length>0)){e.next=14;break}throw a[0];case 14:window.eventTest=function(e){r(this,i),this._broadcast(e,{message:"",status:"success"})}.bind(this),e.next=21;break;case 17:throw e.prev=17,e.t0=e.catch(0),Tu("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 D.apply(this,arguments)})},{key:"adSystemInitialize",value:(R=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 R.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:(S=t(d.mark((function e(t){var r,n,o,a,i,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,a=null===(o=this.gameData.adflw)||void 0===o||null===(o=o.adapterConfig)||void 0===o?void 0:o.spil,i=this.nextAdPosition(r),e.next=6,this._create_dp_context(i,n);case 6:return s=e.sent,a?(this.gameData,u=a[i]||a.default||this._getDefaultSpilAdapterConfig()):u=this._getDefaultSpilAdapterConfig(),c=100*s.floor_price,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 S.apply(this,arguments)})},{key:"_getAdVast",value:function(e,n){var o=this;return new Promise(function(){var a=t(d.mark((function t(a){var i,s,u,c,l,f,p,h,m=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(At&&wt("gd_debug_ex")&&wt("gd_tag")||jC().useTestAds)){t.next=6;break}return i=o.IMASampleTags[e],s=Math.floor(Math.random()*i.length),u=i[s],a({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",a(o._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=null!=n&&n.adTypeFound?null==n?void 0:n.adTypeFound:o.nextAdPosition(e),o._broadcast("AD_REQUEST",{message:c}),l=o.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?(o.isAudioAd=!0,f="midrollaudio"):(o.isAudioAd=!1,f="rewarded"===c?"rewardedVideo":"gdbanner"===c?"gd__banner":"midroll"===c?"midroll":"video1"),t.next=19,window.idhb.isLoaded();case 19:return t.next=21,o._create_dp_context(c,n);case 21:p=t.sent,Du("gd-adflow, before idhb",c,f),h=window.idhb.getAdserverTargetingForAdSlot(f),window.idhb.setAdserverTargeting(BC(BC({},h),{},{adaptor_order:n.adapterIndex})),window.idhb.getAdserverTargetingForAdSlot(f),window.idhb.requestAds({slots:Iu({},f,{bidFloor:(null==p?void 0:p.floor_price)||void 0}),callback:function(e,t){var n=this;r(this,m),!p||null!=t&&t.bidFloorApplied||fetch(p.skip_url).catch(function(e){r(this,n)}.bind(this));var i={src:"hl",tnl_keys:BC(BC({},window.idhb.getAdserverTargetingForAdSlot(f)),{},{tnl_ad_pos:c,tnl_asset_id:o.gameData.gameId}),url:e,dp:p,hl:t};o._extend_hl_url(i),a(i)}.bind(this)}),t.next=33;break;case 30:throw t.prev=30,t.t0=t.catch(10),new Error(t.t0);case 33:case"end":return t.stop()}}),t,this,[[10,30]])})));return function(e){return a.apply(this,arguments)}}())}},{key:"nextAdPosition",value:function(e){if(e===st.Rewarded)return this.adRewardedCount++,"rewarded";if(e===st.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===st.Rewarded?"rewarded":e===st.Interstitial?!1===this.gameData.preroll||1===this.adPrerollCount||this.adMidrollCount>0?"midroll":"preroll":"midroll"}},{key:"getCurrentAdPosition",value:function(e){return e===st.Interstitial?1===this.adPrerollCount&&0===this.adMidrollCount?"preroll":"midroll":e===st.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(o){var a=this;if(r(this,n),"undefined"==typeof google)throw new Error("Unable to load ad, google IMA SDK not defined.");try{var i,s,u=null==e||null===(i=e.tnl_keys)||void 0===i?void 0:i.tnl_ad_pos;this.adSuccess=!1,this.contentPaused=!1;var c=new google.ima.AdsRequest,d=this._transformVast(e,t),l=BC(BC({},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,a),t.shouldFail&&(f?(f.adtag_url="dp_original_broken",f.fallback_url="dp_fallback_broken"):d.url="original_broken",null==f||f.adtag_url,null==f||f.fallback_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){var v=function(e){for(var t=[],r="",n=Date.now(),o={ppos:1,lip:!0,vad_type:"linear"},a=0;a<e.length;a++){var i=new O(e[a].adtag.url,!0);i.query=mC(mC({},i.query),{},{ad_rule:0,vpos:e[a].positon,pod:1,correlator:0===a?n:++n,output:"xml_vast3"}),a<e.length-1&&(i.query=mC(mC({},i.query),o)),t.push(i.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(vC({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){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){var b=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=b}else 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){}o(c)}catch(e){throw new Error(e)}}.bind(this))}},{key:"_getExternalVast",value:function(e){var t;try{var r=this.getCurrentAdPosition(e);t=MC.exist(this.gameData)&&MC.get(r,this.gameData)}catch(e){console.log("external-vast 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:(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 o=this;r(this,t);var a=navigator.userAgent.toLowerCase();a.indexOf("safari")>-1&&a.indexOf("chrome"),lC.video({inline:!0,muted:!1}).then(function(t){r(this,o);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 E.apply(this,arguments)})},{key:"_initDisplayContainerWithAutoPlay",value:(k=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 k.apply(this,arguments)})},{key:"startAd",value:(x=t(d.mark((function e(t){var n,o,a,i=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(o=t.adType,a=t.params,this.adType_=o,this.isAudioAd=!1,this.adContext=BC(BC({},a),{},{adType:o}),null!==(n=this.gameData.adspn)&&void 0!==n&&n.enabled&&(this.adFlowProcessSpinner||(this.adFlowProcessSpinner=new $C,this.adFlowProcessSpinner.add()),this.adFlowProcessSpinner.show(!0)),"promo"!==(null==a?void 0:a.adapter)){e.next=7;break}return e.abrupt("return",this._startPromo(a,o));case 7:if("adsense"!==(null==a?void 0:a.adapter)){e.next=31;break}if(o!==st.Interstitial){e.next=24;break}if("preroll"!==(null==a?void 0:a.position)){e.next=13;break}return e.abrupt("return",this._startAdsensePlacementPreroll(t));case 13:if("start"!==(null==a?void 0:a.position)){e.next=17;break}return e.abrupt("return",this._startAdsensePlacementStart(t));case 17:if("next"!==(null==a?void 0:a.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(o!==st.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,i),e===(null==a?void 0:a.adapter)}.bind(this))){e.next=42;break}if(o!==st.Interstitial){e.next=37;break}return e.abrupt("return",this._startInterstitialAd(a));case 37:if(o!==st.Rewarded){e.next=41;break}return e.abrupt("return",this._startRewardedAd(a));case 41:throw new Error("Unsupported ad type");case 42:["opus"].some(function(e){return r(this,i),e===(null==a?void 0:a.adapter)}.bind(this))&&this._startOpusAd(a);case 44:case"end":return e.stop()}}),e,this)}))),function(e){return x.apply(this,arguments)})},{key:"_startOpusAd",value:(A=t(d.mark((function e(t){var n,o,a,i,s,u,c,l,f,p,h,m,v,g,b,y=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.adTypeFound="rewarded"===t.adTypeFound?"reward":t.adTypeFound,o=t.adTypeFound,!this.requestRunning){e.next=7;break}return this._broadcast("AD_IS_ALREADY_RUNNING",{status:"warning"}),this._broadcast("AD_ERROR",{message:"Ad is already running",status:"error"}),e.abrupt("return");case 7:if(a=null===(n=window.gdlocus)||void 0===n?void 0:n.adBreak){e.next=11;break}return this._broadcast("AD_ERROR",{message:"Locus adBreak not found",status:"error"}),e.abrupt("return");case 11:i=void function(){return r(this,y),!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:i},p=function(e){r(this,y),this.opusEventReceived=!0,this._broadcast("CONTENT_PAUSE_REQUESTED",{message:"",status:"success"}),this._broadcast("IMPRESSION",{message:"",status:"success"})}.bind(this),h=function(e){r(this,y),this.opusEventReceived=!0,this._broadcast("CONTENT_RESUME_REQUESTED",{message:"",status:"success"})}.bind(this),m=function(){r(this,y),this.opusEventReceived=!0}.bind(this),v=function(){r(this,y),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,y),this.opusEventReceived=!0,this.resetForNext();var t="".concat(o);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"})}.bind(this),console.log("opus-ad meta",f),b={type:o,meta:f,beforeAd:p,afterAd:h,adBreakDone:g},"reward"===o&&(b=BC(BC({},b),{},{adDismissed:m,adViewed:v})),this.opusEventReceived=!1,this._startTimeoutForOpus(),a&&a(b);case 27:case"end":return e.stop()}}),e,this)}))),function(e){return A.apply(this,arguments)})},{key:"preloadAd",value:(w=t(d.mark((function e(t){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t!==st.Interstitial){e.next=4;break}return e.abrupt("return","gdsdk://preloaded");case 4:if(t!==st.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 w.apply(this,arguments)})},{key:"addAdComponents",value:function(){var e=this,t=function(){r(this,e),this.adsManager.resume()}.bind(this);try{this.adResume=new nC(this.adContainer,t),this.adResume.add(),this.rewardedLabel=new oC(this.adContainer,t),this.rewardedLabel.add(),this.audioAdLabel=new aC(window.document.body),this.audioAdLabel.add(),this.audioAdLabel.hide()}catch(e){console.log("error on adding adResume",e)}}},{key:"loadDisplayAd",value:(_=t(d.mark((function e(n){var o=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,a){var i,s,u,c,l,f,p,h,m,v=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:try{(s=n?n.containerId:null)||a("Container id is not specified"),u=document.getElementById(s),document.getElementById(s)||a("No container is found with this id - ".concat(s)),void 0===window.idhb.requestAds&&a("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(It.zIndex,";\n height: 100%;\n display: flex !important;\n align-items: center;\n justify-content: center;\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)),o.atom_display=null,null!==(i=o.atom_display)&&void 0!==i&&i.params&&window.idhb.setAdserverTargeting(null===(h=o.atom_display)||void 0===h?void 0:h.params),(m={})[c]={maxSize:[u.offsetWidth,u.offsetHeight]},window.idhb.requestAds({slots:m,callback:function(e){r(this,v),JSON.stringify(e,null,2)}.bind(this)}),t()}catch(e){console.log("display_test error",e),a(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 _.apply(this,arguments)})},{key:"_startInterstitialAd",value:(y=t(d.mark((function e(t){var n,o,a,i,s=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,s),Ou.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 o=e.sent,e.next=13,this._loadInterstitialAd(BC(BC({},o),t));case 13:if(a=e.sent,i=a.success,a.args,i){e.next=18;break}return e.abrupt("return");case 18:o.autoplayRequiresMute&&this.adsManager.setVolume(0),!0===(null===(n=this.gameData.advlm)||void 0===n?void 0:n.mode)&&this.adsManager.setVolume(1),this.adsManager.init(this.options.width,this.options.height,google.ima.ViewMode.NORMAL),this.adsManager.start(),e.next=29;break;case 24:throw e.prev=24,e.t0=e.catch(0),e.t0,this._onError(e.t0),e.t0;case 29:case"end":return e.stop()}}),e,this,[[0,24]])}))),function(e){return y.apply(this,arguments)})},{key:"_startPromo",value:(b=t(d.mark((function e(t,r){var n,o,a,i;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 o=e.sent,e.next=11,this._loadPromo(BC(BC({},o),t),r);case 11:if(a=e.sent,i=a.success,a.args,i){e.next=16;break}return e.abrupt("return");case 16:o.autoplayRequiresMute&&this.adsManager.setVolume(0),!0===(null===(n=this.gameData.advlm)||void 0===n?void 0:n.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=28;break;case 23:throw e.prev=23,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 28:case"end":return e.stop()}}),e,this,[[0,23]])}))),function(e,t){return b.apply(this,arguments)})},{key:"_loadPromo",value:(g=t(d.mark((function e(t,r){var n,o;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._resetAdsLoader(),e.prev=1,n=this.nextAdPosition(r),o=this._create_promo_context(n),this._requestPromo(o,BC({adType:st.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 g.apply(this,arguments)})},{key:"_loadInterstitialAd",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.preloadedInterstitialAdVast,e.t0){e.next=7;break}return e.next=6,this._getAdVast(st.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,BC({adType:st.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 v.apply(this,arguments)})},{key:"_waitOnAdLoad",value:function(){var e=this;return new Promise(function(t,n){var o=this;r(this,e);var a="videoad.preloadad";this.eventBus.unsubscribeScope(a);var i=function(e){var n=this;r(this,o),setTimeout(function(){r(this,n),this.eventBus.unsubscribeScope(a),t({success:!0,args:e})}.bind(this),1)}.bind(this),s=function(e){var n=this;r(this,o),setTimeout(function(){r(this,n),this.eventBus.unsubscribeScope(a),t({success:!1,args:e})}.bind(this),1)}.bind(this);this.eventBus.subscribe("AD_SDK_MANAGER_READY",i,a),this.eventBus.subscribe("AD_SDK_CANCELED",s,a),this.eventBus.subscribe("AD_ERROR",s,a)}.bind(this))}},{key:"_startRewardedAd",value:(m=t(d.mark((function e(t){var n,o,a,i,s=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,s),Ou.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 o=e.sent,e.next=13,this._loadRewardedAd(BC(BC({},o),t));case 13:if(a=e.sent,i=a.success,a.args,i){e.next=18;break}return e.abrupt("return");case 18:o.autoplayRequiresMute&&this.adsManager.setVolume(0),!0===(null===(n=this.gameData.advlm)||void 0===n?void 0:n.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 24:throw e.prev=24,e.t0=e.catch(0),this._onError(e.t0),e.t0;case 28:case"end":return e.stop()}}),e,this,[[0,24]])}))),function(e){return m.apply(this,arguments)})},{key:"_loadRewardedAd",value:(h=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(st.Rewarded,t);case 6:e.t0=e.sent;case 7:return r=e.t0,delete this.preloadedRewardedAdVast,e.next=11,this._requestAd(r,BC({adType:st.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 h.apply(this,arguments)})},{key:"_preloadInterstitialAd",value:(p=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(st.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 p.apply(this,arguments)})},{key:"_preloadRewardedAd",value:(f=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(st.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 f.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 o=this._adrequest_user_context.t4RResult?this._adrequest_user_context.t4RResult:this._isT4R(e);this._adrequest_user_context.t4RResult=o;var a=o.success,i=o.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}),a||this._broadcast("AD_T4R_NONE",{reason:i}),this.activeAdContainer.style.opacity=a?.001:1,a&&null!=e&&e.contentType.startsWith("video/")&&(this.t4rButton=new iC(this.adContainer),this.t4rButton.add(),this._broadcast("AD_T4R_VIDEO")),a&&this.adsManager.setVolume(0),a&&this._broadcast("AD_T4R"),a&&setTimeout(function(){r(this,t),this.activeAdContainer.style.opacity=1,this.adsManager.setVolume(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){if(a&&"click"===n){var d,l=null===(d=this._adrequest_user_context)||void 0===d?void 0:d.tnl_ad_pos;this.clickCount[l]++,this._broadcast("AD_T4R_CLICK")}a||"click"!==n||this._broadcast("AD_CLICK"),this.t4rButton&&this.t4rButton.hide(),this.activeAdContainer.style.opacity=1,this.adsManager.setVolume(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=Ot.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 o=document.createElement("div");o.id="".concat(this.prefix,"advertisement_slot"),o.style.position="absolute",o.style.top="0",o.style.left="0",o.style.width=this.options.width+"px",o.style.height=this.options.height+"px",this.adContainerInner=o,this.activeAdContainer=this.adContainer,window.activeAdContainer=this.activeAdContainer,this.thirdPartyContainer?(this.adContainer.appendChild(o),this.thirdPartyContainer.appendChild(this.adContainer),this.activeAdContainer=this.thirdPartyContainer):(this.adContainer.appendChild(o),t.appendChild(this.adContainer)),this.addAdComponents(),this.activeAdContainer.style.visibility="hidden";var a=function(){r(this,e);var t=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,a=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:a,o.style.width=this.options.width+"px",o.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",a),window.document.addEventListener("DOMContentLoaded",a)}},{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 o=new Date,a=o.getHours(),i=o.getDate(),s=o.getMonth(),u=o.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(a," d").concat(i," m").concat(s," y").concat(u)}}),this._adrequest_user_context=e.getUserRequestContext()}},{key:"_onAdEvent",value:function(e){var t,n,o,a,i=this,s=new Date,u=s.getHours(),c=s.getDate(),d=s.getMonth(),l=s.getFullYear(),f=(o=google.ima.AdEvent.Type,a=e.type,Object.keys(o).find((function(e){return o[e]===a}))),p=!1,h=(null==e||null===(t=e.getAd())||void 0===t?void 0:t.getContentType())||"",m=!h.startsWith("image")&&!h.startsWith("text"),v=null==e||null===(n=e.ad)||void 0===n||null===(n=n.data)||void 0===n?void 0:n.title;this._sendIMAEventsToHB(e);var g=document.getElementById("game"),b="";switch(e.type){case google.ima.AdEvent.Type.AD_BREAK_READY:b="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:b="Fired when an ads list is loaded.";break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.contentPaused&&(p=!0),this.isAudioAd&&(this.audioAdLabel.hide(),this.isAudioAd=!1),b="Fired when the ads manager is done playing all the ads.";break;case google.ima.AdEvent.Type.CLICK:b="Fired when the ad is clicked.";var y=e.getAd().getContentType();this._show({mode:"click",contentType:y}),DC();break;case google.ima.AdEvent.Type.COMPLETE:e.getAd(),p=this._is_completed(e.getAd()),b="Fired when the ad completes playing.",this.adType_===st.Rewarded&&this._broadcast("SDK_REWARDED_WATCH_COMPLETE",{message:"",status:"success"});break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.gameData.fllc.enabled&&(g.style.display="none"),this.contentPaused=!0,b="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&&(g.style.display="block"),b="Fired when content should be resumed. This usually happens when an ad finishes or collapses.",this.contentPaused?p=!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.t4rButton&&this.t4rButton.hide();break;case google.ima.AdEvent.Type.DURATION_CHANGE:b="Fired when the ad's duration changes.";break;case google.ima.AdEvent.Type.FIRST_QUARTILE:b="Fired when the ad playhead crosses first quartile.";var _=e.getAd().getContentType();this._show({mode:"first_quartile",contentType:_});break;case google.ima.AdEvent.Type.IMPRESSION:b="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:b="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:b="Fired when the displayed ad changes from linear to nonlinear, or vice versa.";break;case google.ima.AdEvent.Type.LOADED:var w=e.getAd().getContentType();b=w,this._show({mode:"loaded",contentType:w});break;case google.ima.AdEvent.Type.LOG:e.getAdData().adError&&(b=e.getAdData());break;case google.ima.AdEvent.Type.MIDPOINT:b="Fired when the ad playhead crosses midpoint.";break;case google.ima.AdEvent.Type.PAUSED:m&&"VPAID"!==v&&this.adResume.show(),b="Fired when the ad is paused.";break;case google.ima.AdEvent.Type.RESUMED:b="Fired when the ad is resumed.",m&&(this.adResume.hide(),this.rewardedLabel.hide());break;case google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED:b="Fired when the displayed ads skippable state is changed.";break;case google.ima.AdEvent.Type.SKIPPED:p=this._is_completed(e.getAd()),b="Fired when the ad is skipped by the user.",RC(),this.t4rButton&&this.t4rButton.hide();break;case google.ima.AdEvent.Type.STARTED:this.adType_===st.Rewarded&&this.rewardedLabel.show(),this._hideAddResume(),b="Fired when the ad starts playing.";break;case google.ima.AdEvent.Type.THIRD_QUARTILE:b="Fired when the ad playhead crosses third quartile.";break;case google.ima.AdEvent.Type.USER_CLOSE:p=this._is_completed(e.getAd()),b="Fired when the ad is closed by the user.";break;case google.ima.AdEvent.Type.VOLUME_CHANGED:b="Fired when the ad volume has changed.";break;case google.ima.AdEvent.Type.VOLUME_MUTED:b="Fired when the ad volume has been muted."}if(""!==f&&""!==b){var A=!this.contentPaused&&e.type===google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,x=!this.contentPaused&&e.type===google.ima.AdEvent.Type.ALL_ADS_COMPLETED;A||x||this.isAudioAd||this._broadcast(f,{name:f,message:b,status:"success",analytics:{category:f,action:this.parentDomain,label:"h".concat(u," d").concat(c," m").concat(d," y").concat(l)}})}if(p&&!this.adSuccess){this.adSuccess=!0;var k=e.getAd(),E="Rainbow"===(null==k?void 0:k.getAdSystem())&&(null==k?void 0:k.getWrapperAdIds().some(function(e){return r(this,i),"promo"===e}.bind(this)));null==k||k.getAdSystem(),null==k||k.getWrapperAdIds(),this._broadcast("AD_SUCCESS",{message:"Ad succeeded.",status:"success",isPromoSuccess:E}),this.resetForNext(e)}}},{key:"_run_atom_tag_aws_test",value:function(e){var t=this;try{var n,o;if(!((null===(n=this.gameData)||void 0===n||null===(n=n.aws_tst)||void 0===n?void 0:n.enabled)&&(null===(o=this.gameData)||void 0===o||null===(o=o.aws_tst)||void 0===o||null===(o=o.ep)||void 0===o?void 0:o.atm)))return;var a=e.type,i=e.url;if("none"===a||!i)return;i=i.replace("tag.atom.gamedistribution.com","atom-tag-prod-aws.gamedistribution.com"),fetch(i).then(function(){r(this,t)}.bind(this))}catch(e){}}},{key:"_findAtomTagUrl",value:function(e,t){var n=this,o={type:"none"};try{var a=this.current_dp,i=a.id,s=a.error_url,u=a.impression_url,c=a.fallback_imp_url,d=a.promo_imp_green_url;if(!e&&!t)return o={type:"imp_err",url:s};var l=e.getWrapperAdIds().some(function(e){return r(this,n),e==="".concat(i)}.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?o={type:"normal_imp",url:u}:l&&!t?o={type:"normal_err",url:s}:p&&t?o={type:"promo_imp",url:d}:f&&t&&(o={type:"fallbacj_imp",url:c})}catch(e){}return o}},{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(),o=this._getInnerErrorCode(r);NC.emit("AD_ERROR",n),this._broadcast(t,{message:n,details:o,status:"warning",analytics:{category:t,action:o,label:n}}),this._hideAddResume()}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_===st.Rewarded&&this.rewardedLabel&&this.rewardedLabel.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 o=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 a in o.query||{}){var i=o.query[a];U(i)&&(o.query[a]=l.stringify(i))}var s=new O(o.url,!0);return pC(s.query,o.query||{}),BC({url:s.toString()},t)}}},{key:"_transformVast",value:function(e,t){var r={url:e.url};try{var n=new O(e.url,!0),o=this._transformQuery(e,t,n);o&&(r.url=n.toString());var a=o?n:new O(e.url,!0);if(a.query.cust_params){var i=l.parse(a.query.cust_params);r.bidder=i.hb_bidder,r.cust_params=i}r.url_parsed=a}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 o=this;if(e&&t&&e.tnl_keys){var a=this.options.vast_query;if(t.retry_on_success&&this.options.retry_on_success&&U(this.options.retry_on_success.vast_query)?a=this.options.retry_on_success.vast_query:t.retry_on_failure&&this.options.retry_on_failure&&U(this.options.retry_on_failure.vast_query)&&(a=this.options.retry_on_failure.vast_query),U(a=j(a))){var i=n.query;if(a.$$remove){for(var s in i){new RegExp(a.$$remove,"i").test(s)&&delete i[s]}delete a.$$remove}var u=l.parse(i.cust_params);if(a.cust_params&&a.cust_params.$$remove){for(var c in u){new RegExp(a.cust_params.$$remove,"i").test(c)&&delete u[c]}delete a.cust_params.$$remove}var d=this.macros.transform(a,{get:function(t){return r(this,o),e.tnl_keys[t.toLowerCase()]}.bind(this)});return i.cust_params=u,pC(i,d),i.cust_params=l.stringify(i.cust_params),!0}}}},{key:"_isExcludedBidderForT4R",value:function(){var e=this;try{var t,n,o,a=(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:a}),this._adrequest_user_context,'bidder:"'.concat(a,'"');var i=(null===(n=this.gameData.t4rc)||void 0===n?void 0:n.bidder_exc)||[],s=(null===(o=this.gameData.t4rc)||void 0===o?void 0:o.bidder_inc)||[],u=!1;return s.length>0?u=!s.some(function(t){return r(this,e),t===a}.bind(this)):i.length>0&&(u=i.some(function(t){return r(this,e),t===a}.bind(this))),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,o=null!=n&&n.enabled?(null==n?void 0:n.rate)||.8:0,a=(null===(t=this._adrequest_user_context)||void 0===t||null===(t=t.adTag)||void 0===t?void 0:t.bidder)||"adx",i=Math.random();return r||"adx"!==a&&i<o}},{key:"_isT4R",value:function(e){var t,r,n,o,a,i,s;if(!this.gameData.publishedAt)return{success:!1,reason:"pdate-2"};var u=new Date(this.gameData.publishedAt);if(((new Date).getTime()-u.getTime())/864e5<=10)return{success:!1,reason:"pdate-1"};var c=this.gameData.meta,d=e.t4r.meta;if((null==c||null===(t=c.ast)||void 0===t?void 0:t.c)>=(null==d||null===(r=d.ast)||void 0===r?void 0:r.c)&&(null==c||null===(n=c.sit)||void 0===n?void 0:n.c)>=(null==d||null===(o=d.sit)||void 0===o?void 0:o.c))return{success:!1,reason:"meta"};var l=this._isExcludedBidderForT4RWithBidderExcRate();if(console.log("zxcv isExcludedBidderForT4R",l),l)return this.msgrt.send("bidder.ex",{message:"true"}),{success:!1,reason:"bidder"};this.msgrt.send("bidder.ex",{message:"false"});var f=null===(a=this._adrequest_user_context)||void 0===a?void 0:a.tnl_ad_pos;if(this.clickCount[f]>=(null===(i=e.t4r[f])||void 0===i?void 0:i.count))return{success:!1,reason:"click-count"};if(null!=e&&null!==(s=e.contentType)&&void 0!==s&&s.startsWith("image/")||"text"===(null==e?void 0:e.contentType)){var p,h=f&&(null===(p=e.t4r[f])||void 0===p?void 0:p.enabled);return{success:h,reason:h?null:"rule-check"}}if(null!=e&&e.contentType.startsWith("video/")){var m,v=(null===(m=e.t4r[f])||void 0===m?void 0:m.viper)||0;if(v>0){var g,b=Math.random()<v,y=f&&b&&(null===(g=e.t4r[f])||void 0===g?void 0:g.enabled);return{success:y,reason:y?null:"viper-check"}}return{success:!1,reason:"rule-check-viper"}}return{success:!1,reason:"media-format"}}},{key:"_isVMAP",value:function(e){var t,r,n,o,a,i;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===(o=this.gameData)||void 0===o||null===(o=o.mAds)||void 0===o||null===(o=o.vmap)||void 0===o?void 0:o.enabled))||"rewarded"===e&&(!0===(null===(a=this.gameData)||void 0===a||null===(a=a.rAds)||void 0===a?void 0:a.vmap)||!0===(null===(i=this.gameData)||void 0===i||null===(i=i.rAds)||void 0===i||null===(i=i.vmap)||void 0===i?void 0:i.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,o=e.dp,a=n.count||2,i=[],s=1;s<=a;s++){var u={};u.adtag=this._createCustomAdVastUrl(n["vast_"+s])||t,u.position=r,u.dp=n["vast_"+s]?void 0:o,i.push(u)}return i}},{key:"_get_vmap_config",value:function(e){var t,r,n,o;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===(o=this.gameData)||void 0===o||null===(o=o.pAds)||void 0===o?void 0:o.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 o={id:this.topDomain||this.parentDomain,au:"display",ty:"display",aid:this.gameData.gameId,pgu:this.parentURL},a=new rC(this.gameData).checkCustomParams();a&&(o.cp=a);var i=encodeURIComponent(it.encode(JSON.stringify(o)));fetch("https://tag.atom.gamedistribution.com/v1/atm?ar=".concat(i)).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 o=e.p/100;this.msgrt.send("dp.fp",{message:o}),t({params:{fp:o},error_url:"https://tag.atom.gamedistribution.com/v1/err?ar=".concat(i),impression_url:"https://tag.atom.gamedistribution.com/v1/imp?ar=".concat(i)})}.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,o={id:this.topDomain||this.parentDomain,au:e||"unknown",ty:"video",aid:this.gameData.gameId,pgu:this.parentURL},a=Object.keys(o).map(function(e){return r(this,n),"".concat(e,"=").concat(encodeURIComponent(o[e]))}.bind(this)).join("&");encodeURIComponent(it.encode(JSON.stringify(o)));var i=null===(t=this.gameData.promo)||void 0===t?void 0:t.rainbow,s=null==i?void 0:i.enabled,u="https://tag.atom.gamedistribution.com/v1/rainbow/?".concat(a),c=s?u:void 0;return function(){r(this,n),Ou.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 o=this;return new Promise(function(){var a=t(d.mark((function t(a){var i,s,u,c,l,f=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,o._isDP(e)){t.next=5;break}return o.msgrt.send("dp.na",{message:"rule"}),t.abrupt("return",a());case 5:s={id:o.topDomain||o.parentDomain,au:e||"unknown",ty:"video",aid:o.gameData.gameId,pgu:o.parentURL},(u=new rC(o.gameData).checkCustomParams())&&(s.cp=u),c=encodeURIComponent(it.encode(JSON.stringify(s))),null==n||n.adapterIndex,null==n||n.isLastAdapter,l=null===(i=o.gameData.promo)||void 0===i?void 0:i.rainbow,!1,null==l||l.enabled,null==n||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 o.msgrt.send("dp.na",{message:"atom"}),a();var t=e.p/100;o.msgrt.send("dp.fp",{message:t}),a({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),o.msgrt.send("dp.err",{message:(null==e?void 0:e.message)||e}),a()}.bind(this)),t.next=20;break;case 16:t.prev=16,t.t0=t.catch(0),o.msgrt.send("dp.err",{message:(null===t.t0||void 0===t.t0?void 0:t.t0.message)||t.t0}),a();case 20:case"end":return t.stop()}}),t,this,[[0,16]])})));return function(e){return a.apply(this,arguments)}}())}},{key:"_extend_dp_with_adsense",value:function(e,t){if(e&&t)try{var r,n=new O(t.vastUrl,!0);if(null===(r=n.query)||void 0===r||!r.cust_params)return;var o=l.parse(n.query.cust_params);if(!o.tnl_asset_id)return;o.adsense=1,n.query.cust_params=l.stringify(o,!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 o,a=new O(e.url,!0);if(null===(o=a.query)||void 0===o||!o.cust_params)return;var i=l.parse(a.query.cust_params);i.bfa=n,i.adsense=0,a.query.cust_params=l.stringify(i,!1),e.url=a.toString(),t.vastUrl=e.url}catch(e){}finally{this.msgrt.send("bfa",{message:n})}}},{key:"_init_hl_script",value:(c=t(d.mark((function e(t){var n,o,a,i,s,u,c,l,f=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this._getPrebidScripts(),o=n[0],a=function(){return r(this,f),!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||[],(i=new URL(o)).searchParams.append("referer",window.idhb.options.configUrl),o=i.href,e.next=13,vt(o,"gdsdk_prebid",{alternates:n,error_prefix:"Blocked:",exists:function(){return r(this,f),window.idhb.requestAds}.bind(this)});case 13:s=lt("ch",window.location.href),u=lt("ch_date",window.location.href),c={tnl_content_category:this.category.toLowerCase()},s&&(c.channel=s),u&&(c.ch_date=u),(l=lt("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,o,a=e.slotId.split("@");a=1===a.length?a[0]:a[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),this._broadcast("DISPLAYAD_ERROR",{message:a,status:"warning"})):(null!==(o=this.atom_display)&&void 0!==o&&o.impression_url&&(fetch(this.atom_display.impression_url).catch(function(e){r(this,t)}.bind(this)),delete this.atom_display),this._broadcast("DISPLAYAD_IMPRESSION",{message:a,status:"success"}))}catch(e){}}.bind(this));case 23:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"_init_ima_script",value:(u=t(d.mark((function e(t){var n,o,a=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"],o=this.options.debug?n[0]:n[1],e.next=4,vt(o,"gdsdk_ima",{alternates:n,error_prefix:"Blocked:",exists:function(){return r(this,a),window.google&&window.google.ima}.bind(this)});case 4:case"end":return e.stop()}}),e,this)}))),function(e){return u.apply(this,arguments)})},{key:"_init_afg_script",value:(s=t(d.mark((function e(t){var n,o,a,i,s=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(i={}).crossorigin="anonymous",i["data-ad-client"]=(null==t||null===(n=t.adsense_client)||void 0===n?void 0:n.length)>0?t.adsense_client:"ca-pub-2316275586951220",i["data-ad-frequency-hint"]="30s",i.allow="autoplay",(null==t||null===(o=t.adsense_channel)||void 0===o?void 0:o.length)>0&&(i["data-ad-channel"]=t.adsense_channel),(null==t||null===(a=t.adsense_host)||void 0===a?void 0:a.length)>0&&(i["data-ad-host"]=t.adsense_host),!0===(null==t?void 0:t.adsense_adbreak_test)&&(i["data-adbreak-test"]="on"),e.next=14,vt("https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js","afg",{error_prefix:"Blocked:",exists:function(){return r(this,s),!!window.adsbygoogle}.bind(this),attrs:i});case 14:window.adsbygoogle=window.adsbygoogle||[],window.adsbygoogle.push({sound:"on",preloadAdBreaks:"on"});case 16:case"end":return e.stop()}}),e,this)}))),function(e){return s.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",o=r||!0,a=document.getElementsByClassName("adsbygoogle"),i=0;i<a.length;i++){var s,u=a[i],c=u&&(null===(s=u.children[0])||void 0===s?void 0:s.children[0]);c&&"IFRAME"===c.tagName&&c.style.height!==n&&(c.style.height=n,o&&(c.parentElement.style.overflow="auto"))}}catch(e){"out-of-bounds error: ".concat(e.message)}}},{key:"clearSession",value:function(){this.requestRunning=!1}},{key:"_startAdsensePlacementRewardedAd",value:(i=t(d.mark((function e(t){var n,o,a,i,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),Ou.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,o=function(){r(this,f),n=!0,this.fixOutOfBounds(),this._broadcast("CONTENT_PAUSE_REQUESTED",{message:"",status:"success"}),this._broadcast("IMPRESSION",{message:"",status:"success"})}.bind(this),a=function(){r(this,f),n=!0,this._broadcast("CONTENT_RESUME_REQUESTED",{message:"",status:"success"})}.bind(this),i=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||(Du("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:o,afterAd:a,adDismissed:i,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 i.apply(this,arguments)})},{key:"_startAdsensePlacementPreroll",value:(a=t(d.mark((function e(t){var n,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),Ou.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,a),this.adPlacementEventReceived=!0}.bind(this),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("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"}),i={type:"preroll",beforeAd:n,adBreakDone:o},window.adsbygoogle.push(i),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 i}),e,this,[[1,18]])}))),function(e){return a.apply(this,arguments)})},{key:"_startAdsensePlacementStart",value:(o=t(d.mark((function e(t){var n,o,a,i=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,i),Ou.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,i),this.adPlacementEventReceived=!0,this.fixOutOfBounds(),this._broadcast("CONTENT_PAUSE_REQUESTED",{message:"",status:"success"}),this._broadcast("IMPRESSION",{message:"",status:"success"})}.bind(this),o=function(){r(this,i),this.adPlacementEventReceived=!0,this._broadcast("CONTENT_RESUME_REQUESTED",{message:"",status:"success"})}.bind(this),this.adPlacementEventReceived=!1,a=function(e){r(this,i),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:o,adBreakDone:a},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,o=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)var a=(null==e?void 0:e.adType)||"default",i=null===(n=this.gameData)||void 0===n||null===(n=n.ad_blcks)||void 0===n||null===(n=n.adsenseTimeout)||void 0===n?void 0:n.timeout,s=(null==i?void 0:i[a])||(null==i?void 0:i.default)||15,u=setTimeout(function(){r(this,o),this.adPlacementEventReceived||(this._broadcast("AD_ERROR",{message:"timeout",status:"error"}),this.adPlacementEventReceived=!1,this.requestRunning=!1),clearTimeout(u)}.bind(this),1e3*s)}},{key:"_startTimeoutForOpus",value:function(){var e=this,t=setTimeout(function(){r(this,e),this.opusEventReceived||(this._broadcast("AD_ERROR",{message:"timeout",status:"error"}),this.opusEventReceived=!1,this.requestRunning=!1),clearTimeout(t)}.bind(this),5e3)}},{key:"_startAdsensePlacementNext",value:(n=t(d.mark((function e(t){var n,o,a,i=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,i),Ou.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,i),this.adPlacementEventReceived=!0,this.fixOutOfBounds(),this._broadcast("CONTENT_PAUSE_REQUESTED",{message:"",status:"success"}),this._broadcast("IMPRESSION",{message:"",status:"success"})}.bind(this),o=function(){r(this,i),this.adPlacementEventReceived=!0,this._broadcast("CONTENT_RESUME_REQUESTED",{message:"",status:"success"})}.bind(this),this.adPlacementEventReceived=!1,a=function(e){r(this,i),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:o,adBreakDone:a},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 n.apply(this,arguments)})},{key:"_send",value:function(e,t){try{var r=this.msgrt,n=r._layout,o=r._ua,a={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:o.browser.name,brvs:o.browser.version,osnm:o.os.name,osvs:o.os.version,dvmd:o.device.model,w:n.w,h:n.h}};return fetch("https://tag.atom.gamedistribution.com/v1/dmp?ar=".concat(encodeURIComponent(it.encode(JSON.stringify(a)))))}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 xR).get();return r=BC(BC({},r),n),r=t?BC(BC({},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===st.Rewarded)t="reward";else if(r===st.Interstitial){var n,o;if(this._isAfgPositionStart(e))t=null===(n=this.gameData.pAds)||void 0===n||!n.enabled||null!==(o=this.gameData.loader)&&void 0!==o&&o.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,o=!1;["AD_ERROR"].some(function(t){return r(this,n),t===e}.bind(this))&&(o=!this.adContext.isLastAdapter||this.adContext.extraPromoRunOnFail);var a=this.getCurrentAdPosition(this.adContext.adType);this.eventBus.broadcast(e,BC(BC({},t),{},{skipForward:o,adPosition:a}))}}]),e}(),zC=L((function e(r){var n=this;I(this,e),Iu(this,"load",t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u_(n.moduleName);case 2:n.module=e.sent;case 3:case"end":return e.stop()}}),e)})))),Iu(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 o=r.package||"gd-sdk-stone-dynamic",a=r.package_version||"1.1.1",i=r.template||"puzzle",s=r.dependencies||[];this.moduleName="GDPromoByOrbit",this.moduleDefault=i.charAt(0).toUpperCase()+i.slice(1),this.moduleConfig={source:"https://pm.azerioncircle.com/@bygd/".concat(o,"/").concat(a,"/dist/").concat(i.toLowerCase(),"/iife/index.js"),dependencies:s},i_(this.moduleName,this.moduleConfig)})),HC=L((function e(r){var n=this;I(this,e),Iu(this,"load",t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u_(n.moduleName);case 2:n.module=e.sent;case 3:case"end":return e.stop()}}),e)})))),Iu(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 o=r.package||"gd-sdk-air-dynamic",a=r.package_version||"1.2.0",i=r.template||"pluto",s=r.dependencies||[];this.moduleName="GDSplashDynamic",this.moduleDefault=i.charAt(0).toUpperCase()+i.slice(1),this.moduleConfig={source:"https://pm.azerioncircle.com/@bygd/".concat(o,"/").concat(a,"/dist/").concat(i.toLowerCase(),"/iife/index.js"),dependencies:s},i_(this.moduleName,this.moduleConfig)})),ZC=function(e,t){console.log(e,t)},KC={},qC={},WC=null;function VC(){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 KC.version=n,KC.frame=e,KC.function=r,KC.version}function YC(e){var t=this;return WC||(WC=new Promise(function(n){function o(t,r){if(ZC("Received a response from CMP",t),r){var o,a;if(!1!==t.gdprApplies)return"tcloaded"===t.eventStatus||"useractioncomplete"===t.eventStatus?(("boolean"!=typeof(a=(o=t)&&"boolean"==typeof o.gdprApplies?o.gdprApplies:e.defaultGdprScope)||!0===a&&"string"!=typeof o.tcString)&&n({result:"cmpUnexpectedResponse",cmp:KC,consentData:o}),void n({result:"ok",consentData:t})):void 0;n({result:"ok",consentData:t})}else n({result:"cmpCallFailed"})}r(this,t),VC(),KC.frame?2===KC.version?(ZC("TCF v2 CMP found. Fetching the consent."),KC.function?(ZC("CMP API is directly accessible, calling it now..."),KC.function("addEventListener",KC.version,o)):(ZC("CMP API is outside the current iframe, calling it now..."),function(e,t,n){var o=this,a="__tcfapi";function i(e){var t="".concat(a,"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!==qC[n.callId]&&qC[n.callId](n.returnValue,n.success)}}window[a]=function(e,n,i,s){r(this,o);var u=Math.random()+"",c=Iu({},"".concat(a,"Call"),{command:e,parameter:s,callId:u,version:n});qC[u]=i,t.postMessage(c,"*")}.bind(this),window.addEventListener("message",i,!1),window[a](e,KC.version,n)}("addEventListener",KC.frame,o))):n({result:"cmpVersionNotV2",cmp:KC}):n({result:"cmpNotFound"})}.bind(this)),WC)}var JC=function(){function e(){I(this,e),this.productName="Game Distribution"}var r;return L(e,[{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:(r=t(d.mark((function e(t,r){var n,o,a,i,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(o=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 a=encodeURIComponent(this.productName),i=encodeURIComponent(o),e.prev=8,s="https://tracker-v4.gamedock.io/v1/events-tracker/track/product/".concat(a,"/user_id/").concat(i),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(a,"/user_id/").concat(i),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(e,t){return r.apply(this,arguments)})}]),e}(),QC=new JC;function XC(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 eP(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 eP(e,t)}(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,i=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw a}}}}function eP(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 tP,rP=function(e){var t=this,n=e.src,o=e.attributes,a=e.target,i=e.isAsync;return new Promise(function(e,s){var u=this;r(this,t);try{var c=document.createElement("script");if(c.async=null==i||i,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,o){var d,l=XC(o);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()}}a||(a=document.head),a.appendChild(c)}catch(e){var m="Error on script load catch, Error: ".concat(n);console.log(m,e),s(m)}}.bind(this))},nP="ffd4774b-99ae-4464-8f40-3afa12b4692e",oP=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,rP({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,rP({src:"https://cdn.cookielaw.org/consent/".concat(nP,"/OtAutoBlock.js"),attributes:[{key:"id",value:"gd-cookie-pro-autoblock"}],isAsync:!1});case 5:return e.next=7,rP({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:nP}],isAsync:!1});case 7:r=void 0,n=void 0,o=void 0,r=(t={inlineScript:"function OptanonWrapper() { }"}).inlineScript,n=t.target,(o=document.createElement("script")).text=r,n||(n=document.head),n.appendChild(o),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,o}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}(),aP=new RR.exports.EventEmitter,iP={"https://games.softgames.com":{"splash-hidden":"splash-hidden"},"https://sg.gamedistribution.com":{"splash-hidden":"splash-hidden"},"https://html5.gamedistribution.com":{key:"value"}},sP=!1;window.addEventListener("message",(function(e){var t=this,n=e.data,o=e.origin,a=n.type;if(Object.keys(iP).some(function(e){return r(this,t),e===o}.bind(this))&&(null==n||!n.__tcfapiCall)){var i=!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 o="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)&&(sP=!0),o&&sP&&(sP=!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&&i){if("https://html5.gamedistribution.com"===o){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(a){var p=iP[o][a];p&&aP.emit(p,n)}}}),!1);var uP=new Uint8Array(16);function cP(){if(!tP&&!(tP="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 tP(uP)}var dP=/^(?:[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 lP=[],fP=0;fP<256;++fP)lP.push((fP+256).toString(16).substr(1));function pP(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=(lP[e[t+0]]+lP[e[t+1]]+lP[e[t+2]]+lP[e[t+3]]+"-"+lP[e[t+4]]+lP[e[t+5]]+"-"+lP[e[t+6]]+lP[e[t+7]]+"-"+lP[e[t+8]]+lP[e[t+9]]+"-"+lP[e[t+10]]+lP[e[t+11]]+lP[e[t+12]]+lP[e[t+13]]+lP[e[t+14]]+lP[e[t+15]]).toLowerCase();if(!function(e){return"string"==typeof e&&dP.test(e)}(r))throw TypeError("Stringified UUID is invalid");return r}function hP(e,t,r){var n=(e=e||{}).random||(e.rng||cP)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=n[o];return t}return pP(n)}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}var vP="__msgr",gP=hP(),bP=function(e){var t=this;if(!window[vP]){var n=document.createElement("iframe");if(n.src="https://static.gamedistribution.com/message/index.html",n.style.display="none",n.name=vP,document.body.appendChild(n),window!==window.top){var o={gameId:e.gameId,target:e.evnts.domain,token:gP,event_name:"TokenGenerated",timestamp:Date.now()};n.onload=function(){wP(o)},setInterval(function(){r(this,t),o.timestamp=Date.now(),o.event_name="Heartbeat",wP(o)}.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?mP(Object(r),!0).forEach((function(t){Iu(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}({},e.data);if(!n.event_name)return;n.token=gP,wP(n)}catch(e){console.error("GD Messager Error",e.message)}}.bind(this),!1)},yP=function(e){try{var t={gameId:e.game.gameId,target:e.game.evnts.domain,event_name:e.event,timestamp:Date.now()},r=_P(window);r!==window.top&&(null==r||r.postMessage(t,"https://html5.gamedistribution.com"))}catch(e){}},_P=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}},wP=function(e){try{window[vP]&&window[vP].postMessage(e,"*")}catch(e){console.log("GD Messager initialization, please wait....")}},AP=function(){function e(t){I(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,o,a;return L(e,[{key:"run",value:function(e){var n=e.duration,o=this;return new Promise(function(){var e=t(d.mark((function e(t,a){var i,s=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,o.add();case 3:i=o.show(),setTimeout(function(){r(this,s);try{o.hide(),t({success:i})}catch(e){a(e)}}.bind(this),1e3*n),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),a(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:(a=t(d.mark((function e(){var r,n,o,a=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),a.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)}}()),(o=document.createElement("iframe")).src=this.promo_data.renderer_url,o.setAttribute("frameborder",0),this.addStyles(),this.promo.classList.add("gd__promo"),o.classList.add("gd__promo__iframe"),this.promo.appendChild(o),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 a.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:(o=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 o.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 xP(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 kP(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xP(Object(r),!0).forEach((function(t){Iu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xP(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function EP(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 SP(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 SP(e,t)}(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,i=!0,s=!1;return{s:function(){r=r.call(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){s=!0,a=e},f:function(){try{i||null==r.return||r.return()}finally{if(s)throw a}}}}function SP(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 RP,DP=function(){function e(t){var n=this;I(this,e),Iu(this,"_getAdTypeByAfgPosition",function(e){var t=this;r(this,n);var o={preroll:["preroll","start"],midroll:["next"],rewarded:["reward"]},a=Object.keys(o).find(function(n){var a=this;return r(this,t),o[n].some(function(t){return r(this,a),t===e.params.position}.bind(this))}.bind(this));return a||"midroll"}.bind(this)),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._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 Lt}var n,o;return L(e,[{key:"runAdFlow",value:(o=t(d.mark((function e(t){var n,o,a,i,s,u,c,l,f,p,h,m,v,g,b,y,_,w,A,x,k,E,S,R,D,T,O,I,C,P,L,M,j,$,U,B,N,F,G,z,H,Z,K,q,W=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.adRequest=t,u=this._getAdTypeByAfgPosition(t),t.params.adTypeFound=u,t.params.position,c=this._getAdFlow(u),l=this._gameData,f=l.afg_disabled,p=null===(n=t.params)||void 0===n?void 0:n.isGift,null===(o=t.params)||void 0===o||o.position,h=null===(a=l.promo)||void 0===a?void 0:a.rainbow,m=(null==h?void 0:h.enabled)&&(null===(i=h.position)||void 0===i?void 0:i[u]),v=null==h?void 0:h.gift,g=m&&null!=h&&h.duration?null==h?void 0:h.duration:5,b=f?c.filter(function(e){return r(this,W),"adsense"!==e}.bind(this)):c,y=this.get_ad_system_init_result(),_=y.afg,w=y.ima,A=null==l||null===(s=l.ad_blcks)||void 0===s||null===(s=s.removeOtherAdaptors)||void 0===s?void 0:s.enabled,this.anyAdBlocking=!_||!w,this.bothAdBlocking=!_&&!w,this.adsBlocked=A&&this.anyAdBlocking||this.bothAdBlocking,this.adsBlocked?(Du("gd-adflow adsBlocked so changing the flow"),b=[]):(_||(b=b.filter(function(e){return r(this,W),"adsense"!==e}.bind(this))),w||(b=b.filter(function(e){return r(this,W),"ima"!==e}.bind(this)))),x=!1,k=!1,E=[],S=0,R=!1,T=EP(b),e.prev=30,T.s();case 32:if((O=T.n()).done){e.next=68;break}return I=O.value,t.params.adapter=I,C=S===b.length-1,P=p&&v||!p,L=C&&m&&P,t.params=kP(kP({},t.params),{},{adapterIndex:S,isLastAdapter:C,shouldFail:!1,extraPromoRunOnFail:L}),function(){r(this,W),Ou.firstSuccessOrder&&!isNaN(Ou.firstSuccessOrder)&&(t.params.shouldFail=S<Ou.firstSuccessOrder)}.bind(this),Du("gd-adflow, before adInvoke",S,I,t.params.shouldFail),e.next=43,this.adInvoke(t);case 43:if(M=e.sent,j=M.success,$=M.args,U=M.isSkipped,B=M.noVast,N=M.t4r,!j){e.next=57;break}return Du("gd-adflow, adapter-result-success",S,I,$,N),x=!0,k=!(null==$||!$.isPromoSuccess),D=N,e.abrupt("break",68);case 57:if(Du("gd-adflow, adapter-result-failure",S,I,$.message),S++,E.push($.message),!U){e.next=62;break}return e.abrupt("break",68);case 62:if(!B){e.next=65;break}return this._runAutoResume(),e.abrupt("break",68);case 65:R=L;case 66:e.next=32;break;case 68:e.next=73;break;case 70:e.prev=70,e.t0=e.catch(30),T.e(e.t0);case 73:return e.prev=73,T.f(),e.finish(73);case 76:if(!R){e.next=82;break}return e.next=79,new AP(this).run({duration:g});case 79:e.sent.success&&(k=!0);case 82:return function(){var e;r(this,W),Ou.disableGift&&null!==(e=l.gft)&&void 0!==e&&e[u].enabled&&(l.gft[u].enabled=!1)}.bind(this),F=E.join(" /n"),x?(this._setAdRequestTimer(),this._onResumeGame("Advertisement(s) are done. Start / resume the game.","success"),this._giveGift(u)):(this._onResumeGame(F,"warning"),this._giveGift(u)),G="-1",z="none",x?(G="index_".concat(S),z=b[S]):k&&(G="promo",z="promo"),H=this.get_session_id(),this.anyAdBlocking&&"-1"===G?(Z="rewarded"===u?"rewarded":this.blockedAdsMap.preroll?"midroll":"preroll",this.blockedAdsMap[Z]=this.blockedAdsMap[Z]?this.blockedAdsMap[Z]+1:1,JSON.stringify(this.blockedAdsMap),this._msgrt.send("adflow.blocked.pos",{message:"".concat(Z)}),this.send_atom_event("gd.adflow",{adBlocker:!0,afgBlocked:!_,imaBlocked:!w,adType:Z,sessionId:H,successAdapter:"none",adFlowIndex:G})):(K=Iu(Iu(Iu(Iu({},"adflow.all.index",{message:"".concat(G)}),"adflow.all.success_adapter",{message:"".concat(z)}),"adflow.".concat(u,".index"),{message:"".concat(G)}),"adflow.".concat(u,".success_adapter"),{message:"".concat(z)}),Object.keys(K).forEach(function(e){r(this,W);var t=K[e];this._msgrt.send(e,t)}.bind(this)),this.send_atom_event("gd.adflow",{adFlowIndex:G,successAdapter:z,adBlocker:!1,afgBlocked:!_,imaBlocked:!w,adType:u,sessionId:H,t4r:D})),q={adType:u},this.eventBus.broadcast("AD_FLOW_COMPLETE",q),e.abrupt("return",q);case 95:case"end":return e.stop()}}),e,this,[[30,70,73,76]])}))),function(e){return o.apply(this,arguments)})},{key:"adInvoke",value:(n=t(d.mark((function e(n){var o=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,a){var i,s,u,c,l=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return i="main.showad.".concat(n.params.adapter,".").concat(n.params.adapterIndex),s={},u=function(e){r(this,l),o._eventBus.unsubscribeScope(i);var n="dismissed"===(null==e?void 0:e.message);t({success:!1,args:e,isSkipped:n,noVast:e.noVast})}.bind(this),c=function(e){r(this,l),o._eventBus.unsubscribeScope(i),t({success:!0,args:e,t4r:s})}.bind(this),o._eventBus.subscribe("AD_ERROR",u,i),o._eventBus.subscribe("AD_SDK_CANCELED",u,i),o._eventBus.subscribe("AD_SUCCESS",c,i),o._eventBus.subscribe("AD_T4R",function(){r(this,l),s.loaded=!0}.bind(this),i),o._eventBus.subscribe("AD_T4R_CLICK",function(){r(this,l),s.t4rClick=!0}.bind(this),i),o._eventBus.subscribe("AD_T4R_VIDEO",function(){r(this,l),s.t4rVideo=!0}.bind(this),i),o._eventBus.subscribe("AD_CLICK",function(){r(this,l),s.click=!0}.bind(this),i),o._eventBus.subscribe("AD_BIDDER",function(e){r(this,l),s.bidder=null==e?void 0:e.bidder}.bind(this),i),o._eventBus.subscribe("AD_T4R_NONE",function(e){r(this,l),s.fail_reason=null==e?void 0:e.reason}.bind(this),i),e.prev=13,e.next=16,o._adInstance.startAd(n);case 16:e.next=22;break;case 18:e.prev=18,e.t0=e.catch(13),Tu("gd-adflow startAd error",e.t0),t({success:!1,err:e.t0});case 22:case"end":return e.stop()}}),e,this,[[13,18]])})));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,o,a,i=this,s=void function(){if(r(this,i),Ou.customAdFlow)return JSON.parse(Ou.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!==(o=u)&&void 0!==o&&null!==(o=o.adapters)&&void 0!==o&&o[e]?null===(a=u)||void 0===a||null===(a=a.adapters)||void 0===a?void 0:a[e]:c}}]),e}(),TP=new RR.exports.EventEmitter,OP=["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,o=e.origin,a=e.source;if(OP.some(function(e){return r(this,t),e===o}.bind(this))&&(null==n||!n.__tcfapiCall)){var i=n.system;n.action;var s="aeriaExternalHostsConnector"===i;if("Softgames"===i)RP=a,(window.parent||window).postMessage(n,"*"),TP.emit("aeria-event",n);else if(s){RP&&RP.postMessage(n,"*");var u=window.parent||window;u&&u.postMessage(n,"*")}}}),!1);var IP="https://html5.gamedistribution.com",CP="parent-data-request",PP="parent-data-response",LP=function(){function e(){I(this,e)}var n;return L(e,[{key:"init",value:function(e){var t=this;this._registerForDataRequests(e),this._askForParentFrameData().then(function(n){if(r(this,t),n){var o=n.adRequestTimer;e.adRequestTimer=o,e.adRequestTimer}}.bind(this))}},{key:"_registerForDataRequests",value:function(e){var t=this;window.addEventListener("message",function(n){r(this,t);var o=n.data,a=n.origin,i=n.source,s=o.type;if(o.value,a===IP&&s===CP){var u={adRequestTimer:e.adRequestTimer};i.postMessage({type:PP,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 o=this;r(this,t);var a=!1;window.addEventListener("message",(function(t){var r=t.data,n=t.origin;t.source;var o=r.type,i=r.value;n===IP&&o===PP&&(e(i),a=!0)})),setTimeout(function(){r(this,o),a||e()}.bind(this),1e3);var i={type:CP};window.parent.postMessage(i,"*")}.bind(this)));case 1:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})}]),e}(),MP=new LP,jP={SDKExistsOnUpperFrame:!1},$P=function(){function e(){I(this,e),this.adContainer=window.document.body}return L(e,[{key:"show",value:function(){this.adBlockerOverlay.style.display="block",this.adBlockerButton.style.display="block"}},{key:"hide",value:function(){this.adBlockerOverlay.style.display="none"}},{key:"add",value:function(){var e=this;try{this.addStyles();var t=document.createElement("div");t.id="gd__adblocker__button",t.setAttribute("title","AdBlocker"),t.classList.add("gd__adblocker__button"),t.onclick=function(){r(this,e),this.hide(),window.location.reload()}.bind(this);var n=document.createElement("p");n.innerText="Continue",t.appendChild(n),this.adBlockerButton=t;var o=document.createElement("div");o.id="gd__adblocker__logo",o.setAttribute("title","AdBlocker"),o.classList.add("gd__adblocker__logo"),this.adBlockerLogo=o;var a=document.createElement("p");a.id="gd__adblocker__text",a.classList.add("gd__adblocker__text1"),a.innerText="Thanks for playing!",this.adBlockerText1=a;var i=document.createElement("p");i.id="gd__adblocker__text",i.classList.add("gd__adblocker__text1"),i.innerText="It seems you’re using a plugin to block advertising within this game.To ensure the game works properly and to support our game creators, we kindly ask that you disable your ad blocker.",this.adBlockerText2=i;var s=document.createElement("p");s.id="gd__adblocker__text",s.classList.add("gd__adblocker__text1"),s.innerText="Thank you!",this.adBlockerText3=s;var u=document.createElement("div");u.id="gd__adblocker__container",u.classList.add("gd__adblocker__container"),u.appendChild(this.adBlockerText1),u.appendChild(this.adBlockerText2),u.appendChild(this.adBlockerText3),u.appendChild(this.adBlockerButton),this.adBlockerContainer=u;var c=document.createElement("div");c.id="gd__adblocker__overlay",c.classList.add("gd__adblocker__overlay"),c.appendChild(this.adBlockerContainer),this.adBlockerOverlay=c,this.adContainer.appendChild(this.adBlockerOverlay)}catch(e){console.log("AdBlocker error",e)}}},{key:"addStyles",value:function(){var e=document.body||document.getElementsByTagName("body")[0];this.addStylesheet("gd__adblocker__style",e,"\n .gd__adblocker__button {\n text-align: center;\n width: 90%;\n height: 50px;\n position: absolute;\n display: none;\n z-index: 2000;\n cursor: pointer;\n bottom: calc(10% - 20px); /* Container'ın altından 20px yukarıda */\n left: 5%; /* Container'ın solundan %5 içeride */\n right: 5%; /* Container'ın sağından %5 içeride */\n font-size: large;\n font-family: monospace;\n background-color: #ff8c1c;\n border-radius: 50px;\n color: white;\n margin: 0 auto;\n }\n\n .gd__adblocker__button > p {\n position: relative;\n text-align: center;\n margin: 0 auto;\n height: 100%;\n top: 30%;\n color: white;\n }\n\n .gd__adblocker__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(20% - 50px);\n left: calc(50% - 50px);\n margin: 0;\n border-radius: 50%;\n }\n\n .gd__adblocker__container {\n position: absolute;\n z-index: 2000;\n cursor: pointer;\n border-radius: 20px;\n border: 5px solid #06b8a2;\n margin: 0 auto;\n top: 10%;\n left: 10%;\n right: 10%;\n bottom: 10%;\n max-width: 80%; \n max-height: 80%; \n width: auto; \n height: auto; \n }\n \n .gd__adblocker__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,1);\n z-index: 1999;\n cursor: pointer;\n }\n\n .gd__adblocker__text1 {\n text-align: center;\n top: 25%;\n position: relative;\n font-family: monospace;\n color: white;\n margin: 10px;\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 UP(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 BP(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?UP(Object(r),!0).forEach((function(t){Iu(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):UP(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var NP=hP(),FP=null,GP=null,zP=function(){function e(t){var n,o,a,i=this;if(I(this,e),FP)return FP;FP=this,this.blockedAdsMap={},this._defaults=this._getDefaultOptions(),this._extendDefaultOptions(this._defaults,t),this._version=t.version||"0.0.0",this._bridge=this._getBridgeContext(),this._location=new xR,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===(o=s.partner.domain)||void 0===o?void 0:o.value),c=null==s||null===(a=s.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||c,this._parentDomain=this._bridge.parentDomain,this._topDomain=this._bridge.topDomain,this._topDomain=this._topDomain||u,this._topDomain,this._parentURL,this._isFullScreen=!1,this._giftCount={preroll:0,midroll:0,rewarded:0},this._mplus_count=0,this._setConsoleBanner(),this._initializeMessageRouter(),this._checkConsole(),this._subscribeToEvents(),this.sdkReady=new Promise(this._initializeSDKWithGameData.bind(this)),this.sdkReady.then(function(e){r(this,i),this._sdk_ready=!0}.bind(this)).catch(function(e){r(this,i),this._sdk_ready=!1}.bind(this)).finally(function(){var e,t,n,o=this;if((r(this,i),null===(e=this._gameData)||void 0===e||null===(e=e.directTokenUse)||void 0===e?void 0:e.enabled)&&this._blockDirectTokenURLEmbedding().blocked)return;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()&&(bP(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)),MP.init(this),this._send_gametag_data("sdk_init"),this._executeMidrollPlus()}.bind(this)),this._registerSGBridge(),this._whichFrame(),this._loadLocus()}var n,o,a,i,s,u,c,f,p,h,m,v,g;return L(e,[{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:(g=t(d.mark((function e(t){var r;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this._getGdModeIfExist()&&(r=mt()||"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 g.apply(this,arguments)})},{key:"_loadCMP",value:(v=t(d.mark((function e(){var t,r,n,o;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this._isMasterGameURL()){e.next=12;break}if(r=new xR,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===(o=this._gameData)||void 0===o||null===(o=o.cmp)||void 0===o||!o.checkDepthOnly){e.next=9;break}return e.next=7,oP();case 7:e.next=12;break;case 9:if("html5.gamedistribution.com"!==this._topDomain){e.next=12;break}return e.next=12,oP();case 12:case"end":return e.stop()}}),e,this)}))),function(){return v.apply(this,arguments)})},{key:"testConsent",value:function(){try{VC();t(d.mark((function e(){return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,YC({});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;aP.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());O(location.href,!0);if(this._whichFrame(),this._isMasterGameURL(),this._isExtHostedGameURL(),this._isTokenGameURL(),this._isHostHTML5Domain(),this._isExternalHoster(),location.href,document.referrer,t)try{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._bridge.isCoreSDKMode&&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:(m=t(d.mark((function e(t,n){var o,a,i,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:this._bridge.isCoreSDKMode=(null===(o=this._gameData.disableAds)||void 0===o?void 0:o.default)||!1,this._safeInit(),this._checkGameId(),this._checkGameDeleted(),this._checkBlocking(),this._changeMidrollInDebugMode(),void 0!==this._gameData.diagnostic&&void 0!==(null===(a=this._gameData.diagnostic)||void 0===a?void 0:a.close_ads)&&!1!==(null===(i=this._gameData.diagnostic)||void 0===i?void 0:i.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"}))}.bind(this)).catch(function(e){r(this,s);var t="".concat(e).startsWith("Error: Blocked:");Du("gd-adflow adsBlocked",t,e);var n=this.get_ad_system_init_result(),o=n.ima,a=n.afg;if(this.adsBlocked=!o&&!a,this._isMasterGameURL()||this._isExtHostedGameURL()){this.msgrt.send("adblocker.flw",{message:"".concat(this.adsBlocked?"blocked":"ok")});var i=o||a?o?a?"none":"adsense":"ima":"all";this.msgrt.send("adblocker.adapters",{message:"".concat(i)})}this._checkAdBlocker(),console.error(e.message||e)}.bind(this))),t(this._gameData),e.next=21;break;case 16:e.prev=16,e.t0=e.catch(0),this._sendSDKError(e.t0),this.onResumeGame(e.t0.message,"warning"),n(e.t0);case 21:case"end":return e.stop()}}),e,this,[[0,16]])}))),function(e,t){return m.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:"_checkAdBlocker",value:function(){var e=this;try{var t,n=this.get_ad_system_init_result(),o=n.ima,a=n.afg;if(!o||!a)if(null!==(t=this._gameData.rmblck)&&void 0!==t&&t.enabled){var i=wt("infdl1JMwI9JRg3U2MAIiQ==");this.adBlockerPage||(this.adBlockerPage=new $P,this.adBlockerPage.add()),i?setTimeout(function(){r(this,e),this.adBlockerPage.show()}.bind(this),500):setTimeout(function(){r(this,e),kt("infdl1JMwI9JRg3U2MAIiQ==",!0),this.adBlockerPage.show()}.bind(this),18e4)}}catch(e){}}},{key:"_extendDefaultOptions",value:function(e,t){var r=j(e);this.options=t?ut(r,t):r,this.options.gameId=this.options.gameId.trim()}},{key:"_setConsoleBanner",value:function(){if(!this._bridge.noConsoleBanner){var e=Eu.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:"_sendTunnlEvent",value:function(e){var t=this;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://tag.atom.gamedistribution.com/v1/hl/event?".concat(l.stringify(n))).catch(function(o){r(this,t),this._sendHLAnalyicsLog({query:BP(BP({},n),{},{error:null==o?void 0:o.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,n=this,o=e.query,a=e.eventType,i=this._gameData.dbglg;if(i&&i.enabled&&i.topics&&(1===a?t="hl.gameplay":2===a?t="hl.gameload":-1===a?t="hl.gameplay.error":-2===a&&(t="hl.gameload.error"),t)){if(!i.topics.some(function(e){return r(this,n),e===t}.bind(this)))return;this.adInstance._send_atom_event(t,o)}}},{key:"_sendAdRequestContext",value:function(e){this.msgrt.send("adctx",{message:e.adTag.bidder})}},{key:"_checkWhitelabelPartner",value:function(){this._whitelabelPartner=!1;var e=ft();e.hasOwnProperty("xanthophyll")&&"true"===e.xanthophyll&&(this._whitelabelPartner=!0,Rt("White label publisher","".concat(this._whitelabelPartner),"success"))}},{key:"_checkConsole",value:function(){try{if(!At)return;"developer.gamedistribution.com"===this._parentDomain||"developer.gamedistribution.com"===this._topDomain?(kt("gd_debug_ex",!0),kt("gd_disable_midroll_timer",!0),kt("gd_tag",!0)):"localhost:3000"===this._parentDomain&&(kt("gd_debug_ex",!0),kt("gd_disable_midroll_timer",!0)),wt("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 jt({gameId:this.options.gameId,hours:(new Date).getHours(),topDomain:this._topDomain,domain:this._parentDomain,referrer:this._parentURL,depth:gt(),version:Eu.version,tracking:this._userDeclinedTracking,whitelabel:this._whitelabelPartner,platform:mt(),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];vt(t[0],"GamedockSDK",{alternates:t}).then(function(){var t;r(this,e),GP=this._initGamedockTracker(window.GamedockSDK),this._sendGamedockEvent("pageview"),null!==(t=this._gameData.diagnostic)&&void 0!==t&&null!==(t=t.gameDock)&&void 0!==t&&t.adViewEvent&&GP.tracking.enableHeartBeatForPage({pageId:this.options.gameId,pageType:"game"},this._gameData.diagnostic.gameDock.heartbeatConfig),QC.track(GP,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=GP)||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"),vt(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,sD();case 2:if(e.sent){e.next=6;break}return console.log("locus-disabled"),e.abrupt("return");case 6:vt((t=["https://pm.azerioncircle.com/p/locus"])[0],"locus",{alternates:t}).catch(function(e){r(this,n),this._sendSDKError(e)}.bind(this)).then(function(){r(this,n)}.bind(this));case 8:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"_loadGoogleAnalytics",value:function(){var e=this,t=["https://www.google-analytics.com/analytics.js"];vt(t[0],"gdsdk_google_analytics",{alternates:t,error_prefix:"Blocked:",exists:function(){return r(this,e),window.ga}.bind(this)}).then(function(){r(this,e),window.ga("create","UA-60359297-49",{name:"gd",cookieExpires:7776e3,sampleRate:5},"auto"),this._bridge.noGAPageView||window.ga("gd.send","pageview"),this._userDeclinedTracking||window.ga("gd.set","anonymizeIp",!0)}.bind(this)).catch(function(t){r(this,e),this._sendSDKError(t)}.bind(this))}},{key:"_subscribeToEvents",value:function(){var e=this;this.eventBus=new Lt,Dt.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)),Tt.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,o=t.gameApiDomain;if(n){fetch("https://".concat(o,"/game/v2/hasapi/").concat(this.options.gameId,"?timestamp=").concat((new Date).valueOf()));try{var a=JSON.stringify({type:"GD_SDK_IMPLEMENTED",gameID:this.options.gameId});window.location!==window.top.location?window.top.postMessage(a,"*"):null!==window.opener&&window.opener.location!==window.location&&window.opener.postMessage(a,"*")}catch(e){}}TC()}.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"),SC(),null!==(n=this._gameData.diagnostic)&&void 0!==n&&null!==(n=n.gameDock)&&void 0!==n&&n.adViewEvent&&QC.track(GP,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:")){if(!this._bridge.noBlockerEvent&&(this.msgrt.send("error",{message:t.message}),!this._hasBlocker)){this._hasBlocker=!0;var n=Math.random()<.25;this.msgrt.send("adblck.src",{message:t.message}),n&&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=ZR().config;return"https://".concat(t.gameAPI,"/game/v4/get/").concat(this.options.gameId.replace(/-/g,""),"/?domain=").concat(e,"&v=").concat(Eu.version,"&localTime=").concat((new Date).getHours())}},{key:"_checkBlocking",value:(h=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=void 0===this._gameData.dmain||this._gameData.dmain,console.log("zxcv exclude, isAllowedDomain",n,t),t=t||n,(r.bloc_gard&&!0===r.bloc_gard.enabled||!t)&&this._redirectToBlocking();case 8:case"end":return e.stop()}}),e,this)}))),function(){return h.apply(this,arguments)})},{key:"_blockDirectTokenURLEmbedding",value:function(){var e,t=this._checkTokenGameUrl(),r=new xR,n="html5.gamedistribution.com"!==O(document.referrer).host,o=t&&!jP.SDKExistsOnUpperFrame&&r.get("depth.value")>0&&n;if(o&&(null===(e=this._gameData)||void 0===e||null===(e=e.directTokenUse)||void 0===e?void 0:e.enabled)){var a,i=null===(a=this._gameData)||void 0===a||null===(a=a.directTokenUse)||void 0===a?void 0:a.behavior;"to-loader"===i?this._redirectToLoaderFrame():"to-blocked-page"===i&&this._redirectToBlocking(!0)}return{blocked:o}}},{key:"_redirectToBlocking",value:function(e){var r=this;this.msgrt.send("blocked");var n=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:n.gameId,img:r._get_game_thumbnail_url(),title:n.title}));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,o,a,i;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=O(location.href,!0),o=BP(BP({},n.query),{},{rd:"1"}),a=l.stringify(o),i="https://html5.gamedistribution.com/".concat(r.gameId,"/?").concat(a),window.location.href=i;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;jC().disableMidrolltimer?e.midroll=0:At&&wt("gd_debug_ex")&&(wt("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,o=this._gameData,a=o.gdpr&&!0===o.gdpr.consent,i=o.loader,s=null===(t=o.promo)||void 0===t?void 0:t[null===(r=o.promo)||void 0===r||null===(r=r.template)||void 0===r?void 0:r.preroll];(o.preroll||(this.adRequestTimer=Date.now()),this.options.loader.enabled)?null!=s&&s.enabled?this._createPromoBeforeSplash(o,a):i.enabled&&!0!==(null===(n=i.splash)||void 0===n?void 0:n.skip)?this._createSplash(o,a):this.onResumeGame("Skipped splash.","success"):i.enabled||this._bridge.isTokenGameURL&&this._bridge.isExtHostedGameURL||(this.options.advertisementSettings.autoplay||a?null!=s&&s.enabled?this._createPromoBeforeSplash(o,a):!1!==i.enabled&&this._createSplash(o,a):null!=s&&s.enabled&&this._createPromo(o,a))}},{key:"_initializeVideoAd",value:(p=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=ut(this.options.advertisementSettings,t.sdk)),this.macros=new Mt({game:t,bridge:this._bridge}),this.adInstance=new GC(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=Eu,this.adInstance._send_atom_event("gd.location"),e.next=17,this.adInstance.start();case 17:case"end":return e.stop()}}),e,this)}))),function(){return p.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){Rt("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){Rt("DEVELOPER_ERROR",e.message,"warning")}}},{key:"_onEvent",value:function(e){Rt(e.name,e.message,e.status);try{this.options.onEvent({name:e.name,message:e.message,status:e.status,skipForward:e.skipForward,adPosition:e.adPosition})}catch(e){Rt("DEVELOPER_ERROR",e.message,"warning")}}},{key:"_getGameData",value:(f=t(d.mark((function e(){var t;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,rD();case 2:return t=e.sent,this.msgrt.setGameData(t),r=t.diagnostic,St=r,e.abrupt("return",t);case 6:case"end":return e.stop()}var r}),e,this)}))),function(){return f.apply(this,arguments)})},{key:"_createSplash",value:(c=t(d.mark((function e(t,n){var o,a,i,s,u=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._getSplashTemplate(t);case 2:return o=e.sent,a=new o(BP(BP({},this.options),{},{isConsentDomain:n,version:Eu.version}),t,this._parentDomain),e.next=6,cD();case 6:i=e.sent,s=i.enabled,a.on("playClick",function(){var e,t=this;if(r(this,u),n){var o=new Date;o.setDate(o.getDate()+90),document.cookie="ogdpr_tracking=1; expires=".concat(o.toUTCString(),"; path=/")}if(this._hideCMPButton(),s)window.gdsdk.showAd(st.Interstitial,{position:"preroll"}).catch(function(e){r(this,t),a.hide()}.bind(this));else{var i={position:"preroll"};(function(){r(this,t),Ou.firstAdapterModeAdsense&&(console.log("promo-test, set first adapter to adssense 1"),i.adapter="adsense")}).bind(this),this.showAd(st.Interstitial,i).catch(function(e){r(this,t)}.bind(this))}null!==(e=this._gameData)&&void 0!==e&&null!==(e=e.evnts)&&void 0!==e&&e.enabled&&(yP({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,u),a.hide()}.bind(this)),this.eventBus.subscribe("SDK_GAME_START",function(){r(this,u),a.hide()}.bind(this));case 12:case"end":return e.stop()}}),e,this)}))),function(e,t){return c.apply(this,arguments)})},{key:"_createPromoBeforeSplash",value:(u=t(d.mark((function e(t,n){var o,a,i,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:a=e.sent,(i=new a(BP(BP({},this.options),{},{isConsentDomain:n,version:Eu.version,template:null===(o=t.promo)||void 0===o||null===(o=o.template)||void 0===o?void 0:o.preroll}),t)).on("done",function(){r(this,s),i.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 u.apply(this,arguments)})},{key:"_createPromo",value:(s=t(d.mark((function e(t,n){var o,a,i,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:a=e.sent,(i=new a(BP(BP({},this.options),{},{isConsentDomain:n,version:Eu.version,template:null===(o=t.promo)||void 0===o||null===(o=o.template)||void 0===o?void 0:o.preroll}),t)).on("done",function(){r(this,s),i.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 s.apply(this,arguments)})},{key:"showBanner",value:function(){var e=this;this.showAd(st.Interstitial).catch(function(){r(this,e)}.bind(this))}},{key:"showAd",value:(i=t(d.mark((function e(r){var n,o=this,a=arguments;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>1&&void 0!==a[1]?a[1]:{},e.abrupt("return",new Promise(function(){var e=t(d.mark((function e(t,a){var i,s,u,c;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!o._autoResumeIfAdsAreDisabled(r||"interstitial")){e.next=5;break}return e.abrupt("return",t());case 5:return s={adType:r||"interstitial",params:n,adTimestamp:o.adRequestTimer},e.next=9,o.sdkReady;case 9:return u=e.sent,e.next=12,o.videoAdReady;case 12:if(null!==(i=o._gameData.lp)&&void 0!==i&&i.load||o._sendLoadedEvent(1),o._sendGamedockGamePlay(),o._rejectAdIfGameBlocked({gameData:u,adRequest:s}),o._rejectAdIfAdDisabled({gameData:u,adRequest:s}),o._rejectAdIfUnsupportedType({adRequest:s}),"rewarded"===r&&o._setGameRewardedFlag(),null!=n&&n.isGift||o._rejectAdIfAdRateHits({gameData:u,adRequest:s}),o.adInstance.attachAfgPosition(s),!o.adFlowRunning){e.next=22;break}return e.abrupt("return",t());case 22:return o.adFlowRunning=!0,c=new DP(o),e.next=26,c.runAdFlow(s);case 26:o.adFlowRunning=!1,t(),o._post_message({topic:"adrequest.instream"}),e.next=36;break;case 31:e.prev=31,e.t0=e.catch(0),o.adFlowRunning=!1,o.onResumeGame(e.t0.message,"warning"),a(e.t0.message);case 36:case"end":return e.stop()}}),e,null,[[0,31]])})));return function(t,r){return e.apply(this,arguments)}}()));case 2:case"end":return e.stop()}}),e)}))),function(e){return i.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,o=this._gameData.disableAds[e],a=n||o;return this._gameData.diagnostic,this._gameData.disableAds,a&&(this._runAutoResume(),r=!0),r}},{key:"_runAutoResume",value:function(){var e="CONTENT_PAUSE_REQUESTED",t="CONTENT_RESUME_REQUESTED";this.eventBus.broadcast(e,{name:e,message:"Auto pause when ads are disabled"}),this.eventBus.broadcast(t,{name:t,message:"Auto resume when ads are disabled"}),this.onResumeGame("Advertisement(s) are cancelled. Start / resume the game.","success")}},{key:"_giveGift",value:function(e){var t,r,n,o,a,i;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===(o=this._gameData)||void 0===o||null===(o=o.gft)||void 0===o||null===(o=o[e].durations[this._giftCount[e]])||void 0===o?void 0:o.after)===this.adInstance.adMidrollCount&&this.decideToGiveAGift(e);break;case"rewarded":null!==(a=this._gameData)&&void 0!==a&&null!==(a=a.gft)&&void 0!==a&&a[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.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=e.adRequest;if(t.disableAds[r.adType]||this._whitelabelPartner)throw new Error("Advertisements are disabled.")}},{key:"_rejectAdIfUnsupportedType",value:function(e){var t=e.adRequest;if(t.adType){if(t.adType!==st.Interstitial&&t.adType!==st.Rewarded)throw new Error("Unsupported an advertisement type: ",t.adType)}else t.adType=st.Interstitial}},{key:"_rejectAdIfRewardedDisabled",value:function(e){var t=e.gameData;if(e.adRequest.adType===st.Rewarded&&!t.rewardedAds)throw new Error("Rewarded ads are disabled.")}},{key:"_rejectAdIfAdRateHits",value:function(e){var t,r,n,o=e.gameData,a=e.adRequest,i=null;a.adType===st.Interstitial&&null!==(t=o.diagnostic)&&void 0!==t&&null!==(t=t.useMidrollIndex)&&void 0!==t&&t.enabled&&this.adInstance.noPreroll?this.adInstance.adMidrollCount>(null===(r=o.diagnostic)||void 0===r||null===(r=r.useMidrollIndex)||void 0===r?void 0:r.indexes.length)-1||(i=6e4*(null===(n=o.diagnostic)||void 0===n||null===(n=n.useMidrollIndex)||void 0===n?void 0:n.indexes[this.adInstance.adMidrollCount])):i=o.midroll;if(a.adType===st.Interstitial&&void 0!==this.adRequestTimer&&Date.now()-this.adRequestTimer<i)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,o){var a,i;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 a=e.sent,e.next=6,n.videoAdReady;case 6:if(!a.bloc_gard||!0!==a.bloc_gard.enabled){e.next=8;break}throw new Error("Game or domain is blocked.");case 8:if(!a.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=st.Rewarded,e.next=16;break;case 14:if(r===st.Interstitial||r===st.Rewarded){e.next=16;break}throw new Error("Unsupported an advertisement type:"+r);case 16:return e.next=18,n.adInstance.preloadAd(r);case 18:i=e.sent,t(i),e.next=25;break;case 22:e.prev=22,e.t0=e.catch(0),o(e.t0);case 25:case"end":return e.stop()}}),e,null,[[0,22]])})));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,o){var a;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 a=t.sent,t.next=6,r.videoAdReady;case 6:if(!a.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:o("Display-Ads are disabled.");case 14:t.next=19;break;case 16:t.prev=16,t.t0=t.catch(0),o(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;this._allowExternals({enabled:!1});try{this.options.resumeGame()}catch(e){console.log("gd-adflow error onResumeGame",e),Rt("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(),null===(r=this._gameData.evnts)||void 0===r||!r.enabled||this._isMasterGameURL()&&!this._isExtHostedGameURL()||(yP({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){Rt("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()||(yP({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 Ut(this).start(),kt("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 o=new ActiveXObject("WScript.Shell");null!==o&&o.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,o=this,a=new O(e),i=a.host;return a.href,n=((null===(t=this._gameData.urlBlockExc)||void 0===t?void 0:t.hosts)||[]).some(function(e){return r(this,o),e===i}.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 o=!!(e.innerText.toLowerCase().includes("start")||e.innerText.toLowerCase().includes("play")||e.innerText.toLowerCase().includes("continue")),a=e.getAttribute("href");if(!this._shouldAllowExternalUrl(a)){var i=e.getAttribute("href");e.removeAttribute("href"),o||(e.onclick=function(e){return r(this,n),e.preventDefault(),this.msgrt.send("external",{message:"H> ".concat(i)}),!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 o=decodeURIComponent((e||r)&&n.parentURL?n.parentURL:dt()),a=decodeURIComponent((e||r)&&n.parentDomain?n.parentDomain:ct()),i=decodeURIComponent((e||r)&&n.topDomain?n.topDomain:r&&0===gt()?a:_t()),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:o,parentDomain:a,topDomain:i&&i.length?i:a,noGAPageView:d,noLotamePageView:l,noGamedockSDK:f,noMinijuegosSDK:p,version:n.version,pauseGameOnStartup:m,depth:gt(),domainMatched:a===i,exports:{formatTokenURLSearch:this._formatTokenURLSearch.bind(this),extendUrlQuery:this._extendUrlQuery.bind(this),base64Encode:this._base64_encode.bind(this)}}}},{key:"_isHostHTML5Domain",value:function(){var e=new O(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=O(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=O(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 O(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 O(document.referrer,!0);if(!n.query.gd_zone_config)return;e=n.query.gd_zone_config}else{var o=new O(location.href,!0);if(!o.query.gd_zone_config)return;e=o.query.gd_zone_config}return JSON.parse(it.decode(decodeURIComponent(e)))}catch(e){}}},{key:"_getSplashTemplate",value:function(e){var t=e.splash;return new HC(t).splash()}},{key:"_createPrerollPromoTemplate",value:(n=t(d.mark((function e(t){var r,n,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===(n=n.template)||void 0===n?void 0:n.preroll],a=new zC(o),e.abrupt("return",a.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 O(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 O(e,!0);return r.query=BP(BP({},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 o;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:o=e._gameData,r({ads:{display:{enabled:o.dAds.enabled},rewarded:{enabled:o.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)GP.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,o=null!==(t=location.ancestorOrigins)&&void 0!==t&&t.length?location.ancestorOrigins[location.ancestorOrigins.length-1]:"*";try{var a=window.top||window.parent;a&&a.postMessage({source:"gdsdk",topic:r,data:n},o)}catch(e){console.error((null==e?void 0:e.message)||e)}}},{key:"decideToGiveAGift",value:function(e){var n=this;try{var o,a=null===(o=this._gameData)||void 0===o?void 0:o.gft[e],i=setInterval(t(d.mark((function t(){var o=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n.adInstance.requestRunning||n.adFlowRunning?console.log("Advertisement already running..."):(n.showAd(st.Interstitial,{position:e,isGift:!0}).catch(function(e){r(this,o)}.bind(this)),clearInterval(i),n._giftCount[e]++);case 1:case"end":return t.stop()}}),t,this)}))),1e3*a.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 NP}},{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(null!==(e=this._gameData.midroll_plus)&&void 0!==e&&e.enabled&&this.adInstance.adMidrollCount<=0){var n,o=this._gameData.midroll_plus.type||"midroll";if(null!==(n=this._gameData.midroll_plus)&&void 0!==n&&n.interval)var a=setInterval(function(){var e,n,i=this;(r(this,t),this.adFlowRunning)||(this.showAd(st.Interstitial,{position:"midroll",giftType:o}).catch(function(e){r(this,i)}.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(a))}.bind(this),6e4*this._gameData.midroll_plus.timer);else setTimeout(function(){var e=this;r(this,t),this.showAd(st.Interstitial,{position:"midroll",giftType:o}).catch(function(t){r(this,e)}.bind(this))}.bind(this),this._gameData.midroll)}}}]),e}();function HP(){return HP=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,sD();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"),vt(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)}))),HP.apply(this,arguments)}var ZP=new RR.exports.EventEmitter,KP=function(e){var t=this;!function(){HP.apply(this,arguments)}();var n,o=function(e){var n=this;return r(this,t),new Promise(function(t,o){var a=this;r(this,n);var i=function(e){r(this,a),"SDK_GAME_START"===e.name&&(ZP.off("sdk-event",i),t())}.bind(this);ZP.on("sdk-event",i),m("showAd",{adType:e})}.bind(this))}.bind(this),a=function(){return r(this,t),n||(n=new zP(e)),n}.bind(this),i=function(e){return r(this,t),o(e)}.bind(this),s=function(e){return r(this,t),"gdsdk://preloaded"}.bind(this),u=function(e){return r(this,t),a().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 o=this;return r(this,t),n||(n={}),new Promise(function(t,a){r(this,o);try{var i={type:"gd-sdk",method:e,options:n};window.parent.postMessage(i,"*"),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&&b(n)}),!1)}.bind(this),g=function(){r(this,t),v(),m("init")}.bind(this),b=function(n){r(this,t);try{ZP.emit("sdk-event",n),e.onEvent&&e.onEvent(n)}catch(e){console.log("DEVELOPER ERROR on forwarder-sdk")}}.bind(this);return{showBanner:l,showAd:i,preloadAd:s,showDisplayAd:u,cancelAd:c,openConsole:d,getSession:f,onEvent:b,init:g,_sendSDKReady:h,sendGenericEvent:p}},qP=function(e){var t=KP(e);return t.init(),t},WP=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),o=function(){r(this,e);return/^http[s]?:\/\/.*?gd_sdk_referrer_url=.*$/i.test(location.href)}.bind(this),a=function(){r(this,e);var o="html5.gamedistribution.com"!==O(window.location.href).host;return t()&&!(n()||o)?"loader-frame":"game-frame"}.bind(this);return{isMasterGameURL:t,isTokenGameURL:n,isExtHostedGameURL:o,whichFrame:a}},VP="gd-sdk-frame-handshake-request",YP="gd-sdk-frame-handshake-response",JP=function(e){var t=this;return new Promise(function(e,n){var o=this;r(this,t);var a={type:VP},i=!1;window.addEventListener("message",(function(t){var r=t.data,n=t.origin,o=t.source,a=r.type;if(a===VP){var s={type:YP};o.postMessage(s,n)}else a===YP&&(i=!0,e({origin:n,source:o}))})),setTimeout(function(){r(this,o),i||e()}.bind(this),200),window.parent!==window?window.parent.postMessage(a,"*"):e()}.bind(this))},QP=function(){var e=t(d.mark((function e(){var t,r,n,o,a,i,s;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,iD();case 2:return t=e.sent,e.next=6,JP();case 6:if(r=e.sent,jP.SDKExistsOnUpperFrame=!!r,t){e.next=10;break}return e.abrupt("return",!1);case 10:return n=WP(),o=n.isMasterGameURL,n.isTokenGameURL,a=o(),e.next=14,uD();case 14:return i=e.sent,s=!1,s=i?!a&&!!r:!a,e.abrupt("return",s);case 18:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),XP=Vr,eL=Jt,tL=nr,rL=Np,nL=Xs,oL=Ki,aL=tL(Ni.f),iL=tL([].push),sL=XP&&eL((function(){var e=Object.create(null);return e[2]=2,!aL(e,2)})),uL=function(e){return function(t){for(var r,n=oL(t),o=nL(n),a=sL&&null===rL(n),i=o.length,s=0,u=[];i>s;)r=o[s++],XP&&!(a?r in n:aL(n,r))||iL(u,e?[r,n[r]]:n[r]);return u}},cL={entries:uL(!0),values:uL(!1)}.values;Ys({target:"Object",stat:!0},{values:function(e){return cL(e)}});var dL,lL={},fL=function(e){try{if(e.skipForward)return;if(lL.source){var t={type:"gd-sdk-on-event",event:e};lL.source.postMessage(t,lL.origin)}}catch(e){console.log("gd-sdk forwardEvent err",e)}},pL=function(){fL({name:"SDK_READY",status:"success",message:"Everything is ready."}),fL({name:"SDK_GAME_START",status:"success",message:"Advertisement(s) are done. Start / resume the game."}),fL({name:"CONTENT_RESUME_REQUESTED",status:"success",message:"Fired when content should be resumed. This usually happens when an ad finishes or collapses."})},hL=function(e){window.addEventListener("message",(function(n){var o=n.data,a=n.origin,i=n.source,s=o.type,u=o.method,c=o.options;if("gd-sdk-self"!==s){if("gd-sdk"===s){if(!lL.source&&"init"===u)return function(e){var t=e.source,r=e.origin;lL={source:t,origin:r}}({source:i,origin:a}),void pL();var l=e[u];l&&t(d.mark((function t(){var n,o=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,function(){r(this,o),"showAd"===u&&Ou.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)},mL=function(e){!function(e){var t=e.onEvent;e.onEvent=function(e){fL(e),t.apply(this,arguments)}}(e);var t=new zP(e);return hL(t),t},vL=function(){function e(){I(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:[]},i_(this.moduleName,this.moduleConfig)}var r,n;return L(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,u_(this.moduleName);case 3:this.module=e.sent,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}(),gL=function(){var e=t(d.mark((function e(){var r,n,o,a,i,s,u,c,l,f,p,h,m,v,g,b;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=function(){var e,t=(e=new xR).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,o=r.isAeriaStagingDomain,!n){e.next=21;break}return s=function(){var e=(new xR).get("partner.url.value");return new O(e,!0)},u=function(){var e="ae-soft-323";try{var t=s(),r=t.pathname,n=r.split("/"),o=n[n.length-1];Du("aeria-ylogin:loc",t,r,o),e=o}catch(e){Tu("Error on getting aeria game id",e)}return e}(),c={action:"score",data:{gameId:u,score:100},env:o?"staging":"production",system:"Softgames"},l=function(){var e=window.parent||window,t=c;e.postMessage(t,"*")},f=new Lt,e.next=13,rD();case 13:p=e.sent,h=null==p||null===(a=p.aeria)||void 0===a?void 0:a.yMenuExcluded,m=null==p||null===(i=p.aeria)||void 0===i?void 0:i.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 vL).runYMenu({gameId:u});case 2:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),g=WP(),b=g.whichFrame,"game-frame"===b()&&(h||v());case 21:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),bL=function(e){try{var t=ER(e);e.gameId||t.send("nogameid",{message:"".concat(uw.parentURL)})}catch(e){}},yL=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,gL();case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),console.log("zxcv error on creating some bridge module");case 8:case"end":return e.stop()}}),e,null,[[0,5]])})));return function(){return e.apply(this,arguments)}}(),_L=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,bL(t),tD(t),e.next=5,QP();case 5:return r=e.sent,e.next=8,yL();case 8:return n=r?qP(t):mL(t),dD(),e.abrupt("return",n);case 13:return e.prev=13,e.t0=e.catch(0),console.log("gd:adp: sdk adaptor create failed, fallback to default adapter",e.t0),e.abrupt("return",mL(t));case 17:case"end":return e.stop()}}),e,null,[[0,13]])})));return function(t){return e.apply(this,arguments)}}(),wL={create:_L};function AL(){return(AL=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,pD();case 2:if(!e.sent){e.next=7;break}e.t0=window.gdsdk,e.next=10;break;case 7:return e.next=9,SL(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 xL,kL,EL=!1;function SL(e){var t=this;return new Promise(function(n,o){var a=this;if(r(this,t),dL)return n(dL);if(EL)var i=setInterval(function(){r(this,a),dL&&(EL=!1,clearInterval(i),n(dL))}.bind(this),100);else EL=!0,wL.create(e).then(function(e){r(this,a),dL=e,e._sendSDKReady(),EL=!1,n(dL)}.bind(this))}.bind(this))}function RL(e){return SL(e),{invoke:function(t){return function(e,t){return AL.apply(this,arguments)}(e,t)}}}function DL(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 TL(e){return function(e){if(Array.isArray(e))return DL(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 DL(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)?DL(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.")}()}function OL(e,n){var o=this;return new Promise(function(a,i){var s,u=this;r(this,o);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);IL({text:"sdk-wrapper-script-load"}),vt(c[0],"gd-sdk-wrp",{alternates:c}).catch(function(e){r(this,u),IL({text:"sdk-wrapper load error",error:e.message}),this._sendSDKError(e),i(e)}.bind(this)).then(t(d.mark((function t(){var r,o;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,IL({text:"sdk-wrapper load success"}),r=window.GDSDKWRP.GDSDKWRP,o=new r,IL({text:"sdk-wrapper before gdSdkWrp.init"}),t.next=7,o.init(e,n);case 7:kL=t.sent,IL({text:"sdk-wrapper after gdSdkWrp.init"}),a(kL),t.next=16;break;case 12:t.prev=12,t.t0=t.catch(0),IL({text:"sdk-wrapper load error 2",error:t.t0.message}),i(t.t0);case 16:case"end":return t.stop()}}),t,null,[[0,12]])}))))}.bind(this))}function IL(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(TL(Object.values(e)))}catch(e){}}function CL(e){if(e){var t=e.name,r=e.message,n=e.status;try{IL({text:"samsung-wrp send-game-event",evt:e,hasOptions:!!xL}),xL&&xL.onEvent({name:t,message:r,status:n})}catch(t){IL({text:"samsung-wrp DEVELOPER-ERROR",evt:e,err:t})}}}function PL(e){return LL.apply(this,arguments)}function LL(){return(LL=t(d.mark((function e(t){var r,n,o,a,i,s,u,c,l;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return xL=t,tD(t),e.next=4,rD();case 4:if(a=e.sent,!kL){e.next=7;break}return e.abrupt("return",kL);case 7:if(i=null==a||null===(r=a.sdk_wrp)||void 0===r?void 0:r.enabled,s=null==a||null===(n=a.sdk_wrp)||void 0===n?void 0:n.version,u=null==a?void 0:a.gameId,c=null==a?void 0:a.title,UL("isWrapEnabled ".concat(i)),i){e.next=14;break}return e.abrupt("return");case 14:return l=null==a||null===(o=a.sdk_wrp)||void 0===o?void 0:o.wrapper,IL({text:"sdk-wrapper-load-instant-play"}),e.next=18,jL();case 18:return IL({text:"sdk-wrapper-load-instant-play-loaded"}),e.next=21,OL(l,{onEvent:CL,game:{gameId:u,title:c,version:s}});case 21:return kL=e.sent,e.abrupt("return",kL);case 23:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function ML(){return ML=t(d.mark((function e(t){var r,n,o;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t._get_developer_sets,UL("beforeGetDeveloperSettings"),n=r(),UL("afterGetDeveloperSettings"),e.prev=4,e.next=7,PL(n);case 7:o=e.sent,UL("after get SDK wrapper: ".concat(!!o)),o&&(UL("setting SDK Wrapper as gd-sdk"),window.sdkWrapper=o,window.gdsdk=o,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),UL("Error on SDK wrapper init: ".concat(e.t0.message));case 16:case"end":return e.stop()}}),e,null,[[4,12]])}))),ML.apply(this,arguments)}function jL(){return $L.apply(this,arguments)}function $L(){return($L=t(d.mark((function e(){var t,n=this;return d.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t="https://gtg.samsungapps.com/gsinstant-sdk/gsinstant.0.43.js",e.next=3,vt(t,"samsung_instant_play_sdk",{alternates:[t],error_prefix:"Blocked:",exists:function(){return r(this,n),window.GSInstant}.bind(this)});case 3:case"end":return e.stop()}}),e,this)})))).apply(this,arguments)}function UL(e){window.sdkLog.push(e)}function BL(){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=O(window.location.href,!0),n=r.host,o=r.query,a=n,i=null==o?void 0:o.gd_sdk_referrer_url;return i&&(i=i.startsWith("https://")||i.startsWith("http://")?i:"https://".concat(i),null!==(t=e=O(i,!0))&&void 0!==t&&t.host&&(a=e.host)),a}()?UL("skipped normal SDK init!"):(!function(){EC();var e=RL(BL());function n(){var n=this;this.AdType=st,this.preloadAd=function(t){var n=this;return e.invoke(function(e){return r(this,n),e.preloadAd(t)}.bind(this))},this.showAd=function(){var n=t(d.mark((function t(n,o){var a=this;return d.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.invoke(function(e){var t=this;if(r(this,a),n===st.Display)return e.showDisplayAd(o);var i={};return function(){r(this,t),Ou.firstAdapterModeAdsense&&(console.log("promo-test, set first adapter to adssense 2"),i.adapter="adsense")}.bind(this),e.showAd(n,i)}.bind(this)));case 1: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),d_.showLeaderboard()}.bind(this),addScore:function(e){r(this,n),d_.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}(),UL("afterSDKInit")),function(e){ML.apply(this,arguments)}({_get_developer_sets:BL})}();
|