@jolibox/implement 1.2.1 → 1.2.2

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,4 +1,4 @@
1
- var IC=Object.create;var No=Object.defineProperty,EC=Object.defineProperties,kC=Object.getOwnPropertyDescriptor,SC=Object.getOwnPropertyDescriptors,AC=Object.getOwnPropertyNames,Ro=Object.getOwnPropertySymbols,xC=Object.getPrototypeOf,Sl=Object.prototype.hasOwnProperty,kf=Object.prototype.propertyIsEnumerable;var Ef=(e,t,r)=>t in e?No(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T=(e,t)=>{for(var r in t||(t={}))Sl.call(t,r)&&Ef(e,r,t[r]);if(Ro)for(var r of Ro(t))kf.call(t,r)&&Ef(e,r,t[r]);return e},F=(e,t)=>EC(e,SC(t));var je=(e,t)=>{var r={};for(var n in e)Sl.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ro)for(var n of Ro(e))t.indexOf(n)<0&&kf.call(e,n)&&(r[n]=e[n]);return r};var A=(e,t)=>()=>(e&&(t=e(e=0)),t);var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Sf=(e,t)=>{for(var r in t)No(e,r,{get:t[r],enumerable:!0})},CC=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of AC(t))!Sl.call(e,i)&&i!==r&&No(e,i,{get:()=>t[i],enumerable:!(n=kC(t,i))||n.enumerable});return e};var ie=(e,t,r)=>(r=e!=null?IC(xC(e)):{},CC(t||!e||!e.__esModule?No(r,"default",{value:e,enumerable:!0}):r,e));var w=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});function DC(e){return!!(e!=null&&e.__nativeBuffers__)}function Rl(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!DC(e))return e;let t=e.__nativeBuffers__;if(delete e.__nativeBuffers__,t)for(let r=0;r<t.length;r++){let n=t[r];if(n){let i;n.value?i=n.value:n.base64&&(i=LC(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function qC(e={},t=!1){let r=e,n=[];for(let[i,o]of Object.entries(r))if(o!==void 0&&o instanceof ArrayBuffer&&o.byteLength!==void 0){let a=t?{value:o,key:i}:{base64:MC(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function JC(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Uf(e){return typeof e=="string"}function nn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function xf(e){return typeof e=="number"&&!isNaN(e)}function BC(e){return typeof e=="undefined"}function HC(e){return BC(e)||e===null}function Ff(e){return typeof e=="function"}function VC(e){return nn(e)&&Ff(e.then)}function jf(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function ti(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function XC(e,t,r){let n=e;for(let i of t)if(n&&typeof n=="object")n=n[i];else return r;return n===void 0?r:n}function nT(){if(typeof window=="undefined")return{getItem:()=>null,setItem:()=>{},removeItem:()=>{},clear:()=>{},length:0,key:()=>null};try{if(window.__joliboxLocalStorage__)return window.__joliboxLocalStorage__;let e=Object.getOwnPropertyDescriptor(window,"localStorage");if(e&&e.get){let n=e.get.call(window);return window.__joliboxLocalStorage__=n,n}if(e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(window),"localStorage"),e&&e.get)return e.get.call(window);let t=Window.prototype,r=Object.getOwnPropertyDescriptor(t,"localStorage");if(r&&r.get){let n=r.get.call(window);return window.__joliboxLocalStorage__=n,n}return localStorage}catch(e){return console.warn("Failed to get original localStorage, fallback to default implementation",e),localStorage}}function lT(e){return new Promise(t=>Jf(e)(t))}function Jf(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function cT(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new ii(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function dT(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)pT(e[n],t[n])}function pT(e,t){if(Uf(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(Ff(t)){try{if(e instanceof t)return}catch(r){}if(!HC(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function Jl(e,t){if(Dl.config[e]){Fo.warn(`[can i use] ${e} already registered`);return}Dl.config[e]=Wt({},t)}function Of(e,t){return`[${e}]:${t}`}function _T(e,t){Pf||(Cl=new Lo({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Tl=new Lo({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Ol=new Lo({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),t("onJoliboxEnterBackground",()=>{Cl.flush(),Tl.flush(),Ol.flush()}),Pf=!0);function r(i){var o,a;let{method:s,args:l,startTime:c,isForeground:d,errMsg:u=`${s}:fail no errMsg`,errNo:p=0,__timing:f={receiveJSInvoke:0,invokeCallback:0}}=i,{receiveJSInvoke:m,invokeCallback:g}=f,y=(a=(o=u.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";Cl.report({status:y,method:n(s,l),errNo:`${p}`,errMsg:u,isForeground:d,duration:Date.now()-c}),c&&m&&g&&(Tl.report({status:y,method:s,isForeground:d,duration:Number((m-c).toFixed(3))}),Ol.report({status:y,method:s,isForeground:d,duration:Number((Date.now()-g).toFixed(3))}))}function n(i,o){return(i==="callHostMethod"||i==="callHostMethodSync")&&o!=null&&o.method?`${i}-${o.method}`:i}return r}function ET(e,t){let r=0,n=!0,i=IT.resolveMap,o=_T(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,Pl.forEach(l=>qo(this,[l],function*({method:c,args:d,resolve:u}){let p=yield s(c,d);u(p)})),Pl.length=0});let a=(l,c)=>{let d=i.get(Number(l));if(!d)return;let u=Rl(c);d(u),i.delete(Number(l))},s=(l,c)=>{var d,u;let p=Date.now(),f=`${n}`;r+=1;let m=new GC;if(i.set(r,m.resolve),!n&&mT.includes(l))return new Promise(x=>{Pl.push({method:l,args:c,resolve:x})});let g=RC(Wt({},{method:l,startTime:p,args:c,isForeground:f}),{invokeType:"js-bridge"}),y=!bT&&hT.includes(l),v=qC(c,y),b=y?v:JSON.stringify(v),k;if(l.endsWith("Sync")||vT.includes(l)?k=(d=e.call)==null?void 0:d.call(e,l,v,r):typeof b=="string"?k=e.invoke(l,b,r):k=(u=e.call)==null?void 0:u.call(e,l,b,r),k){try{typeof k=="string"&&(k=JSON.parse(k)),k=Rl(k)}catch(x){Fo.error(x)}return i.delete(r),k.errorCode&&(k.errorCode=Of(l,k.errorCode)),o(Wt(Wt({},g),k)),k}return l.endsWith("Sync")&&i.delete(r),m.promise.then(x=>(x.errorCode&&(x.errorCode=Of(l,x.errorCode)),o(Wt(Wt({},g),x)),x))};return{invokeNative:s,applyNative:(l,c)=>{let d=s(l,c);return VC(d)?d.then(u=>Rf(l,u)):Rf(l,d)},invokeHandler:a}}function Rf(e,t){if(!nn(t)){Fo.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=NC(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new KC(n,i,o,a);return s}function kT(e){if(globalThis[Do])return globalThis[Do];let t=new ql,r=new ql,n=new Lo({eventName:"jolibox_publish",tagNameOrder:["type","event"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}});return t.on("onJoliboxEnterBackground",()=>{n.flush()}),globalThis[Do]={onNative:t.on.bind(t),offNative:t.off.bind(t),subscribe:r.on.bind(r),unsubscribe:r.off.bind(r),subscribeHandler(i,o,a){let s=Rl(o),l;if(s.__extra){l=s.params;let{type:c,startTime:d}=s.__extra;n.report({type:c,event:i,duration:Date.now()-d})}else l=s;if(i===Bf){l.forEach(c=>{let[d,u]=c;try{r.emit(d.slice(ni.length),u,a)}catch(p){}});return}if(i.startsWith(ni)){r.emit(i.slice(ni.length),l,a);return}t.emit(i,l,a)}},globalThis[Do]}function ST(e){let t=new Map,r=new Map,n,i;return{publish:(o,a,s,l)=>{if(l){let d=s!==void 0?s==="*"?"*":[s]:void 0;e.publish(`${ni}${o}`,a,d);return}n||(n=Promise.resolve().then(()=>{t.forEach((d,u)=>{try{let p=u!==void 0?u==="*"?"*":[u]:void 0;e.publish(Bf,d,p)}catch(p){}}),n=void 0,t.clear()}));let c=t.get(s);c||(c=[],t.set(s,c)),c.push([`${ni}${o}`,a])},emitNative:(o,a,s,l)=>{if(l){let d=s!==void 0?s==="*"?"*":[s]:void 0;e.publish(o,a,d),console.log("emitNative",o,a,d);return}i||(i=Promise.resolve().then(()=>{r.forEach((d,u)=>{try{let p=u!==void 0?u==="*"?"*":[u]:void 0;e.publish(gT,d,p)}catch(p){}}),i=void 0,r.clear()}));let c=r.get(s);c||(c=[],r.set(s,c)),c.push([o,a])}}}function AT(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=kT(e),{invokeNative:a,invokeHandler:s,applyNative:l}=ET(e,r),{publish:c,emitNative:d}=ST(e);return{invokeHandler:s,subscribeHandler:t,applyNative:l,invokeNative:a,onNative:r,offNative:n,emitNative:d,publish:c,subscribe:i,unsubscribe:o}}function Hf(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var TC,OC,PC,Mo,Df,Lf,Af,Wt,RC,NC,qo,LC,MC,Mf,UC,FC,qf,jC,GC,$C,WC,Uo,zC,KC,YC,Al,Fo,Cf,QC,Nl,ZC,Dl,eT,tT,rT,rn,iT,Q4,Ll,se,oT,aT,ri,ii,ql,Ul,sT,xl,uT,X4,Fl,Tf,Z4,Gf,fT,ni,hT,mT,vT,Bf,gT,yT,Lo,Pf,Cl,Tl,Ol,Pl,bT,jl,wT,IT,Do,Gl,mt,Vf,$f,xT,Wf,Nf,ye,j,et,e9,CT,zf,Bl,t9,r9,_e=A(()=>{"use strict";TC=Object.defineProperty,OC=Object.defineProperties,PC=Object.getOwnPropertyDescriptors,Mo=Object.getOwnPropertySymbols,Df=Object.prototype.hasOwnProperty,Lf=Object.prototype.propertyIsEnumerable,Af=(e,t,r)=>t in e?TC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Wt=(e,t)=>{for(var r in t||(t={}))Df.call(t,r)&&Af(e,r,t[r]);if(Mo)for(var r of Mo(t))Lf.call(t,r)&&Af(e,r,t[r]);return e},RC=(e,t)=>OC(e,PC(t)),NC=(e,t)=>{var r={};for(var n in e)Df.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Mo)for(var n of Mo(e))t.indexOf(n)<0&&Lf.call(e,n)&&(r[n]=e[n]);return r},qo=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});LC=e=>{let t=atob(e),r=t.length,n=new Uint8Array(r);for(let i=0;i<r;i++)n[i]=t.charCodeAt(i);return n.buffer};MC=e=>{let t="",r=new Uint8Array(e),n=r.byteLength;for(let i=0;i<n;i++)t+=String.fromCharCode(r[i]);return btoa(t)};Mf=Object.defineProperty,UC=Object.getOwnPropertyDescriptor,FC=(e,t)=>{for(var r in t)Mf(e,r,{get:t[r],enumerable:!0})},qf=(e,t,r,n)=>{for(var i=n>1?void 0:n?UC(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(n?a(t,r,i):a(i))||i);return n&&i&&Mf(t,r,i),i},jC=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new t};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let r=new Event("abort");this.signal.dispatchEvent(r)};let t=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(t.prototype,"aborted",{get:function(){return this._aborted}}),t.prototype.addEventListener=function(r,n){this._eventListeners[r]||(this._eventListeners[r]=[]),this._eventListeners[r].push(n)},t.prototype.removeEventListener=function(r,n){if(!this._eventListeners[r])return;let i=this._eventListeners[r].indexOf(n);i!==-1&&this._eventListeners[r].splice(i,1)},t.prototype.dispatchEvent=function(r){if(this._eventListeners[r.type])for(let n of this._eventListeners[r.type])n.call(this,r)},window.AbortController=e,window.AbortSignal=t}GC=class{constructor(){this.state="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.state==="pending"&&(this.state="fulfilled",e(r))},this.reject=r=>{this.state==="pending"&&(this.state="rejected",t(r))}})}};$C=(e=>(e[e.DEVELOPER_FILE_NOT_FOUND=0]="DEVELOPER_FILE_NOT_FOUND",e[e.INTERNAL_IOS_CAN_NOT_FOUND_PKG=1]="INTERNAL_IOS_CAN_NOT_FOUND_PKG",e[e.USER_IOS_LOAD_TIMEOUT=2]="USER_IOS_LOAD_TIMEOUT",e[e.INTERNAL_IOS_PKG_LOAD_ERROR=3]="INTERNAL_IOS_PKG_LOAD_ERROR",e[e.INTERNAL_IOS_PKG_PARSE_FAIL=4]="INTERNAL_IOS_PKG_PARSE_FAIL",e[e.USER_IOS_GET_EMPTY_DATA=5]="USER_IOS_GET_EMPTY_DATA",e[e.USER_ANDROID_GET_PKG_FAIL=6]="USER_ANDROID_GET_PKG_FAIL",e[e.DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE=7]="DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE",e))($C||{}),WC=class extends Error{constructor(e){if(typeof e=="string"){super(e),this.priority="P1";return}super(e.message),this.priority="P1",this.stack=e.stack,this.raw=e}},Uo=class extends WC{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},zC=class extends Uo{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},KC=class extends Uo{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},YC=class extends Uo{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},Al=class extends Uo{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};Fo={log:ti("log"),warn:ti("warn"),info:ti("info"),error:ti("error"),debug:ti("debug")};Object.assign(globalThis,{logger:Fo});Cf=Symbol.for("Jolibox.canIUseMap"),QC={};globalThis[Cf]||(globalThis[Cf]=QC);Nl=Symbol.for("Jolibox.canIUseMap.native"),ZC={};globalThis[Nl]||(globalThis[Nl]=ZC);Dl={get config(){return globalThis[Nl]}},eT=(e=>(e[e.Other=0]="Other",e[e.Route=1]="Route",e[e.Click=2]="Click",e[e.View=3]="View",e[e.Expose=4]="Expose",e[e.Swipe=5]="Swipe",e[e.Input=6]="Input",e[e.Select=7]="Select",e[e.SwitchOn=8]="SwitchOn",e[e.SwitchOff=9]="SwitchOff",e[e.Submit=10]="Submit",e[e.Scroll=11]="Scroll",e[e.Hide=12]="Hide",e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(eT||{}),tT=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(tT||{}),rT=(e=>(e[e.App=0]="App",e[e.H5=1]="H5",e[e.Weapp=2]="Weapp",e[e.Alipay=3]="Alipay",e[e.Gcash=4]="Gcash",e[e.Dana=5]="Dana",e[e.Umma=6]="Umma",e[e.WebSDK=1e3]="WebSDK",e[e.AppSDK=1001]="AppSDK",e[e.Other=9999]="Other",e))(rT||{});nT();rn=typeof window=="undefined",iT=()=>!rn&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),Q4={isiOS:!rn&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),iosVersion:()=>{let e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3]||"0",10)]},isAndroid:!rn&&navigator.userAgent.includes("Android"),isMac:!rn&&navigator.userAgent.includes("Mac"),isFacebook:!rn&&navigator.userAgent.includes("FB_IAB"),isPC:!rn&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},Ll=class Ml{constructor(t){this.element=t,this.next=Ml.Undefined,this.prev=Ml.Undefined}};Ll.Undefined=new Ll(void 0);se=Ll,oT=class{constructor(){this._first=se.Undefined,this._last=se.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===se.Undefined}clear(){let e=this._first;for(;e!==se.Undefined;){let t=e.next;e.prev=se.Undefined,e.next=se.Undefined,e=t}this._first=se.Undefined,this._last=se.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new se(e);if(this._first===se.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==se.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==se.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==se.Undefined&&e.next!==se.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===se.Undefined&&e.next===se.Undefined?(this._first=se.Undefined,this._last=se.Undefined):e.next===se.Undefined?(this._last=this._last.prev,this._last.next=se.Undefined):e.prev===se.Undefined&&(this._first=this._first.next,this._first.prev=se.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==se.Undefined;)yield e.element,e=e.next}},aT=0,ri=class{constructor(e){this.value=e,this.id=aT++}},ii=class{constructor(e){this.options=e,this._size=0}dispose(e){var t,r;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof ri&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(r=(t=this.options)==null?void 0:t.onDidRemoveLastListener)==null||r.call(t))}get event(){var e;return(e=this._event)!=null||(this._event=(t,r)=>{var n,i,o,a,s,l;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};r&&(t=t.bind(r));let c=new ri(t);return this._listeners?this._listeners instanceof ri?this._listeners=[this._listeners,c]:this._listeners.push(c):((i=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||i.call(n,this),this._listeners=c,(a=(o=this.options)==null?void 0:o.onDidFirstListener)==null||a.call(o,this)),(l=(s=this.options)==null?void 0:s.onDidAddListener)==null||l.call(s,this),this._size++,()=>{var d,u,p,f;if(!this._disposed){if(this._listeners instanceof ri)this._listeners.id===c.id&&(this._listeners=void 0,this._size=0,(u=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||u.call(d));else if(this._listeners){let m=this._listeners.indexOf(c);m>=0&&(this._listeners.splice(m,1),this._size--,this._size===0&&((f=(p=this.options)==null?void 0:p.onDidRemoveLastListener)==null||f.call(p)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof ri?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},ql=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t,r=!0){var n;let i=(n=this.listeners.get(e))!=null?n:new ii,o=l=>t(...l.args),a=i.event(o);this.listerHandlerMap.set(t,{handler:o,dispose:a}),this.listeners.set(e,i);let s=this.cachedEventQueue.get(e);if(s&&r)for(let l of s)t(...l.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,t){let r=this.listerHandlerMap.get(t);r&&(r.dispose(),this.listerHandlerMap.delete(t))}emit(e,...t){let r=this.listeners.get(e),n=this.cachedEventQueue.get(e);n||(n=new oT,this.cachedEventQueue.set(e,n)),n.push({args:t}),r&&r.fire({event:e,args:t})}once(e,t){let r=(...n)=>{t(...n),this.off(e,r)};this.on(e,r,!1)}},Ul={};FC(Ul,{None:()=>sT,filter:()=>cT,once:()=>Jf,toPromise:()=>lT});sT=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});xl=Symbol.for("Jolibox.hostEmitter"),uT=()=>{let e=new ql;return globalThis[xl]||(globalThis[xl]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[xl]},X4=uT();Fl=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new ii,this.onDidRegisterCommand=this._onDidRegisterCommand.event,console.log("[Jolibox SDK] command registry")}registerCommand(e){if(!e)throw new Error("invalid command");if(e.metadata&&Array.isArray(e.metadata.args)){let r=[];for(let i of e.metadata.args)r.push(i.constraint);let n=e.handler;e.handler=function(...i){return dT(i,r),n(...i)}}let{id:t}=e;this._commands.get(t)&&console.info(`[Jolibox SDK] duplicated command is registered ${t}`),this._commands.set(t,e),this._onDidRegisterCommand.fire(t)}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;for(let t of this._commands.keys()){let r=this.getCommand(t);r&&e.set(t,r)}return e}};Fl=qf([jf],Fl);Tf=class{constructor(){this._onWillExecuteCommand=new ii,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new ii,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Fl,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=JC(3e4)),this._starActivation}executeCommand(e,...t){return jC(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Ul.toPromise(Ul.filter(this.registry.onDidRegisterCommand,r=>r===e))])]),this._tryExecuteCommand(e,t))})}executeCommandThowErr(e,...t){if(!this.registry.getCommand(e))throw new Error(`command '${e}' not found`);let r=this.registry.getCommand(e);this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),n}_tryExecuteCommand(e,t){let r=this.registry.getCommand(e);if(!r)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}invokeFunction(e,...t){let r=!1;try{return e(...t)}finally{r=!0}}};Tf=qf([jf],Tf);Z4=Symbol.for("Jolibox.commands");Jl("requestPaymentSync",{version:1e6,properties:{paymentBody:{appStoreProductId:102e4}}});Jl("requestProductDetailsAsync",{version:102e4});Jl("loginSync",{version:1e6,properties:{skipLogin:102e4,triggerFrom:102e4}});Gf=(e,t)=>{function r(i){var o;let[a,...s]=i.split(":");if(!a)return!1;let l=Dl.config[a];if(!l)return!1;let c=(o=t==null?void 0:t())!=null?o:"";if(l.platforms&&!l.platforms.includes(c))return!1;let d=l.version;if(typeof d!="number")return!1;let u=e();return typeof u!="number"||u<d?!1:s.length===0?!0:n(l,s,u)||n(l.properties,s,u)}function n(i,o,a){if(!i)return!1;let s=XC(i,o);if(!s)return!1;if(nn(s)){let l=s.version;return xf(l)?typeof a=="number"&&a>=l:!0}return xf(s)?typeof a=="number"&&a>=s:s===!0}return{canIUseNative:r}};fT=()=>iT(),ni="custom_event_",hT=[],mT=[],vT=["env","createRequestTask","login"],Bf="__batch_event__",gT="__native_batch_event__",yT=e=>e==="pv"?e:"default",Lo=class{constructor(e){this.interval=30,this.lastReportTime=0,this.cache={};let{reporter:t,interval:r=30,eventName:n,tagNameOrder:i,metricName:o,type:a}=e;this.reporter=t,this.interval=r,this.eventName=n,this.tagNameOrder=i,this.metricName=o,this.type=yT(a)}report(e){this.type==="pv"?this.addPVPoint(e):this.addPoint(e),this.tryReport(!1)}flush(){this.tryReport(!0)}tryReport(e){if(Object.keys(this.cache).length){if(e){this.reporter(this.processPoints(this.cache)),this.clearPoints();return}this.lastReportTime=this.lastReportTime||Date.now(),Date.now()-this.lastReportTime>=this.interval*1e3&&(this.reporter(this.processPoints(this.cache)),this.clearPoints(),this.lastReportTime=Date.now())}}addPoint(e){let t=(r,n,i,o)=>{let a=n.shift();if(a){let s=o[a];r[s]||(r[s]={}),t(r[s],n,i,o)}else r[i]||(r[i]=[]),r[i].push(o[i])};t(this.cache,[...this.tagNameOrder],this.metricName,e)}addPVPoint(e){let t=(n,i,o,a)=>{let s=i.shift();if(!s&&nn(a))throw new Al(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let l=[];if(nn(a))l.push(...Object.keys(a));else if(Uf(a)){if(i.length>0)throw new Al(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);l.push(a)}else throw new Al(`expected metric value to be a string, but got a(n) ${typeof a}, ${JSON.stringify(r)}`);l.forEach(c=>{n[c]||(n[c]={});let d=nn(a)?a[c]:a;t(n[c],[...i],o,d)})}else n[o]?n[o]++:n[o]=1},r={point:e,metricName:this.metricName,tagNameOrder:this.tagNameOrder};t(this.cache,[...this.tagNameOrder],this.metricName,e)}processPoints(e){return{eventName:this.eventName,tagNameOrder:this.tagNameOrder,metricName:this.metricName,metricAggregateType:this.type==="pv"?"itoa":"arr",data:e}}clearPoints(){this.cache={}}},Pf=!1;Pl=[],bT=!1,jl=Symbol.for("Jolibox.invokeResolverInstance"),wT=new Map;globalThis[jl]||(globalThis[jl]=wT);IT={get resolveMap(){return globalThis[jl]}};Do=Symbol.for("Jolibox.subscribeInstance");mt={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){mt.trigger=e},onDoExit(e){mt.exit=e},onDoBackPress(e){mt.backPress=e}},Vf=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new zC("native env failed"));else{let{data:r}=JSON.parse(t);return r!=null?r:void 0}};if(typeof window!="undefined"&&window.webkit){let e=window.webkit.messageHandlers,t=(i="")=>{mt.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>qo(void 0,null,function*(){let o=yield mt.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});Gl={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=Hf(o,"joliboxJSCore");window.prompt("publish",JSON.stringify({event:i,paramsString:JSON.stringify(s),webviewIds:a}))},call(i,o,a){let s=window.prompt("invoke",JSON.stringify({event:i,paramsString:JSON.stringify(o),callbackId:a}));if(s)return JSON.parse(s)}};let n={onDocumentReady:t,env:Vf,doExit:r};globalThis.joliboxJSCore=Wt({},n)}if(typeof window!="undefined"&&window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(o="")=>{mt.trigger(),t.onDocumentReady(JSON.stringify({path:o}))},n=o=>qo(void 0,null,function*(){let a=yield mt.exit();t.doExit(JSON.stringify({uuid:o,shouldInterrupt:a}))});Gl={onDocumentReady:r,invoke(o,a,s){t.invoke(JSON.stringify({event:o,paramsString:a,callbackId:s}))},doExit:n,publish(o,a,s){let l=Hf(a,"joliboxJSCore");t.publish(JSON.stringify({event:o,paramsString:JSON.stringify(l),webviewIds:s}))},call(o,a,s){let l=window.prompt("invoke",JSON.stringify({event:o,paramsString:JSON.stringify(a),callbackId:s}));if(l)return JSON.parse(l)},doBackPress(o){return qo(this,null,function*(){let a=yield mt.backPress();t.doBackPress(JSON.stringify({uuid:o,shouldInterrupt:a}))})}};let i={onDocumentReady:r,env:Vf,doExit:n};globalThis.joliboxJSCore=Wt({},i)}$f=Gl;if(!$f&&fT())throw new YC("No joliboxJScore is found, native bridge not found.");xT=Wt({},$f),Wf=AT(xT),{invokeHandler:Nf}=Wf,{applyNative:ye,invokeNative:j,onNative:et,offNative:e9,subscribeHandler:CT,publish:zf,emitNative:Bl,subscribe:t9,unsubscribe:r9}=Wf;globalThis.joliboxJSBridge={callHandler:Nf,invokeHandler:Nf,subscribeHandler:CT}});function LT(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function eh(e){return new Promise(t=>setTimeout(t,e))}function ci(e){return typeof e=="string"}function Mr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function th(e){return typeof e=="object"&&Array.isArray(e)}function rh(e){return typeof e=="number"&&!isNaN(e)}function on(e){return e===!0||e===!1}function nh(e){return typeof e=="undefined"}function Ql(e){return nh(e)||e===null}function MT(e){return typeof e=="function"}function ih(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function oh(e,t,r){if(typeof r!="function")throw new Error("[Jolibox SDK]Customizer must be a function");function n(i,o){for(let a in o)if(Object.prototype.hasOwnProperty.call(o,a)){let s=i[a],l=o[a],c=r(s,l,a,i,o);c!==void 0?i[a]=c:Qf(l)&&Qf(s)?i[a]=n(RT({},s),l):Array.isArray(l)&&Array.isArray(s)?i[a]=[...s,...l]:i[a]=l}return i}return n(e,t)}function Qf(e){return e&&typeof e=="object"&&e.constructor===Object}function ah(e,t){if(Array.isArray(e))return e.concat(t)}function ui(e,t,r={}){let n=null,i,o,a,{leading:s=!1,trailing:l=!0}=r,c=()=>(a=e.apply(o,i),i=void 0,o=void 0,a),d=function(...u){i=u,o=this;let p=s&&!n;if(n&&clearTimeout(n),n=setTimeout(()=>{n=null,l&&!p&&c()},t),p)return c()};return d.cancel=()=>{n&&clearTimeout(n),n=null,i=o=void 0},d.flush=()=>{if(n)return clearTimeout(n),n=null,c()},d}function UT(e,t){return(...r)=>t(e,...r)}function Jo(e){return t=>UT(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(i){e(new Pt(`${i}`))}})}function oi(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function fh(e,t,r){let n=0;if(e!==t){let i=e.split("."),o=t.split("."),a=Math.max(i.length,o.length);for(let s=0;s<a;s++){let l=parseInt(i[s],10)||0,c=parseInt(o[s],10)||0;if(l>c){n=1;break}else if(l<c){n=-1;break}}}if(!r)return n;switch(r){case">":return n>0;case"<":return n<0;case"=":return n===0;case">=":return n>=0;case"<=":return n<=0;default:return!1}}function nc(){if(typeof window=="undefined")return{getItem:()=>null,setItem:()=>{},removeItem:()=>{},clear:()=>{},length:0,key:()=>null};try{if(window.__joliboxLocalStorage__)return window.__joliboxLocalStorage__;let e=Object.getOwnPropertyDescriptor(window,"localStorage");if(e&&e.get){let n=e.get.call(window);return window.__joliboxLocalStorage__=n,n}if(e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(window),"localStorage"),e&&e.get)return e.get.call(window);let t=Window.prototype,r=Object.getOwnPropertyDescriptor(t,"localStorage");if(r&&r.get){let n=r.get.call(window);return window.__joliboxLocalStorage__=n,n}return localStorage}catch(e){return console.warn("Failed to get original localStorage, fallback to default implementation",e),localStorage}}function HT(e,t,r){let n=window.location.hostname,i=n.split("."),o=r?t:e;if(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(n))return`${o}.jolibox.com`;if(i.length>=2){let a=i.slice(-2).join(".");if(a==="jolibox.com"||a==="pico-game.com"||a==="joyslite.com")return`${o}.${a}`}return`${o}.jolibox.com`}function ic(e){return HT("api","stg-api",e)}function qr(e){return`https://${ic(e)}`}function zT(e){return new Promise(t=>gh(e)(t))}function gh(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function KT(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new li(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function QT(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)XT(e[n],t[n])}function XT(e,t){if(ci(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(MT(t)){try{if(e instanceof t)return}catch(r){}if(!Ql(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function ZT(){return typeof globalThis!="undefined"?globalThis[yh]:void 0}function e1(e){typeof globalThis!="undefined"&&(globalThis[yh]=e)}function X(e=!1){let t=ZT();if(!e&&t)return t;let r=new jo,n=new Kl,i={registerCommand(o,a,s){r.registerCommand({id:o,handler:a,metadata:s})},executeCommand(o,...a){return n.executeCommand(o,...a)},excuteCommandSync(o,...a){return n.executeCommandThowErr(o,...a)}};return e1(i),i}var Yl,TT,Kf,OT,PT,Yf,RT,NT,Zf,DT,Ot,qT,Xl,di,Zl,sh,Pt,lh,ch,uh,dh,ph,pi,ec,Rt,Vl,FT,tc,Xf,jT,G,rc,JT,an,ai,fi,GT,BT,hh,mh,vh,$l,le,VT,$T,si,li,Nt,zl,WT,Hl,YT,ne,jo,Kl,yh,R=A(()=>{"use strict";Yl=Object.defineProperty,TT=Object.getOwnPropertyDescriptor,Kf=Object.getOwnPropertySymbols,OT=Object.prototype.hasOwnProperty,PT=Object.prototype.propertyIsEnumerable,Yf=(e,t,r)=>t in e?Yl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,RT=(e,t)=>{for(var r in t||(t={}))OT.call(t,r)&&Yf(e,r,t[r]);if(Kf)for(var r of Kf(t))PT.call(t,r)&&Yf(e,r,t[r]);return e},NT=(e,t)=>{for(var r in t)Yl(e,r,{get:t[r],enumerable:!0})},Zf=(e,t,r,n)=>{for(var i=n>1?void 0:n?TT(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(n?a(t,r,i):a(i))||i);return n&&i&&Yl(t,r,i),i},DT=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new t};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let r=new Event("abort");this.signal.dispatchEvent(r)};let t=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(t.prototype,"aborted",{get:function(){return this._aborted}}),t.prototype.addEventListener=function(r,n){this._eventListeners[r]||(this._eventListeners[r]=[]),this._eventListeners[r].push(n)},t.prototype.removeEventListener=function(r,n){if(!this._eventListeners[r])return;let i=this._eventListeners[r].indexOf(n);i!==-1&&this._eventListeners[r].splice(i,1)},t.prototype.dispatchEvent=function(r){if(this._eventListeners[r.type])for(let n of this._eventListeners[r.type])n.call(this,r)},window.AbortController=e,window.AbortSignal=t}Ot=class{constructor(){this.state="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.state==="pending"&&(this.state="fulfilled",e(r))},this.reject=r=>{this.state==="pending"&&(this.state="rejected",t(r))}})}};qT=(e=>(e[e.DEVELOPER_FILE_NOT_FOUND=0]="DEVELOPER_FILE_NOT_FOUND",e[e.INTERNAL_IOS_CAN_NOT_FOUND_PKG=1]="INTERNAL_IOS_CAN_NOT_FOUND_PKG",e[e.USER_IOS_LOAD_TIMEOUT=2]="USER_IOS_LOAD_TIMEOUT",e[e.INTERNAL_IOS_PKG_LOAD_ERROR=3]="INTERNAL_IOS_PKG_LOAD_ERROR",e[e.INTERNAL_IOS_PKG_PARSE_FAIL=4]="INTERNAL_IOS_PKG_PARSE_FAIL",e[e.USER_IOS_GET_EMPTY_DATA=5]="USER_IOS_GET_EMPTY_DATA",e[e.USER_ANDROID_GET_PKG_FAIL=6]="USER_ANDROID_GET_PKG_FAIL",e[e.DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE=7]="DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE",e))(qT||{}),Xl=class extends Error{constructor(e){if(typeof e=="string"){super(e),this.priority="P1";return}super(e.message),this.priority="P1",this.stack=e.stack,this.raw=e}},di=class extends Xl{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},Zl=class extends Xl{constructor(){super(...arguments),this.kind="USER_ERROR"}},sh=class extends Zl{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},Pt=class extends Zl{constructor(e,t,r){super(e),this.message=e,this.errNo=t,this.name="USER_CUSTOM_ERROR",this.errMsg=e,r&&(this.extra=Object.assign({},this.extra,r))}},lh=class extends Zl{constructor(e,t,r){super(e),this.message=e,this.errNo=t,this.name="USER_PAYMENT_ERROR",this.errMsg=e,r&&(this.extra=Object.assign({},this.extra,r))}},ch=class extends di{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},uh=class extends di{constructor(e,t,r){super(e),this.message=e,this.errNo=t,this.name="INTERNAL_PAYMENT_ERROR",this.priority="P0",this.errMsg=e,r&&(this.extra=Object.assign({},this.extra,r))}},dh=class extends di{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_METHOD_ERROR"}},ph=class extends di{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},pi=class extends Xl{constructor(e,t,r,n,i){super(e),this.message=e,this.code=t,this.kind="API_ERROR",this.name="API_ERROR",r&&(this.errorType=r),n!==void 0&&(this.stack=n),i&&(this.priority=i)}toJSON(){return{message:this.message,stack:this.stack,name:this.name,code:this.code,errorType:this.errorType}}},ec=class extends di{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};Rt={log:oi("log"),warn:oi("warn"),info:oi("info"),error:oi("error"),debug:oi("debug")};Object.assign(globalThis,{logger:Rt});Vl=Symbol.for("Jolibox.canIUseMap"),FT={};globalThis[Vl]||(globalThis[Vl]=FT);tc={get config(){return globalThis[Vl]}},Xf=Symbol.for("Jolibox.canIUseMap.native"),jT={};globalThis[Xf]||(globalThis[Xf]=jT);G=(e=>(e[e.Other=0]="Other",e[e.Route=1]="Route",e[e.Click=2]="Click",e[e.View=3]="View",e[e.Expose=4]="Expose",e[e.Swipe=5]="Swipe",e[e.Input=6]="Input",e[e.Select=7]="Select",e[e.SwitchOn=8]="SwitchOn",e[e.SwitchOff=9]="SwitchOff",e[e.Submit=10]="Submit",e[e.Scroll=11]="Scroll",e[e.Hide=12]="Hide",e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(G||{}),rc=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(rc||{}),JT=(e=>(e[e.App=0]="App",e[e.H5=1]="H5",e[e.Weapp=2]="Weapp",e[e.Alipay=3]="Alipay",e[e.Gcash=4]="Gcash",e[e.Dana=5]="Dana",e[e.Umma=6]="Umma",e[e.WebSDK=1e3]="WebSDK",e[e.AppSDK=1001]="AppSDK",e[e.Other=9999]="Other",e))(JT||{}),an=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});nc();ai=typeof window=="undefined",fi={isiOS:!ai&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),iosVersion:()=>{let e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3]||"0",10)]},isAndroid:!ai&&navigator.userAgent.includes("Android"),isMac:!ai&&navigator.userAgent.includes("Mac"),isFacebook:!ai&&navigator.userAgent.includes("FB_IAB"),isPC:!ai&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},GT="device_id",BT="advertising_id",hh=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,an()),window.__joliboxLocalStorage__.getItem(e)),mh=()=>new URLSearchParams(window.location.search).get("deviceId")||hh(GT),vh=()=>new URLSearchParams(window.location.search).get("advertisingId")||hh(BT);$l=class Wl{constructor(t){this.element=t,this.next=Wl.Undefined,this.prev=Wl.Undefined}};$l.Undefined=new $l(void 0);le=$l,VT=class{constructor(){this._first=le.Undefined,this._last=le.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===le.Undefined}clear(){let e=this._first;for(;e!==le.Undefined;){let t=e.next;e.prev=le.Undefined,e.next=le.Undefined,e=t}this._first=le.Undefined,this._last=le.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new le(e);if(this._first===le.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==le.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==le.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==le.Undefined&&e.next!==le.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===le.Undefined&&e.next===le.Undefined?(this._first=le.Undefined,this._last=le.Undefined):e.next===le.Undefined?(this._last=this._last.prev,this._last.next=le.Undefined):e.prev===le.Undefined&&(this._first=this._first.next,this._first.prev=le.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==le.Undefined;)yield e.element,e=e.next}},$T=0,si=class{constructor(e){this.value=e,this.id=$T++}},li=class{constructor(e){this.options=e,this._size=0}dispose(e){var t,r;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof si&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(r=(t=this.options)==null?void 0:t.onDidRemoveLastListener)==null||r.call(t))}get event(){var e;return(e=this._event)!=null||(this._event=(t,r)=>{var n,i,o,a,s,l;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};r&&(t=t.bind(r));let c=new si(t);return this._listeners?this._listeners instanceof si?this._listeners=[this._listeners,c]:this._listeners.push(c):((i=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||i.call(n,this),this._listeners=c,(a=(o=this.options)==null?void 0:o.onDidFirstListener)==null||a.call(o,this)),(l=(s=this.options)==null?void 0:s.onDidAddListener)==null||l.call(s,this),this._size++,()=>{var d,u,p,f;if(!this._disposed){if(this._listeners instanceof si)this._listeners.id===c.id&&(this._listeners=void 0,this._size=0,(u=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||u.call(d));else if(this._listeners){let m=this._listeners.indexOf(c);m>=0&&(this._listeners.splice(m,1),this._size--,this._size===0&&((f=(p=this.options)==null?void 0:p.onDidRemoveLastListener)==null||f.call(p)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof si?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Nt=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t,r=!0){var n;let i=(n=this.listeners.get(e))!=null?n:new li,o=l=>t(...l.args),a=i.event(o);this.listerHandlerMap.set(t,{handler:o,dispose:a}),this.listeners.set(e,i);let s=this.cachedEventQueue.get(e);if(s&&r)for(let l of s)t(...l.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,t){let r=this.listerHandlerMap.get(t);r&&(r.dispose(),this.listerHandlerMap.delete(t))}emit(e,...t){let r=this.listeners.get(e),n=this.cachedEventQueue.get(e);n||(n=new VT,this.cachedEventQueue.set(e,n)),n.push({args:t}),r&&r.fire({event:e,args:t})}once(e,t){let r=(...n)=>{t(...n),this.off(e,r)};this.on(e,r,!1)}},zl={};NT(zl,{None:()=>WT,filter:()=>KT,once:()=>gh,toPromise:()=>zT});WT=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Hl=Symbol.for("Jolibox.hostEmitter"),YT=()=>{let e=new Nt;return globalThis[Hl]||(globalThis[Hl]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Hl]},ne=YT();jo=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new li,this.onDidRegisterCommand=this._onDidRegisterCommand.event,console.log("[Jolibox SDK] command registry")}registerCommand(e){if(!e)throw new Error("invalid command");if(e.metadata&&Array.isArray(e.metadata.args)){let r=[];for(let i of e.metadata.args)r.push(i.constraint);let n=e.handler;e.handler=function(...i){return QT(i,r),n(...i)}}let{id:t}=e;this._commands.get(t)&&console.info(`[Jolibox SDK] duplicated command is registered ${t}`),this._commands.set(t,e),this._onDidRegisterCommand.fire(t)}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;for(let t of this._commands.keys()){let r=this.getCommand(t);r&&e.set(t,r)}return e}};jo=Zf([ih],jo);Kl=class{constructor(){this._onWillExecuteCommand=new li,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new li,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new jo,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=LT(3e4)),this._starActivation}executeCommand(e,...t){return DT(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),zl.toPromise(zl.filter(this.registry.onDidRegisterCommand,r=>r===e))])]),this._tryExecuteCommand(e,t))})}executeCommandThowErr(e,...t){if(!this.registry.getCommand(e))throw new Error(`command '${e}' not found`);let r=this.registry.getCommand(e);this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),n}_tryExecuteCommand(e,t){let r=this.registry.getCommand(e);if(!r)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}invokeFunction(e,...t){let r=!1;try{return e(...t)}finally{r=!0}}};Kl=Zf([ih],Kl);yh=Symbol.for("Jolibox.commands")});function xe(e,t={}){oc.emit("ERROR_REPORT",{error:e,options:t})}var oc,Ur,vt=A(()=>{"use strict";R();R();oc=new Nt,Ur=new Nt;xe.debounce=ui(xe,50,{leading:!0})});var ac,t1,_h,bh,wh=A(()=>{"use strict";R();vt();ac=e=>{let t=e.replace(/-/g,"+").replace(/_/g,"/"),r=t.length%4===0?"":"=".repeat(4-t.length%4),n=atob(t+r);try{return JSON.parse(n)}catch(i){return{}}},t1=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},_h=e=>{var t;try{let i=(t=new URL(e).searchParams.get("joliSource"))==null?void 0:t.split(".");if(i!=null&&i.length){let[o,a,s]=i;return{headerJson:ac(o),payloadJson:ac(a),signature:ac(s)}}else throw"joli_source is missing"}catch(r){return xe(new ch(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},bh=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],i=t1(e),o=r[2];return`${n}.${i}.${o}`}return t}});var r1,sc,Ih=A(()=>{"use strict";R();r1="1.2.1",sc=()=>r1});function cc(e,t){return(document==null?void 0:document.head.querySelector(`meta[name="${e}"][content="${t}"]`))!==null}var n1,Eh,lc,kh,de,i1,E,B=A(()=>{"use strict";R();wh();Ih();R();n1={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:mh(),adId:vh(),pixelRatio:window.devicePixelRatio||1,platform:fi.isAndroid?"android":fi.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:sc()},schema:window.location.href,platform:fi.isAndroid?"android":fi.isiOS?"ios":"h5"},lc=(Eh=globalThis.joliboxJSCore)==null?void 0:Eh.env,de=Object.assign({},(kh=lc==null?void 0:lc())!=null?kh:n1);i1=()=>{var f,m,g,y,v,b,k,x,P,C,S;let{payloadJson:e,headerJson:t,signature:r}=de.schema.length?_h(de.schema):{},n=`${de.deviceInfo.did}-${new Date().getTime()}`,o=new URL(de.schema.length?de.schema:window.location.href).searchParams,a=(g=(m=(f=o.get("mpId"))!=null?f:o.get("appId"))!=null?m:o.get("gameId"))!=null?g:"",s=(b=(v=(y=de.clientSessionId)!=null?y:e==null?void 0:e.sessionId)!=null?v:o.get("sessionId"))!=null?b:n,l=!!((x=(k=e==null?void 0:e.testAdsMode)!=null?k:e==null?void 0:e.__testAdsMode)!=null?x:o.get("testAdsMode")==="true"),c=(S=(C=(P=e==null?void 0:e.joliboxEnv)!=null?P:e==null?void 0:e.__joliboxEnv)!=null?C:o.get("joliboxEnv"))!=null?S:"production",d=c==="staging",u=t==null?void 0:t.channel,p=e==null?void 0:e.__shouldInterupt;return{get startTime(){var O;return(O=performance.timeOrigin)!=null?O:performance.timing.navigationStart},get testMode(){return d},get testAdsMode(){return l},get joliboxEnv(){return c},get joliSource(){var O;return(O=o.get("joliSource"))!=null?O:null},get mpId(){var O;return(O=a!=null?a:e==null?void 0:e.id)!=null?O:""},get mpVersion(){var O;return(O=t==null?void 0:t.ver)!=null?O:sc()},get mpType(){var O,J;return(J=(O=t==null?void 0:t.__mpType)!=null?O:e==null?void 0:e.__mpType)!=null?J:"game"},get platform(){var O;return((O=de.platform)!=null?O:de.deviceInfo.platform).toLowerCase()},get deviceInfo(){return de.deviceInfo},get sdkInfo(){return de.sdkInfo},get hostInfo(){return de.hostInfo},get hostUserInfo(){return de.hostUserInfo},get sessionId(){var O,J;return(J=(O=de.clientSessionId)!=null?O:s)!=null?J:n},get channel(){return u},get webviewId(){var O;return(O=de.webviewId)!=null?O:-1},get shouldInterupt(){return p},get from(){return e==null?void 0:e.__from},get baseApiHost(){return ic(d)},get adId(){var O;return(O=de.deviceInfo.adId)!=null?O:de.deviceInfo.did},get language(){return de.deviceInfo.lang},get sdkEnvironment(){return cc("dlightek","jolibox")?"dlightek":o.get("huaweiQuick")==="true"?"huaweiQuick":cc("gamedistribution","jolibox")?"gamedistribution":cc("funmax","jolibox")?"funmax":"jolibox"},get viewport(){var M,Re,Ne;let O=(M=de.deviceInfo.pixelRatio)!=null?M:1,J=(Re=de.deviceInfo.statusBarHeight)!=null?Re:e==null?void 0:e.__androidStatusBarHeight,Ke=(Ne=de.deviceInfo.navigationBarHeight)!=null?Ne:e==null?void 0:e.__androidNavigationBarHeight;return{statusBarHeight:J!==void 0?J/O:20,navigationBarHeight:Ke!==void 0?Ke/O:10}},get abTests(){var O,J;return(J=(O=de.abValues)==null?void 0:O.split(","))!=null?J:[]},onEnvConfigChanged:O=>{oh(de,O,ah)},encodeJoliSourceQuery:O=>{var J,Ke;return t&&r?bh(T(T({},e),O),(J=o.get("joliSource"))!=null?J:""):(Ke=o.get("joliSource"))!=null?Ke:""},setDoExitDirectly:()=>{p=!1}}},E=i1()});var uc,Ah,o1,a1,Sh,s1,xh=A(()=>{"use strict";R();vt();B();R();uc=!1,Ah=(e,t)=>e==null?!1:t in e,o1=e=>Ah(e,"kind"),a1=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},Sh=(e,t={},r)=>{var o,a,s;let n={user_id:(a=(o=E.hostUserInfo)==null?void 0:o.uid)!=null?a:"",device_id:(s=E.deviceInfo.did)!=null?s:"",timestamp:Date.now(),tag:a1(e.name)},i=F(T({},n),{env:t.environment,isFromUser:r});r?Ur.emit("GLOBAL_USER_ERROR",e,i):Ur.emit("GLOBAL_ERROR",e,i)},s1=e=>Ah(e,"kind")&&e.kind==="USER_ERROR";oc.on("ERROR_REPORT",({error:e,options:t})=>{if(uc)return;uc=!0;let r=o1(e)&&e.raw?e.raw:e;try{let n=s1(e);Sh(e,t,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new ec(`${i}, origin error: ${r.message}`);Rt.error(o),Sh(new ec(o.message),{environment:t.environment},!1)}finally{uc=!1}})});var hr,dc,sn=A(()=>{"use strict";vt();R();vt();hr=(e,t)=>{var r,n;return new pi((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},dc=e=>new sh(e)});var Ch=A(()=>{"use strict";xh();sn();R();_e();Ur.on("GLOBAL_ERROR",(e,t)=>{var n;let r={message:e.message,stack:(n=e.stack)!=null?n:"",errorType:e.name,source:0};j("trackAsync",{event:"reportJsError",data:r})});Ur.on("GLOBAL_USER_ERROR",(e,t)=>{Rt.log("UserError",e,t)})});var pc=A(()=>{"use strict"});function Th(e,t){let r=(n,i,o)=>{let c=i!=null?i:{},{eventType:a}=c,s=je(c,["eventType"]),l=F(T({tag:n,eventType:o!=null?o:a!=null?a:G.Other},t),{extra:T({},s)});n=="globalJsError"?xe(new ph(JSON.stringify(l))):e("systemLog",l,E.webviewId)};return r.debounce=ui(r,500,{leading:!0}),r}function Oh(e){let t=(r,n,i)=>{var s;let o=(s=i&&JSON.stringify(i))!=null?s:0,a={speed_value_type:r,total_duration:n};o&&Object.assign(a,{extra:o}),e("joliboxSpeedAnalysis",a)};return t.debounce=ui(t,500,{leading:!0}),t}var Ph=A(()=>{"use strict";R();R();vt();B()});function Rh(e,t){let r=Th(e,t),n=Oh(r);return{track:r,trackPerformance:n}}var Nh=A(()=>{"use strict";Ph()});var Dh=A(()=>{"use strict";B();R();R()});var Lh=A(()=>{"use strict";Nh();pc();Dh()});var Go,Mh=A(()=>{"use strict";Go=class{constructor(t,r){this.eventEmitter=t;this.lastReportTime=0;this.visible=!0;this.timer=this.createRAFTimer(t=>{this.reporter({event:"PLAY_GAME",params:{duration:t}}),this.tracker("PlayGame",{duration:t})});this.interval=r!=null?r:5*1e3,t.on("visible",n=>{this.visible=n})}start(t){this.reporter({event:"OPEN_GAME",params:{timestamp:Date.now(),duration:t!=null?t:0}}),this.tracker("OpenGame",{duration:t!=null?t:0}),this.timer.start()}close(t){this.reporter({event:"CLOSE_GAME",params:{timestamp:Date.now(),duration:t}}),this.tracker("CloseGame",{duration:t}),this.timer.stop()}createRAFTimer(t){let r=Date.now(),n,i,o=!1,a=0,s=()=>{if(!o)return;let f=Date.now(),m=f-r;m>=this.interval&&(this.visible&&(a+=Math.min(m,this.interval+1e3),t(a)),r=f),n=requestAnimationFrame(s)},l=()=>{d(),r=Date.now(),i=window.setInterval(()=>{if(!o)return;let f=Date.now();f-r>=this.interval&&(r=f)},this.interval)},c=()=>{u(),r=Date.now(),n=requestAnimationFrame(s)},d=()=>{n&&(cancelAnimationFrame(n),n=0)},u=()=>{i&&(clearInterval(i),i=0)};this.eventEmitter.on("visible",f=>{o&&(console.log("visible",f),f?c():l())});let p=this.visible;return{start(){o||(o=!0,p?c():l())},stop(){o=!1,d(),u()}}}}});function Bo(e,t,r){var l,c,d;let n=new Map,i=(l=r==null?void 0:r.baseUrl)!=null?l:qr(E.testMode),o=(c=r==null?void 0:r.type)!=null?c:"public",a=(d=r==null?void 0:r.defaultHeaders)!=null?d:{};return et("onRequestTaskStateChange",u=>{if(typeof u.requestTaskId!="string")return;let p=n.get(u.requestTaskId);if(p)if(u.state==="success"){let f=u,{requestTaskId:g,state:y}=f,v=je(f,["requestTaskId","state"]);u.statusCode===200?p.resolve(v):p.reject(v),n.delete(g)}else if(u.state==="fail"){let m=u,{requestTaskId:g,state:y}=m,v=je(m,["requestTaskId","state"]);p.reject(v),n.delete(g)}else Rt.warn("onRequestTaskStateChange unknown event",u)}),ne.on("onLoginComplete",({isLogin:u,token:p})=>{o!=="public"&&u&&p&&(a["X-JOLI-TOKEN"]=p)}),(f,...m)=>w(this,[f,...m],function*(u,p={}){let g=Date.now(),y=l1(u,F(T({},p),{baseUrl:i})),{method:v="GET",responseType:b="text",dataType:k="json",timeout:x,enableCache:P=!1,appendHostCookie:C=!0}=p,S=Object.assign({"content-type":"application/json"},a,p.header),O={url:y,method:v,header:S,enableCache:P,responseType:b,appendHostCookie:C};if(v=="POST"||v=="PUT"){let Ne=u1(p.data,S["content-type"]);O.data=Ne}x&&Object.assign(O,{timeout:x});let{data:{requestTaskId:J}}=j(e,O);if(typeof J!="string")throw hr({code:-1,msg:"requestTaskId is not a string"});let{resolve:Ke,reject:M,promise:Re}=new Ot;n.set(J,{resolve:Ke,reject:M});try{let Ne=yield Re,{data:Lr}=Ne;return k==="json"&&typeof Lr=="string"&&(Lr=c1(Lr)),{url:y,timeout:x,method:v,response:F(T({},Ne),{data:Lr})}}catch(Ne){let Lr=Ne;if(Mr(Lr)){let{errMsg:kl,prefetchDetail:z4,isPrefetch:K4,errNo:wC}=Lr;ci(kl)&&xe(hr({code:-1,msg:kl},{errNo:wC,errMsg:kl}))}throw Ne}})}function c1(e){try{return JSON.parse(e.trim())}catch(t){return e}}function u1(e,t="application/json"){let r=t.toLowerCase();return e===void 0?"":typeof e=="string"||e instanceof ArrayBuffer?e:r.includes("application/x-www-form-urlencoded")||r.includes("application/json")||typeof e=="object"?JSON.stringify(e):String(e)}var l1,fc=A(()=>{"use strict";R();_e();vt();sn();B();l1=(e,t)=>{if(/^https?:\/\//.test(e))return e;let r=t==null?void 0:t.query,i=new URLSearchParams(r).toString();return t!=null&&t.baseUrl?`${t.baseUrl}${e}${i?`?${i}`:""}`:`${e}${i?`?${i}`:""}`}});var hc,qh,te,gt=A(()=>{"use strict";fc();B();R();hc={};(qh=E.hostUserInfo)!=null&&qh.token&&(hc["x-joli-token"]=E.hostUserInfo.token);E.joliSource&&(hc["x-joli-source"]=E.joliSource);te=Bo("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:qr(E.testMode),defaultHeaders:hc})});var Ho,Uh=A(()=>{"use strict";B();Mh();R();gt();_e();Ho=class extends Go{constructor(t,r,n){super(r,n),this.gameId=E.mpId,this.sessionId=E.sessionId,this.track=t,this.taskUrl=qr(E.testMode)+"/api/base/app-event"}reporter(t){return w(this,null,function*(){let{event:r,params:n,extraParams:i}=t,o={eventType:r,gameInfo:T({gameId:this.gameId,sessionId:this.sessionId},n)};i&&Object.assign(o,i),yield E.platform==="android"?te("/api/base/app-event",{method:"POST",data:o}):ye("trackAppEventAsync",{url:this.taskUrl,body:JSON.stringify(o)})})}reportToNative(t){return w(this,null,function*(){let{event:r,params:n}=t;yield ye("userTrackAsync",{event:r,params:T({},n),gameId:this.gameId})})}tracker(t,r=null){this.track(t,r)}}});var Bh={};Sf(Bh,{nativeTaskEmitter:()=>hi,taskTracker:()=>It,track:()=>U,trackPerformance:()=>Jh});var d1,Fh,jh,U,Jh,Gh,hi,It,yt=A(()=>{"use strict";Ch();R();pc();Lh();B();Uh();_e();d1=(e,t,r)=>{var s,l,c,d,u,p;let n=t,i=Mr(n.extra)?n.extra:ci(n.extra)?JSON.parse(n.extra):{},o=F(T({},i),{mp_id:(s=n.mp_id)!=null?s:"",mp_version:(l=n.mp_version)!=null?l:"",session_id:E.sessionId,user_id:(d=(c=E.hostUserInfo)==null?void 0:c.uid)!=null?d:""}),a=(u=n.eventType)!=null?u:G.Other;j("trackAsync",{event:(p=t.tag)!=null?p:e,data:o,webviewId:r,eventType:a})},{track:U,trackPerformance:Jh}=Rh(d1,{type:rc.AppSDK,platform:"native",jssdk_version:(jh=(Fh=E.sdkInfo)==null?void 0:Fh.jssdkVersion)!=null?jh:"1.0.0",mp_id:E.mpId,mp_version:E.mpVersion}),Gh=X();Gh.registerCommand("ReportSDK.traceSystemTimeline",({event:e,duration:t,extra:r})=>{Jh(e,t,r)});Gh.registerCommand("ReportSDK.traceSystem",({event:e,info:t})=>{U(e,t)});hi=new Nt,It=new Ho(U,hi)});function Hh(){let e=null,t=null,r=window.fetch,n=()=>{t=document.createElement("meta"),t.setAttribute("name","viewport"),t.setAttribute("content","viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"),t.setAttribute("data-jolibox-sdk","viewport-meta"),e=document.createElement("style"),e.setAttribute("data-jolibox-sdk","default-styles");let s=`
1
+ var AC=Object.create;var No=Object.defineProperty,SC=Object.defineProperties,xC=Object.getOwnPropertyDescriptor,CC=Object.getOwnPropertyDescriptors,TC=Object.getOwnPropertyNames,Ro=Object.getOwnPropertySymbols,OC=Object.getPrototypeOf,Sl=Object.prototype.hasOwnProperty,Af=Object.prototype.propertyIsEnumerable;var kf=(e,t,r)=>t in e?No(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T=(e,t)=>{for(var r in t||(t={}))Sl.call(t,r)&&kf(e,r,t[r]);if(Ro)for(var r of Ro(t))Af.call(t,r)&&kf(e,r,t[r]);return e},F=(e,t)=>SC(e,CC(t));var je=(e,t)=>{var r={};for(var n in e)Sl.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ro)for(var n of Ro(e))t.indexOf(n)<0&&Af.call(e,n)&&(r[n]=e[n]);return r};var S=(e,t)=>()=>(e&&(t=e(e=0)),t);var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Sf=(e,t)=>{for(var r in t)No(e,r,{get:t[r],enumerable:!0})},PC=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of TC(t))!Sl.call(e,i)&&i!==r&&No(e,i,{get:()=>t[i],enumerable:!(n=xC(t,i))||n.enumerable});return e};var ie=(e,t,r)=>(r=e!=null?AC(OC(e)):{},PC(t||!e||!e.__esModule?No(r,"default",{value:e,enumerable:!0}):r,e));var w=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});function qC(e){return!!(e!=null&&e.__nativeBuffers__)}function Nl(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!qC(e))return e;let t=e.__nativeBuffers__;if(delete e.__nativeBuffers__,t)for(let r=0;r<t.length;r++){let n=t[r];if(n){let i;n.value?i=n.value:n.base64&&(i=UC(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function jC(e={},t=!1){let r=e,n=[];for(let[i,o]of Object.entries(r))if(o!==void 0&&o instanceof ArrayBuffer&&o.byteLength!==void 0){let a=t?{value:o,key:i}:{base64:FC(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function HC(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Ff(e){return typeof e=="string"}function nn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Cf(e){return typeof e=="number"&&!isNaN(e)}function $C(e){return typeof e=="undefined"}function WC(e){return $C(e)||e===null}function jf(e){return typeof e=="function"}function zC(e){return nn(e)&&jf(e.then)}function Jf(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function ti(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function tT(e,t,r){let n=e;for(let i of t)if(n&&typeof n=="object")n=n[i];else return r;return n===void 0?r:n}function aT(){if(typeof window=="undefined")return{getItem:()=>null,setItem:()=>{},removeItem:()=>{},clear:()=>{},length:0,key:()=>null};try{if(window.__joliboxLocalStorage__)return window.__joliboxLocalStorage__;let e=Object.getOwnPropertyDescriptor(window,"localStorage");if(e&&e.get){let n=e.get.call(window);return window.__joliboxLocalStorage__=n,n}if(e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(window),"localStorage"),e&&e.get)return e.get.call(window);let t=Window.prototype,r=Object.getOwnPropertyDescriptor(t,"localStorage");if(r&&r.get){let n=r.get.call(window);return window.__joliboxLocalStorage__=n,n}return localStorage}catch(e){return console.warn("Failed to get original localStorage, fallback to default implementation",e),localStorage}}function dT(e){return new Promise(t=>Gf(e)(t))}function Gf(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function pT(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new ii(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function hT(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)mT(e[n],t[n])}function mT(e,t){if(Ff(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(jf(t)){try{if(e instanceof t)return}catch(r){}if(!WC(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function Gl(e,t){if(Ll.config[e]){Fo.warn(`[can i use] ${e} already registered`);return}Ll.config[e]=Wt({},t)}function Pf(e,t){return`[${e}]:${t}`}function IT(e,t){Rf||(Tl=new Lo({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Ol=new Lo({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Pl=new Lo({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),t("onJoliboxEnterBackground",()=>{Tl.flush(),Ol.flush(),Pl.flush()}),Rf=!0);function r(i){var o,a;let{method:s,args:l,startTime:c,isForeground:d,errMsg:u=`${s}:fail no errMsg`,errNo:p=0,__timing:f={receiveJSInvoke:0,invokeCallback:0}}=i,{receiveJSInvoke:m,invokeCallback:g}=f,y=(a=(o=u.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";Tl.report({status:y,method:n(s,l),errNo:`${p}`,errMsg:u,isForeground:d,duration:Date.now()-c}),c&&m&&g&&(Ol.report({status:y,method:s,isForeground:d,duration:Number((m-c).toFixed(3))}),Pl.report({status:y,method:s,isForeground:d,duration:Number((Date.now()-g).toFixed(3))}))}function n(i,o){return(i==="callHostMethod"||i==="callHostMethodSync")&&o!=null&&o.method?`${i}-${o.method}`:i}return r}function ST(e,t){let r=0,n=!0,i=AT.resolveMap,o=IT(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,Rl.forEach(l=>qo(this,[l],function*({method:c,args:d,resolve:u}){let p=yield s(c,d);u(p)})),Rl.length=0});let a=(l,c)=>{let d=i.get(Number(l));if(!d)return;let u=Nl(c);d(u),i.delete(Number(l))},s=(l,c)=>{var d,u;let p=Date.now(),f=`${n}`;r+=1;let m=new VC;if(i.set(r,m.resolve),!n&&yT.includes(l))return new Promise(x=>{Rl.push({method:l,args:c,resolve:x})});let g=LC(Wt({},{method:l,startTime:p,args:c,isForeground:f}),{invokeType:"js-bridge"}),y=!ET&&gT.includes(l),v=jC(c,y),b=y?v:JSON.stringify(v),k;if(l.endsWith("Sync")||_T.includes(l)?k=(d=e.call)==null?void 0:d.call(e,l,v,r):typeof b=="string"?k=e.invoke(l,b,r):k=(u=e.call)==null?void 0:u.call(e,l,b,r),k){try{typeof k=="string"&&(k=JSON.parse(k)),k=Nl(k)}catch(x){Fo.error(x)}return i.delete(r),k.errorCode&&(k.errorCode=Pf(l,k.errorCode)),o(Wt(Wt({},g),k)),k}return l.endsWith("Sync")&&i.delete(r),m.promise.then(x=>(x.errorCode&&(x.errorCode=Pf(l,x.errorCode)),o(Wt(Wt({},g),x)),x))};return{invokeNative:s,applyNative:(l,c)=>{let d=s(l,c);return zC(d)?d.then(u=>Nf(l,u)):Nf(l,d)},invokeHandler:a}}function Nf(e,t){if(!nn(t)){Fo.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=MC(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new XC(n,i,o,a);return s}function xT(e){if(globalThis[Do])return globalThis[Do];let t=new Ul,r=new Ul,n=new Lo({eventName:"jolibox_publish",tagNameOrder:["type","event"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}});return t.on("onJoliboxEnterBackground",()=>{n.flush()}),globalThis[Do]={onNative:t.on.bind(t),offNative:t.off.bind(t),subscribe:r.on.bind(r),unsubscribe:r.off.bind(r),subscribeHandler(i,o,a){let s=Nl(o),l;if(s.__extra){l=s.params;let{type:c,startTime:d}=s.__extra;n.report({type:c,event:i,duration:Date.now()-d})}else l=s;if(i===Hf){l.forEach(c=>{let[d,u]=c;try{r.emit(d.slice(ni.length),u,a)}catch(p){}});return}if(i.startsWith(ni)){r.emit(i.slice(ni.length),l,a);return}t.emit(i,l,a)}},globalThis[Do]}function CT(e){let t=new Map,r=new Map,n,i;return{publish:(o,a,s,l)=>{if(l){let d=s!==void 0?s==="*"?"*":[s]:void 0;e.publish(`${ni}${o}`,a,d);return}n||(n=Promise.resolve().then(()=>{t.forEach((d,u)=>{try{let p=u!==void 0?u==="*"?"*":[u]:void 0;e.publish(Hf,d,p)}catch(p){}}),n=void 0,t.clear()}));let c=t.get(s);c||(c=[],t.set(s,c)),c.push([`${ni}${o}`,a])},emitNative:(o,a,s,l)=>{if(l){let d=s!==void 0?s==="*"?"*":[s]:void 0;e.publish(o,a,d),console.log("emitNative",o,a,d);return}i||(i=Promise.resolve().then(()=>{r.forEach((d,u)=>{try{let p=u!==void 0?u==="*"?"*":[u]:void 0;e.publish(bT,d,p)}catch(p){}}),i=void 0,r.clear()}));let c=r.get(s);c||(c=[],r.set(s,c)),c.push([o,a])}}}function TT(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=xT(e),{invokeNative:a,invokeHandler:s,applyNative:l}=ST(e,r),{publish:c,emitNative:d}=CT(e);return{invokeHandler:s,subscribeHandler:t,applyNative:l,invokeNative:a,onNative:r,offNative:n,emitNative:d,publish:c,subscribe:i,unsubscribe:o}}function Vf(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var RC,NC,DC,Mo,Lf,Mf,xf,Wt,LC,MC,qo,UC,FC,qf,JC,GC,Uf,BC,VC,KC,YC,Uo,QC,XC,ZC,xl,Fo,Tf,eT,Dl,rT,Ll,nT,iT,oT,rn,sT,eV,Ml,se,lT,cT,ri,ii,Ul,Fl,uT,Cl,fT,tV,jl,Of,rV,Bf,vT,ni,gT,yT,_T,Hf,bT,wT,Lo,Rf,Tl,Ol,Pl,Rl,ET,Jl,kT,AT,Do,Bl,mt,$f,Wf,OT,zf,Df,ye,j,et,nV,PT,Kf,Hl,iV,oV,_e=S(()=>{"use strict";RC=Object.defineProperty,NC=Object.defineProperties,DC=Object.getOwnPropertyDescriptors,Mo=Object.getOwnPropertySymbols,Lf=Object.prototype.hasOwnProperty,Mf=Object.prototype.propertyIsEnumerable,xf=(e,t,r)=>t in e?RC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Wt=(e,t)=>{for(var r in t||(t={}))Lf.call(t,r)&&xf(e,r,t[r]);if(Mo)for(var r of Mo(t))Mf.call(t,r)&&xf(e,r,t[r]);return e},LC=(e,t)=>NC(e,DC(t)),MC=(e,t)=>{var r={};for(var n in e)Lf.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Mo)for(var n of Mo(e))t.indexOf(n)<0&&Mf.call(e,n)&&(r[n]=e[n]);return r},qo=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});UC=e=>{let t=atob(e),r=t.length,n=new Uint8Array(r);for(let i=0;i<r;i++)n[i]=t.charCodeAt(i);return n.buffer};FC=e=>{let t="",r=new Uint8Array(e),n=r.byteLength;for(let i=0;i<n;i++)t+=String.fromCharCode(r[i]);return btoa(t)};qf=Object.defineProperty,JC=Object.getOwnPropertyDescriptor,GC=(e,t)=>{for(var r in t)qf(e,r,{get:t[r],enumerable:!0})},Uf=(e,t,r,n)=>{for(var i=n>1?void 0:n?JC(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(n?a(t,r,i):a(i))||i);return n&&i&&qf(t,r,i),i},BC=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new t};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let r=new Event("abort");this.signal.dispatchEvent(r)};let t=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(t.prototype,"aborted",{get:function(){return this._aborted}}),t.prototype.addEventListener=function(r,n){this._eventListeners[r]||(this._eventListeners[r]=[]),this._eventListeners[r].push(n)},t.prototype.removeEventListener=function(r,n){if(!this._eventListeners[r])return;let i=this._eventListeners[r].indexOf(n);i!==-1&&this._eventListeners[r].splice(i,1)},t.prototype.dispatchEvent=function(r){if(this._eventListeners[r.type])for(let n of this._eventListeners[r.type])n.call(this,r)},window.AbortController=e,window.AbortSignal=t}VC=class{constructor(){this.state="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.state==="pending"&&(this.state="fulfilled",e(r))},this.reject=r=>{this.state==="pending"&&(this.state="rejected",t(r))}})}};KC=(e=>(e[e.DEVELOPER_FILE_NOT_FOUND=0]="DEVELOPER_FILE_NOT_FOUND",e[e.INTERNAL_IOS_CAN_NOT_FOUND_PKG=1]="INTERNAL_IOS_CAN_NOT_FOUND_PKG",e[e.USER_IOS_LOAD_TIMEOUT=2]="USER_IOS_LOAD_TIMEOUT",e[e.INTERNAL_IOS_PKG_LOAD_ERROR=3]="INTERNAL_IOS_PKG_LOAD_ERROR",e[e.INTERNAL_IOS_PKG_PARSE_FAIL=4]="INTERNAL_IOS_PKG_PARSE_FAIL",e[e.USER_IOS_GET_EMPTY_DATA=5]="USER_IOS_GET_EMPTY_DATA",e[e.USER_ANDROID_GET_PKG_FAIL=6]="USER_ANDROID_GET_PKG_FAIL",e[e.DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE=7]="DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE",e))(KC||{}),YC=class extends Error{constructor(e){if(typeof e=="string"){super(e),this.priority="P1";return}super(e.message),this.priority="P1",this.stack=e.stack,this.raw=e}},Uo=class extends YC{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},QC=class extends Uo{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},XC=class extends Uo{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},ZC=class extends Uo{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},xl=class extends Uo{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};Fo={log:ti("log"),warn:ti("warn"),info:ti("info"),error:ti("error"),debug:ti("debug")};Object.assign(globalThis,{logger:Fo});Tf=Symbol.for("Jolibox.canIUseMap"),eT={};globalThis[Tf]||(globalThis[Tf]=eT);Dl=Symbol.for("Jolibox.canIUseMap.native"),rT={};globalThis[Dl]||(globalThis[Dl]=rT);Ll={get config(){return globalThis[Dl]}},nT=(e=>(e[e.Other=0]="Other",e[e.Route=1]="Route",e[e.Click=2]="Click",e[e.View=3]="View",e[e.Expose=4]="Expose",e[e.Swipe=5]="Swipe",e[e.Input=6]="Input",e[e.Select=7]="Select",e[e.SwitchOn=8]="SwitchOn",e[e.SwitchOff=9]="SwitchOff",e[e.Submit=10]="Submit",e[e.Scroll=11]="Scroll",e[e.Hide=12]="Hide",e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(nT||{}),iT=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(iT||{}),oT=(e=>(e[e.App=0]="App",e[e.H5=1]="H5",e[e.Weapp=2]="Weapp",e[e.Alipay=3]="Alipay",e[e.Gcash=4]="Gcash",e[e.Dana=5]="Dana",e[e.Umma=6]="Umma",e[e.WebSDK=1e3]="WebSDK",e[e.AppSDK=1001]="AppSDK",e[e.Other=9999]="Other",e))(oT||{});aT();rn=typeof window=="undefined",sT=()=>!rn&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),eV={isiOS:!rn&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),iosVersion:()=>{let e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3]||"0",10)]},isAndroid:!rn&&navigator.userAgent.includes("Android"),isMac:!rn&&navigator.userAgent.includes("Mac"),isFacebook:!rn&&navigator.userAgent.includes("FB_IAB"),isPC:!rn&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},Ml=class ql{constructor(t){this.element=t,this.next=ql.Undefined,this.prev=ql.Undefined}};Ml.Undefined=new Ml(void 0);se=Ml,lT=class{constructor(){this._first=se.Undefined,this._last=se.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===se.Undefined}clear(){let e=this._first;for(;e!==se.Undefined;){let t=e.next;e.prev=se.Undefined,e.next=se.Undefined,e=t}this._first=se.Undefined,this._last=se.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new se(e);if(this._first===se.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==se.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==se.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==se.Undefined&&e.next!==se.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===se.Undefined&&e.next===se.Undefined?(this._first=se.Undefined,this._last=se.Undefined):e.next===se.Undefined?(this._last=this._last.prev,this._last.next=se.Undefined):e.prev===se.Undefined&&(this._first=this._first.next,this._first.prev=se.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==se.Undefined;)yield e.element,e=e.next}},cT=0,ri=class{constructor(e){this.value=e,this.id=cT++}},ii=class{constructor(e){this.options=e,this._size=0}dispose(e){var t,r;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof ri&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(r=(t=this.options)==null?void 0:t.onDidRemoveLastListener)==null||r.call(t))}get event(){var e;return(e=this._event)!=null||(this._event=(t,r)=>{var n,i,o,a,s,l;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};r&&(t=t.bind(r));let c=new ri(t);return this._listeners?this._listeners instanceof ri?this._listeners=[this._listeners,c]:this._listeners.push(c):((i=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||i.call(n,this),this._listeners=c,(a=(o=this.options)==null?void 0:o.onDidFirstListener)==null||a.call(o,this)),(l=(s=this.options)==null?void 0:s.onDidAddListener)==null||l.call(s,this),this._size++,()=>{var d,u,p,f;if(!this._disposed){if(this._listeners instanceof ri)this._listeners.id===c.id&&(this._listeners=void 0,this._size=0,(u=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||u.call(d));else if(this._listeners){let m=this._listeners.indexOf(c);m>=0&&(this._listeners.splice(m,1),this._size--,this._size===0&&((f=(p=this.options)==null?void 0:p.onDidRemoveLastListener)==null||f.call(p)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof ri?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Ul=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t,r=!0){var n;let i=(n=this.listeners.get(e))!=null?n:new ii,o=l=>t(...l.args),a=i.event(o);this.listerHandlerMap.set(t,{handler:o,dispose:a}),this.listeners.set(e,i);let s=this.cachedEventQueue.get(e);if(s&&r)for(let l of s)t(...l.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,t){let r=this.listerHandlerMap.get(t);r&&(r.dispose(),this.listerHandlerMap.delete(t))}emit(e,...t){let r=this.listeners.get(e),n=this.cachedEventQueue.get(e);n||(n=new lT,this.cachedEventQueue.set(e,n)),n.push({args:t}),r&&r.fire({event:e,args:t})}once(e,t){let r=(...n)=>{t(...n),this.off(e,r)};this.on(e,r,!1)}},Fl={};GC(Fl,{None:()=>uT,filter:()=>pT,once:()=>Gf,toPromise:()=>dT});uT=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Cl=Symbol.for("Jolibox.hostEmitter"),fT=()=>{let e=new Ul;return globalThis[Cl]||(globalThis[Cl]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Cl]},tV=fT();jl=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new ii,this.onDidRegisterCommand=this._onDidRegisterCommand.event,console.log("[Jolibox SDK] command registry")}registerCommand(e){if(!e)throw new Error("invalid command");if(e.metadata&&Array.isArray(e.metadata.args)){let r=[];for(let i of e.metadata.args)r.push(i.constraint);let n=e.handler;e.handler=function(...i){return hT(i,r),n(...i)}}let{id:t}=e;this._commands.get(t)&&console.info(`[Jolibox SDK] duplicated command is registered ${t}`),this._commands.set(t,e),this._onDidRegisterCommand.fire(t)}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;for(let t of this._commands.keys()){let r=this.getCommand(t);r&&e.set(t,r)}return e}};jl=Uf([Jf],jl);Of=class{constructor(){this._onWillExecuteCommand=new ii,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new ii,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new jl,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=HC(3e4)),this._starActivation}executeCommand(e,...t){return BC(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Fl.toPromise(Fl.filter(this.registry.onDidRegisterCommand,r=>r===e))])]),this._tryExecuteCommand(e,t))})}executeCommandThowErr(e,...t){if(!this.registry.getCommand(e))throw new Error(`command '${e}' not found`);let r=this.registry.getCommand(e);this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),n}_tryExecuteCommand(e,t){let r=this.registry.getCommand(e);if(!r)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}invokeFunction(e,...t){let r=!1;try{return e(...t)}finally{r=!0}}};Of=Uf([Jf],Of);rV=Symbol.for("Jolibox.commands");Gl("requestPaymentSync",{version:1e6,properties:{paymentBody:{appStoreProductId:102e4}}});Gl("requestProductDetailsAsync",{version:102e4});Gl("loginSync",{version:1e6,properties:{skipLogin:102e4,triggerFrom:102e4}});Bf=(e,t)=>{function r(i){var o;let[a,...s]=i.split(":");if(!a)return!1;let l=Ll.config[a];if(!l)return!1;let c=(o=t==null?void 0:t())!=null?o:"";if(l.platforms&&!l.platforms.includes(c))return!1;let d=l.version;if(typeof d!="number")return!1;let u=e();return typeof u!="number"||u<d?!1:s.length===0?!0:n(l,s,u)||n(l.properties,s,u)}function n(i,o,a){if(!i)return!1;let s=tT(i,o);if(!s)return!1;if(nn(s)){let l=s.version;return Cf(l)?typeof a=="number"&&a>=l:!0}return Cf(s)?typeof a=="number"&&a>=s:s===!0}return{canIUseNative:r}};vT=()=>sT(),ni="custom_event_",gT=[],yT=[],_T=["env","createRequestTask","login"],Hf="__batch_event__",bT="__native_batch_event__",wT=e=>e==="pv"?e:"default",Lo=class{constructor(e){this.interval=30,this.lastReportTime=0,this.cache={};let{reporter:t,interval:r=30,eventName:n,tagNameOrder:i,metricName:o,type:a}=e;this.reporter=t,this.interval=r,this.eventName=n,this.tagNameOrder=i,this.metricName=o,this.type=wT(a)}report(e){this.type==="pv"?this.addPVPoint(e):this.addPoint(e),this.tryReport(!1)}flush(){this.tryReport(!0)}tryReport(e){if(Object.keys(this.cache).length){if(e){this.reporter(this.processPoints(this.cache)),this.clearPoints();return}this.lastReportTime=this.lastReportTime||Date.now(),Date.now()-this.lastReportTime>=this.interval*1e3&&(this.reporter(this.processPoints(this.cache)),this.clearPoints(),this.lastReportTime=Date.now())}}addPoint(e){let t=(r,n,i,o)=>{let a=n.shift();if(a){let s=o[a];r[s]||(r[s]={}),t(r[s],n,i,o)}else r[i]||(r[i]=[]),r[i].push(o[i])};t(this.cache,[...this.tagNameOrder],this.metricName,e)}addPVPoint(e){let t=(n,i,o,a)=>{let s=i.shift();if(!s&&nn(a))throw new xl(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let l=[];if(nn(a))l.push(...Object.keys(a));else if(Ff(a)){if(i.length>0)throw new xl(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);l.push(a)}else throw new xl(`expected metric value to be a string, but got a(n) ${typeof a}, ${JSON.stringify(r)}`);l.forEach(c=>{n[c]||(n[c]={});let d=nn(a)?a[c]:a;t(n[c],[...i],o,d)})}else n[o]?n[o]++:n[o]=1},r={point:e,metricName:this.metricName,tagNameOrder:this.tagNameOrder};t(this.cache,[...this.tagNameOrder],this.metricName,e)}processPoints(e){return{eventName:this.eventName,tagNameOrder:this.tagNameOrder,metricName:this.metricName,metricAggregateType:this.type==="pv"?"itoa":"arr",data:e}}clearPoints(){this.cache={}}},Rf=!1;Rl=[],ET=!1,Jl=Symbol.for("Jolibox.invokeResolverInstance"),kT=new Map;globalThis[Jl]||(globalThis[Jl]=kT);AT={get resolveMap(){return globalThis[Jl]}};Do=Symbol.for("Jolibox.subscribeInstance");mt={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){mt.trigger=e},onDoExit(e){mt.exit=e},onDoBackPress(e){mt.backPress=e}},$f=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new QC("native env failed"));else{let{data:r}=JSON.parse(t);return r!=null?r:void 0}};if(typeof window!="undefined"&&window.webkit){let e=window.webkit.messageHandlers,t=(i="")=>{mt.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>qo(void 0,null,function*(){let o=yield mt.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});Bl={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=Vf(o,"joliboxJSCore");window.prompt("publish",JSON.stringify({event:i,paramsString:JSON.stringify(s),webviewIds:a}))},call(i,o,a){let s=window.prompt("invoke",JSON.stringify({event:i,paramsString:JSON.stringify(o),callbackId:a}));if(s)return JSON.parse(s)}};let n={onDocumentReady:t,env:$f,doExit:r};globalThis.joliboxJSCore=Wt({},n)}if(typeof window!="undefined"&&window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(o="")=>{mt.trigger(),t.onDocumentReady(JSON.stringify({path:o}))},n=o=>qo(void 0,null,function*(){let a=yield mt.exit();t.doExit(JSON.stringify({uuid:o,shouldInterrupt:a}))});Bl={onDocumentReady:r,invoke(o,a,s){t.invoke(JSON.stringify({event:o,paramsString:a,callbackId:s}))},doExit:n,publish(o,a,s){let l=Vf(a,"joliboxJSCore");t.publish(JSON.stringify({event:o,paramsString:JSON.stringify(l),webviewIds:s}))},call(o,a,s){let l=window.prompt("invoke",JSON.stringify({event:o,paramsString:JSON.stringify(a),callbackId:s}));if(l)return JSON.parse(l)},doBackPress(o){return qo(this,null,function*(){let a=yield mt.backPress();t.doBackPress(JSON.stringify({uuid:o,shouldInterrupt:a}))})}};let i={onDocumentReady:r,env:$f,doExit:n};globalThis.joliboxJSCore=Wt({},i)}Wf=Bl;if(!Wf&&vT())throw new ZC("No joliboxJScore is found, native bridge not found.");OT=Wt({},Wf),zf=TT(OT),{invokeHandler:Df}=zf,{applyNative:ye,invokeNative:j,onNative:et,offNative:nV,subscribeHandler:PT,publish:Kf,emitNative:Hl,subscribe:iV,unsubscribe:oV}=zf;globalThis.joliboxJSBridge={callHandler:Df,invokeHandler:Df,subscribeHandler:PT}});function UT(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function th(e){return new Promise(t=>setTimeout(t,e))}function ci(e){return typeof e=="string"}function Mr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function rh(e){return typeof e=="object"&&Array.isArray(e)}function nh(e){return typeof e=="number"&&!isNaN(e)}function on(e){return e===!0||e===!1}function ih(e){return typeof e=="undefined"}function Xl(e){return ih(e)||e===null}function FT(e){return typeof e=="function"}function oh(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function ah(e,t,r){if(typeof r!="function")throw new Error("[Jolibox SDK]Customizer must be a function");function n(i,o){for(let a in o)if(Object.prototype.hasOwnProperty.call(o,a)){let s=i[a],l=o[a],c=r(s,l,a,i,o);c!==void 0?i[a]=c:Xf(l)&&Xf(s)?i[a]=n(LT({},s),l):Array.isArray(l)&&Array.isArray(s)?i[a]=[...s,...l]:i[a]=l}return i}return n(e,t)}function Xf(e){return e&&typeof e=="object"&&e.constructor===Object}function sh(e,t){if(Array.isArray(e))return e.concat(t)}function ui(e,t,r={}){let n=null,i,o,a,{leading:s=!1,trailing:l=!0}=r,c=()=>(a=e.apply(o,i),i=void 0,o=void 0,a),d=function(...u){i=u,o=this;let p=s&&!n;if(n&&clearTimeout(n),n=setTimeout(()=>{n=null,l&&!p&&c()},t),p)return c()};return d.cancel=()=>{n&&clearTimeout(n),n=null,i=o=void 0},d.flush=()=>{if(n)return clearTimeout(n),n=null,c()},d}function JT(e,t){return(...r)=>t(e,...r)}function Jo(e){return t=>JT(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(i){e(new Pt(`${i}`))}})}function oi(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function hh(e,t,r){let n=0;if(e!==t){let i=e.split("."),o=t.split("."),a=Math.max(i.length,o.length);for(let s=0;s<a;s++){let l=parseInt(i[s],10)||0,c=parseInt(o[s],10)||0;if(l>c){n=1;break}else if(l<c){n=-1;break}}}if(!r)return n;switch(r){case">":return n>0;case"<":return n<0;case"=":return n===0;case">=":return n>=0;case"<=":return n<=0;default:return!1}}function ic(){if(typeof window=="undefined")return{getItem:()=>null,setItem:()=>{},removeItem:()=>{},clear:()=>{},length:0,key:()=>null};try{if(window.__joliboxLocalStorage__)return window.__joliboxLocalStorage__;let e=Object.getOwnPropertyDescriptor(window,"localStorage");if(e&&e.get){let n=e.get.call(window);return window.__joliboxLocalStorage__=n,n}if(e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(window),"localStorage"),e&&e.get)return e.get.call(window);let t=Window.prototype,r=Object.getOwnPropertyDescriptor(t,"localStorage");if(r&&r.get){let n=r.get.call(window);return window.__joliboxLocalStorage__=n,n}return localStorage}catch(e){return console.warn("Failed to get original localStorage, fallback to default implementation",e),localStorage}}function WT(e,t,r){let n=window.location.hostname,i=n.split("."),o=r?t:e;if(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(n))return`${o}.jolibox.com`;if(i.length>=2){let a=i.slice(-2).join(".");if(a==="jolibox.com"||a==="pico-game.com"||a==="joyslite.com")return`${o}.${a}`}return`${o}.jolibox.com`}function oc(e){return WT("api","stg-api",e)}function qr(e){return`https://${oc(e)}`}function QT(e){return new Promise(t=>yh(e)(t))}function yh(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function XT(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new li(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function e1(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)t1(e[n],t[n])}function t1(e,t){if(ci(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(FT(t)){try{if(e instanceof t)return}catch(r){}if(!Xl(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function r1(){return typeof globalThis!="undefined"?globalThis[_h]:void 0}function n1(e){typeof globalThis!="undefined"&&(globalThis[_h]=e)}function X(e=!1){let t=r1();if(!e&&t)return t;let r=new jo,n=new Yl,i={registerCommand(o,a,s){r.registerCommand({id:o,handler:a,metadata:s})},executeCommand(o,...a){return n.executeCommand(o,...a)},excuteCommandSync(o,...a){return n.executeCommandThowErr(o,...a)}};return n1(i),i}var Ql,RT,Yf,NT,DT,Qf,LT,MT,eh,qT,Ot,jT,Zl,di,ec,lh,Pt,ch,uh,dh,ph,fh,pi,tc,Rt,$l,GT,rc,Zf,BT,G,nc,HT,an,ai,fi,VT,$T,mh,vh,gh,Wl,le,zT,KT,si,li,Nt,Kl,YT,Vl,ZT,ne,jo,Yl,_h,R=S(()=>{"use strict";Ql=Object.defineProperty,RT=Object.getOwnPropertyDescriptor,Yf=Object.getOwnPropertySymbols,NT=Object.prototype.hasOwnProperty,DT=Object.prototype.propertyIsEnumerable,Qf=(e,t,r)=>t in e?Ql(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,LT=(e,t)=>{for(var r in t||(t={}))NT.call(t,r)&&Qf(e,r,t[r]);if(Yf)for(var r of Yf(t))DT.call(t,r)&&Qf(e,r,t[r]);return e},MT=(e,t)=>{for(var r in t)Ql(e,r,{get:t[r],enumerable:!0})},eh=(e,t,r,n)=>{for(var i=n>1?void 0:n?RT(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(n?a(t,r,i):a(i))||i);return n&&i&&Ql(t,r,i),i},qT=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new t};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let r=new Event("abort");this.signal.dispatchEvent(r)};let t=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(t.prototype,"aborted",{get:function(){return this._aborted}}),t.prototype.addEventListener=function(r,n){this._eventListeners[r]||(this._eventListeners[r]=[]),this._eventListeners[r].push(n)},t.prototype.removeEventListener=function(r,n){if(!this._eventListeners[r])return;let i=this._eventListeners[r].indexOf(n);i!==-1&&this._eventListeners[r].splice(i,1)},t.prototype.dispatchEvent=function(r){if(this._eventListeners[r.type])for(let n of this._eventListeners[r.type])n.call(this,r)},window.AbortController=e,window.AbortSignal=t}Ot=class{constructor(){this.state="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.state==="pending"&&(this.state="fulfilled",e(r))},this.reject=r=>{this.state==="pending"&&(this.state="rejected",t(r))}})}};jT=(e=>(e[e.DEVELOPER_FILE_NOT_FOUND=0]="DEVELOPER_FILE_NOT_FOUND",e[e.INTERNAL_IOS_CAN_NOT_FOUND_PKG=1]="INTERNAL_IOS_CAN_NOT_FOUND_PKG",e[e.USER_IOS_LOAD_TIMEOUT=2]="USER_IOS_LOAD_TIMEOUT",e[e.INTERNAL_IOS_PKG_LOAD_ERROR=3]="INTERNAL_IOS_PKG_LOAD_ERROR",e[e.INTERNAL_IOS_PKG_PARSE_FAIL=4]="INTERNAL_IOS_PKG_PARSE_FAIL",e[e.USER_IOS_GET_EMPTY_DATA=5]="USER_IOS_GET_EMPTY_DATA",e[e.USER_ANDROID_GET_PKG_FAIL=6]="USER_ANDROID_GET_PKG_FAIL",e[e.DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE=7]="DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE",e))(jT||{}),Zl=class extends Error{constructor(e){if(typeof e=="string"){super(e),this.priority="P1";return}super(e.message),this.priority="P1",this.stack=e.stack,this.raw=e}},di=class extends Zl{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},ec=class extends Zl{constructor(){super(...arguments),this.kind="USER_ERROR"}},lh=class extends ec{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},Pt=class extends ec{constructor(e,t,r){super(e),this.message=e,this.errNo=t,this.name="USER_CUSTOM_ERROR",this.errMsg=e,r&&(this.extra=Object.assign({},this.extra,r))}},ch=class extends ec{constructor(e,t,r){super(e),this.message=e,this.errNo=t,this.name="USER_PAYMENT_ERROR",this.errMsg=e,r&&(this.extra=Object.assign({},this.extra,r))}},uh=class extends di{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},dh=class extends di{constructor(e,t,r){super(e),this.message=e,this.errNo=t,this.name="INTERNAL_PAYMENT_ERROR",this.priority="P0",this.errMsg=e,r&&(this.extra=Object.assign({},this.extra,r))}},ph=class extends di{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_METHOD_ERROR"}},fh=class extends di{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},pi=class extends Zl{constructor(e,t,r,n,i){super(e),this.message=e,this.code=t,this.kind="API_ERROR",this.name="API_ERROR",r&&(this.errorType=r),n!==void 0&&(this.stack=n),i&&(this.priority=i)}toJSON(){return{message:this.message,stack:this.stack,name:this.name,code:this.code,errorType:this.errorType}}},tc=class extends di{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};Rt={log:oi("log"),warn:oi("warn"),info:oi("info"),error:oi("error"),debug:oi("debug")};Object.assign(globalThis,{logger:Rt});$l=Symbol.for("Jolibox.canIUseMap"),GT={};globalThis[$l]||(globalThis[$l]=GT);rc={get config(){return globalThis[$l]}},Zf=Symbol.for("Jolibox.canIUseMap.native"),BT={};globalThis[Zf]||(globalThis[Zf]=BT);G=(e=>(e[e.Other=0]="Other",e[e.Route=1]="Route",e[e.Click=2]="Click",e[e.View=3]="View",e[e.Expose=4]="Expose",e[e.Swipe=5]="Swipe",e[e.Input=6]="Input",e[e.Select=7]="Select",e[e.SwitchOn=8]="SwitchOn",e[e.SwitchOff=9]="SwitchOff",e[e.Submit=10]="Submit",e[e.Scroll=11]="Scroll",e[e.Hide=12]="Hide",e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(G||{}),nc=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(nc||{}),HT=(e=>(e[e.App=0]="App",e[e.H5=1]="H5",e[e.Weapp=2]="Weapp",e[e.Alipay=3]="Alipay",e[e.Gcash=4]="Gcash",e[e.Dana=5]="Dana",e[e.Umma=6]="Umma",e[e.WebSDK=1e3]="WebSDK",e[e.AppSDK=1001]="AppSDK",e[e.Other=9999]="Other",e))(HT||{}),an=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});ic();ai=typeof window=="undefined",fi={isiOS:!ai&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),iosVersion:()=>{let e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3]||"0",10)]},isAndroid:!ai&&navigator.userAgent.includes("Android"),isMac:!ai&&navigator.userAgent.includes("Mac"),isFacebook:!ai&&navigator.userAgent.includes("FB_IAB"),isPC:!ai&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},VT="device_id",$T="advertising_id",mh=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,an()),window.__joliboxLocalStorage__.getItem(e)),vh=()=>new URLSearchParams(window.location.search).get("deviceId")||mh(VT),gh=()=>new URLSearchParams(window.location.search).get("advertisingId")||mh($T);Wl=class zl{constructor(t){this.element=t,this.next=zl.Undefined,this.prev=zl.Undefined}};Wl.Undefined=new Wl(void 0);le=Wl,zT=class{constructor(){this._first=le.Undefined,this._last=le.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===le.Undefined}clear(){let e=this._first;for(;e!==le.Undefined;){let t=e.next;e.prev=le.Undefined,e.next=le.Undefined,e=t}this._first=le.Undefined,this._last=le.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new le(e);if(this._first===le.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==le.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==le.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==le.Undefined&&e.next!==le.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===le.Undefined&&e.next===le.Undefined?(this._first=le.Undefined,this._last=le.Undefined):e.next===le.Undefined?(this._last=this._last.prev,this._last.next=le.Undefined):e.prev===le.Undefined&&(this._first=this._first.next,this._first.prev=le.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==le.Undefined;)yield e.element,e=e.next}},KT=0,si=class{constructor(e){this.value=e,this.id=KT++}},li=class{constructor(e){this.options=e,this._size=0}dispose(e){var t,r;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof si&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(r=(t=this.options)==null?void 0:t.onDidRemoveLastListener)==null||r.call(t))}get event(){var e;return(e=this._event)!=null||(this._event=(t,r)=>{var n,i,o,a,s,l;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};r&&(t=t.bind(r));let c=new si(t);return this._listeners?this._listeners instanceof si?this._listeners=[this._listeners,c]:this._listeners.push(c):((i=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||i.call(n,this),this._listeners=c,(a=(o=this.options)==null?void 0:o.onDidFirstListener)==null||a.call(o,this)),(l=(s=this.options)==null?void 0:s.onDidAddListener)==null||l.call(s,this),this._size++,()=>{var d,u,p,f;if(!this._disposed){if(this._listeners instanceof si)this._listeners.id===c.id&&(this._listeners=void 0,this._size=0,(u=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||u.call(d));else if(this._listeners){let m=this._listeners.indexOf(c);m>=0&&(this._listeners.splice(m,1),this._size--,this._size===0&&((f=(p=this.options)==null?void 0:p.onDidRemoveLastListener)==null||f.call(p)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof si?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Nt=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t,r=!0){var n;let i=(n=this.listeners.get(e))!=null?n:new li,o=l=>t(...l.args),a=i.event(o);this.listerHandlerMap.set(t,{handler:o,dispose:a}),this.listeners.set(e,i);let s=this.cachedEventQueue.get(e);if(s&&r)for(let l of s)t(...l.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,t){let r=this.listerHandlerMap.get(t);r&&(r.dispose(),this.listerHandlerMap.delete(t))}emit(e,...t){let r=this.listeners.get(e),n=this.cachedEventQueue.get(e);n||(n=new zT,this.cachedEventQueue.set(e,n)),n.push({args:t}),r&&r.fire({event:e,args:t})}once(e,t){let r=(...n)=>{t(...n),this.off(e,r)};this.on(e,r,!1)}},Kl={};MT(Kl,{None:()=>YT,filter:()=>XT,once:()=>yh,toPromise:()=>QT});YT=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Vl=Symbol.for("Jolibox.hostEmitter"),ZT=()=>{let e=new Nt;return globalThis[Vl]||(globalThis[Vl]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Vl]},ne=ZT();jo=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new li,this.onDidRegisterCommand=this._onDidRegisterCommand.event,console.log("[Jolibox SDK] command registry")}registerCommand(e){if(!e)throw new Error("invalid command");if(e.metadata&&Array.isArray(e.metadata.args)){let r=[];for(let i of e.metadata.args)r.push(i.constraint);let n=e.handler;e.handler=function(...i){return e1(i,r),n(...i)}}let{id:t}=e;this._commands.get(t)&&console.info(`[Jolibox SDK] duplicated command is registered ${t}`),this._commands.set(t,e),this._onDidRegisterCommand.fire(t)}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;for(let t of this._commands.keys()){let r=this.getCommand(t);r&&e.set(t,r)}return e}};jo=eh([oh],jo);Yl=class{constructor(){this._onWillExecuteCommand=new li,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new li,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new jo,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=UT(3e4)),this._starActivation}executeCommand(e,...t){return qT(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Kl.toPromise(Kl.filter(this.registry.onDidRegisterCommand,r=>r===e))])]),this._tryExecuteCommand(e,t))})}executeCommandThowErr(e,...t){if(!this.registry.getCommand(e))throw new Error(`command '${e}' not found`);let r=this.registry.getCommand(e);this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),n}_tryExecuteCommand(e,t){let r=this.registry.getCommand(e);if(!r)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}invokeFunction(e,...t){let r=!1;try{return e(...t)}finally{r=!0}}};Yl=eh([oh],Yl);_h=Symbol.for("Jolibox.commands")});function xe(e,t={}){ac.emit("ERROR_REPORT",{error:e,options:t})}var ac,Ur,vt=S(()=>{"use strict";R();R();ac=new Nt,Ur=new Nt;xe.debounce=ui(xe,50,{leading:!0})});var sc,i1,bh,wh,Ih=S(()=>{"use strict";R();vt();sc=e=>{let t=e.replace(/-/g,"+").replace(/_/g,"/"),r=t.length%4===0?"":"=".repeat(4-t.length%4),n=atob(t+r);try{return JSON.parse(n)}catch(i){return{}}},i1=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},bh=e=>{var t;try{let i=(t=new URL(e).searchParams.get("joliSource"))==null?void 0:t.split(".");if(i!=null&&i.length){let[o,a,s]=i;return{headerJson:sc(o),payloadJson:sc(a),signature:sc(s)}}else throw"joli_source is missing"}catch(r){return xe(new uh(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},wh=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],i=i1(e),o=r[2];return`${n}.${i}.${o}`}return t}});var o1,lc,Eh=S(()=>{"use strict";R();o1="1.2.2",lc=()=>o1});function uc(e,t){return(document==null?void 0:document.head.querySelector(`meta[name="${e}"][content="${t}"]`))!==null}var a1,kh,cc,Ah,de,s1,E,B=S(()=>{"use strict";R();Ih();Eh();R();a1={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:vh(),adId:gh(),pixelRatio:window.devicePixelRatio||1,platform:fi.isAndroid?"android":fi.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:lc()},schema:window.location.href,platform:fi.isAndroid?"android":fi.isiOS?"ios":"h5"},cc=(kh=globalThis.joliboxJSCore)==null?void 0:kh.env,de=Object.assign({},(Ah=cc==null?void 0:cc())!=null?Ah:a1);s1=()=>{var f,m,g,y,v,b,k,x,P,C,A;let{payloadJson:e,headerJson:t,signature:r}=de.schema.length?bh(de.schema):{},n=`${de.deviceInfo.did}-${new Date().getTime()}`,o=new URL(de.schema.length?de.schema:window.location.href).searchParams,a=(g=(m=(f=o.get("mpId"))!=null?f:o.get("appId"))!=null?m:o.get("gameId"))!=null?g:"",s=(b=(v=(y=de.clientSessionId)!=null?y:e==null?void 0:e.sessionId)!=null?v:o.get("sessionId"))!=null?b:n,l=!!((x=(k=e==null?void 0:e.testAdsMode)!=null?k:e==null?void 0:e.__testAdsMode)!=null?x:o.get("testAdsMode")==="true"),c=(A=(C=(P=e==null?void 0:e.joliboxEnv)!=null?P:e==null?void 0:e.__joliboxEnv)!=null?C:o.get("joliboxEnv"))!=null?A:"production",d=c==="staging",u=t==null?void 0:t.channel,p=e==null?void 0:e.__shouldInterupt;return{get startTime(){var O;return(O=performance.timeOrigin)!=null?O:performance.timing.navigationStart},get testMode(){return d},get testAdsMode(){return l},get joliboxEnv(){return c},get joliSource(){var O;return(O=o.get("joliSource"))!=null?O:null},get mpId(){var O;return(O=a!=null?a:e==null?void 0:e.id)!=null?O:""},get mpVersion(){var O;return(O=t==null?void 0:t.ver)!=null?O:lc()},get mpType(){var O,J;return(J=(O=t==null?void 0:t.__mpType)!=null?O:e==null?void 0:e.__mpType)!=null?J:"game"},get platform(){var O;return((O=de.platform)!=null?O:de.deviceInfo.platform).toLowerCase()},get deviceInfo(){return de.deviceInfo},get sdkInfo(){return de.sdkInfo},get hostInfo(){return de.hostInfo},get hostUserInfo(){return de.hostUserInfo},get sessionId(){var O,J;return(J=(O=de.clientSessionId)!=null?O:s)!=null?J:n},get channel(){return u},get webviewId(){var O;return(O=de.webviewId)!=null?O:-1},get shouldInterupt(){return p},get from(){return e==null?void 0:e.__from},get baseApiHost(){return oc(d)},get adId(){var O;return(O=de.deviceInfo.adId)!=null?O:de.deviceInfo.did},get language(){return de.deviceInfo.lang},get sdkEnvironment(){return uc("dlightek","jolibox")?"dlightek":o.get("huaweiQuick")==="true"?"huaweiQuick":uc("gamedistribution","jolibox")?"gamedistribution":uc("funmax","jolibox")?"funmax":"jolibox"},get viewport(){var M,Re,Ne;let O=(M=de.deviceInfo.pixelRatio)!=null?M:1,J=(Re=de.deviceInfo.statusBarHeight)!=null?Re:e==null?void 0:e.__androidStatusBarHeight,Ke=(Ne=de.deviceInfo.navigationBarHeight)!=null?Ne:e==null?void 0:e.__androidNavigationBarHeight;return{statusBarHeight:J!==void 0?J/O:20,navigationBarHeight:Ke!==void 0?Ke/O:10}},get abTests(){var O,J;return(J=(O=de.abValues)==null?void 0:O.split(","))!=null?J:[]},onEnvConfigChanged:O=>{ah(de,O,sh)},encodeJoliSourceQuery:O=>{var J,Ke;return t&&r?wh(T(T({},e),O),(J=o.get("joliSource"))!=null?J:""):(Ke=o.get("joliSource"))!=null?Ke:""},setDoExitDirectly:()=>{p=!1}}},E=s1()});var dc,xh,l1,c1,Sh,u1,Ch=S(()=>{"use strict";R();vt();B();R();dc=!1,xh=(e,t)=>e==null?!1:t in e,l1=e=>xh(e,"kind"),c1=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},Sh=(e,t={},r)=>{var o,a,s;let n={user_id:(a=(o=E.hostUserInfo)==null?void 0:o.uid)!=null?a:"",device_id:(s=E.deviceInfo.did)!=null?s:"",timestamp:Date.now(),tag:c1(e.name)},i=F(T({},n),{env:t.environment,isFromUser:r});r?Ur.emit("GLOBAL_USER_ERROR",e,i):Ur.emit("GLOBAL_ERROR",e,i)},u1=e=>xh(e,"kind")&&e.kind==="USER_ERROR";ac.on("ERROR_REPORT",({error:e,options:t})=>{if(dc)return;dc=!0;let r=l1(e)&&e.raw?e.raw:e;try{let n=u1(e);Sh(e,t,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new tc(`${i}, origin error: ${r.message}`);Rt.error(o),Sh(new tc(o.message),{environment:t.environment},!1)}finally{dc=!1}})});var hr,pc,sn=S(()=>{"use strict";vt();R();vt();hr=(e,t)=>{var r,n;return new pi((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},pc=e=>new lh(e)});var Th=S(()=>{"use strict";Ch();sn();R();_e();Ur.on("GLOBAL_ERROR",(e,t)=>{var n;let r={message:e.message,stack:(n=e.stack)!=null?n:"",errorType:e.name,source:0};j("trackAsync",{event:"reportJsError",data:r})});Ur.on("GLOBAL_USER_ERROR",(e,t)=>{Rt.log("UserError",e,t)})});var fc=S(()=>{"use strict"});function Oh(e,t){let r=(n,i,o)=>{let c=i!=null?i:{},{eventType:a}=c,s=je(c,["eventType"]),l=F(T({tag:n,eventType:o!=null?o:a!=null?a:G.Other},t),{extra:T({},s)});n=="globalJsError"?xe(new fh(JSON.stringify(l))):e("systemLog",l,E.webviewId)};return r.debounce=ui(r,500,{leading:!0}),r}function Ph(e){let t=(r,n,i)=>{var s;let o=(s=i&&JSON.stringify(i))!=null?s:0,a={speed_value_type:r,total_duration:n};o&&Object.assign(a,{extra:o}),e("joliboxSpeedAnalysis",a)};return t.debounce=ui(t,500,{leading:!0}),t}var Rh=S(()=>{"use strict";R();R();vt();B()});function Nh(e,t){let r=Oh(e,t),n=Ph(r);return{track:r,trackPerformance:n}}var Dh=S(()=>{"use strict";Rh()});var Lh=S(()=>{"use strict";B();R();R()});var Mh=S(()=>{"use strict";Dh();fc();Lh()});var Go,qh=S(()=>{"use strict";Go=class{constructor(t,r){this.eventEmitter=t;this.lastReportTime=0;this.visible=!0;this.timer=this.createRAFTimer(t=>{this.reporter({event:"PLAY_GAME",params:{duration:t}}),this.tracker("PlayGame",{duration:t})});this.interval=r!=null?r:5*1e3,t.on("visible",n=>{this.visible=n})}start(t){this.reporter({event:"OPEN_GAME",params:{timestamp:Date.now(),duration:t!=null?t:0}}),this.tracker("OpenGame",{duration:t!=null?t:0}),this.timer.start()}close(t){this.reporter({event:"CLOSE_GAME",params:{timestamp:Date.now(),duration:t}}),this.tracker("CloseGame",{duration:t}),this.timer.stop()}createRAFTimer(t){let r=Date.now(),n,i,o=!1,a=0,s=()=>{if(!o)return;let f=Date.now(),m=f-r;m>=this.interval&&(this.visible&&(a+=Math.min(m,this.interval+1e3),t(a)),r=f),n=requestAnimationFrame(s)},l=()=>{d(),r=Date.now(),i=window.setInterval(()=>{if(!o)return;let f=Date.now();f-r>=this.interval&&(r=f)},this.interval)},c=()=>{u(),r=Date.now(),n=requestAnimationFrame(s)},d=()=>{n&&(cancelAnimationFrame(n),n=0)},u=()=>{i&&(clearInterval(i),i=0)};this.eventEmitter.on("visible",f=>{o&&(console.log("visible",f),f?c():l())});let p=this.visible;return{start(){o||(o=!0,p?c():l())},stop(){o=!1,d(),u()}}}}});function Bo(e,t,r){var l,c,d;let n=new Map,i=(l=r==null?void 0:r.baseUrl)!=null?l:qr(E.testMode),o=(c=r==null?void 0:r.type)!=null?c:"public",a=(d=r==null?void 0:r.defaultHeaders)!=null?d:{};return et("onRequestTaskStateChange",u=>{if(typeof u.requestTaskId!="string")return;let p=n.get(u.requestTaskId);if(p)if(u.state==="success"){let f=u,{requestTaskId:g,state:y}=f,v=je(f,["requestTaskId","state"]);u.statusCode===200?p.resolve(v):p.reject(v),n.delete(g)}else if(u.state==="fail"){let m=u,{requestTaskId:g,state:y}=m,v=je(m,["requestTaskId","state"]);p.reject(v),n.delete(g)}else Rt.warn("onRequestTaskStateChange unknown event",u)}),ne.on("onLoginComplete",({isLogin:u,token:p})=>{o!=="public"&&u&&p&&(a["X-JOLI-TOKEN"]=p)}),(f,...m)=>w(this,[f,...m],function*(u,p={}){let g=Date.now(),y=d1(u,F(T({},p),{baseUrl:i})),{method:v="GET",responseType:b="text",dataType:k="json",timeout:x,enableCache:P=!1,appendHostCookie:C=!0}=p,A=Object.assign({"content-type":"application/json"},a,p.header),O={url:y,method:v,header:A,enableCache:P,responseType:b,appendHostCookie:C};if(v=="POST"||v=="PUT"){let Ne=f1(p.data,A["content-type"]);O.data=Ne}x&&Object.assign(O,{timeout:x});let{data:{requestTaskId:J}}=j(e,O);if(typeof J!="string")throw hr({code:-1,msg:"requestTaskId is not a string"});let{resolve:Ke,reject:M,promise:Re}=new Ot;n.set(J,{resolve:Ke,reject:M});try{let Ne=yield Re,{data:Lr}=Ne;return k==="json"&&typeof Lr=="string"&&(Lr=p1(Lr)),{url:y,timeout:x,method:v,response:F(T({},Ne),{data:Lr})}}catch(Ne){let Lr=Ne;if(Mr(Lr)){let{errMsg:Al,prefetchDetail:Q4,isPrefetch:X4,errNo:kC}=Lr;ci(Al)&&xe(hr({code:-1,msg:Al},{errNo:kC,errMsg:Al}))}throw Ne}})}function p1(e){try{return JSON.parse(e.trim())}catch(t){return e}}function f1(e,t="application/json"){let r=t.toLowerCase();return e===void 0?"":typeof e=="string"||e instanceof ArrayBuffer?e:r.includes("application/x-www-form-urlencoded")||r.includes("application/json")||typeof e=="object"?JSON.stringify(e):String(e)}var d1,hc=S(()=>{"use strict";R();_e();vt();sn();B();d1=(e,t)=>{if(/^https?:\/\//.test(e))return e;let r=t==null?void 0:t.query,i=new URLSearchParams(r).toString();return t!=null&&t.baseUrl?`${t.baseUrl}${e}${i?`?${i}`:""}`:`${e}${i?`?${i}`:""}`}});var mc,Uh,te,gt=S(()=>{"use strict";hc();B();R();mc={};(Uh=E.hostUserInfo)!=null&&Uh.token&&(mc["x-joli-token"]=E.hostUserInfo.token);E.joliSource&&(mc["x-joli-source"]=E.joliSource);te=Bo("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:qr(E.testMode),defaultHeaders:mc})});var Ho,Fh=S(()=>{"use strict";B();qh();R();gt();_e();Ho=class extends Go{constructor(t,r,n){super(r,n),this.gameId=E.mpId,this.sessionId=E.sessionId,this.track=t,this.taskUrl=qr(E.testMode)+"/api/base/app-event"}reporter(t){return w(this,null,function*(){let{event:r,params:n,extraParams:i}=t,o={eventType:r,gameInfo:T({gameId:this.gameId,sessionId:this.sessionId},n)};i&&Object.assign(o,i),yield E.platform==="android"?te("/api/base/app-event",{method:"POST",data:o}):ye("trackAppEventAsync",{url:this.taskUrl,body:JSON.stringify(o)})})}reportToNative(t){return w(this,null,function*(){let{event:r,params:n}=t;yield ye("userTrackAsync",{event:r,params:T({},n),gameId:this.gameId})})}tracker(t,r=null){this.track(t,r)}}});var Hh={};Sf(Hh,{nativeTaskEmitter:()=>hi,taskTracker:()=>It,track:()=>U,trackPerformance:()=>Gh});var h1,jh,Jh,U,Gh,Bh,hi,It,yt=S(()=>{"use strict";Th();R();fc();Mh();B();Fh();_e();h1=(e,t,r)=>{var s,l,c,d,u,p;let n=t,i=Mr(n.extra)?n.extra:ci(n.extra)?JSON.parse(n.extra):{},o=F(T({},i),{mp_id:(s=n.mp_id)!=null?s:"",mp_version:(l=n.mp_version)!=null?l:"",session_id:E.sessionId,user_id:(d=(c=E.hostUserInfo)==null?void 0:c.uid)!=null?d:""}),a=(u=n.eventType)!=null?u:G.Other;j("trackAsync",{event:(p=t.tag)!=null?p:e,data:o,webviewId:r,eventType:a})},{track:U,trackPerformance:Gh}=Nh(h1,{type:nc.AppSDK,platform:"native",jssdk_version:(Jh=(jh=E.sdkInfo)==null?void 0:jh.jssdkVersion)!=null?Jh:"1.0.0",mp_id:E.mpId,mp_version:E.mpVersion}),Bh=X();Bh.registerCommand("ReportSDK.traceSystemTimeline",({event:e,duration:t,extra:r})=>{Gh(e,t,r)});Bh.registerCommand("ReportSDK.traceSystem",({event:e,info:t})=>{U(e,t)});hi=new Nt,It=new Ho(U,hi)});function Vh(){let e=null,t=null,r=window.fetch,n=()=>{t=document.createElement("meta"),t.setAttribute("name","viewport"),t.setAttribute("content","viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"),t.setAttribute("data-jolibox-sdk","viewport-meta"),e=document.createElement("style"),e.setAttribute("data-jolibox-sdk","default-styles");let s=`
2
2
  html[data-jolibox-root] {
3
3
  height: 100%;
4
4
  margin: 0;
@@ -16,14 +16,14 @@ var IC=Object.create;var No=Object.defineProperty,EC=Object.defineProperties,kC=
16
16
  min-height: 100dvh;
17
17
  }
18
18
  }
19
- `;e.textContent=s;let l=document.head||document.getElementsByTagName("head")[0];l.insertBefore(t,l.firstChild),l.insertBefore(e,l.firstChild),document.documentElement.setAttribute("data-jolibox-root","")},i=()=>{let{statusBarHeight:s,navigationBarHeight:l}=E.viewport;document.documentElement.style.setProperty("--status-bar-height",`${s}px`),document.documentElement.style.setProperty("--navigation-bar-height",`${l}px`)},o=()=>{function s(c){return w(this,null,function*(){let d=c instanceof URL?c.href:c,u=new Promise((p,f)=>{let m=new XMLHttpRequest;m.open("GET",d),m.responseType="arraybuffer",m.addEventListener("load",()=>p(m.response)),m.addEventListener("error",f),m.send()});try{let p=yield u;return new Response(p,{headers:new Headers([["Content-Type","application/wasm"]])}).clone()}catch(p){throw console.error("Failed to load wasm:",p),p}})}let l=window.fetch;window.fetch=(c,d)=>{let u=c instanceof URL?c.href:c.toString();return u.endsWith(".wasm")?s(u):l(c,d)}},a=()=>{e!=null&&e.parentNode&&(e.parentNode.removeChild(e),e=null),t!=null&&t.parentNode&&(t.parentNode.removeChild(t),t=null),document.documentElement.removeAttribute("data-jolibox-root"),document.documentElement.style.removeProperty("--status-bar-height"),window.fetch=r};return n(),o(),i(),a}var Vh=A(()=>{"use strict";B()});var $h=A(()=>{"use strict"});var Wh=A(()=>{"use strict";R();nc()});var zh=A(()=>{"use strict";B()});var Vo,mc=A(()=>{"use strict";$h();Wh();B();zh();R();Vo=new Nt});function zt(e,t){for(var r in t)e[r]=t[r];return e}function wc(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Je(e,t,r){var n,i,o,a={};for(o in t)o=="key"?n=t[o]:o=="ref"?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?Ko.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)a[o]===void 0&&(a[o]=e.defaultProps[o]);return Wo(e,a,n,i,null)}function Wo(e,t,r,n,i){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i==null?++Xh:i,__i:-1,__u:0};return i==null&&N.vnode!=null&&N.vnode(o),o}function De(e){return e.children}function ct(e,t){this.props=e,this.context=t}function ln(e,t){if(t==null)return e.__?ln(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?ln(e):null}function im(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return im(e)}}function yc(e){(!e.__d&&(e.__d=!0)&&Fr.push(e)&&!zo.__r++||Kh!==N.debounceRendering)&&((Kh=N.debounceRendering)||Zh)(zo)}function zo(){for(var e,t,r,n,i,o,a,s=1;Fr.length;)Fr.length>s&&Fr.sort(em),e=Fr.shift(),s=Fr.length,e.__d&&(r=void 0,i=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=zt({},n)).__v=n.__v+1,N.vnode&&N.vnode(r),Ic(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?ln(n):i,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,sm(o,r,a),r.__e!=i&&im(r)));zo.__r=0}function om(e,t,r,n,i,o,a,s,l,c,d){var u,p,f,m,g,y,v=n&&n.__k||nm,b=t.length;for(l=f1(r,t,v,l,b),u=0;u<b;u++)(f=r.__k[u])!=null&&(p=f.__i===-1?mi:v[f.__i]||mi,f.__i=u,y=Ic(e,f,p,i,o,a,s,l,c,d),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&Ec(p.ref,null,f),d.push(f.ref,f.__c||m,f)),g==null&&m!=null&&(g=m),4&f.__u||p.__k===f.__k?l=am(f,l,e):typeof f.type=="function"&&y!==void 0?l=y:m&&(l=m.nextSibling),f.__u&=-7);return r.__e=g,l}function f1(e,t,r,n,i){var o,a,s,l,c,d=r.length,u=d,p=0;for(e.__k=new Array(i),o=0;o<i;o++)(a=t[o])!=null&&typeof a!="boolean"&&typeof a!="function"?(l=o+p,(a=e.__k[o]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?Wo(null,a,null,null,null):gi(a)?Wo(De,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?Wo(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,s=null,(c=a.__i=h1(a,r,l,u))!==-1&&(u--,(s=r[c])&&(s.__u|=2)),s==null||s.__v===null?(c==-1&&(i>d?p--:i<d&&p++),typeof a.type!="function"&&(a.__u|=4)):c!=l&&(c==l-1?p--:c==l+1?p++:(c>l?p--:p++,a.__u|=4))):e.__k[o]=null;if(u)for(o=0;o<d;o++)(s=r[o])!=null&&!(2&s.__u)&&(s.__e==n&&(n=ln(s)),cm(s,s));return n}function am(e,t,r){var n,i;if(typeof e.type=="function"){for(n=e.__k,i=0;n&&i<n.length;i++)n[i]&&(n[i].__=e,t=am(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=ln(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function yi(e,t){return t=t||[],e==null||typeof e=="boolean"||(gi(e)?e.some(function(r){yi(r,t)}):t.push(e)),t}function h1(e,t,r,n){var i,o,a=e.key,s=e.type,l=t[r];if(l===null&&e.key==null||l&&a==l.key&&s===l.type&&!(2&l.__u))return r;if(n>(l!=null&&!(2&l.__u)?1:0))for(i=r-1,o=r+1;i>=0||o<t.length;){if(i>=0){if((l=t[i])&&!(2&l.__u)&&a==l.key&&s===l.type)return i;i--}if(o<t.length){if((l=t[o])&&!(2&l.__u)&&a==l.key&&s===l.type)return o;o++}}return-1}function Yh(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||p1.test(t)?r:r+"px"}function $o(e,t,r,n,i){var o;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||Yh(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||Yh(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(tm,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n?r.t=n.t:(r.t=bc,e.addEventListener(t,o?gc:vc,o)):e.removeEventListener(t,o?gc:vc,o);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r==null?"":r;break e}catch(a){}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function Qh(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=bc++;else if(t.u<r.t)return;return r(N.event?N.event(t):t)}}}function Ic(e,t,r,n,i,o,a,s,l,c){var d,u,p,f,m,g,y,v,b,k,x,P,C,S,O,J,Ke,M=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(l=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=N.__b)&&d(t);e:if(typeof M=="function")try{if(v=t.props,b="prototype"in M&&M.prototype.render,k=(d=M.contextType)&&n[d.__c],x=d?k?k.props.value:d.__:n,r.__c?y=(u=t.__c=r.__c).__=u.__E:(b?t.__c=u=new M(v,x):(t.__c=u=new ct(v,x),u.constructor=M,u.render=v1),k&&k.sub(u),u.props=v,u.state||(u.state={}),u.context=x,u.__n=n,p=u.__d=!0,u.__h=[],u._sb=[]),b&&u.__s==null&&(u.__s=u.state),b&&M.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=zt({},u.__s)),zt(u.__s,M.getDerivedStateFromProps(v,u.__s))),f=u.props,m=u.state,u.__v=t,p)b&&M.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),b&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(b&&M.getDerivedStateFromProps==null&&v!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(v,x),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(v,u.__s,x)===!1||t.__v==r.__v)){for(t.__v!=r.__v&&(u.props=v,u.state=u.__s,u.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(Re){Re&&(Re.__=t)}),P=0;P<u._sb.length;P++)u.__h.push(u._sb[P]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,x),b&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,m,g)})}if(u.context=x,u.props=v,u.__P=e,u.__e=!1,C=N.__r,S=0,b){for(u.state=u.__s,u.__d=!1,C&&C(t),d=u.render(u.props,u.state,u.context),O=0;O<u._sb.length;O++)u.__h.push(u._sb[O]);u._sb=[]}else do u.__d=!1,C&&C(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++S<25);u.state=u.__s,u.getChildContext!=null&&(n=zt(zt({},n),u.getChildContext())),b&&!p&&u.getSnapshotBeforeUpdate!=null&&(g=u.getSnapshotBeforeUpdate(f,m)),J=d,d!=null&&d.type===De&&d.key==null&&(J=lm(d.props.children)),s=om(e,gi(J)?J:[J],t,r,n,i,o,a,s,l,c),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),y&&(u.__E=u.__=null)}catch(Re){if(t.__v=null,l||o!=null)if(Re.then){for(t.__u|=l?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;o[o.indexOf(s)]=null,t.__e=s}else for(Ke=o.length;Ke--;)wc(o[Ke]);else t.__e=r.__e,t.__k=r.__k;N.__e(Re,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=m1(r.__e,t,r,n,i,o,a,l,c);return(d=N.diffed)&&d(t),128&t.__u?void 0:s}function sm(e,t,r){for(var n=0;n<r.length;n++)Ec(r[n],r[++n],r[++n]);N.__c&&N.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){N.__e(o,i.__v)}})}function lm(e){return typeof e!="object"||e==null?e:gi(e)?e.map(lm):zt({},e)}function m1(e,t,r,n,i,o,a,s,l){var c,d,u,p,f,m,g,y=r.props,v=t.props,b=t.type;if(b=="svg"?i="http://www.w3.org/2000/svg":b=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(c=0;c<o.length;c++)if((f=o[c])&&"setAttribute"in f==!!b&&(b?f.localName==b:f.nodeType==3)){e=f,o[c]=null;break}}if(e==null){if(b==null)return document.createTextNode(v);e=document.createElementNS(i,b,v.is&&v),s&&(N.__m&&N.__m(t,o),s=!1),o=null}if(b===null)y===v||s&&e.data===v||(e.data=v);else{if(o=o&&Ko.call(e.childNodes),y=r.props||mi,!s&&o!=null)for(y={},c=0;c<e.attributes.length;c++)y[(f=e.attributes[c]).name]=f.value;for(c in y)if(f=y[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=f;else if(!(c in v)){if(c=="value"&&"defaultValue"in v||c=="checked"&&"defaultChecked"in v)continue;$o(e,c,null,f,i)}}for(c in v)f=v[c],c=="children"?p=f:c=="dangerouslySetInnerHTML"?d=f:c=="value"?m=f:c=="checked"?g=f:s&&typeof f!="function"||y[c]===f||$o(e,c,f,y[c],i);if(d)s||u&&(d.__html===u.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),om(t.type==="template"?e.content:e,gi(p)?p:[p],t,r,n,b=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&ln(r,0),s,l),o!=null)for(c=o.length;c--;)wc(o[c]);s||(c="value",b=="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[c]||b=="progress"&&!m||b=="option"&&m!==y[c])&&$o(e,c,m,y[c],i),c="checked",g!==void 0&&g!==e[c]&&$o(e,c,g,y[c],i))}return e}function Ec(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(i){N.__e(i,r)}}function cm(e,t,r){var n,i;if(N.unmount&&N.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Ec(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){N.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&cm(n[i],t,r||typeof e.type!="function");r||wc(e.__e),e.__c=e.__=e.__e=void 0}function v1(e,t,r){return this.constructor(e,r)}function mr(e,t,r){var n,i,o,a;t==document&&(t=document.documentElement),N.__&&N.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],Ic(t,e=(!n&&r||t).__k=Je(De,null,[e]),i||mi,mi,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?Ko.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),sm(o,e,a)}function jr(e){function t(r){var n,i;return this.getChildContext||(n=new Set,(i={})[t.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&n.forEach(function(a){a.__e=!0,yc(a)})},this.sub=function(o){n.add(o);var a=o.componentWillUnmount;o.componentWillUnmount=function(){n&&n.delete(o),a&&a.call(o)}}),r.children}return t.__c="__cC"+rm++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var Ko,N,Xh,_c,Fr,Kh,Zh,em,tm,bc,vc,gc,rm,mi,nm,p1,gi,cn=A(()=>{mi={},nm=[],p1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,gi=Array.isArray;Ko=nm.slice,N={__e:function(e,t,r,n){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,n||{}),a=i.__d),a)return i.__E=i}catch(s){e=s}throw e}},Xh=0,_c=function(e){return e!=null&&e.constructor==null},ct.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=zt({},this.state),typeof e=="function"&&(e=e(zt({},r),this.props)),e&&zt(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),yc(this))},ct.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),yc(this))},ct.prototype.render=De,Fr=[],Zh=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,em=function(e,t){return e.__v.__b-t.__v.__b},zo.__r=0,tm=/(PointerCapture)$|Capture$/i,bc=0,vc=Qh(!1),gc=Qh(!0),rm=0});var pe=h((L$,um)=>{"use strict";um.exports=function(e){try{return!!e()}catch(t){return!0}}});var un=h((M$,dm)=>{"use strict";var g1=pe();dm.exports=!g1(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var be=h((q$,hm)=>{"use strict";var pm=un(),fm=Function.prototype,kc=fm.call,y1=pm&&fm.bind.bind(kc,kc);hm.exports=pm?y1:function(e){return function(){return kc.apply(e,arguments)}}});var Ye=h((U$,mm)=>{"use strict";var _1=be();mm.exports=_1({}.isPrototypeOf)});var fe=h((Sc,vm)=>{"use strict";var _i=function(e){return e&&e.Math===Math&&e};vm.exports=_i(typeof globalThis=="object"&&globalThis)||_i(typeof window=="object"&&window)||_i(typeof self=="object"&&self)||_i(typeof global=="object"&&global)||_i(typeof Sc=="object"&&Sc)||function(){return this}()||Function("return this")()});var Ac=h((F$,bm)=>{"use strict";var b1=un(),_m=Function.prototype,gm=_m.apply,ym=_m.call;bm.exports=typeof Reflect=="object"&&Reflect.apply||(b1?ym.bind(gm):function(){return ym.apply(gm,arguments)})});var Kt=h((j$,Im)=>{"use strict";var wm=be(),w1=wm({}.toString),I1=wm("".slice);Im.exports=function(e){return I1(w1(e),8,-1)}});var bi=h((J$,Em)=>{"use strict";var E1=Kt(),k1=be();Em.exports=function(e){if(E1(e)==="Function")return k1(e)}});var Le=h((G$,km)=>{"use strict";var xc=typeof document=="object"&&document.all;km.exports=typeof xc=="undefined"&&xc!==void 0?function(e){return typeof e=="function"||e===xc}:function(e){return typeof e=="function"}});var Qe=h((B$,Sm)=>{"use strict";var S1=pe();Sm.exports=!S1(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var Et=h((H$,Am)=>{"use strict";var A1=un(),Yo=Function.prototype.call;Am.exports=A1?Yo.bind(Yo):function(){return Yo.apply(Yo,arguments)}});var Cc=h(Tm=>{"use strict";var xm={}.propertyIsEnumerable,Cm=Object.getOwnPropertyDescriptor,x1=Cm&&!xm.call({1:2},1);Tm.f=x1?function(t){var r=Cm(this,t);return!!r&&r.enumerable}:xm});var wi=h(($$,Om)=>{"use strict";Om.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var Qo=h((W$,Pm)=>{"use strict";var C1=be(),T1=pe(),O1=Kt(),Tc=Object,P1=C1("".split);Pm.exports=T1(function(){return!Tc("z").propertyIsEnumerable(0)})?function(e){return O1(e)==="String"?P1(e,""):Tc(e)}:Tc});var Jr=h((z$,Rm)=>{"use strict";Rm.exports=function(e){return e==null}});var Gr=h((K$,Nm)=>{"use strict";var R1=Jr(),N1=TypeError;Nm.exports=function(e){if(R1(e))throw new N1("Can't call method on "+e);return e}});var vr=h((Y$,Dm)=>{"use strict";var D1=Qo(),L1=Gr();Dm.exports=function(e){return D1(L1(e))}});var Ce=h((Q$,Lm)=>{"use strict";var M1=Le();Lm.exports=function(e){return typeof e=="object"?e!==null:M1(e)}});var Dt=h((X$,Mm)=>{"use strict";Mm.exports={}});var dn=h((Z$,Um)=>{"use strict";var Oc=Dt(),Pc=fe(),q1=Le(),qm=function(e){return q1(e)?e:void 0};Um.exports=function(e,t){return arguments.length<2?qm(Oc[e])||qm(Pc[e]):Oc[e]&&Oc[e][t]||Pc[e]&&Pc[e][t]}});var Xo=h((eW,Jm)=>{"use strict";var U1=fe(),Fm=U1.navigator,jm=Fm&&Fm.userAgent;Jm.exports=jm?String(jm):""});var ea=h((tW,Wm)=>{"use strict";var $m=fe(),Rc=Xo(),Gm=$m.process,Bm=$m.Deno,Hm=Gm&&Gm.versions||Bm&&Bm.version,Vm=Hm&&Hm.v8,kt,Zo;Vm&&(kt=Vm.split("."),Zo=kt[0]>0&&kt[0]<4?1:+(kt[0]+kt[1]));!Zo&&Rc&&(kt=Rc.match(/Edge\/(\d+)/),(!kt||kt[1]>=74)&&(kt=Rc.match(/Chrome\/(\d+)/),kt&&(Zo=+kt[1])));Wm.exports=Zo});var Nc=h((rW,Km)=>{"use strict";var zm=ea(),F1=pe(),j1=fe(),J1=j1.String;Km.exports=!!Object.getOwnPropertySymbols&&!F1(function(){var e=Symbol("symbol detection");return!J1(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&zm&&zm<41})});var Dc=h((nW,Ym)=>{"use strict";var G1=Nc();Ym.exports=G1&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Lc=h((iW,Qm)=>{"use strict";var B1=dn(),H1=Le(),V1=Ye(),$1=Dc(),W1=Object;Qm.exports=$1?function(e){return typeof e=="symbol"}:function(e){var t=B1("Symbol");return H1(t)&&V1(t.prototype,W1(e))}});var Ii=h((oW,Xm)=>{"use strict";var z1=String;Xm.exports=function(e){try{return z1(e)}catch(t){return"Object"}}});var Br=h((aW,Zm)=>{"use strict";var K1=Le(),Y1=Ii(),Q1=TypeError;Zm.exports=function(e){if(K1(e))return e;throw new Q1(Y1(e)+" is not a function")}});var ta=h((sW,ev)=>{"use strict";var X1=Br(),Z1=Jr();ev.exports=function(e,t){var r=e[t];return Z1(r)?void 0:X1(r)}});var rv=h((lW,tv)=>{"use strict";var Mc=Et(),qc=Le(),Uc=Ce(),eO=TypeError;tv.exports=function(e,t){var r,n;if(t==="string"&&qc(r=e.toString)&&!Uc(n=Mc(r,e))||qc(r=e.valueOf)&&!Uc(n=Mc(r,e))||t!=="string"&&qc(r=e.toString)&&!Uc(n=Mc(r,e)))return n;throw new eO("Can't convert object to primitive value")}});var pn=h((cW,nv)=>{"use strict";nv.exports=!0});var av=h((uW,ov)=>{"use strict";var iv=fe(),tO=Object.defineProperty;ov.exports=function(e,t){try{tO(iv,e,{value:t,configurable:!0,writable:!0})}catch(r){iv[e]=t}return t}});var Ei=h((dW,cv)=>{"use strict";var rO=pn(),nO=fe(),iO=av(),sv="__core-js_shared__",lv=cv.exports=nO[sv]||iO(sv,{});(lv.versions||(lv.versions=[])).push({version:"3.41.0",mode:rO?"pure":"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var Fc=h((pW,dv)=>{"use strict";var uv=Ei();dv.exports=function(e,t){return uv[e]||(uv[e]=t||{})}});var fn=h((fW,pv)=>{"use strict";var oO=Gr(),aO=Object;pv.exports=function(e){return aO(oO(e))}});var ut=h((hW,fv)=>{"use strict";var sO=be(),lO=fn(),cO=sO({}.hasOwnProperty);fv.exports=Object.hasOwn||function(t,r){return cO(lO(t),r)}});var ra=h((mW,hv)=>{"use strict";var uO=be(),dO=0,pO=Math.random(),fO=uO(1 .toString);hv.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+fO(++dO+pO,36)}});var Ge=h((vW,vv)=>{"use strict";var hO=fe(),mO=Fc(),mv=ut(),vO=ra(),gO=Nc(),yO=Dc(),hn=hO.Symbol,jc=mO("wks"),_O=yO?hn.for||hn:hn&&hn.withoutSetter||vO;vv.exports=function(e){return mv(jc,e)||(jc[e]=gO&&mv(hn,e)?hn[e]:_O("Symbol."+e)),jc[e]}});var bv=h((gW,_v)=>{"use strict";var bO=Et(),gv=Ce(),yv=Lc(),wO=ta(),IO=rv(),EO=Ge(),kO=TypeError,SO=EO("toPrimitive");_v.exports=function(e,t){if(!gv(e)||yv(e))return e;var r=wO(e,SO),n;if(r){if(t===void 0&&(t="default"),n=bO(r,e,t),!gv(n)||yv(n))return n;throw new kO("Can't convert object to primitive value")}return t===void 0&&(t="number"),IO(e,t)}});var Jc=h((yW,wv)=>{"use strict";var AO=bv(),xO=Lc();wv.exports=function(e){var t=AO(e,"string");return xO(t)?t:t+""}});var Bc=h((_W,Ev)=>{"use strict";var CO=fe(),Iv=Ce(),Gc=CO.document,TO=Iv(Gc)&&Iv(Gc.createElement);Ev.exports=function(e){return TO?Gc.createElement(e):{}}});var Hc=h((bW,kv)=>{"use strict";var OO=Qe(),PO=pe(),RO=Bc();kv.exports=!OO&&!PO(function(){return Object.defineProperty(RO("div"),"a",{get:function(){return 7}}).a!==7})});var Vc=h(Av=>{"use strict";var NO=Qe(),DO=Et(),LO=Cc(),MO=wi(),qO=vr(),UO=Jc(),FO=ut(),jO=Hc(),Sv=Object.getOwnPropertyDescriptor;Av.f=NO?Sv:function(t,r){if(t=qO(t),r=UO(r),jO)try{return Sv(t,r)}catch(n){}if(FO(t,r))return MO(!DO(LO.f,t,r),t[r])}});var Cv=h((IW,xv)=>{"use strict";var JO=pe(),GO=Le(),BO=/#|\.prototype\./,ki=function(e,t){var r=VO[HO(e)];return r===WO?!0:r===$O?!1:GO(t)?JO(t):!!t},HO=ki.normalize=function(e){return String(e).replace(BO,".").toLowerCase()},VO=ki.data={},$O=ki.NATIVE="N",WO=ki.POLYFILL="P";xv.exports=ki});var Si=h((EW,Ov)=>{"use strict";var Tv=bi(),zO=Br(),KO=un(),YO=Tv(Tv.bind);Ov.exports=function(e,t){return zO(e),t===void 0?e:KO?YO(e,t):function(){return e.apply(t,arguments)}}});var $c=h((kW,Pv)=>{"use strict";var QO=Qe(),XO=pe();Pv.exports=QO&&XO(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var Yt=h((SW,Rv)=>{"use strict";var ZO=Ce(),eP=String,tP=TypeError;Rv.exports=function(e){if(ZO(e))return e;throw new tP(eP(e)+" is not an object")}});var Qt=h(Dv=>{"use strict";var rP=Qe(),nP=Hc(),iP=$c(),na=Yt(),Nv=Jc(),oP=TypeError,Wc=Object.defineProperty,aP=Object.getOwnPropertyDescriptor,zc="enumerable",Kc="configurable",Yc="writable";Dv.f=rP?iP?function(t,r,n){if(na(t),r=Nv(r),na(n),typeof t=="function"&&r==="prototype"&&"value"in n&&Yc in n&&!n[Yc]){var i=aP(t,r);i&&i[Yc]&&(t[r]=n.value,n={configurable:Kc in n?n[Kc]:i[Kc],enumerable:zc in n?n[zc]:i[zc],writable:!1})}return Wc(t,r,n)}:Wc:function(t,r,n){if(na(t),r=Nv(r),na(n),nP)try{return Wc(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new oP("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var Hr=h((xW,Lv)=>{"use strict";var sP=Qe(),lP=Qt(),cP=wi();Lv.exports=sP?function(e,t,r){return lP.f(e,t,cP(1,r))}:function(e,t,r){return e[t]=r,e}});var Z=h((CW,qv)=>{"use strict";var Ai=fe(),uP=Ac(),dP=bi(),pP=Le(),fP=Vc().f,hP=Cv(),mn=Dt(),mP=Si(),vn=Hr(),Mv=ut();Ei();var vP=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return uP(e,this,arguments)};return t.prototype=e.prototype,t};qv.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o=e.proto,a=n?Ai:i?Ai[r]:Ai[r]&&Ai[r].prototype,s=n?mn:mn[r]||vn(mn,r,{})[r],l=s.prototype,c,d,u,p,f,m,g,y,v;for(p in t)c=hP(n?p:r+(i?".":"#")+p,e.forced),d=!c&&a&&Mv(a,p),m=s[p],d&&(e.dontCallGetSet?(v=fP(a,p),g=v&&v.value):g=a[p]),f=d&&g?g:t[p],!(!c&&!o&&typeof m==typeof f)&&(e.bind&&d?y=mP(f,Ai):e.wrap&&d?y=vP(f):o&&pP(f)?y=dP(f):y=f,(e.sham||f&&f.sham||m&&m.sham)&&vn(y,"sham",!0),vn(s,p,y),o&&(u=r+"Prototype",Mv(mn,u)||vn(mn,u,{}),vn(mn[u],p,f),e.real&&l&&(c||!l[p])&&vn(l,p,f)))}});var Fv=h((TW,Uv)=>{"use strict";var gP=Math.ceil,yP=Math.floor;Uv.exports=Math.trunc||function(t){var r=+t;return(r>0?yP:gP)(r)}});var xi=h((OW,jv)=>{"use strict";var _P=Fv();jv.exports=function(e){var t=+e;return t!==t||t===0?0:_P(t)}});var Qc=h((PW,Jv)=>{"use strict";var bP=xi(),wP=Math.min;Jv.exports=function(e){var t=bP(e);return t>0?wP(t,9007199254740991):0}});var gn=h((RW,Gv)=>{"use strict";var IP=Qc();Gv.exports=function(e){return IP(e.length)}});var Ci=h((NW,Bv)=>{"use strict";var EP=Kt();Bv.exports=Array.isArray||function(t){return EP(t)==="Array"}});var ia=h((DW,Vv)=>{"use strict";var kP=Ge(),SP=kP("toStringTag"),Hv={};Hv[SP]="z";Vv.exports=String(Hv)==="[object z]"});var yn=h((LW,$v)=>{"use strict";var AP=ia(),xP=Le(),oa=Kt(),CP=Ge(),TP=CP("toStringTag"),OP=Object,PP=oa(function(){return arguments}())==="Arguments",RP=function(e,t){try{return e[t]}catch(r){}};$v.exports=AP?oa:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=RP(t=OP(e),TP))=="string"?r:PP?oa(t):(n=oa(t))==="Object"&&xP(t.callee)?"Arguments":n}});var zv=h((MW,Wv)=>{"use strict";var NP=be(),DP=Le(),Xc=Ei(),LP=NP(Function.toString);DP(Xc.inspectSource)||(Xc.inspectSource=function(e){return LP(e)});Wv.exports=Xc.inspectSource});var eu=h((qW,Zv)=>{"use strict";var MP=be(),qP=pe(),Kv=Le(),UP=yn(),FP=dn(),jP=zv(),Yv=function(){},Qv=FP("Reflect","construct"),Zc=/^\s*(?:class|function)\b/,JP=MP(Zc.exec),GP=!Zc.test(Yv),Ti=function(t){if(!Kv(t))return!1;try{return Qv(Yv,[],t),!0}catch(r){return!1}},Xv=function(t){if(!Kv(t))return!1;switch(UP(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return GP||!!JP(Zc,jP(t))}catch(r){return!0}};Xv.sham=!0;Zv.exports=!Qv||qP(function(){var e;return Ti(Ti.call)||!Ti(Object)||!Ti(function(){e=!0})||e})?Xv:Ti});var ng=h((UW,rg)=>{"use strict";var eg=Ci(),BP=eu(),HP=Ce(),VP=Ge(),$P=VP("species"),tg=Array;rg.exports=function(e){var t;return eg(e)&&(t=e.constructor,BP(t)&&(t===tg||eg(t.prototype))?t=void 0:HP(t)&&(t=t[$P],t===null&&(t=void 0))),t===void 0?tg:t}});var tu=h((FW,ig)=>{"use strict";var WP=ng();ig.exports=function(e,t){return new(WP(e))(t===0?0:t)}});var yr=h((jW,ag)=>{"use strict";var zP=Si(),KP=be(),YP=Qo(),QP=fn(),XP=gn(),ZP=tu(),og=KP([].push),gr=function(e){var t=e===1,r=e===2,n=e===3,i=e===4,o=e===6,a=e===7,s=e===5||o;return function(l,c,d,u){for(var p=QP(l),f=YP(p),m=XP(f),g=zP(c,d),y=0,v=u||ZP,b=t?v(l,m):r||a?v(l,0):void 0,k,x;m>y;y++)if((s||y in f)&&(k=f[y],x=g(k,y,p),e))if(t)b[y]=x;else if(x)switch(e){case 3:return!0;case 5:return k;case 6:return y;case 2:og(b,k)}else switch(e){case 4:return!1;case 7:og(b,k)}return o?-1:n||i?i:b}};ag.exports={forEach:gr(0),map:gr(1),filter:gr(2),some:gr(3),every:gr(4),find:gr(5),findIndex:gr(6),filterReject:gr(7)}});var Oi=h((JW,sg)=>{"use strict";var eR=pe(),tR=Ge(),rR=ea(),nR=tR("species");sg.exports=function(e){return rR>=51||!eR(function(){var t=[],r=t.constructor={};return r[nR]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var lg=h(()=>{"use strict";var iR=Z(),oR=yr().filter,aR=Oi(),sR=aR("filter");iR({target:"Array",proto:!0,forced:!sR},{filter:function(t){return oR(this,t,arguments.length>1?arguments[1]:void 0)}})});var _t=h((HW,cg)=>{"use strict";var lR=fe(),cR=Dt();cg.exports=function(e,t){var r=cR[e+"Prototype"],n=r&&r[t];if(n)return n;var i=lR[e],o=i&&i.prototype;return o&&o[t]}});var dg=h((VW,ug)=>{"use strict";lg();var uR=_t();ug.exports=uR("Array","filter")});var fg=h(($W,pg)=>{"use strict";var dR=Ye(),pR=dg(),ru=Array.prototype;pg.exports=function(e){var t=e.filter;return e===ru||dR(ru,e)&&t===ru.filter?pR:t}});var mg=h((WW,hg)=>{"use strict";var fR=fg();hg.exports=fR});var gg=h((zW,vg)=>{vg.exports=mg()});var Pi=h((KW,yg)=>{"use strict";var hR=pe();yg.exports=function(e,t){var r=[][e];return!!r&&hR(function(){r.call(null,t||function(){return 1},1)})}});var _g=h(()=>{"use strict";var mR=Z(),vR=yr().every,gR=Pi(),yR=gR("every");mR({target:"Array",proto:!0,forced:!yR},{every:function(t){return vR(this,t,arguments.length>1?arguments[1]:void 0)}})});var wg=h((XW,bg)=>{"use strict";_g();var _R=_t();bg.exports=_R("Array","every")});var Eg=h((ZW,Ig)=>{"use strict";var bR=Ye(),wR=wg(),nu=Array.prototype;Ig.exports=function(e){var t=e.every;return e===nu||bR(nu,e)&&t===nu.every?wR:t}});var Sg=h((ez,kg)=>{"use strict";var IR=Eg();kg.exports=IR});var xg=h((tz,Ag)=>{Ag.exports=Sg()});var Tg=h((rz,Cg)=>{"use strict";var ER=yr().forEach,kR=Pi(),SR=kR("forEach");Cg.exports=SR?[].forEach:function(t){return ER(this,t,arguments.length>1?arguments[1]:void 0)}});var Pg=h(()=>{"use strict";var AR=Z(),Og=Tg();AR({target:"Array",proto:!0,forced:[].forEach!==Og},{forEach:Og})});var Ng=h((oz,Rg)=>{"use strict";Pg();var xR=_t();Rg.exports=xR("Array","forEach")});var Lg=h((az,Dg)=>{"use strict";var CR=Ng();Dg.exports=CR});var Mg=h(()=>{});var Ug=h((cz,qg)=>{"use strict";var TR=yn(),OR=ut(),PR=Ye(),RR=Lg();Mg();var iu=Array.prototype,NR={DOMTokenList:!0,NodeList:!0};qg.exports=function(e){var t=e.forEach;return e===iu||PR(iu,e)&&t===iu.forEach||OR(NR,TR(e))?RR:t}});var jg=h((uz,Fg)=>{Fg.exports=Ug()});var Gg=h((dz,Jg)=>{"use strict";var DR=TypeError,LR=9007199254740991;Jg.exports=function(e){if(e>LR)throw DR("Maximum allowed index exceeded");return e}});var ou=h((pz,Bg)=>{"use strict";var MR=Qe(),qR=Qt(),UR=wi();Bg.exports=function(e,t,r){MR?qR.f(e,t,UR(0,r)):e[t]=r}});var Wg=h(()=>{"use strict";var FR=Z(),jR=pe(),JR=Ci(),GR=Ce(),BR=fn(),HR=gn(),Hg=Gg(),Vg=ou(),VR=tu(),$R=Oi(),WR=Ge(),zR=ea(),$g=WR("isConcatSpreadable"),KR=zR>=51||!jR(function(){var e=[];return e[$g]=!1,e.concat()[0]!==e}),YR=function(e){if(!GR(e))return!1;var t=e[$g];return t!==void 0?!!t:JR(e)},QR=!KR||!$R("concat");FR({target:"Array",proto:!0,arity:1,forced:QR},{concat:function(t){var r=BR(this),n=VR(r,0),i=0,o,a,s,l,c;for(o=-1,s=arguments.length;o<s;o++)if(c=o===-1?r:arguments[o],YR(c))for(l=HR(c),Hg(i+l),a=0;a<l;a++,i++)a in c&&Vg(n,i,c[a]);else Hg(i+1),Vg(n,i++,c);return n.length=i,n}})});var Kg=h((mz,zg)=>{"use strict";Wg();var XR=_t();zg.exports=XR("Array","concat")});var Qg=h((vz,Yg)=>{"use strict";var ZR=Ye(),eN=Kg(),au=Array.prototype;Yg.exports=function(e){var t=e.concat;return e===au||ZR(au,e)&&t===au.concat?eN:t}});var Zg=h((gz,Xg)=>{"use strict";var tN=Qg();Xg.exports=tN});var ty=h((yz,ey)=>{ey.exports=Zg()});var ry=h(()=>{"use strict";var rN=Z(),nN=yr().some,iN=Pi(),oN=iN("some");rN({target:"Array",proto:!0,forced:!oN},{some:function(t){return nN(this,t,arguments.length>1?arguments[1]:void 0)}})});var iy=h((wz,ny)=>{"use strict";ry();var aN=_t();ny.exports=aN("Array","some")});var ay=h((Iz,oy)=>{"use strict";var sN=Ye(),lN=iy(),su=Array.prototype;oy.exports=function(e){var t=e.some;return e===su||sN(su,e)&&t===su.some?lN:t}});var ly=h((Ez,sy)=>{"use strict";var cN=ay();sy.exports=cN});var uy=h((kz,cy)=>{cy.exports=ly()});var py=h((Sz,dy)=>{"use strict";var Ri=fe(),uN=Xo(),dN=Kt(),aa=function(e){return uN.slice(0,e.length)===e};dy.exports=function(){return aa("Bun/")?"BUN":aa("Cloudflare-Workers")?"CLOUDFLARE":aa("Deno/")?"DENO":aa("Node.js/")?"NODE":Ri.Bun&&typeof Bun.version=="string"?"BUN":Ri.Deno&&typeof Deno.version=="object"?"DENO":dN(Ri.process)==="process"?"NODE":Ri.window&&Ri.document?"BROWSER":"REST"}()});var Ni=h((Az,fy)=>{"use strict";var pN=be();fy.exports=pN([].slice)});var my=h((xz,hy)=>{"use strict";var fN=TypeError;hy.exports=function(e,t){if(e<t)throw new fN("Not enough arguments");return e}});var lu=h((Cz,gy)=>{"use strict";var vy=fe(),hN=Ac(),mN=Le(),vN=py(),gN=Xo(),yN=Ni(),_N=my(),bN=vy.Function,wN=/MSIE .\./.test(gN)||vN==="BUN"&&function(){var e=vy.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();gy.exports=function(e,t){var r=t?2:1;return wN?function(n,i){var o=_N(arguments.length,1)>r,a=mN(n)?n:bN(n),s=o?yN(arguments,r):[],l=o?function(){hN(a,this,s)}:a;return t?e(l,i):e(l)}:e}});var by=h(()=>{"use strict";var IN=Z(),_y=fe(),EN=lu(),yy=EN(_y.setInterval,!0);IN({global:!0,bind:!0,forced:_y.setInterval!==yy},{setInterval:yy})});var Ey=h(()=>{"use strict";var kN=Z(),Iy=fe(),SN=lu(),wy=SN(Iy.setTimeout,!0);kN({global:!0,bind:!0,forced:Iy.setTimeout!==wy},{setTimeout:wy})});var ky=h(()=>{"use strict";by();Ey()});var Ay=h((Lz,Sy)=>{"use strict";ky();var AN=Dt();Sy.exports=AN.setTimeout});var Cy=h((Mz,xy)=>{xy.exports=Ay()});function Li(e,t){me.__h&&me.__h(oe,e,Di||t),Di=0;var r=oe.__H||(oe.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function la(e){return Di=1,Uy(Fy,e)}function Uy(e,t,r){var n=Li(Vr++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Fy(void 0,t),function(s){var l=n.__N?n.__N[0]:n.__[0],c=n.t(l,s);l!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=oe,!oe.__f)){var i=function(s,l,c){if(!n.__c.__H)return!0;var d=n.__c.__H.__.filter(function(p){return!!p.__c});if(d.every(function(p){return!p.__N}))return!o||o.call(this,s,l,c);var u=n.__c.props!==s;return d.forEach(function(p){if(p.__N){var f=p.__[0];p.__=p.__N,p.__N=void 0,f!==p.__[0]&&(u=!0)}}),o&&o.call(this,s,l,c)||u};oe.__f=!0;var o=oe.shouldComponentUpdate,a=oe.componentWillUpdate;oe.componentWillUpdate=function(s,l,c){if(this.__e){var d=o;o=void 0,i(s,l,c),o=d}a&&a.call(this,s,l,c)},oe.shouldComponentUpdate=i}return n.__N||n.__}function Mi(e,t){var r=Li(Vr++,3);!me.__s&&du(r.__H,t)&&(r.__=e,r.u=t,oe.__H.__h.push(r))}function _n(e,t){var r=Li(Vr++,4);!me.__s&&du(r.__H,t)&&(r.__=e,r.u=t,oe.__h.push(r))}function qi(e){return Di=5,Ui(function(){return{current:e}},[])}function Ui(e,t){var r=Li(Vr++,7);return du(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function bn(e,t){return Di=8,Ui(function(){return e},t)}function wn(e){var t=oe.context[e.__c],r=Li(Vr++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(oe)),t.props.value):e.__}function xN(){for(var e;e=qy.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(sa),e.__H.__h.forEach(uu),e.__H.__h=[]}catch(t){e.__H.__h=[],me.__e(t,e.__v)}}function CN(e){var t,r=function(){clearTimeout(n),My&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);My&&(t=requestAnimationFrame(r))}function sa(e){var t=oe,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),oe=t}function uu(e){var t=oe;e.__c=e.__(),oe=t}function du(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Fy(e,t){return typeof t=="function"?t(e):t}var Vr,oe,cu,Ty,Di,qy,me,Oy,Py,Ry,Ny,Dy,Ly,My,pu=A(()=>{cn();Di=0,qy=[],me=N,Oy=me.__b,Py=me.__r,Ry=me.diffed,Ny=me.__c,Dy=me.unmount,Ly=me.__;me.__b=function(e){oe=null,Oy&&Oy(e)},me.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ly&&Ly(e,t)},me.__r=function(e){Py&&Py(e),Vr=0;var t=(oe=e.__c).__H;t&&(cu===oe?(t.__h=[],oe.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(sa),t.__h.forEach(uu),t.__h=[],Vr=0)),cu=oe},me.diffed=function(e){Ry&&Ry(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(qy.push(t)!==1&&Ty===me.requestAnimationFrame||((Ty=me.requestAnimationFrame)||CN)(xN)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),cu=oe=null},me.__c=function(e,t){t.some(function(r){try{r.__h.forEach(sa),r.__h=r.__h.filter(function(n){return!n.__||uu(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],me.__e(n,r.__v)}}),Ny&&Ny(e,t)},me.unmount=function(e){Dy&&Dy(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{sa(n)}catch(i){t=i}}),r.__H=void 0,t&&me.__e(t,r.__v))};My=typeof requestAnimationFrame=="function"});function Ky(e,t){for(var r in t)e[r]=t[r];return e}function hu(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function jy(e,t){this.props=e,this.context=t}function vu(e,t){function r(i){var o=this.props.ref,a=o==i.ref;return!a&&o&&(o.call?o(null):o.current=null),t?!t(this.props,i)||!a:hu(this.props,i)}function n(i){return this.shouldComponentUpdate=r,Je(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function gu(e){function t(r){var n=Ky({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=TN,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function Yy(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=Ky({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Yy(n,t,r)})),e}function Qy(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Qy(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function fu(){this.__u=0,this.o=null,this.__b=null}function Xy(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function ca(){this.i=null,this.l=null}function yu(e,t,r){return t.__k==null&&(t.textContent=""),mr(e,t),typeof r=="function"&&r(),e?e.__c:null}function qN(){}function UN(){return this.cancelBubble}function FN(){return this.defaultPrevented}var mu,Jy,TN,ON,Gy,By,PN,RN,NN,DN,LN,MN,Hy,Zy,jN,Vy,$y,Wy,ua=A(()=>{cn();cn();pu();pu();mu=_n;(jy.prototype=new ct).isPureReactComponent=!0,jy.prototype.shouldComponentUpdate=function(e,t){return hu(this.props,e)||hu(this.state,t)};Jy=N.__b;N.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Jy&&Jy(e)};TN=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;ON=N.__e;N.__e=function(e,t,r,n){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),i.__c(e,t)}ON(e,t,r,n)};Gy=N.unmount;N.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Gy&&Gy(e)},(fu.prototype=new ct).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=Xy(n.__v),o=!1,a=function(){o||(o=!0,r.__R=null,i?i(s):s())};r.__R=a;var s=function(){if(!--n.__u){if(n.state.__a){var l=n.state.__a;n.__v.__k[0]=Qy(l,l.__c.__P,l.__c.__O)}var c;for(n.setState({__a:n.__b=null});c=n.o.pop();)c.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},fu.prototype.componentWillUnmount=function(){this.o=[]},fu.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Yy(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&Je(De,null,e.fallback);return i&&(i.__u&=-33),[Je(De,null,t.__a?null:e.children),i]};By=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.i=r=r[2]}};(ca.prototype=new ct).__a=function(e){var t=this,r=Xy(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),By(t,e,n)):i()};r?r(o):o()}},ca.prototype.render=function(e){this.i=null,this.l=new Map;var t=yi(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},ca.prototype.componentDidUpdate=ca.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){By(e,r,t)})};PN=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,RN=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,NN=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,DN=/[A-Z0-9]/g,LN=typeof document!="undefined",MN=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};ct.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ct.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});Hy=N.event;N.event=function(e){return Hy&&(e=Hy(e)),e.persist=qN,e.isPropagationStopped=UN,e.isDefaultPrevented=FN,e.nativeEvent=e};jN={enumerable:!1,configurable:!0,get:function(){return this.class}},Vy=N.vnode;N.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,n=t.type,i={},o=n.indexOf("-")===-1;for(var a in r){var s=r[a];if(!(a==="value"&&"defaultValue"in r&&s==null||LN&&a==="children"&&n==="noscript"||a==="class"||a==="className")){var l=a.toLowerCase();a==="defaultValue"&&"value"in r&&r.value==null?a="value":a==="download"&&s===!0?s="":l==="translate"&&s==="no"?s=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?a="ondblclick":l!=="onchange"||n!=="input"&&n!=="textarea"||MN(r.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":NN.test(a)&&(a=l):l=a="oninput":o&&RN.test(a)?a=a.replace(DN,"-$&").toLowerCase():s===null&&(s=void 0),l==="oninput"&&i[a=l]&&(a="oninputCapture"),i[a]=s}}n=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=yi(r.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=yi(r.children).forEach(function(c){c.props.selected=i.multiple?i.defaultValue.indexOf(c.props.value)!=-1:i.defaultValue==c.props.value})),r.class&&!r.className?(i.class=r.class,Object.defineProperty(i,"className",jN)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=PN,Vy&&Vy(e)};$y=N.__r;N.__r=function(e){$y&&$y(e),Zy=e.__c};Wy=N.diffed;N.diffed=function(e){Wy&&Wy(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value),Zy=null}});var bu=h(()=>{"use strict";var GN=Z(),_u=fe();GN({global:!0,forced:_u.globalThis!==_u},{globalThis:_u})});var e_=h(()=>{"use strict";bu()});var r_=h((Xz,t_)=>{"use strict";bu();t_.exports=fe()});var i_=h((Zz,n_)=>{"use strict";var BN=r_();n_.exports=BN});var a_=h((e6,o_)=>{"use strict";var HN=i_();o_.exports=HN});var l_=h((t6,s_)=>{"use strict";e_();var VN=a_();s_.exports=VN});var u_=h((r6,c_)=>{"use strict";c_.exports=l_()});var p_=h((n6,d_)=>{d_.exports=u_()});var f_=h(()=>{"use strict";var $N=Z(),WN=Ci();$N({target:"Array",stat:!0},{isArray:WN})});var m_=h((a6,h_)=>{"use strict";f_();var zN=Dt();h_.exports=zN.Array.isArray});var g_=h((s6,v_)=>{"use strict";var KN=m_();v_.exports=KN});var __=h((l6,y_)=>{y_.exports=g_()});var w_=h((c6,b_)=>{"use strict";b_.exports=function(){}});var $r=h((u6,I_)=>{"use strict";I_.exports={}});var wu=h((d6,k_)=>{"use strict";var YN=fe(),QN=Le(),E_=YN.WeakMap;k_.exports=QN(E_)&&/native code/.test(String(E_))});var da=h((p6,A_)=>{"use strict";var XN=Fc(),ZN=ra(),S_=XN("keys");A_.exports=function(e){return S_[e]||(S_[e]=ZN(e))}});var Fi=h((f6,x_)=>{"use strict";x_.exports={}});var zr=h((h6,O_)=>{"use strict";var eD=wu(),T_=fe(),tD=Ce(),rD=Hr(),Iu=ut(),Eu=Ei(),nD=da(),iD=Fi(),C_="Object already initialized",ku=T_.TypeError,oD=T_.WeakMap,pa,ji,fa,aD=function(e){return fa(e)?ji(e):pa(e,{})},sD=function(e){return function(t){var r;if(!tD(t)||(r=ji(t)).type!==e)throw new ku("Incompatible receiver, "+e+" required");return r}};eD||Eu.state?(St=Eu.state||(Eu.state=new oD),St.get=St.get,St.has=St.has,St.set=St.set,pa=function(e,t){if(St.has(e))throw new ku(C_);return t.facade=e,St.set(e,t),t},ji=function(e){return St.get(e)||{}},fa=function(e){return St.has(e)}):(Wr=nD("state"),iD[Wr]=!0,pa=function(e,t){if(Iu(e,Wr))throw new ku(C_);return t.facade=e,rD(e,Wr,t),t},ji=function(e){return Iu(e,Wr)?e[Wr]:{}},fa=function(e){return Iu(e,Wr)});var St,Wr;O_.exports={set:pa,get:ji,has:fa,enforce:aD,getterFor:sD}});var xu=h((m6,R_)=>{"use strict";var Su=Qe(),lD=ut(),P_=Function.prototype,cD=Su&&Object.getOwnPropertyDescriptor,Au=lD(P_,"name"),uD=Au&&(function(){}).name==="something",dD=Au&&(!Su||Su&&cD(P_,"name").configurable);R_.exports={EXISTS:Au,PROPER:uD,CONFIGURABLE:dD}});var Cu=h((v6,N_)=>{"use strict";var pD=xi(),fD=Math.max,hD=Math.min;N_.exports=function(e,t){var r=pD(e);return r<0?fD(r+t,0):hD(r,t)}});var Tu=h((g6,L_)=>{"use strict";var mD=vr(),vD=Cu(),gD=gn(),D_=function(e){return function(t,r,n){var i=mD(t),o=gD(i);if(o===0)return!e&&-1;var a=vD(n,o),s;if(e&&r!==r){for(;o>a;)if(s=i[a++],s!==s)return!0}else for(;o>a;a++)if((e||a in i)&&i[a]===r)return e||a||0;return!e&&-1}};L_.exports={includes:D_(!0),indexOf:D_(!1)}});var Pu=h((y6,q_)=>{"use strict";var yD=be(),Ou=ut(),_D=vr(),bD=Tu().indexOf,wD=Fi(),M_=yD([].push);q_.exports=function(e,t){var r=_D(e),n=0,i=[],o;for(o in r)!Ou(wD,o)&&Ou(r,o)&&M_(i,o);for(;t.length>n;)Ou(r,o=t[n++])&&(~bD(i,o)||M_(i,o));return i}});var ha=h((_6,U_)=>{"use strict";U_.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Ru=h((b6,F_)=>{"use strict";var ID=Pu(),ED=ha();F_.exports=Object.keys||function(t){return ID(t,ED)}});var J_=h(j_=>{"use strict";var kD=Qe(),SD=$c(),AD=Qt(),xD=Yt(),CD=vr(),TD=Ru();j_.f=kD&&!SD?Object.defineProperties:function(t,r){xD(t);for(var n=CD(r),i=TD(r),o=i.length,a=0,s;o>a;)AD.f(t,s=i[a++],n[s]);return t}});var B_=h((I6,G_)=>{"use strict";var OD=dn();G_.exports=OD("document","documentElement")});var Ji=h((E6,Y_)=>{"use strict";var PD=Yt(),RD=J_(),H_=ha(),ND=Fi(),DD=B_(),LD=Bc(),MD=da(),V_=">",$_="<",Du="prototype",Lu="script",z_=MD("IE_PROTO"),Nu=function(){},K_=function(e){return $_+Lu+V_+e+$_+"/"+Lu+V_},W_=function(e){e.write(K_("")),e.close();var t=e.parentWindow.Object;return e=null,t},qD=function(){var e=LD("iframe"),t="java"+Lu+":",r;return e.style.display="none",DD.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(K_("document.F=Object")),r.close(),r.F},ma,va=function(){try{ma=new ActiveXObject("htmlfile")}catch(t){}va=typeof document!="undefined"?document.domain&&ma?W_(ma):qD():W_(ma);for(var e=H_.length;e--;)delete va[Du][H_[e]];return va()};ND[z_]=!0;Y_.exports=Object.create||function(t,r){var n;return t!==null?(Nu[Du]=PD(t),n=new Nu,Nu[Du]=null,n[z_]=t):n=va(),r===void 0?n:RD.f(n,r)}});var X_=h((k6,Q_)=>{"use strict";var UD=pe();Q_.exports=!UD(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var qu=h((S6,eb)=>{"use strict";var FD=ut(),jD=Le(),JD=fn(),GD=da(),BD=X_(),Z_=GD("IE_PROTO"),Mu=Object,HD=Mu.prototype;eb.exports=BD?Mu.getPrototypeOf:function(e){var t=JD(e);if(FD(t,Z_))return t[Z_];var r=t.constructor;return jD(r)&&t instanceof r?r.prototype:t instanceof Mu?HD:null}});var ga=h((A6,tb)=>{"use strict";var VD=Hr();tb.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:VD(e,t,r),e}});var Ju=h((x6,ib)=>{"use strict";var $D=pe(),WD=Le(),zD=Ce(),KD=Ji(),rb=qu(),YD=ga(),QD=Ge(),XD=pn(),ju=QD("iterator"),nb=!1,Xt,Uu,Fu;[].keys&&(Fu=[].keys(),"next"in Fu?(Uu=rb(rb(Fu)),Uu!==Object.prototype&&(Xt=Uu)):nb=!0);var ZD=!zD(Xt)||$D(function(){var e={};return Xt[ju].call(e)!==e});ZD?Xt={}:XD&&(Xt=KD(Xt));WD(Xt[ju])||YD(Xt,ju,function(){return this});ib.exports={IteratorPrototype:Xt,BUGGY_SAFARI_ITERATORS:nb}});var ab=h((C6,ob)=>{"use strict";var eL=ia(),tL=yn();ob.exports=eL?{}.toString:function(){return"[object "+tL(this)+"]"}});var Gi=h((T6,lb)=>{"use strict";var rL=ia(),nL=Qt().f,iL=Hr(),oL=ut(),aL=ab(),sL=Ge(),sb=sL("toStringTag");lb.exports=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(oL(i,sb)||nL(i,sb,{configurable:!0,value:t}),n&&!rL&&iL(i,"toString",aL))}});var ub=h((O6,cb)=>{"use strict";var lL=Ju().IteratorPrototype,cL=Ji(),uL=wi(),dL=Gi(),pL=$r(),fL=function(){return this};cb.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=cL(lL,{next:uL(+!n,r)}),dL(e,i,!1,!0),pL[i]=fL,e}});var pb=h((P6,db)=>{"use strict";var hL=be(),mL=Br();db.exports=function(e,t,r){try{return hL(mL(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var hb=h((R6,fb)=>{"use strict";var vL=Ce();fb.exports=function(e){return vL(e)||e===null}});var vb=h((N6,mb)=>{"use strict";var gL=hb(),yL=String,_L=TypeError;mb.exports=function(e){if(gL(e))return e;throw new _L("Can't set "+yL(e)+" as a prototype")}});var yb=h((D6,gb)=>{"use strict";var bL=pb(),wL=Ce(),IL=Gr(),EL=vb();gb.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=bL(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return IL(i),EL(o),wL(i)&&(e?r(i,o):i.__proto__=o),i}}():void 0)});var ba=h((L6,Cb)=>{"use strict";var kL=Z(),SL=Et(),ya=pn(),Ab=xu(),AL=Le(),xL=ub(),_b=qu(),bb=yb(),CL=Gi(),TL=Hr(),Gu=ga(),OL=Ge(),wb=$r(),xb=Ju(),PL=Ab.PROPER,RL=Ab.CONFIGURABLE,Ib=xb.IteratorPrototype,_a=xb.BUGGY_SAFARI_ITERATORS,Bi=OL("iterator"),Eb="keys",Hi="values",kb="entries",Sb=function(){return this};Cb.exports=function(e,t,r,n,i,o,a){xL(r,t,n);var s=function(v){if(v===i&&p)return p;if(!_a&&v&&v in d)return d[v];switch(v){case Eb:return function(){return new r(this,v)};case Hi:return function(){return new r(this,v)};case kb:return function(){return new r(this,v)}}return function(){return new r(this)}},l=t+" Iterator",c=!1,d=e.prototype,u=d[Bi]||d["@@iterator"]||i&&d[i],p=!_a&&u||s(i),f=t==="Array"&&d.entries||u,m,g,y;if(f&&(m=_b(f.call(new e)),m!==Object.prototype&&m.next&&(!ya&&_b(m)!==Ib&&(bb?bb(m,Ib):AL(m[Bi])||Gu(m,Bi,Sb)),CL(m,l,!0,!0),ya&&(wb[l]=Sb))),PL&&i===Hi&&u&&u.name!==Hi&&(!ya&&RL?TL(d,"name",Hi):(c=!0,p=function(){return SL(u,this)})),i)if(g={values:s(Hi),keys:o?p:s(Eb),entries:s(kb)},a)for(y in g)(_a||c||!(y in d))&&Gu(d,y,g[y]);else kL({target:t,proto:!0,forced:_a||c},g);return(!ya||a)&&d[Bi]!==p&&Gu(d,Bi,p,{name:i}),wb[t]=p,g}});var wa=h((M6,Tb)=>{"use strict";Tb.exports=function(e,t){return{value:e,done:t}}});var Ea=h((q6,Db)=>{"use strict";var NL=vr(),Bu=w_(),Ob=$r(),Rb=zr(),DL=Qt().f,LL=ba(),Ia=wa(),ML=pn(),qL=Qe(),Nb="Array Iterator",UL=Rb.set,FL=Rb.getterFor(Nb);Db.exports=LL(Array,"Array",function(e,t){UL(this,{type:Nb,target:NL(e),index:0,kind:t})},function(){var e=FL(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,Ia(void 0,!0);switch(e.kind){case"keys":return Ia(r,!1);case"values":return Ia(t[r],!1)}return Ia([r,t[r]],!1)},"values");var Pb=Ob.Arguments=Ob.Array;Bu("keys");Bu("values");Bu("entries");if(!ML&&qL&&Pb.name!=="values")try{DL(Pb,"name",{value:"values"})}catch(e){}});var Hu=h(()=>{});var Vu=h((j6,Lb)=>{"use strict";var jL=pe();Lb.exports=!jL(function(){return Object.isExtensible(Object.preventExtensions({}))})});var ka=h((J6,Mb)=>{"use strict";var JL=ga();Mb.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:JL(e,n,t[n],r);return e}});var $u=h(qb=>{"use strict";var GL=Pu(),BL=ha(),HL=BL.concat("length","prototype");qb.f=Object.getOwnPropertyNames||function(t){return GL(t,HL)}});var Jb=h((B6,jb)=>{"use strict";var VL=Kt(),$L=vr(),Ub=$u().f,WL=Ni(),Fb=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],zL=function(e){try{return Ub(e)}catch(t){return WL(Fb)}};jb.exports.f=function(t){return Fb&&VL(t)==="Window"?zL(t):Ub($L(t))}});var Bb=h((H6,Gb)=>{"use strict";var KL=pe();Gb.exports=KL(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var $b=h((V6,Vb)=>{"use strict";var YL=pe(),QL=Ce(),XL=Kt(),Hb=Bb(),Sa=Object.isExtensible,ZL=YL(function(){Sa(1)});Vb.exports=ZL||Hb?function(t){return!QL(t)||Hb&&XL(t)==="ArrayBuffer"?!1:Sa?Sa(t):!0}:Sa});var Vi=h(($6,Kb)=>{"use strict";var eM=Z(),tM=be(),rM=Fi(),nM=Ce(),Wu=ut(),iM=Qt().f,Wb=$u(),oM=Jb(),zu=$b(),aM=ra(),sM=Vu(),zb=!1,Zt=aM("meta"),lM=0,Ku=function(e){iM(e,Zt,{value:{objectID:"O"+lM++,weakData:{}}})},cM=function(e,t){if(!nM(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!Wu(e,Zt)){if(!zu(e))return"F";if(!t)return"E";Ku(e)}return e[Zt].objectID},uM=function(e,t){if(!Wu(e,Zt)){if(!zu(e))return!0;if(!t)return!1;Ku(e)}return e[Zt].weakData},dM=function(e){return sM&&zb&&zu(e)&&!Wu(e,Zt)&&Ku(e),e},pM=function(){fM.enable=function(){},zb=!0;var e=Wb.f,t=tM([].splice),r={};r[Zt]=1,e(r).length&&(Wb.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===Zt){t(i,o,1);break}return i},eM({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:oM.f}))},fM=Kb.exports={enable:pM,fastKey:cM,getWeakData:uM,onFreeze:dM};rM[Zt]=!0});var Qb=h((W6,Yb)=>{"use strict";var hM=Ge(),mM=$r(),vM=hM("iterator"),gM=Array.prototype;Yb.exports=function(e){return e!==void 0&&(mM.Array===e||gM[vM]===e)}});var Yu=h((z6,Zb)=>{"use strict";var yM=yn(),Xb=ta(),_M=Jr(),bM=$r(),wM=Ge(),IM=wM("iterator");Zb.exports=function(e){if(!_M(e))return Xb(e,IM)||Xb(e,"@@iterator")||bM[yM(e)]}});var tw=h((K6,ew)=>{"use strict";var EM=Et(),kM=Br(),SM=Yt(),AM=Ii(),xM=Yu(),CM=TypeError;ew.exports=function(e,t){var r=arguments.length<2?xM(e):t;if(kM(r))return SM(EM(r,e));throw new CM(AM(e)+" is not iterable")}});var Aa=h((Y6,nw)=>{"use strict";var TM=Et(),rw=Yt(),OM=ta();nw.exports=function(e,t,r){var n,i;rw(e);try{if(n=OM(e,"return"),!n){if(t==="throw")throw r;return r}n=TM(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return rw(n),r}});var Ca=h((Q6,sw)=>{"use strict";var PM=Si(),RM=Et(),NM=Yt(),DM=Ii(),LM=Qb(),MM=gn(),iw=Ye(),qM=tw(),UM=Yu(),ow=Aa(),FM=TypeError,xa=function(e,t){this.stopped=e,this.result=t},aw=xa.prototype;sw.exports=function(e,t,r){var n=r&&r.that,i=!!(r&&r.AS_ENTRIES),o=!!(r&&r.IS_RECORD),a=!!(r&&r.IS_ITERATOR),s=!!(r&&r.INTERRUPTED),l=PM(t,n),c,d,u,p,f,m,g,y=function(b){return c&&ow(c,"normal",b),new xa(!0,b)},v=function(b){return i?(NM(b),s?l(b[0],b[1],y):l(b[0],b[1])):s?l(b,y):l(b)};if(o)c=e.iterator;else if(a)c=e;else{if(d=UM(e),!d)throw new FM(DM(e)+" is not iterable");if(LM(d)){for(u=0,p=MM(e);p>u;u++)if(f=v(e[u]),f&&iw(aw,f))return f;return new xa(!1)}c=qM(e,d)}for(m=o?e.next:c.next;!(g=RM(m,c)).done;){try{f=v(g.value)}catch(b){ow(c,"throw",b)}if(typeof f=="object"&&f&&iw(aw,f))return f}return new xa(!1)}});var Ta=h((X6,lw)=>{"use strict";var jM=Ye(),JM=TypeError;lw.exports=function(e,t){if(jM(t,e))return e;throw new JM("Incorrect invocation")}});var Qu=h((Z6,uw)=>{"use strict";var GM=Z(),BM=fe(),HM=Vi(),VM=pe(),$M=Hr(),WM=Ca(),zM=Ta(),KM=Le(),YM=Ce(),QM=Jr(),XM=Gi(),ZM=Qt().f,eq=yr().forEach,tq=Qe(),cw=zr(),rq=cw.set,nq=cw.getterFor;uw.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=BM[e],s=a&&a.prototype,l={},c;if(!tq||!KM(a)||!(i||s.forEach&&!VM(function(){new a().entries().next()})))c=r.getConstructor(t,e,n,o),HM.enable();else{c=t(function(p,f){rq(zM(p,d),{type:e,collection:new a}),QM(f)||WM(f,p[o],{that:p,AS_ENTRIES:n})});var d=c.prototype,u=nq(e);eq(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(p){var f=p==="add"||p==="set";p in s&&!(i&&p==="clear")&&$M(d,p,function(m,g){var y=u(this).collection;if(!f&&i&&!YM(m))return p==="get"?void 0:!1;var v=y[p](m===0?0:m,g);return f?this:v})}),i||ZM(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return XM(c,e,!1,!0),l[e]=c,GM({global:!0,forced:!0},l),i||r.setStrong(c,e,n),c}});var gw=h((e8,vw)=>{"use strict";var iq=be(),dw=ka(),Oa=Vi().getWeakData,oq=Ta(),aq=Yt(),sq=Jr(),Xu=Ce(),lq=Ca(),fw=yr(),pw=ut(),hw=zr(),cq=hw.set,uq=hw.getterFor,dq=fw.find,pq=fw.findIndex,fq=iq([].splice),hq=0,Pa=function(e){return e.frozen||(e.frozen=new mw)},mw=function(){this.entries=[]},Zu=function(e,t){return dq(e.entries,function(r){return r[0]===t})};mw.prototype={get:function(e){var t=Zu(this,e);if(t)return t[1]},has:function(e){return!!Zu(this,e)},set:function(e,t){var r=Zu(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=pq(this.entries,function(r){return r[0]===e});return~t&&fq(this.entries,t,1),!!~t}};vw.exports={getConstructor:function(e,t,r,n){var i=e(function(l,c){oq(l,o),cq(l,{type:t,id:hq++,frozen:null}),sq(c)||lq(c,l[n],{that:l,AS_ENTRIES:r})}),o=i.prototype,a=uq(t),s=function(l,c,d){var u=a(l),p=Oa(aq(c),!0);return p===!0?Pa(u).set(c,d):p[u.id]=d,l};return dw(o,{delete:function(l){var c=a(this);if(!Xu(l))return!1;var d=Oa(l);return d===!0?Pa(c).delete(l):d&&pw(d,c.id)&&delete d[c.id]},has:function(c){var d=a(this);if(!Xu(c))return!1;var u=Oa(c);return u===!0?Pa(d).has(c):u&&pw(u,d.id)}}),dw(o,r?{get:function(c){var d=a(this);if(Xu(c)){var u=Oa(c);if(u===!0)return Pa(d).get(c);if(u)return u[d.id]}},set:function(c,d){return s(this,c,d)}}:{add:function(c){return s(this,c,!0)}}),i}}});var Sw=h(()=>{"use strict";var mq=Vu(),yw=fe(),La=be(),_w=ka(),vq=Vi(),gq=Qu(),bw=gw(),Ra=Ce(),Na=zr().enforce,yq=pe(),_q=wu(),zi=Object,bq=Array.isArray,Da=zi.isExtensible,ww=zi.isFrozen,wq=zi.isSealed,Iw=zi.freeze,Iq=zi.seal,Eq=!yw.ActiveXObject&&"ActiveXObject"in yw,$i,Ew=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},kw=gq("WeakMap",Ew,bw),In=kw.prototype,Ma=La(In.set),kq=function(){return mq&&yq(function(){var e=Iw([]);return Ma(new kw,e,1),!ww(e)})};_q&&(Eq?($i=bw.getConstructor(Ew,"WeakMap",!0),vq.enable(),ed=La(In.delete),Wi=La(In.has),td=La(In.get),_w(In,{delete:function(e){if(Ra(e)&&!Da(e)){var t=Na(this);return t.frozen||(t.frozen=new $i),ed(this,e)||t.frozen.delete(e)}return ed(this,e)},has:function(t){if(Ra(t)&&!Da(t)){var r=Na(this);return r.frozen||(r.frozen=new $i),Wi(this,t)||r.frozen.has(t)}return Wi(this,t)},get:function(t){if(Ra(t)&&!Da(t)){var r=Na(this);return r.frozen||(r.frozen=new $i),Wi(this,t)?td(this,t):r.frozen.get(t)}return td(this,t)},set:function(t,r){if(Ra(t)&&!Da(t)){var n=Na(this);n.frozen||(n.frozen=new $i),Wi(this,t)?Ma(this,t,r):n.frozen.set(t,r)}else Ma(this,t,r);return this}})):kq()&&_w(In,{set:function(t,r){var n;return bq(t)&&(ww(t)?n=Iw:wq(t)&&(n=Iq)),Ma(this,t,r),n&&n(t),this}}));var ed,Wi,td});var Aw=h(()=>{"use strict";Sw()});var Cw=h((o8,xw)=>{"use strict";Ea();Hu();Aw();var Sq=Dt();xw.exports=Sq.WeakMap});var Ow=h((a8,Tw)=>{"use strict";Tw.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}});var rd=h(()=>{"use strict";Ea();var Aq=Ow(),xq=fe(),Cq=Gi(),Pw=$r();for(qa in Aq)Cq(xq[qa],qa),Pw[qa]=Pw.Array;var qa});var Nw=h((c8,Rw)=>{"use strict";var Tq=Cw();rd();Rw.exports=Tq});var Lw=h((u8,Dw)=>{Dw.exports=Nw()});var qw=h(()=>{"use strict";var Oq=Z(),Pq=bi(),Rq=Tu().indexOf,Nq=Pi(),nd=Pq([].indexOf),Mw=!!nd&&1/nd([1],1,-0)<0,Dq=Mw||!Nq("indexOf");Oq({target:"Array",proto:!0,forced:Dq},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return Mw?nd(this,t,r)||0:Rq(this,t,r)}})});var Fw=h((f8,Uw)=>{"use strict";qw();var Lq=_t();Uw.exports=Lq("Array","indexOf")});var Jw=h((h8,jw)=>{"use strict";var Mq=Ye(),qq=Fw(),id=Array.prototype;jw.exports=function(e){var t=e.indexOf;return e===id||Mq(id,e)&&t===id.indexOf?qq:t}});var Bw=h((m8,Gw)=>{"use strict";var Uq=Jw();Gw.exports=Uq});var Vw=h((v8,Hw)=>{Hw.exports=Bw()});var $w=h(()=>{"use strict";var Fq=Z(),jq=yr().map,Jq=Oi(),Gq=Jq("map");Fq({target:"Array",proto:!0,forced:!Gq},{map:function(t){return jq(this,t,arguments.length>1?arguments[1]:void 0)}})});var zw=h((_8,Ww)=>{"use strict";$w();var Bq=_t();Ww.exports=Bq("Array","map")});var Yw=h((b8,Kw)=>{"use strict";var Hq=Ye(),Vq=zw(),od=Array.prototype;Kw.exports=function(e){var t=e.map;return e===od||Hq(od,e)&&t===od.map?Vq:t}});var Xw=h((w8,Qw)=>{"use strict";var $q=Yw();Qw.exports=$q});var e0=h((I8,Zw)=>{Zw.exports=Xw()});var t0=h(()=>{"use strict";var Wq=Z(),zq=Qe(),Kq=Ji();Wq({target:"Object",stat:!0,sham:!zq},{create:Kq})});var n0=h((S8,r0)=>{"use strict";t0();var Yq=Dt(),Qq=Yq.Object;r0.exports=function(t,r){return Qq.create(t,r)}});var o0=h((A8,i0)=>{"use strict";var Xq=n0();i0.exports=Xq});var s0=h((x8,a0)=>{a0.exports=o0()});var ad=h((C8,l0)=>{"use strict";var Zq=Qt();l0.exports=function(e,t,r){return Zq.f(e,t,r)}});var d0=h((T8,u0)=>{"use strict";var eU=dn(),tU=ad(),rU=Ge(),nU=Qe(),c0=rU("species");u0.exports=function(e){var t=eU(e);nU&&t&&!t[c0]&&tU(t,c0,{configurable:!0,get:function(){return this}})}});var y0=h((O8,g0)=>{"use strict";var p0=Ji(),iU=ad(),f0=ka(),oU=Si(),aU=Ta(),sU=Jr(),lU=Ca(),cU=ba(),Ua=wa(),uU=d0(),Ki=Qe(),h0=Vi().fastKey,v0=zr(),m0=v0.set,sd=v0.getterFor;g0.exports={getConstructor:function(e,t,r,n){var i=e(function(c,d){aU(c,o),m0(c,{type:t,index:p0(null),first:null,last:null,size:0}),Ki||(c.size=0),sU(d)||lU(d,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=sd(t),s=function(c,d,u){var p=a(c),f=l(c,d),m,g;return f?f.value=u:(p.last=f={index:g=h0(d,!0),key:d,value:u,previous:m=p.last,next:null,removed:!1},p.first||(p.first=f),m&&(m.next=f),Ki?p.size++:c.size++,g!=="F"&&(p.index[g]=f)),c},l=function(c,d){var u=a(c),p=h0(d),f;if(p!=="F")return u.index[p];for(f=u.first;f;f=f.next)if(f.key===d)return f};return f0(o,{clear:function(){for(var d=this,u=a(d),p=u.first;p;)p.removed=!0,p.previous&&(p.previous=p.previous.next=null),p=p.next;u.first=u.last=null,u.index=p0(null),Ki?u.size=0:d.size=0},delete:function(c){var d=this,u=a(d),p=l(d,c);if(p){var f=p.next,m=p.previous;delete u.index[p.index],p.removed=!0,m&&(m.next=f),f&&(f.previous=m),u.first===p&&(u.first=f),u.last===p&&(u.last=m),Ki?u.size--:d.size--}return!!p},forEach:function(d){for(var u=a(this),p=oU(d,arguments.length>1?arguments[1]:void 0),f;f=f?f.next:u.first;)for(p(f.value,f.key,this);f&&f.removed;)f=f.previous},has:function(d){return!!l(this,d)}}),f0(o,r?{get:function(d){var u=l(this,d);return u&&u.value},set:function(d,u){return s(this,d===0?0:d,u)}}:{add:function(d){return s(this,d=d===0?0:d,d)}}),Ki&&iU(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=sd(t),o=sd(n);cU(e,t,function(a,s){m0(this,{type:n,target:a,state:i(a),kind:s,last:null})},function(){for(var a=o(this),s=a.kind,l=a.last;l&&l.removed;)l=l.previous;return!a.target||!(a.last=l=l?l.next:a.state.first)?(a.target=null,Ua(void 0,!0)):Ua(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},r?"entries":"values",!r,!0),uU(t)}}});var _0=h(()=>{"use strict";var dU=Qu(),pU=y0();dU("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},pU)});var b0=h(()=>{"use strict";_0()});var _r=h((L8,w0)=>{"use strict";var fU=Ii(),hU=TypeError;w0.exports=function(e){if(typeof e=="object"&&"size"in e&&"has"in e&&"add"in e&&"delete"in e&&"keys"in e)return e;throw new hU(fU(e)+" is not a set")}});var E0=h((M8,I0)=>{"use strict";I0.exports=function(e,t){return t===1?function(r,n){return r[e](n)}:function(r,n,i){return r[e](n,i)}}});var br=h((q8,S0)=>{"use strict";var mU=dn(),ld=E0(),k0=mU("Set"),vU=k0.prototype;S0.exports={Set:k0,add:ld("add",1),has:ld("has",1),remove:ld("delete",1),proto:vU}});var wr=h((U8,A0)=>{"use strict";var gU=Et();A0.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,o,a;!(o=gU(i,n)).done;)if(a=t(o.value),a!==void 0)return a}});var En=h((F8,x0)=>{"use strict";var yU=wr();x0.exports=function(e,t,r){return r?yU(e.keys(),t,!0):e.forEach(t)}});var Fa=h((j8,T0)=>{"use strict";var C0=br(),_U=En(),bU=C0.Set,wU=C0.add;T0.exports=function(e){var t=new bU;return _U(e,function(r){wU(t,r)}),t}});var kn=h((J8,O0)=>{"use strict";O0.exports=function(e){return e.size}});var R0=h((G8,P0)=>{"use strict";P0.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var Ir=h((B8,U0)=>{"use strict";var N0=Br(),M0=Yt(),D0=Et(),IU=xi(),EU=R0(),L0="Invalid size",kU=RangeError,SU=TypeError,AU=Math.max,q0=function(e,t){this.set=e,this.size=AU(t,0),this.has=N0(e.has),this.keys=N0(e.keys)};q0.prototype={getIterator:function(){return EU(M0(D0(this.keys,this.set)))},includes:function(e){return D0(this.has,this.set,e)}};U0.exports=function(e){M0(e);var t=+e.size;if(t!==t)throw new SU(L0);var r=IU(t);if(r<0)throw new kU(L0);return new q0(e,r)}});var G0=h((H8,J0)=>{"use strict";var xU=_r(),j0=br(),CU=Fa(),TU=kn(),OU=Ir(),PU=En(),RU=wr(),NU=j0.has,F0=j0.remove;J0.exports=function(t){var r=xU(this),n=OU(t),i=CU(r);return TU(r)<=n.size?PU(r,function(o){n.includes(o)&&F0(i,o)}):RU(n.getIterator(),function(o){NU(r,o)&&F0(i,o)}),i}});var Er=h((V8,B0)=>{"use strict";B0.exports=function(){return!1}});var H0=h(()=>{"use strict";var DU=Z(),LU=G0(),MU=Er(),qU=!MU("difference",function(e){return e.size===0});DU({target:"Set",proto:!0,real:!0,forced:qU},{difference:LU})});var W0=h((z8,$0)=>{"use strict";var UU=_r(),cd=br(),FU=kn(),jU=Ir(),JU=En(),GU=wr(),BU=cd.Set,V0=cd.add,HU=cd.has;$0.exports=function(t){var r=UU(this),n=jU(t),i=new BU;return FU(r)>n.size?GU(n.getIterator(),function(o){HU(r,o)&&V0(i,o)}):JU(r,function(o){n.includes(o)&&V0(i,o)}),i}});var z0=h(()=>{"use strict";var VU=Z(),$U=pe(),WU=W0(),zU=Er(),KU=!zU("intersection",function(e){return e.size===2&&e.has(1)&&e.has(2)})||$U(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});VU({target:"Set",proto:!0,real:!0,forced:KU},{intersection:WU})});var Y0=h((Q8,K0)=>{"use strict";var YU=_r(),QU=br().has,XU=kn(),ZU=Ir(),eF=En(),tF=wr(),rF=Aa();K0.exports=function(t){var r=YU(this),n=ZU(t);if(XU(r)<=n.size)return eF(r,function(o){if(n.includes(o))return!1},!0)!==!1;var i=n.getIterator();return tF(i,function(o){if(QU(r,o))return rF(i,"normal",!1)})!==!1}});var Q0=h(()=>{"use strict";var nF=Z(),iF=Y0(),oF=Er(),aF=!oF("isDisjointFrom",function(e){return!e});nF({target:"Set",proto:!0,real:!0,forced:aF},{isDisjointFrom:iF})});var Z0=h((eK,X0)=>{"use strict";var sF=_r(),lF=kn(),cF=En(),uF=Ir();X0.exports=function(t){var r=sF(this),n=uF(t);return lF(r)>n.size?!1:cF(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var eI=h(()=>{"use strict";var dF=Z(),pF=Z0(),fF=Er(),hF=!fF("isSubsetOf",function(e){return e});dF({target:"Set",proto:!0,real:!0,forced:hF},{isSubsetOf:pF})});var rI=h((nK,tI)=>{"use strict";var mF=_r(),vF=br().has,gF=kn(),yF=Ir(),_F=wr(),bF=Aa();tI.exports=function(t){var r=mF(this),n=yF(t);if(gF(r)<n.size)return!1;var i=n.getIterator();return _F(i,function(o){if(!vF(r,o))return bF(i,"normal",!1)})!==!1}});var nI=h(()=>{"use strict";var wF=Z(),IF=rI(),EF=Er(),kF=!EF("isSupersetOf",function(e){return!e});wF({target:"Set",proto:!0,real:!0,forced:kF},{isSupersetOf:IF})});var oI=h((aK,iI)=>{"use strict";var SF=_r(),ud=br(),AF=Fa(),xF=Ir(),CF=wr(),TF=ud.add,OF=ud.has,PF=ud.remove;iI.exports=function(t){var r=SF(this),n=xF(t).getIterator(),i=AF(r);return CF(n,function(o){OF(r,o)?PF(i,o):TF(i,o)}),i}});var aI=h(()=>{"use strict";var RF=Z(),NF=oI(),DF=Er();RF({target:"Set",proto:!0,real:!0,forced:!DF("symmetricDifference")},{symmetricDifference:NF})});var lI=h((cK,sI)=>{"use strict";var LF=_r(),MF=br().add,qF=Fa(),UF=Ir(),FF=wr();sI.exports=function(t){var r=LF(this),n=UF(t).getIterator(),i=qF(r);return FF(n,function(o){MF(i,o)}),i}});var cI=h(()=>{"use strict";var jF=Z(),JF=lI(),GF=Er();jF({target:"Set",proto:!0,real:!0,forced:!GF("union")},{union:JF})});var Yi=h((pK,uI)=>{"use strict";var BF=yn(),HF=String;uI.exports=function(e){if(BF(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return HF(e)}});var hI=h((fK,fI)=>{"use strict";var dd=be(),VF=xi(),$F=Yi(),WF=Gr(),zF=dd("".charAt),dI=dd("".charCodeAt),KF=dd("".slice),pI=function(e){return function(t,r){var n=$F(WF(t)),i=VF(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=dI(n,i),a<55296||a>56319||i+1===o||(s=dI(n,i+1))<56320||s>57343?e?zF(n,i):a:e?KF(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};fI.exports={codeAt:pI(!1),charAt:pI(!0)}});var yI=h(()=>{"use strict";var YF=hI().charAt,QF=Yi(),vI=zr(),XF=ba(),mI=wa(),gI="String Iterator",ZF=vI.set,ej=vI.getterFor(gI);XF(String,"String",function(e){ZF(this,{type:gI,string:QF(e),index:0})},function(){var t=ej(this),r=t.string,n=t.index,i;return n>=r.length?mI(void 0,!0):(i=YF(r,n),t.index+=i.length,mI(i,!1))})});var bI=h((vK,_I)=>{"use strict";Ea();Hu();b0();H0();z0();Q0();eI();nI();aI();cI();yI();var tj=Dt();_I.exports=tj.Set});var II=h((gK,wI)=>{"use strict";var rj=bI();rd();wI.exports=rj});var kI=h((yK,EI)=>{EI.exports=II()});var AI=h(SI=>{"use strict";SI.f=Object.getOwnPropertySymbols});var OI=h((bK,TI)=>{"use strict";var xI=Qe(),nj=be(),ij=Et(),oj=pe(),pd=Ru(),aj=AI(),sj=Cc(),lj=fn(),cj=Qo(),Sn=Object.assign,CI=Object.defineProperty,uj=nj([].concat);TI.exports=!Sn||oj(function(){if(xI&&Sn({b:1},Sn(CI({},"a",{enumerable:!0,get:function(){CI(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(i){t[i]=i}),Sn({},e)[r]!==7||pd(Sn({},t)).join("")!==n})?function(t,r){for(var n=lj(t),i=arguments.length,o=1,a=aj.f,s=sj.f;i>o;)for(var l=cj(arguments[o++]),c=a?uj(pd(l),a(l)):pd(l),d=c.length,u=0,p;d>u;)p=c[u++],(!xI||ij(s,l,p))&&(n[p]=l[p]);return n}:Sn});var RI=h(()=>{"use strict";var dj=Z(),PI=OI();dj({target:"Object",stat:!0,arity:2,forced:Object.assign!==PI},{assign:PI})});var DI=h((EK,NI)=>{"use strict";RI();var pj=Dt();NI.exports=pj.Object.assign});var MI=h((kK,LI)=>{"use strict";var fj=DI();LI.exports=fj});var UI=h((SK,qI)=>{qI.exports=MI()});var fd=h((AK,FI)=>{"use strict";FI.exports=`
20
- \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var GI=h((xK,JI)=>{"use strict";var hj=be(),mj=Gr(),vj=Yi(),md=fd(),jI=hj("".replace),gj=RegExp("^["+md+"]+"),yj=RegExp("(^|[^"+md+"])["+md+"]+$"),hd=function(e){return function(t){var r=vj(mj(t));return e&1&&(r=jI(r,gj,"")),e&2&&(r=jI(r,yj,"$1")),r}};JI.exports={start:hd(1),end:hd(2),trim:hd(3)}});var $I=h((CK,VI)=>{"use strict";var _j=xu().PROPER,bj=pe(),BI=fd(),HI="\u200B\x85\u180E";VI.exports=function(e){return bj(function(){return!!BI[e]()||HI[e]()!==HI||_j&&BI[e].name!==e})}});var WI=h(()=>{"use strict";var wj=Z(),Ij=GI().trim,Ej=$I();wj({target:"String",proto:!0,forced:Ej("trim")},{trim:function(){return Ij(this)}})});var KI=h((PK,zI)=>{"use strict";WI();var kj=_t();zI.exports=kj("String","trim")});var QI=h((RK,YI)=>{"use strict";var Sj=Ye(),Aj=KI(),vd=String.prototype;YI.exports=function(e){var t=e.trim;return typeof e=="string"||e===vd||Sj(vd,e)&&t===vd.trim?Aj:t}});var ZI=h((NK,XI)=>{"use strict";var xj=QI();XI.exports=xj});var tE=h((DK,eE)=>{eE.exports=ZI()});var iE=h(()=>{"use strict";var Cj=Z(),rE=Ci(),Tj=eu(),Oj=Ce(),nE=Cu(),Pj=gn(),Rj=vr(),Nj=ou(),Dj=Ge(),Lj=Oi(),Mj=Ni(),qj=Lj("slice"),Uj=Dj("species"),gd=Array,Fj=Math.max;Cj({target:"Array",proto:!0,forced:!qj},{slice:function(t,r){var n=Rj(this),i=Pj(n),o=nE(t,i),a=nE(r===void 0?i:r,i),s,l,c;if(rE(n)&&(s=n.constructor,Tj(s)&&(s===gd||rE(s.prototype))?s=void 0:Oj(s)&&(s=s[Uj],s===null&&(s=void 0)),s===gd||s===void 0))return Mj(n,o,a);for(l=new(s===void 0?gd:s)(Fj(a-o,0)),c=0;o<a;o++,c++)o in n&&Nj(l,c,n[o]);return l.length=c,l}})});var aE=h((qK,oE)=>{"use strict";iE();var jj=_t();oE.exports=jj("Array","slice")});var lE=h((UK,sE)=>{"use strict";var Jj=Ye(),Gj=aE(),yd=Array.prototype;sE.exports=function(e){var t=e.slice;return e===yd||Jj(yd,e)&&t===yd.slice?Gj:t}});var uE=h((FK,cE)=>{"use strict";var Bj=lE();cE.exports=Bj});var pE=h((jK,dE)=>{dE.exports=uE()});var _d=A(()=>{});var hE=h((GK,fE)=>{"use strict";var Hj=Ce(),Vj=Kt(),$j=Ge(),Wj=$j("match");fE.exports=function(e){var t;return Hj(e)&&((t=e[Wj])!==void 0?!!t:Vj(e)==="RegExp")}});var vE=h((BK,mE)=>{"use strict";var zj=hE(),Kj=TypeError;mE.exports=function(e){if(zj(e))throw new Kj("The method doesn't accept regular expressions");return e}});var yE=h((HK,gE)=>{"use strict";var Yj=Ge(),Qj=Yj("match");gE.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[Qj]=!1,"/./"[e](t)}catch(n){}}return!1}});var wE=h(()=>{"use strict";var Xj=Z(),Zj=bi(),eJ=Vc().f,tJ=Qc(),_E=Yi(),rJ=vE(),nJ=Gr(),iJ=yE(),oJ=pn(),aJ=Zj("".slice),sJ=Math.min,bE=iJ("startsWith"),lJ=!oJ&&!bE&&!!function(){var e=eJ(String.prototype,"startsWith");return e&&!e.writable}();Xj({target:"String",proto:!0,forced:!lJ&&!bE},{startsWith:function(t){var r=_E(nJ(this));rJ(t);var n=tJ(sJ(arguments.length>1?arguments[1]:void 0,r.length)),i=_E(t);return aJ(r,n,n+i.length)===i}})});var EE=h((WK,IE)=>{"use strict";wE();var cJ=_t();IE.exports=cJ("String","startsWith")});var SE=h((zK,kE)=>{"use strict";var uJ=Ye(),dJ=EE(),bd=String.prototype;kE.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===bd||uJ(bd,e)&&t===bd.startsWith?dJ:t}});var xE=h((KK,AE)=>{"use strict";var pJ=SE();AE.exports=pJ});var TE=h((YK,CE)=>{CE.exports=xE()});var DE=h((QK,NE)=>{"use strict";var PE=be(),fJ=Br(),hJ=Ce(),mJ=ut(),OE=Ni(),vJ=un(),RE=Function,gJ=PE([].concat),yJ=PE([].join),wd={},_J=function(e,t,r){if(!mJ(wd,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";wd[t]=RE("C,a","return new C("+yJ(n,",")+")")}return wd[t](e,r)};NE.exports=vJ?RE.bind:function(t){var r=fJ(this),n=r.prototype,i=OE(arguments,1),o=function(){var s=gJ(i,OE(arguments));return this instanceof o?_J(r,s.length,s):r.apply(t,s)};return hJ(n)&&(o.prototype=n),o}});var ME=h(()=>{"use strict";var bJ=Z(),LE=DE();bJ({target:"Function",proto:!0,forced:Function.bind!==LE},{bind:LE})});var UE=h((e7,qE)=>{"use strict";ME();var wJ=_t();qE.exports=wJ("Function","bind")});var jE=h((t7,FE)=>{"use strict";var IJ=Ye(),EJ=UE(),Id=Function.prototype;FE.exports=function(e){var t=e.bind;return e===Id||IJ(Id,e)&&t===Id.bind?EJ:t}});var GE=h((r7,JE)=>{"use strict";var kJ=jE();JE.exports=kJ});var HE=h((n7,BE)=>{BE.exports=GE()});function is(e,t){we.__h&&we.__h(ce,e,no||t),no=0;var r=ce.__H||(ce.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Jt(e){return no=1,SJ(Rk,e)}function SJ(e,t,r){var n=is(Tn++,2);if(n.t=e,!n.__c&&(n.__=[Rk(void 0,t),function(s){var l=n.__N?n.__N[0]:n.__[0],c=n.t(l,s);l!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=ce,!ce.__f)){var i=function(s,l,c){var d;if(!n.__c.__H)return!0;var u=(0,Bd.default)(d=n.__c.__H.__).call(d,function(f){return!!f.__c});if((0,xk.default)(u).call(u,function(f){return!f.__N}))return!o||o.call(this,s,l,c);var p=n.__c.props!==s;return(0,Te.default)(u).call(u,function(f){if(f.__N){var m=f.__[0];f.__=f.__N,f.__N=void 0,m!==f.__[0]&&(p=!0)}}),o&&o.call(this,s,l,c)||p};ce.__f=!0;var o=ce.shouldComponentUpdate,a=ce.componentWillUpdate;ce.componentWillUpdate=function(s,l,c){if(this.__e){var d=o;o=void 0,i(s,l,c),o=d}a&&a.call(this,s,l,c)},ce.shouldComponentUpdate=i}return n.__N||n.__}function Yr(e,t){var r=is(Tn++,3);!we.__s&&Pk(r.__H,t)&&(r.__=e,r.u=t,ce.__H.__h.push(r))}function Zi(e){return no=5,tr(function(){return{current:e}},[])}function tr(e,t){var r=is(Tn++,7);return Pk(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function bt(e,t){return no=8,tr(function(){return e},t)}function AJ(e){var t=ce.context[e.__c],r=is(Tn++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(ce)),t.props.value):e.__}function xJ(){for(var e;e=Ok.shift();)if(e.__P&&e.__H)try{var t,r;(0,Te.default)(t=e.__H.__h).call(t,Ha),(0,Te.default)(r=e.__H.__h).call(r,Pd),e.__H.__h=[]}catch(n){e.__H.__h=[],we.__e(n,e.__v)}}function CJ(e){var t,r=function(){clearTimeout(n),XE&&cancelAnimationFrame(t),(0,jt.default)(e)},n=(0,jt.default)(r,100);XE&&(t=requestAnimationFrame(r))}function Ha(e){var t=ce,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ce=t}function Pd(e){var t=ce;e.__c=e.__(),ce=t}function Pk(e,t){return!e||e.length!==t.length||(0,Xa.default)(t).call(t,function(r,n){return r!==e[n]})}function Rk(e,t){return typeof t=="function"?t(e):t}function TJ(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Rd(){throw new Error("setTimeout has not been defined")}function Nd(){throw new Error("clearTimeout has not been defined")}function Dk(e){if(Lt===jt.default)return(0,jt.default)(e,0);if((Lt===Rd||!Lt)&&jt.default)return Lt=jt.default,(0,jt.default)(e,0);try{return Lt(e,0)}catch(t){try{return Lt.call(null,e,0)}catch(r){return Lt.call(this,e,0)}}}function OJ(e){if(Mt===clearTimeout)return clearTimeout(e);if((Mt===Nd||!Mt)&&clearTimeout)return Mt=clearTimeout,clearTimeout(e);try{return Mt(e)}catch(t){try{return Mt.call(null,e)}catch(r){return Mt.call(this,e)}}}function PJ(){!An||!Sr||(An=!1,Sr.length?er=(0,ns.default)(Sr).call(Sr,er):Va=-1,er.length&&Lk())}function Lk(){if(!An){var e=Dk(PJ);An=!0;for(var t=er.length;t;){for(Sr=er,er=[];++Va<t;)Sr&&Sr[Va].run();Va=-1,t=er.length}Sr=null,An=!1,OJ(e)}}function Mk(e,t){this.fun=e,this.array=t}function nr(){}function DJ(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function LJ(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}function FJ(e,t){return Me(e,0)^45?(((t<<2^Me(e,0))<<2^Me(e,1))<<2^Me(e,2))<<2^Me(e,3):0}function Fk(e){return(0,$d.default)(e).call(e)}function jJ(e,t){return(e=t.exec(e))?e[0]:e}function Y(e,t,r){return e.replace(t,r)}function Dd(e,t){return(0,rr.default)(e).call(e,t)}function Me(e,t){return e.charCodeAt(t)|0}function io(e,t,r){return(0,Wd.default)(e).call(e,t,r)}function qt(e){return e.length}function Qd(e){return e.length}function ja(e,t){return t.push(e),e}function JJ(e,t){return(0,ro.default)(e).call(e,t).join("")}function ss(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:as,column:On,length:a,return:""}}function Qi(e,t){return UJ(ss("",null,null,"",null,null,0),e,{length:-e.length},t)}function GJ(){return Ie}function BJ(){return Ie=tt>0?Me(Rn,--tt):0,On--,Ie===10&&(On=1,as--),Ie}function dt(){return Ie=tt<jk?Me(Rn,tt++):0,On++,Ie===10&&(On=1,as++),Ie}function Gt(){return Me(Rn,tt)}function $a(){return tt}function uo(e,t){return io(Rn,e,t)}function oo(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Jk(e){return as=On=1,jk=qt(Rn=e),tt=0,[]}function Gk(e){return Rn="",e}function Wa(e){return Fk(uo(tt-1,Ld(e===91?e+2:e===40?e+1:e)))}function HJ(e){for(;(Ie=Gt())&&Ie<33;)dt();return oo(e)>2||oo(Ie)>3?"":" "}function VJ(e,t){for(;--t&&dt()&&!(Ie<48||Ie>102||Ie>57&&Ie<65||Ie>70&&Ie<97););return uo(e,$a()+(t<6&&Gt()==32&&dt()==32))}function Ld(e){for(;dt();)switch(Ie){case e:return tt;case 34:case 39:e!==34&&e!==39&&Ld(Ie);break;case 40:e===41&&Ld(e);break;case 92:dt();break}return tt}function $J(e,t){for(;dt()&&e+Ie!==57&&!(e+Ie===84&&Gt()===47););return"/*"+uo(t,tt-1)+"*"+os(e===47?e:dt())}function WJ(e){for(;!oo(Gt());)dt();return uo(e,tt)}function zJ(e){return Gk(za("",null,null,null,[""],e=Jk(e),0,[0],e))}function za(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,g=1,y=1,v=1,b=0,k="",x=i,P=o,C=n,S=k;y;)switch(m=b,b=dt()){case 40:if(m!=108&&Me(S,u-1)==58){Dd(S+=Y(Wa(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:S+=Wa(b);break;case 9:case 10:case 13:case 32:S+=HJ(m);break;case 92:S+=VJ($a()-1,7);continue;case 47:switch(Gt()){case 42:case 47:ja(KJ($J(dt(),$a()),t,r),l);break;default:S+="/"}break;case 123*g:s[c++]=qt(S)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+d:f>0&&qt(S)-u&&ja(f>32?ek(S+";",n,r,u-1):ek(Y(S," ","")+";",n,r,u-2),l);break;case 59:S+=";";default:if(ja(C=ZE(S,t,r,c,d,i,s,k,x=[],P=[],u),o),b===123)if(d===0)za(S,t,C,C,x,o,u,s,P);else switch(p===99&&Me(S,3)===110?100:p){case 100:case 109:case 115:za(e,C,C,n&&ja(ZE(e,C,C,0,0,i,s,k,i,x=[],u),P),i,P,u,s,n?x:P);break;default:za(S,C,C,C,[""],P,0,s,P)}}c=d=f=0,g=v=1,k=S="",u=a;break;case 58:u=1+qt(S),f=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&BJ()==125)continue}switch(S+=os(b),b*g){case 38:v=d>0?1:(S+="\f",-1);break;case 44:s[c++]=(qt(S)-1)*v,v=1;break;case 64:Gt()===45&&(S+=Wa(dt())),p=Gt(),d=u=qt(k=S+=WJ($a())),b++;break;case 45:m===45&&qt(S)==2&&(g=0)}}return o}function ZE(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=Qd(p),m=0,g=0,y=0;m<n;++m)for(var v=0,b=io(e,u+1,u=qJ(g=a[m])),k=e;v<f;++v)(k=Fk(g>0?p[v]+" "+b:Y(b,/&\f/g,p[v])))&&(l[y++]=k);return ss(e,t,r,i===0?Kd:s,l,c,d)}function KJ(e,t,r){return ss(e,t,r,zd,os(GJ()),io(e,2,-2),0)}function ek(e,t,r,n){return ss(e,t,r,Yd,io(e,0,n),io(e,n+1,-1),n)}function xn(e,t){for(var r="",n=Qd(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function YJ(e,t,r,n){switch(e.type){case MJ:case Yd:return e.return=e.return||e.value;case zd:return"";case Uk:return e.return=e.value+"{"+xn(e.children,n)+"}";case Kd:e.value=e.props.join(",")}return qt(r=xn(e.children,n))?e.return=e.value+"{"+r+"}":""}function QJ(e){var t=Qd(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function XJ(e){return function(t){t.root||(t=t.return)&&e(t)}}function Hk(e,t){switch(FJ(e,t)){case 5103:return H+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return H+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return H+e+es+e+Be+e+e;case 6828:case 4268:return H+e+Be+e+e;case 6165:return H+e+Be+"flex-"+e+e;case 5187:return H+e+Y(e,/(\w+).+(:[^]+)/,H+"box-$1$2"+Be+"flex-$1$2")+e;case 5443:return H+e+Be+"flex-item-"+Y(e,/flex-|-self/,"")+e;case 4675:return H+e+Be+"flex-line-pack"+Y(e,/align-content|flex-|-self/,"")+e;case 5548:return H+e+Be+Y(e,"shrink","negative")+e;case 5292:return H+e+Be+Y(e,"basis","preferred-size")+e;case 6060:return H+"box-"+Y(e,"-grow","")+H+e+Be+Y(e,"grow","positive")+e;case 4554:return H+Y(e,/([^-])(transform)/g,"$1"+H+"$2")+e;case 6187:return Y(Y(Y(e,/(zoom-|grab)/,H+"$1"),/(image-set)/,H+"$1"),e,"")+e;case 5495:case 3959:return Y(e,/(image-set\([^]*)/,H+"$1$`$1");case 4968:return Y(Y(e,/(.+:)(flex-)?(.*)/,H+"box-pack:$3"+Be+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+H+e+e;case 4095:case 3583:case 4068:case 2532:return Y(e,/(.+)-inline(.+)/,H+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(qt(e)-1-t>6)switch(Me(e,t+1)){case 109:if(Me(e,t+4)!==45)break;case 102:return Y(e,/(.+:)(.+)-([^]+)/,"$1"+H+"$2-$3$1"+es+(Me(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Dd(e,"stretch")?Hk(Y(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Me(e,t+1)!==115)break;case 6444:switch(Me(e,qt(e)-3-(~Dd(e,"!important")&&10))){case 107:return Y(e,":",":"+H)+e;case 101:return Y(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+H+(Me(e,14)===45?"inline-":"")+"box$3$1"+H+"$2$3$1"+Be+"$2box$3")+e}break;case 5936:switch(Me(e,t+11)){case 114:return H+e+Be+Y(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return H+e+Be+Y(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return H+e+Be+Y(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return H+e+Be+e+e}return e}function $k(){if(nk)return Ja.exports;nk=1;let e=$k();return Ja.exports={default:e},Ja.exports.default=e,Ja.exports}function ao(e,t,r){var n,i="";return(0,Te.default)(n=r.split(" ")).call(n,function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}function p2(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function h2(e){var t=(0,Ck.default)(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function so(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return Ut={name:i.name,styles:i.styles,next:Ut},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Ut={name:a.name,styles:a.styles,next:Ut},a=a.next;var s=o.styles+";";return s}return g2(e,t,r)}case"function":{if(e!==void 0){var l=Ut,c=r(e);return Ut=l,so(e,t,c)}break}}var d=r;if(t==null)return d;var u=t[d];return u!==void 0?u:d}function g2(e,t,r){var n="";if((0,to.default)(r))for(var i=0;i<r.length;i++)n+=so(e,t,r[i])+";";else for(var o in r){var a=r[o];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=o+"{"+t[s]+"}":ik(s)&&(n+=kd(o)+":"+ok(o,s)+";")}else if((0,to.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)ik(a[l])&&(n+=kd(o)+":"+ok(o,a[l])+";");else{var c=so(e,t,a);switch(o){case"animation":case"animationName":{n+=kd(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function Ar(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";Ut=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=so(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=so(r,t,e[s]),n){var l=o;i+=l[s]}ak.lastIndex=0;for(var c="",d;(d=ak.exec(i))!==null;)c+="-"+d[1];var u=p2(i)+c;return{name:u,styles:i,next:Ut}}function D(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ar(t)}function C2(e,t,r){var n=[],i=ao(e,n,r);return n.length<2?r:i+t(n)}function _(e,t,r,n,i,o){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var c={type:e,props:l,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--P2,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return N.vnode&&N.vnode(c),c}function po(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=Jt(e());return Yr(()=>{let n=()=>{r(e())};return window.addEventListener("resize",n),"onorientationchange"in window&&window.addEventListener("orientationchange",n),n(),()=>{window.removeEventListener("resize",n),"onorientationchange"in window&&window.removeEventListener("orientationchange",n)}},[]),t}function KG(e){if(!e||e==="none")return"";let t=e.match(/^matrix\(([^)]+)\)$/);if(!t)return"";let r=t[1].split(",").map(Number);if(r.length<6)return"";let[n,i]=r,o=-Math.atan2(i,n)*(180/Math.PI),a=Math.round(o);return a===90?"rotateZ(90deg) translateY(-100vw)":a===-90||a===270?"rotateZ(-90deg) translateX(-100vh)":a===180||a===-180?"rotateZ(180deg) translate(-100vw, -100vh)":`rotateZ(${a}deg)`}function nS(e){let t=window.getComputedStyle(document.body).transform,r="";t&&t!=="none"&&(r=KG(t)),e.style.transform=r,e.style.transformOrigin="0 0"}function YG(e){let t=()=>nS(e);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}}function ZG(s){var l=s,{elementTag:e="Image",src:t="",children:r,handleExposure:n,className:i,imgStyle:o}=l,a=je(l,["elementTag","src","children","handleExposure","className","imgStyle"]);let c=XG(()=>{t&&n()});return e==="Image"?_("div",{className:i,style:{borderRadius:"8px"},children:Je("img",F(T({},a),{ref:c,src:t!=null?t:"",style:T({display:"block",width:"100%",height:"auto",objectFit:"cover",maxWidth:"100%",maxHeight:"100%",aspectRatio:"1 / 1",borderRadius:"8px"},o||{})}))}):_("div",F(T({},a),{ref:c,className:i,children:r}))}function eB(e,t){if(!e)return null;let r=Array.isArray(t)?t[0]:t,n=Array.isArray(t)?t[1]:0;return Array.isArray(e)?e.map((i,o)=>i&&typeof i=="object"&&"type"in i?Je(i.type,F(T({},i.props),{style:F(T({},i.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0}),key:i.key||o})):i):e&&typeof e=="object"&&"type"in e?Je(e.type,F(T({},e.props),{style:F(T({},e.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0})})):e}function oB(e,t){let r=t.split("."),n=e;for(let i of r){if(typeof n!="object"||n===null||!Object.prototype.hasOwnProperty.call(n,i))return;n=n[i]}return n}function yk(e,t,r){return cs.call(t,"css")?_(tp,Qk(e,t),r):_(e,t,r)}function dB(e,t,r){return cs.call(t,"css")?_(tp,Qk(e,t),r):_(e,t,r)}function jd({children:e,values:t={},style:r}){let n=e.split(/({{\s*\w+\s*}})/g);return _("div",{style:r,children:n.map((i,o)=>{let a=i.match(/^{{\s*(\w+)\s*}}$/);if(a){let s=a[1];return t[s]!==void 0?_(De,{children:t[s]},o):null}return _(De,{children:i},o)})})}function hB({src:e,alt:t="",width:r=120,height:n=120,top:i="-60px",style:o={}}){let[a,s]=Jt(!1);return a?null:_("div",{style:T({position:"absolute",top:i,left:"50%",transform:"translateX(-50%)",zIndex:10,width:r,height:n},o),children:_("img",{src:e,alt:t,width:r,height:n,style:{display:"block",width:"100%",height:"100%",objectFit:"contain"},onError:()=>s(!0)})})}function gB({children:e,style:t}){return _("div",{style:`${mB.styles} ${t}`,children:[e,_("svg",{style:`${vB.styles} `,width:"18",height:"10",viewBox:"0 0 18 10",children:[_("polygon",{points:"9,10 0,1 18,1",fill:"#ffffff52"}),_("polygon",{points:"9,9 2,1 16,1",fill:"#4F396D"})]})]})}function RB(e,t){return qe(e,0)^45?(((t<<2^qe(e,0))<<2^qe(e,1))<<2^qe(e,2))<<2^qe(e,3):0}function gS(e){return(0,$d.default)(e).call(e)}function NB(e,t){return(e=t.exec(e))?e[0]:e}function $(e,t,r){return e.replace(t,r)}function Jd(e,t){return(0,rr.default)(e).call(e,t)}function qe(e,t){return e.charCodeAt(t)|0}function lo(e,t,r){return(0,Wd.default)(e).call(e,t,r)}function Ft(e){return e.length}function ap(e){return e.length}function Ba(e,t){return t.push(e),e}function DB(e,t){return(0,ro.default)(e).call(e,t).join("")}function ms(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:hs,column:Pn,length:a,return:""}}function Xi(e,t){return PB(ms("",null,null,"",null,null,0),e,{length:-e.length},t)}function LB(){return Ee}function MB(){return Ee=rt>0?qe(Dn,--rt):0,Pn--,Ee===10&&(Pn=1,hs--),Ee}function pt(){return Ee=rt<yS?qe(Dn,rt++):0,Pn++,Ee===10&&(Pn=1,hs++),Ee}function Bt(){return qe(Dn,rt)}function Ka(){return rt}function fo(e,t){return lo(Dn,e,t)}function co(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function _S(e){return hs=Pn=1,yS=Ft(Dn=e),rt=0,[]}function bS(e){return Dn="",e}function Ya(e){return gS(fo(rt-1,Gd(e===91?e+2:e===40?e+1:e)))}function qB(e){for(;(Ee=Bt())&&Ee<33;)pt();return co(e)>2||co(Ee)>3?"":" "}function UB(e,t){for(;--t&&pt()&&!(Ee<48||Ee>102||Ee>57&&Ee<65||Ee>70&&Ee<97););return fo(e,Ka()+(t<6&&Bt()==32&&pt()==32))}function Gd(e){for(;pt();)switch(Ee){case e:return rt;case 34:case 39:e!==34&&e!==39&&Gd(Ee);break;case 40:e===41&&Gd(e);break;case 92:pt();break}return rt}function FB(e,t){for(;pt()&&e+Ee!==57&&!(e+Ee===84&&Bt()===47););return"/*"+fo(t,rt-1)+"*"+fs(e===47?e:pt())}function jB(e){for(;!co(Bt());)pt();return fo(e,rt)}function JB(e){return bS(Qa("",null,null,null,[""],e=_S(e),0,[0],e))}function Qa(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,g=1,y=1,v=1,b=0,k="",x=i,P=o,C=n,S=k;y;)switch(m=b,b=pt()){case 40:if(m!=108&&qe(S,u-1)==58){Jd(S+=$(Ya(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:S+=Ya(b);break;case 9:case 10:case 13:case 32:S+=qB(m);break;case 92:S+=UB(Ka()-1,7);continue;case 47:switch(Bt()){case 42:case 47:Ba(GB(FB(pt(),Ka()),t,r),l);break;default:S+="/"}break;case 123*g:s[c++]=Ft(S)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+d:v==-1&&(S=$(S,/\f/g,"")),f>0&&Ft(S)-u&&Ba(f>32?bk(S+";",n,r,u-1):bk($(S," ","")+";",n,r,u-2),l);break;case 59:S+=";";default:if(Ba(C=_k(S,t,r,c,d,i,s,k,x=[],P=[],u),o),b===123)if(d===0)Qa(S,t,C,C,x,o,u,s,P);else switch(p===99&&qe(S,3)===110?100:p){case 100:case 108:case 109:case 115:Qa(e,C,C,n&&Ba(_k(e,C,C,0,0,i,s,k,i,x=[],u),P),i,P,u,s,n?x:P);break;default:Qa(S,C,C,C,[""],P,0,s,P)}}c=d=f=0,g=v=1,k=S="",u=a;break;case 58:u=1+Ft(S),f=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&MB()==125)continue}switch(S+=fs(b),b*g){case 38:v=d>0?1:(S+="\f",-1);break;case 44:s[c++]=(Ft(S)-1)*v,v=1;break;case 64:Bt()===45&&(S+=Ya(pt())),p=Bt(),d=u=Ft(k=S+=jB(Ka())),b++;break;case 45:m===45&&Ft(S)==2&&(g=0)}}return o}function _k(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=ap(p),m=0,g=0,y=0;m<n;++m)for(var v=0,b=lo(e,u+1,u=OB(g=a[m])),k=e;v<f;++v)(k=gS(g>0?p[v]+" "+b:$(b,/&\f/g,p[v])))&&(l[y++]=k);return ms(e,t,r,i===0?ip:s,l,c,d)}function GB(e,t,r){return ms(e,t,r,mS,fs(LB()),lo(e,2,-2),0)}function bk(e,t,r,n){return ms(e,t,r,op,lo(e,0,n),lo(e,n+1,-1),n)}function Cn(e,t){for(var r="",n=ap(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function BB(e,t,r,n){switch(e.type){case TB:if(e.children.length)break;case CB:case op:return e.return=e.return||e.value;case mS:return"";case vS:return e.return=e.value+"{"+Cn(e.children,n)+"}";case ip:e.value=e.props.join(",")}return Ft(r=Cn(e.children,n))?e.return=e.value+"{"+r+"}":""}function HB(e){var t=ap(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function VB(e){return function(t){t.root||(t=t.return)&&e(t)}}function wS(e,t){switch(RB(e,t)){case 5103:return V+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return V+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return V+e+rs+e+He+e+e;case 6828:case 4268:return V+e+He+e+e;case 6165:return V+e+He+"flex-"+e+e;case 5187:return V+e+$(e,/(\w+).+(:[^]+)/,V+"box-$1$2"+He+"flex-$1$2")+e;case 5443:return V+e+He+"flex-item-"+$(e,/flex-|-self/,"")+e;case 4675:return V+e+He+"flex-line-pack"+$(e,/align-content|flex-|-self/,"")+e;case 5548:return V+e+He+$(e,"shrink","negative")+e;case 5292:return V+e+He+$(e,"basis","preferred-size")+e;case 6060:return V+"box-"+$(e,"-grow","")+V+e+He+$(e,"grow","positive")+e;case 4554:return V+$(e,/([^-])(transform)/g,"$1"+V+"$2")+e;case 6187:return $($($(e,/(zoom-|grab)/,V+"$1"),/(image-set)/,V+"$1"),e,"")+e;case 5495:case 3959:return $(e,/(image-set\([^]*)/,V+"$1$`$1");case 4968:return $($(e,/(.+:)(flex-)?(.*)/,V+"box-pack:$3"+He+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+V+e+e;case 4095:case 3583:case 4068:case 2532:return $(e,/(.+)-inline(.+)/,V+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ft(e)-1-t>6)switch(qe(e,t+1)){case 109:if(qe(e,t+4)!==45)break;case 102:return $(e,/(.+:)(.+)-([^]+)/,"$1"+V+"$2-$3$1"+rs+(qe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Jd(e,"stretch")?wS($(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(qe(e,t+1)!==115)break;case 6444:switch(qe(e,Ft(e)-3-(~Jd(e,"!important")&&10))){case 107:return $(e,":",":"+V)+e;case 101:return $(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+V+(qe(e,14)===45?"inline-":"")+"box$3$1"+V+"$2$3$1"+He+"$2box$3")+e}break;case 5936:switch(qe(e,t+11)){case 114:return V+e+He+$(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return V+e+He+$(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return V+e+He+$(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return V+e+He+e+e}return e}function Ik(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Td(e,t,r){var n=[],i=ao(e,n,r);return n.length<2?r:i+t(n)}function Sk(e){if(e==="top"){let t=0;IS.forEach((r,n)=>{let i=r.querySelector(".toast");i&&(n===0?i.style.top=`max(${Ek}px, env(safe-area-inset-top))`:i.style.top=`calc(max(${Ek}px, env(safe-area-inset-top)) + ${t}px)`,t+=i.offsetHeight+kk)})}else if(e==="center"){let t=0;ES.forEach(r=>{let n=r.querySelector(".toast");n&&(n.style.top=`calc(50% + ${t}px)`,t+=n.offsetHeight+kk)})}}function ho(){let e=!1,t=null,r=0,n=new Set,i=a=>w(this,null,function*(){let s=e;if(r++,e=!0,!s)try{let{iframe:l}=yield eo.acquire(),c=l.contentDocument;if(c)t=c.createElement("div"),t.id="loading-root",c.body.appendChild(t),mr(_(l5,{}),t);else throw new Error("Iframe document is not available.")}catch(l){console.error("[LoadingManager] Failed to show loading:",l),r=0,e=!1,eo.release();return}if(a!=null&&a.duration&&typeof a.duration=="number"){let l=setTimeout(()=>{o(),n.delete(l)},a.duration);n.add(l)}}),o=()=>{var a;e&&(r--,r<=0&&(r=0,e=!1,n.forEach(s=>clearTimeout(s)),n.clear(),t&&(mr(null,t),(a=t.parentNode)==null||a.removeChild(t),t=null),eo.release()))};return{show:i,hide:o,get isLoading(){return e}}}var Bd,xk,Te,ns,Xa,jt,Za,to,Hd,rr,ro,Ck,Tk,Vd,$d,Wd,l7,Od,Tn,ce,Ed,VE,no,Ok,we,$E,WE,zE,KE,YE,QE,XE,Nk,ve,Lt,Mt,er,An,Sr,Va,RJ,Oe,NJ,qk,Be,es,H,zd,Kd,Yd,MJ,Uk,qJ,os,UJ,as,On,jk,tt,Ie,Rn,ZJ,e2,t2,tk,r2,n2,i2,o2,a2,Bk,s2,rk,l2,c2,u2,Vk,Ja,nk,d2,Xd,ls,f2,m2,v2,Wk,ik,kd,ok,ak,Ut,y2,zk,Kk,sk,cs,Zd,Yk,ep,us,_2,b2,w2,I2,E2,Md,qd,Qk,k2,tp,S2,lk,A2,x2,T2,O2,Sd,ck,Ad,xd,P2,Cd,R2,N2,D2,L2,M2,q2,U2,uk,F2,j2,J2,dk,G2,B2,H2,pk,V2,$2,W2,fk,z2,K2,Y2,Q2,X2,Z2,eG,tG,rG,nG,iG,hk,oG,aG,sG,lG,cG,uG,dG,pG,fG,hG,mG,mk,vG,gG,yG,_G,bG,wG,IG,EG,kG,SG,AG,xG,CG,TG,OG,PG,RG,NG,DG,LG,MG,qG,UG,FG,jG,JG,GG,BG,HG,VG,$G,WG,Xk,Zk,eS,Ud,zG,tS,rS,ts,eo,vk,QG,ds,XG,iS,oS,aS,tB,rB,nB,Fd,iB,sS,lS,ps,rp,Nn,gk,kr,cS,Kr,aB,sB,lB,cB,uB,Ga,uS,np,he,pB,fB,mB,vB,At,yB,_B,dS,pS,fS,hS,xr,bB,wB,IB,EB,kB,SB,AB,xB,He,rs,V,mS,ip,op,CB,vS,TB,OB,fs,PB,hs,Pn,yS,rt,Ee,Dn,$B,WB,zB,wk,KB,YB,QB,XB,ZB,e5,t5,r5,n5,i5,o5,a5,Ek,kk,IS,ES,Cr,Ak,s5,l5,c7,ir=A(()=>{"use strict";cn();Bd=ie(gg(),1),xk=ie(xg(),1),Te=ie(jg(),1),ns=ie(ty(),1),Xa=ie(uy(),1),jt=ie(Cy(),1);ua();ua();Za=ie(p_(),1),to=ie(__(),1),Hd=ie(Lw(),1),rr=ie(Vw(),1),ro=ie(e0(),1),Ck=ie(s0(),1),Tk=ie(kI(),1),Vd=ie(UI(),1),$d=ie(tE(),1),Wd=ie(pE(),1);_d();_d();l7=ie(TE(),1),Od=ie(HE(),1),no=0,Ok=[],we=N,$E=we.__b,WE=we.__r,zE=we.diffed,KE=we.__c,YE=we.unmount,QE=we.__;we.__b=function(e){ce=null,$E&&$E(e)},we.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),QE&&QE(e,t)},we.__r=function(e){var t,r,n;WE&&WE(e),Tn=0;var i=(ce=e.__c).__H;i&&(Ed===ce?(i.__h=[],ce.__h=[],(0,Te.default)(t=i.__).call(t,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,Te.default)(r=i.__h).call(r,Ha),(0,Te.default)(n=i.__h).call(n,Pd),i.__h=[],Tn=0)),Ed=ce},we.diffed=function(e){var t;zE&&zE(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(Ok.push(r)!==1&&VE===we.requestAnimationFrame||((VE=we.requestAnimationFrame)||CJ)(xJ)),(0,Te.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),Ed=ce=null},we.__c=function(e,t){(0,Xa.default)(t).call(t,function(r){try{var n,i;(0,Te.default)(n=r.__h).call(n,Ha),r.__h=(0,Bd.default)(i=r.__h).call(i,function(o){return!o.__||Pd(o)})}catch(o){(0,Xa.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],we.__e(o,r.__v)}}),KE&&KE(e,t)},we.unmount=function(e){var t;YE&&YE(e);var r,n=e.__c;n&&n.__H&&((0,Te.default)(t=n.__H.__).call(t,function(i){try{Ha(i)}catch(o){r=o}}),n.__H=void 0,r&&we.__e(r,n.__v))};XE=typeof requestAnimationFrame=="function";Nk={exports:{}},ve=Nk.exports={};(function(){try{typeof jt.default=="function"?Lt=jt.default:Lt=Rd}catch(e){Lt=Rd}try{typeof clearTimeout=="function"?Mt=clearTimeout:Mt=Nd}catch(e){Mt=Nd}})();er=[],An=!1,Va=-1;ve.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];er.push(new Mk(e,t)),er.length===1&&!An&&Dk(Lk)};Mk.prototype.run=function(){this.fun.apply(null,this.array)};ve.title="browser";ve.browser=!0;ve.env={};ve.argv=[];ve.version="";ve.versions={};ve.on=nr;ve.addListener=nr;ve.once=nr;ve.off=nr;ve.removeListener=nr;ve.removeAllListeners=nr;ve.emit=nr;ve.prependListener=nr;ve.prependOnceListener=nr;ve.listeners=function(e){return[]};ve.binding=function(e){throw new Error("process.binding is not supported")};ve.cwd=function(){return"/"};ve.chdir=function(e){throw new Error("process.chdir is not supported")};ve.umask=function(){return 0};RJ=Nk.exports,Oe=TJ(RJ),NJ=Za.default||void 0||self;qk=function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){(0,Te.default)(r).call(r,this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(LJ(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=DJ(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){var r;(0,Te.default)(r=this.tags).call(r,function(n){var i;return(i=n.parentNode)==null?void 0:i.removeChild(n)}),this.tags=[],this.ctr=0},e}(),Be="-ms-",es="-moz-",H="-webkit-",zd="comm",Kd="rule",Yd="decl",MJ="@import",Uk="@keyframes",qJ=Math.abs,os=String.fromCharCode,UJ=Vd.default;as=1,On=1,jk=0,tt=0,Ie=0,Rn="";ZJ=function(e,t,r){for(var n=0,i=0;n=i,i=Gt(),n===38&&i===12&&(t[r]=1),!oo(i);)dt();return uo(e,tt)},e2=function(e,t){var r=-1,n=44;do switch(oo(n)){case 0:n===38&&Gt()===12&&(t[r]=1),e[r]+=ZJ(tt-1,t,r);break;case 2:e[r]+=Wa(n);break;case 4:if(n===44){e[++r]=Gt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=os(n)}while(n=dt());return e},t2=function(e,t){return Gk(e2(Jk(e),t))},tk=new Hd.default,r2=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!tk.get(r))&&!n){tk.set(e,!0);for(var i=[],o=t2(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},n2=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},i2="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",o2=function(e){var t;return e.type==="comm"&&(0,rr.default)(t=e.children).call(t,i2)>-1},a2=function(e){return function(t,r,n){if(!(t.type!=="rule"||e.compat)){var i=t.value.match(/(:first|:nth|:nth-last)-child/g);if(i){for(var o=t.parent===n[0],a=o?n[0].children:n,s=a.length-1;s>=0;s--){var l=a[s];if(l.line<t.line)break;if(l.column<t.column){if(o2(l))return;break}}(0,Te.default)(i).call(i,function(c){console.error('The pseudo class "'+c+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+c.split("-child")[0]+'-of-type".')})}}}},Bk=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},s2=function(e,t){for(var r=e-1;r>=0;r--)if(!Bk(t[r]))return!0;return!1},rk=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},l2=function(e,t,r){Bk(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),rk(e)):s2(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),rk(e)))};c2=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Yd:e.return=Hk(e.value,e.length);break;case Uk:return xn([Qi(e,{value:Y(e.value,"@","@"+H)})],n);case Kd:if(e.length)return JJ(e.props,function(i){switch(jJ(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return xn([Qi(e,{props:[Y(i,/:(read-\w+)/,":"+es+"$1")]})],n);case"::placeholder":return xn([Qi(e,{props:[Y(i,/:(plac\w+)/,":"+H+"input-$1")]}),Qi(e,{props:[Y(i,/:(plac\w+)/,":"+es+"$1")]}),Qi(e,{props:[Y(i,/:(plac\w+)/,Be+"input-$1")]})],n)}return""})}},u2=[c2],Vk=function(e){var t=e.key;if(Oe.env.NODE_ENV!=="production"&&!t)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
21
- If multiple caches share the same key they might "fight" for each other's style elements.`);if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,Te.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,rr.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||u2;if(Oe.env.NODE_ENV!=="production"&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var i={},o,a=[];o=e.container||document.head,(0,Te.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),y=1;y<g.length;y++)i[g[y]]=!0;a.push(m)});var s,l=[r2,n2];Oe.env.NODE_ENV!=="production"&&l.push(a2({get compat(){return f.compat}}),l2);{var c,d=[YJ,Oe.env.NODE_ENV!=="production"?function(m){m.root||(m.return?c.insert(m.return):m.value&&m.type!==zd&&c.insert(m.value+"{}"))}:XJ(function(m){c.insert(m)})],u=QJ((0,ns.default)(l).call(l,n,d)),p=function(m){return xn(zJ(m),u)};s=function(m,g,y,v){c=y,Oe.env.NODE_ENV!=="production"&&(0,ro.default)(g)!==void 0&&(c={insert:function(b){y.insert(b+(0,ro.default)(g))}}),p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new qk({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return f.sheet.hydrate(a),f},Ja={exports:{}};$k();d2=!0;Xd=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||d2===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},ls=function(e,t,r){Xd(e,t,r);var n=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next;while(i!==void 0)}};f2={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};m2=/[A-Z]|^ms/g,v2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Wk=function(e){return e.charCodeAt(1)===45},ik=function(e){return e!=null&&typeof e!="boolean"},kd=h2(function(e){return Wk(e)?e:e.replace(m2,"-$&").toLowerCase()}),ok=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(v2,function(r,n,i){return Ut={name:n,styles:i,next:Ut},n})}return f2[e]!==1&&!Wk(e)&&typeof t=="number"&&t!==0?t+"px":t};ak=/label:\s*([^\s;{]+)\s*(;|$)/g;y2=function(e){return e()},zk=mu?mu:!1,Kk=zk||y2,sk=zk||_n,cs={}.hasOwnProperty,Zd=jr(typeof HTMLElement<"u"?Vk({key:"css"}):null);Oe.env.NODE_ENV!=="production"&&(Zd.displayName="EmotionCacheContext");Yk=Zd.Provider,ep=function(e){return gu(function(t,r){var n=wn(Zd);return e(t,n,r)})},us=jr({});Oe.env.NODE_ENV!=="production"&&(us.displayName="EmotionThemeContext");_2=function(e){var t=e.split(".");return t[t.length-1]},b2=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);if(t||(t=/^([A-Za-z0-9$.]+)@/.exec(e),t))return _2(t[1])},w2=new Tk.default(["renderWithHooks","processChild","finishClassComponent","renderToString"]),I2=function(e){return e.replace(/\$/g,"-")},E2=function(e){if(e)for(var t=e.split(`
22
- `),r=0;r<t.length;r++){var n=b2(t[r]);if(n){if(w2.has(n))break;if(/^[A-Z]/.test(n))return I2(n)}}},Md="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",qd="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Qk=function(e,t){var r,n;if(Oe.env.NODE_ENV!=="production"&&typeof t.css=="string"&&(0,rr.default)(r=t.css).call(r,":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+t.css+"`");var i={};for(var o in t)cs.call(t,o)&&(i[o]=t[o]);if(i[Md]=e,Oe.env.NODE_ENV!=="production"&&t.css&&(typeof t.css!="object"||typeof t.css.name!="string"||(0,rr.default)(n=t.css.name).call(n,"-")===-1)){var a=E2(new Error().stack);a&&(i[qd]=a)}return i},k2=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Xd(t,r,n),Kk(function(){return ls(t,r,n)}),null},tp=ep(function(e,t,r){var n,i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[Md],a=[i],s="";typeof e.className=="string"?s=ao(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var l=Ar(a,void 0,wn(us));if(Oe.env.NODE_ENV!=="production"&&(0,rr.default)(n=l.name).call(n,"-")===-1){var c=e[qd];c&&(l=Ar([l,"label:"+c+";"]))}s+=t.key+"-"+l.name;var d={};for(var u in e)cs.call(e,u)&&u!=="css"&&u!==Md&&(Oe.env.NODE_ENV==="production"||u!==qd)&&(d[u]=e[u]);return d.ref=r,d.className=s,Je(De,null,Je(k2,{cache:t,serialized:l,isStringTag:typeof o=="string"}),Je(o,d))});Oe.env.NODE_ENV!=="production"&&(tp.displayName="EmotionCssPropInternal");S2={version:"11.10.5"},lk=!1,A2=ep(function(e,t){Oe.env.NODE_ENV!=="production"&&!lk&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),lk=!0);var r=e.styles,n=Ar([r],void 0,wn(us)),i=qi();return sk(function(){var o=t.key+"-global",a=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+o+" "+n.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",o),a.hydrate([l])),i.current=[a,s],function(){a.flush()}},[t]),sk(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(n.next!==void 0&&ls(t,n.next,!0),a.tags.length){var l=a.tags[a.tags.length-1].nextElementSibling;a.before=l,a.flush()}t.insert("",n,a,!1)},[t,n.name]),null});Oe.env.NODE_ENV!=="production"&&(A2.displayName="EmotionGlobal");x2=function e(t){for(var r=t.length,n=0,i="";n<r;n++){var o=t[n];if(o!=null){var a=void 0;switch(typeof o){case"boolean":break;case"object":{if((0,to.default)(o))a=e(o);else{Oe.env.NODE_ENV!=="production"&&o.styles!==void 0&&o.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),a="";for(var s in o)o[s]&&s&&(a&&(a+=" "),a+=s)}break}default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};T2=function(e){var t=e.cache,r=e.serializedArr;return Kk(function(){for(var n=0;n<r.length;n++)ls(t,r[n],!1)}),null},O2=ep(function(e,t){var r=!1,n=[],i=function(){if(r&&Oe.env.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];var u=Ar(c,t.registered);return n.push(u),Xd(t,u,!1),t.key+"-"+u.name},o=function(){if(r&&Oe.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];return C2(t.registered,i,x2(c))},a={css:i,cx:o,theme:wn(us)},s=e.children(a);return r=!0,Je(De,null,Je(T2,{cache:t,serializedArr:n}),s)});Oe.env.NODE_ENV!=="production"&&(O2.displayName="EmotionClassNames");Oe.env.NODE_ENV!=="production"&&(Sd=!0,ck=typeof jest<"u"||typeof vi<"u",Sd&&!ck&&(Ad=typeof Za.default<"u"?Za.default:Sd?window:NJ,xd="__EMOTION_REACT_"+S2.version.split(".")[0]+"__",Ad[xd]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),Ad[xd]=!0));P2=0;Cd={drawerBackdrop:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"transparent",display:"flex",justifyContent:"center",alignItems:"flex-end",zIndex:1e3,overflow:"hidden",touchAction:"none"},drawer:{backgroundColor:"rgb(26, 26, 26)",borderRadius:"16px 16px 0 0",width:"100%",maxWidth:"100%",overflowY:"auto",position:"relative",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.1)",display:"block",margin:"0 auto"},centerDrawer:{backgroundColor:"transparent",minWidth:"320px",maxWidth:"90vw",maxHeight:"90vh",width:"auto",position:"relative",display:"block",margin:"0 auto",overflowY:"auto"}},R2=D`
19
+ `;e.textContent=s;let l=document.head||document.getElementsByTagName("head")[0];l.insertBefore(t,l.firstChild),l.insertBefore(e,l.firstChild),document.documentElement.setAttribute("data-jolibox-root","")},i=()=>{let{statusBarHeight:s,navigationBarHeight:l}=E.viewport;document.documentElement.style.setProperty("--status-bar-height",`${s}px`),document.documentElement.style.setProperty("--navigation-bar-height",`${l}px`)},o=()=>{function s(c){return w(this,null,function*(){let d=c instanceof URL?c.href:c,u=new Promise((p,f)=>{let m=new XMLHttpRequest;m.open("GET",d),m.responseType="arraybuffer",m.addEventListener("load",()=>p(m.response)),m.addEventListener("error",f),m.send()});try{let p=yield u;return new Response(p,{headers:new Headers([["Content-Type","application/wasm"]])}).clone()}catch(p){throw console.error("Failed to load wasm:",p),p}})}let l=window.fetch;window.fetch=(c,d)=>{let u=c instanceof URL?c.href:c.toString();return u.endsWith(".wasm")?s(u):l(c,d)}},a=()=>{e!=null&&e.parentNode&&(e.parentNode.removeChild(e),e=null),t!=null&&t.parentNode&&(t.parentNode.removeChild(t),t=null),document.documentElement.removeAttribute("data-jolibox-root"),document.documentElement.style.removeProperty("--status-bar-height"),window.fetch=r};return n(),o(),i(),a}var $h=S(()=>{"use strict";B()});var Wh=S(()=>{"use strict"});var zh=S(()=>{"use strict";R();ic()});var Kh=S(()=>{"use strict";B()});var Vo,vc=S(()=>{"use strict";Wh();zh();B();Kh();R();Vo=new Nt});function zt(e,t){for(var r in t)e[r]=t[r];return e}function Ic(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Je(e,t,r){var n,i,o,a={};for(o in t)o=="key"?n=t[o]:o=="ref"?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?Ko.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)a[o]===void 0&&(a[o]=e.defaultProps[o]);return Wo(e,a,n,i,null)}function Wo(e,t,r,n,i){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i==null?++Zh:i,__i:-1,__u:0};return i==null&&N.vnode!=null&&N.vnode(o),o}function De(e){return e.children}function ct(e,t){this.props=e,this.context=t}function ln(e,t){if(t==null)return e.__?ln(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?ln(e):null}function om(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return om(e)}}function _c(e){(!e.__d&&(e.__d=!0)&&Fr.push(e)&&!zo.__r++||Yh!==N.debounceRendering)&&((Yh=N.debounceRendering)||em)(zo)}function zo(){for(var e,t,r,n,i,o,a,s=1;Fr.length;)Fr.length>s&&Fr.sort(tm),e=Fr.shift(),s=Fr.length,e.__d&&(r=void 0,i=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=zt({},n)).__v=n.__v+1,N.vnode&&N.vnode(r),Ec(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?ln(n):i,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,lm(o,r,a),r.__e!=i&&om(r)));zo.__r=0}function am(e,t,r,n,i,o,a,s,l,c,d){var u,p,f,m,g,y,v=n&&n.__k||im,b=t.length;for(l=v1(r,t,v,l,b),u=0;u<b;u++)(f=r.__k[u])!=null&&(p=f.__i===-1?mi:v[f.__i]||mi,f.__i=u,y=Ec(e,f,p,i,o,a,s,l,c,d),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&kc(p.ref,null,f),d.push(f.ref,f.__c||m,f)),g==null&&m!=null&&(g=m),4&f.__u||p.__k===f.__k?l=sm(f,l,e):typeof f.type=="function"&&y!==void 0?l=y:m&&(l=m.nextSibling),f.__u&=-7);return r.__e=g,l}function v1(e,t,r,n,i){var o,a,s,l,c,d=r.length,u=d,p=0;for(e.__k=new Array(i),o=0;o<i;o++)(a=t[o])!=null&&typeof a!="boolean"&&typeof a!="function"?(l=o+p,(a=e.__k[o]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?Wo(null,a,null,null,null):gi(a)?Wo(De,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?Wo(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,s=null,(c=a.__i=g1(a,r,l,u))!==-1&&(u--,(s=r[c])&&(s.__u|=2)),s==null||s.__v===null?(c==-1&&(i>d?p--:i<d&&p++),typeof a.type!="function"&&(a.__u|=4)):c!=l&&(c==l-1?p--:c==l+1?p++:(c>l?p--:p++,a.__u|=4))):e.__k[o]=null;if(u)for(o=0;o<d;o++)(s=r[o])!=null&&!(2&s.__u)&&(s.__e==n&&(n=ln(s)),um(s,s));return n}function sm(e,t,r){var n,i;if(typeof e.type=="function"){for(n=e.__k,i=0;n&&i<n.length;i++)n[i]&&(n[i].__=e,t=sm(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=ln(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function yi(e,t){return t=t||[],e==null||typeof e=="boolean"||(gi(e)?e.some(function(r){yi(r,t)}):t.push(e)),t}function g1(e,t,r,n){var i,o,a=e.key,s=e.type,l=t[r];if(l===null&&e.key==null||l&&a==l.key&&s===l.type&&!(2&l.__u))return r;if(n>(l!=null&&!(2&l.__u)?1:0))for(i=r-1,o=r+1;i>=0||o<t.length;){if(i>=0){if((l=t[i])&&!(2&l.__u)&&a==l.key&&s===l.type)return i;i--}if(o<t.length){if((l=t[o])&&!(2&l.__u)&&a==l.key&&s===l.type)return o;o++}}return-1}function Qh(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||m1.test(t)?r:r+"px"}function $o(e,t,r,n,i){var o;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||Qh(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||Qh(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(rm,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n?r.t=n.t:(r.t=wc,e.addEventListener(t,o?yc:gc,o)):e.removeEventListener(t,o?yc:gc,o);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r==null?"":r;break e}catch(a){}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function Xh(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=wc++;else if(t.u<r.t)return;return r(N.event?N.event(t):t)}}}function Ec(e,t,r,n,i,o,a,s,l,c){var d,u,p,f,m,g,y,v,b,k,x,P,C,A,O,J,Ke,M=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(l=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=N.__b)&&d(t);e:if(typeof M=="function")try{if(v=t.props,b="prototype"in M&&M.prototype.render,k=(d=M.contextType)&&n[d.__c],x=d?k?k.props.value:d.__:n,r.__c?y=(u=t.__c=r.__c).__=u.__E:(b?t.__c=u=new M(v,x):(t.__c=u=new ct(v,x),u.constructor=M,u.render=_1),k&&k.sub(u),u.props=v,u.state||(u.state={}),u.context=x,u.__n=n,p=u.__d=!0,u.__h=[],u._sb=[]),b&&u.__s==null&&(u.__s=u.state),b&&M.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=zt({},u.__s)),zt(u.__s,M.getDerivedStateFromProps(v,u.__s))),f=u.props,m=u.state,u.__v=t,p)b&&M.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),b&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(b&&M.getDerivedStateFromProps==null&&v!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(v,x),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(v,u.__s,x)===!1||t.__v==r.__v)){for(t.__v!=r.__v&&(u.props=v,u.state=u.__s,u.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(Re){Re&&(Re.__=t)}),P=0;P<u._sb.length;P++)u.__h.push(u._sb[P]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,x),b&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,m,g)})}if(u.context=x,u.props=v,u.__P=e,u.__e=!1,C=N.__r,A=0,b){for(u.state=u.__s,u.__d=!1,C&&C(t),d=u.render(u.props,u.state,u.context),O=0;O<u._sb.length;O++)u.__h.push(u._sb[O]);u._sb=[]}else do u.__d=!1,C&&C(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++A<25);u.state=u.__s,u.getChildContext!=null&&(n=zt(zt({},n),u.getChildContext())),b&&!p&&u.getSnapshotBeforeUpdate!=null&&(g=u.getSnapshotBeforeUpdate(f,m)),J=d,d!=null&&d.type===De&&d.key==null&&(J=cm(d.props.children)),s=am(e,gi(J)?J:[J],t,r,n,i,o,a,s,l,c),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),y&&(u.__E=u.__=null)}catch(Re){if(t.__v=null,l||o!=null)if(Re.then){for(t.__u|=l?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;o[o.indexOf(s)]=null,t.__e=s}else for(Ke=o.length;Ke--;)Ic(o[Ke]);else t.__e=r.__e,t.__k=r.__k;N.__e(Re,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=y1(r.__e,t,r,n,i,o,a,l,c);return(d=N.diffed)&&d(t),128&t.__u?void 0:s}function lm(e,t,r){for(var n=0;n<r.length;n++)kc(r[n],r[++n],r[++n]);N.__c&&N.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){N.__e(o,i.__v)}})}function cm(e){return typeof e!="object"||e==null?e:gi(e)?e.map(cm):zt({},e)}function y1(e,t,r,n,i,o,a,s,l){var c,d,u,p,f,m,g,y=r.props,v=t.props,b=t.type;if(b=="svg"?i="http://www.w3.org/2000/svg":b=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(c=0;c<o.length;c++)if((f=o[c])&&"setAttribute"in f==!!b&&(b?f.localName==b:f.nodeType==3)){e=f,o[c]=null;break}}if(e==null){if(b==null)return document.createTextNode(v);e=document.createElementNS(i,b,v.is&&v),s&&(N.__m&&N.__m(t,o),s=!1),o=null}if(b===null)y===v||s&&e.data===v||(e.data=v);else{if(o=o&&Ko.call(e.childNodes),y=r.props||mi,!s&&o!=null)for(y={},c=0;c<e.attributes.length;c++)y[(f=e.attributes[c]).name]=f.value;for(c in y)if(f=y[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=f;else if(!(c in v)){if(c=="value"&&"defaultValue"in v||c=="checked"&&"defaultChecked"in v)continue;$o(e,c,null,f,i)}}for(c in v)f=v[c],c=="children"?p=f:c=="dangerouslySetInnerHTML"?d=f:c=="value"?m=f:c=="checked"?g=f:s&&typeof f!="function"||y[c]===f||$o(e,c,f,y[c],i);if(d)s||u&&(d.__html===u.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),am(t.type==="template"?e.content:e,gi(p)?p:[p],t,r,n,b=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&ln(r,0),s,l),o!=null)for(c=o.length;c--;)Ic(o[c]);s||(c="value",b=="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[c]||b=="progress"&&!m||b=="option"&&m!==y[c])&&$o(e,c,m,y[c],i),c="checked",g!==void 0&&g!==e[c]&&$o(e,c,g,y[c],i))}return e}function kc(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(i){N.__e(i,r)}}function um(e,t,r){var n,i;if(N.unmount&&N.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||kc(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){N.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&um(n[i],t,r||typeof e.type!="function");r||Ic(e.__e),e.__c=e.__=e.__e=void 0}function _1(e,t,r){return this.constructor(e,r)}function mr(e,t,r){var n,i,o,a;t==document&&(t=document.documentElement),N.__&&N.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],Ec(t,e=(!n&&r||t).__k=Je(De,null,[e]),i||mi,mi,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?Ko.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),lm(o,e,a)}function jr(e){function t(r){var n,i;return this.getChildContext||(n=new Set,(i={})[t.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&n.forEach(function(a){a.__e=!0,_c(a)})},this.sub=function(o){n.add(o);var a=o.componentWillUnmount;o.componentWillUnmount=function(){n&&n.delete(o),a&&a.call(o)}}),r.children}return t.__c="__cC"+nm++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var Ko,N,Zh,bc,Fr,Yh,em,tm,rm,wc,gc,yc,nm,mi,im,m1,gi,cn=S(()=>{mi={},im=[],m1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,gi=Array.isArray;Ko=im.slice,N={__e:function(e,t,r,n){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,n||{}),a=i.__d),a)return i.__E=i}catch(s){e=s}throw e}},Zh=0,bc=function(e){return e!=null&&e.constructor==null},ct.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=zt({},this.state),typeof e=="function"&&(e=e(zt({},r),this.props)),e&&zt(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),_c(this))},ct.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),_c(this))},ct.prototype.render=De,Fr=[],em=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,tm=function(e,t){return e.__v.__b-t.__v.__b},zo.__r=0,rm=/(PointerCapture)$|Capture$/i,wc=0,gc=Xh(!1),yc=Xh(!0),nm=0});var pe=h((U$,dm)=>{"use strict";dm.exports=function(e){try{return!!e()}catch(t){return!0}}});var un=h((F$,pm)=>{"use strict";var b1=pe();pm.exports=!b1(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var be=h((j$,mm)=>{"use strict";var fm=un(),hm=Function.prototype,Ac=hm.call,w1=fm&&hm.bind.bind(Ac,Ac);mm.exports=fm?w1:function(e){return function(){return Ac.apply(e,arguments)}}});var Ye=h((J$,vm)=>{"use strict";var I1=be();vm.exports=I1({}.isPrototypeOf)});var fe=h((Sc,gm)=>{"use strict";var _i=function(e){return e&&e.Math===Math&&e};gm.exports=_i(typeof globalThis=="object"&&globalThis)||_i(typeof window=="object"&&window)||_i(typeof self=="object"&&self)||_i(typeof global=="object"&&global)||_i(typeof Sc=="object"&&Sc)||function(){return this}()||Function("return this")()});var xc=h((G$,wm)=>{"use strict";var E1=un(),bm=Function.prototype,ym=bm.apply,_m=bm.call;wm.exports=typeof Reflect=="object"&&Reflect.apply||(E1?_m.bind(ym):function(){return _m.apply(ym,arguments)})});var Kt=h((B$,Em)=>{"use strict";var Im=be(),k1=Im({}.toString),A1=Im("".slice);Em.exports=function(e){return A1(k1(e),8,-1)}});var bi=h((H$,km)=>{"use strict";var S1=Kt(),x1=be();km.exports=function(e){if(S1(e)==="Function")return x1(e)}});var Le=h((V$,Am)=>{"use strict";var Cc=typeof document=="object"&&document.all;Am.exports=typeof Cc=="undefined"&&Cc!==void 0?function(e){return typeof e=="function"||e===Cc}:function(e){return typeof e=="function"}});var Qe=h(($$,Sm)=>{"use strict";var C1=pe();Sm.exports=!C1(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var Et=h((W$,xm)=>{"use strict";var T1=un(),Yo=Function.prototype.call;xm.exports=T1?Yo.bind(Yo):function(){return Yo.apply(Yo,arguments)}});var Tc=h(Om=>{"use strict";var Cm={}.propertyIsEnumerable,Tm=Object.getOwnPropertyDescriptor,O1=Tm&&!Cm.call({1:2},1);Om.f=O1?function(t){var r=Tm(this,t);return!!r&&r.enumerable}:Cm});var wi=h((K$,Pm)=>{"use strict";Pm.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var Qo=h((Y$,Rm)=>{"use strict";var P1=be(),R1=pe(),N1=Kt(),Oc=Object,D1=P1("".split);Rm.exports=R1(function(){return!Oc("z").propertyIsEnumerable(0)})?function(e){return N1(e)==="String"?D1(e,""):Oc(e)}:Oc});var Jr=h((Q$,Nm)=>{"use strict";Nm.exports=function(e){return e==null}});var Gr=h((X$,Dm)=>{"use strict";var L1=Jr(),M1=TypeError;Dm.exports=function(e){if(L1(e))throw new M1("Can't call method on "+e);return e}});var vr=h((Z$,Lm)=>{"use strict";var q1=Qo(),U1=Gr();Lm.exports=function(e){return q1(U1(e))}});var Ce=h((eW,Mm)=>{"use strict";var F1=Le();Mm.exports=function(e){return typeof e=="object"?e!==null:F1(e)}});var Dt=h((tW,qm)=>{"use strict";qm.exports={}});var dn=h((rW,Fm)=>{"use strict";var Pc=Dt(),Rc=fe(),j1=Le(),Um=function(e){return j1(e)?e:void 0};Fm.exports=function(e,t){return arguments.length<2?Um(Pc[e])||Um(Rc[e]):Pc[e]&&Pc[e][t]||Rc[e]&&Rc[e][t]}});var Xo=h((nW,Gm)=>{"use strict";var J1=fe(),jm=J1.navigator,Jm=jm&&jm.userAgent;Gm.exports=Jm?String(Jm):""});var ea=h((iW,zm)=>{"use strict";var Wm=fe(),Nc=Xo(),Bm=Wm.process,Hm=Wm.Deno,Vm=Bm&&Bm.versions||Hm&&Hm.version,$m=Vm&&Vm.v8,kt,Zo;$m&&(kt=$m.split("."),Zo=kt[0]>0&&kt[0]<4?1:+(kt[0]+kt[1]));!Zo&&Nc&&(kt=Nc.match(/Edge\/(\d+)/),(!kt||kt[1]>=74)&&(kt=Nc.match(/Chrome\/(\d+)/),kt&&(Zo=+kt[1])));zm.exports=Zo});var Dc=h((oW,Ym)=>{"use strict";var Km=ea(),G1=pe(),B1=fe(),H1=B1.String;Ym.exports=!!Object.getOwnPropertySymbols&&!G1(function(){var e=Symbol("symbol detection");return!H1(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Km&&Km<41})});var Lc=h((aW,Qm)=>{"use strict";var V1=Dc();Qm.exports=V1&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Mc=h((sW,Xm)=>{"use strict";var $1=dn(),W1=Le(),z1=Ye(),K1=Lc(),Y1=Object;Xm.exports=K1?function(e){return typeof e=="symbol"}:function(e){var t=$1("Symbol");return W1(t)&&z1(t.prototype,Y1(e))}});var Ii=h((lW,Zm)=>{"use strict";var Q1=String;Zm.exports=function(e){try{return Q1(e)}catch(t){return"Object"}}});var Br=h((cW,ev)=>{"use strict";var X1=Le(),Z1=Ii(),eO=TypeError;ev.exports=function(e){if(X1(e))return e;throw new eO(Z1(e)+" is not a function")}});var ta=h((uW,tv)=>{"use strict";var tO=Br(),rO=Jr();tv.exports=function(e,t){var r=e[t];return rO(r)?void 0:tO(r)}});var nv=h((dW,rv)=>{"use strict";var qc=Et(),Uc=Le(),Fc=Ce(),nO=TypeError;rv.exports=function(e,t){var r,n;if(t==="string"&&Uc(r=e.toString)&&!Fc(n=qc(r,e))||Uc(r=e.valueOf)&&!Fc(n=qc(r,e))||t!=="string"&&Uc(r=e.toString)&&!Fc(n=qc(r,e)))return n;throw new nO("Can't convert object to primitive value")}});var pn=h((pW,iv)=>{"use strict";iv.exports=!0});var sv=h((fW,av)=>{"use strict";var ov=fe(),iO=Object.defineProperty;av.exports=function(e,t){try{iO(ov,e,{value:t,configurable:!0,writable:!0})}catch(r){ov[e]=t}return t}});var Ei=h((hW,uv)=>{"use strict";var oO=pn(),aO=fe(),sO=sv(),lv="__core-js_shared__",cv=uv.exports=aO[lv]||sO(lv,{});(cv.versions||(cv.versions=[])).push({version:"3.41.0",mode:oO?"pure":"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var jc=h((mW,pv)=>{"use strict";var dv=Ei();pv.exports=function(e,t){return dv[e]||(dv[e]=t||{})}});var fn=h((vW,fv)=>{"use strict";var lO=Gr(),cO=Object;fv.exports=function(e){return cO(lO(e))}});var ut=h((gW,hv)=>{"use strict";var uO=be(),dO=fn(),pO=uO({}.hasOwnProperty);hv.exports=Object.hasOwn||function(t,r){return pO(dO(t),r)}});var ra=h((yW,mv)=>{"use strict";var fO=be(),hO=0,mO=Math.random(),vO=fO(1 .toString);mv.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+vO(++hO+mO,36)}});var Ge=h((_W,gv)=>{"use strict";var gO=fe(),yO=jc(),vv=ut(),_O=ra(),bO=Dc(),wO=Lc(),hn=gO.Symbol,Jc=yO("wks"),IO=wO?hn.for||hn:hn&&hn.withoutSetter||_O;gv.exports=function(e){return vv(Jc,e)||(Jc[e]=bO&&vv(hn,e)?hn[e]:IO("Symbol."+e)),Jc[e]}});var wv=h((bW,bv)=>{"use strict";var EO=Et(),yv=Ce(),_v=Mc(),kO=ta(),AO=nv(),SO=Ge(),xO=TypeError,CO=SO("toPrimitive");bv.exports=function(e,t){if(!yv(e)||_v(e))return e;var r=kO(e,CO),n;if(r){if(t===void 0&&(t="default"),n=EO(r,e,t),!yv(n)||_v(n))return n;throw new xO("Can't convert object to primitive value")}return t===void 0&&(t="number"),AO(e,t)}});var Gc=h((wW,Iv)=>{"use strict";var TO=wv(),OO=Mc();Iv.exports=function(e){var t=TO(e,"string");return OO(t)?t:t+""}});var Hc=h((IW,kv)=>{"use strict";var PO=fe(),Ev=Ce(),Bc=PO.document,RO=Ev(Bc)&&Ev(Bc.createElement);kv.exports=function(e){return RO?Bc.createElement(e):{}}});var Vc=h((EW,Av)=>{"use strict";var NO=Qe(),DO=pe(),LO=Hc();Av.exports=!NO&&!DO(function(){return Object.defineProperty(LO("div"),"a",{get:function(){return 7}}).a!==7})});var $c=h(xv=>{"use strict";var MO=Qe(),qO=Et(),UO=Tc(),FO=wi(),jO=vr(),JO=Gc(),GO=ut(),BO=Vc(),Sv=Object.getOwnPropertyDescriptor;xv.f=MO?Sv:function(t,r){if(t=jO(t),r=JO(r),BO)try{return Sv(t,r)}catch(n){}if(GO(t,r))return FO(!qO(UO.f,t,r),t[r])}});var Tv=h((AW,Cv)=>{"use strict";var HO=pe(),VO=Le(),$O=/#|\.prototype\./,ki=function(e,t){var r=zO[WO(e)];return r===YO?!0:r===KO?!1:VO(t)?HO(t):!!t},WO=ki.normalize=function(e){return String(e).replace($O,".").toLowerCase()},zO=ki.data={},KO=ki.NATIVE="N",YO=ki.POLYFILL="P";Cv.exports=ki});var Ai=h((SW,Pv)=>{"use strict";var Ov=bi(),QO=Br(),XO=un(),ZO=Ov(Ov.bind);Pv.exports=function(e,t){return QO(e),t===void 0?e:XO?ZO(e,t):function(){return e.apply(t,arguments)}}});var Wc=h((xW,Rv)=>{"use strict";var eP=Qe(),tP=pe();Rv.exports=eP&&tP(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var Yt=h((CW,Nv)=>{"use strict";var rP=Ce(),nP=String,iP=TypeError;Nv.exports=function(e){if(rP(e))return e;throw new iP(nP(e)+" is not an object")}});var Qt=h(Lv=>{"use strict";var oP=Qe(),aP=Vc(),sP=Wc(),na=Yt(),Dv=Gc(),lP=TypeError,zc=Object.defineProperty,cP=Object.getOwnPropertyDescriptor,Kc="enumerable",Yc="configurable",Qc="writable";Lv.f=oP?sP?function(t,r,n){if(na(t),r=Dv(r),na(n),typeof t=="function"&&r==="prototype"&&"value"in n&&Qc in n&&!n[Qc]){var i=cP(t,r);i&&i[Qc]&&(t[r]=n.value,n={configurable:Yc in n?n[Yc]:i[Yc],enumerable:Kc in n?n[Kc]:i[Kc],writable:!1})}return zc(t,r,n)}:zc:function(t,r,n){if(na(t),r=Dv(r),na(n),aP)try{return zc(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new lP("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var Hr=h((OW,Mv)=>{"use strict";var uP=Qe(),dP=Qt(),pP=wi();Mv.exports=uP?function(e,t,r){return dP.f(e,t,pP(1,r))}:function(e,t,r){return e[t]=r,e}});var Z=h((PW,Uv)=>{"use strict";var Si=fe(),fP=xc(),hP=bi(),mP=Le(),vP=$c().f,gP=Tv(),mn=Dt(),yP=Ai(),vn=Hr(),qv=ut();Ei();var _P=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return fP(e,this,arguments)};return t.prototype=e.prototype,t};Uv.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o=e.proto,a=n?Si:i?Si[r]:Si[r]&&Si[r].prototype,s=n?mn:mn[r]||vn(mn,r,{})[r],l=s.prototype,c,d,u,p,f,m,g,y,v;for(p in t)c=gP(n?p:r+(i?".":"#")+p,e.forced),d=!c&&a&&qv(a,p),m=s[p],d&&(e.dontCallGetSet?(v=vP(a,p),g=v&&v.value):g=a[p]),f=d&&g?g:t[p],!(!c&&!o&&typeof m==typeof f)&&(e.bind&&d?y=yP(f,Si):e.wrap&&d?y=_P(f):o&&mP(f)?y=hP(f):y=f,(e.sham||f&&f.sham||m&&m.sham)&&vn(y,"sham",!0),vn(s,p,y),o&&(u=r+"Prototype",qv(mn,u)||vn(mn,u,{}),vn(mn[u],p,f),e.real&&l&&(c||!l[p])&&vn(l,p,f)))}});var jv=h((RW,Fv)=>{"use strict";var bP=Math.ceil,wP=Math.floor;Fv.exports=Math.trunc||function(t){var r=+t;return(r>0?wP:bP)(r)}});var xi=h((NW,Jv)=>{"use strict";var IP=jv();Jv.exports=function(e){var t=+e;return t!==t||t===0?0:IP(t)}});var Xc=h((DW,Gv)=>{"use strict";var EP=xi(),kP=Math.min;Gv.exports=function(e){var t=EP(e);return t>0?kP(t,9007199254740991):0}});var gn=h((LW,Bv)=>{"use strict";var AP=Xc();Bv.exports=function(e){return AP(e.length)}});var Ci=h((MW,Hv)=>{"use strict";var SP=Kt();Hv.exports=Array.isArray||function(t){return SP(t)==="Array"}});var ia=h((qW,$v)=>{"use strict";var xP=Ge(),CP=xP("toStringTag"),Vv={};Vv[CP]="z";$v.exports=String(Vv)==="[object z]"});var yn=h((UW,Wv)=>{"use strict";var TP=ia(),OP=Le(),oa=Kt(),PP=Ge(),RP=PP("toStringTag"),NP=Object,DP=oa(function(){return arguments}())==="Arguments",LP=function(e,t){try{return e[t]}catch(r){}};Wv.exports=TP?oa:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=LP(t=NP(e),RP))=="string"?r:DP?oa(t):(n=oa(t))==="Object"&&OP(t.callee)?"Arguments":n}});var Kv=h((FW,zv)=>{"use strict";var MP=be(),qP=Le(),Zc=Ei(),UP=MP(Function.toString);qP(Zc.inspectSource)||(Zc.inspectSource=function(e){return UP(e)});zv.exports=Zc.inspectSource});var tu=h((jW,eg)=>{"use strict";var FP=be(),jP=pe(),Yv=Le(),JP=yn(),GP=dn(),BP=Kv(),Qv=function(){},Xv=GP("Reflect","construct"),eu=/^\s*(?:class|function)\b/,HP=FP(eu.exec),VP=!eu.test(Qv),Ti=function(t){if(!Yv(t))return!1;try{return Xv(Qv,[],t),!0}catch(r){return!1}},Zv=function(t){if(!Yv(t))return!1;switch(JP(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return VP||!!HP(eu,BP(t))}catch(r){return!0}};Zv.sham=!0;eg.exports=!Xv||jP(function(){var e;return Ti(Ti.call)||!Ti(Object)||!Ti(function(){e=!0})||e})?Zv:Ti});var ig=h((JW,ng)=>{"use strict";var tg=Ci(),$P=tu(),WP=Ce(),zP=Ge(),KP=zP("species"),rg=Array;ng.exports=function(e){var t;return tg(e)&&(t=e.constructor,$P(t)&&(t===rg||tg(t.prototype))?t=void 0:WP(t)&&(t=t[KP],t===null&&(t=void 0))),t===void 0?rg:t}});var ru=h((GW,og)=>{"use strict";var YP=ig();og.exports=function(e,t){return new(YP(e))(t===0?0:t)}});var yr=h((BW,sg)=>{"use strict";var QP=Ai(),XP=be(),ZP=Qo(),eR=fn(),tR=gn(),rR=ru(),ag=XP([].push),gr=function(e){var t=e===1,r=e===2,n=e===3,i=e===4,o=e===6,a=e===7,s=e===5||o;return function(l,c,d,u){for(var p=eR(l),f=ZP(p),m=tR(f),g=QP(c,d),y=0,v=u||rR,b=t?v(l,m):r||a?v(l,0):void 0,k,x;m>y;y++)if((s||y in f)&&(k=f[y],x=g(k,y,p),e))if(t)b[y]=x;else if(x)switch(e){case 3:return!0;case 5:return k;case 6:return y;case 2:ag(b,k)}else switch(e){case 4:return!1;case 7:ag(b,k)}return o?-1:n||i?i:b}};sg.exports={forEach:gr(0),map:gr(1),filter:gr(2),some:gr(3),every:gr(4),find:gr(5),findIndex:gr(6),filterReject:gr(7)}});var Oi=h((HW,lg)=>{"use strict";var nR=pe(),iR=Ge(),oR=ea(),aR=iR("species");lg.exports=function(e){return oR>=51||!nR(function(){var t=[],r=t.constructor={};return r[aR]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var cg=h(()=>{"use strict";var sR=Z(),lR=yr().filter,cR=Oi(),uR=cR("filter");sR({target:"Array",proto:!0,forced:!uR},{filter:function(t){return lR(this,t,arguments.length>1?arguments[1]:void 0)}})});var _t=h((WW,ug)=>{"use strict";var dR=fe(),pR=Dt();ug.exports=function(e,t){var r=pR[e+"Prototype"],n=r&&r[t];if(n)return n;var i=dR[e],o=i&&i.prototype;return o&&o[t]}});var pg=h((zW,dg)=>{"use strict";cg();var fR=_t();dg.exports=fR("Array","filter")});var hg=h((KW,fg)=>{"use strict";var hR=Ye(),mR=pg(),nu=Array.prototype;fg.exports=function(e){var t=e.filter;return e===nu||hR(nu,e)&&t===nu.filter?mR:t}});var vg=h((YW,mg)=>{"use strict";var vR=hg();mg.exports=vR});var yg=h((QW,gg)=>{gg.exports=vg()});var Pi=h((XW,_g)=>{"use strict";var gR=pe();_g.exports=function(e,t){var r=[][e];return!!r&&gR(function(){r.call(null,t||function(){return 1},1)})}});var bg=h(()=>{"use strict";var yR=Z(),_R=yr().every,bR=Pi(),wR=bR("every");yR({target:"Array",proto:!0,forced:!wR},{every:function(t){return _R(this,t,arguments.length>1?arguments[1]:void 0)}})});var Ig=h((tz,wg)=>{"use strict";bg();var IR=_t();wg.exports=IR("Array","every")});var kg=h((rz,Eg)=>{"use strict";var ER=Ye(),kR=Ig(),iu=Array.prototype;Eg.exports=function(e){var t=e.every;return e===iu||ER(iu,e)&&t===iu.every?kR:t}});var Sg=h((nz,Ag)=>{"use strict";var AR=kg();Ag.exports=AR});var Cg=h((iz,xg)=>{xg.exports=Sg()});var Og=h((oz,Tg)=>{"use strict";var SR=yr().forEach,xR=Pi(),CR=xR("forEach");Tg.exports=CR?[].forEach:function(t){return SR(this,t,arguments.length>1?arguments[1]:void 0)}});var Rg=h(()=>{"use strict";var TR=Z(),Pg=Og();TR({target:"Array",proto:!0,forced:[].forEach!==Pg},{forEach:Pg})});var Dg=h((lz,Ng)=>{"use strict";Rg();var OR=_t();Ng.exports=OR("Array","forEach")});var Mg=h((cz,Lg)=>{"use strict";var PR=Dg();Lg.exports=PR});var qg=h(()=>{});var Fg=h((pz,Ug)=>{"use strict";var RR=yn(),NR=ut(),DR=Ye(),LR=Mg();qg();var ou=Array.prototype,MR={DOMTokenList:!0,NodeList:!0};Ug.exports=function(e){var t=e.forEach;return e===ou||DR(ou,e)&&t===ou.forEach||NR(MR,RR(e))?LR:t}});var Jg=h((fz,jg)=>{jg.exports=Fg()});var Bg=h((hz,Gg)=>{"use strict";var qR=TypeError,UR=9007199254740991;Gg.exports=function(e){if(e>UR)throw qR("Maximum allowed index exceeded");return e}});var au=h((mz,Hg)=>{"use strict";var FR=Qe(),jR=Qt(),JR=wi();Hg.exports=function(e,t,r){FR?jR.f(e,t,JR(0,r)):e[t]=r}});var zg=h(()=>{"use strict";var GR=Z(),BR=pe(),HR=Ci(),VR=Ce(),$R=fn(),WR=gn(),Vg=Bg(),$g=au(),zR=ru(),KR=Oi(),YR=Ge(),QR=ea(),Wg=YR("isConcatSpreadable"),XR=QR>=51||!BR(function(){var e=[];return e[Wg]=!1,e.concat()[0]!==e}),ZR=function(e){if(!VR(e))return!1;var t=e[Wg];return t!==void 0?!!t:HR(e)},eN=!XR||!KR("concat");GR({target:"Array",proto:!0,arity:1,forced:eN},{concat:function(t){var r=$R(this),n=zR(r,0),i=0,o,a,s,l,c;for(o=-1,s=arguments.length;o<s;o++)if(c=o===-1?r:arguments[o],ZR(c))for(l=WR(c),Vg(i+l),a=0;a<l;a++,i++)a in c&&$g(n,i,c[a]);else Vg(i+1),$g(n,i++,c);return n.length=i,n}})});var Yg=h((yz,Kg)=>{"use strict";zg();var tN=_t();Kg.exports=tN("Array","concat")});var Xg=h((_z,Qg)=>{"use strict";var rN=Ye(),nN=Yg(),su=Array.prototype;Qg.exports=function(e){var t=e.concat;return e===su||rN(su,e)&&t===su.concat?nN:t}});var ey=h((bz,Zg)=>{"use strict";var iN=Xg();Zg.exports=iN});var ry=h((wz,ty)=>{ty.exports=ey()});var ny=h(()=>{"use strict";var oN=Z(),aN=yr().some,sN=Pi(),lN=sN("some");oN({target:"Array",proto:!0,forced:!lN},{some:function(t){return aN(this,t,arguments.length>1?arguments[1]:void 0)}})});var oy=h((kz,iy)=>{"use strict";ny();var cN=_t();iy.exports=cN("Array","some")});var sy=h((Az,ay)=>{"use strict";var uN=Ye(),dN=oy(),lu=Array.prototype;ay.exports=function(e){var t=e.some;return e===lu||uN(lu,e)&&t===lu.some?dN:t}});var cy=h((Sz,ly)=>{"use strict";var pN=sy();ly.exports=pN});var dy=h((xz,uy)=>{uy.exports=cy()});var fy=h((Cz,py)=>{"use strict";var Ri=fe(),fN=Xo(),hN=Kt(),aa=function(e){return fN.slice(0,e.length)===e};py.exports=function(){return aa("Bun/")?"BUN":aa("Cloudflare-Workers")?"CLOUDFLARE":aa("Deno/")?"DENO":aa("Node.js/")?"NODE":Ri.Bun&&typeof Bun.version=="string"?"BUN":Ri.Deno&&typeof Deno.version=="object"?"DENO":hN(Ri.process)==="process"?"NODE":Ri.window&&Ri.document?"BROWSER":"REST"}()});var Ni=h((Tz,hy)=>{"use strict";var mN=be();hy.exports=mN([].slice)});var vy=h((Oz,my)=>{"use strict";var vN=TypeError;my.exports=function(e,t){if(e<t)throw new vN("Not enough arguments");return e}});var cu=h((Pz,yy)=>{"use strict";var gy=fe(),gN=xc(),yN=Le(),_N=fy(),bN=Xo(),wN=Ni(),IN=vy(),EN=gy.Function,kN=/MSIE .\./.test(bN)||_N==="BUN"&&function(){var e=gy.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();yy.exports=function(e,t){var r=t?2:1;return kN?function(n,i){var o=IN(arguments.length,1)>r,a=yN(n)?n:EN(n),s=o?wN(arguments,r):[],l=o?function(){gN(a,this,s)}:a;return t?e(l,i):e(l)}:e}});var wy=h(()=>{"use strict";var AN=Z(),by=fe(),SN=cu(),_y=SN(by.setInterval,!0);AN({global:!0,bind:!0,forced:by.setInterval!==_y},{setInterval:_y})});var ky=h(()=>{"use strict";var xN=Z(),Ey=fe(),CN=cu(),Iy=CN(Ey.setTimeout,!0);xN({global:!0,bind:!0,forced:Ey.setTimeout!==Iy},{setTimeout:Iy})});var Ay=h(()=>{"use strict";wy();ky()});var xy=h((Uz,Sy)=>{"use strict";Ay();var TN=Dt();Sy.exports=TN.setTimeout});var Ty=h((Fz,Cy)=>{Cy.exports=xy()});function Li(e,t){me.__h&&me.__h(oe,e,Di||t),Di=0;var r=oe.__H||(oe.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function la(e){return Di=1,Fy(jy,e)}function Fy(e,t,r){var n=Li(Vr++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):jy(void 0,t),function(s){var l=n.__N?n.__N[0]:n.__[0],c=n.t(l,s);l!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=oe,!oe.__f)){var i=function(s,l,c){if(!n.__c.__H)return!0;var d=n.__c.__H.__.filter(function(p){return!!p.__c});if(d.every(function(p){return!p.__N}))return!o||o.call(this,s,l,c);var u=n.__c.props!==s;return d.forEach(function(p){if(p.__N){var f=p.__[0];p.__=p.__N,p.__N=void 0,f!==p.__[0]&&(u=!0)}}),o&&o.call(this,s,l,c)||u};oe.__f=!0;var o=oe.shouldComponentUpdate,a=oe.componentWillUpdate;oe.componentWillUpdate=function(s,l,c){if(this.__e){var d=o;o=void 0,i(s,l,c),o=d}a&&a.call(this,s,l,c)},oe.shouldComponentUpdate=i}return n.__N||n.__}function Mi(e,t){var r=Li(Vr++,3);!me.__s&&pu(r.__H,t)&&(r.__=e,r.u=t,oe.__H.__h.push(r))}function _n(e,t){var r=Li(Vr++,4);!me.__s&&pu(r.__H,t)&&(r.__=e,r.u=t,oe.__h.push(r))}function qi(e){return Di=5,Ui(function(){return{current:e}},[])}function Ui(e,t){var r=Li(Vr++,7);return pu(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function bn(e,t){return Di=8,Ui(function(){return e},t)}function wn(e){var t=oe.context[e.__c],r=Li(Vr++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(oe)),t.props.value):e.__}function ON(){for(var e;e=Uy.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(sa),e.__H.__h.forEach(du),e.__H.__h=[]}catch(t){e.__H.__h=[],me.__e(t,e.__v)}}function PN(e){var t,r=function(){clearTimeout(n),qy&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);qy&&(t=requestAnimationFrame(r))}function sa(e){var t=oe,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),oe=t}function du(e){var t=oe;e.__c=e.__(),oe=t}function pu(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function jy(e,t){return typeof t=="function"?t(e):t}var Vr,oe,uu,Oy,Di,Uy,me,Py,Ry,Ny,Dy,Ly,My,qy,fu=S(()=>{cn();Di=0,Uy=[],me=N,Py=me.__b,Ry=me.__r,Ny=me.diffed,Dy=me.__c,Ly=me.unmount,My=me.__;me.__b=function(e){oe=null,Py&&Py(e)},me.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),My&&My(e,t)},me.__r=function(e){Ry&&Ry(e),Vr=0;var t=(oe=e.__c).__H;t&&(uu===oe?(t.__h=[],oe.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(sa),t.__h.forEach(du),t.__h=[],Vr=0)),uu=oe},me.diffed=function(e){Ny&&Ny(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Uy.push(t)!==1&&Oy===me.requestAnimationFrame||((Oy=me.requestAnimationFrame)||PN)(ON)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),uu=oe=null},me.__c=function(e,t){t.some(function(r){try{r.__h.forEach(sa),r.__h=r.__h.filter(function(n){return!n.__||du(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],me.__e(n,r.__v)}}),Dy&&Dy(e,t)},me.unmount=function(e){Ly&&Ly(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{sa(n)}catch(i){t=i}}),r.__H=void 0,t&&me.__e(t,r.__v))};qy=typeof requestAnimationFrame=="function"});function Yy(e,t){for(var r in t)e[r]=t[r];return e}function mu(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function Jy(e,t){this.props=e,this.context=t}function gu(e,t){function r(i){var o=this.props.ref,a=o==i.ref;return!a&&o&&(o.call?o(null):o.current=null),t?!t(this.props,i)||!a:mu(this.props,i)}function n(i){return this.shouldComponentUpdate=r,Je(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function yu(e){function t(r){var n=Yy({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=RN,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function Qy(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=Yy({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Qy(n,t,r)})),e}function Xy(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Xy(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function hu(){this.__u=0,this.o=null,this.__b=null}function Zy(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function ca(){this.i=null,this.l=null}function _u(e,t,r){return t.__k==null&&(t.textContent=""),mr(e,t),typeof r=="function"&&r(),e?e.__c:null}function jN(){}function JN(){return this.cancelBubble}function GN(){return this.defaultPrevented}var vu,Gy,RN,NN,By,Hy,DN,LN,MN,qN,UN,FN,Vy,e_,BN,$y,Wy,zy,ua=S(()=>{cn();cn();fu();fu();vu=_n;(Jy.prototype=new ct).isPureReactComponent=!0,Jy.prototype.shouldComponentUpdate=function(e,t){return mu(this.props,e)||mu(this.state,t)};Gy=N.__b;N.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Gy&&Gy(e)};RN=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;NN=N.__e;N.__e=function(e,t,r,n){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),i.__c(e,t)}NN(e,t,r,n)};By=N.unmount;N.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),By&&By(e)},(hu.prototype=new ct).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=Zy(n.__v),o=!1,a=function(){o||(o=!0,r.__R=null,i?i(s):s())};r.__R=a;var s=function(){if(!--n.__u){if(n.state.__a){var l=n.state.__a;n.__v.__k[0]=Xy(l,l.__c.__P,l.__c.__O)}var c;for(n.setState({__a:n.__b=null});c=n.o.pop();)c.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},hu.prototype.componentWillUnmount=function(){this.o=[]},hu.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Qy(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&Je(De,null,e.fallback);return i&&(i.__u&=-33),[Je(De,null,t.__a?null:e.children),i]};Hy=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.i=r=r[2]}};(ca.prototype=new ct).__a=function(e){var t=this,r=Zy(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),Hy(t,e,n)):i()};r?r(o):o()}},ca.prototype.render=function(e){this.i=null,this.l=new Map;var t=yi(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},ca.prototype.componentDidUpdate=ca.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){Hy(e,r,t)})};DN=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,LN=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,MN=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,qN=/[A-Z0-9]/g,UN=typeof document!="undefined",FN=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};ct.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ct.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});Vy=N.event;N.event=function(e){return Vy&&(e=Vy(e)),e.persist=jN,e.isPropagationStopped=JN,e.isDefaultPrevented=GN,e.nativeEvent=e};BN={enumerable:!1,configurable:!0,get:function(){return this.class}},$y=N.vnode;N.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,n=t.type,i={},o=n.indexOf("-")===-1;for(var a in r){var s=r[a];if(!(a==="value"&&"defaultValue"in r&&s==null||UN&&a==="children"&&n==="noscript"||a==="class"||a==="className")){var l=a.toLowerCase();a==="defaultValue"&&"value"in r&&r.value==null?a="value":a==="download"&&s===!0?s="":l==="translate"&&s==="no"?s=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?a="ondblclick":l!=="onchange"||n!=="input"&&n!=="textarea"||FN(r.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":MN.test(a)&&(a=l):l=a="oninput":o&&LN.test(a)?a=a.replace(qN,"-$&").toLowerCase():s===null&&(s=void 0),l==="oninput"&&i[a=l]&&(a="oninputCapture"),i[a]=s}}n=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=yi(r.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=yi(r.children).forEach(function(c){c.props.selected=i.multiple?i.defaultValue.indexOf(c.props.value)!=-1:i.defaultValue==c.props.value})),r.class&&!r.className?(i.class=r.class,Object.defineProperty(i,"className",BN)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=DN,$y&&$y(e)};Wy=N.__r;N.__r=function(e){Wy&&Wy(e),e_=e.__c};zy=N.diffed;N.diffed=function(e){zy&&zy(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value),e_=null}});var wu=h(()=>{"use strict";var VN=Z(),bu=fe();VN({global:!0,forced:bu.globalThis!==bu},{globalThis:bu})});var t_=h(()=>{"use strict";wu()});var n_=h((t6,r_)=>{"use strict";wu();r_.exports=fe()});var o_=h((r6,i_)=>{"use strict";var $N=n_();i_.exports=$N});var s_=h((n6,a_)=>{"use strict";var WN=o_();a_.exports=WN});var c_=h((i6,l_)=>{"use strict";t_();var zN=s_();l_.exports=zN});var d_=h((o6,u_)=>{"use strict";u_.exports=c_()});var f_=h((a6,p_)=>{p_.exports=d_()});var h_=h(()=>{"use strict";var KN=Z(),YN=Ci();KN({target:"Array",stat:!0},{isArray:YN})});var v_=h((c6,m_)=>{"use strict";h_();var QN=Dt();m_.exports=QN.Array.isArray});var y_=h((u6,g_)=>{"use strict";var XN=v_();g_.exports=XN});var b_=h((d6,__)=>{__.exports=y_()});var I_=h((p6,w_)=>{"use strict";w_.exports=function(){}});var $r=h((f6,E_)=>{"use strict";E_.exports={}});var Iu=h((h6,A_)=>{"use strict";var ZN=fe(),eD=Le(),k_=ZN.WeakMap;A_.exports=eD(k_)&&/native code/.test(String(k_))});var da=h((m6,x_)=>{"use strict";var tD=jc(),rD=ra(),S_=tD("keys");x_.exports=function(e){return S_[e]||(S_[e]=rD(e))}});var Fi=h((v6,C_)=>{"use strict";C_.exports={}});var zr=h((g6,P_)=>{"use strict";var nD=Iu(),O_=fe(),iD=Ce(),oD=Hr(),Eu=ut(),ku=Ei(),aD=da(),sD=Fi(),T_="Object already initialized",Au=O_.TypeError,lD=O_.WeakMap,pa,ji,fa,cD=function(e){return fa(e)?ji(e):pa(e,{})},uD=function(e){return function(t){var r;if(!iD(t)||(r=ji(t)).type!==e)throw new Au("Incompatible receiver, "+e+" required");return r}};nD||ku.state?(At=ku.state||(ku.state=new lD),At.get=At.get,At.has=At.has,At.set=At.set,pa=function(e,t){if(At.has(e))throw new Au(T_);return t.facade=e,At.set(e,t),t},ji=function(e){return At.get(e)||{}},fa=function(e){return At.has(e)}):(Wr=aD("state"),sD[Wr]=!0,pa=function(e,t){if(Eu(e,Wr))throw new Au(T_);return t.facade=e,oD(e,Wr,t),t},ji=function(e){return Eu(e,Wr)?e[Wr]:{}},fa=function(e){return Eu(e,Wr)});var At,Wr;P_.exports={set:pa,get:ji,has:fa,enforce:cD,getterFor:uD}});var Cu=h((y6,N_)=>{"use strict";var Su=Qe(),dD=ut(),R_=Function.prototype,pD=Su&&Object.getOwnPropertyDescriptor,xu=dD(R_,"name"),fD=xu&&(function(){}).name==="something",hD=xu&&(!Su||Su&&pD(R_,"name").configurable);N_.exports={EXISTS:xu,PROPER:fD,CONFIGURABLE:hD}});var Tu=h((_6,D_)=>{"use strict";var mD=xi(),vD=Math.max,gD=Math.min;D_.exports=function(e,t){var r=mD(e);return r<0?vD(r+t,0):gD(r,t)}});var Ou=h((b6,M_)=>{"use strict";var yD=vr(),_D=Tu(),bD=gn(),L_=function(e){return function(t,r,n){var i=yD(t),o=bD(i);if(o===0)return!e&&-1;var a=_D(n,o),s;if(e&&r!==r){for(;o>a;)if(s=i[a++],s!==s)return!0}else for(;o>a;a++)if((e||a in i)&&i[a]===r)return e||a||0;return!e&&-1}};M_.exports={includes:L_(!0),indexOf:L_(!1)}});var Ru=h((w6,U_)=>{"use strict";var wD=be(),Pu=ut(),ID=vr(),ED=Ou().indexOf,kD=Fi(),q_=wD([].push);U_.exports=function(e,t){var r=ID(e),n=0,i=[],o;for(o in r)!Pu(kD,o)&&Pu(r,o)&&q_(i,o);for(;t.length>n;)Pu(r,o=t[n++])&&(~ED(i,o)||q_(i,o));return i}});var ha=h((I6,F_)=>{"use strict";F_.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Nu=h((E6,j_)=>{"use strict";var AD=Ru(),SD=ha();j_.exports=Object.keys||function(t){return AD(t,SD)}});var G_=h(J_=>{"use strict";var xD=Qe(),CD=Wc(),TD=Qt(),OD=Yt(),PD=vr(),RD=Nu();J_.f=xD&&!CD?Object.defineProperties:function(t,r){OD(t);for(var n=PD(r),i=RD(r),o=i.length,a=0,s;o>a;)TD.f(t,s=i[a++],n[s]);return t}});var H_=h((A6,B_)=>{"use strict";var ND=dn();B_.exports=ND("document","documentElement")});var Ji=h((S6,Q_)=>{"use strict";var DD=Yt(),LD=G_(),V_=ha(),MD=Fi(),qD=H_(),UD=Hc(),FD=da(),$_=">",W_="<",Lu="prototype",Mu="script",K_=FD("IE_PROTO"),Du=function(){},Y_=function(e){return W_+Mu+$_+e+W_+"/"+Mu+$_},z_=function(e){e.write(Y_("")),e.close();var t=e.parentWindow.Object;return e=null,t},jD=function(){var e=UD("iframe"),t="java"+Mu+":",r;return e.style.display="none",qD.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(Y_("document.F=Object")),r.close(),r.F},ma,va=function(){try{ma=new ActiveXObject("htmlfile")}catch(t){}va=typeof document!="undefined"?document.domain&&ma?z_(ma):jD():z_(ma);for(var e=V_.length;e--;)delete va[Lu][V_[e]];return va()};MD[K_]=!0;Q_.exports=Object.create||function(t,r){var n;return t!==null?(Du[Lu]=DD(t),n=new Du,Du[Lu]=null,n[K_]=t):n=va(),r===void 0?n:LD.f(n,r)}});var Z_=h((x6,X_)=>{"use strict";var JD=pe();X_.exports=!JD(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Uu=h((C6,tb)=>{"use strict";var GD=ut(),BD=Le(),HD=fn(),VD=da(),$D=Z_(),eb=VD("IE_PROTO"),qu=Object,WD=qu.prototype;tb.exports=$D?qu.getPrototypeOf:function(e){var t=HD(e);if(GD(t,eb))return t[eb];var r=t.constructor;return BD(r)&&t instanceof r?r.prototype:t instanceof qu?WD:null}});var ga=h((T6,rb)=>{"use strict";var zD=Hr();rb.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:zD(e,t,r),e}});var Gu=h((O6,ob)=>{"use strict";var KD=pe(),YD=Le(),QD=Ce(),XD=Ji(),nb=Uu(),ZD=ga(),eL=Ge(),tL=pn(),Ju=eL("iterator"),ib=!1,Xt,Fu,ju;[].keys&&(ju=[].keys(),"next"in ju?(Fu=nb(nb(ju)),Fu!==Object.prototype&&(Xt=Fu)):ib=!0);var rL=!QD(Xt)||KD(function(){var e={};return Xt[Ju].call(e)!==e});rL?Xt={}:tL&&(Xt=XD(Xt));YD(Xt[Ju])||ZD(Xt,Ju,function(){return this});ob.exports={IteratorPrototype:Xt,BUGGY_SAFARI_ITERATORS:ib}});var sb=h((P6,ab)=>{"use strict";var nL=ia(),iL=yn();ab.exports=nL?{}.toString:function(){return"[object "+iL(this)+"]"}});var Gi=h((R6,cb)=>{"use strict";var oL=ia(),aL=Qt().f,sL=Hr(),lL=ut(),cL=sb(),uL=Ge(),lb=uL("toStringTag");cb.exports=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(lL(i,lb)||aL(i,lb,{configurable:!0,value:t}),n&&!oL&&sL(i,"toString",cL))}});var db=h((N6,ub)=>{"use strict";var dL=Gu().IteratorPrototype,pL=Ji(),fL=wi(),hL=Gi(),mL=$r(),vL=function(){return this};ub.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=pL(dL,{next:fL(+!n,r)}),hL(e,i,!1,!0),mL[i]=vL,e}});var fb=h((D6,pb)=>{"use strict";var gL=be(),yL=Br();pb.exports=function(e,t,r){try{return gL(yL(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var mb=h((L6,hb)=>{"use strict";var _L=Ce();hb.exports=function(e){return _L(e)||e===null}});var gb=h((M6,vb)=>{"use strict";var bL=mb(),wL=String,IL=TypeError;vb.exports=function(e){if(bL(e))return e;throw new IL("Can't set "+wL(e)+" as a prototype")}});var _b=h((q6,yb)=>{"use strict";var EL=fb(),kL=Ce(),AL=Gr(),SL=gb();yb.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=EL(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return AL(i),SL(o),kL(i)&&(e?r(i,o):i.__proto__=o),i}}():void 0)});var ba=h((U6,Tb)=>{"use strict";var xL=Z(),CL=Et(),ya=pn(),xb=Cu(),TL=Le(),OL=db(),bb=Uu(),wb=_b(),PL=Gi(),RL=Hr(),Bu=ga(),NL=Ge(),Ib=$r(),Cb=Gu(),DL=xb.PROPER,LL=xb.CONFIGURABLE,Eb=Cb.IteratorPrototype,_a=Cb.BUGGY_SAFARI_ITERATORS,Bi=NL("iterator"),kb="keys",Hi="values",Ab="entries",Sb=function(){return this};Tb.exports=function(e,t,r,n,i,o,a){OL(r,t,n);var s=function(v){if(v===i&&p)return p;if(!_a&&v&&v in d)return d[v];switch(v){case kb:return function(){return new r(this,v)};case Hi:return function(){return new r(this,v)};case Ab:return function(){return new r(this,v)}}return function(){return new r(this)}},l=t+" Iterator",c=!1,d=e.prototype,u=d[Bi]||d["@@iterator"]||i&&d[i],p=!_a&&u||s(i),f=t==="Array"&&d.entries||u,m,g,y;if(f&&(m=bb(f.call(new e)),m!==Object.prototype&&m.next&&(!ya&&bb(m)!==Eb&&(wb?wb(m,Eb):TL(m[Bi])||Bu(m,Bi,Sb)),PL(m,l,!0,!0),ya&&(Ib[l]=Sb))),DL&&i===Hi&&u&&u.name!==Hi&&(!ya&&LL?RL(d,"name",Hi):(c=!0,p=function(){return CL(u,this)})),i)if(g={values:s(Hi),keys:o?p:s(kb),entries:s(Ab)},a)for(y in g)(_a||c||!(y in d))&&Bu(d,y,g[y]);else xL({target:t,proto:!0,forced:_a||c},g);return(!ya||a)&&d[Bi]!==p&&Bu(d,Bi,p,{name:i}),Ib[t]=p,g}});var wa=h((F6,Ob)=>{"use strict";Ob.exports=function(e,t){return{value:e,done:t}}});var Ea=h((j6,Lb)=>{"use strict";var ML=vr(),Hu=I_(),Pb=$r(),Nb=zr(),qL=Qt().f,UL=ba(),Ia=wa(),FL=pn(),jL=Qe(),Db="Array Iterator",JL=Nb.set,GL=Nb.getterFor(Db);Lb.exports=UL(Array,"Array",function(e,t){JL(this,{type:Db,target:ML(e),index:0,kind:t})},function(){var e=GL(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,Ia(void 0,!0);switch(e.kind){case"keys":return Ia(r,!1);case"values":return Ia(t[r],!1)}return Ia([r,t[r]],!1)},"values");var Rb=Pb.Arguments=Pb.Array;Hu("keys");Hu("values");Hu("entries");if(!FL&&jL&&Rb.name!=="values")try{qL(Rb,"name",{value:"values"})}catch(e){}});var Vu=h(()=>{});var $u=h((B6,Mb)=>{"use strict";var BL=pe();Mb.exports=!BL(function(){return Object.isExtensible(Object.preventExtensions({}))})});var ka=h((H6,qb)=>{"use strict";var HL=ga();qb.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:HL(e,n,t[n],r);return e}});var Wu=h(Ub=>{"use strict";var VL=Ru(),$L=ha(),WL=$L.concat("length","prototype");Ub.f=Object.getOwnPropertyNames||function(t){return VL(t,WL)}});var Gb=h(($6,Jb)=>{"use strict";var zL=Kt(),KL=vr(),Fb=Wu().f,YL=Ni(),jb=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],QL=function(e){try{return Fb(e)}catch(t){return YL(jb)}};Jb.exports.f=function(t){return jb&&zL(t)==="Window"?QL(t):Fb(KL(t))}});var Hb=h((W6,Bb)=>{"use strict";var XL=pe();Bb.exports=XL(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var Wb=h((z6,$b)=>{"use strict";var ZL=pe(),eM=Ce(),tM=Kt(),Vb=Hb(),Aa=Object.isExtensible,rM=ZL(function(){Aa(1)});$b.exports=rM||Vb?function(t){return!eM(t)||Vb&&tM(t)==="ArrayBuffer"?!1:Aa?Aa(t):!0}:Aa});var Vi=h((K6,Yb)=>{"use strict";var nM=Z(),iM=be(),oM=Fi(),aM=Ce(),zu=ut(),sM=Qt().f,zb=Wu(),lM=Gb(),Ku=Wb(),cM=ra(),uM=$u(),Kb=!1,Zt=cM("meta"),dM=0,Yu=function(e){sM(e,Zt,{value:{objectID:"O"+dM++,weakData:{}}})},pM=function(e,t){if(!aM(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!zu(e,Zt)){if(!Ku(e))return"F";if(!t)return"E";Yu(e)}return e[Zt].objectID},fM=function(e,t){if(!zu(e,Zt)){if(!Ku(e))return!0;if(!t)return!1;Yu(e)}return e[Zt].weakData},hM=function(e){return uM&&Kb&&Ku(e)&&!zu(e,Zt)&&Yu(e),e},mM=function(){vM.enable=function(){},Kb=!0;var e=zb.f,t=iM([].splice),r={};r[Zt]=1,e(r).length&&(zb.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===Zt){t(i,o,1);break}return i},nM({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:lM.f}))},vM=Yb.exports={enable:mM,fastKey:pM,getWeakData:fM,onFreeze:hM};oM[Zt]=!0});var Xb=h((Y6,Qb)=>{"use strict";var gM=Ge(),yM=$r(),_M=gM("iterator"),bM=Array.prototype;Qb.exports=function(e){return e!==void 0&&(yM.Array===e||bM[_M]===e)}});var Qu=h((Q6,ew)=>{"use strict";var wM=yn(),Zb=ta(),IM=Jr(),EM=$r(),kM=Ge(),AM=kM("iterator");ew.exports=function(e){if(!IM(e))return Zb(e,AM)||Zb(e,"@@iterator")||EM[wM(e)]}});var rw=h((X6,tw)=>{"use strict";var SM=Et(),xM=Br(),CM=Yt(),TM=Ii(),OM=Qu(),PM=TypeError;tw.exports=function(e,t){var r=arguments.length<2?OM(e):t;if(xM(r))return CM(SM(r,e));throw new PM(TM(e)+" is not iterable")}});var Sa=h((Z6,iw)=>{"use strict";var RM=Et(),nw=Yt(),NM=ta();iw.exports=function(e,t,r){var n,i;nw(e);try{if(n=NM(e,"return"),!n){if(t==="throw")throw r;return r}n=RM(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return nw(n),r}});var Ca=h((e8,lw)=>{"use strict";var DM=Ai(),LM=Et(),MM=Yt(),qM=Ii(),UM=Xb(),FM=gn(),ow=Ye(),jM=rw(),JM=Qu(),aw=Sa(),GM=TypeError,xa=function(e,t){this.stopped=e,this.result=t},sw=xa.prototype;lw.exports=function(e,t,r){var n=r&&r.that,i=!!(r&&r.AS_ENTRIES),o=!!(r&&r.IS_RECORD),a=!!(r&&r.IS_ITERATOR),s=!!(r&&r.INTERRUPTED),l=DM(t,n),c,d,u,p,f,m,g,y=function(b){return c&&aw(c,"normal",b),new xa(!0,b)},v=function(b){return i?(MM(b),s?l(b[0],b[1],y):l(b[0],b[1])):s?l(b,y):l(b)};if(o)c=e.iterator;else if(a)c=e;else{if(d=JM(e),!d)throw new GM(qM(e)+" is not iterable");if(UM(d)){for(u=0,p=FM(e);p>u;u++)if(f=v(e[u]),f&&ow(sw,f))return f;return new xa(!1)}c=jM(e,d)}for(m=o?e.next:c.next;!(g=LM(m,c)).done;){try{f=v(g.value)}catch(b){aw(c,"throw",b)}if(typeof f=="object"&&f&&ow(sw,f))return f}return new xa(!1)}});var Ta=h((t8,cw)=>{"use strict";var BM=Ye(),HM=TypeError;cw.exports=function(e,t){if(BM(t,e))return e;throw new HM("Incorrect invocation")}});var Xu=h((r8,dw)=>{"use strict";var VM=Z(),$M=fe(),WM=Vi(),zM=pe(),KM=Hr(),YM=Ca(),QM=Ta(),XM=Le(),ZM=Ce(),eq=Jr(),tq=Gi(),rq=Qt().f,nq=yr().forEach,iq=Qe(),uw=zr(),oq=uw.set,aq=uw.getterFor;dw.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=$M[e],s=a&&a.prototype,l={},c;if(!iq||!XM(a)||!(i||s.forEach&&!zM(function(){new a().entries().next()})))c=r.getConstructor(t,e,n,o),WM.enable();else{c=t(function(p,f){oq(QM(p,d),{type:e,collection:new a}),eq(f)||YM(f,p[o],{that:p,AS_ENTRIES:n})});var d=c.prototype,u=aq(e);nq(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(p){var f=p==="add"||p==="set";p in s&&!(i&&p==="clear")&&KM(d,p,function(m,g){var y=u(this).collection;if(!f&&i&&!ZM(m))return p==="get"?void 0:!1;var v=y[p](m===0?0:m,g);return f?this:v})}),i||rq(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return tq(c,e,!1,!0),l[e]=c,VM({global:!0,forced:!0},l),i||r.setStrong(c,e,n),c}});var yw=h((n8,gw)=>{"use strict";var sq=be(),pw=ka(),Oa=Vi().getWeakData,lq=Ta(),cq=Yt(),uq=Jr(),Zu=Ce(),dq=Ca(),hw=yr(),fw=ut(),mw=zr(),pq=mw.set,fq=mw.getterFor,hq=hw.find,mq=hw.findIndex,vq=sq([].splice),gq=0,Pa=function(e){return e.frozen||(e.frozen=new vw)},vw=function(){this.entries=[]},ed=function(e,t){return hq(e.entries,function(r){return r[0]===t})};vw.prototype={get:function(e){var t=ed(this,e);if(t)return t[1]},has:function(e){return!!ed(this,e)},set:function(e,t){var r=ed(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=mq(this.entries,function(r){return r[0]===e});return~t&&vq(this.entries,t,1),!!~t}};gw.exports={getConstructor:function(e,t,r,n){var i=e(function(l,c){lq(l,o),pq(l,{type:t,id:gq++,frozen:null}),uq(c)||dq(c,l[n],{that:l,AS_ENTRIES:r})}),o=i.prototype,a=fq(t),s=function(l,c,d){var u=a(l),p=Oa(cq(c),!0);return p===!0?Pa(u).set(c,d):p[u.id]=d,l};return pw(o,{delete:function(l){var c=a(this);if(!Zu(l))return!1;var d=Oa(l);return d===!0?Pa(c).delete(l):d&&fw(d,c.id)&&delete d[c.id]},has:function(c){var d=a(this);if(!Zu(c))return!1;var u=Oa(c);return u===!0?Pa(d).has(c):u&&fw(u,d.id)}}),pw(o,r?{get:function(c){var d=a(this);if(Zu(c)){var u=Oa(c);if(u===!0)return Pa(d).get(c);if(u)return u[d.id]}},set:function(c,d){return s(this,c,d)}}:{add:function(c){return s(this,c,!0)}}),i}}});var Sw=h(()=>{"use strict";var yq=$u(),_w=fe(),La=be(),bw=ka(),_q=Vi(),bq=Xu(),ww=yw(),Ra=Ce(),Na=zr().enforce,wq=pe(),Iq=Iu(),zi=Object,Eq=Array.isArray,Da=zi.isExtensible,Iw=zi.isFrozen,kq=zi.isSealed,Ew=zi.freeze,Aq=zi.seal,Sq=!_w.ActiveXObject&&"ActiveXObject"in _w,$i,kw=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Aw=bq("WeakMap",kw,ww),In=Aw.prototype,Ma=La(In.set),xq=function(){return yq&&wq(function(){var e=Ew([]);return Ma(new Aw,e,1),!Iw(e)})};Iq&&(Sq?($i=ww.getConstructor(kw,"WeakMap",!0),_q.enable(),td=La(In.delete),Wi=La(In.has),rd=La(In.get),bw(In,{delete:function(e){if(Ra(e)&&!Da(e)){var t=Na(this);return t.frozen||(t.frozen=new $i),td(this,e)||t.frozen.delete(e)}return td(this,e)},has:function(t){if(Ra(t)&&!Da(t)){var r=Na(this);return r.frozen||(r.frozen=new $i),Wi(this,t)||r.frozen.has(t)}return Wi(this,t)},get:function(t){if(Ra(t)&&!Da(t)){var r=Na(this);return r.frozen||(r.frozen=new $i),Wi(this,t)?rd(this,t):r.frozen.get(t)}return rd(this,t)},set:function(t,r){if(Ra(t)&&!Da(t)){var n=Na(this);n.frozen||(n.frozen=new $i),Wi(this,t)?Ma(this,t,r):n.frozen.set(t,r)}else Ma(this,t,r);return this}})):xq()&&bw(In,{set:function(t,r){var n;return Eq(t)&&(Iw(t)?n=Ew:kq(t)&&(n=Aq)),Ma(this,t,r),n&&n(t),this}}));var td,Wi,rd});var xw=h(()=>{"use strict";Sw()});var Tw=h((l8,Cw)=>{"use strict";Ea();Vu();xw();var Cq=Dt();Cw.exports=Cq.WeakMap});var Pw=h((c8,Ow)=>{"use strict";Ow.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}});var nd=h(()=>{"use strict";Ea();var Tq=Pw(),Oq=fe(),Pq=Gi(),Rw=$r();for(qa in Tq)Pq(Oq[qa],qa),Rw[qa]=Rw.Array;var qa});var Dw=h((p8,Nw)=>{"use strict";var Rq=Tw();nd();Nw.exports=Rq});var Mw=h((f8,Lw)=>{Lw.exports=Dw()});var Uw=h(()=>{"use strict";var Nq=Z(),Dq=bi(),Lq=Ou().indexOf,Mq=Pi(),id=Dq([].indexOf),qw=!!id&&1/id([1],1,-0)<0,qq=qw||!Mq("indexOf");Nq({target:"Array",proto:!0,forced:qq},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return qw?id(this,t,r)||0:Lq(this,t,r)}})});var jw=h((v8,Fw)=>{"use strict";Uw();var Uq=_t();Fw.exports=Uq("Array","indexOf")});var Gw=h((g8,Jw)=>{"use strict";var Fq=Ye(),jq=jw(),od=Array.prototype;Jw.exports=function(e){var t=e.indexOf;return e===od||Fq(od,e)&&t===od.indexOf?jq:t}});var Hw=h((y8,Bw)=>{"use strict";var Jq=Gw();Bw.exports=Jq});var $w=h((_8,Vw)=>{Vw.exports=Hw()});var Ww=h(()=>{"use strict";var Gq=Z(),Bq=yr().map,Hq=Oi(),Vq=Hq("map");Gq({target:"Array",proto:!0,forced:!Vq},{map:function(t){return Bq(this,t,arguments.length>1?arguments[1]:void 0)}})});var Kw=h((I8,zw)=>{"use strict";Ww();var $q=_t();zw.exports=$q("Array","map")});var Qw=h((E8,Yw)=>{"use strict";var Wq=Ye(),zq=Kw(),ad=Array.prototype;Yw.exports=function(e){var t=e.map;return e===ad||Wq(ad,e)&&t===ad.map?zq:t}});var Zw=h((k8,Xw)=>{"use strict";var Kq=Qw();Xw.exports=Kq});var t0=h((A8,e0)=>{e0.exports=Zw()});var r0=h(()=>{"use strict";var Yq=Z(),Qq=Qe(),Xq=Ji();Yq({target:"Object",stat:!0,sham:!Qq},{create:Xq})});var i0=h((C8,n0)=>{"use strict";r0();var Zq=Dt(),eU=Zq.Object;n0.exports=function(t,r){return eU.create(t,r)}});var a0=h((T8,o0)=>{"use strict";var tU=i0();o0.exports=tU});var l0=h((O8,s0)=>{s0.exports=a0()});var sd=h((P8,c0)=>{"use strict";var rU=Qt();c0.exports=function(e,t,r){return rU.f(e,t,r)}});var p0=h((R8,d0)=>{"use strict";var nU=dn(),iU=sd(),oU=Ge(),aU=Qe(),u0=oU("species");d0.exports=function(e){var t=nU(e);aU&&t&&!t[u0]&&iU(t,u0,{configurable:!0,get:function(){return this}})}});var _0=h((N8,y0)=>{"use strict";var f0=Ji(),sU=sd(),h0=ka(),lU=Ai(),cU=Ta(),uU=Jr(),dU=Ca(),pU=ba(),Ua=wa(),fU=p0(),Ki=Qe(),m0=Vi().fastKey,g0=zr(),v0=g0.set,ld=g0.getterFor;y0.exports={getConstructor:function(e,t,r,n){var i=e(function(c,d){cU(c,o),v0(c,{type:t,index:f0(null),first:null,last:null,size:0}),Ki||(c.size=0),uU(d)||dU(d,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=ld(t),s=function(c,d,u){var p=a(c),f=l(c,d),m,g;return f?f.value=u:(p.last=f={index:g=m0(d,!0),key:d,value:u,previous:m=p.last,next:null,removed:!1},p.first||(p.first=f),m&&(m.next=f),Ki?p.size++:c.size++,g!=="F"&&(p.index[g]=f)),c},l=function(c,d){var u=a(c),p=m0(d),f;if(p!=="F")return u.index[p];for(f=u.first;f;f=f.next)if(f.key===d)return f};return h0(o,{clear:function(){for(var d=this,u=a(d),p=u.first;p;)p.removed=!0,p.previous&&(p.previous=p.previous.next=null),p=p.next;u.first=u.last=null,u.index=f0(null),Ki?u.size=0:d.size=0},delete:function(c){var d=this,u=a(d),p=l(d,c);if(p){var f=p.next,m=p.previous;delete u.index[p.index],p.removed=!0,m&&(m.next=f),f&&(f.previous=m),u.first===p&&(u.first=f),u.last===p&&(u.last=m),Ki?u.size--:d.size--}return!!p},forEach:function(d){for(var u=a(this),p=lU(d,arguments.length>1?arguments[1]:void 0),f;f=f?f.next:u.first;)for(p(f.value,f.key,this);f&&f.removed;)f=f.previous},has:function(d){return!!l(this,d)}}),h0(o,r?{get:function(d){var u=l(this,d);return u&&u.value},set:function(d,u){return s(this,d===0?0:d,u)}}:{add:function(d){return s(this,d=d===0?0:d,d)}}),Ki&&sU(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=ld(t),o=ld(n);pU(e,t,function(a,s){v0(this,{type:n,target:a,state:i(a),kind:s,last:null})},function(){for(var a=o(this),s=a.kind,l=a.last;l&&l.removed;)l=l.previous;return!a.target||!(a.last=l=l?l.next:a.state.first)?(a.target=null,Ua(void 0,!0)):Ua(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},r?"entries":"values",!r,!0),fU(t)}}});var b0=h(()=>{"use strict";var hU=Xu(),mU=_0();hU("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},mU)});var w0=h(()=>{"use strict";b0()});var _r=h((U8,I0)=>{"use strict";var vU=Ii(),gU=TypeError;I0.exports=function(e){if(typeof e=="object"&&"size"in e&&"has"in e&&"add"in e&&"delete"in e&&"keys"in e)return e;throw new gU(vU(e)+" is not a set")}});var k0=h((F8,E0)=>{"use strict";E0.exports=function(e,t){return t===1?function(r,n){return r[e](n)}:function(r,n,i){return r[e](n,i)}}});var br=h((j8,S0)=>{"use strict";var yU=dn(),cd=k0(),A0=yU("Set"),_U=A0.prototype;S0.exports={Set:A0,add:cd("add",1),has:cd("has",1),remove:cd("delete",1),proto:_U}});var wr=h((J8,x0)=>{"use strict";var bU=Et();x0.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,o,a;!(o=bU(i,n)).done;)if(a=t(o.value),a!==void 0)return a}});var En=h((G8,C0)=>{"use strict";var wU=wr();C0.exports=function(e,t,r){return r?wU(e.keys(),t,!0):e.forEach(t)}});var Fa=h((B8,O0)=>{"use strict";var T0=br(),IU=En(),EU=T0.Set,kU=T0.add;O0.exports=function(e){var t=new EU;return IU(e,function(r){kU(t,r)}),t}});var kn=h((H8,P0)=>{"use strict";P0.exports=function(e){return e.size}});var N0=h((V8,R0)=>{"use strict";R0.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var Ir=h(($8,F0)=>{"use strict";var D0=Br(),q0=Yt(),L0=Et(),AU=xi(),SU=N0(),M0="Invalid size",xU=RangeError,CU=TypeError,TU=Math.max,U0=function(e,t){this.set=e,this.size=TU(t,0),this.has=D0(e.has),this.keys=D0(e.keys)};U0.prototype={getIterator:function(){return SU(q0(L0(this.keys,this.set)))},includes:function(e){return L0(this.has,this.set,e)}};F0.exports=function(e){q0(e);var t=+e.size;if(t!==t)throw new CU(M0);var r=AU(t);if(r<0)throw new xU(M0);return new U0(e,r)}});var B0=h((W8,G0)=>{"use strict";var OU=_r(),J0=br(),PU=Fa(),RU=kn(),NU=Ir(),DU=En(),LU=wr(),MU=J0.has,j0=J0.remove;G0.exports=function(t){var r=OU(this),n=NU(t),i=PU(r);return RU(r)<=n.size?DU(r,function(o){n.includes(o)&&j0(i,o)}):LU(n.getIterator(),function(o){MU(r,o)&&j0(i,o)}),i}});var Er=h((z8,H0)=>{"use strict";H0.exports=function(){return!1}});var V0=h(()=>{"use strict";var qU=Z(),UU=B0(),FU=Er(),jU=!FU("difference",function(e){return e.size===0});qU({target:"Set",proto:!0,real:!0,forced:jU},{difference:UU})});var z0=h((Q8,W0)=>{"use strict";var JU=_r(),ud=br(),GU=kn(),BU=Ir(),HU=En(),VU=wr(),$U=ud.Set,$0=ud.add,WU=ud.has;W0.exports=function(t){var r=JU(this),n=BU(t),i=new $U;return GU(r)>n.size?VU(n.getIterator(),function(o){WU(r,o)&&$0(i,o)}):HU(r,function(o){n.includes(o)&&$0(i,o)}),i}});var K0=h(()=>{"use strict";var zU=Z(),KU=pe(),YU=z0(),QU=Er(),XU=!QU("intersection",function(e){return e.size===2&&e.has(1)&&e.has(2)})||KU(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});zU({target:"Set",proto:!0,real:!0,forced:XU},{intersection:YU})});var Q0=h((eK,Y0)=>{"use strict";var ZU=_r(),eF=br().has,tF=kn(),rF=Ir(),nF=En(),iF=wr(),oF=Sa();Y0.exports=function(t){var r=ZU(this),n=rF(t);if(tF(r)<=n.size)return nF(r,function(o){if(n.includes(o))return!1},!0)!==!1;var i=n.getIterator();return iF(i,function(o){if(eF(r,o))return oF(i,"normal",!1)})!==!1}});var X0=h(()=>{"use strict";var aF=Z(),sF=Q0(),lF=Er(),cF=!lF("isDisjointFrom",function(e){return!e});aF({target:"Set",proto:!0,real:!0,forced:cF},{isDisjointFrom:sF})});var eI=h((nK,Z0)=>{"use strict";var uF=_r(),dF=kn(),pF=En(),fF=Ir();Z0.exports=function(t){var r=uF(this),n=fF(t);return dF(r)>n.size?!1:pF(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var tI=h(()=>{"use strict";var hF=Z(),mF=eI(),vF=Er(),gF=!vF("isSubsetOf",function(e){return e});hF({target:"Set",proto:!0,real:!0,forced:gF},{isSubsetOf:mF})});var nI=h((aK,rI)=>{"use strict";var yF=_r(),_F=br().has,bF=kn(),wF=Ir(),IF=wr(),EF=Sa();rI.exports=function(t){var r=yF(this),n=wF(t);if(bF(r)<n.size)return!1;var i=n.getIterator();return IF(i,function(o){if(!_F(r,o))return EF(i,"normal",!1)})!==!1}});var iI=h(()=>{"use strict";var kF=Z(),AF=nI(),SF=Er(),xF=!SF("isSupersetOf",function(e){return!e});kF({target:"Set",proto:!0,real:!0,forced:xF},{isSupersetOf:AF})});var aI=h((cK,oI)=>{"use strict";var CF=_r(),dd=br(),TF=Fa(),OF=Ir(),PF=wr(),RF=dd.add,NF=dd.has,DF=dd.remove;oI.exports=function(t){var r=CF(this),n=OF(t).getIterator(),i=TF(r);return PF(n,function(o){NF(r,o)?DF(i,o):RF(i,o)}),i}});var sI=h(()=>{"use strict";var LF=Z(),MF=aI(),qF=Er();LF({target:"Set",proto:!0,real:!0,forced:!qF("symmetricDifference")},{symmetricDifference:MF})});var cI=h((pK,lI)=>{"use strict";var UF=_r(),FF=br().add,jF=Fa(),JF=Ir(),GF=wr();lI.exports=function(t){var r=UF(this),n=JF(t).getIterator(),i=jF(r);return GF(n,function(o){FF(i,o)}),i}});var uI=h(()=>{"use strict";var BF=Z(),HF=cI(),VF=Er();BF({target:"Set",proto:!0,real:!0,forced:!VF("union")},{union:HF})});var Yi=h((mK,dI)=>{"use strict";var $F=yn(),WF=String;dI.exports=function(e){if($F(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return WF(e)}});var mI=h((vK,hI)=>{"use strict";var pd=be(),zF=xi(),KF=Yi(),YF=Gr(),QF=pd("".charAt),pI=pd("".charCodeAt),XF=pd("".slice),fI=function(e){return function(t,r){var n=KF(YF(t)),i=zF(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=pI(n,i),a<55296||a>56319||i+1===o||(s=pI(n,i+1))<56320||s>57343?e?QF(n,i):a:e?XF(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};hI.exports={codeAt:fI(!1),charAt:fI(!0)}});var _I=h(()=>{"use strict";var ZF=mI().charAt,ej=Yi(),gI=zr(),tj=ba(),vI=wa(),yI="String Iterator",rj=gI.set,nj=gI.getterFor(yI);tj(String,"String",function(e){rj(this,{type:yI,string:ej(e),index:0})},function(){var t=nj(this),r=t.string,n=t.index,i;return n>=r.length?vI(void 0,!0):(i=ZF(r,n),t.index+=i.length,vI(i,!1))})});var wI=h((_K,bI)=>{"use strict";Ea();Vu();w0();V0();K0();X0();tI();iI();sI();uI();_I();var ij=Dt();bI.exports=ij.Set});var EI=h((bK,II)=>{"use strict";var oj=wI();nd();II.exports=oj});var AI=h((wK,kI)=>{kI.exports=EI()});var xI=h(SI=>{"use strict";SI.f=Object.getOwnPropertySymbols});var PI=h((EK,OI)=>{"use strict";var CI=Qe(),aj=be(),sj=Et(),lj=pe(),fd=Nu(),cj=xI(),uj=Tc(),dj=fn(),pj=Qo(),An=Object.assign,TI=Object.defineProperty,fj=aj([].concat);OI.exports=!An||lj(function(){if(CI&&An({b:1},An(TI({},"a",{enumerable:!0,get:function(){TI(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(i){t[i]=i}),An({},e)[r]!==7||fd(An({},t)).join("")!==n})?function(t,r){for(var n=dj(t),i=arguments.length,o=1,a=cj.f,s=uj.f;i>o;)for(var l=pj(arguments[o++]),c=a?fj(fd(l),a(l)):fd(l),d=c.length,u=0,p;d>u;)p=c[u++],(!CI||sj(s,l,p))&&(n[p]=l[p]);return n}:An});var NI=h(()=>{"use strict";var hj=Z(),RI=PI();hj({target:"Object",stat:!0,arity:2,forced:Object.assign!==RI},{assign:RI})});var LI=h((SK,DI)=>{"use strict";NI();var mj=Dt();DI.exports=mj.Object.assign});var qI=h((xK,MI)=>{"use strict";var vj=LI();MI.exports=vj});var FI=h((CK,UI)=>{UI.exports=qI()});var hd=h((TK,jI)=>{"use strict";jI.exports=`
20
+ \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var BI=h((OK,GI)=>{"use strict";var gj=be(),yj=Gr(),_j=Yi(),vd=hd(),JI=gj("".replace),bj=RegExp("^["+vd+"]+"),wj=RegExp("(^|[^"+vd+"])["+vd+"]+$"),md=function(e){return function(t){var r=_j(yj(t));return e&1&&(r=JI(r,bj,"")),e&2&&(r=JI(r,wj,"$1")),r}};GI.exports={start:md(1),end:md(2),trim:md(3)}});var WI=h((PK,$I)=>{"use strict";var Ij=Cu().PROPER,Ej=pe(),HI=hd(),VI="\u200B\x85\u180E";$I.exports=function(e){return Ej(function(){return!!HI[e]()||VI[e]()!==VI||Ij&&HI[e].name!==e})}});var zI=h(()=>{"use strict";var kj=Z(),Aj=BI().trim,Sj=WI();kj({target:"String",proto:!0,forced:Sj("trim")},{trim:function(){return Aj(this)}})});var YI=h((DK,KI)=>{"use strict";zI();var xj=_t();KI.exports=xj("String","trim")});var XI=h((LK,QI)=>{"use strict";var Cj=Ye(),Tj=YI(),gd=String.prototype;QI.exports=function(e){var t=e.trim;return typeof e=="string"||e===gd||Cj(gd,e)&&t===gd.trim?Tj:t}});var eE=h((MK,ZI)=>{"use strict";var Oj=XI();ZI.exports=Oj});var rE=h((qK,tE)=>{tE.exports=eE()});var oE=h(()=>{"use strict";var Pj=Z(),nE=Ci(),Rj=tu(),Nj=Ce(),iE=Tu(),Dj=gn(),Lj=vr(),Mj=au(),qj=Ge(),Uj=Oi(),Fj=Ni(),jj=Uj("slice"),Jj=qj("species"),yd=Array,Gj=Math.max;Pj({target:"Array",proto:!0,forced:!jj},{slice:function(t,r){var n=Lj(this),i=Dj(n),o=iE(t,i),a=iE(r===void 0?i:r,i),s,l,c;if(nE(n)&&(s=n.constructor,Rj(s)&&(s===yd||nE(s.prototype))?s=void 0:Nj(s)&&(s=s[Jj],s===null&&(s=void 0)),s===yd||s===void 0))return Fj(n,o,a);for(l=new(s===void 0?yd:s)(Gj(a-o,0)),c=0;o<a;o++,c++)o in n&&Mj(l,c,n[o]);return l.length=c,l}})});var sE=h((jK,aE)=>{"use strict";oE();var Bj=_t();aE.exports=Bj("Array","slice")});var cE=h((JK,lE)=>{"use strict";var Hj=Ye(),Vj=sE(),_d=Array.prototype;lE.exports=function(e){var t=e.slice;return e===_d||Hj(_d,e)&&t===_d.slice?Vj:t}});var dE=h((GK,uE)=>{"use strict";var $j=cE();uE.exports=$j});var fE=h((BK,pE)=>{pE.exports=dE()});var bd=S(()=>{});var mE=h((VK,hE)=>{"use strict";var Wj=Ce(),zj=Kt(),Kj=Ge(),Yj=Kj("match");hE.exports=function(e){var t;return Wj(e)&&((t=e[Yj])!==void 0?!!t:zj(e)==="RegExp")}});var gE=h(($K,vE)=>{"use strict";var Qj=mE(),Xj=TypeError;vE.exports=function(e){if(Qj(e))throw new Xj("The method doesn't accept regular expressions");return e}});var _E=h((WK,yE)=>{"use strict";var Zj=Ge(),eJ=Zj("match");yE.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[eJ]=!1,"/./"[e](t)}catch(n){}}return!1}});var IE=h(()=>{"use strict";var tJ=Z(),rJ=bi(),nJ=$c().f,iJ=Xc(),bE=Yi(),oJ=gE(),aJ=Gr(),sJ=_E(),lJ=pn(),cJ=rJ("".slice),uJ=Math.min,wE=sJ("startsWith"),dJ=!lJ&&!wE&&!!function(){var e=nJ(String.prototype,"startsWith");return e&&!e.writable}();tJ({target:"String",proto:!0,forced:!dJ&&!wE},{startsWith:function(t){var r=bE(aJ(this));oJ(t);var n=iJ(uJ(arguments.length>1?arguments[1]:void 0,r.length)),i=bE(t);return cJ(r,n,n+i.length)===i}})});var kE=h((YK,EE)=>{"use strict";IE();var pJ=_t();EE.exports=pJ("String","startsWith")});var SE=h((QK,AE)=>{"use strict";var fJ=Ye(),hJ=kE(),wd=String.prototype;AE.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===wd||fJ(wd,e)&&t===wd.startsWith?hJ:t}});var CE=h((XK,xE)=>{"use strict";var mJ=SE();xE.exports=mJ});var OE=h((ZK,TE)=>{TE.exports=CE()});var LE=h((e7,DE)=>{"use strict";var RE=be(),vJ=Br(),gJ=Ce(),yJ=ut(),PE=Ni(),_J=un(),NE=Function,bJ=RE([].concat),wJ=RE([].join),Id={},IJ=function(e,t,r){if(!yJ(Id,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";Id[t]=NE("C,a","return new C("+wJ(n,",")+")")}return Id[t](e,r)};DE.exports=_J?NE.bind:function(t){var r=vJ(this),n=r.prototype,i=PE(arguments,1),o=function(){var s=bJ(i,PE(arguments));return this instanceof o?IJ(r,s.length,s):r.apply(t,s)};return gJ(n)&&(o.prototype=n),o}});var qE=h(()=>{"use strict";var EJ=Z(),ME=LE();EJ({target:"Function",proto:!0,forced:Function.bind!==ME},{bind:ME})});var FE=h((n7,UE)=>{"use strict";qE();var kJ=_t();UE.exports=kJ("Function","bind")});var JE=h((i7,jE)=>{"use strict";var AJ=Ye(),SJ=FE(),Ed=Function.prototype;jE.exports=function(e){var t=e.bind;return e===Ed||AJ(Ed,e)&&t===Ed.bind?SJ:t}});var BE=h((o7,GE)=>{"use strict";var xJ=JE();GE.exports=xJ});var VE=h((a7,HE)=>{HE.exports=BE()});function is(e,t){we.__h&&we.__h(ce,e,no||t),no=0;var r=ce.__H||(ce.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Jt(e){return no=1,CJ(Nk,e)}function CJ(e,t,r){var n=is(Tn++,2);if(n.t=e,!n.__c&&(n.__=[Nk(void 0,t),function(s){var l=n.__N?n.__N[0]:n.__[0],c=n.t(l,s);l!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=ce,!ce.__f)){var i=function(s,l,c){var d;if(!n.__c.__H)return!0;var u=(0,Hd.default)(d=n.__c.__H.__).call(d,function(f){return!!f.__c});if((0,Ck.default)(u).call(u,function(f){return!f.__N}))return!o||o.call(this,s,l,c);var p=n.__c.props!==s;return(0,Te.default)(u).call(u,function(f){if(f.__N){var m=f.__[0];f.__=f.__N,f.__N=void 0,m!==f.__[0]&&(p=!0)}}),o&&o.call(this,s,l,c)||p};ce.__f=!0;var o=ce.shouldComponentUpdate,a=ce.componentWillUpdate;ce.componentWillUpdate=function(s,l,c){if(this.__e){var d=o;o=void 0,i(s,l,c),o=d}a&&a.call(this,s,l,c)},ce.shouldComponentUpdate=i}return n.__N||n.__}function Yr(e,t){var r=is(Tn++,3);!we.__s&&Rk(r.__H,t)&&(r.__=e,r.u=t,ce.__H.__h.push(r))}function Zi(e){return no=5,tr(function(){return{current:e}},[])}function tr(e,t){var r=is(Tn++,7);return Rk(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function bt(e,t){return no=8,tr(function(){return e},t)}function TJ(e){var t=ce.context[e.__c],r=is(Tn++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(ce)),t.props.value):e.__}function OJ(){for(var e;e=Pk.shift();)if(e.__P&&e.__H)try{var t,r;(0,Te.default)(t=e.__H.__h).call(t,Ha),(0,Te.default)(r=e.__H.__h).call(r,Rd),e.__H.__h=[]}catch(n){e.__H.__h=[],we.__e(n,e.__v)}}function PJ(e){var t,r=function(){clearTimeout(n),ZE&&cancelAnimationFrame(t),(0,jt.default)(e)},n=(0,jt.default)(r,100);ZE&&(t=requestAnimationFrame(r))}function Ha(e){var t=ce,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ce=t}function Rd(e){var t=ce;e.__c=e.__(),ce=t}function Rk(e,t){return!e||e.length!==t.length||(0,Xa.default)(t).call(t,function(r,n){return r!==e[n]})}function Nk(e,t){return typeof t=="function"?t(e):t}function RJ(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Nd(){throw new Error("setTimeout has not been defined")}function Dd(){throw new Error("clearTimeout has not been defined")}function Lk(e){if(Lt===jt.default)return(0,jt.default)(e,0);if((Lt===Nd||!Lt)&&jt.default)return Lt=jt.default,(0,jt.default)(e,0);try{return Lt(e,0)}catch(t){try{return Lt.call(null,e,0)}catch(r){return Lt.call(this,e,0)}}}function NJ(e){if(Mt===clearTimeout)return clearTimeout(e);if((Mt===Dd||!Mt)&&clearTimeout)return Mt=clearTimeout,clearTimeout(e);try{return Mt(e)}catch(t){try{return Mt.call(null,e)}catch(r){return Mt.call(this,e)}}}function DJ(){!Sn||!Ar||(Sn=!1,Ar.length?er=(0,ns.default)(Ar).call(Ar,er):Va=-1,er.length&&Mk())}function Mk(){if(!Sn){var e=Lk(DJ);Sn=!0;for(var t=er.length;t;){for(Ar=er,er=[];++Va<t;)Ar&&Ar[Va].run();Va=-1,t=er.length}Ar=null,Sn=!1,NJ(e)}}function qk(e,t){this.fun=e,this.array=t}function nr(){}function qJ(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function UJ(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}function GJ(e,t){return Me(e,0)^45?(((t<<2^Me(e,0))<<2^Me(e,1))<<2^Me(e,2))<<2^Me(e,3):0}function jk(e){return(0,Wd.default)(e).call(e)}function BJ(e,t){return(e=t.exec(e))?e[0]:e}function Y(e,t,r){return e.replace(t,r)}function Ld(e,t){return(0,rr.default)(e).call(e,t)}function Me(e,t){return e.charCodeAt(t)|0}function io(e,t,r){return(0,zd.default)(e).call(e,t,r)}function qt(e){return e.length}function Xd(e){return e.length}function ja(e,t){return t.push(e),e}function HJ(e,t){return(0,ro.default)(e).call(e,t).join("")}function ss(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:as,column:On,length:a,return:""}}function Qi(e,t){return JJ(ss("",null,null,"",null,null,0),e,{length:-e.length},t)}function VJ(){return Ie}function $J(){return Ie=tt>0?Me(Rn,--tt):0,On--,Ie===10&&(On=1,as--),Ie}function dt(){return Ie=tt<Jk?Me(Rn,tt++):0,On++,Ie===10&&(On=1,as++),Ie}function Gt(){return Me(Rn,tt)}function $a(){return tt}function uo(e,t){return io(Rn,e,t)}function oo(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Gk(e){return as=On=1,Jk=qt(Rn=e),tt=0,[]}function Bk(e){return Rn="",e}function Wa(e){return jk(uo(tt-1,Md(e===91?e+2:e===40?e+1:e)))}function WJ(e){for(;(Ie=Gt())&&Ie<33;)dt();return oo(e)>2||oo(Ie)>3?"":" "}function zJ(e,t){for(;--t&&dt()&&!(Ie<48||Ie>102||Ie>57&&Ie<65||Ie>70&&Ie<97););return uo(e,$a()+(t<6&&Gt()==32&&dt()==32))}function Md(e){for(;dt();)switch(Ie){case e:return tt;case 34:case 39:e!==34&&e!==39&&Md(Ie);break;case 40:e===41&&Md(e);break;case 92:dt();break}return tt}function KJ(e,t){for(;dt()&&e+Ie!==57&&!(e+Ie===84&&Gt()===47););return"/*"+uo(t,tt-1)+"*"+os(e===47?e:dt())}function YJ(e){for(;!oo(Gt());)dt();return uo(e,tt)}function QJ(e){return Bk(za("",null,null,null,[""],e=Gk(e),0,[0],e))}function za(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,g=1,y=1,v=1,b=0,k="",x=i,P=o,C=n,A=k;y;)switch(m=b,b=dt()){case 40:if(m!=108&&Me(A,u-1)==58){Ld(A+=Y(Wa(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:A+=Wa(b);break;case 9:case 10:case 13:case 32:A+=WJ(m);break;case 92:A+=zJ($a()-1,7);continue;case 47:switch(Gt()){case 42:case 47:ja(XJ(KJ(dt(),$a()),t,r),l);break;default:A+="/"}break;case 123*g:s[c++]=qt(A)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+d:f>0&&qt(A)-u&&ja(f>32?tk(A+";",n,r,u-1):tk(Y(A," ","")+";",n,r,u-2),l);break;case 59:A+=";";default:if(ja(C=ek(A,t,r,c,d,i,s,k,x=[],P=[],u),o),b===123)if(d===0)za(A,t,C,C,x,o,u,s,P);else switch(p===99&&Me(A,3)===110?100:p){case 100:case 109:case 115:za(e,C,C,n&&ja(ek(e,C,C,0,0,i,s,k,i,x=[],u),P),i,P,u,s,n?x:P);break;default:za(A,C,C,C,[""],P,0,s,P)}}c=d=f=0,g=v=1,k=A="",u=a;break;case 58:u=1+qt(A),f=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&$J()==125)continue}switch(A+=os(b),b*g){case 38:v=d>0?1:(A+="\f",-1);break;case 44:s[c++]=(qt(A)-1)*v,v=1;break;case 64:Gt()===45&&(A+=Wa(dt())),p=Gt(),d=u=qt(k=A+=YJ($a())),b++;break;case 45:m===45&&qt(A)==2&&(g=0)}}return o}function ek(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=Xd(p),m=0,g=0,y=0;m<n;++m)for(var v=0,b=io(e,u+1,u=jJ(g=a[m])),k=e;v<f;++v)(k=jk(g>0?p[v]+" "+b:Y(b,/&\f/g,p[v])))&&(l[y++]=k);return ss(e,t,r,i===0?Yd:s,l,c,d)}function XJ(e,t,r){return ss(e,t,r,Kd,os(VJ()),io(e,2,-2),0)}function tk(e,t,r,n){return ss(e,t,r,Qd,io(e,0,n),io(e,n+1,-1),n)}function xn(e,t){for(var r="",n=Xd(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function ZJ(e,t,r,n){switch(e.type){case FJ:case Qd:return e.return=e.return||e.value;case Kd:return"";case Fk:return e.return=e.value+"{"+xn(e.children,n)+"}";case Yd:e.value=e.props.join(",")}return qt(r=xn(e.children,n))?e.return=e.value+"{"+r+"}":""}function e2(e){var t=Xd(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function t2(e){return function(t){t.root||(t=t.return)&&e(t)}}function Vk(e,t){switch(GJ(e,t)){case 5103:return H+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return H+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return H+e+es+e+Be+e+e;case 6828:case 4268:return H+e+Be+e+e;case 6165:return H+e+Be+"flex-"+e+e;case 5187:return H+e+Y(e,/(\w+).+(:[^]+)/,H+"box-$1$2"+Be+"flex-$1$2")+e;case 5443:return H+e+Be+"flex-item-"+Y(e,/flex-|-self/,"")+e;case 4675:return H+e+Be+"flex-line-pack"+Y(e,/align-content|flex-|-self/,"")+e;case 5548:return H+e+Be+Y(e,"shrink","negative")+e;case 5292:return H+e+Be+Y(e,"basis","preferred-size")+e;case 6060:return H+"box-"+Y(e,"-grow","")+H+e+Be+Y(e,"grow","positive")+e;case 4554:return H+Y(e,/([^-])(transform)/g,"$1"+H+"$2")+e;case 6187:return Y(Y(Y(e,/(zoom-|grab)/,H+"$1"),/(image-set)/,H+"$1"),e,"")+e;case 5495:case 3959:return Y(e,/(image-set\([^]*)/,H+"$1$`$1");case 4968:return Y(Y(e,/(.+:)(flex-)?(.*)/,H+"box-pack:$3"+Be+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+H+e+e;case 4095:case 3583:case 4068:case 2532:return Y(e,/(.+)-inline(.+)/,H+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(qt(e)-1-t>6)switch(Me(e,t+1)){case 109:if(Me(e,t+4)!==45)break;case 102:return Y(e,/(.+:)(.+)-([^]+)/,"$1"+H+"$2-$3$1"+es+(Me(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ld(e,"stretch")?Vk(Y(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Me(e,t+1)!==115)break;case 6444:switch(Me(e,qt(e)-3-(~Ld(e,"!important")&&10))){case 107:return Y(e,":",":"+H)+e;case 101:return Y(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+H+(Me(e,14)===45?"inline-":"")+"box$3$1"+H+"$2$3$1"+Be+"$2box$3")+e}break;case 5936:switch(Me(e,t+11)){case 114:return H+e+Be+Y(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return H+e+Be+Y(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return H+e+Be+Y(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return H+e+Be+e+e}return e}function Wk(){if(ik)return Ja.exports;ik=1;let e=Wk();return Ja.exports={default:e},Ja.exports.default=e,Ja.exports}function ao(e,t,r){var n,i="";return(0,Te.default)(n=r.split(" ")).call(n,function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}function m2(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function g2(e){var t=(0,Tk.default)(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function so(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return Ut={name:i.name,styles:i.styles,next:Ut},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Ut={name:a.name,styles:a.styles,next:Ut},a=a.next;var s=o.styles+";";return s}return b2(e,t,r)}case"function":{if(e!==void 0){var l=Ut,c=r(e);return Ut=l,so(e,t,c)}break}}var d=r;if(t==null)return d;var u=t[d];return u!==void 0?u:d}function b2(e,t,r){var n="";if((0,to.default)(r))for(var i=0;i<r.length;i++)n+=so(e,t,r[i])+";";else for(var o in r){var a=r[o];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=o+"{"+t[s]+"}":ok(s)&&(n+=Ad(o)+":"+ak(o,s)+";")}else if((0,to.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)ok(a[l])&&(n+=Ad(o)+":"+ak(o,a[l])+";");else{var c=so(e,t,a);switch(o){case"animation":case"animationName":{n+=Ad(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function Sr(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";Ut=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=so(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=so(r,t,e[s]),n){var l=o;i+=l[s]}sk.lastIndex=0;for(var c="",d;(d=sk.exec(i))!==null;)c+="-"+d[1];var u=m2(i)+c;return{name:u,styles:i,next:Ut}}function D(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Sr(t)}function P2(e,t,r){var n=[],i=ao(e,n,r);return n.length<2?r:i+t(n)}function _(e,t,r,n,i,o){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var c={type:e,props:l,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--D2,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return N.vnode&&N.vnode(c),c}function po(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=Jt(e());return Yr(()=>{let n=()=>{r(e())};return window.addEventListener("resize",n),"onorientationchange"in window&&window.addEventListener("orientationchange",n),n(),()=>{window.removeEventListener("resize",n),"onorientationchange"in window&&window.removeEventListener("orientationchange",n)}},[]),t}function XG(e){if(!e||e==="none")return"";let t=e.match(/^matrix\(([^)]+)\)$/);if(!t)return"";let r=t[1].split(",").map(Number);if(r.length<6)return"";let[n,i]=r,o=-Math.atan2(i,n)*(180/Math.PI),a=Math.round(o);return a===90?"rotateZ(90deg) translateY(-100vw)":a===-90||a===270?"rotateZ(-90deg) translateX(-100vh)":a===180||a===-180?"rotateZ(180deg) translate(-100vw, -100vh)":`rotateZ(${a}deg)`}function iA(e){let t=window.getComputedStyle(document.body).transform,r="";t&&t!=="none"&&(r=XG(t)),e.style.transform=r,e.style.transformOrigin="0 0"}function ZG(e){let t=()=>iA(e);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}}function rB(s){var l=s,{elementTag:e="Image",src:t="",children:r,handleExposure:n,className:i,imgStyle:o}=l,a=je(l,["elementTag","src","children","handleExposure","className","imgStyle"]);let c=tB(()=>{t&&n()});return e==="Image"?_("div",{className:i,style:{borderRadius:"8px"},children:Je("img",F(T({},a),{ref:c,src:t!=null?t:"",style:T({display:"block",width:"100%",height:"auto",objectFit:"cover",maxWidth:"100%",maxHeight:"100%",aspectRatio:"1 / 1",borderRadius:"8px"},o||{})}))}):_("div",F(T({},a),{ref:c,className:i,children:r}))}function nB(e,t){if(!e)return null;let r=Array.isArray(t)?t[0]:t,n=Array.isArray(t)?t[1]:0;return Array.isArray(e)?e.map((i,o)=>i&&typeof i=="object"&&"type"in i?Je(i.type,F(T({},i.props),{style:F(T({},i.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0}),key:i.key||o})):i):e&&typeof e=="object"&&"type"in e?Je(e.type,F(T({},e.props),{style:F(T({},e.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0})})):e}function lB(e,t){let r=t.split("."),n=e;for(let i of r){if(typeof n!="object"||n===null||!Object.prototype.hasOwnProperty.call(n,i))return;n=n[i]}return n}function _k(e,t,r){return cs.call(t,"css")?_(rp,Xk(e,t),r):_(e,t,r)}function hB(e,t,r){return cs.call(t,"css")?_(rp,Xk(e,t),r):_(e,t,r)}function Jd({children:e,values:t={},style:r}){let n=e.split(/({{\s*\w+\s*}})/g);return _("div",{style:r,children:n.map((i,o)=>{let a=i.match(/^{{\s*(\w+)\s*}}$/);if(a){let s=a[1];return t[s]!==void 0?_(De,{children:t[s]},o):null}return _(De,{children:i},o)})})}function gB({src:e,alt:t="",width:r=120,height:n=120,top:i="-60px",style:o={}}){let[a,s]=Jt(!1);return a?null:_("div",{style:T({position:"absolute",top:i,left:"50%",transform:"translateX(-50%)",zIndex:10,width:r,height:n},o),children:_("img",{src:e,alt:t,width:r,height:n,style:{display:"block",width:"100%",height:"100%",objectFit:"contain"},onError:()=>s(!0)})})}function bB({children:e,style:t}){return _("div",{style:`${yB.styles} ${t}`,children:[e,_("svg",{style:`${_B.styles} `,width:"18",height:"10",viewBox:"0 0 18 10",children:[_("polygon",{points:"9,10 0,1 18,1",fill:"#ffffff52"}),_("polygon",{points:"9,9 2,1 16,1",fill:"#4F396D"})]})]})}function LB(e,t){return qe(e,0)^45?(((t<<2^qe(e,0))<<2^qe(e,1))<<2^qe(e,2))<<2^qe(e,3):0}function yA(e){return(0,Wd.default)(e).call(e)}function MB(e,t){return(e=t.exec(e))?e[0]:e}function $(e,t,r){return e.replace(t,r)}function Gd(e,t){return(0,rr.default)(e).call(e,t)}function qe(e,t){return e.charCodeAt(t)|0}function lo(e,t,r){return(0,zd.default)(e).call(e,t,r)}function Ft(e){return e.length}function sp(e){return e.length}function Ba(e,t){return t.push(e),e}function qB(e,t){return(0,ro.default)(e).call(e,t).join("")}function ms(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:hs,column:Pn,length:a,return:""}}function Xi(e,t){return DB(ms("",null,null,"",null,null,0),e,{length:-e.length},t)}function UB(){return Ee}function FB(){return Ee=rt>0?qe(Dn,--rt):0,Pn--,Ee===10&&(Pn=1,hs--),Ee}function pt(){return Ee=rt<_A?qe(Dn,rt++):0,Pn++,Ee===10&&(Pn=1,hs++),Ee}function Bt(){return qe(Dn,rt)}function Ka(){return rt}function fo(e,t){return lo(Dn,e,t)}function co(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function bA(e){return hs=Pn=1,_A=Ft(Dn=e),rt=0,[]}function wA(e){return Dn="",e}function Ya(e){return yA(fo(rt-1,Bd(e===91?e+2:e===40?e+1:e)))}function jB(e){for(;(Ee=Bt())&&Ee<33;)pt();return co(e)>2||co(Ee)>3?"":" "}function JB(e,t){for(;--t&&pt()&&!(Ee<48||Ee>102||Ee>57&&Ee<65||Ee>70&&Ee<97););return fo(e,Ka()+(t<6&&Bt()==32&&pt()==32))}function Bd(e){for(;pt();)switch(Ee){case e:return rt;case 34:case 39:e!==34&&e!==39&&Bd(Ee);break;case 40:e===41&&Bd(e);break;case 92:pt();break}return rt}function GB(e,t){for(;pt()&&e+Ee!==57&&!(e+Ee===84&&Bt()===47););return"/*"+fo(t,rt-1)+"*"+fs(e===47?e:pt())}function BB(e){for(;!co(Bt());)pt();return fo(e,rt)}function HB(e){return wA(Qa("",null,null,null,[""],e=bA(e),0,[0],e))}function Qa(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,g=1,y=1,v=1,b=0,k="",x=i,P=o,C=n,A=k;y;)switch(m=b,b=pt()){case 40:if(m!=108&&qe(A,u-1)==58){Gd(A+=$(Ya(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:A+=Ya(b);break;case 9:case 10:case 13:case 32:A+=jB(m);break;case 92:A+=JB(Ka()-1,7);continue;case 47:switch(Bt()){case 42:case 47:Ba(VB(GB(pt(),Ka()),t,r),l);break;default:A+="/"}break;case 123*g:s[c++]=Ft(A)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+d:v==-1&&(A=$(A,/\f/g,"")),f>0&&Ft(A)-u&&Ba(f>32?wk(A+";",n,r,u-1):wk($(A," ","")+";",n,r,u-2),l);break;case 59:A+=";";default:if(Ba(C=bk(A,t,r,c,d,i,s,k,x=[],P=[],u),o),b===123)if(d===0)Qa(A,t,C,C,x,o,u,s,P);else switch(p===99&&qe(A,3)===110?100:p){case 100:case 108:case 109:case 115:Qa(e,C,C,n&&Ba(bk(e,C,C,0,0,i,s,k,i,x=[],u),P),i,P,u,s,n?x:P);break;default:Qa(A,C,C,C,[""],P,0,s,P)}}c=d=f=0,g=v=1,k=A="",u=a;break;case 58:u=1+Ft(A),f=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&FB()==125)continue}switch(A+=fs(b),b*g){case 38:v=d>0?1:(A+="\f",-1);break;case 44:s[c++]=(Ft(A)-1)*v,v=1;break;case 64:Bt()===45&&(A+=Ya(pt())),p=Bt(),d=u=Ft(k=A+=BB(Ka())),b++;break;case 45:m===45&&Ft(A)==2&&(g=0)}}return o}function bk(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=sp(p),m=0,g=0,y=0;m<n;++m)for(var v=0,b=lo(e,u+1,u=NB(g=a[m])),k=e;v<f;++v)(k=yA(g>0?p[v]+" "+b:$(b,/&\f/g,p[v])))&&(l[y++]=k);return ms(e,t,r,i===0?op:s,l,c,d)}function VB(e,t,r){return ms(e,t,r,vA,fs(UB()),lo(e,2,-2),0)}function wk(e,t,r,n){return ms(e,t,r,ap,lo(e,0,n),lo(e,n+1,-1),n)}function Cn(e,t){for(var r="",n=sp(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function $B(e,t,r,n){switch(e.type){case RB:if(e.children.length)break;case PB:case ap:return e.return=e.return||e.value;case vA:return"";case gA:return e.return=e.value+"{"+Cn(e.children,n)+"}";case op:e.value=e.props.join(",")}return Ft(r=Cn(e.children,n))?e.return=e.value+"{"+r+"}":""}function WB(e){var t=sp(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function zB(e){return function(t){t.root||(t=t.return)&&e(t)}}function IA(e,t){switch(LB(e,t)){case 5103:return V+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return V+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return V+e+rs+e+He+e+e;case 6828:case 4268:return V+e+He+e+e;case 6165:return V+e+He+"flex-"+e+e;case 5187:return V+e+$(e,/(\w+).+(:[^]+)/,V+"box-$1$2"+He+"flex-$1$2")+e;case 5443:return V+e+He+"flex-item-"+$(e,/flex-|-self/,"")+e;case 4675:return V+e+He+"flex-line-pack"+$(e,/align-content|flex-|-self/,"")+e;case 5548:return V+e+He+$(e,"shrink","negative")+e;case 5292:return V+e+He+$(e,"basis","preferred-size")+e;case 6060:return V+"box-"+$(e,"-grow","")+V+e+He+$(e,"grow","positive")+e;case 4554:return V+$(e,/([^-])(transform)/g,"$1"+V+"$2")+e;case 6187:return $($($(e,/(zoom-|grab)/,V+"$1"),/(image-set)/,V+"$1"),e,"")+e;case 5495:case 3959:return $(e,/(image-set\([^]*)/,V+"$1$`$1");case 4968:return $($(e,/(.+:)(flex-)?(.*)/,V+"box-pack:$3"+He+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+V+e+e;case 4095:case 3583:case 4068:case 2532:return $(e,/(.+)-inline(.+)/,V+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ft(e)-1-t>6)switch(qe(e,t+1)){case 109:if(qe(e,t+4)!==45)break;case 102:return $(e,/(.+:)(.+)-([^]+)/,"$1"+V+"$2-$3$1"+rs+(qe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Gd(e,"stretch")?IA($(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(qe(e,t+1)!==115)break;case 6444:switch(qe(e,Ft(e)-3-(~Gd(e,"!important")&&10))){case 107:return $(e,":",":"+V)+e;case 101:return $(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+V+(qe(e,14)===45?"inline-":"")+"box$3$1"+V+"$2$3$1"+He+"$2box$3")+e}break;case 5936:switch(qe(e,t+11)){case 114:return V+e+He+$(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return V+e+He+$(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return V+e+He+$(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return V+e+He+e+e}return e}function Ek(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Od(e,t,r){var n=[],i=ao(e,n,r);return n.length<2?r:i+t(n)}function Sk(e){if(e==="top"){let t=0;EA.forEach((r,n)=>{let i=r.querySelector(".toast");i&&(n===0?i.style.top=`max(${kk}px, env(safe-area-inset-top))`:i.style.top=`calc(max(${kk}px, env(safe-area-inset-top)) + ${t}px)`,t+=i.offsetHeight+Ak)})}else if(e==="center"){let t=0;kA.forEach(r=>{let n=r.querySelector(".toast");n&&(n.style.top=`calc(50% + ${t}px)`,t+=n.offsetHeight+Ak)})}}function ho(){let e=!1,t=null,r=0,n=new Set,i=a=>w(this,null,function*(){let s=e;if(r++,e=!0,!s)try{let{iframe:l}=yield eo.acquire(),c=l.contentDocument;if(c)t=c.createElement("div"),t.id="loading-root",c.body.appendChild(t),mr(_(d5,{}),t);else throw new Error("Iframe document is not available.")}catch(l){console.error("[LoadingManager] Failed to show loading:",l),r=0,e=!1,eo.release();return}if(a!=null&&a.duration&&typeof a.duration=="number"){let l=setTimeout(()=>{o(),n.delete(l)},a.duration);n.add(l)}}),o=()=>{var a;e&&(r--,r<=0&&(r=0,e=!1,n.forEach(s=>clearTimeout(s)),n.clear(),t&&(mr(null,t),(a=t.parentNode)==null||a.removeChild(t),t=null),eo.release()))};return{show:i,hide:o,get isLoading(){return e}}}var Hd,Ck,Te,ns,Xa,jt,Za,to,Vd,rr,ro,Tk,Ok,$d,Wd,zd,d7,Pd,Tn,ce,kd,$E,no,Pk,we,WE,zE,KE,YE,QE,XE,ZE,Dk,ve,Lt,Mt,er,Sn,Ar,Va,LJ,Oe,MJ,Uk,Be,es,H,Kd,Yd,Qd,FJ,Fk,jJ,os,JJ,as,On,Jk,tt,Ie,Rn,r2,n2,i2,rk,o2,a2,s2,l2,c2,Hk,u2,nk,d2,p2,f2,$k,Ja,ik,h2,Zd,ls,v2,y2,_2,zk,ok,Ad,ak,sk,Ut,w2,Kk,Yk,lk,cs,ep,Qk,tp,us,I2,E2,k2,A2,S2,qd,Ud,Xk,x2,rp,C2,ck,T2,O2,R2,N2,Sd,uk,xd,Cd,D2,Td,L2,M2,q2,U2,F2,j2,J2,dk,G2,B2,H2,pk,V2,$2,W2,fk,z2,K2,Y2,hk,Q2,X2,Z2,eG,tG,rG,nG,iG,oG,aG,sG,mk,lG,cG,uG,dG,pG,fG,hG,mG,vG,gG,yG,vk,_G,bG,wG,IG,EG,kG,AG,SG,xG,CG,TG,OG,PG,RG,NG,DG,LG,MG,qG,UG,FG,jG,JG,GG,BG,HG,VG,$G,WG,zG,KG,YG,Zk,eA,tA,Fd,QG,rA,nA,ts,eo,gk,eB,ds,tB,oA,aA,sA,iB,oB,aB,jd,sB,lA,cA,ps,np,Nn,yk,kr,uA,Kr,cB,uB,dB,pB,fB,Ga,dA,ip,he,mB,vB,yB,_B,St,wB,IB,pA,fA,hA,mA,xr,EB,kB,AB,SB,xB,CB,TB,OB,He,rs,V,vA,op,ap,PB,gA,RB,NB,fs,DB,hs,Pn,_A,rt,Ee,Dn,KB,YB,QB,Ik,XB,ZB,e5,t5,r5,n5,i5,o5,a5,s5,l5,c5,kk,Ak,EA,kA,Cr,xk,u5,d5,p7,ir=S(()=>{"use strict";cn();Hd=ie(yg(),1),Ck=ie(Cg(),1),Te=ie(Jg(),1),ns=ie(ry(),1),Xa=ie(dy(),1),jt=ie(Ty(),1);ua();ua();Za=ie(f_(),1),to=ie(b_(),1),Vd=ie(Mw(),1),rr=ie($w(),1),ro=ie(t0(),1),Tk=ie(l0(),1),Ok=ie(AI(),1),$d=ie(FI(),1),Wd=ie(rE(),1),zd=ie(fE(),1);bd();bd();d7=ie(OE(),1),Pd=ie(VE(),1),no=0,Pk=[],we=N,WE=we.__b,zE=we.__r,KE=we.diffed,YE=we.__c,QE=we.unmount,XE=we.__;we.__b=function(e){ce=null,WE&&WE(e)},we.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),XE&&XE(e,t)},we.__r=function(e){var t,r,n;zE&&zE(e),Tn=0;var i=(ce=e.__c).__H;i&&(kd===ce?(i.__h=[],ce.__h=[],(0,Te.default)(t=i.__).call(t,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,Te.default)(r=i.__h).call(r,Ha),(0,Te.default)(n=i.__h).call(n,Rd),i.__h=[],Tn=0)),kd=ce},we.diffed=function(e){var t;KE&&KE(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(Pk.push(r)!==1&&$E===we.requestAnimationFrame||(($E=we.requestAnimationFrame)||PJ)(OJ)),(0,Te.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),kd=ce=null},we.__c=function(e,t){(0,Xa.default)(t).call(t,function(r){try{var n,i;(0,Te.default)(n=r.__h).call(n,Ha),r.__h=(0,Hd.default)(i=r.__h).call(i,function(o){return!o.__||Rd(o)})}catch(o){(0,Xa.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],we.__e(o,r.__v)}}),YE&&YE(e,t)},we.unmount=function(e){var t;QE&&QE(e);var r,n=e.__c;n&&n.__H&&((0,Te.default)(t=n.__H.__).call(t,function(i){try{Ha(i)}catch(o){r=o}}),n.__H=void 0,r&&we.__e(r,n.__v))};ZE=typeof requestAnimationFrame=="function";Dk={exports:{}},ve=Dk.exports={};(function(){try{typeof jt.default=="function"?Lt=jt.default:Lt=Nd}catch(e){Lt=Nd}try{typeof clearTimeout=="function"?Mt=clearTimeout:Mt=Dd}catch(e){Mt=Dd}})();er=[],Sn=!1,Va=-1;ve.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];er.push(new qk(e,t)),er.length===1&&!Sn&&Lk(Mk)};qk.prototype.run=function(){this.fun.apply(null,this.array)};ve.title="browser";ve.browser=!0;ve.env={};ve.argv=[];ve.version="";ve.versions={};ve.on=nr;ve.addListener=nr;ve.once=nr;ve.off=nr;ve.removeListener=nr;ve.removeAllListeners=nr;ve.emit=nr;ve.prependListener=nr;ve.prependOnceListener=nr;ve.listeners=function(e){return[]};ve.binding=function(e){throw new Error("process.binding is not supported")};ve.cwd=function(){return"/"};ve.chdir=function(e){throw new Error("process.chdir is not supported")};ve.umask=function(){return 0};LJ=Dk.exports,Oe=RJ(LJ),MJ=Za.default||void 0||self;Uk=function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){(0,Te.default)(r).call(r,this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(UJ(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=qJ(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){var r;(0,Te.default)(r=this.tags).call(r,function(n){var i;return(i=n.parentNode)==null?void 0:i.removeChild(n)}),this.tags=[],this.ctr=0},e}(),Be="-ms-",es="-moz-",H="-webkit-",Kd="comm",Yd="rule",Qd="decl",FJ="@import",Fk="@keyframes",jJ=Math.abs,os=String.fromCharCode,JJ=$d.default;as=1,On=1,Jk=0,tt=0,Ie=0,Rn="";r2=function(e,t,r){for(var n=0,i=0;n=i,i=Gt(),n===38&&i===12&&(t[r]=1),!oo(i);)dt();return uo(e,tt)},n2=function(e,t){var r=-1,n=44;do switch(oo(n)){case 0:n===38&&Gt()===12&&(t[r]=1),e[r]+=r2(tt-1,t,r);break;case 2:e[r]+=Wa(n);break;case 4:if(n===44){e[++r]=Gt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=os(n)}while(n=dt());return e},i2=function(e,t){return Bk(n2(Gk(e),t))},rk=new Vd.default,o2=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!rk.get(r))&&!n){rk.set(e,!0);for(var i=[],o=i2(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},a2=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},s2="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",l2=function(e){var t;return e.type==="comm"&&(0,rr.default)(t=e.children).call(t,s2)>-1},c2=function(e){return function(t,r,n){if(!(t.type!=="rule"||e.compat)){var i=t.value.match(/(:first|:nth|:nth-last)-child/g);if(i){for(var o=t.parent===n[0],a=o?n[0].children:n,s=a.length-1;s>=0;s--){var l=a[s];if(l.line<t.line)break;if(l.column<t.column){if(l2(l))return;break}}(0,Te.default)(i).call(i,function(c){console.error('The pseudo class "'+c+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+c.split("-child")[0]+'-of-type".')})}}}},Hk=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},u2=function(e,t){for(var r=e-1;r>=0;r--)if(!Hk(t[r]))return!0;return!1},nk=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},d2=function(e,t,r){Hk(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),nk(e)):u2(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),nk(e)))};p2=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Qd:e.return=Vk(e.value,e.length);break;case Fk:return xn([Qi(e,{value:Y(e.value,"@","@"+H)})],n);case Yd:if(e.length)return HJ(e.props,function(i){switch(BJ(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return xn([Qi(e,{props:[Y(i,/:(read-\w+)/,":"+es+"$1")]})],n);case"::placeholder":return xn([Qi(e,{props:[Y(i,/:(plac\w+)/,":"+H+"input-$1")]}),Qi(e,{props:[Y(i,/:(plac\w+)/,":"+es+"$1")]}),Qi(e,{props:[Y(i,/:(plac\w+)/,Be+"input-$1")]})],n)}return""})}},f2=[p2],$k=function(e){var t=e.key;if(Oe.env.NODE_ENV!=="production"&&!t)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
21
+ If multiple caches share the same key they might "fight" for each other's style elements.`);if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,Te.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,rr.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||f2;if(Oe.env.NODE_ENV!=="production"&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var i={},o,a=[];o=e.container||document.head,(0,Te.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),y=1;y<g.length;y++)i[g[y]]=!0;a.push(m)});var s,l=[o2,a2];Oe.env.NODE_ENV!=="production"&&l.push(c2({get compat(){return f.compat}}),d2);{var c,d=[ZJ,Oe.env.NODE_ENV!=="production"?function(m){m.root||(m.return?c.insert(m.return):m.value&&m.type!==Kd&&c.insert(m.value+"{}"))}:t2(function(m){c.insert(m)})],u=e2((0,ns.default)(l).call(l,n,d)),p=function(m){return xn(QJ(m),u)};s=function(m,g,y,v){c=y,Oe.env.NODE_ENV!=="production"&&(0,ro.default)(g)!==void 0&&(c={insert:function(b){y.insert(b+(0,ro.default)(g))}}),p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new Uk({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return f.sheet.hydrate(a),f},Ja={exports:{}};Wk();h2=!0;Zd=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||h2===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},ls=function(e,t,r){Zd(e,t,r);var n=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next;while(i!==void 0)}};v2={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};y2=/[A-Z]|^ms/g,_2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,zk=function(e){return e.charCodeAt(1)===45},ok=function(e){return e!=null&&typeof e!="boolean"},Ad=g2(function(e){return zk(e)?e:e.replace(y2,"-$&").toLowerCase()}),ak=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(_2,function(r,n,i){return Ut={name:n,styles:i,next:Ut},n})}return v2[e]!==1&&!zk(e)&&typeof t=="number"&&t!==0?t+"px":t};sk=/label:\s*([^\s;{]+)\s*(;|$)/g;w2=function(e){return e()},Kk=vu?vu:!1,Yk=Kk||w2,lk=Kk||_n,cs={}.hasOwnProperty,ep=jr(typeof HTMLElement<"u"?$k({key:"css"}):null);Oe.env.NODE_ENV!=="production"&&(ep.displayName="EmotionCacheContext");Qk=ep.Provider,tp=function(e){return yu(function(t,r){var n=wn(ep);return e(t,n,r)})},us=jr({});Oe.env.NODE_ENV!=="production"&&(us.displayName="EmotionThemeContext");I2=function(e){var t=e.split(".");return t[t.length-1]},E2=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);if(t||(t=/^([A-Za-z0-9$.]+)@/.exec(e),t))return I2(t[1])},k2=new Ok.default(["renderWithHooks","processChild","finishClassComponent","renderToString"]),A2=function(e){return e.replace(/\$/g,"-")},S2=function(e){if(e)for(var t=e.split(`
22
+ `),r=0;r<t.length;r++){var n=E2(t[r]);if(n){if(k2.has(n))break;if(/^[A-Z]/.test(n))return A2(n)}}},qd="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ud="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Xk=function(e,t){var r,n;if(Oe.env.NODE_ENV!=="production"&&typeof t.css=="string"&&(0,rr.default)(r=t.css).call(r,":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+t.css+"`");var i={};for(var o in t)cs.call(t,o)&&(i[o]=t[o]);if(i[qd]=e,Oe.env.NODE_ENV!=="production"&&t.css&&(typeof t.css!="object"||typeof t.css.name!="string"||(0,rr.default)(n=t.css.name).call(n,"-")===-1)){var a=S2(new Error().stack);a&&(i[Ud]=a)}return i},x2=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Zd(t,r,n),Yk(function(){return ls(t,r,n)}),null},rp=tp(function(e,t,r){var n,i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[qd],a=[i],s="";typeof e.className=="string"?s=ao(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var l=Sr(a,void 0,wn(us));if(Oe.env.NODE_ENV!=="production"&&(0,rr.default)(n=l.name).call(n,"-")===-1){var c=e[Ud];c&&(l=Sr([l,"label:"+c+";"]))}s+=t.key+"-"+l.name;var d={};for(var u in e)cs.call(e,u)&&u!=="css"&&u!==qd&&(Oe.env.NODE_ENV==="production"||u!==Ud)&&(d[u]=e[u]);return d.ref=r,d.className=s,Je(De,null,Je(x2,{cache:t,serialized:l,isStringTag:typeof o=="string"}),Je(o,d))});Oe.env.NODE_ENV!=="production"&&(rp.displayName="EmotionCssPropInternal");C2={version:"11.10.5"},ck=!1,T2=tp(function(e,t){Oe.env.NODE_ENV!=="production"&&!ck&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),ck=!0);var r=e.styles,n=Sr([r],void 0,wn(us)),i=qi();return lk(function(){var o=t.key+"-global",a=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+o+" "+n.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",o),a.hydrate([l])),i.current=[a,s],function(){a.flush()}},[t]),lk(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(n.next!==void 0&&ls(t,n.next,!0),a.tags.length){var l=a.tags[a.tags.length-1].nextElementSibling;a.before=l,a.flush()}t.insert("",n,a,!1)},[t,n.name]),null});Oe.env.NODE_ENV!=="production"&&(T2.displayName="EmotionGlobal");O2=function e(t){for(var r=t.length,n=0,i="";n<r;n++){var o=t[n];if(o!=null){var a=void 0;switch(typeof o){case"boolean":break;case"object":{if((0,to.default)(o))a=e(o);else{Oe.env.NODE_ENV!=="production"&&o.styles!==void 0&&o.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),a="";for(var s in o)o[s]&&s&&(a&&(a+=" "),a+=s)}break}default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};R2=function(e){var t=e.cache,r=e.serializedArr;return Yk(function(){for(var n=0;n<r.length;n++)ls(t,r[n],!1)}),null},N2=tp(function(e,t){var r=!1,n=[],i=function(){if(r&&Oe.env.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];var u=Sr(c,t.registered);return n.push(u),Zd(t,u,!1),t.key+"-"+u.name},o=function(){if(r&&Oe.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];return P2(t.registered,i,O2(c))},a={css:i,cx:o,theme:wn(us)},s=e.children(a);return r=!0,Je(De,null,Je(R2,{cache:t,serializedArr:n}),s)});Oe.env.NODE_ENV!=="production"&&(N2.displayName="EmotionClassNames");Oe.env.NODE_ENV!=="production"&&(Sd=!0,uk=typeof jest<"u"||typeof vi<"u",Sd&&!uk&&(xd=typeof Za.default<"u"?Za.default:Sd?window:MJ,Cd="__EMOTION_REACT_"+C2.version.split(".")[0]+"__",xd[Cd]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),xd[Cd]=!0));D2=0;Td={drawerBackdrop:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"transparent",display:"flex",justifyContent:"center",alignItems:"flex-end",zIndex:1e3,overflow:"hidden",touchAction:"none"},drawer:{backgroundColor:"rgb(26, 26, 26)",borderRadius:"16px 16px 0 0",width:"100%",maxWidth:"100%",overflowY:"auto",position:"relative",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.1)",display:"block",margin:"0 auto"},centerDrawer:{backgroundColor:"transparent",minWidth:"320px",maxWidth:"90vw",maxHeight:"90vh",width:"auto",position:"relative",display:"block",margin:"0 auto",overflowY:"auto"}},L2=D`
23
23
  width: 100%;
24
24
  overflow: auto;
25
25
  margin: 0 auto;
26
- `,N2=`
26
+ `,M2=`
27
27
  @keyframes fadeIn {
28
28
  from { opacity: 0; }
29
29
  to { opacity: 1; }
@@ -67,7 +67,7 @@ If multiple caches share the same key they might "fight" for each other's style
67
67
  .fadeIn {
68
68
  animation: fadeIn 0.3s ease forwards;
69
69
  }
70
- `,D2=({children:e,isOpen:t=!1,preventCloseOnBackdropClick:r=!1,onClose:n,className:i="",placement:o="bottom"},a)=>{let[s,l]=Jt(!1),[c,d]=Jt(null),[u,p]=Jt(!1),f=Zi(null),m=Zi(null),g=Zi(!1);Yr(()=>{if(s&&f.current){let M=f.current.ownerDocument,Re=M.createElement("style");Re.innerHTML=N2,M.head.appendChild(Re);let Ne={overflow:M.body.style.overflow,position:M.body.style.position,width:M.body.style.width};return M.body.style.overflow="hidden",M.body.style.position="fixed",M.body.style.width="100%",()=>{M.head.contains(Re)&&M.head.removeChild(Re),M.body.style.overflow=Ne.overflow,M.body.style.position=Ne.position,M.body.style.width=Ne.width}}},[s]),Yr(()=>{t?!s&&!g.current&&(l(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)})):s&&(g.current=!0,d("leave"),p(!1))},[t]);let y=bt(M=>{M.target===m.current&&(c==="leave"?(d(null),l(!1),g.current=!1,n&&n()):c==="enter"&&(d(null),p(!0)))},[c,n]),v=bt(()=>{s&&!g.current&&(g.current=!0,d("leave"),p(!1))},[s]),b=bt(M=>{r||(M.preventDefault(),M.stopPropagation(),v())},[v]),k=bt(()=>{!g.current&&!s&&(l(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)}))},[s]),x=bt(()=>s&&!g.current,[s]);if(Yr(()=>{if(a){let M={show:k,hide:v,isOpen:x};typeof a=="function"?a(M):a&&(a.current=M)}},[k,v,x,a]),!s)return null;let P=o==="center",C=F(T({},Cd.drawerBackdrop),{alignItems:P?"center":"flex-end",justifyContent:"center",backgroundColor:"transparent",pointerEvents:"none"}),S={position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.6)",pointerEvents:"auto",opacity:c==="enter"||u?1:0,transition:"opacity 0.3s"},O=P?F(T({},Cd.centerDrawer),{pointerEvents:"auto"}):F(T({},Cd.drawer),{height:"auto",pointerEvents:"auto"});s&&!u&&!c&&!P&&(O.transform="translateY(100%)");let J=c?P?c==="leave"?"fadeOut":c==="enter"?"fadeIn":"":`drawer-${c}`:"",Ke=c?`backdrop-${c}`:"";return _("div",{ref:f,style:C,children:[_("div",{style:S,className:Ke,onClick:b}),_("div",{ref:m,style:F(T({},O),{opacity:P&&c===null&&!u?0:1}),className:`${P&&c==="leave"?"fadeOut":J} ${i}`,onAnimationEnd:y,onClick:M=>M.stopPropagation(),children:_("div",{style:R2.styles,children:e})})]})},L2=gu(D2);M2={unlockNeeds:"Unlock needs",price:"Price",unlockWithJolicoin:"Unlock with Jolicoin for a better experience",unlockWithJolicoinDescription:"Unlock with Jolicoin automatically",useJolicoin:"Use Jolicoin",payAndUnlock:"Pay and unlock",noWatchAds:"No, watch ads",noThanks:"No thanks",balance:"Balance",coinUsed:"Jolicoin used",unlockSuccess:"Unlock successful",unlockFailed:"Unlock failed",unlockFailedNotLogin:"Please log in to continue",unlockFailedPaying:"Payment is already in progress. Please do not retry",unlockFailedProductIdNotFound:"Product has expired. Please choose another product",unlockFailedProductInvalid:"Failed to retrieve product info. Please retry or choose another product",unlockFailedLaunch:"Unable to start payment. Please try again later",unlockFailedTransaction:"Payment failed. Please try again",unlockFaileVerify:"Order verification failed. If you\u2019ve been charged, please contact support",transactionPending:"Payment confirmation failed. Please contact your payment provider for support"},q2={unlockNeeds:"Unlock needs",price:"Price",unlockWithJolicoin:"Unlock with GEM for a better experience",unlockWithJolicoinDescription:"Unlock with GEM automatically",useJolicoin:"Use GEM",balance:"GEM Balance"},U2={instead:"Instead of watching ads",introduct:"Use {{coin}}Jolicoin to unlock for better experience",tips:"Get {{coin}} for free",login:"Register & Unlock with Jolicoin",noWatchAds:"No, watch ads",noThanks:"No thanks",rewardTips:"Congrats! You have received {{coin}} Jolicoin! Start unlocking now!"},uk={jolicoin:M2,joligem:q2,loginGuide:U2},F2={unlockNeeds:"\u89E3\u9501\u9700\u6C42",price:"\u4EF7\u683C",unlockWithJolicoin:"\u4F7F\u7528 Jolicoin \u89E3\u9501",unlockWithJolicoinDescription:"\u81EA\u52A8\u4F7F\u7528 Jolicoin \u89E3\u9501",useJolicoin:"\u4F7F\u7528 Jolicoin",payAndUnlock:"\u652F\u4ED8\u5E76\u89E3\u9501",noWatchAds:"\u4E0D\u7528\u4E86\uFF0C\u89C2\u770B\u5E7F\u544A",noThanks:"\u4E0D\u7528\u4E86",balance:"\u4F59\u989D",coinUsed:"\u5DF2\u4F7F\u7528\u7684 Jolicoin",unlockSuccess:"\u89E3\u9501\u6210\u529F",unlockFailed:"\u89E3\u9501\u5931\u8D25",unlockFailedNotLogin:"\u8BF7\u767B\u5F55\u540E\u5B8C\u6210\u89E3\u9501",unlockFailedPaying:"\u652F\u4ED8\u6B63\u5728\u8FDB\u884C\u4E2D\uFF0C\u8BF7\u52FF\u91CD\u590D\u64CD\u4F5C",unlockFailedProductIdNotFound:"\u5546\u54C1\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u9009\u62E9\u5176\u4ED6\u5546\u54C1",unlockFailedProductInvalid:"\u83B7\u53D6\u5546\u54C1\u4FE1\u606F\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\u6216\u9009\u62E9\u5176\u4ED6\u5546\u54C1",unlockFailedLaunch:"\u65E0\u6CD5\u542F\u52A8\u652F\u4ED8\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5",unlockFailedTransaction:"\u652F\u4ED8\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5",unlockFaileVerify:"\u8BA2\u5355\u9A8C\u8BC1\u5931\u8D25\uFF0C\u5982\u5DF2\u6263\u8D39\u8BF7\u8054\u7CFB\u5BA2\u670D",transactionPending:"\u652F\u4ED8\u786E\u8BA4\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u652F\u4ED8\u670D\u52A1\u5546\u83B7\u53D6\u652F\u6301"},j2={unlockNeeds:"\u89E3\u9501\u9700\u6C42",price:"\u4EF7\u683C",unlockWithJolicoin:"\u4F7F\u7528 GEM \u89E3\u9501",unlockWithJolicoinDescription:"\u81EA\u52A8\u4F7F\u7528 GEM \u89E3\u9501",useJolicoin:"\u4F7F\u7528 GEM",balance:"GEM \u4F59\u989D"},J2={instead:"\u89C2\u770B\u5E7F\u544A",introduct:"\u4F7F\u7528 {{coin}} Jolicoin \u89E3\u9501\u4EE5\u83B7\u5F97\u66F4\u597D\u7684\u4F53\u9A8C",tips:"\u514D\u8D39\u83B7\u53D6 {{coin}}",login:"\u6CE8\u518C\u5E76\u89E3\u9501",noWatchAds:"\u4E0D\u7528\u4E86\uFF0C\u89C2\u770B\u5E7F\u544A",noThanks:"\u4E0D\u7528\u4E86",rewardTips:"\u606D\u559C\uFF01\u60A8\u83B7\u5F97\u4E86 {{coin}} Jolicoin\uFF01\u5F00\u59CB\u89E3\u9501\u5427\uFF01"},dk={jolicoin:F2,joligem:j2,loginGuide:J2},G2={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai Jolicoin untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Otomatis mengurangi Jolicoin untuk item digital",useJolicoin:"Gunakan Jolicoin",payAndUnlock:"Bayar dan buka",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",balance:"Saldo",coinUsed:"Jolicoin yang digunakan",unlockSuccess:"Berhasil dibuka",unlockFailed:"Gagal membuka",unlockFailedNotLogin:"Silakan masuk untuk menyelesaikan pembukaan",unlockFailedPaying:"Pembayaran sedang diproses. Mohon jangan ulangi operasi",unlockFailedProductIdNotFound:"Produk telah kedaluwarsa. Silakan pilih produk lain",unlockFailedProductInvalid:"Gagal mendapatkan informasi produk. Silakan coba lagi atau pilih produk lain",unlockFailedLaunch:"Tidak dapat memulai pembayaran. Silakan coba lagi nanti",unlockFailedTransaction:"Pembayaran gagal. Silakan coba lagi",unlockFaileVerify:"Verifikasi pesanan gagal. Jika Anda telah dikenakan biaya, silakan hubungi dukungan",transactionPending:"Konfirmasi pembayaran gagal. Silakan hubungi penyedia pembayaran Anda untuk dukungan"},B2={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai GEM untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Otomatis mengurangi GEM untuk item digital",useJolicoin:"Gunakan GEM",balance:"GEM Saldo"},H2={instead:"Alihkan dari menonton iklan",introduct:"Gunakan {{coin}} Jolicoin untuk membuka untuk pengalaman yang lebih baik",tips:"Dapatkan {{coin}} gratis",login:"Daftar dan buka dengan Jolicoin",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",rewardTips:"Selamat! Anda telah menerima {{coin}} Jolicoin. Mulai membuka sekarang!"},pk={jolicoin:G2,joligem:B2,loginGuide:H2},V2={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai Jolicoin untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Potongan automatik Jolicoin untuk item digital",useJolicoin:"Gunakan Jolicoin",payAndUnlock:"Bayar dan buka",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",balance:"Baki",coinUsed:"Jolicoin yang digunakan",unlockSuccess:"Berjaya dibuka",unlockFailed:"Gagal membuka",unlockFailedNotLogin:"Sila log masuk untuk meneruskan",unlockFailedPaying:"Pembayaran sedang diproses. Sila jangan cuba lagi",unlockFailedProductIdNotFound:"Produk telah tamat tempoh. Sila pilih produk lain",unlockFailedProductInvalid:"Gagal mendapatkan maklumat produk. Sila cuba lagi atau pilih produk lain",unlockFailedLaunch:"Tidak dapat memulakan pembayaran. Sila cuba lagi kemudian",unlockFailedTransaction:"Pembayaran gagal. Sila cuba lagi",unlockFaileVerify:"Pengesahan pesanan gagal. Jika anda telah dikenakan caj, sila hubungi sokongan",transactionPending:"Pengesahan pembayaran gagal. Sila hubungi pembekal pembayaran anda untuk sokongan"},$2={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai GEM untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Otomatis mengurangi GEM untuk item digital",useJolicoin:"Gunakan GEM",balance:"GEM Saldo"},W2={instead:"Alihkan dari menonton iklan",introduct:"Gunakan {{coin}} Jolicoin untuk membuka untuk pengalaman yang lebih baik",tips:"Dapatkan {{coin}} gratis",login:"Daftar dan buka dengan Jolicoin",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",rewardTips:"Selamat! Anda telah menerima {{coin}} Jolicoin. Mulai membuka sekarang!"},fk={jolicoin:V2,joligem:$2,loginGuide:W2},z2={unlockNeeds:"\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",price:"\u0E23\u0E32\u0E04\u0E32",unlockWithJolicoin:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E14\u0E49\u0E27\u0E22 Jolicoin",unlockWithJolicoinDescription:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2D\u0E31\u0E15\u0E42\u0E19\u0E21\u0E31\u0E15\u0E34\u0E14\u0E49\u0E27\u0E22 Jolicoin",useJolicoin:"\u0E43\u0E0A\u0E49 Jolicoin",payAndUnlock:"\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E41\u0E25\u0E30\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",noWatchAds:"\u0E44\u0E21\u0E48 \u0E14\u0E39\u0E42\u0E06\u0E29\u0E13\u0E32",noThanks:"\u0E44\u0E21\u0E48 \u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13",balance:"\u0E22\u0E2D\u0E14\u0E04\u0E07\u0E40\u0E2B\u0E25\u0E37\u0E2D",coinUsed:"Jolicoin \u0E17\u0E35\u0E48\u0E43\u0E0A\u0E49\u0E41\u0E25\u0E49\u0E27",unlockSuccess:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08",unlockFailed:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E44\u0E21\u0E48\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08",unlockFailedNotLogin:"\u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E2A\u0E23\u0E47\u0E08\u0E2A\u0E34\u0E49\u0E19\u0E01\u0E32\u0E23\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",unlockFailedPaying:"\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E01\u0E33\u0E25\u0E31\u0E07\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E2D\u0E22\u0E39\u0E48 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E2D\u0E22\u0E48\u0E32\u0E17\u0E33\u0E0B\u0E49\u0E33\u0E01\u0E32\u0E23\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23",unlockFailedProductIdNotFound:"\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E2B\u0E21\u0E14\u0E2D\u0E32\u0E22\u0E38\u0E41\u0E25\u0E49\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E2D\u0E37\u0E48\u0E19",unlockFailedProductInvalid:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E14\u0E36\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E44\u0E14\u0E49 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E2D\u0E37\u0E48\u0E19",unlockFailedLaunch:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E40\u0E23\u0E34\u0E48\u0E21\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E44\u0E14\u0E49 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E43\u0E19\u0E20\u0E32\u0E22\u0E2B\u0E25\u0E31\u0E07",unlockFailedTransaction:"\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E25\u0E49\u0E21\u0E40\u0E2B\u0E25\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",unlockFaileVerify:"\u0E01\u0E32\u0E23\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E04\u0E33\u0E2A\u0E31\u0E48\u0E07\u0E0B\u0E37\u0E49\u0E2D\u0E25\u0E49\u0E21\u0E40\u0E2B\u0E25\u0E27 \u0E2B\u0E32\u0E01\u0E04\u0E38\u0E13\u0E16\u0E39\u0E01\u0E40\u0E23\u0E35\u0E22\u0E01\u0E40\u0E01\u0E47\u0E1A\u0E40\u0E07\u0E34\u0E19\u0E41\u0E25\u0E49\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E15\u0E34\u0E14\u0E15\u0E48\u0E2D\u0E1D\u0E48\u0E32\u0E22\u0E2A\u0E19\u0E31\u0E1A\u0E2A\u0E19\u0E38\u0E19",transactionPending:"\u0E01\u0E32\u0E23\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E25\u0E49\u0E21\u0E40\u0E2B\u0E25\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E15\u0E34\u0E14\u0E15\u0E48\u0E2D\u0E1C\u0E39\u0E49\u0E43\u0E2B\u0E49\u0E1A\u0E23\u0E34\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E02\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E0A\u0E48\u0E27\u0E22\u0E40\u0E2B\u0E25\u0E37\u0E2D"},K2={unlockNeeds:"\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",price:"\u0E23\u0E32\u0E04\u0E32",unlockWithJolicoin:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E14\u0E49\u0E27\u0E22 GEM",unlockWithJolicoinDescription:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2D\u0E31\u0E15\u0E42\u0E19\u0E21\u0E31\u0E15\u0E34\u0E14\u0E49\u0E27\u0E22 GEM",useJolicoin:"\u0E43\u0E0A\u0E49 GEM",balance:"GEM \u0E22\u0E2D\u0E14\u0E04\u0E07\u0E40\u0E2B\u0E25\u0E37\u0E2D"},Y2={instead:"\u0E41\u0E17\u0E19\u0E17\u0E35\u0E48\u0E14\u0E39\u0E42\u0E06\u0E29\u0E13\u0E32",introduct:"\u0E43\u0E0A\u0E49 {{coin}} Jolicoin \u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E1B\u0E23\u0E30\u0E2A\u0E1A\u0E01\u0E32\u0E23\u0E13\u0E4C\u0E17\u0E35\u0E48\u0E14\u0E35\u0E02\u0E36\u0E49\u0E19",tips:"\u0E23\u0E31\u0E1A {{coin}} \u0E1F\u0E23\u0E35",login:"\u0E25\u0E07\u0E17\u0E30\u0E40\u0E1A\u0E35\u0E22\u0E19\u0E41\u0E25\u0E30\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E14\u0E49\u0E27\u0E22 Jolicoin",noWatchAds:"\u0E44\u0E21\u0E48 \u0E14\u0E39\u0E42\u0E06\u0E29\u0E13\u0E32",noThanks:"\u0E44\u0E21\u0E48 \u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13",rewardTips:"\u0E22\u0E34\u0E19\u0E14\u0E35\u0E14\u0E49\u0E27\u0E22! \u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A {{coin}} Jolicoin. \u0E40\u0E23\u0E34\u0E48\u0E21\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E15\u0E2D\u0E19\u0E19\u0E35\u0E49!"},Q2={jolicoin:z2,joligem:K2,loginGuide:Y2},X2={unlockNeeds:"Y\xEAu c\u1EA7u m\u1EDF kh\xF3a",price:"Gi\xE1",unlockWithJolicoin:"M\u1EDF kh\xF3a b\u1EB1ng Jolicoin",unlockWithJolicoinDescription:"T\u1EF1 \u0111\u1ED9ng m\u1EDF kh\xF3a b\u1EB1ng Jolicoin",useJolicoin:"S\u1EED d\u1EE5ng Jolicoin",payAndUnlock:"Thanh to\xE1n v\xE0 m\u1EDF kh\xF3a",noWatchAds:"Kh\xF4ng, xem qu\u1EA3ng c\xE1o",noThanks:"Kh\xF4ng, c\u1EA3m \u01A1n",balance:"S\u1ED1 d\u01B0",coinUsed:"Jolicoin \u0111\xE3 s\u1EED d\u1EE5ng",unlockSuccess:"M\u1EDF kh\xF3a th\xE0nh c\xF4ng",unlockFailed:"M\u1EDF kh\xF3a th\u1EA5t b\u1EA1i",unlockFailedNotLogin:"Vui l\xF2ng \u0111\u0103ng nh\u1EADp \u0111\u1EC3 ho\xE0n th\xE0nh vi\u1EC7c m\u1EDF kh\xF3a",unlockFailedPaying:"Thanh to\xE1n \u0111ang \u0111\u01B0\u1EE3c x\u1EED l\xFD. Vui l\xF2ng kh\xF4ng l\u1EB7p l\u1EA1i thao t\xE1c",unlockFailedProductIdNotFound:"S\u1EA3n ph\u1EA9m \u0111\xE3 h\u1EBFt h\u1EA1n. Vui l\xF2ng ch\u1ECDn s\u1EA3n ph\u1EA9m kh\xE1c",unlockFailedProductInvalid:"Kh\xF4ng th\u1EC3 l\u1EA5y th\xF4ng tin s\u1EA3n ph\u1EA9m. Vui l\xF2ng th\u1EED l\u1EA1i ho\u1EB7c ch\u1ECDn s\u1EA3n ph\u1EA9m kh\xE1c",unlockFailedLaunch:"Kh\xF4ng th\u1EC3 b\u1EAFt \u0111\u1EA7u thanh to\xE1n. Vui l\xF2ng th\u1EED l\u1EA1i sau",unlockFailedTransaction:"Thanh to\xE1n th\u1EA5t b\u1EA1i. Vui l\xF2ng th\u1EED l\u1EA1i",unlockFaileVerify:"X\xE1c minh \u0111\u01A1n h\xE0ng th\u1EA5t b\u1EA1i. N\u1EBFu b\u1EA1n \u0111\xE3 b\u1ECB t\xEDnh ph\xED, vui l\xF2ng li\xEAn h\u1EC7 h\u1ED7 tr\u1EE3",transactionPending:"X\xE1c nh\u1EADn thanh to\xE1n th\u1EA5t b\u1EA1i. Vui l\xF2ng li\xEAn h\u1EC7 nh\xE0 cung c\u1EA5p thanh to\xE1n c\u1EE7a b\u1EA1n \u0111\u1EC3 \u0111\u01B0\u1EE3c h\u1ED7 tr\u1EE3"},Z2={unlockNeeds:"Y\xEAu c\u1EA7u m\u1EDF kh\xF3a",price:"Gi\xE1",unlockWithJolicoin:"M\u1EDF kh\xF3a b\u1EB1ng GEM",unlockWithJolicoinDescription:"T\u1EF1 \u0111\u1ED9ng m\u1EDF kh\xF3a b\u1EB1ng GEM",useJolicoin:"S\u1EED d\u1EE5ng GEM",balance:"GEM S\u1ED1 d\u01B0"},eG={instead:"Thay th\u1EBF b\u1EB1ng xem qu\u1EA3ng c\xE1o",introduct:"S\u1EED d\u1EE5ng {{coin}} Jolicoin \u0111\u1EC3 m\u1EDF kh\xF3a cho tr\u1EA3i nghi\u1EC7m t\u1ED1t h\u01A1n",tips:"Nh\u1EADn {{coin}} mi\u1EC5n ph\xED",login:"\u0110\u0103ng k\xFD v\xE0 m\u1EDF kh\xF3a v\u1EDBi Jolicoin",noWatchAds:"Kh\xF4ng, xem qu\u1EA3ng c\xE1o",noThanks:"Kh\xF4ng, c\u1EA3m \u01A1n",rewardTips:"Ch\xFAc m\u1EEBng! B\u1EA1n \u0111\xE3 nh\u1EADn \u0111\u01B0\u1EE3c {{coin}} Jolicoin. M\u1EDF kh\xF3a ngay!"},tG={jolicoin:X2,joligem:Z2,loginGuide:eG},rG={unlockNeeds:"Kailangan i-unlock",price:"Presyo",unlockWithJolicoin:"I-unlock gamit ang Jolicoin",unlockWithJolicoinDescription:"Awtomatikong i-unlock gamit ang Jolicoin",useJolicoin:"Gamitin ang Jolicoin",payAndUnlock:"Magbayad at i-unlock",noWatchAds:"Hindi, manood ng ads",noThanks:"Hindi na, salamat",balance:"Balanse",coinUsed:"Ginamit na Jolicoin",unlockSuccess:"Matagumpay na na-unlock",unlockFailed:"Hindi matagumpay ang pag-unlock",unlockFailedNotLogin:"Mangyaring mag-login para makumpleto ang pag-unlock",unlockFailedPaying:"Ang pagbabayad ay nasa proseso na. Huwag ulitin ang operasyon",unlockFailedProductIdNotFound:"Ang produkto ay nag-expire na. Mangyaring pumili ng ibang produkto",unlockFailedProductInvalid:"Hindi makuha ang impormasyon ng produkto. Subukang muli o pumili ng ibang produkto",unlockFailedLaunch:"Hindi maumpisahan ang pagbabayad. Subukang muli sa ibang pagkakataon",unlockFailedTransaction:"Hindi matagumpay ang pagbabayad. Subukang muli",unlockFaileVerify:"Hindi matagumpay ang pag-verify ng order. Kung na-charge ka na, mangyaring makipag-ugnayan sa suporta",transactionPending:"Hindi matagumpay ang kumpirmasyon ng pagbabayad. Mangyaring makipag-ugnayan sa iyong payment provider para sa suporta"},nG={unlockNeeds:"Kailangan i-unlock",price:"Presyo",unlockWithJolicoin:"I-unlock gamit ang GEM",unlockWithJolicoinDescription:"Awtomatikong i-unlock gamit ang GEM",useJolicoin:"Gamitin ang GEM",balance:"GEM Balanse"},iG={instead:"Kung hindi mo na gusto ang mga ad",introduct:"Gamitin ang {{coin}} Jolicoin para i-unlock para sa mas mahusay na karanasan",tips:"Kunin ang {{coin}} para sa libreng",login:"Mag-register at i-unlock gamit ang Jolicoin",noWatchAds:"Hindi, manood ng ads",noThanks:"Hindi na, salamat",rewardTips:"Maligayang pagdating! Nakatanggap ka ng {{coin}} Jolicoin. Simulan ang pag-unlock!"},hk={jolicoin:rG,joligem:nG,loginGuide:iG},oG={unlockNeeds:"Necesario desbloquear",price:"Precio",unlockWithJolicoin:"Desbloquea con Jolicoin",unlockWithJolicoinDescription:"Desbloquea autom\xE1ticamente con Jolicoin",useJolicoin:"Usar Jolicoin",payAndUnlock:"Pagar y desbloquear",noWatchAds:"No, ver anuncios",noThanks:"No, gracias",balance:"Saldo",coinUsed:"Jolicoin usado",unlockSuccess:"Desbloqueo exitoso",unlockFailed:"Error al desbloquear",unlockFailedNotLogin:"Inicia sesi\xF3n para completar el desbloqueo",unlockFailedPaying:"El pago ya est\xE1 en proceso. Por favor, no repita la operaci\xF3n",unlockFailedProductIdNotFound:"El producto ha expirado. Por favor, elija otro producto",unlockFailedProductInvalid:"Error al obtener informaci\xF3n del producto. Int\xE9ntelo de nuevo o elija otro producto",unlockFailedLaunch:"No se puede iniciar el pago. Int\xE9ntelo de nuevo m\xE1s tarde",unlockFailedTransaction:"Error en el pago. Int\xE9ntelo de nuevo",unlockFaileVerify:"Error en la verificaci\xF3n del pedido. Si se le ha cobrado, contacte con soporte",transactionPending:"Error en la confirmaci\xF3n del pago. Contacte con su proveedor de pago para obtener ayuda"},aG={unlockNeeds:"Necesario desbloquear",price:"Precio",unlockWithJolicoin:"Desbloquea con GEM",unlockWithJolicoinDescription:"Desbloquea autom\xE1ticamente con GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},sG={instead:"En lugar de ver anuncios",introduct:"Usa {{coin}} Jolicoin para desbloquear para una mejor experiencia",tips:"Obt\xE9n {{coin}} gratis",login:"Reg\xEDstrate y desbloquea con Jolicoin",noWatchAds:"No, ver anuncios",noThanks:"No, gracias",rewardTips:"\xA1Felicidades! Has recibido {{coin}} Jolicoin. \xA1Empieza a desbloquear!"},lG={jolicoin:oG,joligem:aG,loginGuide:sG},cG={unlockNeeds:"\u30A2\u30F3\u30ED\u30C3\u30AF\u5FC5\u8981",price:"\u4FA1\u683C",unlockWithJolicoin:"Jolicoin\u3067\u30A2\u30F3\u30ED\u30C3\u30AF",unlockWithJolicoinDescription:"Jolicoin\u3067\u81EA\u52D5\u7684\u306B\u30A2\u30F3\u30ED\u30C3\u30AF",useJolicoin:"Jolicoin\u3092\u4F7F\u7528",payAndUnlock:"\u652F\u6255\u3044\u3068\u30A2\u30F3\u30ED\u30C3\u30AF",noWatchAds:"\u3044\u3044\u3048\u3001\u5E83\u544A\u3092\u898B\u308B",noThanks:"\u3044\u3044\u3048\u3001\u7D50\u69CB\u3067\u3059",balance:"\u6B8B\u9AD8",coinUsed:"\u4F7F\u7528\u6E08\u307FJolicoin",unlockSuccess:"\u30A2\u30F3\u30ED\u30C3\u30AF\u6210\u529F",unlockFailed:"\u30A2\u30F3\u30ED\u30C3\u30AF\u5931\u6557",unlockFailedNotLogin:"\u30A2\u30F3\u30ED\u30C3\u30AF\u3092\u5B8C\u4E86\u3059\u308B\u306B\u306F\u30ED\u30B0\u30A4\u30F3\u3057\u3066\u304F\u3060\u3055\u3044",unlockFailedPaying:"\u652F\u6255\u3044\u51E6\u7406\u4E2D\u3067\u3059\u3002\u64CD\u4F5C\u3092\u7E70\u308A\u8FD4\u3055\u306A\u3044\u3067\u304F\u3060\u3055\u3044",unlockFailedProductIdNotFound:"\u5546\u54C1\u306E\u6709\u52B9\u671F\u9650\u304C\u5207\u308C\u3066\u3044\u307E\u3059\u3002\u4ED6\u306E\u5546\u54C1\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",unlockFailedProductInvalid:"\u5546\u54C1\u60C5\u5831\u306E\u53D6\u5F97\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u518D\u8A66\u884C\u3059\u308B\u304B\u3001\u4ED6\u306E\u5546\u54C1\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",unlockFailedLaunch:"\u652F\u6255\u3044\u3092\u958B\u59CB\u3067\u304D\u307E\u305B\u3093\u3002\u5F8C\u3067\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044",unlockFailedTransaction:"\u652F\u6255\u3044\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044",unlockFaileVerify:"\u6CE8\u6587\u306E\u78BA\u8A8D\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u6599\u91D1\u304C\u8ACB\u6C42\u3055\u308C\u305F\u5834\u5408\u306F\u3001\u30B5\u30DD\u30FC\u30C8\u306B\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044",transactionPending:"\u652F\u6255\u3044\u306E\u78BA\u8A8D\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u652F\u6255\u3044\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306B\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044"},uG={unlockNeeds:"\u30A2\u30F3\u30ED\u30C3\u30AF\u5FC5\u8981",price:"\u4FA1\u683C",unlockWithJolicoin:"GEM\u3067\u30A2\u30F3\u30ED\u30C3\u30AF",unlockWithJolicoinDescription:"GEM\u3067\u81EA\u52D5\u7684\u306B\u30A2\u30F3\u30ED\u30C3\u30AF",useJolicoin:"GEM\u3092\u4F7F\u7528",balance:"GEM\u6B8B\u9AD8"},dG={instead:"\u5E83\u544A\u3092\u898B\u308B\u4EE3\u308F\u308A\u306B",introduct:"{{coin}} Jolicoin\u3092\u4F7F\u7528\u3057\u3066\u3001\u3088\u308A\u826F\u3044\u4F53\u9A13\u306E\u305F\u3081\u306B\u30A2\u30F3\u30ED\u30C3\u30AF\u3057\u307E\u3059",tips:"{{coin}}\u3092\u7121\u6599\u3067\u53D6\u5F97",login:"Jolicoin\u3067\u767B\u9332\u3057\u3066\u30A2\u30F3\u30ED\u30C3\u30AF",noWatchAds:"\u3044\u3044\u3048\u3001\u5E83\u544A\u3092\u898B\u308B",noThanks:"\u3044\u3044\u3048\u3001\u7D50\u69CB\u3067\u3059",rewardTips:"\u304A\u3081\u3067\u3068\u3046\u3054\u3056\u3044\u307E\u3059\uFF01{{coin}} Jolicoin\u3092\u53D7\u3051\u53D6\u308A\u307E\u3057\u305F\uFF01\u30A2\u30F3\u30ED\u30C3\u30AF\u3092\u958B\u59CB\u3057\u307E\u3059\uFF01"},pG={jolicoin:cG,joligem:uG,loginGuide:dG},fG={unlockNeeds:"Necess\xE1rio desbloquear",price:"Pre\xE7o",unlockWithJolicoin:"Desbloqueie com Jolicoin",unlockWithJolicoinDescription:"Deduz Jolicoin automaticamente para itens digitais",useJolicoin:"Usar Jolicoin",payAndUnlock:"Pagar e desbloquear",noWatchAds:"N\xE3o, assistir an\xFAncios",noThanks:"N\xE3o, obrigado",balance:"Saldo",coinUsed:"Jolicoin usado",unlockSuccess:"Desbloqueio bem-sucedido",unlockFailed:"Falha no desbloqueio",unlockFailedNotLogin:"Fa\xE7a login para completar o desbloqueio",unlockFailedPaying:"O pagamento j\xE1 est\xE1 em andamento. Por favor, n\xE3o repita a opera\xE7\xE3o",unlockFailedProductIdNotFound:"O produto expirou. Por favor, escolha outro produto",unlockFailedProductInvalid:"Falha ao recuperar informa\xE7\xF5es do produto. Tente novamente ou escolha outro produto",unlockFailedLaunch:"N\xE3o foi poss\xEDvel iniciar o pagamento. Tente novamente mais tarde",unlockFailedTransaction:"Falha no pagamento. Tente novamente",unlockFaileVerify:"Falha na verifica\xE7\xE3o do pedido. Se voc\xEA foi cobrado, entre em contato com o suporte",transactionPending:"Falha na confirma\xE7\xE3o do pagamento. Entre em contato com seu provedor de pagamento para suporte"},hG={unlockNeeds:"Necess\xE1rio desbloquear",price:"Pre\xE7o",unlockWithJolicoin:"Desbloqueie com GEM",unlockWithJolicoinDescription:"Desbloqueie automaticamente com GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},mG={instead:"Em vez de assistir an\xFAncios",introduct:"Use {{coin}} Jolicoin para desbloquear para uma melhor experi\xEAncia",tips:"Obtenha {{coin}} gratuitamente",login:"Registre-se e desbloqueie com Jolicoin",noWatchAds:"N\xE3o, assistir an\xFAncios",noThanks:"N\xE3o, obrigado",rewardTips:"Parab\xE9ns! Voc\xEA recebeu {{coin}} Jolicoin. Comece a desbloquear agora!"},mk={jolicoin:fG,joligem:hG,loginGuide:mG},vG={unlockNeeds:"\uC7A0\uAE08 \uD574\uC81C \uD544\uC694",price:"\uAC00\uACA9",unlockWithJolicoin:"Jolicoin\uC73C\uB85C \uC7A0\uAE08 \uD574\uC81C",unlockWithJolicoinDescription:"Jolicoin\uC73C\uB85C \uC790\uB3D9 \uC7A0\uAE08 \uD574\uC81C",useJolicoin:"Jolicoin \uC0AC\uC6A9",payAndUnlock:"\uACB0\uC81C \uBC0F \uC7A0\uAE08 \uD574\uC81C",noWatchAds:"\uC544\uB2C8\uC694, \uAD11\uACE0 \uC2DC\uCCAD",noThanks:"\uAD1C\uCC2E\uC2B5\uB2C8\uB2E4",balance:"\uC794\uC561",coinUsed:"\uC0AC\uC6A9\uB41C Jolicoin",unlockSuccess:"\uC7A0\uAE08 \uD574\uC81C \uC131\uACF5",unlockFailed:"\uC7A0\uAE08 \uD574\uC81C \uC2E4\uD328",unlockFailedNotLogin:"\uC7A0\uAE08 \uD574\uC81C\uB97C \uC644\uB8CC\uD558\uB824\uBA74 \uB85C\uADF8\uC778\uD558\uC138\uC694",unlockFailedPaying:"\uACB0\uC81C\uAC00 \uC9C4\uD589 \uC911\uC785\uB2C8\uB2E4. \uC791\uC5C5\uC744 \uBC18\uBCF5\uD558\uC9C0 \uB9C8\uC138\uC694",unlockFailedProductIdNotFound:"\uC0C1\uD488\uC774 \uB9CC\uB8CC\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uB2E4\uB978 \uC0C1\uD488\uC744 \uC120\uD0DD\uD574\uC8FC\uC138\uC694",unlockFailedProductInvalid:"\uC0C1\uD488 \uC815\uBCF4\uB97C \uAC00\uC838\uC624\uB294\uB370 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD558\uAC70\uB098 \uB2E4\uB978 \uC0C1\uD488\uC744 \uC120\uD0DD\uD574\uC8FC\uC138\uC694",unlockFailedLaunch:"\uACB0\uC81C\uB97C \uC2DC\uC791\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB098\uC911\uC5D0 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",unlockFailedTransaction:"\uACB0\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",unlockFaileVerify:"\uC8FC\uBB38 \uD655\uC778\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uC694\uAE08\uC774 \uCCAD\uAD6C\uB41C \uACBD\uC6B0 \uACE0\uAC1D \uC9C0\uC6D0\uD300\uC5D0 \uBB38\uC758\uD574\uC8FC\uC138\uC694",transactionPending:"\uACB0\uC81C \uD655\uC778\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uACB0\uC81C \uC11C\uBE44\uC2A4 \uC81C\uACF5\uC5C5\uCCB4\uC5D0 \uBB38\uC758\uD574\uC8FC\uC138\uC694"},gG={unlockNeeds:"\uC7A0\uAE08 \uD574\uC81C \uD544\uC694",price:"\uAC00\uACA9",unlockWithJolicoin:"GEM\uC73C\uB85C \uC7A0\uAE08 \uD574\uC81C",unlockWithJolicoinDescription:"GEM\uC73C\uB85C \uC790\uB3D9 \uC7A0\uAE08 \uD574\uC81C",useJolicoin:"GEM \uC0AC\uC6A9",balance:"GEM \uC794\uC561"},yG={instead:"\uAD11\uACE0 \uC2DC\uCCAD \uB300\uC2E0",introduct:"{{coin}} Jolicoin\uC744 \uC0AC\uC6A9\uD558\uC5EC \uB354 \uB098\uC740 \uACBD\uD5D8\uC744 \uC704\uD574 \uC7A0\uAE08 \uD574\uC81C",tips:"{{coin}}\uC744 \uBB34\uB8CC\uB85C \uBC1B\uC73C\uC138\uC694",login:"Jolicoin\uC73C\uB85C \uB4F1\uB85D \uBC0F \uC7A0\uAE08 \uD574\uC81C",noWatchAds:"\uC544\uB2C8\uC694, \uAD11\uACE0 \uC2DC\uCCAD",noThanks:"\uC544\uB2C8\uC694, \uAC10\uC0AC\uD569\uB2C8\uB2E4",rewardTips:"\uCD95\uD558\uD569\uB2C8\uB2E4! {{coin}} Jolicoin\uC744 \uBC1B\uC558\uC2B5\uB2C8\uB2E4! \uC7A0\uAE08 \uD574\uC81C\uB97C \uC2DC\uC791\uD558\uC138\uC694!"},_G={jolicoin:vG,joligem:gG,loginGuide:yG},bG={unlockNeeds:"\u89E3\u9396\u9700\u6C42",price:"\u50F9\u683C",unlockWithJolicoin:"\u4F7F\u7528 Jolicoin \u89E3\u9396",unlockWithJolicoinDescription:"\u81EA\u52D5\u4F7F\u7528 Jolicoin \u89E3\u9396",useJolicoin:"\u4F7F\u7528 Jolicoin",payAndUnlock:"\u652F\u4ED8\u4E26\u89E3\u9396",noWatchAds:"\u4E0D\uFF0C\u89C0\u770B\u5EE3\u544A",noThanks:"\u4E0D\u7528\u4E86",balance:"\u9918\u984D",coinUsed:"\u5DF2\u4F7F\u7528\u7684 Jolicoin",unlockSuccess:"\u89E3\u9396\u6210\u529F",unlockFailed:"\u89E3\u9396\u5931\u6557",unlockFailedNotLogin:"\u8ACB\u767B\u5165\u5F8C\u5B8C\u6210\u89E3\u9396",unlockFailedPaying:"\u652F\u4ED8\u6B63\u5728\u9032\u884C\u4E2D\uFF0C\u8ACB\u52FF\u91CD\u8907\u64CD\u4F5C",unlockFailedProductIdNotFound:"\u5546\u54C1\u5DF2\u904E\u671F\uFF0C\u8ACB\u9078\u64C7\u5176\u4ED6\u5546\u54C1",unlockFailedProductInvalid:"\u7372\u53D6\u5546\u54C1\u4FE1\u606F\u5931\u6557\uFF0C\u8ACB\u91CD\u8A66\u6216\u9078\u64C7\u5176\u4ED6\u5546\u54C1",unlockFailedLaunch:"\u7121\u6CD5\u555F\u52D5\u652F\u4ED8\uFF0C\u8ACB\u7A0D\u5F8C\u91CD\u8A66",unlockFailedTransaction:"\u652F\u4ED8\u5931\u6557\uFF0C\u8ACB\u91CD\u8A66",unlockFaileVerify:"\u8A02\u55AE\u9A57\u8B49\u5931\u6557\uFF0C\u5982\u5DF2\u6263\u8CBB\u8ACB\u806F\u7E6B\u5BA2\u670D",transactionPending:"\u652F\u4ED8\u78BA\u8A8D\u5931\u6557\uFF0C\u8ACB\u806F\u7E6B\u652F\u4ED8\u670D\u52D9\u5546\u7372\u53D6\u652F\u6301"},wG={unlockNeeds:"\u89E3\u9396\u9700\u6C42",price:"\u50F9\u683C",unlockWithJolicoin:"\u4F7F\u7528 GEM \u89E3\u9396",unlockWithJolicoinDescription:"\u81EA\u52D5\u4F7F\u7528 GEM \u89E3\u9396",useJolicoin:"\u4F7F\u7528 GEM",balance:"GEM \u9918\u984D"},IG={instead:"\u89C0\u770B\u5EE3\u544A",introduct:"\u4F7F\u7528 {{coin}} Jolicoin \u89E3\u9396\u4EE5\u7372\u5F97\u66F4\u597D\u7684\u9AD4\u9A57",tips:"\u514D\u8CBB\u7372\u53D6 {{coin}}",login:"\u8A3B\u518A\u4E26\u89E3\u9396",noWatchAds:"\u4E0D\u7528\u4E86\uFF0C\u89C0\u770B\u5EE3\u544A",noThanks:"\u4E0D\u7528\u4E86",rewardTips:"\u606D\u559C\uFF01\u60A8\u7372\u5F97\u4E86 {{coin}} Jolicoin\uFF01\u958B\u59CB\u89E3\u9396\u5427\uFF01"},EG={jolicoin:bG,joligem:wG,loginGuide:IG},kG={unlockNeeds:"Entsperren erforderlich",price:"Preis",unlockWithJolicoin:"Mit Jolicoin entsperren",unlockWithJolicoinDescription:"Automatisch mit Jolicoin entsperren",useJolicoin:"Jolicoin verwenden",payAndUnlock:"Bezahlen und entsperren",noWatchAds:"Nein, Werbung ansehen",noThanks:"Nein danke",balance:"Guthaben",coinUsed:"Verwendete Jolicoin",unlockSuccess:"Erfolgreich entsperrt",unlockFailed:"Entsperren fehlgeschlagen",unlockFailedNotLogin:"Bitte melden Sie sich an, um die Entsperrung abzuschlie\xDFen",unlockFailedPaying:"Zahlung l\xE4uft bereits. Bitte nicht wiederholen",unlockFailedProductIdNotFound:"Produkt ist abgelaufen. Bitte w\xE4hlen Sie ein anderes Produkt",unlockFailedProductInvalid:"Produktinformationen konnten nicht abgerufen werden. Bitte versuchen Sie es erneut oder w\xE4hlen Sie ein anderes Produkt",unlockFailedLaunch:"Zahlung konnte nicht gestartet werden. Bitte versuchen Sie es sp\xE4ter erneut",unlockFailedTransaction:"Zahlung fehlgeschlagen. Bitte versuchen Sie es erneut",unlockFaileVerify:"Bestellbest\xE4tigung fehlgeschlagen. Falls Ihnen bereits etwas berechnet wurde, kontaktieren Sie bitte den Support",transactionPending:"Zahlungsbest\xE4tigung fehlgeschlagen. Bitte kontaktieren Sie Ihren Zahlungsanbieter f\xFCr Unterst\xFCtzung"},SG={unlockNeeds:"Entsperren erforderlich",price:"Preis",unlockWithJolicoin:"Mit GEM entsperren",unlockWithJolicoinDescription:"Automatisch mit GEM entsperren",useJolicoin:"GEM verwenden",balance:"GEM Guthaben"},AG={instead:"Anstatt Werbung anzusehen",introduct:"Verwenden Sie {{coin}} Jolicoin f\xFCr eine bessere Erfahrung",tips:"Holen Sie sich {{coin}} kostenlos",login:"Registrieren und entsperren mit Jolicoin",noWatchAds:"Nein, Werbung ansehen",noThanks:"Nein danke",rewardTips:"Gl\xFCckwunsch! Sie haben {{coin}} Jolicoin erhalten! Beginnen Sie mit der Entsperrung!"},xG={jolicoin:kG,joligem:SG,loginGuide:AG},CG={unlockNeeds:"D\xE9verrouillage n\xE9cessaire",price:"Prix",unlockWithJolicoin:"D\xE9verrouillez avec Jolicoin",unlockWithJolicoinDescription:"D\xE9verrouillez automatiquement avec Jolicoin",useJolicoin:"Utiliser Jolicoin",payAndUnlock:"Payer et d\xE9verrouiller",noWatchAds:"Non, regarder des publicit\xE9s",noThanks:"Non merci",balance:"Solde",coinUsed:"Jolicoin utilis\xE9",unlockSuccess:"D\xE9verrouillage r\xE9ussi",unlockFailed:"\xC9chec du d\xE9verrouillage",unlockFailedNotLogin:"Connectez-vous pour terminer le d\xE9verrouillage",unlockFailedPaying:"Le paiement est d\xE9j\xE0 en cours. Veuillez ne pas r\xE9p\xE9ter l'op\xE9ration",unlockFailedProductIdNotFound:"Le produit a expir\xE9. Veuillez choisir un autre produit",unlockFailedProductInvalid:"\xC9chec de la r\xE9cup\xE9ration des informations du produit. Veuillez r\xE9essayer ou choisir un autre produit",unlockFailedLaunch:"Impossible de lancer le paiement. Veuillez r\xE9essayer plus tard",unlockFailedTransaction:"\xC9chec du paiement. Veuillez r\xE9essayer",unlockFaileVerify:"\xC9chec de la v\xE9rification de la commande. Si vous avez \xE9t\xE9 factur\xE9, veuillez contacter le support",transactionPending:"\xC9chec de la confirmation du paiement. Veuillez contacter votre fournisseur de paiement pour obtenir de l'aide"},TG={unlockNeeds:"D\xE9verrouillage n\xE9cessaire",price:"Prix",unlockWithJolicoin:"D\xE9verrouillez avec GEM",unlockWithJolicoinDescription:"D\xE9verrouillez automatiquement avec GEM",useJolicoin:"Utiliser GEM",balance:"GEM Solde"},OG={instead:"Au lieu de regarder des publicit\xE9s",introduct:"Utilisez {{coin}} Jolicoin pour d\xE9bloquer pour une meilleure exp\xE9rience",tips:"Obtenez {{coin}} gratuitement",login:"S'inscrire et d\xE9bloquer avec Jolicoin",noWatchAds:"Non, regarder des publicit\xE9s",noThanks:"Non merci",rewardTips:"F\xE9licitations ! Vous avez re\xE7u {{coin}} Jolicoin. Commencez \xE0 d\xE9verrouiller !"},PG={jolicoin:CG,joligem:TG,loginGuide:OG},RG={unlockNeeds:"\u0905\u0928\u0932\u0949\u0915 \u0906\u0935\u0936\u094D\u092F\u0915",price:"\u092E\u0942\u0932\u094D\u092F",unlockWithJolicoin:"Jolicoin \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",unlockWithJolicoinDescription:"\u0938\u094D\u0935\u091A\u093E\u0932\u093F\u0924 \u0930\u0942\u092A \u0938\u0947 Jolicoin \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",useJolicoin:"Jolicoin \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0947\u0902",payAndUnlock:"\u092D\u0941\u0917\u0924\u093E\u0928 \u0914\u0930 \u0905\u0928\u0932\u0949\u0915",noWatchAds:"\u0928\u0939\u0940\u0902, \u0935\u093F\u091C\u094D\u091E\u093E\u092A\u0928 \u0926\u0947\u0916\u0947\u0902",noThanks:"\u0928\u0939\u0940\u0902, \u0927\u0928\u094D\u092F\u0935\u093E\u0926",balance:"\u0936\u0947\u0937 \u0930\u093E\u0936\u093F",coinUsed:"\u0909\u092A\u092F\u094B\u0917 \u0915\u093F\u092F\u093E \u0917\u092F\u093E Jolicoin",unlockSuccess:"\u0905\u0928\u0932\u0949\u0915 \u0938\u092B\u0932",unlockFailed:"\u0905\u0928\u0932\u0949\u0915 \u0935\u093F\u092B\u0932",unlockFailedNotLogin:"\u0905\u0928\u0932\u0949\u0915 \u092A\u0942\u0930\u093E \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0932\u0949\u0917\u093F\u0928 \u0915\u0930\u0947\u0902",unlockFailedPaying:"\u092D\u0941\u0917\u0924\u093E\u0928 \u092A\u0939\u0932\u0947 \u0938\u0947 \u0939\u0940 \u092A\u094D\u0930\u0917\u0924\u093F \u092A\u0930 \u0939\u0948\u0964 \u0915\u0943\u092A\u092F\u093E \u0911\u092A\u0930\u0947\u0936\u0928 \u0926\u094B\u0939\u0930\u093E\u090F\u0902 \u0928\u0939\u0940\u0902",unlockFailedProductIdNotFound:"\u0909\u0924\u094D\u092A\u093E\u0926 \u0915\u0940 \u0938\u092E\u092F \u0938\u0940\u092E\u093E \u0938\u092E\u093E\u092A\u094D\u0924 \u0939\u094B \u0917\u0908 \u0939\u0948\u0964 \u0915\u0943\u092A\u092F\u093E \u0926\u0942\u0938\u0930\u093E \u0909\u0924\u094D\u092A\u093E\u0926 \u091A\u0941\u0928\u0947\u0902",unlockFailedProductInvalid:"\u0909\u0924\u094D\u092A\u093E\u0926 \u091C\u093E\u0928\u0915\u093E\u0930\u0940 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u0930\u0928\u0947 \u092E\u0947\u0902 \u0935\u093F\u092B\u0932\u0964 \u0915\u0943\u092A\u092F\u093E \u092A\u0941\u0928\u0903 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902 \u092F\u093E \u0926\u0942\u0938\u0930\u093E \u0909\u0924\u094D\u092A\u093E\u0926 \u091A\u0941\u0928\u0947\u0902",unlockFailedLaunch:"\u092D\u0941\u0917\u0924\u093E\u0928 \u0936\u0941\u0930\u0942 \u0928\u0939\u0940\u0902 \u0915\u093F\u092F\u093E \u091C\u093E \u0938\u0915\u0924\u093E\u0964 \u0915\u0943\u092A\u092F\u093E \u092C\u093E\u0926 \u092E\u0947\u0902 \u092A\u0941\u0928\u0903 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902",unlockFailedTransaction:"\u092D\u0941\u0917\u0924\u093E\u0928 \u0935\u093F\u092B\u0932\u0964 \u0915\u0943\u092A\u092F\u093E \u092A\u0941\u0928\u0903 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902",unlockFaileVerify:"\u0911\u0930\u094D\u0921\u0930 \u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0935\u093F\u092B\u0932\u0964 \u092F\u0926\u093F \u0906\u092A\u0938\u0947 \u0936\u0941\u0932\u094D\u0915 \u0932\u093F\u092F\u093E \u0917\u092F\u093E \u0939\u0948, \u0924\u094B \u0915\u0943\u092A\u092F\u093E \u0938\u0939\u093E\u092F\u0924\u093E \u0938\u0947 \u0938\u0902\u092A\u0930\u094D\u0915 \u0915\u0930\u0947\u0902",transactionPending:"\u092D\u0941\u0917\u0924\u093E\u0928 \u092A\u0941\u0937\u094D\u091F\u093F\u0915\u0930\u0923 \u0935\u093F\u092B\u0932\u0964 \u0915\u0943\u092A\u092F\u093E \u0938\u0939\u093E\u092F\u0924\u093E \u0915\u0947 \u0932\u093F\u090F \u0905\u092A\u0928\u0947 \u092D\u0941\u0917\u0924\u093E\u0928 \u092A\u094D\u0930\u0926\u093E\u0924\u093E \u0938\u0947 \u0938\u0902\u092A\u0930\u094D\u0915 \u0915\u0930\u0947\u0902"},NG={unlockNeeds:"\u0905\u0928\u0932\u0949\u0915 \u0906\u0935\u0936\u094D\u092F\u0915",price:"\u092E\u0942\u0932\u094D\u092F",unlockWithJolicoin:"GEM \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",unlockWithJolicoinDescription:"\u0938\u094D\u0935\u091A\u093E\u0932\u093F\u0924 \u0930\u0942\u092A \u0938\u0947 GEM \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",useJolicoin:"GEM \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0947\u0902",balance:"GEM \u0936\u0947\u0937 \u0930\u093E\u0936\u093F"},DG={instead:"\u0935\u093F\u091C\u094D\u091E\u093E\u092A\u0928 \u0926\u0947\u0916\u0928\u0947 \u0915\u0947 \u092C\u091C\u093E\u092F",introduct:"{{coin}} Jolicoin \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0915\u0947 \u092C\u0947\u0939\u0924\u0930 \u0905\u0928\u0941\u092D\u0935 \u0915\u0947 \u0932\u093F\u090F \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",tips:"{{coin}} \u092E\u0941\u092B\u094D\u0924 \u092E\u0947\u0902 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u0930\u0947\u0902",login:"Jolicoin \u0915\u0947 \u0938\u093E\u0925 \u0930\u091C\u093F\u0938\u094D\u091F\u0930 \u0914\u0930 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",noWatchAds:"\u0928\u0939\u0940\u0902, \u0935\u093F\u091C\u094D\u091E\u093E\u092A\u0928 \u0926\u0947\u0916\u0947\u0902",noThanks:"\u0928\u0939\u0940\u0902, \u0927\u0928\u094D\u092F\u0935\u093E\u0926",rewardTips:"\u0905\u092D\u093F\u0928\u0902\u0926\u0928! \u0906\u092A\u0915\u094B {{coin}} Jolicoin \u092E\u093F\u0932\u093E \u0939\u0948! \u0905\u0928\u0932\u0949\u0915 \u0936\u0941\u0930\u0942 \u0915\u0930\u0947\u0902!"},LG={jolicoin:RG,joligem:NG,loginGuide:DG},MG={unlockNeeds:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430",price:"\u0426\u0435\u043D\u0430",unlockWithJolicoin:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E Jolicoin",unlockWithJolicoinDescription:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E Jolicoin",useJolicoin:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C Jolicoin",payAndUnlock:"\u041E\u043F\u043B\u0430\u0442\u0438\u0442\u044C \u0438 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C",noWatchAds:"\u041D\u0435\u0442, \u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",noThanks:"\u041D\u0435\u0442, \u0441\u043F\u0430\u0441\u0438\u0431\u043E",balance:"\u0411\u0430\u043B\u0430\u043D\u0441",coinUsed:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E Jolicoin",unlockSuccess:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430 \u0443\u0441\u043F\u0435\u0448\u043D\u0430",unlockFailed:"\u041E\u0448\u0438\u0431\u043A\u0430 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0438",unlockFailedNotLogin:"\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u043E\u0439\u0434\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0443",unlockFailedPaying:"\u041E\u043F\u043B\u0430\u0442\u0430 \u0443\u0436\u0435 \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u0442\u0441\u044F. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043D\u0435 \u043F\u043E\u0432\u0442\u043E\u0440\u044F\u0439\u0442\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u044E",unlockFailedProductIdNotFound:"\u0421\u0440\u043E\u043A \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0442\u043E\u0432\u0430\u0440\u0430 \u0438\u0441\u0442\u0435\u043A. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u043E\u0439 \u0442\u043E\u0432\u0430\u0440",unlockFailedProductInvalid:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043E \u0442\u043E\u0432\u0430\u0440\u0435. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443 \u0438\u043B\u0438 \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u043E\u0439 \u0442\u043E\u0432\u0430\u0440",unlockFailedLaunch:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043D\u0430\u0447\u0430\u0442\u044C \u043E\u043F\u043B\u0430\u0442\u0443. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443 \u043F\u043E\u0437\u0436\u0435",unlockFailedTransaction:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043E\u043F\u043B\u0430\u0442\u044B. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443",unlockFaileVerify:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438 \u0437\u0430\u043A\u0430\u0437\u0430. \u0415\u0441\u043B\u0438 \u0441 \u0432\u0430\u0441 \u0431\u044B\u043B\u0430 \u0441\u043F\u0438\u0441\u0430\u043D\u0430 \u043F\u043B\u0430\u0442\u0430, \u043F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044C \u0432 \u0441\u043B\u0443\u0436\u0431\u0443 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",transactionPending:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F \u043E\u043F\u043B\u0430\u0442\u044B. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044C \u043A \u0432\u0430\u0448\u0435\u043C\u0443 \u043F\u043B\u0430\u0442\u0435\u0436\u043D\u043E\u043C\u0443 \u043F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440\u0443 \u0437\u0430 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u043E\u0439"},qG={unlockNeeds:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430",price:"\u0426\u0435\u043D\u0430",unlockWithJolicoin:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E GEM",unlockWithJolicoinDescription:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E GEM",useJolicoin:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C GEM",balance:"GEM \u0411\u0430\u043B\u0430\u043D\u0441"},UG={instead:"\u0412\u043C\u0435\u0441\u0442\u043E \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u0440\u0435\u043A\u043B\u0430\u043C\u044B",introduct:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 {{coin}} Jolicoin \u0434\u043B\u044F \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0438 \u0434\u043B\u044F \u043B\u0443\u0447\u0448\u0435\u0433\u043E \u043E\u043F\u044B\u0442\u0430",tips:"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u0435 {{coin}} \u0431\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u043E",login:"\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0439\u0442\u0435\u0441\u044C \u0438 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E Jolicoin",noWatchAds:"\u041D\u0435\u0442, \u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",noThanks:"\u041D\u0435\u0442, \u0441\u043F\u0430\u0441\u0438\u0431\u043E",rewardTips:"\u041F\u043E\u0437\u0434\u0440\u0430\u0432\u043B\u044F\u0435\u043C! \u0412\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u043B\u0438 {{coin}} Jolicoin. \u041D\u0430\u0447\u043D\u0438\u0442\u0435 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0443!"},FG={jolicoin:MG,joligem:qG,loginGuide:UG},jG={unlockNeeds:"\u0986\u09A8\u09B2\u0995 \u09AA\u09CD\u09B0\u09AF\u09BC\u09CB\u099C\u09A8",price:"\u09AE\u09C2\u09B2\u09CD\u09AF",unlockWithJolicoin:"Jolicoin \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",unlockWithJolicoinDescription:"\u09B8\u09CD\u09AC\u09AF\u09BC\u0982\u0995\u09CD\u09B0\u09BF\u09AF\u09BC\u09AD\u09BE\u09AC\u09C7 Jolicoin \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",useJolicoin:"Jolicoin \u09AC\u09CD\u09AF\u09AC\u09B9\u09BE\u09B0 \u0995\u09B0\u09C1\u09A8",payAndUnlock:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u098F\u09AC\u0982 \u0986\u09A8\u09B2\u0995",noWatchAds:"\u09A8\u09BE, \u09AC\u09BF\u099C\u09CD\u099E\u09BE\u09AA\u09A8 \u09A6\u09C7\u0996\u09C1\u09A8",noThanks:"\u09A8\u09BE, \u09A7\u09A8\u09CD\u09AF\u09AC\u09BE\u09A6",balance:"\u09AC\u09CD\u09AF\u09BE\u09B2\u09C7\u09A8\u09CD\u09B8",coinUsed:"\u09AC\u09CD\u09AF\u09AC\u09B9\u09C3\u09A4 Jolicoin",unlockSuccess:"\u0986\u09A8\u09B2\u0995 \u09B8\u09AB\u09B2",unlockFailed:"\u0986\u09A8\u09B2\u0995 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5",unlockFailedNotLogin:"\u0986\u09A8\u09B2\u0995 \u09B8\u09AE\u09CD\u09AA\u09C2\u09B0\u09CD\u09A3 \u0995\u09B0\u09A4\u09C7 \u09B2\u0997\u0987\u09A8 \u0995\u09B0\u09C1\u09A8",unlockFailedPaying:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u0987\u09A4\u09BF\u09AE\u09A7\u09CD\u09AF\u09C7 \u099A\u09B2\u099B\u09C7\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09AA\u09C1\u09A8\u09B0\u09BE\u09AC\u09C3\u09A4\u09CD\u09A4\u09BF \u0995\u09B0\u09AC\u09C7\u09A8 \u09A8\u09BE",unlockFailedProductIdNotFound:"\u09AA\u09A3\u09CD\u09AF\u09C7\u09B0 \u09AE\u09C7\u09AF\u09BC\u09BE\u09A6 \u09B6\u09C7\u09B7 \u09B9\u09AF\u09BC\u09C7 \u0997\u09C7\u099B\u09C7\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0985\u09A8\u09CD\u09AF \u09AA\u09A3\u09CD\u09AF \u09AC\u09C7\u099B\u09C7 \u09A8\u09BF\u09A8",unlockFailedProductInvalid:"\u09AA\u09A3\u09CD\u09AF\u09C7\u09B0 \u09A4\u09A5\u09CD\u09AF \u09AA\u09C1\u09A8\u09B0\u09C1\u09A6\u09CD\u09A7\u09BE\u09B0 \u0995\u09B0\u09A4\u09C7 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09C1\u09A8 \u09AC\u09BE \u0985\u09A8\u09CD\u09AF \u09AA\u09A3\u09CD\u09AF \u09AC\u09C7\u099B\u09C7 \u09A8\u09BF\u09A8",unlockFailedLaunch:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09B6\u09C1\u09B0\u09C1 \u0995\u09B0\u09A4\u09C7 \u0985\u0995\u09CD\u09B7\u09AE\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09AA\u09B0\u09C7 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09C1\u09A8",unlockFailedTransaction:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09C1\u09A8",unlockFaileVerify:"\u0985\u09B0\u09CD\u09A1\u09BE\u09B0 \u09AF\u09BE\u099A\u09BE\u0987 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u09AF\u09A6\u09BF \u0986\u09AA\u09A8\u09BE\u0995\u09C7 \u099A\u09BE\u09B0\u09CD\u099C \u0995\u09B0\u09BE \u09B9\u09AF\u09BC\u09C7 \u09A5\u09BE\u0995\u09C7, \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09B8\u09B9\u09BE\u09AF\u09BC\u09A4\u09BE\u09B0 \u09B8\u09BE\u09A5\u09C7 \u09AF\u09CB\u0997\u09BE\u09AF\u09CB\u0997 \u0995\u09B0\u09C1\u09A8",transactionPending:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09A8\u09BF\u09B6\u09CD\u099A\u09BF\u09A4\u0995\u09B0\u09A3 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09B8\u09B9\u09BE\u09AF\u09BC\u09A4\u09BE\u09B0 \u099C\u09A8\u09CD\u09AF \u0986\u09AA\u09A8\u09BE\u09B0 \u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09AA\u09CD\u09B0\u09A6\u09BE\u09A8\u0995\u09BE\u09B0\u09C0\u09B0 \u09B8\u09BE\u09A5\u09C7 \u09AF\u09CB\u0997\u09BE\u09AF\u09CB\u0997 \u0995\u09B0\u09C1\u09A8"},JG={unlockNeeds:"\u0986\u09A8\u09B2\u0995 \u09AA\u09CD\u09B0\u09AF\u09BC\u09CB\u099C\u09A8",price:"\u09AE\u09C2\u09B2\u09CD\u09AF",unlockWithJolicoin:"GEM \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",unlockWithJolicoinDescription:"\u09B8\u09CD\u09AC\u09AF\u09BC\u0982\u0995\u09CD\u09B0\u09BF\u09AF\u09BC\u09AD\u09BE\u09AC\u09C7 GEM \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",useJolicoin:"GEM \u09AC\u09CD\u09AF\u09AC\u09B9\u09BE\u09B0 \u0995\u09B0\u09C1\u09A8",balance:"GEM \u09AC\u09CD\u09AF\u09BE\u09B2\u09C7\u09A8\u09CD\u09B8"},GG={instead:"\u09AC\u09BF\u099C\u09CD\u099E\u09BE\u09AA\u09A8 \u09A6\u09C7\u0996\u09A4\u09C7",introduct:"\u0986\u09AA\u09A8\u09BE\u09B0 \u09AD\u09BE\u09B2 \u0985\u09AD\u09BF\u099C\u09CD\u099E\u09A4\u09BE\u09B0 \u099C\u09A8\u09CD\u09AF {{coin}}Jolicoin \u09AC\u09CD\u09AF\u09AC\u09B9\u09BE\u09B0 \u0995\u09B0\u09C1\u09A8",tips:"\u09AB\u09CD\u09B0\u09BF {{coin}} \u09AA\u09C7\u09A4\u09C7",login:"Jolicoin \u09B8\u09BE\u09A5\u09C7 \u09B0\u09C7\u099C\u09BF\u09B8\u09CD\u099F\u09BE\u09B0 \u098F\u09AC\u0982 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",noWatchAds:"\u09A8\u09BE, \u09AC\u09BF\u099C\u09CD\u099E\u09BE\u09AA\u09A8 \u09A6\u09C7\u0996\u09A4\u09C7",noThanks:"\u09A8\u09BE, \u09A7\u09A8\u09CD\u09AF\u09AC\u09BE\u09A6",rewardTips:"\u0985\u09AD\u09BF\u09A8\u09A8\u09CD\u09A6\u09A8! \u0986\u09AA\u09A8\u09BF {{coin}} Jolicoin \u09AA\u09C7\u09AF\u09BC\u09C7\u099B\u09C7\u09A8! \u0986\u09A8\u09B2\u0995 \u09B6\u09C1\u09B0\u09C1 \u0995\u09B0\u09C1\u09A8!"},BG={jolicoin:jG,joligem:JG,loginGuide:GG},HG={unlockNeeds:"Kilidi a\xE7mak gerekli",price:"Fiyat",unlockWithJolicoin:"Jolicoin ile kilidi a\xE7\u0131n",unlockWithJolicoinDescription:"Jolicoin ile otomatik olarak kilidi a\xE7\u0131n",useJolicoin:"Jolicoin kullan",payAndUnlock:"\xD6de ve kilidi a\xE7",noWatchAds:"Hay\u0131r, reklamlar\u0131 izle",noThanks:"Hay\u0131r, te\u015Fekk\xFCrler",balance:"Bakiye",coinUsed:"Kullan\u0131lan Jolicoin",unlockSuccess:"Kilidi a\xE7ma ba\u015Far\u0131l\u0131",unlockFailed:"Kilidi a\xE7ma ba\u015Far\u0131s\u0131z",unlockFailedNotLogin:"Kilidi a\xE7may\u0131 tamamlamak i\xE7in l\xFCtfen giri\u015F yap\u0131n",unlockFailedPaying:"\xD6deme zaten devam ediyor. L\xFCtfen i\u015Flemi tekrarlamay\u0131n",unlockFailedProductIdNotFound:"\xDCr\xFCn\xFCn s\xFCresi dolmu\u015F. L\xFCtfen ba\u015Fka bir \xFCr\xFCn se\xE7in",unlockFailedProductInvalid:"\xDCr\xFCn bilgileri al\u0131namad\u0131. L\xFCtfen tekrar deneyin veya ba\u015Fka bir \xFCr\xFCn se\xE7in",unlockFailedLaunch:"\xD6deme ba\u015Flat\u0131lamad\u0131. L\xFCtfen daha sonra tekrar deneyin",unlockFailedTransaction:"\xD6deme ba\u015Far\u0131s\u0131z. L\xFCtfen tekrar deneyin",unlockFaileVerify:"Sipari\u015F do\u011Frulamas\u0131 ba\u015Far\u0131s\u0131z. \xDCcretlendirildiyseniz, l\xFCtfen destek ile ileti\u015Fime ge\xE7in",transactionPending:"\xD6deme onay\u0131 ba\u015Far\u0131s\u0131z. L\xFCtfen destek i\xE7in \xF6deme sa\u011Flay\u0131c\u0131n\u0131zla ileti\u015Fime ge\xE7in"},VG={unlockNeeds:"Kilidi a\xE7mak gerekli",price:"Fiyat",unlockWithJolicoin:"GEM ile kilidi a\xE7\u0131n",unlockWithJolicoinDescription:"GEM ile otomatik olarak kilidi a\xE7\u0131n",useJolicoin:"GEM kullan",balance:"GEM Bakiye"},$G={instead:"Reklam izleme yerine",introduct:"{{coin}} Jolicoin kullanarak daha iyi deneyim i\xE7in kilidi a\xE7\u0131n",tips:"{{coin}} almak i\xE7in \xFCcretsiz",login:"Jolicoin ile kay\u0131t ve kilidi a\xE7\u0131n",noWatchAds:"Hay\u0131r, reklamlar\u0131 izle",noThanks:"Hay\u0131r, te\u015Fekk\xFCrler",rewardTips:"Tebrikler! {{coin}} Jolicoin ald\u0131n\u0131z. Kilidi a\xE7maya ba\u015Flay\u0131n!"},WG={jolicoin:HG,joligem:VG,loginGuide:$G},Xk={en:{translations:uk},en_GB:{translations:uk},zh:{translations:dk},"zh-Hans":{translations:dk},"zh-Hant":{translations:EG},id:{translations:pk},in:{translations:pk},ms:{translations:fk},my:{translations:fk},th:{translations:Q2},vi:{translations:tG},fil:{translations:hk},tl:{translations:hk},es:{translations:lG},ja:{translations:pG},pt:{translations:mk},pt_PT:{translations:mk},ko:{translations:_G},de:{translations:xG},fr:{translations:PG},hi:{translations:LG},ru:{translations:FG},bn:{translations:BG},tr:{translations:WG}},Zk=jr(void 0),eS=({definition:e,children:t})=>{let r={translations:e};return _(Zk.Provider,{value:r,children:t})},Ud=null,zG={zh:"zh","zh-CN":"zh","zh-TW":"zh-Hant","zh-Hans":"zh",zh_Hans:"zh","zh-Hant":"zh-Hant",zh_Hant:"zh-Hant",id:"id",in:"id",ms:"ms",my:"ms",th:"th",vi:"vi",fil:"tl",tl:"tl",es:"es",ja:"ja",pt:"pt",pt_PT:"pt","pt-PT":"pt",ko:"ko",de:"de",fr:"fr",hi:"hi",ru:"ru",ar:"ar",tr:"tr"},tS=e=>{Ud=e},rS=()=>{var e;if(typeof Ud!="function")return console.warn("Language handler is not registered or is not a function. Defaulting to 'en'."),"en";try{let t=Ud();return(e=zG[t])!=null?e:"en"}catch(t){return console.error("Error executing registered language handler:",t),"en"}};ts=class{constructor(t,r){this.zIndex=t,this.pointerEvents=r,this.persistentIframe=null,this.iframeEmotionCache=null,this.iframeLoadPromise=null,this.iframeLoadResolver=null,this.removeGlobalTransformSync=null,this.referenceCount=0}create(){typeof window>"u"||this.persistentIframe&&document.body.contains(this.persistentIframe)||(this.persistentIframe=document.createElement("iframe"),this.persistentIframe.style.position="fixed",this.persistentIframe.style.left="0",this.persistentIframe.style.top="0",this.persistentIframe.style.width="100vw",this.persistentIframe.style.height="100vh",this.persistentIframe.style.zIndex=String(this.zIndex),this.persistentIframe.style.pointerEvents=this.pointerEvents,this.persistentIframe.style.border="none",this.persistentIframe.style.background="transparent",this.persistentIframe.setAttribute("allowtransparency","true"),this.persistentIframe.style.display="none",document.body.appendChild(this.persistentIframe),this.iframeLoadPromise=new Promise(t=>{this.iframeLoadResolver=t}),this.persistentIframe.onload=()=>{var r,n,i;if(!((n=(r=this.persistentIframe)==null?void 0:r.contentDocument)!=null&&n.head)){console.error("[SingletonIframe] Iframe loaded, but document or head is not available.");return}console.log("[SingletonIframe] Iframe content loaded."),this.iframeEmotionCache=Vk({key:"iframe-css",container:this.persistentIframe.contentDocument.head,prepend:!0}),this.removeGlobalTransformSync&&this.removeGlobalTransformSync(),this.removeGlobalTransformSync=YG(this.persistentIframe);let t=this.persistentIframe.contentDocument;t&&["--status-bar-height","--navigation-bar-height"].forEach(o=>{let a=document.documentElement.style.getPropertyValue(o);a&&t.body.style.setProperty(o,a)}),(i=this.iframeLoadResolver)==null||i.call(this),this.iframeLoadResolver=null},this.persistentIframe.onerror=()=>{console.error("[SingletonIframe] Iframe failed to load.")},this.persistentIframe.src="about:blank")}acquire(){return w(this,null,function*(){if(this.create(),yield this.iframeLoadPromise,!this.persistentIframe||!this.iframeEmotionCache)throw new Error("[SingletonIframe] Iframe or cache not available after load.");return this.referenceCount++,this.persistentIframe.style.display==="none"&&(nS(this.persistentIframe),this.persistentIframe.style.display="block"),{iframe:this.persistentIframe,emotionCache:this.iframeEmotionCache}})}release(){this.referenceCount--,this.referenceCount<=0&&(this.referenceCount=0,this.persistentIframe&&(this.persistentIframe.style.display="none"))}},eo=new ts(99999998,"auto"),vk=new ts(99999999,"none"),QG=({title:e,content:t,noHeader:r,height:n,padding:i="16px",footerButtons:o,onClose:a})=>{let s=po(),l={container:D`
70
+ `,q2=({children:e,isOpen:t=!1,preventCloseOnBackdropClick:r=!1,onClose:n,className:i="",placement:o="bottom"},a)=>{let[s,l]=Jt(!1),[c,d]=Jt(null),[u,p]=Jt(!1),f=Zi(null),m=Zi(null),g=Zi(!1);Yr(()=>{if(s&&f.current){let M=f.current.ownerDocument,Re=M.createElement("style");Re.innerHTML=M2,M.head.appendChild(Re);let Ne={overflow:M.body.style.overflow,position:M.body.style.position,width:M.body.style.width};return M.body.style.overflow="hidden",M.body.style.position="fixed",M.body.style.width="100%",()=>{M.head.contains(Re)&&M.head.removeChild(Re),M.body.style.overflow=Ne.overflow,M.body.style.position=Ne.position,M.body.style.width=Ne.width}}},[s]),Yr(()=>{t?!s&&!g.current&&(l(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)})):s&&(g.current=!0,d("leave"),p(!1))},[t]);let y=bt(M=>{M.target===m.current&&(c==="leave"?(d(null),l(!1),g.current=!1,n&&n()):c==="enter"&&(d(null),p(!0)))},[c,n]),v=bt(()=>{s&&!g.current&&(g.current=!0,d("leave"),p(!1))},[s]),b=bt(M=>{r||(M.preventDefault(),M.stopPropagation(),v())},[v]),k=bt(()=>{!g.current&&!s&&(l(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)}))},[s]),x=bt(()=>s&&!g.current,[s]);if(Yr(()=>{if(a){let M={show:k,hide:v,isOpen:x};typeof a=="function"?a(M):a&&(a.current=M)}},[k,v,x,a]),!s)return null;let P=o==="center",C=F(T({},Td.drawerBackdrop),{alignItems:P?"center":"flex-end",justifyContent:"center",backgroundColor:"transparent",pointerEvents:"none"}),A={position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.6)",pointerEvents:"auto",opacity:c==="enter"||u?1:0,transition:"opacity 0.3s"},O=P?F(T({},Td.centerDrawer),{pointerEvents:"auto"}):F(T({},Td.drawer),{height:"auto",pointerEvents:"auto"});s&&!u&&!c&&!P&&(O.transform="translateY(100%)");let J=c?P?c==="leave"?"fadeOut":c==="enter"?"fadeIn":"":`drawer-${c}`:"",Ke=c?`backdrop-${c}`:"";return _("div",{ref:f,style:C,children:[_("div",{style:A,className:Ke,onClick:b}),_("div",{ref:m,style:F(T({},O),{opacity:P&&c===null&&!u?0:1}),className:`${P&&c==="leave"?"fadeOut":J} ${i}`,onAnimationEnd:y,onClick:M=>M.stopPropagation(),children:_("div",{style:L2.styles,children:e})})]})},U2=yu(q2);F2={unlockNeeds:"Unlock needs",price:"Price",unlockWithJolicoin:"Unlock with Jolicoin for a better experience",unlockWithJolicoinDescription:"Unlock with Jolicoin automatically",useJolicoin:"Use Jolicoin",payAndUnlock:"Pay and unlock",noWatchAds:"No, watch ads",noThanks:"No thanks",balance:"Balance",coinUsed:"Jolicoin used",unlockSuccess:"Unlock successful",unlockFailed:"Unlock failed",unlockFailedNotLogin:"Please log in to continue",unlockFailedPaying:"Payment is already in progress. Please do not retry",unlockFailedProductIdNotFound:"Product has expired. Please choose another product",unlockFailedProductInvalid:"Failed to retrieve product info. Please retry or choose another product",unlockFailedLaunch:"Unable to start payment. Please try again later",unlockFailedTransaction:"Payment failed. Please try again",unlockFaileVerify:"Order verification failed. If you\u2019ve been charged, please contact support",transactionPending:"Payment confirmation failed. Please contact your payment provider for support"},j2={unlockNeeds:"Unlock needs",price:"Price",unlockWithJolicoin:"Unlock with GEM for a better experience",unlockWithJolicoinDescription:"Unlock with GEM automatically",useJolicoin:"Use GEM",balance:"GEM Balance"},J2={instead:"Instead of watching ads",introduct:"Use {{coin}}Jolicoin to unlock for better experience",tips:"Get {{coin}} for free",login:"Register & Unlock with Jolicoin",noWatchAds:"No, watch ads",noThanks:"No thanks",rewardTips:"Congrats! You have received {{coin}} Jolicoin! Start unlocking now!"},dk={jolicoin:F2,joligem:j2,loginGuide:J2},G2={unlockNeeds:"\u89E3\u9501\u9700\u6C42",price:"\u4EF7\u683C",unlockWithJolicoin:"\u4F7F\u7528 Jolicoin \u89E3\u9501",unlockWithJolicoinDescription:"\u81EA\u52A8\u4F7F\u7528 Jolicoin \u89E3\u9501",useJolicoin:"\u4F7F\u7528 Jolicoin",payAndUnlock:"\u652F\u4ED8\u5E76\u89E3\u9501",noWatchAds:"\u4E0D\u7528\u4E86\uFF0C\u89C2\u770B\u5E7F\u544A",noThanks:"\u4E0D\u7528\u4E86",balance:"\u4F59\u989D",coinUsed:"\u5DF2\u4F7F\u7528\u7684 Jolicoin",unlockSuccess:"\u89E3\u9501\u6210\u529F",unlockFailed:"\u89E3\u9501\u5931\u8D25",unlockFailedNotLogin:"\u8BF7\u767B\u5F55\u540E\u5B8C\u6210\u89E3\u9501",unlockFailedPaying:"\u652F\u4ED8\u6B63\u5728\u8FDB\u884C\u4E2D\uFF0C\u8BF7\u52FF\u91CD\u590D\u64CD\u4F5C",unlockFailedProductIdNotFound:"\u5546\u54C1\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u9009\u62E9\u5176\u4ED6\u5546\u54C1",unlockFailedProductInvalid:"\u83B7\u53D6\u5546\u54C1\u4FE1\u606F\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\u6216\u9009\u62E9\u5176\u4ED6\u5546\u54C1",unlockFailedLaunch:"\u65E0\u6CD5\u542F\u52A8\u652F\u4ED8\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5",unlockFailedTransaction:"\u652F\u4ED8\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5",unlockFaileVerify:"\u8BA2\u5355\u9A8C\u8BC1\u5931\u8D25\uFF0C\u5982\u5DF2\u6263\u8D39\u8BF7\u8054\u7CFB\u5BA2\u670D",transactionPending:"\u652F\u4ED8\u786E\u8BA4\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u652F\u4ED8\u670D\u52A1\u5546\u83B7\u53D6\u652F\u6301"},B2={unlockNeeds:"\u89E3\u9501\u9700\u6C42",price:"\u4EF7\u683C",unlockWithJolicoin:"\u4F7F\u7528 GEM \u89E3\u9501",unlockWithJolicoinDescription:"\u81EA\u52A8\u4F7F\u7528 GEM \u89E3\u9501",useJolicoin:"\u4F7F\u7528 GEM",balance:"GEM \u4F59\u989D"},H2={instead:"\u89C2\u770B\u5E7F\u544A",introduct:"\u4F7F\u7528 {{coin}} Jolicoin \u89E3\u9501\u4EE5\u83B7\u5F97\u66F4\u597D\u7684\u4F53\u9A8C",tips:"\u514D\u8D39\u83B7\u53D6 {{coin}}",login:"\u6CE8\u518C\u5E76\u89E3\u9501",noWatchAds:"\u4E0D\u7528\u4E86\uFF0C\u89C2\u770B\u5E7F\u544A",noThanks:"\u4E0D\u7528\u4E86",rewardTips:"\u606D\u559C\uFF01\u60A8\u83B7\u5F97\u4E86 {{coin}} Jolicoin\uFF01\u5F00\u59CB\u89E3\u9501\u5427\uFF01"},pk={jolicoin:G2,joligem:B2,loginGuide:H2},V2={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai Jolicoin untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Otomatis mengurangi Jolicoin untuk item digital",useJolicoin:"Gunakan Jolicoin",payAndUnlock:"Bayar dan buka",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",balance:"Saldo",coinUsed:"Jolicoin yang digunakan",unlockSuccess:"Berhasil dibuka",unlockFailed:"Gagal membuka",unlockFailedNotLogin:"Silakan masuk untuk menyelesaikan pembukaan",unlockFailedPaying:"Pembayaran sedang diproses. Mohon jangan ulangi operasi",unlockFailedProductIdNotFound:"Produk telah kedaluwarsa. Silakan pilih produk lain",unlockFailedProductInvalid:"Gagal mendapatkan informasi produk. Silakan coba lagi atau pilih produk lain",unlockFailedLaunch:"Tidak dapat memulai pembayaran. Silakan coba lagi nanti",unlockFailedTransaction:"Pembayaran gagal. Silakan coba lagi",unlockFaileVerify:"Verifikasi pesanan gagal. Jika Anda telah dikenakan biaya, silakan hubungi dukungan",transactionPending:"Konfirmasi pembayaran gagal. Silakan hubungi penyedia pembayaran Anda untuk dukungan"},$2={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai GEM untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Otomatis mengurangi GEM untuk item digital",useJolicoin:"Gunakan GEM",balance:"GEM Saldo"},W2={instead:"Alihkan dari menonton iklan",introduct:"Gunakan {{coin}} Jolicoin untuk membuka untuk pengalaman yang lebih baik",tips:"Dapatkan {{coin}} gratis",login:"Daftar dan buka dengan Jolicoin",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",rewardTips:"Selamat! Anda telah menerima {{coin}} Jolicoin. Mulai membuka sekarang!"},fk={jolicoin:V2,joligem:$2,loginGuide:W2},z2={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai Jolicoin untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Potongan automatik Jolicoin untuk item digital",useJolicoin:"Gunakan Jolicoin",payAndUnlock:"Bayar dan buka",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",balance:"Baki",coinUsed:"Jolicoin yang digunakan",unlockSuccess:"Berjaya dibuka",unlockFailed:"Gagal membuka",unlockFailedNotLogin:"Sila log masuk untuk meneruskan",unlockFailedPaying:"Pembayaran sedang diproses. Sila jangan cuba lagi",unlockFailedProductIdNotFound:"Produk telah tamat tempoh. Sila pilih produk lain",unlockFailedProductInvalid:"Gagal mendapatkan maklumat produk. Sila cuba lagi atau pilih produk lain",unlockFailedLaunch:"Tidak dapat memulakan pembayaran. Sila cuba lagi kemudian",unlockFailedTransaction:"Pembayaran gagal. Sila cuba lagi",unlockFaileVerify:"Pengesahan pesanan gagal. Jika anda telah dikenakan caj, sila hubungi sokongan",transactionPending:"Pengesahan pembayaran gagal. Sila hubungi pembekal pembayaran anda untuk sokongan"},K2={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai GEM untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Otomatis mengurangi GEM untuk item digital",useJolicoin:"Gunakan GEM",balance:"GEM Saldo"},Y2={instead:"Alihkan dari menonton iklan",introduct:"Gunakan {{coin}} Jolicoin untuk membuka untuk pengalaman yang lebih baik",tips:"Dapatkan {{coin}} gratis",login:"Daftar dan buka dengan Jolicoin",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",rewardTips:"Selamat! Anda telah menerima {{coin}} Jolicoin. Mulai membuka sekarang!"},hk={jolicoin:z2,joligem:K2,loginGuide:Y2},Q2={unlockNeeds:"\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",price:"\u0E23\u0E32\u0E04\u0E32",unlockWithJolicoin:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E14\u0E49\u0E27\u0E22 Jolicoin",unlockWithJolicoinDescription:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2D\u0E31\u0E15\u0E42\u0E19\u0E21\u0E31\u0E15\u0E34\u0E14\u0E49\u0E27\u0E22 Jolicoin",useJolicoin:"\u0E43\u0E0A\u0E49 Jolicoin",payAndUnlock:"\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E41\u0E25\u0E30\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",noWatchAds:"\u0E44\u0E21\u0E48 \u0E14\u0E39\u0E42\u0E06\u0E29\u0E13\u0E32",noThanks:"\u0E44\u0E21\u0E48 \u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13",balance:"\u0E22\u0E2D\u0E14\u0E04\u0E07\u0E40\u0E2B\u0E25\u0E37\u0E2D",coinUsed:"Jolicoin \u0E17\u0E35\u0E48\u0E43\u0E0A\u0E49\u0E41\u0E25\u0E49\u0E27",unlockSuccess:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08",unlockFailed:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E44\u0E21\u0E48\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08",unlockFailedNotLogin:"\u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E2A\u0E23\u0E47\u0E08\u0E2A\u0E34\u0E49\u0E19\u0E01\u0E32\u0E23\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",unlockFailedPaying:"\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E01\u0E33\u0E25\u0E31\u0E07\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E2D\u0E22\u0E39\u0E48 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E2D\u0E22\u0E48\u0E32\u0E17\u0E33\u0E0B\u0E49\u0E33\u0E01\u0E32\u0E23\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23",unlockFailedProductIdNotFound:"\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E2B\u0E21\u0E14\u0E2D\u0E32\u0E22\u0E38\u0E41\u0E25\u0E49\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E2D\u0E37\u0E48\u0E19",unlockFailedProductInvalid:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E14\u0E36\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E44\u0E14\u0E49 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E2D\u0E37\u0E48\u0E19",unlockFailedLaunch:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E40\u0E23\u0E34\u0E48\u0E21\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E44\u0E14\u0E49 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E43\u0E19\u0E20\u0E32\u0E22\u0E2B\u0E25\u0E31\u0E07",unlockFailedTransaction:"\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E25\u0E49\u0E21\u0E40\u0E2B\u0E25\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",unlockFaileVerify:"\u0E01\u0E32\u0E23\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E04\u0E33\u0E2A\u0E31\u0E48\u0E07\u0E0B\u0E37\u0E49\u0E2D\u0E25\u0E49\u0E21\u0E40\u0E2B\u0E25\u0E27 \u0E2B\u0E32\u0E01\u0E04\u0E38\u0E13\u0E16\u0E39\u0E01\u0E40\u0E23\u0E35\u0E22\u0E01\u0E40\u0E01\u0E47\u0E1A\u0E40\u0E07\u0E34\u0E19\u0E41\u0E25\u0E49\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E15\u0E34\u0E14\u0E15\u0E48\u0E2D\u0E1D\u0E48\u0E32\u0E22\u0E2A\u0E19\u0E31\u0E1A\u0E2A\u0E19\u0E38\u0E19",transactionPending:"\u0E01\u0E32\u0E23\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E25\u0E49\u0E21\u0E40\u0E2B\u0E25\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E15\u0E34\u0E14\u0E15\u0E48\u0E2D\u0E1C\u0E39\u0E49\u0E43\u0E2B\u0E49\u0E1A\u0E23\u0E34\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E02\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E0A\u0E48\u0E27\u0E22\u0E40\u0E2B\u0E25\u0E37\u0E2D"},X2={unlockNeeds:"\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",price:"\u0E23\u0E32\u0E04\u0E32",unlockWithJolicoin:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E14\u0E49\u0E27\u0E22 GEM",unlockWithJolicoinDescription:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2D\u0E31\u0E15\u0E42\u0E19\u0E21\u0E31\u0E15\u0E34\u0E14\u0E49\u0E27\u0E22 GEM",useJolicoin:"\u0E43\u0E0A\u0E49 GEM",balance:"GEM \u0E22\u0E2D\u0E14\u0E04\u0E07\u0E40\u0E2B\u0E25\u0E37\u0E2D"},Z2={instead:"\u0E41\u0E17\u0E19\u0E17\u0E35\u0E48\u0E14\u0E39\u0E42\u0E06\u0E29\u0E13\u0E32",introduct:"\u0E43\u0E0A\u0E49 {{coin}} Jolicoin \u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E1B\u0E23\u0E30\u0E2A\u0E1A\u0E01\u0E32\u0E23\u0E13\u0E4C\u0E17\u0E35\u0E48\u0E14\u0E35\u0E02\u0E36\u0E49\u0E19",tips:"\u0E23\u0E31\u0E1A {{coin}} \u0E1F\u0E23\u0E35",login:"\u0E25\u0E07\u0E17\u0E30\u0E40\u0E1A\u0E35\u0E22\u0E19\u0E41\u0E25\u0E30\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E14\u0E49\u0E27\u0E22 Jolicoin",noWatchAds:"\u0E44\u0E21\u0E48 \u0E14\u0E39\u0E42\u0E06\u0E29\u0E13\u0E32",noThanks:"\u0E44\u0E21\u0E48 \u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13",rewardTips:"\u0E22\u0E34\u0E19\u0E14\u0E35\u0E14\u0E49\u0E27\u0E22! \u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A {{coin}} Jolicoin. \u0E40\u0E23\u0E34\u0E48\u0E21\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E15\u0E2D\u0E19\u0E19\u0E35\u0E49!"},eG={jolicoin:Q2,joligem:X2,loginGuide:Z2},tG={unlockNeeds:"Y\xEAu c\u1EA7u m\u1EDF kh\xF3a",price:"Gi\xE1",unlockWithJolicoin:"M\u1EDF kh\xF3a b\u1EB1ng Jolicoin",unlockWithJolicoinDescription:"T\u1EF1 \u0111\u1ED9ng m\u1EDF kh\xF3a b\u1EB1ng Jolicoin",useJolicoin:"S\u1EED d\u1EE5ng Jolicoin",payAndUnlock:"Thanh to\xE1n v\xE0 m\u1EDF kh\xF3a",noWatchAds:"Kh\xF4ng, xem qu\u1EA3ng c\xE1o",noThanks:"Kh\xF4ng, c\u1EA3m \u01A1n",balance:"S\u1ED1 d\u01B0",coinUsed:"Jolicoin \u0111\xE3 s\u1EED d\u1EE5ng",unlockSuccess:"M\u1EDF kh\xF3a th\xE0nh c\xF4ng",unlockFailed:"M\u1EDF kh\xF3a th\u1EA5t b\u1EA1i",unlockFailedNotLogin:"Vui l\xF2ng \u0111\u0103ng nh\u1EADp \u0111\u1EC3 ho\xE0n th\xE0nh vi\u1EC7c m\u1EDF kh\xF3a",unlockFailedPaying:"Thanh to\xE1n \u0111ang \u0111\u01B0\u1EE3c x\u1EED l\xFD. Vui l\xF2ng kh\xF4ng l\u1EB7p l\u1EA1i thao t\xE1c",unlockFailedProductIdNotFound:"S\u1EA3n ph\u1EA9m \u0111\xE3 h\u1EBFt h\u1EA1n. Vui l\xF2ng ch\u1ECDn s\u1EA3n ph\u1EA9m kh\xE1c",unlockFailedProductInvalid:"Kh\xF4ng th\u1EC3 l\u1EA5y th\xF4ng tin s\u1EA3n ph\u1EA9m. Vui l\xF2ng th\u1EED l\u1EA1i ho\u1EB7c ch\u1ECDn s\u1EA3n ph\u1EA9m kh\xE1c",unlockFailedLaunch:"Kh\xF4ng th\u1EC3 b\u1EAFt \u0111\u1EA7u thanh to\xE1n. Vui l\xF2ng th\u1EED l\u1EA1i sau",unlockFailedTransaction:"Thanh to\xE1n th\u1EA5t b\u1EA1i. Vui l\xF2ng th\u1EED l\u1EA1i",unlockFaileVerify:"X\xE1c minh \u0111\u01A1n h\xE0ng th\u1EA5t b\u1EA1i. N\u1EBFu b\u1EA1n \u0111\xE3 b\u1ECB t\xEDnh ph\xED, vui l\xF2ng li\xEAn h\u1EC7 h\u1ED7 tr\u1EE3",transactionPending:"X\xE1c nh\u1EADn thanh to\xE1n th\u1EA5t b\u1EA1i. Vui l\xF2ng li\xEAn h\u1EC7 nh\xE0 cung c\u1EA5p thanh to\xE1n c\u1EE7a b\u1EA1n \u0111\u1EC3 \u0111\u01B0\u1EE3c h\u1ED7 tr\u1EE3"},rG={unlockNeeds:"Y\xEAu c\u1EA7u m\u1EDF kh\xF3a",price:"Gi\xE1",unlockWithJolicoin:"M\u1EDF kh\xF3a b\u1EB1ng GEM",unlockWithJolicoinDescription:"T\u1EF1 \u0111\u1ED9ng m\u1EDF kh\xF3a b\u1EB1ng GEM",useJolicoin:"S\u1EED d\u1EE5ng GEM",balance:"GEM S\u1ED1 d\u01B0"},nG={instead:"Thay th\u1EBF b\u1EB1ng xem qu\u1EA3ng c\xE1o",introduct:"S\u1EED d\u1EE5ng {{coin}} Jolicoin \u0111\u1EC3 m\u1EDF kh\xF3a cho tr\u1EA3i nghi\u1EC7m t\u1ED1t h\u01A1n",tips:"Nh\u1EADn {{coin}} mi\u1EC5n ph\xED",login:"\u0110\u0103ng k\xFD v\xE0 m\u1EDF kh\xF3a v\u1EDBi Jolicoin",noWatchAds:"Kh\xF4ng, xem qu\u1EA3ng c\xE1o",noThanks:"Kh\xF4ng, c\u1EA3m \u01A1n",rewardTips:"Ch\xFAc m\u1EEBng! B\u1EA1n \u0111\xE3 nh\u1EADn \u0111\u01B0\u1EE3c {{coin}} Jolicoin. M\u1EDF kh\xF3a ngay!"},iG={jolicoin:tG,joligem:rG,loginGuide:nG},oG={unlockNeeds:"Kailangan i-unlock",price:"Presyo",unlockWithJolicoin:"I-unlock gamit ang Jolicoin",unlockWithJolicoinDescription:"Awtomatikong i-unlock gamit ang Jolicoin",useJolicoin:"Gamitin ang Jolicoin",payAndUnlock:"Magbayad at i-unlock",noWatchAds:"Hindi, manood ng ads",noThanks:"Hindi na, salamat",balance:"Balanse",coinUsed:"Ginamit na Jolicoin",unlockSuccess:"Matagumpay na na-unlock",unlockFailed:"Hindi matagumpay ang pag-unlock",unlockFailedNotLogin:"Mangyaring mag-login para makumpleto ang pag-unlock",unlockFailedPaying:"Ang pagbabayad ay nasa proseso na. Huwag ulitin ang operasyon",unlockFailedProductIdNotFound:"Ang produkto ay nag-expire na. Mangyaring pumili ng ibang produkto",unlockFailedProductInvalid:"Hindi makuha ang impormasyon ng produkto. Subukang muli o pumili ng ibang produkto",unlockFailedLaunch:"Hindi maumpisahan ang pagbabayad. Subukang muli sa ibang pagkakataon",unlockFailedTransaction:"Hindi matagumpay ang pagbabayad. Subukang muli",unlockFaileVerify:"Hindi matagumpay ang pag-verify ng order. Kung na-charge ka na, mangyaring makipag-ugnayan sa suporta",transactionPending:"Hindi matagumpay ang kumpirmasyon ng pagbabayad. Mangyaring makipag-ugnayan sa iyong payment provider para sa suporta"},aG={unlockNeeds:"Kailangan i-unlock",price:"Presyo",unlockWithJolicoin:"I-unlock gamit ang GEM",unlockWithJolicoinDescription:"Awtomatikong i-unlock gamit ang GEM",useJolicoin:"Gamitin ang GEM",balance:"GEM Balanse"},sG={instead:"Kung hindi mo na gusto ang mga ad",introduct:"Gamitin ang {{coin}} Jolicoin para i-unlock para sa mas mahusay na karanasan",tips:"Kunin ang {{coin}} para sa libreng",login:"Mag-register at i-unlock gamit ang Jolicoin",noWatchAds:"Hindi, manood ng ads",noThanks:"Hindi na, salamat",rewardTips:"Maligayang pagdating! Nakatanggap ka ng {{coin}} Jolicoin. Simulan ang pag-unlock!"},mk={jolicoin:oG,joligem:aG,loginGuide:sG},lG={unlockNeeds:"Necesario desbloquear",price:"Precio",unlockWithJolicoin:"Desbloquea con Jolicoin",unlockWithJolicoinDescription:"Desbloquea autom\xE1ticamente con Jolicoin",useJolicoin:"Usar Jolicoin",payAndUnlock:"Pagar y desbloquear",noWatchAds:"No, ver anuncios",noThanks:"No, gracias",balance:"Saldo",coinUsed:"Jolicoin usado",unlockSuccess:"Desbloqueo exitoso",unlockFailed:"Error al desbloquear",unlockFailedNotLogin:"Inicia sesi\xF3n para completar el desbloqueo",unlockFailedPaying:"El pago ya est\xE1 en proceso. Por favor, no repita la operaci\xF3n",unlockFailedProductIdNotFound:"El producto ha expirado. Por favor, elija otro producto",unlockFailedProductInvalid:"Error al obtener informaci\xF3n del producto. Int\xE9ntelo de nuevo o elija otro producto",unlockFailedLaunch:"No se puede iniciar el pago. Int\xE9ntelo de nuevo m\xE1s tarde",unlockFailedTransaction:"Error en el pago. Int\xE9ntelo de nuevo",unlockFaileVerify:"Error en la verificaci\xF3n del pedido. Si se le ha cobrado, contacte con soporte",transactionPending:"Error en la confirmaci\xF3n del pago. Contacte con su proveedor de pago para obtener ayuda"},cG={unlockNeeds:"Necesario desbloquear",price:"Precio",unlockWithJolicoin:"Desbloquea con GEM",unlockWithJolicoinDescription:"Desbloquea autom\xE1ticamente con GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},uG={instead:"En lugar de ver anuncios",introduct:"Usa {{coin}} Jolicoin para desbloquear para una mejor experiencia",tips:"Obt\xE9n {{coin}} gratis",login:"Reg\xEDstrate y desbloquea con Jolicoin",noWatchAds:"No, ver anuncios",noThanks:"No, gracias",rewardTips:"\xA1Felicidades! Has recibido {{coin}} Jolicoin. \xA1Empieza a desbloquear!"},dG={jolicoin:lG,joligem:cG,loginGuide:uG},pG={unlockNeeds:"\u30A2\u30F3\u30ED\u30C3\u30AF\u5FC5\u8981",price:"\u4FA1\u683C",unlockWithJolicoin:"Jolicoin\u3067\u30A2\u30F3\u30ED\u30C3\u30AF",unlockWithJolicoinDescription:"Jolicoin\u3067\u81EA\u52D5\u7684\u306B\u30A2\u30F3\u30ED\u30C3\u30AF",useJolicoin:"Jolicoin\u3092\u4F7F\u7528",payAndUnlock:"\u652F\u6255\u3044\u3068\u30A2\u30F3\u30ED\u30C3\u30AF",noWatchAds:"\u3044\u3044\u3048\u3001\u5E83\u544A\u3092\u898B\u308B",noThanks:"\u3044\u3044\u3048\u3001\u7D50\u69CB\u3067\u3059",balance:"\u6B8B\u9AD8",coinUsed:"\u4F7F\u7528\u6E08\u307FJolicoin",unlockSuccess:"\u30A2\u30F3\u30ED\u30C3\u30AF\u6210\u529F",unlockFailed:"\u30A2\u30F3\u30ED\u30C3\u30AF\u5931\u6557",unlockFailedNotLogin:"\u30A2\u30F3\u30ED\u30C3\u30AF\u3092\u5B8C\u4E86\u3059\u308B\u306B\u306F\u30ED\u30B0\u30A4\u30F3\u3057\u3066\u304F\u3060\u3055\u3044",unlockFailedPaying:"\u652F\u6255\u3044\u51E6\u7406\u4E2D\u3067\u3059\u3002\u64CD\u4F5C\u3092\u7E70\u308A\u8FD4\u3055\u306A\u3044\u3067\u304F\u3060\u3055\u3044",unlockFailedProductIdNotFound:"\u5546\u54C1\u306E\u6709\u52B9\u671F\u9650\u304C\u5207\u308C\u3066\u3044\u307E\u3059\u3002\u4ED6\u306E\u5546\u54C1\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",unlockFailedProductInvalid:"\u5546\u54C1\u60C5\u5831\u306E\u53D6\u5F97\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u518D\u8A66\u884C\u3059\u308B\u304B\u3001\u4ED6\u306E\u5546\u54C1\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",unlockFailedLaunch:"\u652F\u6255\u3044\u3092\u958B\u59CB\u3067\u304D\u307E\u305B\u3093\u3002\u5F8C\u3067\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044",unlockFailedTransaction:"\u652F\u6255\u3044\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044",unlockFaileVerify:"\u6CE8\u6587\u306E\u78BA\u8A8D\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u6599\u91D1\u304C\u8ACB\u6C42\u3055\u308C\u305F\u5834\u5408\u306F\u3001\u30B5\u30DD\u30FC\u30C8\u306B\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044",transactionPending:"\u652F\u6255\u3044\u306E\u78BA\u8A8D\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u652F\u6255\u3044\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306B\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044"},fG={unlockNeeds:"\u30A2\u30F3\u30ED\u30C3\u30AF\u5FC5\u8981",price:"\u4FA1\u683C",unlockWithJolicoin:"GEM\u3067\u30A2\u30F3\u30ED\u30C3\u30AF",unlockWithJolicoinDescription:"GEM\u3067\u81EA\u52D5\u7684\u306B\u30A2\u30F3\u30ED\u30C3\u30AF",useJolicoin:"GEM\u3092\u4F7F\u7528",balance:"GEM\u6B8B\u9AD8"},hG={instead:"\u5E83\u544A\u3092\u898B\u308B\u4EE3\u308F\u308A\u306B",introduct:"{{coin}} Jolicoin\u3092\u4F7F\u7528\u3057\u3066\u3001\u3088\u308A\u826F\u3044\u4F53\u9A13\u306E\u305F\u3081\u306B\u30A2\u30F3\u30ED\u30C3\u30AF\u3057\u307E\u3059",tips:"{{coin}}\u3092\u7121\u6599\u3067\u53D6\u5F97",login:"Jolicoin\u3067\u767B\u9332\u3057\u3066\u30A2\u30F3\u30ED\u30C3\u30AF",noWatchAds:"\u3044\u3044\u3048\u3001\u5E83\u544A\u3092\u898B\u308B",noThanks:"\u3044\u3044\u3048\u3001\u7D50\u69CB\u3067\u3059",rewardTips:"\u304A\u3081\u3067\u3068\u3046\u3054\u3056\u3044\u307E\u3059\uFF01{{coin}} Jolicoin\u3092\u53D7\u3051\u53D6\u308A\u307E\u3057\u305F\uFF01\u30A2\u30F3\u30ED\u30C3\u30AF\u3092\u958B\u59CB\u3057\u307E\u3059\uFF01"},mG={jolicoin:pG,joligem:fG,loginGuide:hG},vG={unlockNeeds:"Necess\xE1rio desbloquear",price:"Pre\xE7o",unlockWithJolicoin:"Desbloqueie com Jolicoin",unlockWithJolicoinDescription:"Deduz Jolicoin automaticamente para itens digitais",useJolicoin:"Usar Jolicoin",payAndUnlock:"Pagar e desbloquear",noWatchAds:"N\xE3o, assistir an\xFAncios",noThanks:"N\xE3o, obrigado",balance:"Saldo",coinUsed:"Jolicoin usado",unlockSuccess:"Desbloqueio bem-sucedido",unlockFailed:"Falha no desbloqueio",unlockFailedNotLogin:"Fa\xE7a login para completar o desbloqueio",unlockFailedPaying:"O pagamento j\xE1 est\xE1 em andamento. Por favor, n\xE3o repita a opera\xE7\xE3o",unlockFailedProductIdNotFound:"O produto expirou. Por favor, escolha outro produto",unlockFailedProductInvalid:"Falha ao recuperar informa\xE7\xF5es do produto. Tente novamente ou escolha outro produto",unlockFailedLaunch:"N\xE3o foi poss\xEDvel iniciar o pagamento. Tente novamente mais tarde",unlockFailedTransaction:"Falha no pagamento. Tente novamente",unlockFaileVerify:"Falha na verifica\xE7\xE3o do pedido. Se voc\xEA foi cobrado, entre em contato com o suporte",transactionPending:"Falha na confirma\xE7\xE3o do pagamento. Entre em contato com seu provedor de pagamento para suporte"},gG={unlockNeeds:"Necess\xE1rio desbloquear",price:"Pre\xE7o",unlockWithJolicoin:"Desbloqueie com GEM",unlockWithJolicoinDescription:"Desbloqueie automaticamente com GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},yG={instead:"Em vez de assistir an\xFAncios",introduct:"Use {{coin}} Jolicoin para desbloquear para uma melhor experi\xEAncia",tips:"Obtenha {{coin}} gratuitamente",login:"Registre-se e desbloqueie com Jolicoin",noWatchAds:"N\xE3o, assistir an\xFAncios",noThanks:"N\xE3o, obrigado",rewardTips:"Parab\xE9ns! Voc\xEA recebeu {{coin}} Jolicoin. Comece a desbloquear agora!"},vk={jolicoin:vG,joligem:gG,loginGuide:yG},_G={unlockNeeds:"\uC7A0\uAE08 \uD574\uC81C \uD544\uC694",price:"\uAC00\uACA9",unlockWithJolicoin:"Jolicoin\uC73C\uB85C \uC7A0\uAE08 \uD574\uC81C",unlockWithJolicoinDescription:"Jolicoin\uC73C\uB85C \uC790\uB3D9 \uC7A0\uAE08 \uD574\uC81C",useJolicoin:"Jolicoin \uC0AC\uC6A9",payAndUnlock:"\uACB0\uC81C \uBC0F \uC7A0\uAE08 \uD574\uC81C",noWatchAds:"\uC544\uB2C8\uC694, \uAD11\uACE0 \uC2DC\uCCAD",noThanks:"\uAD1C\uCC2E\uC2B5\uB2C8\uB2E4",balance:"\uC794\uC561",coinUsed:"\uC0AC\uC6A9\uB41C Jolicoin",unlockSuccess:"\uC7A0\uAE08 \uD574\uC81C \uC131\uACF5",unlockFailed:"\uC7A0\uAE08 \uD574\uC81C \uC2E4\uD328",unlockFailedNotLogin:"\uC7A0\uAE08 \uD574\uC81C\uB97C \uC644\uB8CC\uD558\uB824\uBA74 \uB85C\uADF8\uC778\uD558\uC138\uC694",unlockFailedPaying:"\uACB0\uC81C\uAC00 \uC9C4\uD589 \uC911\uC785\uB2C8\uB2E4. \uC791\uC5C5\uC744 \uBC18\uBCF5\uD558\uC9C0 \uB9C8\uC138\uC694",unlockFailedProductIdNotFound:"\uC0C1\uD488\uC774 \uB9CC\uB8CC\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uB2E4\uB978 \uC0C1\uD488\uC744 \uC120\uD0DD\uD574\uC8FC\uC138\uC694",unlockFailedProductInvalid:"\uC0C1\uD488 \uC815\uBCF4\uB97C \uAC00\uC838\uC624\uB294\uB370 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD558\uAC70\uB098 \uB2E4\uB978 \uC0C1\uD488\uC744 \uC120\uD0DD\uD574\uC8FC\uC138\uC694",unlockFailedLaunch:"\uACB0\uC81C\uB97C \uC2DC\uC791\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB098\uC911\uC5D0 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",unlockFailedTransaction:"\uACB0\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",unlockFaileVerify:"\uC8FC\uBB38 \uD655\uC778\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uC694\uAE08\uC774 \uCCAD\uAD6C\uB41C \uACBD\uC6B0 \uACE0\uAC1D \uC9C0\uC6D0\uD300\uC5D0 \uBB38\uC758\uD574\uC8FC\uC138\uC694",transactionPending:"\uACB0\uC81C \uD655\uC778\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uACB0\uC81C \uC11C\uBE44\uC2A4 \uC81C\uACF5\uC5C5\uCCB4\uC5D0 \uBB38\uC758\uD574\uC8FC\uC138\uC694"},bG={unlockNeeds:"\uC7A0\uAE08 \uD574\uC81C \uD544\uC694",price:"\uAC00\uACA9",unlockWithJolicoin:"GEM\uC73C\uB85C \uC7A0\uAE08 \uD574\uC81C",unlockWithJolicoinDescription:"GEM\uC73C\uB85C \uC790\uB3D9 \uC7A0\uAE08 \uD574\uC81C",useJolicoin:"GEM \uC0AC\uC6A9",balance:"GEM \uC794\uC561"},wG={instead:"\uAD11\uACE0 \uC2DC\uCCAD \uB300\uC2E0",introduct:"{{coin}} Jolicoin\uC744 \uC0AC\uC6A9\uD558\uC5EC \uB354 \uB098\uC740 \uACBD\uD5D8\uC744 \uC704\uD574 \uC7A0\uAE08 \uD574\uC81C",tips:"{{coin}}\uC744 \uBB34\uB8CC\uB85C \uBC1B\uC73C\uC138\uC694",login:"Jolicoin\uC73C\uB85C \uB4F1\uB85D \uBC0F \uC7A0\uAE08 \uD574\uC81C",noWatchAds:"\uC544\uB2C8\uC694, \uAD11\uACE0 \uC2DC\uCCAD",noThanks:"\uC544\uB2C8\uC694, \uAC10\uC0AC\uD569\uB2C8\uB2E4",rewardTips:"\uCD95\uD558\uD569\uB2C8\uB2E4! {{coin}} Jolicoin\uC744 \uBC1B\uC558\uC2B5\uB2C8\uB2E4! \uC7A0\uAE08 \uD574\uC81C\uB97C \uC2DC\uC791\uD558\uC138\uC694!"},IG={jolicoin:_G,joligem:bG,loginGuide:wG},EG={unlockNeeds:"\u89E3\u9396\u9700\u6C42",price:"\u50F9\u683C",unlockWithJolicoin:"\u4F7F\u7528 Jolicoin \u89E3\u9396",unlockWithJolicoinDescription:"\u81EA\u52D5\u4F7F\u7528 Jolicoin \u89E3\u9396",useJolicoin:"\u4F7F\u7528 Jolicoin",payAndUnlock:"\u652F\u4ED8\u4E26\u89E3\u9396",noWatchAds:"\u4E0D\uFF0C\u89C0\u770B\u5EE3\u544A",noThanks:"\u4E0D\u7528\u4E86",balance:"\u9918\u984D",coinUsed:"\u5DF2\u4F7F\u7528\u7684 Jolicoin",unlockSuccess:"\u89E3\u9396\u6210\u529F",unlockFailed:"\u89E3\u9396\u5931\u6557",unlockFailedNotLogin:"\u8ACB\u767B\u5165\u5F8C\u5B8C\u6210\u89E3\u9396",unlockFailedPaying:"\u652F\u4ED8\u6B63\u5728\u9032\u884C\u4E2D\uFF0C\u8ACB\u52FF\u91CD\u8907\u64CD\u4F5C",unlockFailedProductIdNotFound:"\u5546\u54C1\u5DF2\u904E\u671F\uFF0C\u8ACB\u9078\u64C7\u5176\u4ED6\u5546\u54C1",unlockFailedProductInvalid:"\u7372\u53D6\u5546\u54C1\u4FE1\u606F\u5931\u6557\uFF0C\u8ACB\u91CD\u8A66\u6216\u9078\u64C7\u5176\u4ED6\u5546\u54C1",unlockFailedLaunch:"\u7121\u6CD5\u555F\u52D5\u652F\u4ED8\uFF0C\u8ACB\u7A0D\u5F8C\u91CD\u8A66",unlockFailedTransaction:"\u652F\u4ED8\u5931\u6557\uFF0C\u8ACB\u91CD\u8A66",unlockFaileVerify:"\u8A02\u55AE\u9A57\u8B49\u5931\u6557\uFF0C\u5982\u5DF2\u6263\u8CBB\u8ACB\u806F\u7E6B\u5BA2\u670D",transactionPending:"\u652F\u4ED8\u78BA\u8A8D\u5931\u6557\uFF0C\u8ACB\u806F\u7E6B\u652F\u4ED8\u670D\u52D9\u5546\u7372\u53D6\u652F\u6301"},kG={unlockNeeds:"\u89E3\u9396\u9700\u6C42",price:"\u50F9\u683C",unlockWithJolicoin:"\u4F7F\u7528 GEM \u89E3\u9396",unlockWithJolicoinDescription:"\u81EA\u52D5\u4F7F\u7528 GEM \u89E3\u9396",useJolicoin:"\u4F7F\u7528 GEM",balance:"GEM \u9918\u984D"},AG={instead:"\u89C0\u770B\u5EE3\u544A",introduct:"\u4F7F\u7528 {{coin}} Jolicoin \u89E3\u9396\u4EE5\u7372\u5F97\u66F4\u597D\u7684\u9AD4\u9A57",tips:"\u514D\u8CBB\u7372\u53D6 {{coin}}",login:"\u8A3B\u518A\u4E26\u89E3\u9396",noWatchAds:"\u4E0D\u7528\u4E86\uFF0C\u89C0\u770B\u5EE3\u544A",noThanks:"\u4E0D\u7528\u4E86",rewardTips:"\u606D\u559C\uFF01\u60A8\u7372\u5F97\u4E86 {{coin}} Jolicoin\uFF01\u958B\u59CB\u89E3\u9396\u5427\uFF01"},SG={jolicoin:EG,joligem:kG,loginGuide:AG},xG={unlockNeeds:"Entsperren erforderlich",price:"Preis",unlockWithJolicoin:"Mit Jolicoin entsperren",unlockWithJolicoinDescription:"Automatisch mit Jolicoin entsperren",useJolicoin:"Jolicoin verwenden",payAndUnlock:"Bezahlen und entsperren",noWatchAds:"Nein, Werbung ansehen",noThanks:"Nein danke",balance:"Guthaben",coinUsed:"Verwendete Jolicoin",unlockSuccess:"Erfolgreich entsperrt",unlockFailed:"Entsperren fehlgeschlagen",unlockFailedNotLogin:"Bitte melden Sie sich an, um die Entsperrung abzuschlie\xDFen",unlockFailedPaying:"Zahlung l\xE4uft bereits. Bitte nicht wiederholen",unlockFailedProductIdNotFound:"Produkt ist abgelaufen. Bitte w\xE4hlen Sie ein anderes Produkt",unlockFailedProductInvalid:"Produktinformationen konnten nicht abgerufen werden. Bitte versuchen Sie es erneut oder w\xE4hlen Sie ein anderes Produkt",unlockFailedLaunch:"Zahlung konnte nicht gestartet werden. Bitte versuchen Sie es sp\xE4ter erneut",unlockFailedTransaction:"Zahlung fehlgeschlagen. Bitte versuchen Sie es erneut",unlockFaileVerify:"Bestellbest\xE4tigung fehlgeschlagen. Falls Ihnen bereits etwas berechnet wurde, kontaktieren Sie bitte den Support",transactionPending:"Zahlungsbest\xE4tigung fehlgeschlagen. Bitte kontaktieren Sie Ihren Zahlungsanbieter f\xFCr Unterst\xFCtzung"},CG={unlockNeeds:"Entsperren erforderlich",price:"Preis",unlockWithJolicoin:"Mit GEM entsperren",unlockWithJolicoinDescription:"Automatisch mit GEM entsperren",useJolicoin:"GEM verwenden",balance:"GEM Guthaben"},TG={instead:"Anstatt Werbung anzusehen",introduct:"Verwenden Sie {{coin}} Jolicoin f\xFCr eine bessere Erfahrung",tips:"Holen Sie sich {{coin}} kostenlos",login:"Registrieren und entsperren mit Jolicoin",noWatchAds:"Nein, Werbung ansehen",noThanks:"Nein danke",rewardTips:"Gl\xFCckwunsch! Sie haben {{coin}} Jolicoin erhalten! Beginnen Sie mit der Entsperrung!"},OG={jolicoin:xG,joligem:CG,loginGuide:TG},PG={unlockNeeds:"D\xE9verrouillage n\xE9cessaire",price:"Prix",unlockWithJolicoin:"D\xE9verrouillez avec Jolicoin",unlockWithJolicoinDescription:"D\xE9verrouillez automatiquement avec Jolicoin",useJolicoin:"Utiliser Jolicoin",payAndUnlock:"Payer et d\xE9verrouiller",noWatchAds:"Non, regarder des publicit\xE9s",noThanks:"Non merci",balance:"Solde",coinUsed:"Jolicoin utilis\xE9",unlockSuccess:"D\xE9verrouillage r\xE9ussi",unlockFailed:"\xC9chec du d\xE9verrouillage",unlockFailedNotLogin:"Connectez-vous pour terminer le d\xE9verrouillage",unlockFailedPaying:"Le paiement est d\xE9j\xE0 en cours. Veuillez ne pas r\xE9p\xE9ter l'op\xE9ration",unlockFailedProductIdNotFound:"Le produit a expir\xE9. Veuillez choisir un autre produit",unlockFailedProductInvalid:"\xC9chec de la r\xE9cup\xE9ration des informations du produit. Veuillez r\xE9essayer ou choisir un autre produit",unlockFailedLaunch:"Impossible de lancer le paiement. Veuillez r\xE9essayer plus tard",unlockFailedTransaction:"\xC9chec du paiement. Veuillez r\xE9essayer",unlockFaileVerify:"\xC9chec de la v\xE9rification de la commande. Si vous avez \xE9t\xE9 factur\xE9, veuillez contacter le support",transactionPending:"\xC9chec de la confirmation du paiement. Veuillez contacter votre fournisseur de paiement pour obtenir de l'aide"},RG={unlockNeeds:"D\xE9verrouillage n\xE9cessaire",price:"Prix",unlockWithJolicoin:"D\xE9verrouillez avec GEM",unlockWithJolicoinDescription:"D\xE9verrouillez automatiquement avec GEM",useJolicoin:"Utiliser GEM",balance:"GEM Solde"},NG={instead:"Au lieu de regarder des publicit\xE9s",introduct:"Utilisez {{coin}} Jolicoin pour d\xE9bloquer pour une meilleure exp\xE9rience",tips:"Obtenez {{coin}} gratuitement",login:"S'inscrire et d\xE9bloquer avec Jolicoin",noWatchAds:"Non, regarder des publicit\xE9s",noThanks:"Non merci",rewardTips:"F\xE9licitations ! Vous avez re\xE7u {{coin}} Jolicoin. Commencez \xE0 d\xE9verrouiller !"},DG={jolicoin:PG,joligem:RG,loginGuide:NG},LG={unlockNeeds:"\u0905\u0928\u0932\u0949\u0915 \u0906\u0935\u0936\u094D\u092F\u0915",price:"\u092E\u0942\u0932\u094D\u092F",unlockWithJolicoin:"Jolicoin \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",unlockWithJolicoinDescription:"\u0938\u094D\u0935\u091A\u093E\u0932\u093F\u0924 \u0930\u0942\u092A \u0938\u0947 Jolicoin \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",useJolicoin:"Jolicoin \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0947\u0902",payAndUnlock:"\u092D\u0941\u0917\u0924\u093E\u0928 \u0914\u0930 \u0905\u0928\u0932\u0949\u0915",noWatchAds:"\u0928\u0939\u0940\u0902, \u0935\u093F\u091C\u094D\u091E\u093E\u092A\u0928 \u0926\u0947\u0916\u0947\u0902",noThanks:"\u0928\u0939\u0940\u0902, \u0927\u0928\u094D\u092F\u0935\u093E\u0926",balance:"\u0936\u0947\u0937 \u0930\u093E\u0936\u093F",coinUsed:"\u0909\u092A\u092F\u094B\u0917 \u0915\u093F\u092F\u093E \u0917\u092F\u093E Jolicoin",unlockSuccess:"\u0905\u0928\u0932\u0949\u0915 \u0938\u092B\u0932",unlockFailed:"\u0905\u0928\u0932\u0949\u0915 \u0935\u093F\u092B\u0932",unlockFailedNotLogin:"\u0905\u0928\u0932\u0949\u0915 \u092A\u0942\u0930\u093E \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0932\u0949\u0917\u093F\u0928 \u0915\u0930\u0947\u0902",unlockFailedPaying:"\u092D\u0941\u0917\u0924\u093E\u0928 \u092A\u0939\u0932\u0947 \u0938\u0947 \u0939\u0940 \u092A\u094D\u0930\u0917\u0924\u093F \u092A\u0930 \u0939\u0948\u0964 \u0915\u0943\u092A\u092F\u093E \u0911\u092A\u0930\u0947\u0936\u0928 \u0926\u094B\u0939\u0930\u093E\u090F\u0902 \u0928\u0939\u0940\u0902",unlockFailedProductIdNotFound:"\u0909\u0924\u094D\u092A\u093E\u0926 \u0915\u0940 \u0938\u092E\u092F \u0938\u0940\u092E\u093E \u0938\u092E\u093E\u092A\u094D\u0924 \u0939\u094B \u0917\u0908 \u0939\u0948\u0964 \u0915\u0943\u092A\u092F\u093E \u0926\u0942\u0938\u0930\u093E \u0909\u0924\u094D\u092A\u093E\u0926 \u091A\u0941\u0928\u0947\u0902",unlockFailedProductInvalid:"\u0909\u0924\u094D\u092A\u093E\u0926 \u091C\u093E\u0928\u0915\u093E\u0930\u0940 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u0930\u0928\u0947 \u092E\u0947\u0902 \u0935\u093F\u092B\u0932\u0964 \u0915\u0943\u092A\u092F\u093E \u092A\u0941\u0928\u0903 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902 \u092F\u093E \u0926\u0942\u0938\u0930\u093E \u0909\u0924\u094D\u092A\u093E\u0926 \u091A\u0941\u0928\u0947\u0902",unlockFailedLaunch:"\u092D\u0941\u0917\u0924\u093E\u0928 \u0936\u0941\u0930\u0942 \u0928\u0939\u0940\u0902 \u0915\u093F\u092F\u093E \u091C\u093E \u0938\u0915\u0924\u093E\u0964 \u0915\u0943\u092A\u092F\u093E \u092C\u093E\u0926 \u092E\u0947\u0902 \u092A\u0941\u0928\u0903 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902",unlockFailedTransaction:"\u092D\u0941\u0917\u0924\u093E\u0928 \u0935\u093F\u092B\u0932\u0964 \u0915\u0943\u092A\u092F\u093E \u092A\u0941\u0928\u0903 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902",unlockFaileVerify:"\u0911\u0930\u094D\u0921\u0930 \u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0935\u093F\u092B\u0932\u0964 \u092F\u0926\u093F \u0906\u092A\u0938\u0947 \u0936\u0941\u0932\u094D\u0915 \u0932\u093F\u092F\u093E \u0917\u092F\u093E \u0939\u0948, \u0924\u094B \u0915\u0943\u092A\u092F\u093E \u0938\u0939\u093E\u092F\u0924\u093E \u0938\u0947 \u0938\u0902\u092A\u0930\u094D\u0915 \u0915\u0930\u0947\u0902",transactionPending:"\u092D\u0941\u0917\u0924\u093E\u0928 \u092A\u0941\u0937\u094D\u091F\u093F\u0915\u0930\u0923 \u0935\u093F\u092B\u0932\u0964 \u0915\u0943\u092A\u092F\u093E \u0938\u0939\u093E\u092F\u0924\u093E \u0915\u0947 \u0932\u093F\u090F \u0905\u092A\u0928\u0947 \u092D\u0941\u0917\u0924\u093E\u0928 \u092A\u094D\u0930\u0926\u093E\u0924\u093E \u0938\u0947 \u0938\u0902\u092A\u0930\u094D\u0915 \u0915\u0930\u0947\u0902"},MG={unlockNeeds:"\u0905\u0928\u0932\u0949\u0915 \u0906\u0935\u0936\u094D\u092F\u0915",price:"\u092E\u0942\u0932\u094D\u092F",unlockWithJolicoin:"GEM \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",unlockWithJolicoinDescription:"\u0938\u094D\u0935\u091A\u093E\u0932\u093F\u0924 \u0930\u0942\u092A \u0938\u0947 GEM \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",useJolicoin:"GEM \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0947\u0902",balance:"GEM \u0936\u0947\u0937 \u0930\u093E\u0936\u093F"},qG={instead:"\u0935\u093F\u091C\u094D\u091E\u093E\u092A\u0928 \u0926\u0947\u0916\u0928\u0947 \u0915\u0947 \u092C\u091C\u093E\u092F",introduct:"{{coin}} Jolicoin \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0915\u0947 \u092C\u0947\u0939\u0924\u0930 \u0905\u0928\u0941\u092D\u0935 \u0915\u0947 \u0932\u093F\u090F \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",tips:"{{coin}} \u092E\u0941\u092B\u094D\u0924 \u092E\u0947\u0902 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u0930\u0947\u0902",login:"Jolicoin \u0915\u0947 \u0938\u093E\u0925 \u0930\u091C\u093F\u0938\u094D\u091F\u0930 \u0914\u0930 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",noWatchAds:"\u0928\u0939\u0940\u0902, \u0935\u093F\u091C\u094D\u091E\u093E\u092A\u0928 \u0926\u0947\u0916\u0947\u0902",noThanks:"\u0928\u0939\u0940\u0902, \u0927\u0928\u094D\u092F\u0935\u093E\u0926",rewardTips:"\u0905\u092D\u093F\u0928\u0902\u0926\u0928! \u0906\u092A\u0915\u094B {{coin}} Jolicoin \u092E\u093F\u0932\u093E \u0939\u0948! \u0905\u0928\u0932\u0949\u0915 \u0936\u0941\u0930\u0942 \u0915\u0930\u0947\u0902!"},UG={jolicoin:LG,joligem:MG,loginGuide:qG},FG={unlockNeeds:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430",price:"\u0426\u0435\u043D\u0430",unlockWithJolicoin:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E Jolicoin",unlockWithJolicoinDescription:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E Jolicoin",useJolicoin:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C Jolicoin",payAndUnlock:"\u041E\u043F\u043B\u0430\u0442\u0438\u0442\u044C \u0438 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C",noWatchAds:"\u041D\u0435\u0442, \u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",noThanks:"\u041D\u0435\u0442, \u0441\u043F\u0430\u0441\u0438\u0431\u043E",balance:"\u0411\u0430\u043B\u0430\u043D\u0441",coinUsed:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E Jolicoin",unlockSuccess:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430 \u0443\u0441\u043F\u0435\u0448\u043D\u0430",unlockFailed:"\u041E\u0448\u0438\u0431\u043A\u0430 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0438",unlockFailedNotLogin:"\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u043E\u0439\u0434\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0443",unlockFailedPaying:"\u041E\u043F\u043B\u0430\u0442\u0430 \u0443\u0436\u0435 \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u0442\u0441\u044F. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043D\u0435 \u043F\u043E\u0432\u0442\u043E\u0440\u044F\u0439\u0442\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u044E",unlockFailedProductIdNotFound:"\u0421\u0440\u043E\u043A \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0442\u043E\u0432\u0430\u0440\u0430 \u0438\u0441\u0442\u0435\u043A. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u043E\u0439 \u0442\u043E\u0432\u0430\u0440",unlockFailedProductInvalid:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043E \u0442\u043E\u0432\u0430\u0440\u0435. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443 \u0438\u043B\u0438 \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u043E\u0439 \u0442\u043E\u0432\u0430\u0440",unlockFailedLaunch:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043D\u0430\u0447\u0430\u0442\u044C \u043E\u043F\u043B\u0430\u0442\u0443. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443 \u043F\u043E\u0437\u0436\u0435",unlockFailedTransaction:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043E\u043F\u043B\u0430\u0442\u044B. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443",unlockFaileVerify:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438 \u0437\u0430\u043A\u0430\u0437\u0430. \u0415\u0441\u043B\u0438 \u0441 \u0432\u0430\u0441 \u0431\u044B\u043B\u0430 \u0441\u043F\u0438\u0441\u0430\u043D\u0430 \u043F\u043B\u0430\u0442\u0430, \u043F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044C \u0432 \u0441\u043B\u0443\u0436\u0431\u0443 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",transactionPending:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F \u043E\u043F\u043B\u0430\u0442\u044B. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044C \u043A \u0432\u0430\u0448\u0435\u043C\u0443 \u043F\u043B\u0430\u0442\u0435\u0436\u043D\u043E\u043C\u0443 \u043F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440\u0443 \u0437\u0430 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u043E\u0439"},jG={unlockNeeds:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430",price:"\u0426\u0435\u043D\u0430",unlockWithJolicoin:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E GEM",unlockWithJolicoinDescription:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E GEM",useJolicoin:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C GEM",balance:"GEM \u0411\u0430\u043B\u0430\u043D\u0441"},JG={instead:"\u0412\u043C\u0435\u0441\u0442\u043E \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u0440\u0435\u043A\u043B\u0430\u043C\u044B",introduct:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 {{coin}} Jolicoin \u0434\u043B\u044F \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0438 \u0434\u043B\u044F \u043B\u0443\u0447\u0448\u0435\u0433\u043E \u043E\u043F\u044B\u0442\u0430",tips:"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u0435 {{coin}} \u0431\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u043E",login:"\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0439\u0442\u0435\u0441\u044C \u0438 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E Jolicoin",noWatchAds:"\u041D\u0435\u0442, \u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",noThanks:"\u041D\u0435\u0442, \u0441\u043F\u0430\u0441\u0438\u0431\u043E",rewardTips:"\u041F\u043E\u0437\u0434\u0440\u0430\u0432\u043B\u044F\u0435\u043C! \u0412\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u043B\u0438 {{coin}} Jolicoin. \u041D\u0430\u0447\u043D\u0438\u0442\u0435 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0443!"},GG={jolicoin:FG,joligem:jG,loginGuide:JG},BG={unlockNeeds:"\u0986\u09A8\u09B2\u0995 \u09AA\u09CD\u09B0\u09AF\u09BC\u09CB\u099C\u09A8",price:"\u09AE\u09C2\u09B2\u09CD\u09AF",unlockWithJolicoin:"Jolicoin \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",unlockWithJolicoinDescription:"\u09B8\u09CD\u09AC\u09AF\u09BC\u0982\u0995\u09CD\u09B0\u09BF\u09AF\u09BC\u09AD\u09BE\u09AC\u09C7 Jolicoin \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",useJolicoin:"Jolicoin \u09AC\u09CD\u09AF\u09AC\u09B9\u09BE\u09B0 \u0995\u09B0\u09C1\u09A8",payAndUnlock:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u098F\u09AC\u0982 \u0986\u09A8\u09B2\u0995",noWatchAds:"\u09A8\u09BE, \u09AC\u09BF\u099C\u09CD\u099E\u09BE\u09AA\u09A8 \u09A6\u09C7\u0996\u09C1\u09A8",noThanks:"\u09A8\u09BE, \u09A7\u09A8\u09CD\u09AF\u09AC\u09BE\u09A6",balance:"\u09AC\u09CD\u09AF\u09BE\u09B2\u09C7\u09A8\u09CD\u09B8",coinUsed:"\u09AC\u09CD\u09AF\u09AC\u09B9\u09C3\u09A4 Jolicoin",unlockSuccess:"\u0986\u09A8\u09B2\u0995 \u09B8\u09AB\u09B2",unlockFailed:"\u0986\u09A8\u09B2\u0995 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5",unlockFailedNotLogin:"\u0986\u09A8\u09B2\u0995 \u09B8\u09AE\u09CD\u09AA\u09C2\u09B0\u09CD\u09A3 \u0995\u09B0\u09A4\u09C7 \u09B2\u0997\u0987\u09A8 \u0995\u09B0\u09C1\u09A8",unlockFailedPaying:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u0987\u09A4\u09BF\u09AE\u09A7\u09CD\u09AF\u09C7 \u099A\u09B2\u099B\u09C7\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09AA\u09C1\u09A8\u09B0\u09BE\u09AC\u09C3\u09A4\u09CD\u09A4\u09BF \u0995\u09B0\u09AC\u09C7\u09A8 \u09A8\u09BE",unlockFailedProductIdNotFound:"\u09AA\u09A3\u09CD\u09AF\u09C7\u09B0 \u09AE\u09C7\u09AF\u09BC\u09BE\u09A6 \u09B6\u09C7\u09B7 \u09B9\u09AF\u09BC\u09C7 \u0997\u09C7\u099B\u09C7\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0985\u09A8\u09CD\u09AF \u09AA\u09A3\u09CD\u09AF \u09AC\u09C7\u099B\u09C7 \u09A8\u09BF\u09A8",unlockFailedProductInvalid:"\u09AA\u09A3\u09CD\u09AF\u09C7\u09B0 \u09A4\u09A5\u09CD\u09AF \u09AA\u09C1\u09A8\u09B0\u09C1\u09A6\u09CD\u09A7\u09BE\u09B0 \u0995\u09B0\u09A4\u09C7 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09C1\u09A8 \u09AC\u09BE \u0985\u09A8\u09CD\u09AF \u09AA\u09A3\u09CD\u09AF \u09AC\u09C7\u099B\u09C7 \u09A8\u09BF\u09A8",unlockFailedLaunch:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09B6\u09C1\u09B0\u09C1 \u0995\u09B0\u09A4\u09C7 \u0985\u0995\u09CD\u09B7\u09AE\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09AA\u09B0\u09C7 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09C1\u09A8",unlockFailedTransaction:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09C1\u09A8",unlockFaileVerify:"\u0985\u09B0\u09CD\u09A1\u09BE\u09B0 \u09AF\u09BE\u099A\u09BE\u0987 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u09AF\u09A6\u09BF \u0986\u09AA\u09A8\u09BE\u0995\u09C7 \u099A\u09BE\u09B0\u09CD\u099C \u0995\u09B0\u09BE \u09B9\u09AF\u09BC\u09C7 \u09A5\u09BE\u0995\u09C7, \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09B8\u09B9\u09BE\u09AF\u09BC\u09A4\u09BE\u09B0 \u09B8\u09BE\u09A5\u09C7 \u09AF\u09CB\u0997\u09BE\u09AF\u09CB\u0997 \u0995\u09B0\u09C1\u09A8",transactionPending:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09A8\u09BF\u09B6\u09CD\u099A\u09BF\u09A4\u0995\u09B0\u09A3 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09B8\u09B9\u09BE\u09AF\u09BC\u09A4\u09BE\u09B0 \u099C\u09A8\u09CD\u09AF \u0986\u09AA\u09A8\u09BE\u09B0 \u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09AA\u09CD\u09B0\u09A6\u09BE\u09A8\u0995\u09BE\u09B0\u09C0\u09B0 \u09B8\u09BE\u09A5\u09C7 \u09AF\u09CB\u0997\u09BE\u09AF\u09CB\u0997 \u0995\u09B0\u09C1\u09A8"},HG={unlockNeeds:"\u0986\u09A8\u09B2\u0995 \u09AA\u09CD\u09B0\u09AF\u09BC\u09CB\u099C\u09A8",price:"\u09AE\u09C2\u09B2\u09CD\u09AF",unlockWithJolicoin:"GEM \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",unlockWithJolicoinDescription:"\u09B8\u09CD\u09AC\u09AF\u09BC\u0982\u0995\u09CD\u09B0\u09BF\u09AF\u09BC\u09AD\u09BE\u09AC\u09C7 GEM \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",useJolicoin:"GEM \u09AC\u09CD\u09AF\u09AC\u09B9\u09BE\u09B0 \u0995\u09B0\u09C1\u09A8",balance:"GEM \u09AC\u09CD\u09AF\u09BE\u09B2\u09C7\u09A8\u09CD\u09B8"},VG={instead:"\u09AC\u09BF\u099C\u09CD\u099E\u09BE\u09AA\u09A8 \u09A6\u09C7\u0996\u09A4\u09C7",introduct:"\u0986\u09AA\u09A8\u09BE\u09B0 \u09AD\u09BE\u09B2 \u0985\u09AD\u09BF\u099C\u09CD\u099E\u09A4\u09BE\u09B0 \u099C\u09A8\u09CD\u09AF {{coin}}Jolicoin \u09AC\u09CD\u09AF\u09AC\u09B9\u09BE\u09B0 \u0995\u09B0\u09C1\u09A8",tips:"\u09AB\u09CD\u09B0\u09BF {{coin}} \u09AA\u09C7\u09A4\u09C7",login:"Jolicoin \u09B8\u09BE\u09A5\u09C7 \u09B0\u09C7\u099C\u09BF\u09B8\u09CD\u099F\u09BE\u09B0 \u098F\u09AC\u0982 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",noWatchAds:"\u09A8\u09BE, \u09AC\u09BF\u099C\u09CD\u099E\u09BE\u09AA\u09A8 \u09A6\u09C7\u0996\u09A4\u09C7",noThanks:"\u09A8\u09BE, \u09A7\u09A8\u09CD\u09AF\u09AC\u09BE\u09A6",rewardTips:"\u0985\u09AD\u09BF\u09A8\u09A8\u09CD\u09A6\u09A8! \u0986\u09AA\u09A8\u09BF {{coin}} Jolicoin \u09AA\u09C7\u09AF\u09BC\u09C7\u099B\u09C7\u09A8! \u0986\u09A8\u09B2\u0995 \u09B6\u09C1\u09B0\u09C1 \u0995\u09B0\u09C1\u09A8!"},$G={jolicoin:BG,joligem:HG,loginGuide:VG},WG={unlockNeeds:"Kilidi a\xE7mak gerekli",price:"Fiyat",unlockWithJolicoin:"Jolicoin ile kilidi a\xE7\u0131n",unlockWithJolicoinDescription:"Jolicoin ile otomatik olarak kilidi a\xE7\u0131n",useJolicoin:"Jolicoin kullan",payAndUnlock:"\xD6de ve kilidi a\xE7",noWatchAds:"Hay\u0131r, reklamlar\u0131 izle",noThanks:"Hay\u0131r, te\u015Fekk\xFCrler",balance:"Bakiye",coinUsed:"Kullan\u0131lan Jolicoin",unlockSuccess:"Kilidi a\xE7ma ba\u015Far\u0131l\u0131",unlockFailed:"Kilidi a\xE7ma ba\u015Far\u0131s\u0131z",unlockFailedNotLogin:"Kilidi a\xE7may\u0131 tamamlamak i\xE7in l\xFCtfen giri\u015F yap\u0131n",unlockFailedPaying:"\xD6deme zaten devam ediyor. L\xFCtfen i\u015Flemi tekrarlamay\u0131n",unlockFailedProductIdNotFound:"\xDCr\xFCn\xFCn s\xFCresi dolmu\u015F. L\xFCtfen ba\u015Fka bir \xFCr\xFCn se\xE7in",unlockFailedProductInvalid:"\xDCr\xFCn bilgileri al\u0131namad\u0131. L\xFCtfen tekrar deneyin veya ba\u015Fka bir \xFCr\xFCn se\xE7in",unlockFailedLaunch:"\xD6deme ba\u015Flat\u0131lamad\u0131. L\xFCtfen daha sonra tekrar deneyin",unlockFailedTransaction:"\xD6deme ba\u015Far\u0131s\u0131z. L\xFCtfen tekrar deneyin",unlockFaileVerify:"Sipari\u015F do\u011Frulamas\u0131 ba\u015Far\u0131s\u0131z. \xDCcretlendirildiyseniz, l\xFCtfen destek ile ileti\u015Fime ge\xE7in",transactionPending:"\xD6deme onay\u0131 ba\u015Far\u0131s\u0131z. L\xFCtfen destek i\xE7in \xF6deme sa\u011Flay\u0131c\u0131n\u0131zla ileti\u015Fime ge\xE7in"},zG={unlockNeeds:"Kilidi a\xE7mak gerekli",price:"Fiyat",unlockWithJolicoin:"GEM ile kilidi a\xE7\u0131n",unlockWithJolicoinDescription:"GEM ile otomatik olarak kilidi a\xE7\u0131n",useJolicoin:"GEM kullan",balance:"GEM Bakiye"},KG={instead:"Reklam izleme yerine",introduct:"{{coin}} Jolicoin kullanarak daha iyi deneyim i\xE7in kilidi a\xE7\u0131n",tips:"{{coin}} almak i\xE7in \xFCcretsiz",login:"Jolicoin ile kay\u0131t ve kilidi a\xE7\u0131n",noWatchAds:"Hay\u0131r, reklamlar\u0131 izle",noThanks:"Hay\u0131r, te\u015Fekk\xFCrler",rewardTips:"Tebrikler! {{coin}} Jolicoin ald\u0131n\u0131z. Kilidi a\xE7maya ba\u015Flay\u0131n!"},YG={jolicoin:WG,joligem:zG,loginGuide:KG},Zk={en:{translations:dk},en_GB:{translations:dk},zh:{translations:pk},"zh-Hans":{translations:pk},"zh-Hant":{translations:SG},id:{translations:fk},in:{translations:fk},ms:{translations:hk},my:{translations:hk},th:{translations:eG},vi:{translations:iG},fil:{translations:mk},tl:{translations:mk},es:{translations:dG},ja:{translations:mG},pt:{translations:vk},pt_PT:{translations:vk},ko:{translations:IG},de:{translations:OG},fr:{translations:DG},hi:{translations:UG},ru:{translations:GG},bn:{translations:$G},tr:{translations:YG}},eA=jr(void 0),tA=({definition:e,children:t})=>{let r={translations:e};return _(eA.Provider,{value:r,children:t})},Fd=null,QG={zh:"zh","zh-CN":"zh","zh-TW":"zh-Hant","zh-Hans":"zh",zh_Hans:"zh","zh-Hant":"zh-Hant",zh_Hant:"zh-Hant",id:"id",in:"id",ms:"ms",my:"ms",th:"th",vi:"vi",fil:"tl",tl:"tl",es:"es",ja:"ja",pt:"pt",pt_PT:"pt","pt-PT":"pt",ko:"ko",de:"de",fr:"fr",hi:"hi",ru:"ru",ar:"ar",tr:"tr"},rA=e=>{Fd=e},nA=()=>{var e;if(typeof Fd!="function")return console.warn("Language handler is not registered or is not a function. Defaulting to 'en'."),"en";try{let t=Fd();return(e=QG[t])!=null?e:"en"}catch(t){return console.error("Error executing registered language handler:",t),"en"}};ts=class{constructor(t,r){this.zIndex=t,this.pointerEvents=r,this.persistentIframe=null,this.iframeEmotionCache=null,this.iframeLoadPromise=null,this.iframeLoadResolver=null,this.removeGlobalTransformSync=null,this.referenceCount=0}create(){typeof window>"u"||this.persistentIframe&&document.body.contains(this.persistentIframe)||(this.persistentIframe=document.createElement("iframe"),this.persistentIframe.style.position="fixed",this.persistentIframe.style.left="0",this.persistentIframe.style.top="0",this.persistentIframe.style.width="100vw",this.persistentIframe.style.height="100vh",this.persistentIframe.style.zIndex=String(this.zIndex),this.persistentIframe.style.pointerEvents=this.pointerEvents,this.persistentIframe.style.border="none",this.persistentIframe.style.background="transparent",this.persistentIframe.setAttribute("allowtransparency","true"),this.persistentIframe.style.display="none",document.body.appendChild(this.persistentIframe),this.iframeLoadPromise=new Promise(t=>{this.iframeLoadResolver=t}),this.persistentIframe.onload=()=>{var r,n,i;if(!((n=(r=this.persistentIframe)==null?void 0:r.contentDocument)!=null&&n.head)){console.error("[SingletonIframe] Iframe loaded, but document or head is not available.");return}console.log("[SingletonIframe] Iframe content loaded."),this.iframeEmotionCache=$k({key:"iframe-css",container:this.persistentIframe.contentDocument.head,prepend:!0}),this.removeGlobalTransformSync&&this.removeGlobalTransformSync(),this.removeGlobalTransformSync=ZG(this.persistentIframe);let t=this.persistentIframe.contentDocument;t&&["--status-bar-height","--navigation-bar-height"].forEach(o=>{let a=document.documentElement.style.getPropertyValue(o);a&&t.body.style.setProperty(o,a)}),(i=this.iframeLoadResolver)==null||i.call(this),this.iframeLoadResolver=null},this.persistentIframe.onerror=()=>{console.error("[SingletonIframe] Iframe failed to load.")},this.persistentIframe.src="about:blank")}acquire(){return w(this,null,function*(){if(this.create(),yield this.iframeLoadPromise,!this.persistentIframe||!this.iframeEmotionCache)throw new Error("[SingletonIframe] Iframe or cache not available after load.");return this.referenceCount++,this.persistentIframe.style.display==="none"&&(iA(this.persistentIframe),this.persistentIframe.style.display="block"),{iframe:this.persistentIframe,emotionCache:this.iframeEmotionCache}})}release(){this.referenceCount--,this.referenceCount<=0&&(this.referenceCount=0,this.persistentIframe&&(this.persistentIframe.style.display="none"))}},eo=new ts(99999998,"auto"),gk=new ts(99999999,"none"),eB=({title:e,content:t,noHeader:r,height:n,padding:i="16px",footerButtons:o,onClose:a})=>{let s=po(),l={container:D`
71
71
  display: flex;
72
72
  flex-direction: column;
73
73
  height: 100%;
@@ -104,7 +104,7 @@ If multiple caches share the same key they might "fight" for each other's style
104
104
  ${l.button}
105
105
  background-color: ${c.variant==="primary"?"#1677ff":"#fff"};
106
106
  color: ${c.variant==="primary"?"#fff":"#333"};
107
- `.name,onClick:u=>{var p;return(p=c.onClick)==null?void 0:p.call(c,u,{hide:a})},children:c.text},d))})]})},ds=e=>{let t=!1,r=rS(),n=Xk[r].translations,i=`drawer-container-${Math.random().toString(36).slice(2,10)}`,o=null,a=null,s=null;function l(p){var f,m;if(!o||!a){console.error("[Modal] Iframe or emotion cache not ready for rendering Drawer.");return}s=o.contentDocument.getElementById(i),s||(s=o.contentDocument.createElement("div"),s.id=i,o.contentDocument.body.appendChild(s)),mr(_(Yk,{value:a,children:_(eS,{definition:n,children:_(L2,{ref:g=>{},placement:(f=e.placement)!=null?f:"bottom",isOpen:p,onClose:c,preventCloseOnBackdropClick:(m=e.preventCloseOnBackdropClick)!=null?m:!1,backdropColor:e.backdropColor,children:_(QG,F(T({},e),{onClose:u}))})})}),s)}function c(){var p,f;if(t){if(t=!1,o==null?void 0:o.contentDocument){let m=o.contentDocument.getElementById(i);m&&((p=m.parentNode)==null||p.removeChild(m))}eo.release(),(f=e.onClose)==null||f.call(e)}}function d(){return w(this,null,function*(){let p=yield eo.acquire();o=p.iframe,a=p.emotionCache,t=!0,l(!0),setTimeout(()=>{var f;(f=e.onOpen)==null||f.call(e)},50)})}function u(){t&&l(!1)}return{show:()=>{t||d()},hide:()=>{t&&u()},isOpen:()=>t,destroy:()=>{t&&u(),o=null,a=null,s=null,console.log("[Modal] Instance destroyed.")}}},XG=(e,t={threshold:.6})=>{let r=Zi(null),n=Zi(!1),i=bt(o=>{let[a]=o;a.isIntersecting&&!n.current?(n.current=!0,e()):a.isIntersecting||(n.current=!1)},[e]);return Yr(()=>{if(r.current){let o=new IntersectionObserver(i,t);return o.observe(r.current),()=>{r.current&&o.unobserve(r.current)}}},[i,t]),r};iS=o=>{var a=o,{children:e,fluid:t=!1,className:r="",style:n={}}=a,i=je(a,["children","fluid","className","style"]);let s=T({width:"100%",marginLeft:"auto",marginRight:"auto",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box",maxWidth:t?"100%":void 0},n);return _("div",F(T({className:r,style:s},i),{children:e}))},oS=s=>{var l=s,{children:e,gutter:t=0,justify:r="start",align:n="top",className:i="",style:o={}}=l,a=je(l,["children","gutter","justify","align","className","style"]);let c={start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"},d={top:"flex-start",middle:"center",bottom:"flex-end"},u=T({display:"flex",flexWrap:"wrap",boxSizing:"border-box",justifyContent:c[r],alignItems:d[n]},o);if(t){let f=Array.isArray(t)?t[0]:t,m=Array.isArray(t)?t[1]:0;f>0&&(u.marginLeft=`-${f/2}px`,u.marginRight=`-${f/2}px`),m>0&&(u.marginTop=`-${m/2}px`,u.marginBottom=`-${m/2}px`)}let p=t?eB(e,t):e;return _("div",F(T({className:i,style:u},a),{children:p}))};aS=u=>{var p=u,{children:e,span:t,offset:r,xs:n,sm:i,md:o,lg:a,xl:s,className:l="",style:c={}}=p,d=je(p,["children","span","offset","xs","sm","md","lg","xl","className","style"]);let f=T({position:"relative",width:"100%",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box"},c);if(t!==void 0){let m=t/24*100;f.flex=`0 0 ${m}%`,f.maxWidth=`${m}%`}return r!==void 0&&(f.marginLeft=`${r/24*100}%`),_("div",F(T({className:l,style:f},d),{children:e}))},tB=({game:e,layerName:t,orientation:r,routeMode:n,onGameClick:i})=>{var s,l;let o=bn(c=>{c.preventDefault(),i==null||i(e)},[i,e]),a=bn(()=>{},[e,t]);return _(aS,{span:r==="landscape"?4:8,className:"relative px-[4px] box-border mb-[8px]",style:{marginBottom:r==="landscape"?"8px":"16px",paddingLeft:"8px",paddingRight:"8px"},onClick:o,role:"button",tabIndex:0,children:[_("div",{className:"relative w-full mb-[2px] ion-no-margin",children:_(ZG,{src:(l=(s=e.logo)!=null?s:e.cover)!=null?l:"",className:"w-full h-full absolute top-0 left-0 aspect-square rounded-[8px] object-cover",style:{display:"block",objectFit:"cover"},handleExposure:a})}),_("div",{className:"block text-white max-w-full text-[15px] leading-[1.2] overflow-hidden whitespace-nowrap text-ellipsis font-normal break-words",style:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordBreak:"break-word",color:"white",maxWidth:"100%",fontSize:r==="landscape"?"13px":"15px",lineHeight:1.2,fontWeight:"normal",marginTop:"6px",fontFamily:"PingFangSC-Regular"},children:e.name})]},e.gameId)},rB=a=>{var s=a,{list:e,routeMode:t,layerName:r,onGameClick:n,orientation:i}=s,o=je(s,["list","routeMode","layerName","onGameClick","orientation"]);return _(iS,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{maxWidth:i==="landscape"?"100%":"440px",minHeight:"1px"},children:_(oS,{gutter:8,style:{display:"flex",flexWrap:i==="landscape"?"nowrap":"wrap",overflowX:i==="landscape"?"auto":"visible",paddingBottom:i==="landscape"?"10px":"0",justifyContent:i==="landscape"?"flex-start":"center"},children:e==null?void 0:e.map(l=>_(tB,{orientation:i,game:l,routeMode:t,layerName:r,onGameClick:n},l.gameId))})})},nB=vu(rB),Fd=(e=>(e.Dismiss="DISMISS",e.Quit="QUIT",e))(Fd||{}),iB=e=>{let{games:t,title:r,buttons:n,onClose:i}=e,[o,a]=Jt(null),s=bt(u=>{i==null||i({type:u.type===Fd.Quit?"quit":"dismiss"})},[i]),l=bt(u=>{i==null||i({type:"navigate",data:{game:u}})},[i]),c=po();if(!t.length)return _(De,{});let d=bt(u=>{if(u!==null&&!u.shadowRoot){let p=u.attachShadow({mode:"open"}),f=document.createElement("style");f.textContent=`
107
+ `.name,onClick:u=>{var p;return(p=c.onClick)==null?void 0:p.call(c,u,{hide:a})},children:c.text},d))})]})},ds=e=>{let t=!1,r=nA(),n=Zk[r].translations,i=`drawer-container-${Math.random().toString(36).slice(2,10)}`,o=null,a=null,s=null;function l(p){var f,m;if(!o||!a){console.error("[Modal] Iframe or emotion cache not ready for rendering Drawer.");return}s=o.contentDocument.getElementById(i),s||(s=o.contentDocument.createElement("div"),s.id=i,o.contentDocument.body.appendChild(s)),mr(_(Qk,{value:a,children:_(tA,{definition:n,children:_(U2,{ref:g=>{},placement:(f=e.placement)!=null?f:"bottom",isOpen:p,onClose:c,preventCloseOnBackdropClick:(m=e.preventCloseOnBackdropClick)!=null?m:!1,backdropColor:e.backdropColor,children:_(eB,F(T({},e),{onClose:u}))})})}),s)}function c(){var p,f;if(t){if(t=!1,o==null?void 0:o.contentDocument){let m=o.contentDocument.getElementById(i);m&&((p=m.parentNode)==null||p.removeChild(m))}eo.release(),(f=e.onClose)==null||f.call(e)}}function d(){return w(this,null,function*(){let p=yield eo.acquire();o=p.iframe,a=p.emotionCache,t=!0,l(!0),setTimeout(()=>{var f;(f=e.onOpen)==null||f.call(e)},50)})}function u(){t&&l(!1)}return{show:()=>{t||d()},hide:()=>{t&&u()},isOpen:()=>t,destroy:()=>{t&&u(),o=null,a=null,s=null,console.log("[Modal] Instance destroyed.")}}},tB=(e,t={threshold:.6})=>{let r=Zi(null),n=Zi(!1),i=bt(o=>{let[a]=o;a.isIntersecting&&!n.current?(n.current=!0,e()):a.isIntersecting||(n.current=!1)},[e]);return Yr(()=>{if(r.current){let o=new IntersectionObserver(i,t);return o.observe(r.current),()=>{r.current&&o.unobserve(r.current)}}},[i,t]),r};oA=o=>{var a=o,{children:e,fluid:t=!1,className:r="",style:n={}}=a,i=je(a,["children","fluid","className","style"]);let s=T({width:"100%",marginLeft:"auto",marginRight:"auto",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box",maxWidth:t?"100%":void 0},n);return _("div",F(T({className:r,style:s},i),{children:e}))},aA=s=>{var l=s,{children:e,gutter:t=0,justify:r="start",align:n="top",className:i="",style:o={}}=l,a=je(l,["children","gutter","justify","align","className","style"]);let c={start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"},d={top:"flex-start",middle:"center",bottom:"flex-end"},u=T({display:"flex",flexWrap:"wrap",boxSizing:"border-box",justifyContent:c[r],alignItems:d[n]},o);if(t){let f=Array.isArray(t)?t[0]:t,m=Array.isArray(t)?t[1]:0;f>0&&(u.marginLeft=`-${f/2}px`,u.marginRight=`-${f/2}px`),m>0&&(u.marginTop=`-${m/2}px`,u.marginBottom=`-${m/2}px`)}let p=t?nB(e,t):e;return _("div",F(T({className:i,style:u},a),{children:p}))};sA=u=>{var p=u,{children:e,span:t,offset:r,xs:n,sm:i,md:o,lg:a,xl:s,className:l="",style:c={}}=p,d=je(p,["children","span","offset","xs","sm","md","lg","xl","className","style"]);let f=T({position:"relative",width:"100%",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box"},c);if(t!==void 0){let m=t/24*100;f.flex=`0 0 ${m}%`,f.maxWidth=`${m}%`}return r!==void 0&&(f.marginLeft=`${r/24*100}%`),_("div",F(T({className:l,style:f},d),{children:e}))},iB=({game:e,layerName:t,orientation:r,routeMode:n,onGameClick:i})=>{var s,l;let o=bn(c=>{c.preventDefault(),i==null||i(e)},[i,e]),a=bn(()=>{},[e,t]);return _(sA,{span:r==="landscape"?4:8,className:"relative px-[4px] box-border mb-[8px]",style:{marginBottom:r==="landscape"?"8px":"16px",paddingLeft:"8px",paddingRight:"8px"},onClick:o,role:"button",tabIndex:0,children:[_("div",{className:"relative w-full mb-[2px] ion-no-margin",children:_(rB,{src:(l=(s=e.logo)!=null?s:e.cover)!=null?l:"",className:"w-full h-full absolute top-0 left-0 aspect-square rounded-[8px] object-cover",style:{display:"block",objectFit:"cover"},handleExposure:a})}),_("div",{className:"block text-white max-w-full text-[15px] leading-[1.2] overflow-hidden whitespace-nowrap text-ellipsis font-normal break-words",style:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordBreak:"break-word",color:"white",maxWidth:"100%",fontSize:r==="landscape"?"13px":"15px",lineHeight:1.2,fontWeight:"normal",marginTop:"6px",fontFamily:"PingFangSC-Regular"},children:e.name})]},e.gameId)},oB=a=>{var s=a,{list:e,routeMode:t,layerName:r,onGameClick:n,orientation:i}=s,o=je(s,["list","routeMode","layerName","onGameClick","orientation"]);return _(oA,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{maxWidth:i==="landscape"?"100%":"440px",minHeight:"1px"},children:_(aA,{gutter:8,style:{display:"flex",flexWrap:i==="landscape"?"nowrap":"wrap",overflowX:i==="landscape"?"auto":"visible",paddingBottom:i==="landscape"?"10px":"0",justifyContent:i==="landscape"?"flex-start":"center"},children:e==null?void 0:e.map(l=>_(iB,{orientation:i,game:l,routeMode:t,layerName:r,onGameClick:n},l.gameId))})})},aB=gu(oB),jd=(e=>(e.Dismiss="DISMISS",e.Quit="QUIT",e))(jd||{}),sB=e=>{let{games:t,title:r,buttons:n,onClose:i}=e,[o,a]=Jt(null),s=bt(u=>{i==null||i({type:u.type===jd.Quit?"quit":"dismiss"})},[i]),l=bt(u=>{i==null||i({type:"navigate",data:{game:u}})},[i]),c=po();if(!t.length)return _(De,{});let d=bt(u=>{if(u!==null&&!u.shadowRoot){let p=u.attachShadow({mode:"open"}),f=document.createElement("style");f.textContent=`
108
108
  .recommend-panel {
109
109
  display: flex;
110
110
  flex-direction: column;
@@ -226,7 +226,7 @@ If multiple caches share the same key they might "fight" for each other's style
226
226
  background-color: #7817FF;
227
227
  color: #fff;
228
228
  }
229
- `;let m=document.createElement("div");m.id="recommend-panel-content",p.appendChild(f),p.appendChild(m),a(p)}},[]);return Yr(()=>{if(o){let u=o.getElementById("recommend-panel-content");u&&mr(_("div",{className:"recommend-panel",children:_("div",{className:"container",children:[_("p",{className:"title",children:r}),_("div",{className:"games-container",children:_(nB,{list:t||[],routeMode:"REDIRECT",layerName:"RecommendedGuide",onGameClick:l,orientation:c})}),_("div",{className:"buttons-container",children:(n!=null?n:[]).map((p,f)=>_("div",{className:"button-wrapper",children:_("button",{className:`button ${p.type===Fd.Quit?"quit-button":"action-button"}`,onClick:()=>s(p),children:_("span",{className:"button-text-ellipsis",children:p.text})})},f))})]})}),u)}},[o,t,r,n,s,l]),_("div",{ref:d})},sS=e=>{let t=ds({title:e.title,content:_(iB,{games:e.games,title:e.title,buttons:e.buttons,onClose:e.onClose}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"450px",onClose:()=>{var r;(r=e.onClose)==null||r.call(e,{type:"back"})},onOpen:e.onOpen});return t.show(),t},lS="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAC+lBMVEUAAABQTlBrQeL6+vufkPrEp/RcV2Pv6e23t7ehnqZVSIOZmaDy6vWRfPWDdvq6neHc29e5trzh4+DHyM2BUeHMteDIp+G2pd50SZV/aqmQkI1jWGyeYLz4+vTMh96RS8Lh2+XIwuGek6NEJn9RSF9QO8fBr+Xl1e2gh7e8e8FvUN1jO8dtbdDIzrr4zPzzxfv2yfrotPyzg/usgPrtufzBjfzyw/vjrvv80vy2hvv7z/zUnvvMl/zyv/vGkfuwgfn+9f7z1/7ep/z53Prtu/fvvf29keD///3u0vzkqfz91vv56vnorf27ifnbu/L54/3ttP3+7/zvt/q8jO+1gOzny/66gv757/zZovyjfvvy5Pr61vqjc/XlvfB0Ru+YZu68f+3+4P/+5/7bnvy6ePvgovr20fnQmvfq0/bImvafaPWDW/XNr/N7ZPPjxPHSj/DLl+7Lnu13WN9WMqHJqf/96/74x/3UtPutefjxy/Ttw/TZqe+re+/Ike2PYeStfd2NWsSVb77Ghv3+2vy8jfvcxfrntPTGhvKkbe7Qo+zSsuqdZdushdq4idl1S7zSmv3ssPvz2Pbu1fGvivCLYu2gdOuWcuqVY9KAVsXyuP7v3v3syP3bvf3Xkv2+oPy7mvzto/vnlvjgsfS7nvPEf/KSU/LbxO9xVu/Vne69l+6FWuyObuvbs+h9TOegfuacWuaoi+XPoeGic9+rct9qP7WrbfzYm/vPi/uTZ/rQiPS4f/TPwPPkpvOrlfOwc++8du2ugemIUunHpei1duGnbuGTa+DGm9+0jNGpcc9UKc20fctXI7rkvv+8sfrlw/nRpvjal/Xv3/TAzvTam/GAkfCsdejdvuSVedyYctxtNtP++f733f7ViP3Ld/rf0PT2vfPhgfNnafLjzezHuunFf+OPRN55P9WkZdKQRdBfMrFBIaxaQ/OExvLq1+pXJ+WBNuCkSdjBmtWGadKkf8mFM8eJT7dpRacnC5bA/Ph9rvOI5vFWXuzCUOJNLJZJYFROAAAALnRSTlMADP78/v4r63ZXPzH+/v37wKB6SP7x4MyhcW5K8evq4NjYi2YZ/e3a1c7IyMWtdH+scgAABvdJREFUSMeFlmVQG1EURrdQqLu7exsChYQSQkOcJI2QEBqXQoQEIi2uxb24lkJx97q7u7u7u890N6nreftr5zv3vju7O2+B3+gyakD/bvxjj64PmT58VBfgP3TpPsYzkM1m19Wxs9nqYsHBoSP/Ge+PSTLwSb1v9EtN7Zec6U8Pm09WL5/z1/xATLiKFHrrSYs0wSVB2nL7wIFIJ6EEt4vf/c/lLWtVmJVXqAK8dPtuQ1Ly9euZsM0HCmzFpfTcbn/ID8IYSBuvYixV6sv8Yltbe1uaqjyUnrnmQCRXzLIgWf+2HVJv/6uKEJHovGjRiVBlXZBWlVSbzFLSd0vvIcV8C0yPX/Ok4JUB8SEiZi06JvTOnY69dzrCCbZ6IouThT1wWFzUZPmTMciSdKXsikhVXq5g7N/byPCXy2WK3VFROlu2NqV9/blijec5S+sf5vXvjVfg/DxFCNb+PZ4yioDi6OjkBHeUpb2iSbbnlyeeO9iHP5j0XbBMzrqqC/XM0p0eTZXFUASOFDAPg8HgNrKo8LX0fAM7P/ZQ9pDx3wbgkD7q9aKsyrb9GEFMDAWs/0WA2yiIO7Z37GGHR+Z47jv9dQzG5bswfZtyS9szOSVGYIo7QnlIsIGnbaanNqbsDm4q2lVkzveXHGshrslKrN0vp1Di4d/LwyHBBra05HQVXr/0iMfgtBEmgVV9uzDhkZj1ikVxjGlLgzuBeZAAcx6BkN1zZ9M5WcGb+bf8oXz3MNITZXiFR1QmzMkxhojZsxEPER8AxiHBBu0XKfIjIHcHYhKfjgKFMbkV0dXhaxv3xoBlHYkXLvA9QajUPe4IBBoBCjaCKEpI/LoQRjH95lDwGTC0WV6q6tz9wQFwGMyJ6Eomu5qQ72GiCQQ0GoFANPopqMEyXPz5mysBoOcRVXlCEZG8lwK3gQdAgt9SMy9eF+LtCXjQgIkEOBZOEEJyv2QNTJxfvOWw0E9/GgFtOCDNldGJcIdgunOe0fD2eAK4r0x/HEkgyzwf/HIE0D9IWbl3XtKJYAIaJCCNTM5H20MwCTv8X9Bsmfb2aESIXI7DyaksasZwoFsYZ11kc4LOxp4AYhLsbSEymDtcGQUEk4GXKXACfyoDc3ccQA3amcLJq0xA2EJl0ake5Cgmkoak0WgZHWTX9EJkhi04CAWOg+HkDOrGsQA1LD+6pXq9FGEqW5jq4RGFRLpB0DrI5HQmEgl+fu4wPBwdjMNhno4D+ML8yCP16yMJSAhmZNzhKDesN4TbTg+PdCbWDYnMiHfPCNkoV7hST4wFVMKUFOez7Zx4LAQtdfnyKOzqRRDeO+M80mkLsVgkbWPZ0RA4DO/K2DEaGCLkFLho2x3aUAtBsOn0wIKFKNTq1ajVi1KWH0x3A++5uYWWXXI6WhjqGqybAQzjOS92CCOq05xREG734gpWLwNRLgOF5elYFFgIeaJElbHOW49DvhwOTJwb+wkZpt+VinU2ge2MNCTR/UShSbXEJYGdi5SggfLeUuu27igHl3JrEmAdyHutJS6IUKc6uJhAdWpXrChdAVJaqk13dlYuQ4WX6BKi3byFh+9WWQNdPPtUFOQ1520djHIws2yx1RIzVoudXcCmKF2JtGSzTlnK2fYYAIBufQPf5GTbSYTt8xaYce5cbKbTBerqfPNipWGNdJ3Eo2nfLFDoEbipQNxw9kb9NoPdPDOxYB8X8IqNdQAN/RqpYUfiIm/NkX3ingAIxtfjftOmy62ac+r5dtCCMLlQSwdlZTQ7Ub9emhjYlCMGIAYs2fQ8wmhsPbP2tjpo/lzTMluQod7C3Ry2fadXWQ1ds28SlDe32PSgtVWcZ1HHm2sCVOZDAjd8CzdoK9GHuyYnruq+BjDTnewb+GatRWuzOLfqbCzviwEp6g6vIGFebAR3lY5n0DiAE5jpVlrRb19NRHPzmXq7qna2Hc8kxYaf8omOSM6ZF8H1Wel7TDJlJvANTJ8N2y3EDbuyjcJdQT4tuae2bj21s2UVVxIhWRuUA+Wp21oPAt/pxeirra7X1D8/Y+QJIxK9QLhS9bZtYbk5Pj52YJ5v2ICZ/NMBUdQnm9Eu1GgPWRjPWlXkNTRESDintmo0ErugVTpfPifJv9cvR5zrpgbXZGJ0VXIcr8loNJ4hEuPq6n24c1ddzPUtWm+F+TkP7eqCla+2OLntaKUUfFn9fCRhiV7RXqsuJtR09cs28v70SzAttOtJeoCosTHenUkrLCuJ9rpUxq65Ftds0XUY8Ed6OIYcf3g8DsfqfSxToYCX1zU86Luh4rGxb0/gb3SXUS3fvn/47uTJk9c+XOt66EbXGt+uI4B/0Ws8icWqPn58wwar7Lwa3qHZPYH/Yj1ywLCh/aZOmDBg5GTgNz4D2CYAK8x+JcUAAAAASUVORK5CYII=",ps="https://fe-oss.jolibox.com/static/coin/jolicoin.png",rp="https://fe-oss.jolibox.com/static/coin/gem.png";Nn=()=>{let e=AJ(Zk);if(!e)throw new Error("useTranslations must be used within a LightIntlProvider");let{translations:t}=e;return{t:(r,n)=>{let i=oB(t,r);if(typeof i=="string"){let o=i;if(n)for(let a in n)o=o.replace(new RegExp(`{{${a}}}`,"g"),String(n[a]));return o}return console.warn(`Translation key "${r}" not found or not a string.`),`[${r}]`},translations:t}},gk=({text:e,initialFontSize:t,styles:r})=>_("span",{style:r,children:_("span",{style:{fontSize:`${t}px`,display:"-webkit-box",textAlign:"left",WebkitBoxOrient:"vertical",WebkitLineClamp:2,width:"auto",whiteSpace:"normal",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},children:e})}),kr={coinInfo:D`
229
+ `;let m=document.createElement("div");m.id="recommend-panel-content",p.appendChild(f),p.appendChild(m),a(p)}},[]);return Yr(()=>{if(o){let u=o.getElementById("recommend-panel-content");u&&mr(_("div",{className:"recommend-panel",children:_("div",{className:"container",children:[_("p",{className:"title",children:r}),_("div",{className:"games-container",children:_(aB,{list:t||[],routeMode:"REDIRECT",layerName:"RecommendedGuide",onGameClick:l,orientation:c})}),_("div",{className:"buttons-container",children:(n!=null?n:[]).map((p,f)=>_("div",{className:"button-wrapper",children:_("button",{className:`button ${p.type===jd.Quit?"quit-button":"action-button"}`,onClick:()=>s(p),children:_("span",{className:"button-text-ellipsis",children:p.text})})},f))})]})}),u)}},[o,t,r,n,s,l]),_("div",{ref:d})},lA=e=>{let t=ds({title:e.title,content:_(sB,{games:e.games,title:e.title,buttons:e.buttons,onClose:e.onClose}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"450px",onClose:()=>{var r;(r=e.onClose)==null||r.call(e,{type:"back"})},onOpen:e.onOpen});return t.show(),t},cA="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAC+lBMVEUAAABQTlBrQeL6+vufkPrEp/RcV2Pv6e23t7ehnqZVSIOZmaDy6vWRfPWDdvq6neHc29e5trzh4+DHyM2BUeHMteDIp+G2pd50SZV/aqmQkI1jWGyeYLz4+vTMh96RS8Lh2+XIwuGek6NEJn9RSF9QO8fBr+Xl1e2gh7e8e8FvUN1jO8dtbdDIzrr4zPzzxfv2yfrotPyzg/usgPrtufzBjfzyw/vjrvv80vy2hvv7z/zUnvvMl/zyv/vGkfuwgfn+9f7z1/7ep/z53Prtu/fvvf29keD///3u0vzkqfz91vv56vnorf27ifnbu/L54/3ttP3+7/zvt/q8jO+1gOzny/66gv757/zZovyjfvvy5Pr61vqjc/XlvfB0Ru+YZu68f+3+4P/+5/7bnvy6ePvgovr20fnQmvfq0/bImvafaPWDW/XNr/N7ZPPjxPHSj/DLl+7Lnu13WN9WMqHJqf/96/74x/3UtPutefjxy/Ttw/TZqe+re+/Ike2PYeStfd2NWsSVb77Ghv3+2vy8jfvcxfrntPTGhvKkbe7Qo+zSsuqdZdushdq4idl1S7zSmv3ssPvz2Pbu1fGvivCLYu2gdOuWcuqVY9KAVsXyuP7v3v3syP3bvf3Xkv2+oPy7mvzto/vnlvjgsfS7nvPEf/KSU/LbxO9xVu/Vne69l+6FWuyObuvbs+h9TOegfuacWuaoi+XPoeGic9+rct9qP7WrbfzYm/vPi/uTZ/rQiPS4f/TPwPPkpvOrlfOwc++8du2ugemIUunHpei1duGnbuGTa+DGm9+0jNGpcc9UKc20fctXI7rkvv+8sfrlw/nRpvjal/Xv3/TAzvTam/GAkfCsdejdvuSVedyYctxtNtP++f733f7ViP3Ld/rf0PT2vfPhgfNnafLjzezHuunFf+OPRN55P9WkZdKQRdBfMrFBIaxaQ/OExvLq1+pXJ+WBNuCkSdjBmtWGadKkf8mFM8eJT7dpRacnC5bA/Ph9rvOI5vFWXuzCUOJNLJZJYFROAAAALnRSTlMADP78/v4r63ZXPzH+/v37wKB6SP7x4MyhcW5K8evq4NjYi2YZ/e3a1c7IyMWtdH+scgAABvdJREFUSMeFlmVQG1EURrdQqLu7exsChYQSQkOcJI2QEBqXQoQEIi2uxb24lkJx97q7u7u7u890N6nreftr5zv3vju7O2+B3+gyakD/bvxjj64PmT58VBfgP3TpPsYzkM1m19Wxs9nqYsHBoSP/Ge+PSTLwSb1v9EtN7Zec6U8Pm09WL5/z1/xATLiKFHrrSYs0wSVB2nL7wIFIJ6EEt4vf/c/lLWtVmJVXqAK8dPtuQ1Ly9euZsM0HCmzFpfTcbn/ID8IYSBuvYixV6sv8Yltbe1uaqjyUnrnmQCRXzLIgWf+2HVJv/6uKEJHovGjRiVBlXZBWlVSbzFLSd0vvIcV8C0yPX/Ok4JUB8SEiZi06JvTOnY69dzrCCbZ6IouThT1wWFzUZPmTMciSdKXsikhVXq5g7N/byPCXy2WK3VFROlu2NqV9/blijec5S+sf5vXvjVfg/DxFCNb+PZ4yioDi6OjkBHeUpb2iSbbnlyeeO9iHP5j0XbBMzrqqC/XM0p0eTZXFUASOFDAPg8HgNrKo8LX0fAM7P/ZQ9pDx3wbgkD7q9aKsyrb9GEFMDAWs/0WA2yiIO7Z37GGHR+Z47jv9dQzG5bswfZtyS9szOSVGYIo7QnlIsIGnbaanNqbsDm4q2lVkzveXHGshrslKrN0vp1Di4d/LwyHBBra05HQVXr/0iMfgtBEmgVV9uzDhkZj1ikVxjGlLgzuBeZAAcx6BkN1zZ9M5WcGb+bf8oXz3MNITZXiFR1QmzMkxhojZsxEPER8AxiHBBu0XKfIjIHcHYhKfjgKFMbkV0dXhaxv3xoBlHYkXLvA9QajUPe4IBBoBCjaCKEpI/LoQRjH95lDwGTC0WV6q6tz9wQFwGMyJ6Eomu5qQ72GiCQQ0GoFANPopqMEyXPz5mysBoOcRVXlCEZG8lwK3gQdAgt9SMy9eF+LtCXjQgIkEOBZOEEJyv2QNTJxfvOWw0E9/GgFtOCDNldGJcIdgunOe0fD2eAK4r0x/HEkgyzwf/HIE0D9IWbl3XtKJYAIaJCCNTM5H20MwCTv8X9Bsmfb2aESIXI7DyaksasZwoFsYZ11kc4LOxp4AYhLsbSEymDtcGQUEk4GXKXACfyoDc3ccQA3amcLJq0xA2EJl0ake5Cgmkoak0WgZHWTX9EJkhi04CAWOg+HkDOrGsQA1LD+6pXq9FGEqW5jq4RGFRLpB0DrI5HQmEgl+fu4wPBwdjMNhno4D+ML8yCP16yMJSAhmZNzhKDesN4TbTg+PdCbWDYnMiHfPCNkoV7hST4wFVMKUFOez7Zx4LAQtdfnyKOzqRRDeO+M80mkLsVgkbWPZ0RA4DO/K2DEaGCLkFLho2x3aUAtBsOn0wIKFKNTq1ajVi1KWH0x3A++5uYWWXXI6WhjqGqybAQzjOS92CCOq05xREG734gpWLwNRLgOF5elYFFgIeaJElbHOW49DvhwOTJwb+wkZpt+VinU2ge2MNCTR/UShSbXEJYGdi5SggfLeUuu27igHl3JrEmAdyHutJS6IUKc6uJhAdWpXrChdAVJaqk13dlYuQ4WX6BKi3byFh+9WWQNdPPtUFOQ1520djHIws2yx1RIzVoudXcCmKF2JtGSzTlnK2fYYAIBufQPf5GTbSYTt8xaYce5cbKbTBerqfPNipWGNdJ3Eo2nfLFDoEbipQNxw9kb9NoPdPDOxYB8X8IqNdQAN/RqpYUfiIm/NkX3ingAIxtfjftOmy62ac+r5dtCCMLlQSwdlZTQ7Ub9emhjYlCMGIAYs2fQ8wmhsPbP2tjpo/lzTMluQod7C3Ry2fadXWQ1ds28SlDe32PSgtVWcZ1HHm2sCVOZDAjd8CzdoK9GHuyYnruq+BjDTnewb+GatRWuzOLfqbCzviwEp6g6vIGFebAR3lY5n0DiAE5jpVlrRb19NRHPzmXq7qna2Hc8kxYaf8omOSM6ZF8H1Wel7TDJlJvANTJ8N2y3EDbuyjcJdQT4tuae2bj21s2UVVxIhWRuUA+Wp21oPAt/pxeirra7X1D8/Y+QJIxK9QLhS9bZtYbk5Pj52YJ5v2ICZ/NMBUdQnm9Eu1GgPWRjPWlXkNTRESDintmo0ErugVTpfPifJv9cvR5zrpgbXZGJ0VXIcr8loNJ4hEuPq6n24c1ddzPUtWm+F+TkP7eqCla+2OLntaKUUfFn9fCRhiV7RXqsuJtR09cs28v70SzAttOtJeoCosTHenUkrLCuJ9rpUxq65Ftds0XUY8Ed6OIYcf3g8DsfqfSxToYCX1zU86Luh4rGxb0/gb3SXUS3fvn/47uTJk9c+XOt66EbXGt+uI4B/0Ws8icWqPn58wwar7Lwa3qHZPYH/Yj1ywLCh/aZOmDBg5GTgNz4D2CYAK8x+JcUAAAAASUVORK5CYII=",ps="https://fe-oss.jolibox.com/static/coin/jolicoin.png",np="https://fe-oss.jolibox.com/static/coin/gem.png";Nn=()=>{let e=TJ(eA);if(!e)throw new Error("useTranslations must be used within a LightIntlProvider");let{translations:t}=e;return{t:(r,n)=>{let i=lB(t,r);if(typeof i=="string"){let o=i;if(n)for(let a in n)o=o.replace(new RegExp(`{{${a}}}`,"g"),String(n[a]));return o}return console.warn(`Translation key "${r}" not found or not a string.`),`[${r}]`},translations:t}},yk=({text:e,initialFontSize:t,styles:r})=>_("span",{style:r,children:_("span",{style:{fontSize:`${t}px`,display:"-webkit-box",textAlign:"left",WebkitBoxOrient:"vertical",WebkitLineClamp:2,width:"auto",whiteSpace:"normal",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},children:e})}),kr={coinInfo:D`
230
230
  display: flex;
231
231
  width: calc(100% - 40px);
232
232
  max-width: 720px;
@@ -286,7 +286,7 @@ If multiple caches share the same key they might "fight" for each other's style
286
286
  font-size: 16px;
287
287
  font-weight: 600;
288
288
  color: #d9d9d9;
289
- `},cS=({unlockNeedsAmount:e=0,balanceAmount:t=0,coinImage:r=ps,formatter:n=s=>s>999?"999+":`${s}`,hideNeeds:i=!1,hideBalance:o=!1,currency:a="JOLI_COIN"})=>{let s=n(t),{t:l}=Nn(),c=14,d=tr(()=>a==="JOLI_GEM"?"joligem.balance":"jolicoin.balance",[a]);return _("div",{style:kr.coinInfo.styles,children:[!i&&_("div",{style:kr.coinAmount.styles,children:[_(gk,{text:l("jolicoin.price"),initialFontSize:c,styles:kr.coinLabelContainer.styles}),_("div",{style:kr.coinValue.styles,children:[_("img",{src:r,alt:"Jolicoin",style:a==="JOLI_GEM"?kr.gemIcon.styles:kr.coinIcon.styles}),_("span",{children:e})]})]}),!o&&_("div",{style:kr.coinAmountBalance.styles,children:_(gk,{text:l(d)+":\xA0"+s,initialFontSize:c,styles:kr.coinValueText.styles})})]})},Kr={card:D`
289
+ `},uA=({unlockNeedsAmount:e=0,balanceAmount:t=0,coinImage:r=ps,formatter:n=s=>s>999?"999+":`${s}`,hideNeeds:i=!1,hideBalance:o=!1,currency:a="JOLI_COIN"})=>{let s=n(t),{t:l}=Nn(),c=14,d=tr(()=>a==="JOLI_GEM"?"joligem.balance":"jolicoin.balance",[a]);return _("div",{style:kr.coinInfo.styles,children:[!i&&_("div",{style:kr.coinAmount.styles,children:[_(yk,{text:l("jolicoin.price"),initialFontSize:c,styles:kr.coinLabelContainer.styles}),_("div",{style:kr.coinValue.styles,children:[_("img",{src:r,alt:"Jolicoin",style:a==="JOLI_GEM"?kr.gemIcon.styles:kr.coinIcon.styles}),_("span",{children:e})]})]}),!o&&_("div",{style:kr.coinAmountBalance.styles,children:_(yk,{text:l(d)+":\xA0"+s,initialFontSize:c,styles:kr.coinValueText.styles})})]})},Kr={card:D`
290
290
  display: flex;
291
291
  flex-direction: column;
292
292
  align-items: center;
@@ -322,17 +322,17 @@ If multiple caches share the same key they might "fight" for each other's style
322
322
  font-size: 16px;
323
323
  color: #C093FF;
324
324
  font-weight: bold;
325
- `},aB=D`
325
+ `},cB=D`
326
326
  box-sizing: border-box;
327
327
  width: 100%;
328
328
  aspect-ratio: 1/1;
329
- `,sB=D`
329
+ `,uB=D`
330
330
  aspect-ratio: 1/1; // 强制 1:1 的宽高比
331
331
  display: flex;
332
332
  flex-direction: column;
333
333
  justify-content: center;
334
334
  -webkit-tap-highlight-color: transparent;
335
- `,lB=e=>_("div",{style:aB.styles,children:_("div",{style:sB.styles,children:_("div",{style:`${Kr.card.styles} ${e.option.id===e.selectedId?Kr.selectedCard.styles:""}`,onClick:()=>e.handleSelect(e.option),children:[_("div",{style:Kr.coinContainer.styles,children:[_("img",{src:e.coinImageSrc,alt:"Coin",style:e.currency==="JOLI_GEM"?Kr.gemIcon.styles:Kr.coinIcon.styles}),_("span",{style:Kr.coinValue.styles,children:e.option.coins.toLocaleString()})]}),_("div",{style:Kr.price.styles,children:e.option.price})]})})}),cB=({options:e,selectedId:t,onSelect:r,currency:n,coinImageSrc:i=ps})=>{let o=po(),a=s=>{r==null||r(s)};return _(iS,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{padding:"0px"},children:_(oS,{gutter:[10,10],style:{display:"flex","flex-wrap":"wrap"},children:e.map(s=>_(aS,{span:o==="landscape"?4:8,children:_(lB,{currency:n,option:s,selectedId:t,coinImageSrc:i,handleSelect:a})},s.id))})})},uB=vu(cB);Ga={toggleSwitch:D`
335
+ `,dB=e=>_("div",{style:cB.styles,children:_("div",{style:uB.styles,children:_("div",{style:`${Kr.card.styles} ${e.option.id===e.selectedId?Kr.selectedCard.styles:""}`,onClick:()=>e.handleSelect(e.option),children:[_("div",{style:Kr.coinContainer.styles,children:[_("img",{src:e.coinImageSrc,alt:"Coin",style:e.currency==="JOLI_GEM"?Kr.gemIcon.styles:Kr.coinIcon.styles}),_("span",{style:Kr.coinValue.styles,children:e.option.coins.toLocaleString()})]}),_("div",{style:Kr.price.styles,children:e.option.price})]})})}),pB=({options:e,selectedId:t,onSelect:r,currency:n,coinImageSrc:i=ps})=>{let o=po(),a=s=>{r==null||r(s)};return _(oA,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{padding:"0px"},children:_(aA,{gutter:[10,10],style:{display:"flex","flex-wrap":"wrap"},children:e.map(s=>_(sA,{span:o==="landscape"?4:8,children:_(dB,{currency:n,option:s,selectedId:t,coinImageSrc:i,handleSelect:a})},s.id))})})},fB=gu(pB);Ga={toggleSwitch:D`
336
336
  position: relative;
337
337
  display: inline-block;
338
338
  width: 33px;
@@ -369,7 +369,7 @@ If multiple caches share the same key they might "fight" for each other's style
369
369
  &:before {
370
370
  transform: translateX(18px);
371
371
  }
372
- `},uS=({enableAutoDeduct:e,toggleEnableAutoDeduct:t})=>dB("label",{css:Ga.toggleSwitch,children:[yk("input",{css:Ga.toggleInput,type:"checkbox",checked:e,onChange:t}),yk("span",{css:[Ga.toggleSlider,e&&Ga.toggleSliderActive]})]}),np=()=>_("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[_("g",{"clip-path":"url(#clip0_2716_2719)",children:_("path",{d:"M18.3 6.20997C17.91 5.81997 17.28 5.81997 16.89 6.20997L12 11.09L7.10997 6.19997C6.71997 5.80997 6.08997 5.80997 5.69997 6.19997C5.30997 6.58997 5.30997 7.21997 5.69997 7.60997L10.59 12.5L5.69997 17.39C5.30997 17.78 5.30997 18.41 5.69997 18.8C6.08997 19.19 6.71997 19.19 7.10997 18.8L12 13.91L16.89 18.8C17.28 19.19 17.91 19.19 18.3 18.8C18.69 18.41 18.69 17.78 18.3 17.39L13.41 12.5L18.3 7.60997C18.68 7.22997 18.68 6.58997 18.3 6.20997Z",fill:"#979797"})}),_("defs",{children:_("clipPath",{id:"clip0_2716_2719",children:_("rect",{width:"24",height:"24",fill:"white",transform:"translate(0 0.5)"})})})]}),he={modal:D`
372
+ `},dA=({enableAutoDeduct:e,toggleEnableAutoDeduct:t})=>hB("label",{css:Ga.toggleSwitch,children:[_k("input",{css:Ga.toggleInput,type:"checkbox",checked:e,onChange:t}),_k("span",{css:[Ga.toggleSlider,e&&Ga.toggleSliderActive]})]}),ip=()=>_("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[_("g",{"clip-path":"url(#clip0_2716_2719)",children:_("path",{d:"M18.3 6.20997C17.91 5.81997 17.28 5.81997 16.89 6.20997L12 11.09L7.10997 6.19997C6.71997 5.80997 6.08997 5.80997 5.69997 6.19997C5.30997 6.58997 5.30997 7.21997 5.69997 7.60997L10.59 12.5L5.69997 17.39C5.30997 17.78 5.30997 18.41 5.69997 18.8C6.08997 19.19 6.71997 19.19 7.10997 18.8L12 13.91L16.89 18.8C17.28 19.19 17.91 19.19 18.3 18.8C18.69 18.41 18.69 17.78 18.3 17.39L13.41 12.5L18.3 7.60997C18.68 7.22997 18.68 6.58997 18.3 6.20997Z",fill:"#979797"})}),_("defs",{children:_("clipPath",{id:"clip0_2716_2719",children:_("rect",{width:"24",height:"24",fill:"white",transform:"translate(0 0.5)"})})})]}),he={modal:D`
373
373
  font-family: PingFangSC-Regular;
374
374
  background-color: #1a1a1a;
375
375
  color: white;
@@ -457,19 +457,19 @@ If multiple caches share the same key they might "fight" for each other's style
457
457
  border-radius: 2px;
458
458
  margin: 0 auto;
459
459
  -webkit-tap-highlight-color: transparent;
460
- `},pB=({unlockNeedsAmount:e=10,balanceAmount:t=999,defaultEnableAutoDeduct:r=!1,currency:n="JOLI_COIN",onConfirm:i,onClose:o,onEnableDeductChanged:a,confirmButtonKey:s,cancelButtonKey:l})=>{let[c,d]=Jt(r),u=po(),{t:p}=Nn(),f=()=>{i(c)},m=tr(()=>n==="JOLI_GEM"?rp:ps,[n]),g=tr(()=>n==="JOLI_GEM"?"joligem.unlockWithJolicoin":"jolicoin.unlockWithJolicoin",[n]),y=tr(()=>n==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[n]),v=bt(()=>{d(!c),a(!c)},[c]);return _("div",{style:`${he.modal.styles} ${u==="portrait"?"max-width: 440px":"max-width: 75%"}`,children:[_("div",{style:he.header.styles,children:[_(cS,{unlockNeedsAmount:e,balanceAmount:t,coinImage:m,currency:n}),_("button",{style:he.closeButton.styles,onClick:o.bind(null,{type:"CANCEL"}),children:_(np,{})})]}),_("div",{style:he.content.styles,children:[_("h2",{style:he.title.styles,children:p(g)}),!r&&_("div",{style:he.autoDeductOption.styles,children:[_("span",{style:D`
460
+ `},mB=({unlockNeedsAmount:e=10,balanceAmount:t=999,defaultEnableAutoDeduct:r=!1,currency:n="JOLI_COIN",onConfirm:i,onClose:o,onEnableDeductChanged:a,confirmButtonKey:s,cancelButtonKey:l})=>{let[c,d]=Jt(r),u=po(),{t:p}=Nn(),f=()=>{i(c)},m=tr(()=>n==="JOLI_GEM"?np:ps,[n]),g=tr(()=>n==="JOLI_GEM"?"joligem.unlockWithJolicoin":"jolicoin.unlockWithJolicoin",[n]),y=tr(()=>n==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[n]),v=bt(()=>{d(!c),a(!c)},[c]);return _("div",{style:`${he.modal.styles} ${u==="portrait"?"max-width: 440px":"max-width: 75%"}`,children:[_("div",{style:he.header.styles,children:[_(uA,{unlockNeedsAmount:e,balanceAmount:t,coinImage:m,currency:n}),_("button",{style:he.closeButton.styles,onClick:o.bind(null,{type:"CANCEL"}),children:_(ip,{})})]}),_("div",{style:he.content.styles,children:[_("h2",{style:he.title.styles,children:p(g)}),!r&&_("div",{style:he.autoDeductOption.styles,children:[_("span",{style:D`
461
461
  font-size: 12px;
462
462
  font-weight: 400;
463
463
  line-height: 1.2;
464
464
  color: #979797;
465
- `.styles,children:p(y)}),_(uS,{enableAutoDeduct:c,toggleEnableAutoDeduct:v})]}),_("section",{style:`${he.buttonContainer.styles} ${u==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[_("button",{style:`${he.confirmButton.styles} ${he.buttonFlex.styles}`,onClick:f,children:p(s)}),_("button",{style:`${he.cancelButton.styles} ${he.buttonFlex.styles}`,onClick:o.bind(null,{type:"FAILED"}),children:p(l)})]})]})]})},fB=({unlockNeedsAmount:e=1,balanceAmount:t=0,defaultEnableAutoDeduct:r=!1,paymentChoices:n=[],currency:i="JOLI_COIN",onConfirm:o,onClose:a,onEnableDeductChanged:s,onSelect:l,confirmButtonKey:c,cancelButtonKey:d})=>{let[u,p]=Jt(r),{t:f}=Nn(),[m,g]=Jt(()=>{var C,S;return((C=n.find(O=>O.defaultSelected))==null?void 0:C.productId)||((S=n==null?void 0:n[0])==null?void 0:S.productId)}),y=po(),v=()=>{o(m)},b=bt(C=>{console.log(C),g(C),l(C)},[]),k=bt(()=>{p(!u),s(!u)},[u]),x=tr(()=>i==="JOLI_GEM"?rp:ps,[i]),P=tr(()=>i==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[i]);return console.log("defaultEnableAutoDeduct",r),_("div",{style:he.modal.styles,children:[_("div",{style:he.header.styles,children:[_(cS,{unlockNeedsAmount:e,balanceAmount:t,coinImage:x,currency:i}),_("button",{style:he.closeButton.styles,onClick:a.bind(null,{type:"CANCEL"}),children:_(np,{})})]}),_("div",{style:he.content.styles,children:[_("div",{style:D`
465
+ `.styles,children:p(y)}),_(dA,{enableAutoDeduct:c,toggleEnableAutoDeduct:v})]}),_("section",{style:`${he.buttonContainer.styles} ${u==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[_("button",{style:`${he.confirmButton.styles} ${he.buttonFlex.styles}`,onClick:f,children:p(s)}),_("button",{style:`${he.cancelButton.styles} ${he.buttonFlex.styles}`,onClick:o.bind(null,{type:"FAILED"}),children:p(l)})]})]})]})},vB=({unlockNeedsAmount:e=1,balanceAmount:t=0,defaultEnableAutoDeduct:r=!1,paymentChoices:n=[],currency:i="JOLI_COIN",onConfirm:o,onClose:a,onEnableDeductChanged:s,onSelect:l,confirmButtonKey:c,cancelButtonKey:d})=>{let[u,p]=Jt(r),{t:f}=Nn(),[m,g]=Jt(()=>{var C,A;return((C=n.find(O=>O.defaultSelected))==null?void 0:C.productId)||((A=n==null?void 0:n[0])==null?void 0:A.productId)}),y=po(),v=()=>{o(m)},b=bt(C=>{console.log(C),g(C),l(C)},[]),k=bt(()=>{p(!u),s(!u)},[u]),x=tr(()=>i==="JOLI_GEM"?np:ps,[i]),P=tr(()=>i==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[i]);return console.log("defaultEnableAutoDeduct",r),_("div",{style:he.modal.styles,children:[_("div",{style:he.header.styles,children:[_(uA,{unlockNeedsAmount:e,balanceAmount:t,coinImage:x,currency:i}),_("button",{style:he.closeButton.styles,onClick:a.bind(null,{type:"CANCEL"}),children:_(ip,{})})]}),_("div",{style:he.content.styles,children:[_("div",{style:D`
466
466
  padding: 16px 0px;
467
- `.styles,children:_(uB,{options:n.map(C=>({id:C.productId,coins:C.quantity,price:C.totalAmountStr})),coinImageSrc:x,selectedId:m,currency:i,onSelect:C=>b(C.id)})}),!r&&_("div",{style:he.autoDeductOption.styles,children:[_("span",{style:D`
467
+ `.styles,children:_(fB,{options:n.map(C=>({id:C.productId,coins:C.quantity,price:C.totalAmountStr})),coinImageSrc:x,selectedId:m,currency:i,onSelect:C=>b(C.id)})}),!r&&_("div",{style:he.autoDeductOption.styles,children:[_("span",{style:D`
468
468
  font-size: 12px;
469
469
  font-weight: 400;
470
470
  line-height: 1.2;
471
471
  color: #979797;
472
- `.styles,children:f(P)}),_(uS,{enableAutoDeduct:u,toggleEnableAutoDeduct:k})]}),_("section",{style:`${he.buttonContainer.styles} ${y==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[_("button",{style:`${he.confirmButton.styles} ${he.buttonFlex.styles}`,onClick:v,children:f(c)}),_("button",{style:`${he.cancelButton.styles} ${he.buttonFlex.styles}`,onClick:a.bind(null,{type:"FAILED"}),children:f(d)})]})]})]})};mB=D`
472
+ `.styles,children:f(P)}),_(dA,{enableAutoDeduct:u,toggleEnableAutoDeduct:k})]}),_("section",{style:`${he.buttonContainer.styles} ${y==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[_("button",{style:`${he.confirmButton.styles} ${he.buttonFlex.styles}`,onClick:v,children:f(c)}),_("button",{style:`${he.cancelButton.styles} ${he.buttonFlex.styles}`,onClick:a.bind(null,{type:"FAILED"}),children:f(d)})]})]})]})};yB=D`
473
473
  display: inline-flex;
474
474
  align-items: center;
475
475
  justify-content: center;
@@ -486,14 +486,14 @@ If multiple caches share the same key they might "fight" for each other's style
486
486
  white-space: nowrap;
487
487
  text-overflow: ellipsis;
488
488
  border: 1px solid rgba(255, 255, 255, 0.52);
489
- `,vB=D`
489
+ `,_B=D`
490
490
  position: absolute;
491
491
  left: 20%;
492
492
  bottom: -9px;
493
493
  transform: translateX(-50%);
494
494
  z-index: 2;
495
495
  pointer-events: none;
496
- `;At=F(T({},he),{header:D`
496
+ `;St=F(T({},he),{header:D`
497
497
  display: flex;
498
498
  justify-content: flex-end;
499
499
  align-items: center;
@@ -547,7 +547,7 @@ If multiple caches share the same key they might "fight" for each other's style
547
547
  border-top: 8px solid #4f396d;
548
548
  z-index: 2;
549
549
  }
550
- `}),yB={JOLI_COIN:"https://fe-oss.jolibox.com/static/rewards/jolicoin-light.png?timestamp="+Date.now(),"ADS-JOLI_COIN":"https://fe-oss.jolibox.com/static/rewards/ads-jolicoin-light.png?timestamp="+Date.now(),JOLI_GEM:"https://fe-oss.jolibox.com/static/rewards/jolicoin-light.png?timestamp="+Date.now(),"ADS-JOLI_GEM":"https://fe-oss.jolibox.com/static/rewards/ads-jolicoin-light.png?timestamp="+Date.now()},_B=({currency:e,rewardType:t,rewardValue:r,confirmButtonKey:n,cancelButtonKey:i,onClose:o,onConfirm:a})=>{let s=t==="ADS-JOLI_COIN",{t:l}=Nn(),c=yB[t];return _("div",{style:{paddingTop:"80px"},children:_("section",{style:`${At.modal.styles} width:calc(100% - 40px); position: relative; border-radius: 16px; padding: 0;`,children:[_(hB,{src:c,alt:"\u{1FA99}",width:213,height:125,top:"-80px"}),_("div",{style:At.header.styles,children:_("button",{style:`${At.closeButton.styles} padding-top: 10px; padding-right: 10px;`,onClick:o.bind(null,{type:"CANCEL"}),children:_(np,{})})}),_("div",{style:At.introduct.styles,children:[s?_("span",{style:At.introductSubTitle.styles,children:l("loginGuide.instead")}):null,_("span",{style:At.introductTitle.styles,children:_(jd,{children:l("loginGuide.introduct"),values:{coin:_("img",{src:c,alt:"\u{1FA99}",style:{height:"20px",verticalAlign:"text-top",marginRight:"2px"}})}})})]}),_("div",{style:{width:"calc(100% - 40px)",paddingBottom:"16px"},children:_("section",{style:`${At.buttonContainer.styles} flex-direction: column; margin-top: 48px; padding: 0 20px;`,children:[_("div",{style:{position:"relative",display:"inline-block",width:"100%",height:"100%"},children:[_("div",{style:{position:"absolute",top:"-32px",right:"-5px",width:"auto",zIndex:1},children:_(gB,{children:_(jd,{style:{fontSize:"12px",color:"#FFFFFF",fontWeight:600,lineHeight:"16px",textAlign:"center"},children:l("loginGuide.tips"),values:{coin:_(De,{children:[_("img",{src:c,alt:"\u{1FA99}",style:{height:"16px",verticalAlign:"text-top",marginRight:"2px"}}),r]})}})})}),_("button",{style:`${At.confirmButton.styles} ${At.buttonFlex.styles} padding: 0; line-height: 24px; display: flex; align-items: center; justify-content: center; overflow: hidden;`,onClick:a,children:_("span",{style:"display: flex; align-items: center; justify-content: center; width: 100%; word-break: break-word; height: 48px;",children:l(n)})})]}),_("button",{style:`${At.cancelButton.styles} ${At.buttonFlex.styles} line-height: 24px;`,onClick:o.bind(null,{type:"FAILED"}),children:l(i)})]})})]})})},dS=e=>{let t=ds({title:"",content:_(pB,{currency:e.data.currency,balanceAmount:e.data.userCurrency.balance,unlockNeedsAmount:e.data.quantity,defaultEnableAutoDeduct:e.data.enableAutoDeduct,confirmButtonKey:e.buttons.confirm.text,cancelButtonKey:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress,onEnableDeductChanged:e.buttons.onEnableDeductChanged}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"316px",onClose:e.buttons.cancel.onPress.bind(null,{type:"CANCEL"})});return t.show(),t},pS=e=>{let t=ds({title:"",content:_(fB,{currency:e.data.currency,balanceAmount:e.data.userCurrency.balance,unlockNeedsAmount:e.data.quantity,defaultEnableAutoDeduct:e.data.enableAutoDeduct,paymentChoices:e.data.paymentChoices,confirmButtonKey:e.buttons.confirm.text,cancelButtonKey:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress,onEnableDeductChanged:e.buttons.onEnableDeductChanged,onSelect:e.onSelect}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"520px",onClose:e.buttons.cancel.onPress.bind(null,{type:"CANCEL"})});return t.show(),t},fS=e=>{let t=ds({title:"",content:_(_B,{currency:e.data.currency,rewardType:e.data.rewardType,rewardValue:e.data.rewardValue,confirmButtonKey:e.buttons.confirm.text,cancelButtonKey:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress}),backdropColor:"#1a1a1a",placement:"center",noHeader:!0,padding:"0px",preventCloseOnBackdropClick:!0});return t.show(),t},hS=new Map,xr=(e,t)=>{hS.set(e,t)};xr(/^\{slot-checkmark\}/,(e,t)=>{var n,i;let r=(i=(n=t==null?void 0:t.customStyle)==null?void 0:n.mark)!=null?i:{};return _("div",{style:r,children:_("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",style:{height:"24px",verticalAlign:"middle"},children:[_("g",{clipPath:"url(#clip0_2247_16523)",children:_("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM9.29 16.29L5.7 12.7C5.31 12.31 5.31 11.68 5.7 11.29C6.09 10.9 6.72 10.9 7.11 11.29L10 14.17L16.88 7.29C17.27 6.9 17.9 6.9 18.29 7.29C18.68 7.68 18.68 8.31 18.29 8.7L10.7 16.29C10.32 16.68 9.68 16.68 9.29 16.29Z",fill:"white"})}),_("defs",{children:_("clipPath",{id:"clip0_2247_16523",children:_("rect",{width:"24",height:"24",fill:"white"})})})]})})});xr(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:lS;return _("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});xr(/^\{slot-gem\}/,(e,t)=>{var i,o,a;let r=(i=t==null?void 0:t.gemImage)!=null?i:rp,n=(a=(o=t==null?void 0:t.customStyle)==null?void 0:o.gem)!=null?a:{width:"28px",height:"28px"};return _("img",{src:r,alt:"\u{1FA99}",style:F(T({},n),{verticalAlign:"middle"})})});bB=/^\{slot-i18n-(.+?)\}/,wB=({i18nKey:e,i18nParams:t,fallbackText:r})=>{let{t:n}=Nn(),i=n(e,t);return _("span",{style:{width:"auto",padding:"0 2px"},children:i||r})};xr(bB,(e,t)=>{var n;let r=e[1];return r?_(wB,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,fallbackText:`[${r}]`}):(console.warn("No i18n key extracted from slot pattern:",e[0]),_("span",{children:(n=t==null?void 0:t.text)!=null?n:""}))});IB=/^\{slot-i18ntran-(.+?)\}/,EB=({i18nKey:e,i18nParams:t,imgMap:r={},fallbackText:n})=>{let{t:i}=Nn(),o=i(e),a=Object.entries(r).reduce((s,[l,c])=>(s[l]=c(t[l]),s),{});return _(jd,{children:o||n,values:T(T({},t),a)})},kB={coin:e=>_(De,{children:[_("img",{src:lS,alt:"coin",style:{width:16,height:16,marginRight:2,textAlign:"center"}})," ",e," Jolicoin"]})};xr(IB,(e,t)=>{var n,i;let r=e[1];return r?_(EB,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,imgMap:(n=t==null?void 0:t.imgMap)!=null?n:kB,fallbackText:`[${r}]`}):_("span",{children:(i=t==null?void 0:t.text)!=null?i:""})});SB="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8yMjk0XzQwODkpIi8+CjxwYXRoIGQ9Ik0xNC4yOTUgMjUuOTIyN0MxNC4yOTUgMjUuOTIyNyAxNy45MTI1IDIxLjY0MzYgMjEuNzc1OSAxOC4wOTg0QzI0Ljc1NzQgMTUuMzYyMSAyOC4yMTUxIDEzLjE0NzQgMjguMjE1MSAxMy4xNDc0TDI3Ljk2OTUgMTEuNDEzOEMyNy45Njk1IDExLjQxMzggMjQuMDk4NyAxMi45NzYzIDIwLjc1NzUgMTUuMTk0N0MxNy4zNjUzIDE3LjQ0NTQgMTQuNTAzMyAyMC4zNTc3IDE0LjUwMzMgMjAuMzU3N0wxMS4xMzkgMTUuNjQyOEw5LjAzOTk2IDE3LjA1MjJMMTQuMjk1IDI1LjkyMjdMMTQuMjk1IDI1LjkyMjdaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzIyOTRfNDA4OSIgeDE9IjExLjczNDEiIHkxPSIzLjE3NTQxIiB4Mj0iMTgiIHkyPSIzNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjOTc1QkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzc4MTdGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=";xr(/^\{slot-success\}/,(e,t)=>_("img",{src:SB,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));AB="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4xNDIxIDIwQzE1LjY2NSAyMCAyMC4xNDIxIDE1LjUyMjggMjAuMTQyMSAxMEMyMC4xNDIxIDQuNDc3MTUgMTUuNjY1IDEuNzM2OThlLTA3IDEwLjE0MjEgMS43MzY5OGUtMDdDNC42MTkyOSAxLjczNjk4ZS0wNyAwLjE0MjEzNiA0LjQ3NzE1IDAuMTQyMTM1IDEwQzAuMTQyMTM2IDE1LjUyMjggNC42MTkyOSAyMCAxMC4xNDIxIDIwWk02LjUwNTk4IDUuMDQ5OTdDNi4xMTU0NiA0LjY1OTQ1IDUuNDgyMjkgNC42NTk0NSA1LjA5MTc3IDUuMDQ5OTdDNC43MDEyNCA1LjQ0MDUgNC43MDEyNCA2LjA3MzY2IDUuMDkxNzcgNi40NjQxOUw4LjYyNzMgOS45OTk3Mkw1LjA5MTc3IDEzLjUzNTNDNC43MDEyNCAxMy45MjU4IDQuNzAxMjQgMTQuNTU4OSA1LjA5MTc3IDE0Ljk0OTVDNS40ODIyOSAxNS4zNCA2LjExNTQ2IDE1LjM0IDYuNTA1OTggMTQuOTQ5NUwxMC4wNDE1IDExLjQxMzlMMTMuNTc3IDE0Ljk0OTVDMTMuOTY3NiAxNS4zNCAxNC42MDA3IDE1LjM0IDE0Ljk5MTMgMTQuOTQ5NUMxNS4zODE4IDE0LjU1ODkgMTUuMzgxOCAxMy45MjU4IDE0Ljk5MTMgMTMuNTM1M0wxMS40NTU3IDkuOTk5NzJMMTQuOTkxMyA2LjQ2NDE5QzE1LjM4MTggNi4wNzM2NiAxNS4zODE4IDUuNDQwNSAxNC45OTEzIDUuMDQ5OTdDMTQuNjAwNyA0LjY1OTQ1IDEzLjk2NzYgNC42NTk0NSAxMy41NzcgNS4wNDk5N0wxMC4wNDE1IDguNTg1NTFMNi41MDU5OCA1LjA0OTk3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";xr(/^\{slot-error\}/,(e,t)=>_("img",{src:AB,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));xB="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADEAAAAwCAYAAAC4wJK5AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMYSURBVHgB7ZfPi1JRFMfvjNO22VbQZlrVbpr+AIPqDxgYiJjVLGYimPUsZpHrFkIuQmoTriLElYggKhGRIgniwoUkSiphimaZv5+dc7jXOZg2My9tnnC/8PA933n3ns+955x7rxBaWlpaWlpaWlogG1wreLO1tXVJ/rcmlkjktM/nu28Yxg+4hsVi8Y18ZxNLIAJIJBIHI1Cv1+sPQQAyisfjDmFxYehQuJTLZQ8CdLvd3khKzkZGWFhjgEql8g6dhsHvcwD8hZl4JSwqBKA4HwwGXzBsAGCgAPAerlGz2UxLe8slNwKsHh0drYPzrX6/b6DfCgCgKJyq1WpI2lsOgEbf4XBsoKMAMDBwGk5mgADy+fwLaW85AKpAsVjsgapAIyaV0Nls9gm3t5LIoWQy+VgC9DgAzgj++v3+e9zejFaFXC1nPJsVhQSUytczAGhGPB7PTWlvemFDh4XL5dqEhPqUy+U+7uzsXOHvTGhcQuv1+geZtLyEGvCMCT3Y399fF6ximdXK4eHhDdmRgasl3gcCgU1hDmTsUKfTyWNz6DNLYOzDgHclu92+Jts3O1gngoTySt9VotGohcPh2+cEoTCEQbkMn/+aUkKp3Xa7rVbiNTGfsBUCVsZnstoZkyBut/uW7Og0EBp9p9O5weLdmFwDoIT6GMDctAo5YAOnv0O/Q96xSry9vb1rp4BQRQkGg3f5d0oqoUul0nNuP29RbELfP2eByGSfBkIOwWwe8BmcnNFIJPKI2y9KCqR1DhByqFAovOQjPvldNBq1sz4WLko0SPKZINvb21clCAHUarX3U0LIUM/Hx8fXZdv/9XBDIJCIM0F2d3cRRLRarc9Y1Ya8tIE9lmrc4OFGT5ytKCwM5G+hBVWy/VWewMYAuB4gD5iUZDu2iwIQEyB/JDsfdXWjDjWNRiPBvp/PGvCPOgsIjjwlNOyR3rLvLAGgNDO0eEXKZDIOaW+5bbTS1GRX54JUKvVQ2lkWQIlAAOKbzAGaCa/Xe4e9XwqRo6FQ6Gk6nXbD4jeXbfRFiDs8r8OTlpaWlpaWltJvJhoeBvCfSkcAAAAASUVORK5CYII=";xr(/^\{slot-correct\}/,(e,t)=>{var i,o;let r=xB,n=(o=(i=t.customStyle)==null?void 0:i.correct)!=null?o:{width:"24px",height:"24px"};return _("img",{src:r,alt:"\u{1FA99}",style:F(T({},n),{verticalAlign:"middle"})})});He="-ms-",rs="-moz-",V="-webkit-",mS="comm",ip="rule",op="decl",CB="@import",vS="@keyframes",TB="@layer",OB=Math.abs,fs=String.fromCharCode,PB=Vd.default;hs=1,Pn=1,yS=0,rt=0,Ee=0,Dn="";$B=function(e,t,r){for(var n=0,i=0;n=i,i=Bt(),n===38&&i===12&&(t[r]=1),!co(i);)pt();return fo(e,rt)},WB=function(e,t){var r=-1,n=44;do switch(co(n)){case 0:n===38&&Bt()===12&&(t[r]=1),e[r]+=$B(rt-1,t,r);break;case 2:e[r]+=Ya(n);break;case 4:if(n===44){e[++r]=Bt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=fs(n)}while(n=pt());return e},zB=function(e,t){return bS(WB(_S(e),t))},wk=new Hd.default,KB=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!wk.get(r))&&!n){wk.set(e,!0);for(var i=[],o=zB(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},YB=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};QB=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case op:e.return=wS(e.value,e.length);break;case vS:return Cn([Xi(e,{value:$(e.value,"@","@"+V)})],n);case ip:if(e.length)return DB(e.props,function(i){switch(NB(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Cn([Xi(e,{props:[$(i,/:(read-\w+)/,":"+rs+"$1")]})],n);case"::placeholder":return Cn([Xi(e,{props:[$(i,/:(plac\w+)/,":"+V+"input-$1")]}),Xi(e,{props:[$(i,/:(plac\w+)/,":"+rs+"$1")]}),Xi(e,{props:[$(i,/:(plac\w+)/,He+"input-$1")]})],n)}return""})}},XB=[QB],ZB=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,Te.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,rr.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||XB,i={},o,a=[];o=e.container||document.head,(0,Te.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),y=1;y<g.length;y++)i[g[y]]=!0;a.push(m)});var s,l=[KB,YB];{var c,d=[BB,VB(function(m){c.insert(m)})],u=HB((0,ns.default)(l).call(l,n,d)),p=function(m){return Cn(JB(m),u)};s=function(m,g,y,v){c=y,p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new qk({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return f.sheet.hydrate(a),f};e5=function(e){var t=ZB(e);t.sheet.speedy=function(a){this.isSpeedy=a},t.compat=!0;var r=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=Ar(s,t.registered,void 0);return ls(t,c,!1),t.key+"-"+c.name},n=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=Ar(s,t.registered),d="animation-"+c.name;return Ik(t,{name:c.name,styles:"@keyframes "+d+"{"+c.styles+"}"}),d},i=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=Ar(s,t.registered);Ik(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return Td(t.registered,r,t5(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){(0,Te.default)(a).call(a,function(s){t.inserted[s]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:(0,Od.default)(ao).call(ao,null,t.registered),merge:(0,Od.default)(Td).call(Td,null,t.registered,r)}},t5=function e(t){for(var r="",n=0;n<t.length;n++){var i=t[n];if(i!=null){var o=void 0;switch(typeof i){case"boolean":break;case"object":{if((0,to.default)(i))o=e(i);else{o="";for(var a in i)i[a]&&a&&(o&&(o+=" "),o+=a)}break}default:o=i}o&&(r&&(r+=" "),r+=o)}}return r},r5=e5({key:"css"}),n5=r5.css,i5=(e,t)=>{var a;let r=T({color:"#FFF",display:"inline-block",width:"auto",minWidth:"fit-content",whiteSpace:"nowrap"},(a=t==null?void 0:t.customStyle)==null?void 0:a.span);if(!e.includes("{slot-"))return _("span",{style:r,children:e});let n=[],i=0;for(;i<e.length;){let s=null,l=1/0,c=null;for(let[d,u]of hS.entries()){let p=d.source.startsWith("^")?d.source.slice(1):d.source,f=new RegExp(p,"g");f.lastIndex=i;let m=f.exec(e);m&&m.index<l&&(s=m,l=m.index,c=u)}if(s&&c){if(l>i){let d=e.substring(i,l);n.push(_("span",{style:r,children:d}))}n.push(c(s,t)),i=l+s[0].length}else{let d=e.substring(i);n.push(_("span",{style:r,children:d}));break}}let o=n5`
550
+ `}),wB={JOLI_COIN:"https://fe-oss.jolibox.com/static/rewards/jolicoin-light.png?timestamp="+Date.now(),"ADS-JOLI_COIN":"https://fe-oss.jolibox.com/static/rewards/ads-jolicoin-light.png?timestamp="+Date.now(),JOLI_GEM:"https://fe-oss.jolibox.com/static/rewards/jolicoin-light.png?timestamp="+Date.now(),"ADS-JOLI_GEM":"https://fe-oss.jolibox.com/static/rewards/ads-jolicoin-light.png?timestamp="+Date.now()},IB=({currency:e,rewardType:t,rewardValue:r,confirmButtonKey:n,cancelButtonKey:i,onClose:o,onConfirm:a})=>{let s=t==="ADS-JOLI_COIN",{t:l}=Nn(),c=wB[t];return _("div",{style:{paddingTop:"80px"},children:_("section",{style:`${St.modal.styles} width:calc(100% - 40px); position: relative; border-radius: 16px; padding: 0;`,children:[_(gB,{src:c,alt:"\u{1FA99}",width:213,height:125,top:"-80px"}),_("div",{style:St.header.styles,children:_("button",{style:`${St.closeButton.styles} padding-top: 10px; padding-right: 10px;`,onClick:o.bind(null,{type:"CANCEL"}),children:_(ip,{})})}),_("div",{style:St.introduct.styles,children:[s?_("span",{style:St.introductSubTitle.styles,children:l("loginGuide.instead")}):null,_("span",{style:St.introductTitle.styles,children:_(Jd,{children:l("loginGuide.introduct"),values:{coin:_("img",{src:c,alt:"\u{1FA99}",style:{height:"20px",verticalAlign:"text-top",marginRight:"2px"}})}})})]}),_("div",{style:{width:"calc(100% - 40px)",paddingBottom:"16px"},children:_("section",{style:`${St.buttonContainer.styles} flex-direction: column; margin-top: 48px; padding: 0 20px;`,children:[_("div",{style:{position:"relative",display:"inline-block",width:"100%",height:"100%"},children:[_("div",{style:{position:"absolute",top:"-32px",right:"-5px",width:"auto",zIndex:1},children:_(bB,{children:_(Jd,{style:{fontSize:"12px",color:"#FFFFFF",fontWeight:600,lineHeight:"16px",textAlign:"center"},children:l("loginGuide.tips"),values:{coin:_(De,{children:[_("img",{src:c,alt:"\u{1FA99}",style:{height:"16px",verticalAlign:"text-top",marginRight:"2px"}}),r]})}})})}),_("button",{style:`${St.confirmButton.styles} ${St.buttonFlex.styles} padding: 0; line-height: 24px; display: flex; align-items: center; justify-content: center; overflow: hidden;`,onClick:a,children:_("span",{style:"display: flex; align-items: center; justify-content: center; width: 100%; word-break: break-word; height: 48px;",children:l(n)})})]}),_("button",{style:`${St.cancelButton.styles} ${St.buttonFlex.styles} line-height: 24px;`,onClick:o.bind(null,{type:"FAILED"}),children:l(i)})]})})]})})},pA=e=>{let t=ds({title:"",content:_(mB,{currency:e.data.currency,balanceAmount:e.data.userCurrency.balance,unlockNeedsAmount:e.data.quantity,defaultEnableAutoDeduct:e.data.enableAutoDeduct,confirmButtonKey:e.buttons.confirm.text,cancelButtonKey:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress,onEnableDeductChanged:e.buttons.onEnableDeductChanged}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"316px",onClose:e.buttons.cancel.onPress.bind(null,{type:"CANCEL"})});return t.show(),t},fA=e=>{let t=ds({title:"",content:_(vB,{currency:e.data.currency,balanceAmount:e.data.userCurrency.balance,unlockNeedsAmount:e.data.quantity,defaultEnableAutoDeduct:e.data.enableAutoDeduct,paymentChoices:e.data.paymentChoices,confirmButtonKey:e.buttons.confirm.text,cancelButtonKey:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress,onEnableDeductChanged:e.buttons.onEnableDeductChanged,onSelect:e.onSelect}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"520px",onClose:e.buttons.cancel.onPress.bind(null,{type:"CANCEL"})});return t.show(),t},hA=e=>{let t=ds({title:"",content:_(IB,{currency:e.data.currency,rewardType:e.data.rewardType,rewardValue:e.data.rewardValue,confirmButtonKey:e.buttons.confirm.text,cancelButtonKey:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress}),backdropColor:"#1a1a1a",placement:"center",noHeader:!0,padding:"0px",preventCloseOnBackdropClick:!0});return t.show(),t},mA=new Map,xr=(e,t)=>{mA.set(e,t)};xr(/^\{slot-checkmark\}/,(e,t)=>{var n,i;let r=(i=(n=t==null?void 0:t.customStyle)==null?void 0:n.mark)!=null?i:{};return _("div",{style:r,children:_("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",style:{height:"24px",verticalAlign:"middle"},children:[_("g",{clipPath:"url(#clip0_2247_16523)",children:_("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM9.29 16.29L5.7 12.7C5.31 12.31 5.31 11.68 5.7 11.29C6.09 10.9 6.72 10.9 7.11 11.29L10 14.17L16.88 7.29C17.27 6.9 17.9 6.9 18.29 7.29C18.68 7.68 18.68 8.31 18.29 8.7L10.7 16.29C10.32 16.68 9.68 16.68 9.29 16.29Z",fill:"white"})}),_("defs",{children:_("clipPath",{id:"clip0_2247_16523",children:_("rect",{width:"24",height:"24",fill:"white"})})})]})})});xr(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:cA;return _("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});xr(/^\{slot-gem\}/,(e,t)=>{var i,o,a;let r=(i=t==null?void 0:t.gemImage)!=null?i:np,n=(a=(o=t==null?void 0:t.customStyle)==null?void 0:o.gem)!=null?a:{width:"28px",height:"28px"};return _("img",{src:r,alt:"\u{1FA99}",style:F(T({},n),{verticalAlign:"middle"})})});EB=/^\{slot-i18n-(.+?)\}/,kB=({i18nKey:e,i18nParams:t,fallbackText:r})=>{let{t:n}=Nn(),i=n(e,t);return _("span",{style:{width:"auto",padding:"0 2px"},children:i||r})};xr(EB,(e,t)=>{var n;let r=e[1];return r?_(kB,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,fallbackText:`[${r}]`}):(console.warn("No i18n key extracted from slot pattern:",e[0]),_("span",{children:(n=t==null?void 0:t.text)!=null?n:""}))});AB=/^\{slot-i18ntran-(.+?)\}/,SB=({i18nKey:e,i18nParams:t,imgMap:r={},fallbackText:n})=>{let{t:i}=Nn(),o=i(e),a=Object.entries(r).reduce((s,[l,c])=>(s[l]=c(t[l]),s),{});return _(Jd,{children:o||n,values:T(T({},t),a)})},xB={coin:e=>_(De,{children:[_("img",{src:cA,alt:"coin",style:{width:16,height:16,marginRight:2,textAlign:"center"}})," ",e," Jolicoin"]})};xr(AB,(e,t)=>{var n,i;let r=e[1];return r?_(SB,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,imgMap:(n=t==null?void 0:t.imgMap)!=null?n:xB,fallbackText:`[${r}]`}):_("span",{children:(i=t==null?void 0:t.text)!=null?i:""})});CB="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8yMjk0XzQwODkpIi8+CjxwYXRoIGQ9Ik0xNC4yOTUgMjUuOTIyN0MxNC4yOTUgMjUuOTIyNyAxNy45MTI1IDIxLjY0MzYgMjEuNzc1OSAxOC4wOTg0QzI0Ljc1NzQgMTUuMzYyMSAyOC4yMTUxIDEzLjE0NzQgMjguMjE1MSAxMy4xNDc0TDI3Ljk2OTUgMTEuNDEzOEMyNy45Njk1IDExLjQxMzggMjQuMDk4NyAxMi45NzYzIDIwLjc1NzUgMTUuMTk0N0MxNy4zNjUzIDE3LjQ0NTQgMTQuNTAzMyAyMC4zNTc3IDE0LjUwMzMgMjAuMzU3N0wxMS4xMzkgMTUuNjQyOEw5LjAzOTk2IDE3LjA1MjJMMTQuMjk1IDI1LjkyMjdMMTQuMjk1IDI1LjkyMjdaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzIyOTRfNDA4OSIgeDE9IjExLjczNDEiIHkxPSIzLjE3NTQxIiB4Mj0iMTgiIHkyPSIzNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjOTc1QkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzc4MTdGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=";xr(/^\{slot-success\}/,(e,t)=>_("img",{src:CB,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));TB="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4xNDIxIDIwQzE1LjY2NSAyMCAyMC4xNDIxIDE1LjUyMjggMjAuMTQyMSAxMEMyMC4xNDIxIDQuNDc3MTUgMTUuNjY1IDEuNzM2OThlLTA3IDEwLjE0MjEgMS43MzY5OGUtMDdDNC42MTkyOSAxLjczNjk4ZS0wNyAwLjE0MjEzNiA0LjQ3NzE1IDAuMTQyMTM1IDEwQzAuMTQyMTM2IDE1LjUyMjggNC42MTkyOSAyMCAxMC4xNDIxIDIwWk02LjUwNTk4IDUuMDQ5OTdDNi4xMTU0NiA0LjY1OTQ1IDUuNDgyMjkgNC42NTk0NSA1LjA5MTc3IDUuMDQ5OTdDNC43MDEyNCA1LjQ0MDUgNC43MDEyNCA2LjA3MzY2IDUuMDkxNzcgNi40NjQxOUw4LjYyNzMgOS45OTk3Mkw1LjA5MTc3IDEzLjUzNTNDNC43MDEyNCAxMy45MjU4IDQuNzAxMjQgMTQuNTU4OSA1LjA5MTc3IDE0Ljk0OTVDNS40ODIyOSAxNS4zNCA2LjExNTQ2IDE1LjM0IDYuNTA1OTggMTQuOTQ5NUwxMC4wNDE1IDExLjQxMzlMMTMuNTc3IDE0Ljk0OTVDMTMuOTY3NiAxNS4zNCAxNC42MDA3IDE1LjM0IDE0Ljk5MTMgMTQuOTQ5NUMxNS4zODE4IDE0LjU1ODkgMTUuMzgxOCAxMy45MjU4IDE0Ljk5MTMgMTMuNTM1M0wxMS40NTU3IDkuOTk5NzJMMTQuOTkxMyA2LjQ2NDE5QzE1LjM4MTggNi4wNzM2NiAxNS4zODE4IDUuNDQwNSAxNC45OTEzIDUuMDQ5OTdDMTQuNjAwNyA0LjY1OTQ1IDEzLjk2NzYgNC42NTk0NSAxMy41NzcgNS4wNDk5N0wxMC4wNDE1IDguNTg1NTFMNi41MDU5OCA1LjA0OTk3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";xr(/^\{slot-error\}/,(e,t)=>_("img",{src:TB,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));OB="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADEAAAAwCAYAAAC4wJK5AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMYSURBVHgB7ZfPi1JRFMfvjNO22VbQZlrVbpr+AIPqDxgYiJjVLGYimPUsZpHrFkIuQmoTriLElYggKhGRIgniwoUkSiphimaZv5+dc7jXOZg2My9tnnC/8PA933n3ns+955x7rxBaWlpaWlpaWlogG1wreLO1tXVJ/rcmlkjktM/nu28Yxg+4hsVi8Y18ZxNLIAJIJBIHI1Cv1+sPQQAyisfjDmFxYehQuJTLZQ8CdLvd3khKzkZGWFhjgEql8g6dhsHvcwD8hZl4JSwqBKA4HwwGXzBsAGCgAPAerlGz2UxLe8slNwKsHh0drYPzrX6/b6DfCgCgKJyq1WpI2lsOgEbf4XBsoKMAMDBwGk5mgADy+fwLaW85AKpAsVjsgapAIyaV0Nls9gm3t5LIoWQy+VgC9DgAzgj++v3+e9zejFaFXC1nPJsVhQSUytczAGhGPB7PTWlvemFDh4XL5dqEhPqUy+U+7uzsXOHvTGhcQuv1+geZtLyEGvCMCT3Y399fF6ximdXK4eHhDdmRgasl3gcCgU1hDmTsUKfTyWNz6DNLYOzDgHclu92+Jts3O1gngoTySt9VotGohcPh2+cEoTCEQbkMn/+aUkKp3Xa7rVbiNTGfsBUCVsZnstoZkyBut/uW7Og0EBp9p9O5weLdmFwDoIT6GMDctAo5YAOnv0O/Q96xSry9vb1rp4BQRQkGg3f5d0oqoUul0nNuP29RbELfP2eByGSfBkIOwWwe8BmcnNFIJPKI2y9KCqR1DhByqFAovOQjPvldNBq1sz4WLko0SPKZINvb21clCAHUarX3U0LIUM/Hx8fXZdv/9XBDIJCIM0F2d3cRRLRarc9Y1Ya8tIE9lmrc4OFGT5ytKCwM5G+hBVWy/VWewMYAuB4gD5iUZDu2iwIQEyB/JDsfdXWjDjWNRiPBvp/PGvCPOgsIjjwlNOyR3rLvLAGgNDO0eEXKZDIOaW+5bbTS1GRX54JUKvVQ2lkWQIlAAOKbzAGaCa/Xe4e9XwqRo6FQ6Gk6nXbD4jeXbfRFiDs8r8OTlpaWlpaWltJvJhoeBvCfSkcAAAAASUVORK5CYII=";xr(/^\{slot-correct\}/,(e,t)=>{var i,o;let r=OB,n=(o=(i=t.customStyle)==null?void 0:i.correct)!=null?o:{width:"24px",height:"24px"};return _("img",{src:r,alt:"\u{1FA99}",style:F(T({},n),{verticalAlign:"middle"})})});He="-ms-",rs="-moz-",V="-webkit-",vA="comm",op="rule",ap="decl",PB="@import",gA="@keyframes",RB="@layer",NB=Math.abs,fs=String.fromCharCode,DB=$d.default;hs=1,Pn=1,_A=0,rt=0,Ee=0,Dn="";KB=function(e,t,r){for(var n=0,i=0;n=i,i=Bt(),n===38&&i===12&&(t[r]=1),!co(i);)pt();return fo(e,rt)},YB=function(e,t){var r=-1,n=44;do switch(co(n)){case 0:n===38&&Bt()===12&&(t[r]=1),e[r]+=KB(rt-1,t,r);break;case 2:e[r]+=Ya(n);break;case 4:if(n===44){e[++r]=Bt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=fs(n)}while(n=pt());return e},QB=function(e,t){return wA(YB(bA(e),t))},Ik=new Vd.default,XB=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Ik.get(r))&&!n){Ik.set(e,!0);for(var i=[],o=QB(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},ZB=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};e5=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case ap:e.return=IA(e.value,e.length);break;case gA:return Cn([Xi(e,{value:$(e.value,"@","@"+V)})],n);case op:if(e.length)return qB(e.props,function(i){switch(MB(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Cn([Xi(e,{props:[$(i,/:(read-\w+)/,":"+rs+"$1")]})],n);case"::placeholder":return Cn([Xi(e,{props:[$(i,/:(plac\w+)/,":"+V+"input-$1")]}),Xi(e,{props:[$(i,/:(plac\w+)/,":"+rs+"$1")]}),Xi(e,{props:[$(i,/:(plac\w+)/,He+"input-$1")]})],n)}return""})}},t5=[e5],r5=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,Te.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,rr.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||t5,i={},o,a=[];o=e.container||document.head,(0,Te.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),y=1;y<g.length;y++)i[g[y]]=!0;a.push(m)});var s,l=[XB,ZB];{var c,d=[$B,zB(function(m){c.insert(m)})],u=WB((0,ns.default)(l).call(l,n,d)),p=function(m){return Cn(HB(m),u)};s=function(m,g,y,v){c=y,p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new Uk({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return f.sheet.hydrate(a),f};n5=function(e){var t=r5(e);t.sheet.speedy=function(a){this.isSpeedy=a},t.compat=!0;var r=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=Sr(s,t.registered,void 0);return ls(t,c,!1),t.key+"-"+c.name},n=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=Sr(s,t.registered),d="animation-"+c.name;return Ek(t,{name:c.name,styles:"@keyframes "+d+"{"+c.styles+"}"}),d},i=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=Sr(s,t.registered);Ek(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return Od(t.registered,r,i5(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){(0,Te.default)(a).call(a,function(s){t.inserted[s]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:(0,Pd.default)(ao).call(ao,null,t.registered),merge:(0,Pd.default)(Od).call(Od,null,t.registered,r)}},i5=function e(t){for(var r="",n=0;n<t.length;n++){var i=t[n];if(i!=null){var o=void 0;switch(typeof i){case"boolean":break;case"object":{if((0,to.default)(i))o=e(i);else{o="";for(var a in i)i[a]&&a&&(o&&(o+=" "),o+=a)}break}default:o=i}o&&(r&&(r+=" "),r+=o)}}return r},o5=n5({key:"css"}),a5=o5.css,s5=(e,t)=>{var a;let r=T({color:"#FFF",display:"inline-block",width:"auto",minWidth:"fit-content",whiteSpace:"nowrap"},(a=t==null?void 0:t.customStyle)==null?void 0:a.span);if(!e.includes("{slot-"))return _("span",{style:r,children:e});let n=[],i=0;for(;i<e.length;){let s=null,l=1/0,c=null;for(let[d,u]of mA.entries()){let p=d.source.startsWith("^")?d.source.slice(1):d.source,f=new RegExp(p,"g");f.lastIndex=i;let m=f.exec(e);m&&m.index<l&&(s=m,l=m.index,c=u)}if(s&&c){if(l>i){let d=e.substring(i,l);n.push(_("span",{style:r,children:d}))}n.push(c(s,t)),i=l+s[0].length}else{let d=e.substring(i);n.push(_("span",{style:r,children:d}));break}}let o=a5`
551
551
  display: 'flex',
552
552
  alignItems: 'flex-start',
553
553
  gap: '4px',
@@ -558,7 +558,7 @@ If multiple caches share the same key they might "fight" for each other's style
558
558
  fontWeight: 600,
559
559
  lineHeight: '18px',
560
560
  width: 'max-content'
561
- `;return n.length===1?n[0]:_("div",{className:o,children:n})},o5=({message:e,type:t="info",duration:r=3e3,onClose:n,position:i="top",customStyle:o})=>{let[a,s]=Jt(!0);Yr(()=>{let d=setTimeout(()=>{s(!1),setTimeout(()=>{n==null||n()},300)},r);return()=>clearTimeout(d)},[r,n]);let l=tr(()=>{let d=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10);return Math.max(20,d)},[]),c=D`
561
+ `;return n.length===1?n[0]:_("div",{className:o,children:n})},l5=({message:e,type:t="info",duration:r=3e3,onClose:n,position:i="top",customStyle:o})=>{let[a,s]=Jt(!0);Yr(()=>{let d=setTimeout(()=>{s(!1),setTimeout(()=>{n==null||n()},300)},r);return()=>clearTimeout(d)},[r,n]);let l=tr(()=>{let d=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10);return Math.max(20,d)},[]),c=D`
562
562
  position: fixed;
563
563
  left: 50%;
564
564
  padding: 10px 16px;
@@ -608,7 +608,7 @@ If multiple caches share the same key they might "fight" for each other's style
608
608
  ${Object.entries(o).map(([d,u])=>`${d}: ${u};`).join(`
609
609
  `)}
610
610
  `}
611
- `;return _("div",{className:`toast toast-${t}`,style:c.styles,children:e})},a5=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10),Ek=Math.max(20,a5),kk=12,IS=[],ES=[];Cr=(e,t)=>w(void 0,null,function*(){var p;let{iframe:r,emotionCache:n}=yield vk.acquire(),i=r.contentDocument;if(!i)return;let o=i.createElement("div");i.body.appendChild(o);let a=(t==null?void 0:t.position)||"top",s=a==="top"?IS:ES;s.push(o);let l=i5(e,t),c=rS(),d=Xk[c].translations;function u(){i==null||i.body.removeChild(o);let f=s.indexOf(o);f!==-1&&s.splice(f,1),Sk(a),vk.release()}setTimeout(()=>Sk(a),0),mr(_(Yk,{value:n,children:_(eS,{definition:d,children:_(o5,{message:l,type:t==null?void 0:t.type,position:a,duration:t==null?void 0:t.duration,onClose:u,customStyle:(p=t==null?void 0:t.customStyle)==null?void 0:p.base})})}),o)}),Ak={container:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"transparent",zIndex:"10000"},spinner:{width:"36px",height:"36px",border:"3px solid transparent",borderTopColor:"#A86FF7",borderLeftColor:"#A86FF7",borderRadius:"50%",animation:"spin 1s linear infinite"}},s5=`
611
+ `;return _("div",{className:`toast toast-${t}`,style:c.styles,children:e})},c5=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10),kk=Math.max(20,c5),Ak=12,EA=[],kA=[];Cr=(e,t)=>w(void 0,null,function*(){var p;let{iframe:r,emotionCache:n}=yield gk.acquire(),i=r.contentDocument;if(!i)return;let o=i.createElement("div");i.body.appendChild(o);let a=(t==null?void 0:t.position)||"top",s=a==="top"?EA:kA;s.push(o);let l=s5(e,t),c=nA(),d=Zk[c].translations;function u(){i==null||i.body.removeChild(o);let f=s.indexOf(o);f!==-1&&s.splice(f,1),Sk(a),gk.release()}setTimeout(()=>Sk(a),0),mr(_(Qk,{value:n,children:_(tA,{definition:d,children:_(l5,{message:l,type:t==null?void 0:t.type,position:a,duration:t==null?void 0:t.duration,onClose:u,customStyle:(p=t==null?void 0:t.customStyle)==null?void 0:p.base})})}),o)}),xk={container:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"transparent",zIndex:"10000"},spinner:{width:"36px",height:"36px",border:"3px solid transparent",borderTopColor:"#A86FF7",borderLeftColor:"#A86FF7",borderRadius:"50%",animation:"spin 1s linear infinite"}},u5=`
612
612
  @keyframes spin {
613
613
  0% {
614
614
  transform: rotate(0deg);
@@ -617,9 +617,9 @@ If multiple caches share the same key they might "fight" for each other's style
617
617
  transform: rotate(360deg);
618
618
  }
619
619
  }
620
- `,l5=()=>_("div",{style:Ak.container,children:[_("style",{children:s5}),_("div",{style:Ak.spinner})]});c7=ho()});function kS(){return w(this,null,function*(){if(sp)return sp;let t=`${E.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com"}/api/user-retention/exit-recommendations?objectId=${E.mpId}&from=GAME_DETAIL`,{response:{data:r}}=yield te(t);return sp=r,r})}function SS(){return w(this,null,function*(){let e=new Ot;if(E.mpType!=="game")return e.resolve(!1),e.promise;if(lp)return e.resolve(!0),e.promise;let t=yield kS();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:i}=t.data;lp=!0;let o={domain:"GAME",buttons:t.data.buttons.map(s=>`${s.type}-${s.text}`).join(","),list:r.games.map(s=>s.gameId).join(",")};U("RecommendedGuide",T({eventType:G.View},o));let a=sS({games:r.games,title:n,buttons:i,onClose:s=>{var l;switch(lp=!1,s.type){case"quit":U("RecommendedGuide",{eventType:G.Click,type:"QUIT",domain:"GAME"}),e.resolve(!1);break;case"dismiss":U("RecommendedGuide",T({eventType:G.Hide},o)),e.resolve(!0),a.destroy();break;case"navigate":if((l=s.data)!=null&&l.game){let c=s.data.game;c5(c),U("GameItem",{eventType:G.Click,gameId:c.gameId,layerName:"RecommendedGuide",domain:"GAME"}),setTimeout(()=>{e.resolve(!1)},0)}else e.resolve(!0);a.destroy();break;default:U("RecommendedGuide",T({eventType:G.Hide},o)),e.resolve(!0);break}}});return e.promise})}var sp,c5,lp,AS=A(()=>{"use strict";B();_e();R();ir();gt();yt();sp=null;kS();c5=e=>{var a;let{data:t}=j("envSync"),r=new URL(t.schema),n=new URLSearchParams(r.search);n.set("gameId",e.gameId),n.set("joliSource",E.encodeJoliSourceQuery({__mpType:"game",__orientation:(a=e.orientation)!=null?a:"VERTICAL"}));let o=`${`https://${e.gameId}.content.jolibox.com/`}index.html?${n.toString()}`;j("openSchemaSync",{schema:o})},lp=!1});function d5(e){let t=T(T({},u5),e),{url:r,height:n,showCloseButton:i,enableDragClose:o,useAnimation:a,onClose:s,onLoad:l}=t,c=0,d=0,u=!1,p=()=>a?{overlayTransition:"opacity 0.3s ease",containerTransition:"transform 0.3s ease",iframeTransition:"opacity 0.3s ease"}:{overlayTransition:"none",containerTransition:"none",iframeTransition:"none"},f=()=>a?300:0;function m(){let{overlayTransition:b,containerTransition:k,iframeTransition:x}=p();ae=document.createElement("div"),ae.id="jolibox-modal-overlay",ae.style.cssText=`position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.5); z-index:1000; display:flex; justify-content:center; align-items:flex-end; transition:${b}; opacity:0; visibility:hidden;`,Q=document.createElement("div"),Q.id="jolibox-modal-container",Q.style.cssText=`width:100%; height:${n}; background:white; border-radius:12px 12px 0 0; overflow:hidden; box-shadow:0 -2px 10px rgba(0,0,0,0.2); transform:translateY(100%); transition:${k};`;let P=document.createElement("div");P.id="jolibox-modal-loading",P.style.cssText="position:absolute; top:50%; left:50%; transform:translate(-50%, -50%); width:40px; height:40px; border:4px solid #f3f3f3; border-top:4px solid #3498db; border-radius:50%; animation:spin 1s linear infinite;";let C=document.createElement("style");C.textContent="@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }",document.head.appendChild(C);let S=document.createElement("div");if(S.style.cssText="width:100%; height:100%; display:flex; flex-direction:column; padding-bottom:env(safe-area-inset-bottom, 0); position:relative;",wt=document.createElement("iframe"),wt.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${x};`,wt.src=r,wt.onload=()=>{P.parentNode&&P.parentNode.removeChild(P),wt.style.opacity="1",g(),l==null||l(),ne.emit("onModalIframeLoaded",{url:r})},S.appendChild(wt),S.appendChild(P),Q.appendChild(S),i){let O=document.createElement("div");O.style.cssText="position:absolute; top:10px; right:10px; width:30px; height:30px; background:rgba(0,0,0,0.1); border-radius:15px; display:flex; justify-content:center; align-items:center; cursor:pointer; z-index:10;",O.innerHTML="\u2715",O.onclick=v,Q.appendChild(O)}ae.appendChild(Q),document.body.appendChild(ae),ae.addEventListener("click",function(O){O.target===ae&&v()}),o&&y()}function g(){!ae||!Q||u||(ae.style.visibility="visible",a?requestAnimationFrame(()=>{ae&&(ae.style.opacity="1"),Q&&(Q.style.transform="translateY(0)"),u=!0}):(ae&&(ae.style.opacity="1"),Q&&(Q.style.transform="translateY(0)"),u=!0),j("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:E.webviewId}))}function y(){if(!Q)return;let b=P=>{c=P.touches[0].clientY},k=P=>{if(!u)return;d=P.touches[0].clientY;let C=d-c;C>0&&(Q&&(Q.style.transition="none",Q.style.transform=`translateY(${C}px)`),P.preventDefault())},x=()=>{!u||!Q||(Q.style.transition=a?"transform 0.3s ease":"none",d-c>80?v():Q.style.transform="translateY(0)")};Q.addEventListener("touchstart",b),Q.addEventListener("touchmove",k),Q.addEventListener("touchend",x)}function v(){!ae||!Q||!u||(a?(Q.style.transform="translateY(100%)",ae.style.opacity="0"):ae.style.visibility="hidden",u=!1,j("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:E.webviewId}),setTimeout(()=>{ae&&(ae.remove(),ae=null,Q=null,wt=null,s==null||s(),ne.emit("onModalIframeClosed",{url:r}))},f()))}return m(),{close:v}}function xS(){return window.joliboxUI=F(T({},window.joliboxUI),{createIframeModal:d5}),()=>{window.joliboxUI=void 0,ae&&ae.parentNode&&ae.parentNode.removeChild(ae),Q&&Q.parentNode&&Q.parentNode.removeChild(Q),wt&&wt.parentNode&&wt.parentNode.removeChild(wt),ae=null,Q=null,wt=null}}var u5,ae,Q,wt,CS=A(()=>{"use strict";_e();B();R();u5={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},ae=null,Q=null,wt=null});var RS={};Sf(RS,{config:()=>I5});function f5(){Vo.on("isAdShowing",e=>{ys=e,on(ys)&&j("updateContainerConfigSync",{displayCapsuleButton:!ys,webviewId:E.webviewId})})}function h5(){ne.on("onInterceptSystemExit",({intercept:e})=>{TS=e})}function m5(){ne.on("onInterceptBackPress",({intercept:e})=>{p5=e}),et("onBeforeBackPress",({uuid:e,disableExitRecommendDialog:t})=>{var r,n;PS(t),ne.emit("onBackPress",{}),(n=(r=globalThis.joliboxJSCore)==null?void 0:r.doBackPress)==null||n.call(r,e)})}function v5(){ne.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),U("onDocumentReady",{start_timestamp:bs,timestamp:Date.now()})})}function g5(){et("onI18nChanged",({language:e})=>{ne.emit("onI18nChanged",{i18n:e})})}function y5(e){E.mpType==="game"&&It.start(e)}function _5(){et("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&E.onEnvConfigChanged({hostUserInfo:e}),ne.emit("LifecycleEvent.onReady",T({},E.hostUserInfo?E.hostUserInfo:{isLogin:!1})),U("joliboxServiceReady",{start_timestamp:bs,timestamp:Date.now()}),y5(t),tS(()=>E.language)}),et("onBeforeExit",({uuid:e,disableExitRecommendDialog:t})=>{var r;PS(t),(r=globalThis.joliboxJSCore)==null||r.doExit(e)})}function b5(){let e=()=>{U("onBeforeExit",{timestamp:Date.now()}),vs==null||vs(),gs==null||gs(),It.close(Date.now()-bs)},t=()=>ys||TS;mt.onDoExit(()=>w(this,null,function*(){return t()?!0:on(E.shouldInterupt)?(E.shouldInterupt||e(),E.shouldInterupt):_s!=null&&_s.canShowRecommended&&!OS&&(yield SS())?!0:(e(),!1)})),mt.onDoBackPress(()=>w(this,null,function*(){return!!t()}))}function w5(){return w(this,null,function*(){try{let e="/api/fe-configs/js-sdk/basic-meta",{response:{data:t}}=yield te(e);t&&(_s=t)}catch(e){console.error("fetchMetaConfig error:",e)}})}function I5(){bs=Date.now(),_5(),f5(),h5(),m5(),b5(),v5(),g5(),w5(),gs=xS(),vs=Hh()}var vs,gs,bs,ys,_s,TS,p5,OS,PS,NS=A(()=>{"use strict";_e();B();R();yt();Vh();mc();AS();gt();ir();CS();ys=!1,_s=null,TS=!1,p5=!1,OS=!1,PS=e=>{on(e)&&(OS=e)};mt.onReady(()=>{})});function DS(e){let t=tc.config[e];return t||(t={},tc.config[e]=t),(r,n)=>{if(t[r]){Rt.warn(`[can i use] ${r} already registered`);return}t[r]=T({},n)}}var LS=A(()=>{"use strict";R()});function cp(e){MS=e}function ws(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>ws(t)):Object.keys(e).reduce((t,r)=>(t[r]=ws(e[r]),t),{})}function or(e){return typeof e=="number"}function up(e){let t=dp(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function dp(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var MS,ke,Is,Es,ks,Ss,Ln,As,xs,Cs,Ts,Os,Ps,Rs,Ns,Ds,Ls,Ms,qs,pp=A(()=>{"use strict";MS=!1;ke=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(MS)if(typeof t=="string")this.errors.push(t);else{let r=`${this.path} should be ${t.expect}`;this._optional&&t.expect!=="undefined"?r+=" or undefined, ":r+=", ",r+=`but got ${up(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return ws(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:ws(this._default)}optional(){return this._optional=!0,this}};Is=class extends ke{validate(t){return this._optional&&t===void 0?!0:or(t)?or(this._min)&&t<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):or(this._max)&&t>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):or(this._greater)&&t<=this._greater?this.fail(`the value of ${this.path} should be greater than ${this._greater}`):this._isInt&&t!==Math.floor(t)?this.fail(`the value of ${this.path} should be integer but got ${t}`):!0:this.fail({expect:"number",actual:t})}min(t){return this._min=t,this}max(t){return this._max=t,this}isInt(t){return this._isInt=t,this}greater(t){return this._greater=t,this}},Es=class extends ke{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},ks=class extends ke{validate(t){if(this._optional&&t===void 0)return!0;if(typeof t!="string")return this.fail({expect:"string",actual:t});if(or(this._maxLength)&&t.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if(or(this._minLength)&&t.length<this._minLength)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minLength}`);if(typeof this._pattern=="string"){if(!new RegExp(this._pattern).test(t))return this.fail(`${this.path} should match pattern "${this._pattern}"`)}else if(this._pattern&&!this._pattern.test(t))return this.fail(`${this.path} should match pattern "${this._pattern.toString()}"`);return!0}minLength(t){return this._minLength=t,this}maxLength(t){return this._maxLength=t,this}pattern(t){return this._pattern=t,this}},Ss=class extends ke{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},Ln=class extends ke{validate(t){return!0}},As=class extends ke{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},xs=class extends ke{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},Cs=class extends ke{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},Ts=class extends ke{constructor(...t){super(),this._items=t}validate(t){if(this._optional&&t===void 0)return!0;if(!this._items.includes(t)){let r=this._items.map(n=>JSON.stringify(n)).join(", ");return this.fail(`expect ${this.path} to be one of ${r}, but got ${up(t)}`)}return!0}},Os=class extends ke{constructor(r){super();this._item=r}validate(r){if(this._optional&&r===void 0)return!0;if(!Array.isArray(r))return this.fail({expect:"array",actual:r});if(or(this._minItems)&&r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if(or(this._maxItems)&&r.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if(or(this._length)&&r.length!==this._length)return this.fail(`the length of ${this.path} should be equal to ${this._length}`);let n=this._item;if(!n)return!0;let i=!0;if(r.forEach((o,a)=>{if(n.path=`${this.path}[${a}]`,n.errors=this.errors,o===void 0&&n.hasDefault){r[a]=n.defaultValue;return}n.validate(o)||(n.hasFallback?r[a]=n.fallbackValue:i=!1)}),this._uniqueItems){let o=new Map;for(let a in r)o.has(r[a])?i=this.fail(`${this.path} should NOT have duplicate items (${this.path}[${o.get(r[a])}] and ${this.path}[${a}] are identical)`):o.set(r[a],a)}return i}minItems(r){return this._minItems=r,this}maxItems(r){return this._maxItems=r,this}uniqueItems(){return this._uniqueItems=!0,this}length(r){return this._length=r,this}},Ps=class extends ke{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(dp(r)!=="object")return this.fail({expect:"object",actual:r});let i=r,o=this._value;o.errors=this.errors;let a=!0;for(let s in i){let l=i[s];if(/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/.test(s)?o.path=`${this.path}.${s}`:o.path=`${this.path}["${s}"]`,!(l===void 0&&o._optional)){if(l===void 0&&o.hasDefault){i[s]=o.defaultValue;continue}o.validate(l)||(o.hasFallback?i[s]=o.fallbackValue:a=!1)}}return a}},Rs=class extends ke{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(dp(r)!=="object")return this.fail({expect:"object",actual:r});let n=r,i=!0;for(let o in this._object){let a=n[o],s=this._object[o];if(s.errors=this.errors,/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/.test(o)?s.path=`${this.path}.${o}`:s.path=`${this.path}["${o}"]`,!(s._optional&&a===void 0)){if(a===void 0&&s.hasDefault){n[o]=s.defaultValue;continue}s.validate(a)||(s.hasFallback?n[o]=s.fallbackValue:i=!1)}}return i}},Ns=class extends ke{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:up(this.value),actual:r}):!0}},Ds=class extends ke{constructor(...t){super(),this._items=t}validate(t){if(t===void 0&&this._optional)return!0;let r=[],n=!1,i=this._items.length;for(let o=0;o<i;o++){let a=this._items[o];if(a.errors=[],a.path=this.path,!a.validate(t))r.push(a.errors.join("; "));else if(!n){n=!0;break}}if(!n){let o=r.join(`
621
- or `);this.errors.push(o)}return n}},Ls=class extends ke{constructor(...t){super(),this._items=t;let r=0,n=t.length-1;for(;n>=0;n--){let i=t[n];if(i._optional||i.hasDefault)r+=1;else break}this._minItems=t.length-r}validate(t){if(t===void 0&&this._optional)return!0;if(!Array.isArray(t))return this.fail({expect:"array",actual:t});if(t.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);let r=!0;return this._items.forEach((n,i)=>{if(n.path=`${this.path}[${i}]`,n.errors=this.errors,t[i]===void 0&&n.hasDefault){t[i]=n.defaultValue;return}n.validate(t[i])||(n.hasFallback?t[i]=n._fallback:r=!1)}),r}},Ms=class extends ke{validate(t){return t===void 0&&this._optional||t instanceof ArrayBuffer?!0:this.fail({expect:"arraybuffer",actual:t})}},qs=class extends ke{constructor(t){super(),this._ctor=t}validate(t){return t===void 0&&this._optional||t instanceof this._ctor?!0:this.fail({expect:`typedarray of ${this._ctor.name}`,actual:t})}}});function fp(e,t,r="param"){if(e.errors=[],e.path=r,cp(!0),!e.validate(t)){let n=e.errors.join(`
622
- `);throw e.errors.length=0,cp(!1),new TypeError(n)}}var I,hp=A(()=>{"use strict";pp();pp();I={object(e){return new Rs(e)},array(e){return new Os(e)},tuple(...e){return new Ls(...e)},literal(e){return new Ns(e)},or(...e){return new Ds(...e)},symbol(){return new Ss},record(e){return new Ps(e)},function(){return new Cs},boolean(){return new Es},string(){return new ks},number(){return new Is},undefined(){return new As},null(){return new xs},unknown(){return new Ln},any(){return new Ln},as(){return new Ln},arraybuffer(){return new Ms},enum(...e){return new Ts(...e)},typedarray(e){return new qs(e)}}});var Us,qS,US=A(()=>{"use strict";R();vt();hp();sn();Us=1,qS=e=>{function t(n,i){return(...o)=>{var u,p,f,m;let a=Date.now(),s={method:n,trace_id:Us};Us+=1;let l="SUCCESS",c=`${n}:ok`,d=0;try{if(i.paramsSchema)try{fp(i.paramsSchema,o,"params")}catch(b){throw dc(`${n}:fail ${b.message}`)}let g=i.implement(...o),y=g,v=`${n}:ok`;if(g&&"code"in g){let{code:b,data:k,message:x}=g;l=b,y=k,v=x}return{code:l,message:v,data:y}}catch(g){let y=g;d=(p=(u=y.code)!=null?u:y.errNo)!=null?p:2e3,l="FAILURE";let v=(m=(f=y.message)!=null?f:y.errMsg)!=null?m:`${g}`;return c=`${n}:${l} ${v.replace(/^\S+:(fail|cancel)\s?/,"")}`,xe(new pi(c,d)),{code:l,message:c}}finally{let g=Date.now()-a}}}function r(n,i){return(...o)=>w(this,null,function*(){var p,f,m,g;let a=th(o)?o:[o],s=Date.now(),l={method:n,trace_id:Us};Us+=1;let c=`${n}:ok`,d="SUCCESS",u={code:d,message:c};try{if(i.paramsSchema)try{fp(i.paramsSchema,a,"params")}catch(b){throw dc(b.message)}let v=yield i.implement(...a);if(v&&"code"in v){let{code:b,data:k,message:x}=v;d=b,c=x,v=k}return Object.assign(u,{code:d,message:c,data:v}),u}catch(y){let v=y,b=(f=(p=v.code)!=null?p:v.errNo)!=null?f:2e3;d="FAILURE";let k=(g=(m=v.message)!=null?m:v.errMsg)!=null?g:`${y}`,x=`${n}:${d} ${k.replace(/^\S+:(fail|cancel)\s?/,"")}`;return Object.assign(u,{code:d,message:x}),xe(new pi(x,b)),u}finally{let y=Date.now()-s}})}return{createAPI:r,createSyncAPI:t}}});function mp(e){if(typeof e!="number"||e<=0)return"0.0.0";let t=e.toString(),r=0,n=0,i=0;return t.length>=1&&(r=parseInt(t.substring(0,1),10)),t.length>=3&&(n=parseInt(t.substring(1,3),10)),t.length>=5&&(i=parseInt(t.substring(3,5),10)),`${r}.${n}.${i}`}var FS=A(()=>{"use strict"});var Se,W,L,jS,nt=A(()=>{"use strict";LS();yt();US();hp();_e();B();FS();({createAPI:Se,createSyncAPI:W}=qS(U)),L=DS("native"),{canIUseNative:jS}=Gf(()=>E.sdkInfo.nativeSDKVersionCode,()=>E.platform)});var JS,k5,S5,A5,x5,GS=A(()=>{"use strict";R();nt();_e();B();JS=X(),k5="env",S5="getSystemInfoSync",A5=W(S5,{implement:()=>{var r;let e=j("envSync"),{data:t}=e;return{system:t.deviceInfo.system,platform:t.deviceInfo.platform.toLowerCase(),version:t.sdkInfo.jssdkVersion,pixelRatio:t.deviceInfo.pixelRatio,language:t.deviceInfo.lang,brand:t.deviceInfo.brand,appName:(r=t.hostInfo)==null?void 0:r.appName,SDKVersion:t.sdkInfo.jssdkVersion,viewport:{statusBarHeight:E.viewport.statusBarHeight,navigationBarHeight:E.viewport.navigationBarHeight}}}}),x5=W(k5,{implement:()=>{var t;let e=j("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});JS.registerCommand("API.getSystemInfoSync",A5);JS.registerCommand("API.env",x5);L("env",{version:"1.0.0"});L("getSystemInfoSync",{version:"1.0.0",properties:{viewport:"1.0.33"}})});var BS=h(vp=>{"use strict";R();nt();vt();_e();yt();B();var C5="exitGame",T5="onReady",O5="onJoliboxShow",P5="onJoliboxHide",Fs=X(),js=Jo(xe),R5=Se(C5,{paramsSchema:I.tuple(I.function(),I.boolean().optional().default(!1)),implement:(e,t=!1)=>w(vp,null,function*(){js(e).call(vp),on(E.shouldInterupt)&&!E.shouldInterupt&&E.from&&zf("onRetentionResult",{shouldStay:t},E.from,!0),t||E.setDoExitDirectly(),yield ye("exitAppAsync")})}),N5=W(O5,{paramsSchema:I.tuple(I.function()),implement(e){let t=js(e);et("onJoliboxEnterForeground",()=>{t.call(this),hi.emit("visible",!0)})}}),D5=W(P5,{paramsSchema:I.tuple(I.function()),implement(e){let t=js(e);et("onJoliboxEnterBackground",()=>{t.call(this),hi.emit("visible",!1)})}}),L5=W(T5,{paramsSchema:I.tuple(I.function()),implement(e){let t=js(e);ne.on("LifecycleEvent.onReady",r=>{t(r)})}});Fs.registerCommand("LifecycleSDK.exit",R5);Fs.registerCommand("LifecycleSDK.onReady",L5);Fs.registerCommand("LifecycleSDK.onJoliboxShow",N5);Fs.registerCommand("LifecycleSDK.onJoliboxHide",D5);L("lifeCycle.exit",{version:"1.0.0"});L("lifeCycle.onReady",{version:"1.0.0"});L("lifeCycle.onJoliboxShow",{version:"1.0.0"});L("lifeCycle.onJoliboxHide",{version:"1.0.0"})});function HS(e){let t={};if(!Mr(e))return t;for(let[r,n]of Object.entries(e)){let i=r.toLocaleLowerCase();n?typeof n=="object"?t[i]=Object.prototype.toString.call(n):t[i]=String(n):t[i]=""}return t}function VS(e="GET"){if(e==="")return"POST";let t=e.toUpperCase();return["GET","OPTIONS","HEAD","POST","PUT","DELETE","TRACE","CONNECT","PATCH"].includes(t)?t:"GET"}function $S(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function WS(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!Mr(r))return e;let[n,i=""]=e.split("?"),o=new URLSearchParams(i);for(let[s,l]of Object.entries(r))l!=null&&o.append(s,String(l));let a=o.toString();return a?`${n}?${a}`:n}var zS=A(()=>{"use strict";R()});var M5,q5,gp,yp,KS,U5,F5,j5,YS=A(()=>{"use strict";sn();fc();nt();zS();R();vt();B();M5=15,q5=Bo("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:E.baseApiHost}),gp=0,yp=[],KS=Jo(xe),U5=(e,t)=>{let r=e.filter(t),n=e.filter(i=>!t(i));return e.length=0,e.push(...n),r},F5=e=>{let t=new Ot,r=()=>{};return W("request",{paramsSchema:I.tuple(I.object({url:I.string(),method:I.string(),headers:I.object().optional(),data:I.or(I.object(),I.array()).optional(),query:I.object().optional(),dataType:I.string().default("json"),responseType:I.string().default("text"),enableCache:I.boolean().default(!1),appendHostCookie:I.boolean().default(!0),timeout:I.number().default(3e4),success:I.function(),fail:I.function()})),implement(i){let o=()=>w(this,null,function*(){var s,l,c;let a=KS(i.fail);try{if(gp+=1,t.state!=="pending")return;let{data:d,dataType:u,responseType:p,enableCache:f,appendHostCookie:m}=i,g=HS((s=i.headers)!=null?s:{}),y=VS(i.method),v=$S(i.timeout),b=WS(i.url,y,d),k=KS(i.success),x=Object.assign({},i,{method:y,header:m?void 0:g,data:y==="GET"||y==="HEAD"?void 0:d,enableCache:f,query:(l=i.query)!=null?l:{},dataType:u,responseType:p,appendHostCookie:m});v&&(x.timeout=v);let P=q5(b,x);{let{response:C}=yield P,{code:S,data:O,message:J}=C;if(O&&typeof O=="object"&&"status"in O&&O.status!==200)throw hr({code:O.status||-1,msg:`request:fail status ${O.status}`});t.resolve({code:S!=null?S:"SUCCESS",data:O,message:J!=null?J:"request:ok"}),k({code:"SUCCESS",message:"request:ok",data:O})}}catch(d){t.reject(d),a({code:"FAILURE",message:"httpRequst: failed"})}finally{gp-=1,(c=yp.shift())==null||c()}});return gp>=M5?(r=()=>{U5(yp,a=>a===o)},yp.push(o)):o(),t.promise}})(e),{abort(){t.reject(hr({code:-1,msg:"request:fail abort"})),r()}}},j5=X();j5.registerCommand("HttpSDK.request",F5);L("request",{version:"1.0.0"})});function QS(e){let t=Object.prototype.toString.call(e).split(" ")[1].split("]")[0].toLocaleLowerCase();return t==="array"&&(t="object"),V5.includes(t)?t:""}function XS(e,t){try{switch(t){case"string":return e;case"object":return JSON.parse(e);case"number":return parseFloat(e);case"boolean":return e==="true";default:return""}}catch(r){return""}}function ZS(e,t){try{switch(t){case"string":case"number":case"boolean":return`${e}`;case"object":return JSON.stringify(e);default:return""}}catch(r){return""}}var Js,J5,G5,B5,H5,jY,JY,V5,_p,eA,bp=A(()=>{"use strict";nt();_e();R();gt();B();Js=X(),J5=Se("getLocalStorage",{paramsSchema:I.tuple(I.string()),implement(e){return w(this,null,function*(){let{response:t}=yield te(`/api/games/user-storage/${E.mpId}`,{method:"GET",responseType:"json",appendHostCookie:!0,query:{key:e}}),{data:{code:r,message:n,data:i}}=yield t;if(r==="SUCCESS")return{code:r,message:n,data:i==null?void 0:i.value};try{let{data:{data:o,dataType:a}}=yield ye("getLocalStorageAsync",{key:e}),s=XS(o,a);return{code:r,message:`${n}. fallback to native`,data:s}}catch(o){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get local storage failed",data:null}}})}});Js.registerCommand("StorageSDK.getItem",J5);L("storage.getItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});G5=Se("setStorage",{paramsSchema:I.tuple(I.string(),I.or(I.string(),I.boolean(),I.number())),implement(e,t){return w(this,null,function*(){let r=E.mpId,n=typeof t=="string"?t:String(t),{response:i}=yield te(`/api/games/user-storage/${r}`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e,value:n}}),{data:{code:o,message:a}}=i,s=QS(t),l=ZS(t,s);return yield ye("setLocalStorageAsync",{key:e,data:l,dataType:s}),o=="SUCCESS"?{code:o,message:a}:{code:o,message:`${a}. fallback to native`}})}});Js.registerCommand("StorageSDK.setItem",G5);L("storage.setItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});B5=Se("removeStorage",{paramsSchema:I.tuple(I.string()),implement(e){return w(this,null,function*(){let t=E.mpId,{response:r}=yield te(`/api/games/user-storage/${t}/remove`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e}}),{data:{code:n,message:i}}=r;return yield ye("removeLocalStorageAsync",{key:e}),n==="SUCCESS"?{code:n,message:i}:{code:n,message:"[Jolibox SDK] remove item succ"}})}});Js.registerCommand("StorageSDK.removeItem",B5);L("storage.removeItem",{version:"1.0.0",properties:{key:"1.0.0"}});H5=Se("clearStorage",{implement(){return w(this,null,function*(){let e=E.mpId,{response:t}=yield te(`/api/games/user-storage/${e}/clear`,{method:"POST",appendHostCookie:!0});ye("clearLocalStorageAsync");let{data:{code:r,message:n}}=t;return r==="SUCCESS"?{code:r,message:n}:{code:r,message:`${n}.fallback to native`}})}});Js.registerCommand("StorageSDK.clear",H5);L("storage.clear",{version:"1.0.0"});jY=Se("getStorageInfo",{implement(){return w(this,null,function*(){let{data:e}=yield ye("getStorageInfoAsync");return e})}});L("getStorageInfo",{version:"1.0.0",success:{keys:"1.0.0",currentSize:"1.0.0",limitSize:"1.0.0"}});JY=W("getStorageInfoSync",{implement(){return j("getStorageInfoSync")}}),V5=["string","number","boolean","object",""];_p=Se("getGlobalStorage",{paramsSchema:I.tuple(I.string()),implement(e){return w(this,null,function*(){try{let{data:{data:t,dataType:r}}=yield ye("getGlobalStorageAsync",{key:e});return{code:"SUCCESS",message:"success",data:XS(t,r)}}catch(t){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get global storage failed",data:null}}})}}),eA=Se("setGlobalStorage",{paramsSchema:I.tuple(I.string(),I.or(I.string(),I.boolean(),I.number(),I.array())),implement(e,t){return w(this,null,function*(){try{let r=QS(t),n=ZS(t,r);return yield ye("setGlobalStorageAsync",{key:e,data:n,dataType:r}),{code:"SUCCESS",message:"success"}}catch(r){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] set global storage failed"}}})}})});var $5,W5,z5,wp,tA=A(()=>{"use strict";R();_e();nt();$5=W("showKeyboard",{paramsSchema:I.tuple(I.object({defaultValue:I.string().optional().default(""),multiple:I.boolean().optional().default(!1),maxLength:I.unknown().optional().default(1e5)})),implement(e){var n;let t=Math.floor((n=Number(e.maxLength))!=null?n:1e5),{defaultValue:r}=e;r&&t&&(r=r.slice(0,t)),j("showKeyboardSync",F(T({},e),{defaultValue:r,maxLength:t}))}});L("keyboard.showKeyboard",{version:"1.0.0",properties:{params:{defaultValue:"1.0.0",multiple:"1.0.0",confirmHold:"1.0.0",confirmType:"1.0.0",maxLength:"1.0.0"}},success:{errMsg:"1.0.0"}});W5=W("updateKeyboard",{paramsSchema:I.tuple(I.object({value:I.string()})),implement(e){j("updateKeyboardSync",e)}});L("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});z5=W("hideKeyboard",{implement(){j("hideKeyboardSync")}});L("keyboard.hideKeyboard",{version:"1.0.0"});wp=X();wp.registerCommand("KeyboardSDK.showKeyboard",$5);wp.registerCommand("KeyboardSDK.updateKeyboard",W5);wp.registerCommand("KeyboardSDK.hideKeyboard",z5)});var rA=h(Gs=>{"use strict";R();nt();yt();var Ip=X(),K5=Se("levelFinished",{paramsSchema:I.tuple(I.object({levelId:I.or(I.string(),I.number()),duration:I.number().optional(),rating:I.number().optional(),score:I.number().optional(),variation:I.string().optional()})),implement:e=>w(Gs,null,function*(){let{levelId:t,duration:r,rating:n,score:i,variation:o}=e,a=[];a.push(It.tracker("LevelFinished",{levelId:t,duration:r,rating:n,score:i,variation:o})),a.push(It.reporter({event:"COMPLETE_GAME_LEVEL",extraParams:{inGameInfo:{levelId:t,duration:r,rating:n,score:i}}})),yield Promise.all(a)})}),Y5=Se("gamePlayEnded",{paramsSchema:I.tuple(I.object({duration:I.number().optional(),rating:I.number().optional(),score:I.number(),variation:I.string().optional()})),implement:e=>w(Gs,null,function*(){let{duration:t,rating:r,score:n,variation:i}=e,o=[];o.push(It.tracker("GamePlayEnded",{duration:t,rating:r,score:n,variation:i})),o.push(It.reporter({event:"GAME_ENDED",extraParams:{inGameInfo:{duration:t,rating:r,score:n}}})),yield Promise.all(o)})}),Q5=Se("levelUpgrade",{paramsSchema:I.tuple(I.object({levelId:I.or(I.string(),I.number()),name:I.string().optional()})),implement:r=>w(Gs,[r],function*({levelId:e,name:t}){let n=[];n.push(It.tracker("LevelUpgrade",{name:t,levelId:e})),n.push(It.reporter({event:"GAME_LEVEL_UP",extraParams:{inGameInfo:{levelId:e,levelName:t}}})),yield Promise.all(n)})});Ip.registerCommand("TaskTrackerSDK.levelFinished",K5);Ip.registerCommand("TaskTrackerSDK.gamePlayEnded",Y5);Ip.registerCommand("TaskTrackerSDK.levelUpgrade",Q5);L("TaskTrackerSDK.onLevelFinished",{version:"1.1.25",properties:{params:{levelId:"1.1.25",duration:"1.1.25",rating:"1.1.25",score:"1.1.25",variation:"1.1.50"}}});L("TaskTrackerSDK.onGamePlayEnded",{version:"1.1.25",properties:{params:{duration:"1.1.25",rating:"1.1.25",score:"1.1.25",variation:"1.1.50"}}});L("TaskTrackerSDK.onLevelUpgrade",{version:"1.1.25",properties:{params:{levelId:"1.1.25",name:"1.1.25"}}})});var Ep,kp,Sp,X5,nA,Bs=A(()=>{"use strict";B();_e();nt();R();sn();L("login",{version:"1.0.0",properties:{force:"1.0.0"},success:{errMsg:"1.0.0",code:"1.0.0",token:"1.0.0",isLogin:"1.0.0"}});L("checkSession",{version:"1.0.0",success:{errMsg:"1.0.0"}});Ep=new Map;et("onLoginStateChange",({isLogin:e,token:t,uuid:r,isFirstLogin:n,extra:i})=>{let o=Ep.get(r);o&&(o.resolve({isLogin:e,token:t,isFirstLogin:n,extra:i}),Ep.delete(r))});kp=(e,t=!1)=>w(void 0,null,function*(){var u;let{data:{isLogin:r}}=yield ye("checkLoginAsync");if(r)return{isLogin:!0,token:(u=E.hostUserInfo)==null?void 0:u.token};let{skipLogin:n,triggerFrom:i}=e!=null?e:{},o=j("loginSync",{skipLogin:n,triggerFrom:i}),{data:{uuid:a}}=o;if(!a)throw hr({code:-1,msg:"login failed"});let s=new Ot;Ep.set(a,s);let l=yield s.promise;E.onEnvConfigChanged({hostUserInfo:l});let p=l,{extra:c}=p,d=je(p,["extra"]);return ne.emit("onLoginComplete",d),t?l:d}),Sp=Se("login",{paramsSchema:I.tuple(I.object({skipLogin:I.boolean().optional(),triggerFrom:I.string().optional()}).optional()),implement(e){return w(this,null,function*(){return yield kp(e!=null?e:{})})}}),X5=Se("checkSession",{implement(){return w(this,null,function*(){let{data:{isLogin:e}}=yield ye("checkLoginAsync");return{isLogin:e}})}}),nA=X();nA.registerCommand("API.login",Sp);nA.registerCommand("API.checkSession",X5)});var iA,oA=A(()=>{"use strict";iA=e=>{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),n=r+24*60*60*1e3;return e.filter(i=>i>=r&&i<n)}});function Mn(e){return t=>w(this,null,function*(){var l;let{dailyMaxPopUps:r,minInterval:n}=t,i=yield _p(e);if(!i.data)return{canShow:!0,isFirst:!0};let o=aA(i.data),a=iA(o);if(r&&a.length>=r)return{canShow:!1,isFirst:!1};let s=Date.now();return console.log("todayFrequencies",a,n,s-a[0]),n&&s-((l=a==null?void 0:a[0])!=null?l:0)<n?{canShow:!1,isFirst:!1}:{canShow:!0,isFirst:!1}})}function qn(e){return()=>w(this,null,function*(){var i;let t=Date.now(),r=yield _p(e),n=aA((i=r.data)!=null?i:"[]");n.push(t),n.sort((o,a)=>a-o).splice(8),yield eA(e,JSON.stringify(n))})}var aA,sA,lA,cA,uA,dA,pA,fA,hA,mA,vA,gA,yA,Hs=A(()=>{"use strict";bp();oA();aA=e=>{let t;try{t=JSON.parse(e)}catch(r){t=[]}return t};sA=Mn("joli_coin_use_modal_frequency"),lA=Mn("joli_coin_payment_frequency"),cA=Mn("joli_coin_unlogin_modal_frequency"),uA=Mn("joli_gem_use_modal_frequency"),dA=Mn("joli_gem_payment_frequency"),pA=Mn("joli_gem_unlogin_modal_frequency");fA=qn("joli_coin_use_modal_frequency"),hA=qn("joli_coin_payment_frequency"),mA=qn("joli_coin_unlogin_modal_frequency"),vA=qn("joli_gem_use_modal_frequency"),gA=qn("joli_gem_payment_frequency"),yA=qn("joli_gem_unlogin_modal_frequency")});var Ap,Vs,xp=A(()=>{"use strict";gt();Ap=Promise.resolve(),Vs=(e,t)=>w(void 0,null,function*(){Ap=Ap.then(()=>w(void 0,null,function*(){yield te(t,{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield Ap})});var $s,Ws,xt,zs,Qr,Tr,ar,Ks,Un,Z5,q,Fn,jn,Xe=A(()=>{"use strict";R();$s="UNLOCK_OPTIONS_CHANGED",Ws="INVOKE_PAYMENT",xt="ON_PAYMENT_RESULT",zs="ON_USE_MODAL_EVENT",Qr="ON_USE_MODAL_RESULT",Tr="ON_USE_MODAL_FREQUENCY",ar="ON_USE_UNLOGIN_MODAL_EVENT",Ks="INVOKE_UNLOGIN_MODAL_EVENT",Un=new Nt,Z5=()=>({on:Un.on.bind(Un),off:Un.off.bind(Un),emit:Un.emit.bind(Un)}),q=Z5(),Fn={charge:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},useJolicoin:{dailyMaxPopUps:2,minInterval:8*60*60*1e3}},jn={show:!0,minInterval:8*60*60*1e3}});function it(e,t){let r=null,n=null,i=null,o=()=>{if(i){r=Promise.resolve(i);return}r=new Promise(a=>{n=a})};return o(),e.on(t,(...a)=>{let s=a[0];i=s,n&&(n(s),n=null)}),{getData:()=>(r||o(),r),getCachedData:()=>i,clearCache:()=>{i=null,r=null},getFreshData:()=>(i=null,r=null,o(),r),updateData:a=>{if(i)return i=T(T({},i),a),r=Promise.resolve(i),n&&(n(i),n=null),i}}}var Or=A(()=>{"use strict"});var wA=h(Cp=>{"use strict";Hs();xp();Xe();Xe();ir();yt();R();Or();var e3={JOLI_COIN:{frequencyConfigKey:"useJolicoin",trackEvents:{popupShow:"unlock_popup_show",coinUnlock:"coin_unlock_click",adUnlock:"ad_unlock_click"},frequencyChecker:sA,frequencyUpdater:fA,apiEndpointAutoDeduct:"/api/joli-coin/user-config"},JOLI_GEM:{frequencyConfigKey:"useJolicoin",trackEvents:{popupShow:"gem_unlock_popup_show",coinUnlock:"gem_unlock_click",adUnlock:"gem_ad_unlock_click"},frequencyChecker:uA,frequencyUpdater:vA,apiEndpointAutoDeduct:"/api/joli-gem/user-config"}},_A=ho(),bA=it(q,Tr);bA.getData();q.on(zs,(e,t)=>w(Cp,null,function*(){let r=t.currency,n=e3[r];if(e.includes("ADS-")){yield _A.show({duration:3e3});let l=yield bA.getData(),{canShow:c,isFirst:d}=yield n.frequencyChecker(l.joliCoinUseAndCharge[n.frequencyConfigKey]);console.log(`${r} modal show by frequency`,c,d),_A.hide();let{balance:u}=t.userCurrency;if(u>=t.quantity&&t.enableAutoDeduct&&!d){q.emit(Qr,{useModalResult:"CONFIRM"});return}if(!c){q.emit(Qr,{useModalResult:"FAILED"});return}}U(n.trackEvents.popupShow,{eventType:G.View,targetType:"game",currency:r});let{userCurrency:i,enableAutoDeduct:o,quantity:a}=t,s=dS({data:{enableAutoDeduct:o,userCurrency:i,quantity:a,currency:r},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{U(n.trackEvents.coinUnlock,{targetType:"game",eventType:G.Click,coinConsume:t.quantity,ifAutoUnlock:t.enableAutoDeduct,currency:r}),q.emit(Qr,{useModalResult:"CONFIRM"}),s.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:l})=>{l==="FAILED"&&U(n.trackEvents.adUnlock,{targetType:"game",eventType:G.Click,currency:r}),q.emit(Qr,{useModalResult:(l!=null?l:"")==="CANCEL"?"CANCEL":"FAILED"}),s.destroy()}},onEnableDeductChanged:l=>w(Cp,null,function*(){yield Vs(l,n.apiEndpointAutoDeduct)})}});yield n.frequencyUpdater()}))});function IA(){let e=new Map;return{registerPaymentHandler(r,n){e.set(r,n)},invokePayment(r,...n){return w(this,null,function*(){let i=e.get(r);if(!i)return{code:"FAILED",message:`[joliboxSDK]: ${r} payment not supported in this platform`};try{return yield i(...n)}catch(o){return xe(o),{code:"FAILED",message:`[joliboxSDK]: paymenterror ${o}`}}})}}}var EA=A(()=>{"use strict";vt()});var Ys=A(()=>{"use strict"});var t3,Jn,Pr,r3,Xr,Tp=A(()=>{"use strict";Ys();R();B();gt();t3=()=>{let[e,t]=[lh,uh].map(r=>(n,i,o)=>new r(n,i,o));return{createPaymentError:e,createPaymentInternalError:t}},{createPaymentError:Jn,createPaymentInternalError:Pr}=t3(),r3=E.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",Xr=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startPayment=t=>w(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw Jn(n,1001);return yield this.pay()});this.cancelOrder=t=>w(this,null,function*(){var n,i;let{response:r}=yield te(`/api/orders/${t}/cancel`,{method:"POST",data:{}});if(r.code!=="SUCCCESS")throw Jn((i=(n=r.message)!=null?n:r.errMsg)!=null?i:"",1003)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",E.deviceInfo.platform),t.set("joliSource",E.encodeJoliSourceQuery(T({},this.generatePaymentContext()))),`${r3}//payment/callback?${t.toString()}`}}get orderId(){return this._orderId}get status(){return this._orderStatus}}});var Op,SA,AA=A(()=>{"use strict";gt();Tp();Ys();Op=class extends Xr{constructor(r){super();this.productId=r;this.generatePaymentContext=()=>({type:"JOLI_COIN_ORDER_CONTEXT",state:"TO_VALIDATE",productId:this.productId,orderId:this.orderId});this.pay=()=>w(this,null,function*(){let r=this.generateCallbackUrl();return console.info("callbackUrl",r),{code:"SUCCESS",message:"jolicoin payment success"}})}placeOrder(r){return w(this,null,function*(){var n,i,o,a;try{let{response:s}=yield te("/api/orders/checkout/joli-coin",{method:"POST",data:{productId:r.productId}});if(s.code!=="SUCCESS")throw Jn((i=(n=s.errMsg)!=null?n:s.message)!=null?i:"",1002);return{code:"SUCCESS",message:(o=s.message)!=null?o:"placeorder jolicoin success",data:s.data}}catch(s){throw console.info("[JoliboxSDK] placeorder failed",s),Pr((a=JSON.stringify(s))!=null?a:"jolicoin placeorder failed",1002)}})}},SA=()=>{let e=new Map;return t=>w(void 0,null,function*(){let r=e.get(t);return r||(r=new Op(t),e.set(t,r)),yield r.startPayment({productId:t}),{code:"SUCCESS",message:"jolicoin payment success"}})}});var xA,CA=A(()=>{"use strict";xA={SUCCESS:"unlockSuccess",FAIL_NOT_LOGIN:"unlockFailedNotLogin",FAIL_PAYING:"unlockFailedPaying",FAIL_PRODUCT_EMPTY:"unlockFailedProductIdNotFound",FAIL_GET_PRODUCT_INFO:"unlockFailedProductInvalid",FAIL_LAUNCH_BILLING:"unlockFailedLaunch",FAIL_TRANSACTION:"unlockFailedTransaction",FAIL_VERIFY:"unlockFaileVerify",TRANSACTION_PENDING:"transactionPending",FAILED:"unlockFailed"}});var Pp,TA,Rp,Np,n3,Dp,OA=A(()=>{"use strict";gt();Tp();Ys();_e();R();B();ir();CA();Pp=new Map;et("onPaymentStateChange",e=>{console.info("onPaymentStateChange",e);let{orderUUID:t,status:r,totalAmount:n,orderResponse:i}=e,o=Pp.get(t);if(o){if(r==="SUCCESS")Cr("{slot-success} {slot-i18n-jolicoin.unlockSuccess}",{position:"center",duration:3e3}),o.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{totalAmount:n}});else{if(r==="FAILED"&&rh(i==null?void 0:i.errNo)&&(i==null?void 0:i.errNo)!==0)throw Pr(`jolicoin payment failed: ${i==null?void 0:i.errMsg}`,1002);let a=xA[r];a&&Cr(`{slot-error} {slot-i18n-jolicoin.${a}}`,{position:"center",duration:3e3}),o.resolve({code:"FAILED",message:"jolicoin payment failed"})}Pp.delete(t)}});TA=e=>w(void 0,null,function*(){var n,i;let t=new Ot,r;try{let o=yield ye("requestPaymentSync",{paymentBody:{appStoreProductId:e.appStoreProductId,appAccountToken:e.appAccountToken}});if(r=(n=o.data)==null?void 0:n.orderUUID,console.info("---payInApp---",o),!r)throw Pr("orderUUID is null",1002);Pp.set(r,t)}catch(o){throw Pr((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),Rp=class extends Xr{constructor(r,n){super();this.productId=r;this.appStoreProductId=n;this.generatePaymentContext=()=>({type:"JOLI_COIN_IAP_CONTEXT",state:"TO_VALIDATE",productId:this.productId,appStoreProductId:this.appStoreProductId});this.pay=()=>w(this,null,function*(){return yield TA({appStoreProductId:this.appStoreProductId})})}placeOrder(r){return w(this,null,function*(){return{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},Np=class extends Xr{constructor(r,n){super();this.productId=r;this.appStoreProductId=n;this.generatePaymentContext=()=>({type:"JOLI_COIN_IAP_CONTEXT",state:"TO_VALIDATE",productId:this.productId,appStoreProductId:this.appStoreProductId});this.pay=()=>w(this,null,function*(){return yield TA({appStoreProductId:this.appStoreProductId,appAccountToken:this.appAccountToken})})}placeOrder(r){return w(this,null,function*(){var a;console.log("----start place order for ios----");let{response:n}=yield te("/api/orders/iap-init",{method:"GET",appendHostCookie:!0}),{data:i,code:o}=n!=null?n:{};if(console.log("----iap init----",i,o),i.code!=="SUCCESS")throw Pr("iap-init failed",1002);return this.appAccountToken=(a=i==null?void 0:i.data)==null?void 0:a.iapToken,{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},n3={android:Rp,ios:Np},Dp=()=>{let e=new Map;return t=>w(void 0,null,function*(){let{productId:r,appStoreProductId:n}=t,i=e.get(r);if(!i){let s=n3[E.platform];if(!s)throw Pr("platform not supported",1002);i=new s(r,n),e.set(r,i)}let{code:o,message:a}=yield i.startPayment({productId:r,appStoreProductId:n});if(o!=="SUCCESS")throw Jn(a,1002);return{code:"SUCCESS",message:"jolicoin payment success"}})}});var mo,PA=A(()=>{"use strict";EA();AA();OA();mo=IA();mo.registerPaymentHandler("JOLI_COIN",SA());mo.registerPaymentHandler("JOLI_COIN_IAP",Dp());mo.registerPaymentHandler("JOLI_GEM_IAP",Dp())});var NA=h(vo=>{"use strict";Xe();ir();gt();B();Bs();R();Hs();PA();ir();nt();_e();R();yt();xp();Or();var i3={JOLI_COIN:{frequencyConfigKey:"charge",trackEvents:{modalShow:"coinorder_show",orderClick:"coinorder_click",payEnsure:"order_pay_ensure",payResult:"order_pay_result",adUnlock:"ad_unlock_click"},frequencyChecker:lA,frequencyUpdater:hA,apiEndpoint:"/api/joli-coin/balance-detail",apiEndpointAutoDeduct:"/api/joli-coin/user-config",paymentType:"JOLI_COIN_IAP"},JOLI_GEM:{frequencyConfigKey:"charge",trackEvents:{modalShow:"gem_order_show",orderClick:"gem_order_click",payEnsure:"gem_pay_ensure",payResult:"gem_pay_result",adUnlock:"gem_ad_unlock_click"},frequencyChecker:dA,frequencyUpdater:gA,apiEndpoint:"/api/joli-gem/balance-detail",apiEndpointAutoDeduct:"/api/joli-gem/user-config",paymentType:"JOLI_GEM_IAP"}},Gn=ho(),o3=it(q,Tr);q.on(Ws,(e,t)=>w(vo,null,function*(){var r,n;try{let i=t.currency,o=i3[i];if(!jS("requestPaymentSync:paymentBody:appStoreProductId")){console.info("requestPaymentSync:paymentBody:appStoreProductId not supported"),setTimeout(()=>{q.emit(xt,{paymentResult:"FAILED",currency:i})},0);return}if(e.includes("ADS-")){yield Gn.show({duration:3e3});let l=yield o3.getData(),{canShow:c}=yield o.frequencyChecker(l.joliCoinUseAndCharge[o.frequencyConfigKey]);if(console.log(`${i} payment show by frequency`,c),Gn.hide(),!c){q.emit(xt,{paymentResult:"FAILED",currency:i});return}console.log("show by frequency")}yield Gn.show({duration:3e3});let a=yield RA(o.apiEndpoint);if(Gn.hide(),!a){q.emit(xt,{paymentResult:"FAILED",currency:i});return}U(o.trackEvents.modalShow,{targetType:"game",eventType:G.View,currency:i});let s=pS({data:{userCurrency:t.userCurrency,quantity:t.quantity,currency:i,paymentChoices:(n=(r=a.paymentChoices)==null?void 0:r.map(l=>{var c;return F(T({},l),{totalAmountStr:(c=l.totalAmountStr)!=null?c:""})}))!=null?n:[],enableAutoDeduct:a.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:l=>w(vo,null,function*(){var u,p,f,m,g,y,v,b;if(U(o.trackEvents.payEnsure,{targetType:"game",eventType:G.Click,payWay:"app_iap",coinAmount:t.quantity,currency:i,orderPrice:(p=(u=a.paymentChoices.find(k=>k.productId===l))==null?void 0:u.totalAmountStr)!=null?p:""}),!((f=E.hostUserInfo)!=null&&f.isLogin)){let{data:k}=yield Sp({skipLogin:!0});if(!(k!=null&&k.isLogin)){console.log("login failed");return}let x=yield RA(o.apiEndpoint);if(((m=x==null?void 0:x.balance)!=null?m:0)>=t.quantity){q.emit(xt,{paymentResult:"SUCCESS",currency:i}),s.destroy();return}}console.log("invokeNativePayment",l);let c=(y=(g=a==null?void 0:a.paymentChoices)==null?void 0:g.find(k=>k.productId===l))==null?void 0:y.appStoreProductId;if(!c){q.emit(xt,{paymentResult:"FAILED",currency:i}),s.destroy();return}yield Gn.show({duration:3e3});let{code:d}=yield mo.invokePayment(o.paymentType,{productId:l,appStoreProductId:c});if(Gn.hide(),U(o.trackEvents.payResult,{eventType:G.Other,targetType:"game",payWay:"app_iap",coinAmount:t.quantity,currency:i,orderPrice:(b=(v=a.paymentChoices.find(k=>k.productId===l))==null?void 0:v.totalAmountStr)!=null?b:"",payResult:d}),console.log("payment result",d),d!=="SUCCESS"){console.info("[JoliboxSDK] payment failed in payment.invokePaymet");return}q.emit(xt,{paymentResult:"SUCCESS",currency:i}),s.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:l})=>{q.emit(xt,{paymentResult:(l!=null?l:"")==="CANCEL"?"CANCEL":"FAILED",currency:i}),U(o.trackEvents.adUnlock,{targetType:"game",eventType:G.Click,currency:i}),s.destroy()}},onEnableDeductChanged:l=>w(vo,null,function*(){yield Vs(l,o.apiEndpointAutoDeduct)})},onSelect:l=>{var c,d;U(o.trackEvents.orderClick,{targetType:"game",eventType:G.Click,coinAmount:t.quantity,currency:i,orderPrice:(d=(c=a.paymentChoices.find(u=>u.productId===l))==null?void 0:c.totalAmountStr)!=null?d:""})}});yield o.frequencyUpdater()}catch(i){console.info("payment failed",i),q.emit(xt,{paymentResult:"FAILED",currency:t.currency})}}));var a3=(e,t)=>{Object.keys(t).forEach(r=>{let n=e.paymentChoices.find(i=>i.appStoreProductId===r);n&&(n.totalAmountStr=t[r].price)}),e.paymentChoices=e.paymentChoices.filter(r=>!Ql(r.totalAmountStr))},RA=e=>w(vo,null,function*(){var n,i,o,a,s,l,c,d,u,p;let{response:t}=yield te(e,{method:"GET",appendHostCookie:!0,responseType:"json"});console.info("getBalenceDetails",t);let{data:r}=yield ye("requestProductDetailsAsync",{appStoreProductIds:(a=(o=(i=(n=t.data)==null?void 0:n.data)==null?void 0:i.paymentChoices)==null?void 0:o.filter(f=>typeof f.appStoreProductId=="string").map(f=>f.appStoreProductId))!=null?a:[]});if((s=t.data)!=null&&s.data&&r&&a3((l=t.data)==null?void 0:l.data,r),console.info("productDetails",(c=t.data)==null?void 0:c.data),((u=(d=t.data)==null?void 0:d.data)==null?void 0:u.paymentChoices.length)===0)throw new Error("paymentChoices is empty");return(p=t.data)==null?void 0:p.data})});var LA=h(Qs=>{"use strict";Xe();Or();Hs();gt();vt();R();Bs();ir();yt();var s3={JOLI_COIN:{frequencyChecker:cA,frequencyUpdater:mA,trackEvents:{modalExpose:"LoginGuideModal",clickConfirm:"LoginGuideModal",clickConfirmLogin:"LoginGuideModal",modalHide:"LoginGuideModal",clickClose:"LoginGuideModal",clickWatchAds:"LoginGuideModal"},toastMessage:{i18nKey:"{slot-i18ntran-loginGuide.rewardTips}",usedText:"Jolicoin Used"}},JOLI_GEM:{frequencyChecker:pA,frequencyUpdater:yA,trackEvents:{modalExpose:"GemLoginGuideModal",clickConfirm:"GemLoginGuideModal",clickConfirmLogin:"GemLoginGuideModal",modalHide:"GemLoginGuideModal",clickClose:"GemLoginGuideModal",clickWatchAds:"GemLoginGuideModal"},toastMessage:{i18nKey:"{slot-i18ntran-loginGuide.gemRewardTips}",usedText:"Gem Used"}}},DA=it(q,Tr);DA.getData();q.on(Ks,(e,t)=>w(Qs,null,function*(){var r;try{let n=t.currency,i=s3[n];if(e.includes("ADS-")){let s=yield DA.getData();if(console.log(`${n} unlogin guide config`,s.loginGuide),!s.loginGuide.show){q.emit(ar,{result:"NOT_SUPPORT"});return}let{canShow:l}=yield i.frequencyChecker(s.loginGuide);if(console.log(`${n} canShowUseModal`,l),!l){q.emit(ar,{result:"FAILED"});return}}let{firstLogin:o}=(r=yield l3())!=null?r:{};if(!(o!=null&&o.reward)){console.log("[JoliboxSDK] unlogin modal reward is empty"),q.emit(ar,{result:"NOT_SUPPORT"});return}U(i.trackEvents.modalExpose,{eventType:G.Expose,currency:n},G.Expose);let a=fS({data:{rewardType:e,rewardValue:o.reward.rewardValue,currency:t.currency},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>w(Qs,null,function*(){var d,u,p,f;U(i.trackEvents.clickConfirm,{type:"click_confirm",eventType:G.Click,currency:n},G.Click);let{isLogin:s,extra:l,isFirstLogin:c}=yield kp({},!0);if(!s){console.log("login failed");return}if(U(i.trackEvents.clickConfirmLogin,{type:"click_confirm_login",isFirstLogin:c,eventType:G.Click,currency:n},G.Click),c&&((d=l==null?void 0:l.firstLogin)!=null&&d.reward)){let{rewardValue:m}=l.firstLogin.reward;Cr(i.toastMessage.i18nKey,{i18nParams:{text:i.toastMessage.usedText,coin:m},position:"top",duration:3e3})}q.emit(ar,{result:"SUCCESS",rewards:{claimedRewardValue:(f=(p=(u=l==null?void 0:l.firstLogin)==null?void 0:u.reward)==null?void 0:p.rewardValue)!=null?f:0,isFirstLogin:c!=null?c:!1,currency:t.currency}}),a.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:s})=>{U(i.trackEvents.modalHide,{eventType:G.Hide,currency:n},G.Hide);let l=s==="CANCEL"?"click_close":"click_watch_ads",c=s==="CANCEL"?i.trackEvents.clickClose:i.trackEvents.clickWatchAds;U(c,{type:l,eventType:G.Click,currency:n},G.Click),q.emit(ar,{result:"FAILED"}),a.destroy()}}}});yield i.frequencyUpdater()}catch(n){xe(new dh(n)),q.emit(ar,{result:"FAILED"})}}));var l3=()=>w(Qs,null,function*(){var t;let{response:e}=yield te("/api/base/global-config",{method:"GET",appendHostCookie:!0,responseType:"json"});return(t=e.data)==null?void 0:t.data})});var GX,BX,HX,MA=A(()=>{"use strict";GX=ie(wA()),BX=ie(NA()),HX=ie(LA())});function b3(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function w3(e){return typeof e=="string"}function I3(e){return typeof e=="undefined"}function E3(e){return I3(e)||e===null}function k3(e){return typeof e=="function"}function ux(e){let t=e,r=null,n=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r||(r=new t(...o)),r};return n.prototype=t.prototype,n}function go(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function tl(e,t){return t.map(r=>{if(r==="params"&&e[r]){let n=e[r];return Object.keys(n).reduce((i,o)=>(i[o]=String(n[o]),i),{})}return e[r]})}function P3(e){let t=e.location?tl(e.location,GA):null,r=e.target?tl(e.target,GA):null;return tl(g3(v3({},e),{location:t,target:r}),T3)}function R3(e){let t=e.events.map(n=>P3(n)),r=tl(e.device,O3);return[e.protocolVersion,t,r,e.project]}function N3(){if(typeof window=="undefined")return{getItem:()=>null,setItem:()=>{},removeItem:()=>{},clear:()=>{},length:0,key:()=>null};try{if(window.__joliboxLocalStorage__)return window.__joliboxLocalStorage__;let e=Object.getOwnPropertyDescriptor(window,"localStorage");if(e&&e.get){let n=e.get.call(window);return window.__joliboxLocalStorage__=n,n}if(e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(window),"localStorage"),e&&e.get)return e.get.call(window);let t=Window.prototype,r=Object.getOwnPropertyDescriptor(t,"localStorage");if(r&&r.get){let n=r.get.call(window);return window.__joliboxLocalStorage__=n,n}return localStorage}catch(e){return console.warn("Failed to get original localStorage, fallback to default implementation",e),localStorage}}function U3(e){return new Promise(t=>hx(e)(t))}function hx(e){return function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function F3(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new Io(n);return i.event})(function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e(i=>t(i)&&r.call(n,i),null)})}function J3(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)G3(e[n],t[n])}function G3(e,t){if(w3(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(k3(t)){try{if(e instanceof t)return}catch(r){}if(!E3(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function ot(e,t,r){return(t=B3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B3(e){var t=H3(e,"string");return typeof t=="symbol"?t:t+""}function H3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xs(e,t,r){return(t=V3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function V3(e){var t=$3(e,"string");return typeof t=="symbol"?t:t+""}function $3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zs(e,t,r){return(t=W3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function W3(e){var t=z3(e,"string");return typeof t=="symbol"?t:t+""}function z3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sr(e,t,r){return(t=K3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K3(e){var t=Y3(e,"string");return typeof t=="symbol"?t:t+""}function Y3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Q3(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function X3(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}function iH(e,t){return Ue(e,0)^45?(((t<<2^Ue(e,0))<<2^Ue(e,1))<<2^Ue(e,2))<<2^Ue(e,3):0}function gx(e){return e.trim()}function oH(e,t){return(e=t.exec(e))?e[0]:e}function K(e,t,r){return e.replace(t,r)}function Kp(e,t){return e.indexOf(t)}function Ue(e,t){return e.charCodeAt(t)|0}function Eo(e,t,r){return e.slice(t,r)}function Ht(e){return e.length}function pf(e){return e.length}function el(e,t){return t.push(e),e}function aH(e,t){return e.map(t).join("")}function ml(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:hl,column:zn,length:a,return:""}}function _o(e,t){return nH(ml("",null,null,"",null,null,0),e,{length:-e.length},t)}function sH(){return Ae}function lH(){return Ae=lt>0?Ue(Kn,--lt):0,zn--,Ae===10&&(zn=1,hl--),Ae}function ht(){return Ae=lt<yx?Ue(Kn,lt++):0,zn++,Ae===10&&(zn=1,hl++),Ae}function Vt(){return Ue(Kn,lt)}function rl(){return lt}function So(e,t){return Eo(Kn,e,t)}function ko(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function _x(e){return hl=zn=1,yx=Ht(Kn=e),lt=0,[]}function bx(e){return Kn="",e}function nl(e){return gx(So(lt-1,Yp(e===91?e+2:e===40?e+1:e)))}function cH(e){for(;(Ae=Vt())&&Ae<33;)ht();return ko(e)>2||ko(Ae)>3?"":" "}function uH(e,t){for(;--t&&ht()&&!(Ae<48||Ae>102||Ae>57&&Ae<65||Ae>70&&Ae<97););return So(e,rl()+(t<6&&Vt()==32&&ht()==32))}function Yp(e){for(;ht();)switch(Ae){case e:return lt;case 34:case 39:e!==34&&e!==39&&Yp(Ae);break;case 40:e===41&&Yp(e);break;case 92:ht();break}return lt}function dH(e,t){for(;ht()&&e+Ae!==57&&!(e+Ae===84&&Vt()===47););return"/*"+So(t,lt-1)+"*"+fl(e===47?e:ht())}function pH(e){for(;!ko(Vt());)ht();return So(e,lt)}function fH(e){return bx(il("",null,null,null,[""],e=_x(e),0,[0],e))}function il(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,g=1,y=1,v=1,b=0,k="",x=i,P=o,C=n,S=k;y;)switch(m=b,b=ht()){case 40:if(m!=108&&Ue(S,u-1)==58){Kp(S+=K(nl(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:S+=nl(b);break;case 9:case 10:case 13:case 32:S+=cH(m);break;case 92:S+=uH(rl()-1,7);continue;case 47:switch(Vt()){case 42:case 47:el(hH(dH(ht(),rl()),t,r),l);break;default:S+="/"}break;case 123*g:s[c++]=Ht(S)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+d:v==-1&&(S=K(S,/\f/g,"")),f>0&&Ht(S)-u&&el(f>32?$A(S+";",n,r,u-1):$A(K(S," ","")+";",n,r,u-2),l);break;case 59:S+=";";default:if(el(C=VA(S,t,r,c,d,i,s,k,x=[],P=[],u),o),b===123)if(d===0)il(S,t,C,C,x,o,u,s,P);else switch(p===99&&Ue(S,3)===110?100:p){case 100:case 108:case 109:case 115:il(e,C,C,n&&el(VA(e,C,C,0,0,i,s,k,i,x=[],u),P),i,P,u,s,n?x:P);break;default:il(S,C,C,C,[""],P,0,s,P)}}c=d=f=0,g=v=1,k=S="",u=a;break;case 58:u=1+Ht(S),f=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&lH()==125)continue}switch(S+=fl(b),b*g){case 38:v=d>0?1:(S+="\f",-1);break;case 44:s[c++]=(Ht(S)-1)*v,v=1;break;case 64:Vt()===45&&(S+=nl(ht())),p=Vt(),d=u=Ht(k=S+=pH(rl())),b++;break;case 45:m===45&&Ht(S)==2&&(g=0)}}return o}function VA(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=pf(p),m=0,g=0,y=0;m<n;++m)for(var v=0,b=Eo(e,u+1,u=rH(g=a[m])),k=e;v<f;++v)(k=gx(g>0?p[v]+" "+b:K(b,/&\f/g,p[v])))&&(l[y++]=k);return ml(e,t,r,i===0?uf:s,l,c,d)}function hH(e,t,r){return ml(e,t,r,mx,fl(sH()),Eo(e,2,-2),0)}function $A(e,t,r,n){return ml(e,t,r,df,Eo(e,0,n),Eo(e,n+1,-1),n)}function Wn(e,t){for(var r="",n=pf(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function mH(e,t,r,n){switch(e.type){case tH:if(e.children.length)break;case eH:case df:return e.return=e.return||e.value;case mx:return"";case vx:return e.return=e.value+"{"+Wn(e.children,n)+"}";case uf:e.value=e.props.join(",")}return Ht(r=Wn(e.children,n))?e.return=e.value+"{"+r+"}":""}function vH(e){var t=pf(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function gH(e){return function(t){t.root||(t=t.return)&&e(t)}}function yH(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function wx(e,t){switch(iH(e,t)){case 5103:return z+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return z+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return z+e+sl+e+$e+e+e;case 6828:case 4268:return z+e+$e+e+e;case 6165:return z+e+$e+"flex-"+e+e;case 5187:return z+e+K(e,/(\w+).+(:[^]+)/,z+"box-$1$2"+$e+"flex-$1$2")+e;case 5443:return z+e+$e+"flex-item-"+K(e,/flex-|-self/,"")+e;case 4675:return z+e+$e+"flex-line-pack"+K(e,/align-content|flex-|-self/,"")+e;case 5548:return z+e+$e+K(e,"shrink","negative")+e;case 5292:return z+e+$e+K(e,"basis","preferred-size")+e;case 6060:return z+"box-"+K(e,"-grow","")+z+e+$e+K(e,"grow","positive")+e;case 4554:return z+K(e,/([^-])(transform)/g,"$1"+z+"$2")+e;case 6187:return K(K(K(e,/(zoom-|grab)/,z+"$1"),/(image-set)/,z+"$1"),e,"")+e;case 5495:case 3959:return K(e,/(image-set\([^]*)/,z+"$1$`$1");case 4968:return K(K(e,/(.+:)(flex-)?(.*)/,z+"box-pack:$3"+$e+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+z+e+e;case 4095:case 3583:case 4068:case 2532:return K(e,/(.+)-inline(.+)/,z+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ht(e)-1-t>6)switch(Ue(e,t+1)){case 109:if(Ue(e,t+4)!==45)break;case 102:return K(e,/(.+:)(.+)-([^]+)/,"$1"+z+"$2-$3$1"+sl+(Ue(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Kp(e,"stretch")?wx(K(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ue(e,t+1)!==115)break;case 6444:switch(Ue(e,Ht(e)-3-(~Kp(e,"!important")&&10))){case 107:return K(e,":",":"+z)+e;case 101:return K(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(Ue(e,14)===45?"inline-":"")+"box$3$1"+z+"$2$3$1"+$e+"$2box$3")+e}break;case 5936:switch(Ue(e,t+11)){case 114:return z+e+$e+K(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+$e+K(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+$e+K(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+e+$e+e+e}return e}function xH(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function ll(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return Rr={name:i.name,styles:i.styles,next:Rr},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Rr={name:a.name,styles:a.styles,next:Rr},a=a.next;var s=o.styles+";";return s}return PH(e,t,r)}}var l=r;if(t==null)return l;var c=t[l];return c!==void 0?c:l}function PH(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=ll(e,t,r[i])+";";else for(var o in r){var a=r[o];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=o+"{"+t[s]+"}":zA(s)&&(n+=Mp(o)+":"+KA(o,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)zA(a[l])&&(n+=Mp(o)+":"+KA(o,a[l])+";");else{var c=ll(e,t,a);switch(o){case"animation":case"animationName":{n+=Mp(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function qp(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";Rr=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=ll(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=ll(r,t,e[s]),n){var l=o;i+=l[s]}YA.lastIndex=0;for(var c="",d;(d=YA.exec(i))!==null;)c+="-"+d[1];var u=xH(i)+c;return{name:u,styles:i,next:Rr}}function Ex(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}function QA(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function XA(e,t,r){var n=[],i=Ex(e,n,r);return n.length<2?r:i+t(n)}function qH(e,t){Pe.__h&&Pe.__h(ft,e,ex||t),ex=0;var r=ft.__H||(ft.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Sx(e,t){var r=qH(Qp++,7);return jH(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function UH(){for(var e;e=kx.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ol),e.__H.__h.forEach(Xp),e.__H.__h=[]}catch(t){e.__H.__h=[],Pe.__e(t,e.__v)}}function FH(e){var t,r=function(){clearTimeout(n),sx&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);sx&&(t=requestAnimationFrame(r))}function ol(e){var t=ft,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ft=t}function Xp(e){var t=ft;e.__c=e.__(),ft=t}function jH(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function vl(){if(Nr>1)Nr--;else{for(var e,t=!1;bo!==void 0;){var r=bo;for(bo=void 0,Zp++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&xx(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(Zp=0,Nr--,t)throw e}}function st(e){if(Nr>0)return e();Nr++;try{return e()}finally{vl()}}function Ax(e){if(ee!==void 0){var t=e.n;if(t===void 0||t.t!==ee)return t={i:0,S:e,p:ee.s,n:void 0,t:ee,e:void 0,x:void 0,r:t},ee.s!==void 0&&(ee.s.n=t),ee.s=t,e.n=t,32&ee.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=ee.s,t.n=void 0,ee.s.n=t,ee.s=t),t}}function Fe(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function re(e){return new Fe(e)}function xx(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Cx(e){for(var t=e.s;t!==void 0;t=t.n){var r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function Tx(e){for(var t=e.s,r=void 0;t!==void 0;){var n=t.p;t.i===-1?(t.S.U(t),n!==void 0&&(n.n=t.n),t.n!==void 0&&(t.n.p=n)):r=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=n}e.s=r}function Qn(e){Fe.call(this,void 0),this.x=e,this.s=void 0,this.g=cl-1,this.f=4}function wo(e){return new Qn(e)}function Ox(e){var t=e.u;if(e.u=void 0,typeof t=="function"){Nr++;var r=ee;ee=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,ff(e),n}finally{ee=r,vl()}}}function ff(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Ox(e)}function GH(e){if(ee!==this)throw new Error("Out-of-order effect");Tx(this),ee=e,this.f&=-2,8&this.f&&ff(this),vl()}function Ao(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function xo(e){var t=new Ao(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function Xn(e,t){N[e]=t.bind(null,N[e]||function(){})}function ul(e){Fp&&Fp(),Fp=e&&e.S()}function Nx(e){var t=this,r=e.data,n=Dx(r);n.value=r;var i=Sx(function(){for(var s=t,l=t.__v;l=l.__;)if(l.__c){l.__c.__$f|=4;break}var c=wo(function(){var f=n.value.value;return f===0?0:f===!0?"":f||""}),d=wo(function(){return!Array.isArray(c.value)&&!_c(c.value)}),u=xo(function(){if(this.N=Lx,d.value){var f=c.value;s.__v&&s.__v.__e&&s.__v.__e.nodeType===3&&(s.__v.__e.data=f)}}),p=t.__$u.d;return t.__$u.d=function(){u(),p.call(this)},[d,c]},[]),o=i[0],a=i[1];return o.value?a.peek():a.value}function BH(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=re(r);return{o:function(a,s){o.value=a,n=s},d:xo(function(){this.N=Lx;var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function Dx(e){return Sx(function(){return re(e)},[])}function VH(){st(function(){for(var e;e=Rx.shift();)Px.call(e)})}function Lx(){Rx.push(this)===1&&(N.requestAnimationFrame||HH)(VH)}function $H(e,t){let r=qi(e);_n(()=>{r.current=e},[e]),Mi(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function ge(e,t,r,n,i,o){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var c={type:e,props:l,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--WH,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return N.vnode&&N.vnode(c),c}function lr(e,t,r){return(t=o4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o4(e){var t=a4(e,"string");return typeof t=="symbol"?t:t+""}function a4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cr(e,t,r){return(t=u4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u4(e){var t=d4(e,"string");return typeof t=="symbol"?t:t+""}function d4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ve(e,t,r){return(t=p4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p4(e){var t=f4(e,"string");return typeof t=="symbol"?t:t+""}function f4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function at(e,t,r){return(t=h4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h4(e){var t=m4(e,"string");return typeof t=="symbol"?t:t+""}function m4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zr(e,t,r){return(t=v4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v4(e){var t=g4(e,"string");return typeof t=="symbol"?t:t+""}function g4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jp(e,t,r){return(t=y4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y4(e){var t=_4(e,"string");return typeof t=="symbol"?t:t+""}function _4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ze(e,t,r){return(t=b4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b4(e){var t=w4(e,"string");return typeof t=="symbol"?t:t+""}function w4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ct(e,t,r){return(t=I4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I4(e){var t=E4(e,"string");return typeof t=="symbol"?t:t+""}function E4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qA,c3,u3,d3,lx,p3,f3,UA,h3,m3,FA,v3,g3,y3,cx,_3,S3,A3,jA,x3,JA,C3,dx,px,fx,GA,T3,O3,Vn,BA,Jp,ue,D3,L3,yo,Io,M3,Bp,q3,Lp,j3,Hp,HA,Bn,Vp,$p,Wp,zp,Z3,$e,sl,z,mx,uf,df,eH,vx,tH,rH,fl,nH,hl,zn,yx,lt,Ae,Kn,_H,bH,wH,WA,IH,EH,kH,SH,AH,CH,TH,OH,Ix,zA,Mp,KA,YA,Rr,RH,NH,DH,LH,MH,Yn,Qp,ft,Up,ZA,ex,kx,Pe,tx,rx,nx,ix,ox,ax,sx,JH,ee,bo,Nr,Zp,cl,Px,Fp,Rx,HH,We,WH,zH,ur,ef,tf,al,KH,YH,QH,XH,ZH,e4,t4,r4,n4,i4,rf,$n,Hn,s4,l4,c4,nf,Mx,of,af,sf,lf,dl,cf,pl,WX,qx=A(()=>{"use strict";cn();ua();qA=Object.getOwnPropertySymbols,c3=Object.prototype.hasOwnProperty,u3=Object.prototype.propertyIsEnumerable,d3=(e,t)=>{var r={};for(var n in e)c3.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&qA)for(var n of qA(e))t.indexOf(n)<0&&u3.call(e,n)&&(r[n]=e[n]);return r},lx=Object.defineProperty,p3=Object.defineProperties,f3=Object.getOwnPropertyDescriptors,UA=Object.getOwnPropertySymbols,h3=Object.prototype.hasOwnProperty,m3=Object.prototype.propertyIsEnumerable,FA=(e,t,r)=>t in e?lx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,v3=(e,t)=>{for(var r in t||(t={}))h3.call(t,r)&&FA(e,r,t[r]);if(UA)for(var r of UA(t))m3.call(t,r)&&FA(e,r,t[r]);return e},g3=(e,t)=>p3(e,f3(t)),y3=(e,t)=>{for(var r in t)lx(e,r,{get:t[r],enumerable:!0})},cx=(e,t,r,n)=>{for(var i=t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=a(i)||i);return i},_3=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new t};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let r=new Event("abort");this.signal.dispatchEvent(r)};let t=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(t.prototype,"aborted",{get:function(){return this._aborted}}),t.prototype.addEventListener=function(r,n){this._eventListeners[r]||(this._eventListeners[r]=[]),this._eventListeners[r].push(n)},t.prototype.removeEventListener=function(r,n){if(!this._eventListeners[r])return;let i=this._eventListeners[r].indexOf(n);i!==-1&&this._eventListeners[r].splice(i,1)},t.prototype.dispatchEvent=function(r){if(this._eventListeners[r.type])for(let n of this._eventListeners[r.type])n.call(this,r)},window.AbortController=e,window.AbortSignal=t}S3=(e=>(e[e.DEVELOPER_FILE_NOT_FOUND=0]="DEVELOPER_FILE_NOT_FOUND",e[e.INTERNAL_IOS_CAN_NOT_FOUND_PKG=1]="INTERNAL_IOS_CAN_NOT_FOUND_PKG",e[e.USER_IOS_LOAD_TIMEOUT=2]="USER_IOS_LOAD_TIMEOUT",e[e.INTERNAL_IOS_PKG_LOAD_ERROR=3]="INTERNAL_IOS_PKG_LOAD_ERROR",e[e.INTERNAL_IOS_PKG_PARSE_FAIL=4]="INTERNAL_IOS_PKG_PARSE_FAIL",e[e.USER_IOS_GET_EMPTY_DATA=5]="USER_IOS_GET_EMPTY_DATA",e[e.USER_ANDROID_GET_PKG_FAIL=6]="USER_ANDROID_GET_PKG_FAIL",e[e.DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE=7]="DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE",e))(S3||{});A3={log:go("log"),warn:go("warn"),info:go("info"),error:go("error"),debug:go("debug")};Object.assign(globalThis,{logger:A3});jA=Symbol.for("Jolibox.canIUseMap"),x3={};globalThis[jA]||(globalThis[jA]=x3);JA=Symbol.for("Jolibox.canIUseMap.native"),C3={};globalThis[JA]||(globalThis[JA]=C3);dx=(e=>(e[e.Other=0]="Other",e[e.Route=1]="Route",e[e.Click=2]="Click",e[e.View=3]="View",e[e.Expose=4]="Expose",e[e.Swipe=5]="Swipe",e[e.Input=6]="Input",e[e.Select=7]="Select",e[e.SwitchOn=8]="SwitchOn",e[e.SwitchOff=9]="SwitchOff",e[e.Submit=10]="Submit",e[e.Scroll=11]="Scroll",e[e.Hide=12]="Hide",e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(dx||{}),px=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(px||{}),fx=(e=>(e[e.App=0]="App",e[e.H5=1]="H5",e[e.Weapp=2]="Weapp",e[e.Alipay=3]="Alipay",e[e.Gcash=4]="Gcash",e[e.Dana=5]="Dana",e[e.Umma=6]="Umma",e[e.WebSDK=1e3]="WebSDK",e[e.AppSDK=1001]="AppSDK",e[e.Other=9999]="Other",e))(fx||{}),GA=["name","params"],T3=["name","type","location","target","extra","timestamp","userId"],O3=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];N3();Vn=typeof window=="undefined",BA=()=>!Vn&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK");!Vn&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),!Vn&&navigator.userAgent.includes("Android"),!Vn&&navigator.userAgent.includes("Mac"),!Vn&&navigator.userAgent.includes("FB_IAB"),!Vn&&!navigator.userAgent.includes("iPhone")&&navigator.userAgent.includes("Android");Jp=class Gp{constructor(t){this.element=t,this.next=Gp.Undefined,this.prev=Gp.Undefined}};Jp.Undefined=new Jp(void 0);ue=Jp,D3=class{constructor(){this._first=ue.Undefined,this._last=ue.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ue.Undefined}clear(){let e=this._first;for(;e!==ue.Undefined;){let t=e.next;e.prev=ue.Undefined,e.next=ue.Undefined,e=t}this._first=ue.Undefined,this._last=ue.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new ue(e);if(this._first===ue.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==ue.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ue.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ue.Undefined&&e.next!==ue.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ue.Undefined&&e.next===ue.Undefined?(this._first=ue.Undefined,this._last=ue.Undefined):e.next===ue.Undefined?(this._last=this._last.prev,this._last.next=ue.Undefined):e.prev===ue.Undefined&&(this._first=this._first.next,this._first.prev=ue.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ue.Undefined;)yield e.element,e=e.next}},L3=0,yo=class{constructor(e){this.value=e,this.id=L3++}},Io=class{constructor(e){this.options=e,this._size=0}dispose(e){var t,r;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof yo&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(r=(t=this.options)==null?void 0:t.onDidRemoveLastListener)==null||r.call(t))}get event(){return this._event!=null||(this._event=(e,t)=>{var r,n,i,o,a,s;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};t&&(e=e.bind(t));let l=new yo(e);return this._listeners?this._listeners instanceof yo?this._listeners=[this._listeners,l]:this._listeners.push(l):((n=(r=this.options)==null?void 0:r.onWillAddFirstListener)==null||n.call(r,this),this._listeners=l,(o=(i=this.options)==null?void 0:i.onDidFirstListener)==null||o.call(i,this)),(s=(a=this.options)==null?void 0:a.onDidAddListener)==null||s.call(a,this),this._size++,()=>{var c,d,u,p;if(!this._disposed){if(this._listeners instanceof yo)this._listeners.id===l.id&&(this._listeners=void 0,this._size=0,(d=(c=this.options)==null?void 0:c.onDidRemoveLastListener)==null||d.call(c));else if(this._listeners){let f=this._listeners.indexOf(l);f>=0&&(this._listeners.splice(f,1),this._size--,this._size===0&&((p=(u=this.options)==null?void 0:u.onDidRemoveLastListener)==null||p.call(u)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof yo?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},M3=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;var n;let i=(n=this.listeners.get(e))!=null?n:new Io,o=l=>t(...l.args),a=i.event(o);this.listerHandlerMap.set(t,{handler:o,dispose:a}),this.listeners.set(e,i);let s=this.cachedEventQueue.get(e);if(s&&r)for(let l of s)t(...l.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,t){let r=this.listerHandlerMap.get(t);r&&(r.dispose(),this.listerHandlerMap.delete(t))}emit(e){let t=this.listeners.get(e),r=this.cachedEventQueue.get(e);for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];r||(r=new D3,this.cachedEventQueue.set(e,r)),r.push({args:i}),t&&t.fire({event:e,args:i})}once(e,t){var r=this;let n=function(){t(...arguments),r.off(e,n)};this.on(e,n,!1)}},Bp={};y3(Bp,{None:()=>q3,filter:()=>F3,once:()=>hx,toPromise:()=>U3});q3=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Lp=Symbol.for("Jolibox.hostEmitter"),j3=()=>{let e=new M3;return globalThis[Lp]||(globalThis[Lp]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Lp]};j3();Hp=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Io,this.onDidRegisterCommand=this._onDidRegisterCommand.event,console.log("[Jolibox SDK] command registry")}registerCommand(e){if(!e)throw new Error("invalid command");if(e.metadata&&Array.isArray(e.metadata.args)){let r=[];for(let i of e.metadata.args)r.push(i.constraint);let n=e.handler;e.handler=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return J3(o,r),n(...o)}}let{id:t}=e;this._commands.get(t)&&console.info(`[Jolibox SDK] duplicated command is registered ${t}`),this._commands.set(t,e),this._onDidRegisterCommand.fire(t)}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;for(let t of this._commands.keys()){let r=this.getCommand(t);r&&e.set(t,r)}return e}};Hp=cx([ux],Hp);HA=class{constructor(){this._onWillExecuteCommand=new Io,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Io,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Hp,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=b3(3e4)),this._starActivation}executeCommand(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return _3(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),Bp.toPromise(Bp.filter(this.registry.onDidRegisterCommand,i=>i===e))])]),this._tryExecuteCommand(e,r))})}executeCommandThowErr(e){if(!this.registry.getCommand(e))throw new Error(`command '${e}' not found`);let t=this.registry.getCommand(e);for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];this._onWillExecuteCommand.fire({commandId:e,args:n});let o=this.invokeFunction(t.handler,...n);return this._onDidExecuteCommand.fire({commandId:e,args:n}),o}_tryExecuteCommand(e,t){let r=this.registry.getCommand(e);if(!r)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}invokeFunction(e){try{for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e(...r)}finally{}}};HA=cx([ux],HA);Bn=e=>e?function(){try{for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];e==null||e(...r)}catch(i){console.error("Error calling function",i)}}:()=>{console.log("wrapUserFunction: fn is undefined")},Vp=class{constructor(t){ot(this,"context",void 0),ot(this,"continueCallback",void 0),ot(this,"adIsShowingCallback",void 0),ot(this,"isBeforeAdCalled",!1),ot(this,"isBeforeRewardCalled",!1),ot(this,"isAdDismissedCalled",!1),ot(this,"isAdViewedCalled",!1),ot(this,"isAfterAdCalled",!1),ot(this,"currentProvider",void 0),ot(this,"currentClientParams",void 0),ot(this,"adsHasResponse",!1),ot(this,"videoChecker",window.document.createElement("video")),ot(this,"contextInfo",void 0),ot(this,"wrapShowAdFn",r=>()=>{var n,i,o;this.adsHasResponse=!0;let a=!1;this.videoChecker.play().catch(()=>{a=!1}),a=!this.videoChecker.paused,this.videoChecker.pause(),this.context.track("CallShowAdFn",Object.assign({},{userEvent:a},this.paramsToTrack)),window.postMessage({type:"JOLIBOX_AD_CALL_BEFORE_REWARD",data:Object.assign({},{userEvent:a},this.paramsToTrack)},"*"),BA()&&this.context.track("mmp_ad_impression",{ad_network:(i=(n=this.currentProvider)==null?void 0:n.name)!=null?i:"",ad_format:"rewarded",module:"game",game_id:this.contextInfo.objectId}),(o=this.adIsShowingCallback)==null||o.call(this,!0);let s=Bn(r);s==null||s()}),this.context=t,this.contextInfo=t.getContextInfo()}get paramsToTrack(){var t,r,n,i,o,a;return{provider:(r=(t=this.currentProvider)==null?void 0:t.name)!=null?r:null,type:(n=this.currentClientParams)==null?void 0:n.type,name:((i=this.currentClientParams)==null?void 0:i.type)==="preroll"?null:(a=(o=this.currentClientParams)==null?void 0:o.name)!=null?a:""}}wrapBeforeAd(t){return()=>{var r,n,i,o;if(this.adsHasResponse=!0,this.context.track("CallBeforeAd",this.paramsToTrack),window.postMessage({type:"JOLIBOX_AD_CALL_BEFORE_AD",data:this.paramsToTrack},"*"),!this.isBeforeAdCalled){this.isBeforeAdCalled=!0;let a=Bn(t);a==null||a(),((r=this.currentClientParams)==null?void 0:r.type)!=="reward"&&((n=this.adIsShowingCallback)==null||n.call(this,!0),BA()&&this.context.track("mmp_ad_impression",{ad_network:(o=(i=this.currentProvider)==null?void 0:i.name)!=null?o:"",ad_format:"interstitial",module:"game",game_id:this.contextInfo.objectId}))}}}wrapBeforeReward(t){return r=>{this.adsHasResponse=!0,this.isBeforeRewardCalled?this.wrapShowAdFn(r)():(this.isBeforeRewardCalled=!0,t==null||t(this.wrapShowAdFn(r)))}}wrapAdDismissed(t){return()=>{if(this.adsHasResponse=!0,!this.isAdDismissedCalled){this.isAdDismissedCalled=!0;let r=Bn(t);r==null||r()}}}wrapAdViewed(t){return()=>{if(this.adsHasResponse=!0,!this.isAdViewedCalled){this.isAdViewedCalled=!0;let r=Bn(t);r==null||r()}}}wrapAfterAd(t){return()=>{if(this.adsHasResponse=!0,this.context.track("CallAfterAd",this.paramsToTrack),window.postMessage({type:"JOLIBOX_AD_CALL_AFTER_AD",data:this.paramsToTrack},"*"),!this.isAfterAdCalled){this.isAfterAdCalled=!0;let r=Bn(t);r==null||r()}}}wrapAdBreakDone(t){return r=>{var n,i,o,a,s,l,c,d,u;switch(this.adsHasResponse=!0,this.context.track("CallAdBreakDone",{provider:(i=(n=this.currentProvider)==null?void 0:n.name)!=null?i:null,breakType:r.breakType,breakName:(o=r.breakName)!=null?o:"",breakFormat:r.breakFormat,breakStatus:r.breakStatus}),window.postMessage({type:"JOLIBOX_AD_CALL_AD_BREAK_DONE",data:{provider:(s=(a=this.currentProvider)==null?void 0:a.name)!=null?s:null,breakType:r.breakType,breakName:(l=r.breakName)!=null?l:"",breakFormat:r.breakFormat,breakStatus:r.breakStatus}},"*"),r.breakStatus){case"viewed":case"ignored":case"dismissed":case"error":{let p=Bn(t);p==null||p(r),(c=this.adIsShowingCallback)==null||c.call(this,!1),(d=this.continueCallback)==null||d.call(this,[!1,r]);break}default:{(u=this.continueCallback)==null||u.call(this,[!0,r]);break}}}}callAdBreakAndContinue(t,r,n,i){return w(this,null,function*(){return this.currentProvider=t,this.currentClientParams=r,this.adsHasResponse=!1,new Promise(o=>{this.continueCallback=o,this.adIsShowingCallback=i;let a;switch(r.type){case"preroll":{a={type:r.type,adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}case"reward":{a={name:r.name,type:r.type,beforeAd:this.wrapBeforeAd(r.beforeAd),beforeReward:this.wrapBeforeReward(r.beforeReward),adDismissed:this.wrapAdDismissed(r.adDismissed),adViewed:this.wrapAdViewed(r.adViewed),afterAd:this.wrapAfterAd(r.afterAd),adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}default:{a={name:r.name,type:r.type,beforeAd:this.wrapBeforeAd(r.beforeAd),afterAd:this.wrapAfterAd(r.afterAd),adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}}window.setTimeout(()=>{var s,l,c,d,u;this.adsHasResponse||(this.context.track("CallAdBreakTimeout",{type:r.type,provider:(l=(s=this.currentProvider)==null?void 0:s.name)!=null?l:null}),(d=this.continueCallback)==null||d.call(this,[!0,{breakType:r.type,breakName:r.type==="preroll"?"":(c=r.name)!=null?c:"",breakFormat:r.type==="reward"?"reward":"interstitial",breakStatus:"timeout"}]),(u=this.adIsShowingCallback)==null||u.call(this,!1))},5e3),this.context.track("CallAdBreak",this.paramsToTrack),window.postMessage({type:"JOLIBOX_AD_CALL_AD_BREAK",data:this.paramsToTrack},"*"),t.adBreak(a,n),window.JoliTesterBridge&&console.log("joli-fullscreen-ad-show")})})}};$p=class{constructor(t){Xs(this,"context",void 0),Xs(this,"adBreakIsShowing",!1),Xs(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),Xs(this,"reportPageHide",()=>{this.context.track("AdBreakHide",{context:"AdsActionDetection"})}),this.context=t,window.addEventListener("visibilitychange",()=>{document.hidden&&this.adBreakIsShowing&&this.reportPageHide()}),window.addEventListener("beforeunload",r=>{this.adBreakIsShowing&&this.reportPageJumpOut()})}};Wp=class{constructor(t){Zs(this,"configs",null),Zs(this,"firstRun",!0),Zs(this,"context",void 0),Zs(this,"contextInfo",void 0),this.context=t,this.contextInfo=this.context.getContextInfo(),this.init()}init(){return w(this,null,function*(){try{this.configs=yield this.context.httpClient.get("/api/fe-configs/js-sdk/ads-channel-config",{})}catch(t){}})}shouldBypassCallingInterstitial(){var t,r;let n;if(!this.configs)this.init(),n=!this.firstRun;else{let i=(t=this.contextInfo.channel)!=null?t:"",o=this.configs[i],a=(r=o==null?void 0:o.interstitialRate)!=null?r:1;n=Math.random()<a}return this.firstRun=!1,n}};zp=class{constructor(t,r){sr(this,"name","ADSENSE"),sr(this,"context",void 0),sr(this,"contextInfo",void 0),sr(this,"configured",!1),sr(this,"initParams",void 0),sr(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),sr(this,"adConfig",n=>{let i=n,{onReady:o}=i,a=d3(i,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),sr(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),sr(this,"adUnit",n=>w(this,null,function*(){var i,o,a,s;if(this.context.track("CallAdUnit",{adFormat:(o=(i=n.adFormat)==null?void 0:i.toString())!=null?o:null,fullWidthResponsive:(a=n.fullWidthResponsive)!=null?a:null}),document.querySelector("#jolibox-ads")){console.warn("Ad unit already set, skipping");return}let{el:l,slot:c,adFormat:d,fullWidthResponsive:u,style:p}=n,f;if(!l)throw new Error("targeting element is required");if(typeof l=="string"?f=document.querySelector(l):f=l,!f)throw new Error("targeting element not found");let m=c;if(m||(m=this.initParams.unitId),!m)throw new Error("slot is required");let g=typeof d=="object"&&Array.isArray(d)?d.join(", "):d,y=document.createElement("ins");if(y.className="adsbygoogle",y.id="jolibox-ads",y.style.display="block",y.setAttribute("data-ad-client",this.initParams.clientId),y.setAttribute("data-ad-slot",m),g&&y.setAttribute("data-ad-format",g),u&&y.setAttribute("data-full-width-responsive",u),p&&y.setAttribute("style",p),(s=this.contextInfo.testAdsMode)!=null?s:!1){let v=document.createElement("div");v.style.position="absolute",v.style.top="0",v.style.left="0",v.style.width="100%",v.style.height="100%",v.style.display="flex",v.style.justifyContent="center",v.style.alignItems="center",v.style.backgroundColor="rgba(0, 0, 0, 0.5)",v.style.color="white",v.innerHTML="Test Ad",y.style.position="relative",f.appendChild(y),y.appendChild(v)}else f.appendChild(y),new MutationObserver(v=>{v.forEach(b=>{if(b.type==="attributes"&&b.attributeName==="data-ad-status"){let k=y.getAttribute("data-ad-status");this.context.track("AdSenseUnitStatusChanged",{status:k!=null?k:"null"})}})}).observe(y,{attributes:!0,attributeFilter:["data-ad-status"]}),this.push({})})),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,window.adsbygoogle=window.adsbygoogle||[]}init(){return w(this,null,function*(){var t;if(this.context.track("CallAdsInit",{provider:this.name}),typeof window=="undefined")return;let r="google-adsense",n=(t=this.contextInfo.testAdsMode)!=null?t:!1;if(!document.getElementById(r)&&this.initParams.clientId){let i=document.createElement("script");i.id=r,i.async=!0,i.crossOrigin="anonymous",i.src=`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${this.initParams.clientId}`,n&&i.setAttribute("data-adbreak-test","on"),this.initParams.channelId&&i.setAttribute("data-ad-channel",this.initParams.channelId),this.initParams.admobInterstitialSlot&&i.setAttribute("data-admob-interstitial-slot",this.initParams.admobInterstitialSlot),this.initParams.admobRewardedSlot&&i.setAttribute("data-admob-rewarded-slot",this.initParams.admobRewardedSlot),this.initParams.admobOnly&&i.setAttribute("data-admob-ads-only","on"),document.head.appendChild(i),this.context.track("LoadAdsenseCompleted",null)}})}};Z3=function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(X3(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=Q3(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var n;return(n=r.parentNode)==null?void 0:n.removeChild(r)}),this.tags=[],this.ctr=0},e}(),$e="-ms-",sl="-moz-",z="-webkit-",mx="comm",uf="rule",df="decl",eH="@import",vx="@keyframes",tH="@layer",rH=Math.abs,fl=String.fromCharCode,nH=Object.assign;hl=1,zn=1,yx=0,lt=0,Ae=0,Kn="";_H=function(e,t,r){for(var n=0,i=0;n=i,i=Vt(),n===38&&i===12&&(t[r]=1),!ko(i);)ht();return So(e,lt)},bH=function(e,t){var r=-1,n=44;do switch(ko(n)){case 0:n===38&&Vt()===12&&(t[r]=1),e[r]+=_H(lt-1,t,r);break;case 2:e[r]+=nl(n);break;case 4:if(n===44){e[++r]=Vt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=fl(n)}while(n=ht());return e},wH=function(e,t){return bx(bH(_x(e),t))},WA=new WeakMap,IH=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!WA.get(r))&&!n){WA.set(e,!0);for(var i=[],o=wH(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},EH=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};kH=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case df:e.return=wx(e.value,e.length);break;case vx:return Wn([_o(e,{value:K(e.value,"@","@"+z)})],n);case uf:if(e.length)return aH(e.props,function(i){switch(oH(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Wn([_o(e,{props:[K(i,/:(read-\w+)/,":"+sl+"$1")]})],n);case"::placeholder":return Wn([_o(e,{props:[K(i,/:(plac\w+)/,":"+z+"input-$1")]}),_o(e,{props:[K(i,/:(plac\w+)/,":"+sl+"$1")]}),_o(e,{props:[K(i,/:(plac\w+)/,$e+"input-$1")]})],n)}return""})}},SH=[kH],AH=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var g=m.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||SH,i={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),y=1;y<g.length;y++)i[g[y]]=!0;a.push(m)});var s,l=[IH,EH];{var c,d=[mH,gH(function(m){c.insert(m)})],u=vH(l.concat(n,d)),p=function(m){return Wn(fH(m),u)};s=function(m,g,y,v){c=y,p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new Z3({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return f.sheet.hydrate(a),f};CH={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},TH=/[A-Z]|^ms/g,OH=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ix=function(e){return e.charCodeAt(1)===45},zA=function(e){return e!=null&&typeof e!="boolean"},Mp=yH(function(e){return Ix(e)?e:e.replace(TH,"-$&").toLowerCase()}),KA=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(OH,function(r,n,i){return Rr={name:n,styles:i,next:Rr},n})}return CH[e]!==1&&!Ix(e)&&typeof t=="number"&&t!==0?t+"px":t};YA=/label:\s*([^\s;{]+)\s*(;|$)/g;RH=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},NH=function(e,t,r){RH(e,t);var n=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next;while(i!==void 0)}};DH=function(e){var t=AH(e);t.sheet.speedy=function(a){this.isSpeedy=a},t.compat=!0;var r=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=qp(s,t.registered,void 0);return NH(t,c),t.key+"-"+c.name},n=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=qp(s,t.registered),d="animation-"+c.name;return QA(t,{name:c.name,styles:"@keyframes "+d+"{"+c.styles+"}"}),d},i=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=qp(s,t.registered);QA(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return XA(t.registered,r,LH(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){a.forEach(function(s){t.inserted[s]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:Ex.bind(null,t.registered),merge:XA.bind(null,t.registered,r)}},LH=function e(t){for(var r="",n=0;n<t.length;n++){var i=t[n];if(i!=null){var o=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))o=e(i);else{o="";for(var a in i)i[a]&&a&&(o&&(o+=" "),o+=a)}break}default:o=i}o&&(r&&(r+=" "),r+=o)}}return r},MH=DH({key:"css"}),Yn=MH.css,ex=0,kx=[],Pe=N,tx=Pe.__b,rx=Pe.__r,nx=Pe.diffed,ix=Pe.__c,ox=Pe.unmount,ax=Pe.__;Pe.__b=function(e){ft=null,tx&&tx(e)},Pe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ax&&ax(e,t)},Pe.__r=function(e){rx&&rx(e),Qp=0;var t=(ft=e.__c).__H;t&&(Up===ft?(t.__h=[],ft.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(ol),t.__h.forEach(Xp),t.__h=[],Qp=0)),Up=ft},Pe.diffed=function(e){nx&&nx(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(kx.push(t)!==1&&ZA===Pe.requestAnimationFrame||((ZA=Pe.requestAnimationFrame)||FH)(UH)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Up=ft=null},Pe.__c=function(e,t){t.some(function(r){try{r.__h.forEach(ol),r.__h=r.__h.filter(function(n){return!n.__||Xp(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Pe.__e(n,r.__v)}}),ix&&ix(e,t)},Pe.unmount=function(e){ox&&ox(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{ol(n)}catch(i){t=i}}),r.__H=void 0,t&&Pe.__e(t,r.__v))};sx=typeof requestAnimationFrame=="function";JH=Symbol.for("preact-signals");ee=void 0,bo=void 0,Nr=0,Zp=0,cl=0;Fe.prototype.brand=JH;Fe.prototype.h=function(){return!0};Fe.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};Fe.prototype.U=function(e){if(this.t!==void 0){var t=e.e,r=e.x;t!==void 0&&(t.x=r,e.e=void 0),r!==void 0&&(r.e=t,e.x=void 0),e===this.t&&(this.t=r)}};Fe.prototype.subscribe=function(e){var t=this;return xo(function(){var r=t.value,n=ee;ee=void 0;try{e(r)}finally{ee=n}})};Fe.prototype.valueOf=function(){return this.value};Fe.prototype.toString=function(){return this.value+""};Fe.prototype.toJSON=function(){return this.value};Fe.prototype.peek=function(){var e=ee;ee=void 0;try{return this.value}finally{ee=e}};Object.defineProperty(Fe.prototype,"value",{get:function(){var e=Ax(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Zp>100)throw new Error("Cycle detected");this.v=e,this.i++,cl++,Nr++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{vl()}}}});(Qn.prototype=new Fe).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===cl))return!0;if(this.g=cl,this.f|=1,this.i>0&&!xx(this))return this.f&=-2,!0;var e=ee;try{Cx(this),ee=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return ee=e,Tx(this),this.f&=-2,!0};Qn.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Fe.prototype.S.call(this,e)};Qn.prototype.U=function(e){if(this.t!==void 0&&(Fe.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};Qn.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(Qn.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Ax(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});Ao.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};Ao.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Ox(this),Cx(this),Nr++;var e=ee;return ee=this,GH.bind(this,e)};Ao.prototype.N=function(){2&this.f||(this.f|=2,this.o=bo,bo=this)};Ao.prototype.d=function(){this.f|=8,1&this.f||ff(this)};Rx=[];xo(function(){Px=this.N})();Nx.displayName="_st";Object.defineProperties(Fe.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Nx},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});Xn("__b",function(e,t){if(typeof t.type=="string"){var r,n=t.props;for(var i in n)if(i!=="children"){var o=n[i];o instanceof Fe&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});Xn("__r",function(e,t){ul();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return xo(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),ul(r),e(t)});Xn("__e",function(e,t,r,n){ul(),e(t,r,n)});Xn("diffed",function(e,t){ul();var r;if(typeof t.type=="string"&&(r=t.__e)){var n=t.__np,i=t.props;if(n){var o=r.U;if(o)for(var a in o){var s=o[a];s!==void 0&&!(a in n)&&(s.d(),o[a]=void 0)}else o={},r.U=o;for(var l in n){var c=o[l],d=n[l];c===void 0?(c=BH(r,l,d,i),o[l]=c):c.o(d,i)}}}e(t)});Xn("unmount",function(e,t){if(typeof t.type=="string"){var r=t.__e;if(r){var n=r.U;if(n){r.U=void 0;for(var i in n){var o=n[i];o&&o.d()}}}}else{var a=t.__c;if(a){var s=a.__$u;s&&(a.__$u=void 0,s.d())}}e(t)});Xn("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});ct.prototype.shouldComponentUpdate=function(e,t){var r=this.__$u,n=r&&r.s!==void 0;for(var i in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var o=2&this.__$f;if(!(n||o||4&this.__$f)||1&this.__$f)return!0}else if(!(n||4&this.__$f)||3&this.__$f)return!0;for(var a in e)if(a!=="__source"&&e[a]!==this.props[a])return!0;for(var s in this.props)if(!(s in e))return!0;return!1};HH=function(e){queueMicrotask(function(){queueMicrotask(e)})};We=Yn`
620
+ `,d5=()=>_("div",{style:xk.container,children:[_("style",{children:u5}),_("div",{style:xk.spinner})]});p7=ho()});function AA(){return w(this,null,function*(){if(lp)return lp;let t=`${E.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com"}/api/user-retention/exit-recommendations?objectId=${E.mpId}&from=GAME_DETAIL`,{response:{data:r}}=yield te(t);return lp=r,r})}function SA(){return w(this,null,function*(){let e=new Ot;if(E.mpType!=="game")return e.resolve(!1),e.promise;if(cp)return e.resolve(!0),e.promise;let t=yield AA();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:i}=t.data;cp=!0;let o={domain:"GAME",buttons:t.data.buttons.map(s=>`${s.type}-${s.text}`).join(","),list:r.games.map(s=>s.gameId).join(",")};U("RecommendedGuide",T({eventType:G.View},o));let a=lA({games:r.games,title:n,buttons:i,onClose:s=>{var l;switch(cp=!1,s.type){case"quit":U("RecommendedGuide",{eventType:G.Click,type:"QUIT",domain:"GAME"}),e.resolve(!1);break;case"dismiss":U("RecommendedGuide",T({eventType:G.Hide},o)),e.resolve(!0),a.destroy();break;case"navigate":if((l=s.data)!=null&&l.game){let c=s.data.game;p5(c),U("GameItem",{eventType:G.Click,gameId:c.gameId,layerName:"RecommendedGuide",domain:"GAME"}),setTimeout(()=>{e.resolve(!1)},0)}else e.resolve(!0);a.destroy();break;default:U("RecommendedGuide",T({eventType:G.Hide},o)),e.resolve(!0);break}}});return e.promise})}var lp,p5,cp,xA=S(()=>{"use strict";B();_e();R();ir();gt();yt();lp=null;AA();p5=e=>{var a;let{data:t}=j("envSync"),r=new URL(t.schema),n=new URLSearchParams(r.search);n.set("gameId",e.gameId),n.set("joliSource",E.encodeJoliSourceQuery({__mpType:"game",__orientation:(a=e.orientation)!=null?a:"VERTICAL"}));let o=`${`https://${e.gameId}.content.jolibox.com/`}index.html?${n.toString()}`;j("openSchemaSync",{schema:o})},cp=!1});function h5(e){let t=T(T({},f5),e),{url:r,height:n,showCloseButton:i,enableDragClose:o,useAnimation:a,onClose:s,onLoad:l}=t,c=0,d=0,u=!1,p=()=>a?{overlayTransition:"opacity 0.3s ease",containerTransition:"transform 0.3s ease",iframeTransition:"opacity 0.3s ease"}:{overlayTransition:"none",containerTransition:"none",iframeTransition:"none"},f=()=>a?300:0;function m(){let{overlayTransition:b,containerTransition:k,iframeTransition:x}=p();ae=document.createElement("div"),ae.id="jolibox-modal-overlay",ae.style.cssText=`position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.5); z-index:1000; display:flex; justify-content:center; align-items:flex-end; transition:${b}; opacity:0; visibility:hidden;`,Q=document.createElement("div"),Q.id="jolibox-modal-container",Q.style.cssText=`width:100%; height:${n}; background:white; border-radius:12px 12px 0 0; overflow:hidden; box-shadow:0 -2px 10px rgba(0,0,0,0.2); transform:translateY(100%); transition:${k};`;let P=document.createElement("div");P.id="jolibox-modal-loading",P.style.cssText="position:absolute; top:50%; left:50%; transform:translate(-50%, -50%); width:40px; height:40px; border:4px solid #f3f3f3; border-top:4px solid #3498db; border-radius:50%; animation:spin 1s linear infinite;";let C=document.createElement("style");C.textContent="@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }",document.head.appendChild(C);let A=document.createElement("div");if(A.style.cssText="width:100%; height:100%; display:flex; flex-direction:column; padding-bottom:env(safe-area-inset-bottom, 0); position:relative;",wt=document.createElement("iframe"),wt.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${x};`,wt.src=r,wt.onload=()=>{P.parentNode&&P.parentNode.removeChild(P),wt.style.opacity="1",g(),l==null||l(),ne.emit("onModalIframeLoaded",{url:r})},A.appendChild(wt),A.appendChild(P),Q.appendChild(A),i){let O=document.createElement("div");O.style.cssText="position:absolute; top:10px; right:10px; width:30px; height:30px; background:rgba(0,0,0,0.1); border-radius:15px; display:flex; justify-content:center; align-items:center; cursor:pointer; z-index:10;",O.innerHTML="\u2715",O.onclick=v,Q.appendChild(O)}ae.appendChild(Q),document.body.appendChild(ae),ae.addEventListener("click",function(O){O.target===ae&&v()}),o&&y()}function g(){!ae||!Q||u||(ae.style.visibility="visible",a?requestAnimationFrame(()=>{ae&&(ae.style.opacity="1"),Q&&(Q.style.transform="translateY(0)"),u=!0}):(ae&&(ae.style.opacity="1"),Q&&(Q.style.transform="translateY(0)"),u=!0),j("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:E.webviewId}))}function y(){if(!Q)return;let b=P=>{c=P.touches[0].clientY},k=P=>{if(!u)return;d=P.touches[0].clientY;let C=d-c;C>0&&(Q&&(Q.style.transition="none",Q.style.transform=`translateY(${C}px)`),P.preventDefault())},x=()=>{!u||!Q||(Q.style.transition=a?"transform 0.3s ease":"none",d-c>80?v():Q.style.transform="translateY(0)")};Q.addEventListener("touchstart",b),Q.addEventListener("touchmove",k),Q.addEventListener("touchend",x)}function v(){!ae||!Q||!u||(a?(Q.style.transform="translateY(100%)",ae.style.opacity="0"):ae.style.visibility="hidden",u=!1,j("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:E.webviewId}),setTimeout(()=>{ae&&(ae.remove(),ae=null,Q=null,wt=null,s==null||s(),ne.emit("onModalIframeClosed",{url:r}))},f()))}return m(),{close:v}}function CA(){return window.joliboxUI=F(T({},window.joliboxUI),{createIframeModal:h5}),()=>{window.joliboxUI=void 0,ae&&ae.parentNode&&ae.parentNode.removeChild(ae),Q&&Q.parentNode&&Q.parentNode.removeChild(Q),wt&&wt.parentNode&&wt.parentNode.removeChild(wt),ae=null,Q=null,wt=null}}var f5,ae,Q,wt,TA=S(()=>{"use strict";_e();B();R();f5={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},ae=null,Q=null,wt=null});var NA={};Sf(NA,{config:()=>A5});function v5(){Vo.on("isAdShowing",e=>{ys=e,on(ys)&&j("updateContainerConfigSync",{displayCapsuleButton:!ys,webviewId:E.webviewId})})}function g5(){ne.on("onInterceptSystemExit",({intercept:e})=>{OA=e})}function y5(){ne.on("onInterceptBackPress",({intercept:e})=>{m5=e}),et("onBeforeBackPress",({uuid:e,disableExitRecommendDialog:t})=>{var r,n;RA(t),ne.emit("onBackPress",{}),(n=(r=globalThis.joliboxJSCore)==null?void 0:r.doBackPress)==null||n.call(r,e)})}function _5(){ne.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),U("onDocumentReady",{start_timestamp:bs,timestamp:Date.now()})})}function b5(){et("onI18nChanged",({language:e})=>{ne.emit("onI18nChanged",{i18n:e})})}function w5(e){E.mpType==="game"&&It.start(e)}function I5(){et("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&E.onEnvConfigChanged({hostUserInfo:e}),ne.emit("LifecycleEvent.onReady",T({},E.hostUserInfo?E.hostUserInfo:{isLogin:!1})),U("joliboxServiceReady",{start_timestamp:bs,timestamp:Date.now()}),w5(t),rA(()=>E.language)}),et("onBeforeExit",({uuid:e,disableExitRecommendDialog:t})=>{var r;RA(t),(r=globalThis.joliboxJSCore)==null||r.doExit(e)})}function E5(){let e=()=>{U("onBeforeExit",{timestamp:Date.now()}),vs==null||vs(),gs==null||gs(),It.close(Date.now()-bs)},t=()=>ys||OA;mt.onDoExit(()=>w(this,null,function*(){return t()?!0:on(E.shouldInterupt)?(E.shouldInterupt||e(),E.shouldInterupt):_s!=null&&_s.canShowRecommended&&!PA&&(yield SA())?!0:(e(),!1)})),mt.onDoBackPress(()=>w(this,null,function*(){return!!t()}))}function k5(){return w(this,null,function*(){try{let e="/api/fe-configs/js-sdk/basic-meta",{response:{data:t}}=yield te(e);t&&(_s=t)}catch(e){console.error("fetchMetaConfig error:",e)}})}function A5(){bs=Date.now(),I5(),v5(),g5(),y5(),E5(),_5(),b5(),k5(),gs=CA(),vs=Vh()}var vs,gs,bs,ys,_s,OA,m5,PA,RA,DA=S(()=>{"use strict";_e();B();R();yt();$h();vc();xA();gt();ir();TA();ys=!1,_s=null,OA=!1,m5=!1,PA=!1,RA=e=>{on(e)&&(PA=e)};mt.onReady(()=>{})});function LA(e){let t=rc.config[e];return t||(t={},rc.config[e]=t),(r,n)=>{if(t[r]){Rt.warn(`[can i use] ${r} already registered`);return}t[r]=T({},n)}}var MA=S(()=>{"use strict";R()});function up(e){qA=e}function ws(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>ws(t)):Object.keys(e).reduce((t,r)=>(t[r]=ws(e[r]),t),{})}function or(e){return typeof e=="number"}function dp(e){let t=pp(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function pp(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var qA,ke,Is,Es,ks,As,Ln,Ss,xs,Cs,Ts,Os,Ps,Rs,Ns,Ds,Ls,Ms,qs,fp=S(()=>{"use strict";qA=!1;ke=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(qA)if(typeof t=="string")this.errors.push(t);else{let r=`${this.path} should be ${t.expect}`;this._optional&&t.expect!=="undefined"?r+=" or undefined, ":r+=", ",r+=`but got ${dp(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return ws(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:ws(this._default)}optional(){return this._optional=!0,this}};Is=class extends ke{validate(t){return this._optional&&t===void 0?!0:or(t)?or(this._min)&&t<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):or(this._max)&&t>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):or(this._greater)&&t<=this._greater?this.fail(`the value of ${this.path} should be greater than ${this._greater}`):this._isInt&&t!==Math.floor(t)?this.fail(`the value of ${this.path} should be integer but got ${t}`):!0:this.fail({expect:"number",actual:t})}min(t){return this._min=t,this}max(t){return this._max=t,this}isInt(t){return this._isInt=t,this}greater(t){return this._greater=t,this}},Es=class extends ke{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},ks=class extends ke{validate(t){if(this._optional&&t===void 0)return!0;if(typeof t!="string")return this.fail({expect:"string",actual:t});if(or(this._maxLength)&&t.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if(or(this._minLength)&&t.length<this._minLength)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minLength}`);if(typeof this._pattern=="string"){if(!new RegExp(this._pattern).test(t))return this.fail(`${this.path} should match pattern "${this._pattern}"`)}else if(this._pattern&&!this._pattern.test(t))return this.fail(`${this.path} should match pattern "${this._pattern.toString()}"`);return!0}minLength(t){return this._minLength=t,this}maxLength(t){return this._maxLength=t,this}pattern(t){return this._pattern=t,this}},As=class extends ke{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},Ln=class extends ke{validate(t){return!0}},Ss=class extends ke{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},xs=class extends ke{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},Cs=class extends ke{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},Ts=class extends ke{constructor(...t){super(),this._items=t}validate(t){if(this._optional&&t===void 0)return!0;if(!this._items.includes(t)){let r=this._items.map(n=>JSON.stringify(n)).join(", ");return this.fail(`expect ${this.path} to be one of ${r}, but got ${dp(t)}`)}return!0}},Os=class extends ke{constructor(r){super();this._item=r}validate(r){if(this._optional&&r===void 0)return!0;if(!Array.isArray(r))return this.fail({expect:"array",actual:r});if(or(this._minItems)&&r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if(or(this._maxItems)&&r.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if(or(this._length)&&r.length!==this._length)return this.fail(`the length of ${this.path} should be equal to ${this._length}`);let n=this._item;if(!n)return!0;let i=!0;if(r.forEach((o,a)=>{if(n.path=`${this.path}[${a}]`,n.errors=this.errors,o===void 0&&n.hasDefault){r[a]=n.defaultValue;return}n.validate(o)||(n.hasFallback?r[a]=n.fallbackValue:i=!1)}),this._uniqueItems){let o=new Map;for(let a in r)o.has(r[a])?i=this.fail(`${this.path} should NOT have duplicate items (${this.path}[${o.get(r[a])}] and ${this.path}[${a}] are identical)`):o.set(r[a],a)}return i}minItems(r){return this._minItems=r,this}maxItems(r){return this._maxItems=r,this}uniqueItems(){return this._uniqueItems=!0,this}length(r){return this._length=r,this}},Ps=class extends ke{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(pp(r)!=="object")return this.fail({expect:"object",actual:r});let i=r,o=this._value;o.errors=this.errors;let a=!0;for(let s in i){let l=i[s];if(/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/.test(s)?o.path=`${this.path}.${s}`:o.path=`${this.path}["${s}"]`,!(l===void 0&&o._optional)){if(l===void 0&&o.hasDefault){i[s]=o.defaultValue;continue}o.validate(l)||(o.hasFallback?i[s]=o.fallbackValue:a=!1)}}return a}},Rs=class extends ke{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(pp(r)!=="object")return this.fail({expect:"object",actual:r});let n=r,i=!0;for(let o in this._object){let a=n[o],s=this._object[o];if(s.errors=this.errors,/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/.test(o)?s.path=`${this.path}.${o}`:s.path=`${this.path}["${o}"]`,!(s._optional&&a===void 0)){if(a===void 0&&s.hasDefault){n[o]=s.defaultValue;continue}s.validate(a)||(s.hasFallback?n[o]=s.fallbackValue:i=!1)}}return i}},Ns=class extends ke{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:dp(this.value),actual:r}):!0}},Ds=class extends ke{constructor(...t){super(),this._items=t}validate(t){if(t===void 0&&this._optional)return!0;let r=[],n=!1,i=this._items.length;for(let o=0;o<i;o++){let a=this._items[o];if(a.errors=[],a.path=this.path,!a.validate(t))r.push(a.errors.join("; "));else if(!n){n=!0;break}}if(!n){let o=r.join(`
621
+ or `);this.errors.push(o)}return n}},Ls=class extends ke{constructor(...t){super(),this._items=t;let r=0,n=t.length-1;for(;n>=0;n--){let i=t[n];if(i._optional||i.hasDefault)r+=1;else break}this._minItems=t.length-r}validate(t){if(t===void 0&&this._optional)return!0;if(!Array.isArray(t))return this.fail({expect:"array",actual:t});if(t.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);let r=!0;return this._items.forEach((n,i)=>{if(n.path=`${this.path}[${i}]`,n.errors=this.errors,t[i]===void 0&&n.hasDefault){t[i]=n.defaultValue;return}n.validate(t[i])||(n.hasFallback?t[i]=n._fallback:r=!1)}),r}},Ms=class extends ke{validate(t){return t===void 0&&this._optional||t instanceof ArrayBuffer?!0:this.fail({expect:"arraybuffer",actual:t})}},qs=class extends ke{constructor(t){super(),this._ctor=t}validate(t){return t===void 0&&this._optional||t instanceof this._ctor?!0:this.fail({expect:`typedarray of ${this._ctor.name}`,actual:t})}}});function hp(e,t,r="param"){if(e.errors=[],e.path=r,up(!0),!e.validate(t)){let n=e.errors.join(`
622
+ `);throw e.errors.length=0,up(!1),new TypeError(n)}}var I,mp=S(()=>{"use strict";fp();fp();I={object(e){return new Rs(e)},array(e){return new Os(e)},tuple(...e){return new Ls(...e)},literal(e){return new Ns(e)},or(...e){return new Ds(...e)},symbol(){return new As},record(e){return new Ps(e)},function(){return new Cs},boolean(){return new Es},string(){return new ks},number(){return new Is},undefined(){return new Ss},null(){return new xs},unknown(){return new Ln},any(){return new Ln},as(){return new Ln},arraybuffer(){return new Ms},enum(...e){return new Ts(...e)},typedarray(e){return new qs(e)}}});var Us,UA,FA=S(()=>{"use strict";R();vt();mp();sn();Us=1,UA=e=>{function t(n,i){return(...o)=>{var u,p,f,m;let a=Date.now(),s={method:n,trace_id:Us};Us+=1;let l="SUCCESS",c=`${n}:ok`,d=0;try{if(i.paramsSchema)try{hp(i.paramsSchema,o,"params")}catch(b){throw pc(`${n}:fail ${b.message}`)}let g=i.implement(...o),y=g,v=`${n}:ok`;if(g&&"code"in g){let{code:b,data:k,message:x}=g;l=b,y=k,v=x}return{code:l,message:v,data:y}}catch(g){let y=g;d=(p=(u=y.code)!=null?u:y.errNo)!=null?p:2e3,l="FAILURE";let v=(m=(f=y.message)!=null?f:y.errMsg)!=null?m:`${g}`;return c=`${n}:${l} ${v.replace(/^\S+:(fail|cancel)\s?/,"")}`,xe(new pi(c,d)),{code:l,message:c}}finally{let g=Date.now()-a}}}function r(n,i){return(...o)=>w(this,null,function*(){var p,f,m,g;let a=rh(o)?o:[o],s=Date.now(),l={method:n,trace_id:Us};Us+=1;let c=`${n}:ok`,d="SUCCESS",u={code:d,message:c};try{if(i.paramsSchema)try{hp(i.paramsSchema,a,"params")}catch(b){throw pc(b.message)}let v=yield i.implement(...a);if(v&&"code"in v){let{code:b,data:k,message:x}=v;d=b,c=x,v=k}return Object.assign(u,{code:d,message:c,data:v}),u}catch(y){let v=y,b=(f=(p=v.code)!=null?p:v.errNo)!=null?f:2e3;d="FAILURE";let k=(g=(m=v.message)!=null?m:v.errMsg)!=null?g:`${y}`,x=`${n}:${d} ${k.replace(/^\S+:(fail|cancel)\s?/,"")}`;return Object.assign(u,{code:d,message:x}),xe(new pi(x,b)),u}finally{let y=Date.now()-s}})}return{createAPI:r,createSyncAPI:t}}});function vp(e){if(typeof e!="number"||e<=0)return"0.0.0";let t=e.toString(),r=0,n=0,i=0;return t.length>=1&&(r=parseInt(t.substring(0,1),10)),t.length>=3&&(n=parseInt(t.substring(1,3),10)),t.length>=5&&(i=parseInt(t.substring(3,5),10)),`${r}.${n}.${i}`}var jA=S(()=>{"use strict"});var Ae,W,L,JA,nt=S(()=>{"use strict";MA();yt();FA();mp();_e();B();jA();({createAPI:Ae,createSyncAPI:W}=UA(U)),L=LA("native"),{canIUseNative:JA}=Bf(()=>E.sdkInfo.nativeSDKVersionCode,()=>E.platform)});var GA,x5,C5,T5,O5,BA=S(()=>{"use strict";R();nt();_e();B();GA=X(),x5="env",C5="getSystemInfoSync",T5=W(C5,{implement:()=>{var r;let e=j("envSync"),{data:t}=e;return{system:t.deviceInfo.system,platform:t.deviceInfo.platform.toLowerCase(),version:t.sdkInfo.jssdkVersion,pixelRatio:t.deviceInfo.pixelRatio,language:t.deviceInfo.lang,brand:t.deviceInfo.brand,appName:(r=t.hostInfo)==null?void 0:r.appName,SDKVersion:t.sdkInfo.jssdkVersion,viewport:{statusBarHeight:E.viewport.statusBarHeight,navigationBarHeight:E.viewport.navigationBarHeight}}}}),O5=W(x5,{implement:()=>{var t;let e=j("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});GA.registerCommand("API.getSystemInfoSync",T5);GA.registerCommand("API.env",O5);L("env",{version:"1.0.0"});L("getSystemInfoSync",{version:"1.0.0",properties:{viewport:"1.0.33"}})});var HA=h(gp=>{"use strict";R();nt();vt();_e();yt();B();var P5="exitGame",R5="onReady",N5="onJoliboxShow",D5="onJoliboxHide",Fs=X(),js=Jo(xe),L5=Ae(P5,{paramsSchema:I.tuple(I.function(),I.boolean().optional().default(!1)),implement:(e,t=!1)=>w(gp,null,function*(){js(e).call(gp),on(E.shouldInterupt)&&!E.shouldInterupt&&E.from&&Kf("onRetentionResult",{shouldStay:t},E.from,!0),t||E.setDoExitDirectly(),yield ye("exitAppAsync")})}),M5=W(N5,{paramsSchema:I.tuple(I.function()),implement(e){let t=js(e);et("onJoliboxEnterForeground",()=>{t.call(this),hi.emit("visible",!0)})}}),q5=W(D5,{paramsSchema:I.tuple(I.function()),implement(e){let t=js(e);et("onJoliboxEnterBackground",()=>{t.call(this),hi.emit("visible",!1)})}}),U5=W(R5,{paramsSchema:I.tuple(I.function()),implement(e){let t=js(e);ne.on("LifecycleEvent.onReady",r=>{t(r)})}});Fs.registerCommand("LifecycleSDK.exit",L5);Fs.registerCommand("LifecycleSDK.onReady",U5);Fs.registerCommand("LifecycleSDK.onJoliboxShow",M5);Fs.registerCommand("LifecycleSDK.onJoliboxHide",q5);L("lifeCycle.exit",{version:"1.0.0"});L("lifeCycle.onReady",{version:"1.0.0"});L("lifeCycle.onJoliboxShow",{version:"1.0.0"});L("lifeCycle.onJoliboxHide",{version:"1.0.0"})});function VA(e){let t={};if(!Mr(e))return t;for(let[r,n]of Object.entries(e)){let i=r.toLocaleLowerCase();n?typeof n=="object"?t[i]=Object.prototype.toString.call(n):t[i]=String(n):t[i]=""}return t}function $A(e="GET"){if(e==="")return"POST";let t=e.toUpperCase();return["GET","OPTIONS","HEAD","POST","PUT","DELETE","TRACE","CONNECT","PATCH"].includes(t)?t:"GET"}function WA(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function zA(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!Mr(r))return e;let[n,i=""]=e.split("?"),o=new URLSearchParams(i);for(let[s,l]of Object.entries(r))l!=null&&o.append(s,String(l));let a=o.toString();return a?`${n}?${a}`:n}var KA=S(()=>{"use strict";R()});var F5,j5,yp,_p,YA,J5,G5,B5,QA=S(()=>{"use strict";sn();hc();nt();KA();R();vt();B();F5=15,j5=Bo("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:E.baseApiHost}),yp=0,_p=[],YA=Jo(xe),J5=(e,t)=>{let r=e.filter(t),n=e.filter(i=>!t(i));return e.length=0,e.push(...n),r},G5=e=>{let t=new Ot,r=()=>{};return W("request",{paramsSchema:I.tuple(I.object({url:I.string(),method:I.string(),headers:I.object().optional(),data:I.or(I.object(),I.array()).optional(),query:I.object().optional(),dataType:I.string().default("json"),responseType:I.string().default("text"),enableCache:I.boolean().default(!1),appendHostCookie:I.boolean().default(!0),timeout:I.number().default(3e4),success:I.function(),fail:I.function()})),implement(i){let o=()=>w(this,null,function*(){var s,l,c;let a=YA(i.fail);try{if(yp+=1,t.state!=="pending")return;let{data:d,dataType:u,responseType:p,enableCache:f,appendHostCookie:m}=i,g=VA((s=i.headers)!=null?s:{}),y=$A(i.method),v=WA(i.timeout),b=zA(i.url,y,d),k=YA(i.success),x=Object.assign({},i,{method:y,header:m?void 0:g,data:y==="GET"||y==="HEAD"?void 0:d,enableCache:f,query:(l=i.query)!=null?l:{},dataType:u,responseType:p,appendHostCookie:m});v&&(x.timeout=v);let P=j5(b,x);{let{response:C}=yield P,{code:A,data:O,message:J}=C;if(O&&typeof O=="object"&&"status"in O&&O.status!==200)throw hr({code:O.status||-1,msg:`request:fail status ${O.status}`});t.resolve({code:A!=null?A:"SUCCESS",data:O,message:J!=null?J:"request:ok"}),k({code:"SUCCESS",message:"request:ok",data:O})}}catch(d){t.reject(d),a({code:"FAILURE",message:"httpRequst: failed"})}finally{yp-=1,(c=_p.shift())==null||c()}});return yp>=F5?(r=()=>{J5(_p,a=>a===o)},_p.push(o)):o(),t.promise}})(e),{abort(){t.reject(hr({code:-1,msg:"request:fail abort"})),r()}}},B5=X();B5.registerCommand("HttpSDK.request",G5);L("request",{version:"1.0.0"})});function XA(e){let t=Object.prototype.toString.call(e).split(" ")[1].split("]")[0].toLocaleLowerCase();return t==="array"&&(t="object"),z5.includes(t)?t:""}function ZA(e,t){try{switch(t){case"string":return e;case"object":return JSON.parse(e);case"number":return parseFloat(e);case"boolean":return e==="true";default:return""}}catch(r){return""}}function eS(e,t){try{switch(t){case"string":case"number":case"boolean":return`${e}`;case"object":return JSON.stringify(e);default:return""}}catch(r){return""}}var Js,H5,V5,$5,W5,BY,HY,z5,bp,tS,wp=S(()=>{"use strict";nt();_e();R();gt();B();Js=X(),H5=Ae("getLocalStorage",{paramsSchema:I.tuple(I.string()),implement(e){return w(this,null,function*(){let{response:t}=yield te(`/api/games/user-storage/${E.mpId}`,{method:"GET",responseType:"json",appendHostCookie:!0,query:{key:e}}),{data:{code:r,message:n,data:i}}=yield t;if(r==="SUCCESS")return{code:r,message:n,data:i==null?void 0:i.value};try{let{data:{data:o,dataType:a}}=yield ye("getLocalStorageAsync",{key:e}),s=ZA(o,a);return{code:r,message:`${n}. fallback to native`,data:s}}catch(o){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get local storage failed",data:null}}})}});Js.registerCommand("StorageSDK.getItem",H5);L("storage.getItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});V5=Ae("setStorage",{paramsSchema:I.tuple(I.string(),I.or(I.string(),I.boolean(),I.number())),implement(e,t){return w(this,null,function*(){let r=E.mpId,n=typeof t=="string"?t:String(t),{response:i}=yield te(`/api/games/user-storage/${r}`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e,value:n}}),{data:{code:o,message:a}}=i,s=XA(t),l=eS(t,s);return yield ye("setLocalStorageAsync",{key:e,data:l,dataType:s}),o=="SUCCESS"?{code:o,message:a}:{code:o,message:`${a}. fallback to native`}})}});Js.registerCommand("StorageSDK.setItem",V5);L("storage.setItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});$5=Ae("removeStorage",{paramsSchema:I.tuple(I.string()),implement(e){return w(this,null,function*(){let t=E.mpId,{response:r}=yield te(`/api/games/user-storage/${t}/remove`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e}}),{data:{code:n,message:i}}=r;return yield ye("removeLocalStorageAsync",{key:e}),n==="SUCCESS"?{code:n,message:i}:{code:n,message:"[Jolibox SDK] remove item succ"}})}});Js.registerCommand("StorageSDK.removeItem",$5);L("storage.removeItem",{version:"1.0.0",properties:{key:"1.0.0"}});W5=Ae("clearStorage",{implement(){return w(this,null,function*(){let e=E.mpId,{response:t}=yield te(`/api/games/user-storage/${e}/clear`,{method:"POST",appendHostCookie:!0});ye("clearLocalStorageAsync");let{data:{code:r,message:n}}=t;return r==="SUCCESS"?{code:r,message:n}:{code:r,message:`${n}.fallback to native`}})}});Js.registerCommand("StorageSDK.clear",W5);L("storage.clear",{version:"1.0.0"});BY=Ae("getStorageInfo",{implement(){return w(this,null,function*(){let{data:e}=yield ye("getStorageInfoAsync");return e})}});L("getStorageInfo",{version:"1.0.0",success:{keys:"1.0.0",currentSize:"1.0.0",limitSize:"1.0.0"}});HY=W("getStorageInfoSync",{implement(){return j("getStorageInfoSync")}}),z5=["string","number","boolean","object",""];bp=Ae("getGlobalStorage",{paramsSchema:I.tuple(I.string()),implement(e){return w(this,null,function*(){try{let{data:{data:t,dataType:r}}=yield ye("getGlobalStorageAsync",{key:e});return{code:"SUCCESS",message:"success",data:ZA(t,r)}}catch(t){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get global storage failed",data:null}}})}}),tS=Ae("setGlobalStorage",{paramsSchema:I.tuple(I.string(),I.or(I.string(),I.boolean(),I.number(),I.array())),implement(e,t){return w(this,null,function*(){try{let r=XA(t),n=eS(t,r);return yield ye("setGlobalStorageAsync",{key:e,data:n,dataType:r}),{code:"SUCCESS",message:"success"}}catch(r){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] set global storage failed"}}})}})});var K5,Y5,Q5,Ip,rS=S(()=>{"use strict";R();_e();nt();K5=W("showKeyboard",{paramsSchema:I.tuple(I.object({defaultValue:I.string().optional().default(""),multiple:I.boolean().optional().default(!1),maxLength:I.unknown().optional().default(1e5)})),implement(e){var n;let t=Math.floor((n=Number(e.maxLength))!=null?n:1e5),{defaultValue:r}=e;r&&t&&(r=r.slice(0,t)),j("showKeyboardSync",F(T({},e),{defaultValue:r,maxLength:t}))}});L("keyboard.showKeyboard",{version:"1.0.0",properties:{params:{defaultValue:"1.0.0",multiple:"1.0.0",confirmHold:"1.0.0",confirmType:"1.0.0",maxLength:"1.0.0"}},success:{errMsg:"1.0.0"}});Y5=W("updateKeyboard",{paramsSchema:I.tuple(I.object({value:I.string()})),implement(e){j("updateKeyboardSync",e)}});L("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});Q5=W("hideKeyboard",{implement(){j("hideKeyboardSync")}});L("keyboard.hideKeyboard",{version:"1.0.0"});Ip=X();Ip.registerCommand("KeyboardSDK.showKeyboard",K5);Ip.registerCommand("KeyboardSDK.updateKeyboard",Y5);Ip.registerCommand("KeyboardSDK.hideKeyboard",Q5)});var nS=h(Gs=>{"use strict";R();nt();yt();var Ep=X(),X5=Ae("levelFinished",{paramsSchema:I.tuple(I.object({levelId:I.or(I.string(),I.number()),duration:I.number().optional(),rating:I.number().optional(),score:I.number().optional(),variation:I.string().optional()})),implement:e=>w(Gs,null,function*(){let{levelId:t,duration:r,rating:n,score:i,variation:o}=e,a=[];a.push(It.tracker("LevelFinished",{levelId:t,duration:r,rating:n,score:i,variation:o})),a.push(It.reporter({event:"COMPLETE_GAME_LEVEL",extraParams:{inGameInfo:{levelId:t,duration:r,rating:n,score:i}}})),yield Promise.all(a)})}),Z5=Ae("gamePlayEnded",{paramsSchema:I.tuple(I.object({duration:I.number().optional(),rating:I.number().optional(),score:I.number(),variation:I.string().optional()})),implement:e=>w(Gs,null,function*(){let{duration:t,rating:r,score:n,variation:i}=e,o=[];o.push(It.tracker("GamePlayEnded",{duration:t,rating:r,score:n,variation:i})),o.push(It.reporter({event:"GAME_ENDED",extraParams:{inGameInfo:{duration:t,rating:r,score:n}}})),yield Promise.all(o)})}),e3=Ae("levelUpgrade",{paramsSchema:I.tuple(I.object({levelId:I.or(I.string(),I.number()),name:I.string().optional()})),implement:r=>w(Gs,[r],function*({levelId:e,name:t}){let n=[];n.push(It.tracker("LevelUpgrade",{name:t,levelId:e})),n.push(It.reporter({event:"GAME_LEVEL_UP",extraParams:{inGameInfo:{levelId:e,levelName:t}}})),yield Promise.all(n)})});Ep.registerCommand("TaskTrackerSDK.levelFinished",X5);Ep.registerCommand("TaskTrackerSDK.gamePlayEnded",Z5);Ep.registerCommand("TaskTrackerSDK.levelUpgrade",e3);L("TaskTrackerSDK.onLevelFinished",{version:"1.1.25",properties:{params:{levelId:"1.1.25",duration:"1.1.25",rating:"1.1.25",score:"1.1.25",variation:"1.1.50"}}});L("TaskTrackerSDK.onGamePlayEnded",{version:"1.1.25",properties:{params:{duration:"1.1.25",rating:"1.1.25",score:"1.1.25",variation:"1.1.50"}}});L("TaskTrackerSDK.onLevelUpgrade",{version:"1.1.25",properties:{params:{levelId:"1.1.25",name:"1.1.25"}}})});var kp,Ap,Sp,t3,iS,Bs=S(()=>{"use strict";B();_e();nt();R();sn();L("login",{version:"1.0.0",properties:{force:"1.0.0"},success:{errMsg:"1.0.0",code:"1.0.0",token:"1.0.0",isLogin:"1.0.0"}});L("checkSession",{version:"1.0.0",success:{errMsg:"1.0.0"}});kp=new Map;et("onLoginStateChange",({isLogin:e,token:t,uuid:r,isFirstLogin:n,extra:i})=>{let o=kp.get(r);o&&(o.resolve({isLogin:e,token:t,isFirstLogin:n,extra:i}),kp.delete(r))});Ap=(e,t=!1)=>w(void 0,null,function*(){var u;let{data:{isLogin:r}}=yield ye("checkLoginAsync");if(r)return{isLogin:!0,token:(u=E.hostUserInfo)==null?void 0:u.token};let{skipLogin:n,triggerFrom:i}=e!=null?e:{},o=j("loginSync",{skipLogin:n,triggerFrom:i}),{data:{uuid:a}}=o;if(!a)throw hr({code:-1,msg:"login failed"});let s=new Ot;kp.set(a,s);let l=yield s.promise;E.onEnvConfigChanged({hostUserInfo:l});let p=l,{extra:c}=p,d=je(p,["extra"]);return ne.emit("onLoginComplete",d),t?l:d}),Sp=Ae("login",{paramsSchema:I.tuple(I.object({skipLogin:I.boolean().optional(),triggerFrom:I.string().optional()}).optional()),implement(e){return w(this,null,function*(){return yield Ap(e!=null?e:{})})}}),t3=Ae("checkSession",{implement(){return w(this,null,function*(){let{data:{isLogin:e}}=yield ye("checkLoginAsync");return{isLogin:e}})}}),iS=X();iS.registerCommand("API.login",Sp);iS.registerCommand("API.checkSession",t3)});var oS,aS=S(()=>{"use strict";oS=e=>{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),n=r+24*60*60*1e3;return e.filter(i=>i>=r&&i<n)}});function Mn(e){return t=>w(this,null,function*(){var l;let{dailyMaxPopUps:r,minInterval:n}=t,i=yield bp(e);if(!i.data)return{canShow:!0,isFirst:!0};let o=sS(i.data),a=oS(o);if(r&&a.length>=r)return{canShow:!1,isFirst:!1};let s=Date.now();return console.log("todayFrequencies",a,n,s-a[0]),n&&s-((l=a==null?void 0:a[0])!=null?l:0)<n?{canShow:!1,isFirst:!1}:{canShow:!0,isFirst:!1}})}function qn(e){return()=>w(this,null,function*(){var i;let t=Date.now(),r=yield bp(e),n=sS((i=r.data)!=null?i:"[]");n.push(t),n.sort((o,a)=>a-o).splice(8),yield tS(e,JSON.stringify(n))})}var sS,lS,cS,uS,dS,pS,fS,hS,mS,vS,gS,yS,_S,Hs=S(()=>{"use strict";wp();aS();sS=e=>{let t;try{t=JSON.parse(e)}catch(r){t=[]}return t};lS=Mn("joli_coin_use_modal_frequency"),cS=Mn("joli_coin_payment_frequency"),uS=Mn("joli_coin_unlogin_modal_frequency"),dS=Mn("joli_gem_use_modal_frequency"),pS=Mn("joli_gem_payment_frequency"),fS=Mn("joli_gem_unlogin_modal_frequency");hS=qn("joli_coin_use_modal_frequency"),mS=qn("joli_coin_payment_frequency"),vS=qn("joli_coin_unlogin_modal_frequency"),gS=qn("joli_gem_use_modal_frequency"),yS=qn("joli_gem_payment_frequency"),_S=qn("joli_gem_unlogin_modal_frequency")});var xp,Vs,Cp=S(()=>{"use strict";gt();xp=Promise.resolve(),Vs=(e,t)=>w(void 0,null,function*(){xp=xp.then(()=>w(void 0,null,function*(){yield te(t,{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield xp})});var $s,Ws,xt,zs,Qr,Tr,ar,Ks,Un,r3,q,Fn,jn,Xe=S(()=>{"use strict";R();$s="UNLOCK_OPTIONS_CHANGED",Ws="INVOKE_PAYMENT",xt="ON_PAYMENT_RESULT",zs="ON_USE_MODAL_EVENT",Qr="ON_USE_MODAL_RESULT",Tr="ON_USE_MODAL_FREQUENCY",ar="ON_USE_UNLOGIN_MODAL_EVENT",Ks="INVOKE_UNLOGIN_MODAL_EVENT",Un=new Nt,r3=()=>({on:Un.on.bind(Un),off:Un.off.bind(Un),emit:Un.emit.bind(Un)}),q=r3(),Fn={charge:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},useJolicoin:{dailyMaxPopUps:2,minInterval:8*60*60*1e3}},jn={show:!0,minInterval:8*60*60*1e3}});function it(e,t){let r=null,n=null,i=null,o=()=>{if(i){r=Promise.resolve(i);return}r=new Promise(a=>{n=a})};return o(),e.on(t,(...a)=>{let s=a[0];i=s,n&&(n(s),n=null)}),{getData:()=>(r||o(),r),getCachedData:()=>i,clearCache:()=>{i=null,r=null},getFreshData:()=>(i=null,r=null,o(),r),updateData:a=>{if(i)return i=T(T({},i),a),r=Promise.resolve(i),n&&(n(i),n=null),i}}}var Or=S(()=>{"use strict"});var IS=h(Tp=>{"use strict";Hs();Cp();Xe();Xe();ir();yt();R();Or();var n3={JOLI_COIN:{frequencyConfigKey:"useJolicoin",trackEvents:{popupShow:"unlock_popup_show",coinUnlock:"coin_unlock_click",adUnlock:"ad_unlock_click"},frequencyChecker:lS,frequencyUpdater:hS,apiEndpointAutoDeduct:"/api/joli-coin/user-config"},JOLI_GEM:{frequencyConfigKey:"useJolicoin",trackEvents:{popupShow:"gem_unlock_popup_show",coinUnlock:"gem_unlock_click",adUnlock:"gem_ad_unlock_click"},frequencyChecker:dS,frequencyUpdater:gS,apiEndpointAutoDeduct:"/api/joli-gem/user-config"}},bS=ho(),wS=it(q,Tr);wS.getData();q.on(zs,(e,t)=>w(Tp,null,function*(){let r=t.currency,n=n3[r];if(e.includes("ADS-")){yield bS.show({duration:3e3});let l=yield wS.getData(),{canShow:c,isFirst:d}=yield n.frequencyChecker(l.joliCoinUseAndCharge[n.frequencyConfigKey]);console.log(`${r} modal show by frequency`,c,d),bS.hide();let{balance:u}=t.userCurrency;if(u>=t.quantity&&t.enableAutoDeduct&&!d){q.emit(Qr,{useModalResult:"CONFIRM"});return}if(!c){q.emit(Qr,{useModalResult:"FAILED"});return}}U(n.trackEvents.popupShow,{eventType:G.View,targetType:"game",currency:r});let{userCurrency:i,enableAutoDeduct:o,quantity:a}=t,s=pA({data:{enableAutoDeduct:o,userCurrency:i,quantity:a,currency:r},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{U(n.trackEvents.coinUnlock,{targetType:"game",eventType:G.Click,coinConsume:t.quantity,ifAutoUnlock:t.enableAutoDeduct,currency:r}),q.emit(Qr,{useModalResult:"CONFIRM"}),s.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:l})=>{l==="FAILED"&&U(n.trackEvents.adUnlock,{targetType:"game",eventType:G.Click,currency:r}),q.emit(Qr,{useModalResult:(l!=null?l:"")==="CANCEL"?"CANCEL":"FAILED"}),s.destroy()}},onEnableDeductChanged:l=>w(Tp,null,function*(){yield Vs(l,n.apiEndpointAutoDeduct)})}});yield n.frequencyUpdater()}))});function ES(){let e=new Map;return{registerPaymentHandler(r,n){e.set(r,n)},invokePayment(r,...n){return w(this,null,function*(){let i=e.get(r);if(!i)return{code:"FAILED",message:`[joliboxSDK]: ${r} payment not supported in this platform`};try{return yield i(...n)}catch(o){return xe(o),{code:"FAILED",message:`[joliboxSDK]: paymenterror ${o}`}}})}}}var kS=S(()=>{"use strict";vt()});var Ys=S(()=>{"use strict"});var i3,Jn,Pr,o3,Xr,Op=S(()=>{"use strict";Ys();R();B();gt();i3=()=>{let[e,t]=[ch,dh].map(r=>(n,i,o)=>new r(n,i,o));return{createPaymentError:e,createPaymentInternalError:t}},{createPaymentError:Jn,createPaymentInternalError:Pr}=i3(),o3=E.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",Xr=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startPayment=t=>w(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw Jn(n,1001);return yield this.pay()});this.cancelOrder=t=>w(this,null,function*(){var n,i;let{response:r}=yield te(`/api/orders/${t}/cancel`,{method:"POST",data:{}});if(r.code!=="SUCCCESS")throw Jn((i=(n=r.message)!=null?n:r.errMsg)!=null?i:"",1003)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",E.deviceInfo.platform),t.set("joliSource",E.encodeJoliSourceQuery(T({},this.generatePaymentContext()))),`${o3}//payment/callback?${t.toString()}`}}get orderId(){return this._orderId}get status(){return this._orderStatus}}});var Pp,SS,xS=S(()=>{"use strict";gt();Op();Ys();Pp=class extends Xr{constructor(r){super();this.productId=r;this.generatePaymentContext=()=>({type:"JOLI_COIN_ORDER_CONTEXT",state:"TO_VALIDATE",productId:this.productId,orderId:this.orderId});this.pay=()=>w(this,null,function*(){let r=this.generateCallbackUrl();return console.info("callbackUrl",r),{code:"SUCCESS",message:"jolicoin payment success"}})}placeOrder(r){return w(this,null,function*(){var n,i,o,a;try{let{response:s}=yield te("/api/orders/checkout/joli-coin",{method:"POST",data:{productId:r.productId}});if(s.code!=="SUCCESS")throw Jn((i=(n=s.errMsg)!=null?n:s.message)!=null?i:"",1002);return{code:"SUCCESS",message:(o=s.message)!=null?o:"placeorder jolicoin success",data:s.data}}catch(s){throw console.info("[JoliboxSDK] placeorder failed",s),Pr((a=JSON.stringify(s))!=null?a:"jolicoin placeorder failed",1002)}})}},SS=()=>{let e=new Map;return t=>w(void 0,null,function*(){let r=e.get(t);return r||(r=new Pp(t),e.set(t,r)),yield r.startPayment({productId:t}),{code:"SUCCESS",message:"jolicoin payment success"}})}});var CS,TS=S(()=>{"use strict";CS={SUCCESS:"unlockSuccess",FAIL_NOT_LOGIN:"unlockFailedNotLogin",FAIL_PAYING:"unlockFailedPaying",FAIL_PRODUCT_EMPTY:"unlockFailedProductIdNotFound",FAIL_GET_PRODUCT_INFO:"unlockFailedProductInvalid",FAIL_LAUNCH_BILLING:"unlockFailedLaunch",FAIL_TRANSACTION:"unlockFailedTransaction",FAIL_VERIFY:"unlockFaileVerify",TRANSACTION_PENDING:"transactionPending",FAILED:"unlockFailed"}});var Rp,OS,Np,Dp,a3,Lp,PS=S(()=>{"use strict";gt();Op();Ys();_e();R();B();ir();TS();Rp=new Map;et("onPaymentStateChange",e=>{console.info("onPaymentStateChange",e);let{orderUUID:t,status:r,totalAmount:n,orderResponse:i}=e,o=Rp.get(t);if(o){if(r==="SUCCESS")Cr("{slot-success} {slot-i18n-jolicoin.unlockSuccess}",{position:"center",duration:3e3}),o.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{totalAmount:n}});else{if(r==="FAILED"&&nh(i==null?void 0:i.errNo)&&(i==null?void 0:i.errNo)!==0)throw Pr(`jolicoin payment failed: ${i==null?void 0:i.errMsg}`,1002);let a=CS[r];a&&Cr(`{slot-error} {slot-i18n-jolicoin.${a}}`,{position:"center",duration:3e3}),o.resolve({code:"FAILED",message:"jolicoin payment failed"})}Rp.delete(t)}});OS=e=>w(void 0,null,function*(){var n,i;let t=new Ot,r;try{let o=yield ye("requestPaymentSync",{paymentBody:{appStoreProductId:e.appStoreProductId,appAccountToken:e.appAccountToken}});if(r=(n=o.data)==null?void 0:n.orderUUID,console.info("---payInApp---",o),!r)throw Pr("orderUUID is null",1002);Rp.set(r,t)}catch(o){throw Pr((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),Np=class extends Xr{constructor(r,n){super();this.productId=r;this.appStoreProductId=n;this.generatePaymentContext=()=>({type:"JOLI_COIN_IAP_CONTEXT",state:"TO_VALIDATE",productId:this.productId,appStoreProductId:this.appStoreProductId});this.pay=()=>w(this,null,function*(){return yield OS({appStoreProductId:this.appStoreProductId})})}placeOrder(r){return w(this,null,function*(){return{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},Dp=class extends Xr{constructor(r,n){super();this.productId=r;this.appStoreProductId=n;this.generatePaymentContext=()=>({type:"JOLI_COIN_IAP_CONTEXT",state:"TO_VALIDATE",productId:this.productId,appStoreProductId:this.appStoreProductId});this.pay=()=>w(this,null,function*(){return yield OS({appStoreProductId:this.appStoreProductId,appAccountToken:this.appAccountToken})})}placeOrder(r){return w(this,null,function*(){var a;console.log("----start place order for ios----");let{response:n}=yield te("/api/orders/iap-init",{method:"GET",appendHostCookie:!0}),{data:i,code:o}=n!=null?n:{};if(console.log("----iap init----",i,o),i.code!=="SUCCESS")throw Pr("iap-init failed",1002);return this.appAccountToken=(a=i==null?void 0:i.data)==null?void 0:a.iapToken,{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},a3={android:Np,ios:Dp},Lp=()=>{let e=new Map;return t=>w(void 0,null,function*(){let{productId:r,appStoreProductId:n}=t,i=e.get(r);if(!i){let s=a3[E.platform];if(!s)throw Pr("platform not supported",1002);i=new s(r,n),e.set(r,i)}let{code:o,message:a}=yield i.startPayment({productId:r,appStoreProductId:n});if(o!=="SUCCESS")throw Jn(a,1002);return{code:"SUCCESS",message:"jolicoin payment success"}})}});var mo,RS=S(()=>{"use strict";kS();xS();PS();mo=ES();mo.registerPaymentHandler("JOLI_COIN",SS());mo.registerPaymentHandler("JOLI_COIN_IAP",Lp());mo.registerPaymentHandler("JOLI_GEM_IAP",Lp())});var DS=h(vo=>{"use strict";Xe();ir();gt();B();Bs();R();Hs();RS();ir();nt();_e();R();yt();Cp();Or();var s3={JOLI_COIN:{frequencyConfigKey:"charge",trackEvents:{modalShow:"coinorder_show",orderClick:"coinorder_click",payEnsure:"order_pay_ensure",payResult:"order_pay_result",adUnlock:"ad_unlock_click"},frequencyChecker:cS,frequencyUpdater:mS,apiEndpoint:"/api/joli-coin/balance-detail",apiEndpointAutoDeduct:"/api/joli-coin/user-config",paymentType:"JOLI_COIN_IAP"},JOLI_GEM:{frequencyConfigKey:"charge",trackEvents:{modalShow:"gem_order_show",orderClick:"gem_order_click",payEnsure:"gem_pay_ensure",payResult:"gem_pay_result",adUnlock:"gem_ad_unlock_click"},frequencyChecker:pS,frequencyUpdater:yS,apiEndpoint:"/api/joli-gem/balance-detail",apiEndpointAutoDeduct:"/api/joli-gem/user-config",paymentType:"JOLI_GEM_IAP"}},Gn=ho(),l3=it(q,Tr);q.on(Ws,(e,t)=>w(vo,null,function*(){var r,n;try{let i=t.currency,o=s3[i];if(!JA("requestPaymentSync:paymentBody:appStoreProductId")){console.info("requestPaymentSync:paymentBody:appStoreProductId not supported"),setTimeout(()=>{q.emit(xt,{paymentResult:"FAILED",currency:i})},0);return}if(e.includes("ADS-")){yield Gn.show({duration:3e3});let l=yield l3.getData(),{canShow:c}=yield o.frequencyChecker(l.joliCoinUseAndCharge[o.frequencyConfigKey]);if(console.log(`${i} payment show by frequency`,c),Gn.hide(),!c){q.emit(xt,{paymentResult:"FAILED",currency:i});return}console.log("show by frequency")}yield Gn.show({duration:3e3});let a=yield NS(o.apiEndpoint);if(Gn.hide(),!a){q.emit(xt,{paymentResult:"FAILED",currency:i});return}U(o.trackEvents.modalShow,{targetType:"game",eventType:G.View,currency:i});let s=fA({data:{userCurrency:t.userCurrency,quantity:t.quantity,currency:i,paymentChoices:(n=(r=a.paymentChoices)==null?void 0:r.map(l=>{var c;return F(T({},l),{totalAmountStr:(c=l.totalAmountStr)!=null?c:""})}))!=null?n:[],enableAutoDeduct:a.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:l=>w(vo,null,function*(){var u,p,f,m,g,y,v,b;if(U(o.trackEvents.payEnsure,{targetType:"game",eventType:G.Click,payWay:"app_iap",coinAmount:t.quantity,currency:i,orderPrice:(p=(u=a.paymentChoices.find(k=>k.productId===l))==null?void 0:u.totalAmountStr)!=null?p:""}),!((f=E.hostUserInfo)!=null&&f.isLogin)){let{data:k}=yield Sp({skipLogin:!0});if(!(k!=null&&k.isLogin)){console.log("login failed");return}let x=yield NS(o.apiEndpoint);if(((m=x==null?void 0:x.balance)!=null?m:0)>=t.quantity){q.emit(xt,{paymentResult:"SUCCESS",currency:i}),s.destroy();return}}console.log("invokeNativePayment",l);let c=(y=(g=a==null?void 0:a.paymentChoices)==null?void 0:g.find(k=>k.productId===l))==null?void 0:y.appStoreProductId;if(!c){q.emit(xt,{paymentResult:"FAILED",currency:i}),s.destroy();return}yield Gn.show({duration:3e3});let{code:d}=yield mo.invokePayment(o.paymentType,{productId:l,appStoreProductId:c});if(Gn.hide(),U(o.trackEvents.payResult,{eventType:G.Other,targetType:"game",payWay:"app_iap",coinAmount:t.quantity,currency:i,orderPrice:(b=(v=a.paymentChoices.find(k=>k.productId===l))==null?void 0:v.totalAmountStr)!=null?b:"",payResult:d}),console.log("payment result",d),d!=="SUCCESS"){console.info("[JoliboxSDK] payment failed in payment.invokePaymet");return}q.emit(xt,{paymentResult:"SUCCESS",currency:i}),s.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:l})=>{q.emit(xt,{paymentResult:(l!=null?l:"")==="CANCEL"?"CANCEL":"FAILED",currency:i}),U(o.trackEvents.adUnlock,{targetType:"game",eventType:G.Click,currency:i}),s.destroy()}},onEnableDeductChanged:l=>w(vo,null,function*(){yield Vs(l,o.apiEndpointAutoDeduct)})},onSelect:l=>{var c,d;U(o.trackEvents.orderClick,{targetType:"game",eventType:G.Click,coinAmount:t.quantity,currency:i,orderPrice:(d=(c=a.paymentChoices.find(u=>u.productId===l))==null?void 0:c.totalAmountStr)!=null?d:""})}});yield o.frequencyUpdater()}catch(i){console.info("payment failed",i),q.emit(xt,{paymentResult:"FAILED",currency:t.currency})}}));var c3=(e,t)=>{Object.keys(t).forEach(r=>{let n=e.paymentChoices.find(i=>i.appStoreProductId===r);n&&(n.totalAmountStr=t[r].price)}),e.paymentChoices=e.paymentChoices.filter(r=>!Xl(r.totalAmountStr))},NS=e=>w(vo,null,function*(){var n,i,o,a,s,l,c,d,u,p;let{response:t}=yield te(e,{method:"GET",appendHostCookie:!0,responseType:"json"});console.info("getBalenceDetails",t);let{data:r}=yield ye("requestProductDetailsAsync",{appStoreProductIds:(a=(o=(i=(n=t.data)==null?void 0:n.data)==null?void 0:i.paymentChoices)==null?void 0:o.filter(f=>typeof f.appStoreProductId=="string").map(f=>f.appStoreProductId))!=null?a:[]});if((s=t.data)!=null&&s.data&&r&&c3((l=t.data)==null?void 0:l.data,r),console.info("productDetails",(c=t.data)==null?void 0:c.data),((u=(d=t.data)==null?void 0:d.data)==null?void 0:u.paymentChoices.length)===0)throw new Error("paymentChoices is empty");return(p=t.data)==null?void 0:p.data})});var MS=h(Qs=>{"use strict";Xe();Or();Hs();gt();vt();R();Bs();ir();yt();var u3={JOLI_COIN:{frequencyChecker:uS,frequencyUpdater:vS,trackEvents:{modalExpose:"LoginGuideModal",clickConfirm:"LoginGuideModal",clickConfirmLogin:"LoginGuideModal",modalHide:"LoginGuideModal",clickClose:"LoginGuideModal",clickWatchAds:"LoginGuideModal"},toastMessage:{i18nKey:"{slot-i18ntran-loginGuide.rewardTips}",usedText:"Jolicoin Used"}},JOLI_GEM:{frequencyChecker:fS,frequencyUpdater:_S,trackEvents:{modalExpose:"GemLoginGuideModal",clickConfirm:"GemLoginGuideModal",clickConfirmLogin:"GemLoginGuideModal",modalHide:"GemLoginGuideModal",clickClose:"GemLoginGuideModal",clickWatchAds:"GemLoginGuideModal"},toastMessage:{i18nKey:"{slot-i18ntran-loginGuide.gemRewardTips}",usedText:"Gem Used"}}},LS=it(q,Tr);LS.getData();q.on(Ks,(e,t)=>w(Qs,null,function*(){var r;try{let n=t.currency,i=u3[n];if(e.includes("ADS-")){let s=yield LS.getData();if(console.log(`${n} unlogin guide config`,s.loginGuide),!s.loginGuide.show){q.emit(ar,{result:"NOT_SUPPORT"});return}let{canShow:l}=yield i.frequencyChecker(s.loginGuide);if(console.log(`${n} canShowUseModal`,l),!l){q.emit(ar,{result:"FAILED"});return}}let{firstLogin:o}=(r=yield d3())!=null?r:{};if(!(o!=null&&o.reward)){console.log("[JoliboxSDK] unlogin modal reward is empty"),q.emit(ar,{result:"NOT_SUPPORT"});return}U(i.trackEvents.modalExpose,{eventType:G.Expose,currency:n},G.Expose);let a=hA({data:{rewardType:e,rewardValue:o.reward.rewardValue,currency:t.currency},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>w(Qs,null,function*(){var d,u,p,f;U(i.trackEvents.clickConfirm,{type:"click_confirm",eventType:G.Click,currency:n},G.Click);let{isLogin:s,extra:l,isFirstLogin:c}=yield Ap({},!0);if(!s){console.log("login failed");return}if(U(i.trackEvents.clickConfirmLogin,{type:"click_confirm_login",isFirstLogin:c,eventType:G.Click,currency:n},G.Click),c&&((d=l==null?void 0:l.firstLogin)!=null&&d.reward)){let{rewardValue:m}=l.firstLogin.reward;Cr(i.toastMessage.i18nKey,{i18nParams:{text:i.toastMessage.usedText,coin:m},position:"top",duration:3e3})}q.emit(ar,{result:"SUCCESS",rewards:{claimedRewardValue:(f=(p=(u=l==null?void 0:l.firstLogin)==null?void 0:u.reward)==null?void 0:p.rewardValue)!=null?f:0,isFirstLogin:c!=null?c:!1,currency:t.currency}}),a.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:s})=>{U(i.trackEvents.modalHide,{eventType:G.Hide,currency:n},G.Hide);let l=s==="CANCEL"?"click_close":"click_watch_ads",c=s==="CANCEL"?i.trackEvents.clickClose:i.trackEvents.clickWatchAds;U(c,{type:l,eventType:G.Click,currency:n},G.Click),q.emit(ar,{result:"FAILED"}),a.destroy()}}}});yield i.frequencyUpdater()}catch(n){xe(new ph(n)),q.emit(ar,{result:"FAILED"})}}));var d3=()=>w(Qs,null,function*(){var t;let{response:e}=yield te("/api/base/global-config",{method:"GET",appendHostCookie:!0,responseType:"json"});return(t=e.data)==null?void 0:t.data})});var VX,$X,WX,qS=S(()=>{"use strict";VX=ie(IS()),$X=ie(DS()),WX=ie(MS())});function E3(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function k3(e){return typeof e=="string"}function A3(e){return typeof e=="undefined"}function S3(e){return A3(e)||e===null}function x3(e){return typeof e=="function"}function fx(e){let t=e,r=null,n=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r||(r=new t(...o)),r};return n.prototype=t.prototype,n}function go(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function tl(e,t){return t.map(r=>{if(r==="params"&&e[r]){let n=e[r];return Object.keys(n).reduce((i,o)=>(i[o]=String(n[o]),i),{})}return e[r]})}function D3(e){let t=e.location?tl(e.location,BS):null,r=e.target?tl(e.target,BS):null;return tl(b3(_3({},e),{location:t,target:r}),R3)}function L3(e){let t=e.events.map(n=>D3(n)),r=tl(e.device,N3);return[e.protocolVersion,t,r,e.project]}function M3(){if(typeof window=="undefined")return{getItem:()=>null,setItem:()=>{},removeItem:()=>{},clear:()=>{},length:0,key:()=>null};try{if(window.__joliboxLocalStorage__)return window.__joliboxLocalStorage__;let e=Object.getOwnPropertyDescriptor(window,"localStorage");if(e&&e.get){let n=e.get.call(window);return window.__joliboxLocalStorage__=n,n}if(e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(window),"localStorage"),e&&e.get)return e.get.call(window);let t=Window.prototype,r=Object.getOwnPropertyDescriptor(t,"localStorage");if(r&&r.get){let n=r.get.call(window);return window.__joliboxLocalStorage__=n,n}return localStorage}catch(e){return console.warn("Failed to get original localStorage, fallback to default implementation",e),localStorage}}function J3(e){return new Promise(t=>gx(e)(t))}function gx(e){return function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function G3(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new Io(n);return i.event})(function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e(i=>t(i)&&r.call(n,i),null)})}function H3(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)V3(e[n],t[n])}function V3(e,t){if(k3(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(x3(t)){try{if(e instanceof t)return}catch(r){}if(!S3(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function ot(e,t,r){return(t=$3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $3(e){var t=W3(e,"string");return typeof t=="symbol"?t:t+""}function W3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Xs(e,t,r){return(t=z3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function z3(e){var t=K3(e,"string");return typeof t=="symbol"?t:t+""}function K3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zs(e,t,r){return(t=Y3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y3(e){var t=Q3(e,"string");return typeof t=="symbol"?t:t+""}function Q3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sr(e,t,r){return(t=X3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X3(e){var t=Z3(e,"string");return typeof t=="symbol"?t:t+""}function Z3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function eH(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function tH(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}function sH(e,t){return Ue(e,0)^45?(((t<<2^Ue(e,0))<<2^Ue(e,1))<<2^Ue(e,2))<<2^Ue(e,3):0}function bx(e){return e.trim()}function lH(e,t){return(e=t.exec(e))?e[0]:e}function K(e,t,r){return e.replace(t,r)}function Yp(e,t){return e.indexOf(t)}function Ue(e,t){return e.charCodeAt(t)|0}function Eo(e,t,r){return e.slice(t,r)}function Ht(e){return e.length}function ff(e){return e.length}function el(e,t){return t.push(e),e}function cH(e,t){return e.map(t).join("")}function vl(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:ml,column:zn,length:a,return:""}}function _o(e,t){return aH(vl("",null,null,"",null,null,0),e,{length:-e.length},t)}function uH(){return Se}function dH(){return Se=lt>0?Ue(Kn,--lt):0,zn--,Se===10&&(zn=1,ml--),Se}function ht(){return Se=lt<wx?Ue(Kn,lt++):0,zn++,Se===10&&(zn=1,ml++),Se}function Vt(){return Ue(Kn,lt)}function rl(){return lt}function Ao(e,t){return Eo(Kn,e,t)}function ko(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Ix(e){return ml=zn=1,wx=Ht(Kn=e),lt=0,[]}function Ex(e){return Kn="",e}function nl(e){return bx(Ao(lt-1,Qp(e===91?e+2:e===40?e+1:e)))}function pH(e){for(;(Se=Vt())&&Se<33;)ht();return ko(e)>2||ko(Se)>3?"":" "}function fH(e,t){for(;--t&&ht()&&!(Se<48||Se>102||Se>57&&Se<65||Se>70&&Se<97););return Ao(e,rl()+(t<6&&Vt()==32&&ht()==32))}function Qp(e){for(;ht();)switch(Se){case e:return lt;case 34:case 39:e!==34&&e!==39&&Qp(Se);break;case 40:e===41&&Qp(e);break;case 92:ht();break}return lt}function hH(e,t){for(;ht()&&e+Se!==57&&!(e+Se===84&&Vt()===47););return"/*"+Ao(t,lt-1)+"*"+hl(e===47?e:ht())}function mH(e){for(;!ko(Vt());)ht();return Ao(e,lt)}function vH(e){return Ex(il("",null,null,null,[""],e=Ix(e),0,[0],e))}function il(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,g=1,y=1,v=1,b=0,k="",x=i,P=o,C=n,A=k;y;)switch(m=b,b=ht()){case 40:if(m!=108&&Ue(A,u-1)==58){Yp(A+=K(nl(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:A+=nl(b);break;case 9:case 10:case 13:case 32:A+=pH(m);break;case 92:A+=fH(rl()-1,7);continue;case 47:switch(Vt()){case 42:case 47:el(gH(hH(ht(),rl()),t,r),l);break;default:A+="/"}break;case 123*g:s[c++]=Ht(A)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+d:v==-1&&(A=K(A,/\f/g,"")),f>0&&Ht(A)-u&&el(f>32?WS(A+";",n,r,u-1):WS(K(A," ","")+";",n,r,u-2),l);break;case 59:A+=";";default:if(el(C=$S(A,t,r,c,d,i,s,k,x=[],P=[],u),o),b===123)if(d===0)il(A,t,C,C,x,o,u,s,P);else switch(p===99&&Ue(A,3)===110?100:p){case 100:case 108:case 109:case 115:il(e,C,C,n&&el($S(e,C,C,0,0,i,s,k,i,x=[],u),P),i,P,u,s,n?x:P);break;default:il(A,C,C,C,[""],P,0,s,P)}}c=d=f=0,g=v=1,k=A="",u=a;break;case 58:u=1+Ht(A),f=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&dH()==125)continue}switch(A+=hl(b),b*g){case 38:v=d>0?1:(A+="\f",-1);break;case 44:s[c++]=(Ht(A)-1)*v,v=1;break;case 64:Vt()===45&&(A+=nl(ht())),p=Vt(),d=u=Ht(k=A+=mH(rl())),b++;break;case 45:m===45&&Ht(A)==2&&(g=0)}}return o}function $S(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=ff(p),m=0,g=0,y=0;m<n;++m)for(var v=0,b=Eo(e,u+1,u=oH(g=a[m])),k=e;v<f;++v)(k=bx(g>0?p[v]+" "+b:K(b,/&\f/g,p[v])))&&(l[y++]=k);return vl(e,t,r,i===0?df:s,l,c,d)}function gH(e,t,r){return vl(e,t,r,yx,hl(uH()),Eo(e,2,-2),0)}function WS(e,t,r,n){return vl(e,t,r,pf,Eo(e,0,n),Eo(e,n+1,-1),n)}function Wn(e,t){for(var r="",n=ff(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function yH(e,t,r,n){switch(e.type){case iH:if(e.children.length)break;case nH:case pf:return e.return=e.return||e.value;case yx:return"";case _x:return e.return=e.value+"{"+Wn(e.children,n)+"}";case df:e.value=e.props.join(",")}return Ht(r=Wn(e.children,n))?e.return=e.value+"{"+r+"}":""}function _H(e){var t=ff(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function bH(e){return function(t){t.root||(t=t.return)&&e(t)}}function wH(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function kx(e,t){switch(sH(e,t)){case 5103:return z+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return z+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return z+e+ll+e+$e+e+e;case 6828:case 4268:return z+e+$e+e+e;case 6165:return z+e+$e+"flex-"+e+e;case 5187:return z+e+K(e,/(\w+).+(:[^]+)/,z+"box-$1$2"+$e+"flex-$1$2")+e;case 5443:return z+e+$e+"flex-item-"+K(e,/flex-|-self/,"")+e;case 4675:return z+e+$e+"flex-line-pack"+K(e,/align-content|flex-|-self/,"")+e;case 5548:return z+e+$e+K(e,"shrink","negative")+e;case 5292:return z+e+$e+K(e,"basis","preferred-size")+e;case 6060:return z+"box-"+K(e,"-grow","")+z+e+$e+K(e,"grow","positive")+e;case 4554:return z+K(e,/([^-])(transform)/g,"$1"+z+"$2")+e;case 6187:return K(K(K(e,/(zoom-|grab)/,z+"$1"),/(image-set)/,z+"$1"),e,"")+e;case 5495:case 3959:return K(e,/(image-set\([^]*)/,z+"$1$`$1");case 4968:return K(K(e,/(.+:)(flex-)?(.*)/,z+"box-pack:$3"+$e+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+z+e+e;case 4095:case 3583:case 4068:case 2532:return K(e,/(.+)-inline(.+)/,z+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ht(e)-1-t>6)switch(Ue(e,t+1)){case 109:if(Ue(e,t+4)!==45)break;case 102:return K(e,/(.+:)(.+)-([^]+)/,"$1"+z+"$2-$3$1"+ll+(Ue(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Yp(e,"stretch")?kx(K(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ue(e,t+1)!==115)break;case 6444:switch(Ue(e,Ht(e)-3-(~Yp(e,"!important")&&10))){case 107:return K(e,":",":"+z)+e;case 101:return K(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(Ue(e,14)===45?"inline-":"")+"box$3$1"+z+"$2$3$1"+$e+"$2box$3")+e}break;case 5936:switch(Ue(e,t+11)){case 114:return z+e+$e+K(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+$e+K(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+$e+K(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+e+$e+e+e}return e}function OH(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function cl(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return Rr={name:i.name,styles:i.styles,next:Rr},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Rr={name:a.name,styles:a.styles,next:Rr},a=a.next;var s=o.styles+";";return s}return DH(e,t,r)}}var l=r;if(t==null)return l;var c=t[l];return c!==void 0?c:l}function DH(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=cl(e,t,r[i])+";";else for(var o in r){var a=r[o];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=o+"{"+t[s]+"}":KS(s)&&(n+=qp(o)+":"+YS(o,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)KS(a[l])&&(n+=qp(o)+":"+YS(o,a[l])+";");else{var c=cl(e,t,a);switch(o){case"animation":case"animationName":{n+=qp(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function Up(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";Rr=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=cl(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=cl(r,t,e[s]),n){var l=o;i+=l[s]}QS.lastIndex=0;for(var c="",d;(d=QS.exec(i))!==null;)c+="-"+d[1];var u=OH(i)+c;return{name:u,styles:i,next:Rr}}function Sx(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}function XS(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function ZS(e,t,r){var n=[],i=Sx(e,n,r);return n.length<2?r:i+t(n)}function jH(e,t){Pe.__h&&Pe.__h(ft,e,tx||t),tx=0;var r=ft.__H||(ft.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Cx(e,t){var r=jH(Xp++,7);return BH(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function JH(){for(var e;e=xx.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ol),e.__H.__h.forEach(Zp),e.__H.__h=[]}catch(t){e.__H.__h=[],Pe.__e(t,e.__v)}}function GH(e){var t,r=function(){clearTimeout(n),lx&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);lx&&(t=requestAnimationFrame(r))}function ol(e){var t=ft,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ft=t}function Zp(e){var t=ft;e.__c=e.__(),ft=t}function BH(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function gl(){if(Nr>1)Nr--;else{for(var e,t=!1;bo!==void 0;){var r=bo;for(bo=void 0,ef++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&Ox(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(ef=0,Nr--,t)throw e}}function st(e){if(Nr>0)return e();Nr++;try{return e()}finally{gl()}}function Tx(e){if(ee!==void 0){var t=e.n;if(t===void 0||t.t!==ee)return t={i:0,S:e,p:ee.s,n:void 0,t:ee,e:void 0,x:void 0,r:t},ee.s!==void 0&&(ee.s.n=t),ee.s=t,e.n=t,32&ee.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=ee.s,t.n=void 0,ee.s.n=t,ee.s=t),t}}function Fe(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function re(e){return new Fe(e)}function Ox(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Px(e){for(var t=e.s;t!==void 0;t=t.n){var r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function Rx(e){for(var t=e.s,r=void 0;t!==void 0;){var n=t.p;t.i===-1?(t.S.U(t),n!==void 0&&(n.n=t.n),t.n!==void 0&&(t.n.p=n)):r=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=n}e.s=r}function Qn(e){Fe.call(this,void 0),this.x=e,this.s=void 0,this.g=ul-1,this.f=4}function wo(e){return new Qn(e)}function Nx(e){var t=e.u;if(e.u=void 0,typeof t=="function"){Nr++;var r=ee;ee=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,hf(e),n}finally{ee=r,gl()}}}function hf(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Nx(e)}function VH(e){if(ee!==this)throw new Error("Out-of-order effect");Rx(this),ee=e,this.f&=-2,8&this.f&&hf(this),gl()}function So(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function xo(e){var t=new So(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function Xn(e,t){N[e]=t.bind(null,N[e]||function(){})}function dl(e){jp&&jp(),jp=e&&e.S()}function Mx(e){var t=this,r=e.data,n=qx(r);n.value=r;var i=Cx(function(){for(var s=t,l=t.__v;l=l.__;)if(l.__c){l.__c.__$f|=4;break}var c=wo(function(){var f=n.value.value;return f===0?0:f===!0?"":f||""}),d=wo(function(){return!Array.isArray(c.value)&&!bc(c.value)}),u=xo(function(){if(this.N=Ux,d.value){var f=c.value;s.__v&&s.__v.__e&&s.__v.__e.nodeType===3&&(s.__v.__e.data=f)}}),p=t.__$u.d;return t.__$u.d=function(){u(),p.call(this)},[d,c]},[]),o=i[0],a=i[1];return o.value?a.peek():a.value}function $H(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=re(r);return{o:function(a,s){o.value=a,n=s},d:xo(function(){this.N=Ux;var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function qx(e){return Cx(function(){return re(e)},[])}function zH(){st(function(){for(var e;e=Lx.shift();)Dx.call(e)})}function Ux(){Lx.push(this)===1&&(N.requestAnimationFrame||WH)(zH)}function KH(e,t){let r=qi(e);_n(()=>{r.current=e},[e]),Mi(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function ge(e,t,r,n,i,o){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var c={type:e,props:l,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--YH,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return N.vnode&&N.vnode(c),c}function lr(e,t,r){return(t=l4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function l4(e){var t=c4(e,"string");return typeof t=="symbol"?t:t+""}function c4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cr(e,t,r){return(t=f4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f4(e){var t=h4(e,"string");return typeof t=="symbol"?t:t+""}function h4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ve(e,t,r){return(t=m4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m4(e){var t=v4(e,"string");return typeof t=="symbol"?t:t+""}function v4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function at(e,t,r){return(t=g4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g4(e){var t=y4(e,"string");return typeof t=="symbol"?t:t+""}function y4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zr(e,t,r){return(t=_4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _4(e){var t=b4(e,"string");return typeof t=="symbol"?t:t+""}function b4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Jp(e,t,r){return(t=w4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function w4(e){var t=I4(e,"string");return typeof t=="symbol"?t:t+""}function I4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ze(e,t,r){return(t=E4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E4(e){var t=k4(e,"string");return typeof t=="symbol"?t:t+""}function k4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ct(e,t,r){return(t=A4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A4(e){var t=S4(e,"string");return typeof t=="symbol"?t:t+""}function S4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var p3,sl,cx,ux,US,f3,h3,dx,m3,v3,FS,g3,y3,jS,_3,b3,w3,px,I3,C3,T3,JS,O3,GS,P3,hx,mx,vx,BS,R3,N3,Vn,HS,Gp,ue,q3,U3,yo,Io,F3,Hp,j3,Mp,B3,Vp,VS,Bn,$p,Wp,zp,Kp,rH,$e,ll,z,yx,df,pf,nH,_x,iH,oH,hl,aH,ml,zn,wx,lt,Se,Kn,IH,EH,kH,zS,AH,SH,xH,CH,TH,PH,RH,NH,Ax,KS,qp,YS,QS,Rr,LH,MH,qH,UH,FH,Yn,Xp,ft,Fp,ex,tx,xx,Pe,rx,nx,ix,ox,ax,sx,lx,HH,ee,bo,Nr,ef,ul,Dx,jp,Lx,WH,We,YH,QH,ur,tf,rf,al,XH,ZH,e4,t4,r4,n4,i4,o4,a4,s4,nf,$n,Hn,u4,d4,p4,of,Fx,af,sf,lf,cf,pl,uf,fl,YX,jx=S(()=>{"use strict";cn();ua();p3=Object.defineProperty,sl=Object.getOwnPropertySymbols,cx=Object.prototype.hasOwnProperty,ux=Object.prototype.propertyIsEnumerable,US=(e,t,r)=>t in e?p3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,f3=(e,t)=>{for(var r in t||(t={}))cx.call(t,r)&&US(e,r,t[r]);if(sl)for(var r of sl(t))ux.call(t,r)&&US(e,r,t[r]);return e},h3=(e,t)=>{var r={};for(var n in e)cx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&sl)for(var n of sl(e))t.indexOf(n)<0&&ux.call(e,n)&&(r[n]=e[n]);return r},dx=Object.defineProperty,m3=Object.defineProperties,v3=Object.getOwnPropertyDescriptors,FS=Object.getOwnPropertySymbols,g3=Object.prototype.hasOwnProperty,y3=Object.prototype.propertyIsEnumerable,jS=(e,t,r)=>t in e?dx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_3=(e,t)=>{for(var r in t||(t={}))g3.call(t,r)&&jS(e,r,t[r]);if(FS)for(var r of FS(t))y3.call(t,r)&&jS(e,r,t[r]);return e},b3=(e,t)=>m3(e,v3(t)),w3=(e,t)=>{for(var r in t)dx(e,r,{get:t[r],enumerable:!0})},px=(e,t,r,n)=>{for(var i=t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=a(i)||i);return i},I3=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new t};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let r=new Event("abort");this.signal.dispatchEvent(r)};let t=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(t.prototype,"aborted",{get:function(){return this._aborted}}),t.prototype.addEventListener=function(r,n){this._eventListeners[r]||(this._eventListeners[r]=[]),this._eventListeners[r].push(n)},t.prototype.removeEventListener=function(r,n){if(!this._eventListeners[r])return;let i=this._eventListeners[r].indexOf(n);i!==-1&&this._eventListeners[r].splice(i,1)},t.prototype.dispatchEvent=function(r){if(this._eventListeners[r.type])for(let n of this._eventListeners[r.type])n.call(this,r)},window.AbortController=e,window.AbortSignal=t}C3=(e=>(e[e.DEVELOPER_FILE_NOT_FOUND=0]="DEVELOPER_FILE_NOT_FOUND",e[e.INTERNAL_IOS_CAN_NOT_FOUND_PKG=1]="INTERNAL_IOS_CAN_NOT_FOUND_PKG",e[e.USER_IOS_LOAD_TIMEOUT=2]="USER_IOS_LOAD_TIMEOUT",e[e.INTERNAL_IOS_PKG_LOAD_ERROR=3]="INTERNAL_IOS_PKG_LOAD_ERROR",e[e.INTERNAL_IOS_PKG_PARSE_FAIL=4]="INTERNAL_IOS_PKG_PARSE_FAIL",e[e.USER_IOS_GET_EMPTY_DATA=5]="USER_IOS_GET_EMPTY_DATA",e[e.USER_ANDROID_GET_PKG_FAIL=6]="USER_ANDROID_GET_PKG_FAIL",e[e.DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE=7]="DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE",e))(C3||{});T3={log:go("log"),warn:go("warn"),info:go("info"),error:go("error"),debug:go("debug")};Object.assign(globalThis,{logger:T3});JS=Symbol.for("Jolibox.canIUseMap"),O3={};globalThis[JS]||(globalThis[JS]=O3);GS=Symbol.for("Jolibox.canIUseMap.native"),P3={};globalThis[GS]||(globalThis[GS]=P3);hx=(e=>(e[e.Other=0]="Other",e[e.Route=1]="Route",e[e.Click=2]="Click",e[e.View=3]="View",e[e.Expose=4]="Expose",e[e.Swipe=5]="Swipe",e[e.Input=6]="Input",e[e.Select=7]="Select",e[e.SwitchOn=8]="SwitchOn",e[e.SwitchOff=9]="SwitchOff",e[e.Submit=10]="Submit",e[e.Scroll=11]="Scroll",e[e.Hide=12]="Hide",e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(hx||{}),mx=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(mx||{}),vx=(e=>(e[e.App=0]="App",e[e.H5=1]="H5",e[e.Weapp=2]="Weapp",e[e.Alipay=3]="Alipay",e[e.Gcash=4]="Gcash",e[e.Dana=5]="Dana",e[e.Umma=6]="Umma",e[e.WebSDK=1e3]="WebSDK",e[e.AppSDK=1001]="AppSDK",e[e.Other=9999]="Other",e))(vx||{}),BS=["name","params"],R3=["name","type","location","target","extra","timestamp","userId"],N3=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];M3();Vn=typeof window=="undefined",HS=()=>!Vn&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK");!Vn&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),!Vn&&navigator.userAgent.includes("Android"),!Vn&&navigator.userAgent.includes("Mac"),!Vn&&navigator.userAgent.includes("FB_IAB"),!Vn&&!navigator.userAgent.includes("iPhone")&&navigator.userAgent.includes("Android");Gp=class Bp{constructor(t){this.element=t,this.next=Bp.Undefined,this.prev=Bp.Undefined}};Gp.Undefined=new Gp(void 0);ue=Gp,q3=class{constructor(){this._first=ue.Undefined,this._last=ue.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ue.Undefined}clear(){let e=this._first;for(;e!==ue.Undefined;){let t=e.next;e.prev=ue.Undefined,e.next=ue.Undefined,e=t}this._first=ue.Undefined,this._last=ue.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new ue(e);if(this._first===ue.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==ue.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ue.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ue.Undefined&&e.next!==ue.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ue.Undefined&&e.next===ue.Undefined?(this._first=ue.Undefined,this._last=ue.Undefined):e.next===ue.Undefined?(this._last=this._last.prev,this._last.next=ue.Undefined):e.prev===ue.Undefined&&(this._first=this._first.next,this._first.prev=ue.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ue.Undefined;)yield e.element,e=e.next}},U3=0,yo=class{constructor(e){this.value=e,this.id=U3++}},Io=class{constructor(e){this.options=e,this._size=0}dispose(e){var t,r;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof yo&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(r=(t=this.options)==null?void 0:t.onDidRemoveLastListener)==null||r.call(t))}get event(){return this._event!=null||(this._event=(e,t)=>{var r,n,i,o,a,s;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};t&&(e=e.bind(t));let l=new yo(e);return this._listeners?this._listeners instanceof yo?this._listeners=[this._listeners,l]:this._listeners.push(l):((n=(r=this.options)==null?void 0:r.onWillAddFirstListener)==null||n.call(r,this),this._listeners=l,(o=(i=this.options)==null?void 0:i.onDidFirstListener)==null||o.call(i,this)),(s=(a=this.options)==null?void 0:a.onDidAddListener)==null||s.call(a,this),this._size++,()=>{var c,d,u,p;if(!this._disposed){if(this._listeners instanceof yo)this._listeners.id===l.id&&(this._listeners=void 0,this._size=0,(d=(c=this.options)==null?void 0:c.onDidRemoveLastListener)==null||d.call(c));else if(this._listeners){let f=this._listeners.indexOf(l);f>=0&&(this._listeners.splice(f,1),this._size--,this._size===0&&((p=(u=this.options)==null?void 0:u.onDidRemoveLastListener)==null||p.call(u)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof yo?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},F3=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;var n;let i=(n=this.listeners.get(e))!=null?n:new Io,o=l=>t(...l.args),a=i.event(o);this.listerHandlerMap.set(t,{handler:o,dispose:a}),this.listeners.set(e,i);let s=this.cachedEventQueue.get(e);if(s&&r)for(let l of s)t(...l.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,t){let r=this.listerHandlerMap.get(t);r&&(r.dispose(),this.listerHandlerMap.delete(t))}emit(e){let t=this.listeners.get(e),r=this.cachedEventQueue.get(e);for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];r||(r=new q3,this.cachedEventQueue.set(e,r)),r.push({args:i}),t&&t.fire({event:e,args:i})}once(e,t){var r=this;let n=function(){t(...arguments),r.off(e,n)};this.on(e,n,!1)}},Hp={};w3(Hp,{None:()=>j3,filter:()=>G3,once:()=>gx,toPromise:()=>J3});j3=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Mp=Symbol.for("Jolibox.hostEmitter"),B3=()=>{let e=new F3;return globalThis[Mp]||(globalThis[Mp]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Mp]};B3();Vp=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Io,this.onDidRegisterCommand=this._onDidRegisterCommand.event,console.log("[Jolibox SDK] command registry")}registerCommand(e){if(!e)throw new Error("invalid command");if(e.metadata&&Array.isArray(e.metadata.args)){let r=[];for(let i of e.metadata.args)r.push(i.constraint);let n=e.handler;e.handler=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return H3(o,r),n(...o)}}let{id:t}=e;this._commands.get(t)&&console.info(`[Jolibox SDK] duplicated command is registered ${t}`),this._commands.set(t,e),this._onDidRegisterCommand.fire(t)}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;for(let t of this._commands.keys()){let r=this.getCommand(t);r&&e.set(t,r)}return e}};Vp=px([fx],Vp);VS=class{constructor(){this._onWillExecuteCommand=new Io,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Io,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Vp,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=E3(3e4)),this._starActivation}executeCommand(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return I3(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),Hp.toPromise(Hp.filter(this.registry.onDidRegisterCommand,i=>i===e))])]),this._tryExecuteCommand(e,r))})}executeCommandThowErr(e){if(!this.registry.getCommand(e))throw new Error(`command '${e}' not found`);let t=this.registry.getCommand(e);for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];this._onWillExecuteCommand.fire({commandId:e,args:n});let o=this.invokeFunction(t.handler,...n);return this._onDidExecuteCommand.fire({commandId:e,args:n}),o}_tryExecuteCommand(e,t){let r=this.registry.getCommand(e);if(!r)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}invokeFunction(e){try{for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e(...r)}finally{}}};VS=px([fx],VS);Bn=e=>e?function(){try{for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];e==null||e(...r)}catch(i){console.error("Error calling function",i)}}:()=>{console.log("wrapUserFunction: fn is undefined")},$p=class{constructor(t){ot(this,"context",void 0),ot(this,"continueCallback",void 0),ot(this,"adIsShowingCallback",void 0),ot(this,"isBeforeAdCalled",!1),ot(this,"isBeforeRewardCalled",!1),ot(this,"isAdDismissedCalled",!1),ot(this,"isAdViewedCalled",!1),ot(this,"isAfterAdCalled",!1),ot(this,"currentProvider",void 0),ot(this,"currentClientParams",void 0),ot(this,"adsHasResponse",!1),ot(this,"videoChecker",window.document.createElement("video")),ot(this,"contextInfo",void 0),ot(this,"wrapShowAdFn",r=>()=>{var n,i,o;this.adsHasResponse=!0;let a=!1;this.videoChecker.play().catch(()=>{a=!1}),a=!this.videoChecker.paused,this.videoChecker.pause(),this.context.track("CallShowAdFn",Object.assign({},{userEvent:a},this.paramsToTrack)),this.notifyAdsEvent("JOLIBOX_AD_CALL_BEFORE_REWARD",f3({userEvent:a},this.paramsToTrack)),HS()&&this.context.track("mmp_ad_impression",{ad_network:(i=(n=this.currentProvider)==null?void 0:n.name)!=null?i:"",ad_format:"rewarded",module:"game",game_id:this.contextInfo.objectId}),(o=this.adIsShowingCallback)==null||o.call(this,!0);let s=Bn(r);s==null||s()}),this.context=t,this.contextInfo=t.getContextInfo()}notifyAdsEvent(t,r){window.parent&&window.parent.postMessage({type:t,data:r},"*"),window.dispatchEvent(new CustomEvent(t,{detail:r}))}get paramsToTrack(){var t,r,n,i,o,a;return{provider:(r=(t=this.currentProvider)==null?void 0:t.name)!=null?r:null,type:(n=this.currentClientParams)==null?void 0:n.type,name:((i=this.currentClientParams)==null?void 0:i.type)==="preroll"?null:(a=(o=this.currentClientParams)==null?void 0:o.name)!=null?a:""}}wrapBeforeAd(t){return()=>{var r,n,i,o;if(this.adsHasResponse=!0,this.context.track("CallBeforeAd",this.paramsToTrack),this.notifyAdsEvent("JOLIBOX_AD_CALL_BEFORE_AD",this.paramsToTrack),!this.isBeforeAdCalled){this.isBeforeAdCalled=!0;let a=Bn(t);a==null||a(),((r=this.currentClientParams)==null?void 0:r.type)!=="reward"&&((n=this.adIsShowingCallback)==null||n.call(this,!0),HS()&&this.context.track("mmp_ad_impression",{ad_network:(o=(i=this.currentProvider)==null?void 0:i.name)!=null?o:"",ad_format:"interstitial",module:"game",game_id:this.contextInfo.objectId}))}}}wrapBeforeReward(t){return r=>{this.adsHasResponse=!0,this.isBeforeRewardCalled?this.wrapShowAdFn(r)():(this.isBeforeRewardCalled=!0,t==null||t(this.wrapShowAdFn(r)))}}wrapAdDismissed(t){return()=>{if(this.adsHasResponse=!0,!this.isAdDismissedCalled){this.isAdDismissedCalled=!0;let r=Bn(t);r==null||r()}}}wrapAdViewed(t){return()=>{if(this.adsHasResponse=!0,!this.isAdViewedCalled){this.isAdViewedCalled=!0;let r=Bn(t);r==null||r()}}}wrapAfterAd(t){return()=>{if(this.adsHasResponse=!0,this.context.track("CallAfterAd",this.paramsToTrack),this.notifyAdsEvent("JOLIBOX_AD_CALL_AFTER_AD",this.paramsToTrack),!this.isAfterAdCalled){this.isAfterAdCalled=!0;let r=Bn(t);r==null||r()}}}wrapAdBreakDone(t){return r=>{var n,i,o,a,s,l,c,d,u;switch(this.adsHasResponse=!0,this.context.track("CallAdBreakDone",{provider:(i=(n=this.currentProvider)==null?void 0:n.name)!=null?i:null,breakType:r.breakType,breakName:(o=r.breakName)!=null?o:"",breakFormat:r.breakFormat,breakStatus:r.breakStatus}),this.notifyAdsEvent("JOLIBOX_AD_CALL_AD_BREAK_DONE",{provider:(s=(a=this.currentProvider)==null?void 0:a.name)!=null?s:null,breakType:r.breakType,breakName:(l=r.breakName)!=null?l:"",breakFormat:r.breakFormat,breakStatus:r.breakStatus}),r.breakStatus){case"viewed":case"ignored":case"dismissed":case"error":{let p=Bn(t);p==null||p(r),(c=this.adIsShowingCallback)==null||c.call(this,!1),(d=this.continueCallback)==null||d.call(this,[!1,r]);break}default:{(u=this.continueCallback)==null||u.call(this,[!0,r]);break}}}}callAdBreakAndContinue(t,r,n,i){return w(this,null,function*(){return this.currentProvider=t,this.currentClientParams=r,this.adsHasResponse=!1,new Promise(o=>{this.continueCallback=o,this.adIsShowingCallback=i;let a;switch(r.type){case"preroll":{a={type:r.type,adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}case"reward":{a={name:r.name,type:r.type,beforeAd:this.wrapBeforeAd(r.beforeAd),beforeReward:this.wrapBeforeReward(r.beforeReward),adDismissed:this.wrapAdDismissed(r.adDismissed),adViewed:this.wrapAdViewed(r.adViewed),afterAd:this.wrapAfterAd(r.afterAd),adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}default:{a={name:r.name,type:r.type,beforeAd:this.wrapBeforeAd(r.beforeAd),afterAd:this.wrapAfterAd(r.afterAd),adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}}window.setTimeout(()=>{var s,l,c,d,u,p,f;this.adsHasResponse||(this.context.track("CallAdBreakTimeout",{type:r.type,provider:(l=(s=this.currentProvider)==null?void 0:s.name)!=null?l:null}),this.notifyAdsEvent("JOLIBOX_AD_CALL_AD_BREAK_TIMEOUT",{type:r.type,provider:(d=(c=this.currentProvider)==null?void 0:c.name)!=null?d:null}),(p=this.continueCallback)==null||p.call(this,[!0,{breakType:r.type,breakName:r.type==="preroll"?"":(u=r.name)!=null?u:"",breakFormat:r.type==="reward"?"reward":"interstitial",breakStatus:"timeout"}]),(f=this.adIsShowingCallback)==null||f.call(this,!1))},5e3),this.context.track("CallAdBreak",this.paramsToTrack),this.notifyAdsEvent("JOLIBOX_AD_CALL_AD_BREAK",this.paramsToTrack),t.adBreak(a,n),window.JoliTesterBridge&&console.log("joli-fullscreen-ad-show")})})}};Wp=class{constructor(t){Xs(this,"context",void 0),Xs(this,"adBreakIsShowing",!1),Xs(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),Xs(this,"reportPageHide",()=>{this.context.track("AdBreakHide",{context:"AdsActionDetection"})}),this.context=t,window.addEventListener("visibilitychange",()=>{document.hidden&&this.adBreakIsShowing&&this.reportPageHide()}),window.addEventListener("beforeunload",r=>{this.adBreakIsShowing&&this.reportPageJumpOut()})}};zp=class{constructor(t){Zs(this,"configs",null),Zs(this,"firstRun",!0),Zs(this,"context",void 0),Zs(this,"contextInfo",void 0),this.context=t,this.contextInfo=this.context.getContextInfo(),this.init()}init(){return w(this,null,function*(){try{this.configs=yield this.context.httpClient.get("/api/fe-configs/js-sdk/ads-channel-config",{})}catch(t){}})}shouldBypassCallingInterstitial(){var t,r;let n;if(!this.configs)this.init(),n=!this.firstRun;else{let i=(t=this.contextInfo.channel)!=null?t:"",o=this.configs[i],a=(r=o==null?void 0:o.interstitialRate)!=null?r:1;n=Math.random()<a}return this.firstRun=!1,n}};Kp=class{constructor(t,r){sr(this,"name","ADSENSE"),sr(this,"context",void 0),sr(this,"contextInfo",void 0),sr(this,"configured",!1),sr(this,"initParams",void 0),sr(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),sr(this,"adConfig",n=>{let i=n,{onReady:o}=i,a=h3(i,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),sr(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),sr(this,"adUnit",n=>w(this,null,function*(){var i,o,a,s;if(this.context.track("CallAdUnit",{adFormat:(o=(i=n.adFormat)==null?void 0:i.toString())!=null?o:null,fullWidthResponsive:(a=n.fullWidthResponsive)!=null?a:null}),document.querySelector("#jolibox-ads")){console.warn("Ad unit already set, skipping");return}let{el:l,slot:c,adFormat:d,fullWidthResponsive:u,style:p}=n,f;if(!l)throw new Error("targeting element is required");if(typeof l=="string"?f=document.querySelector(l):f=l,!f)throw new Error("targeting element not found");let m=c;if(m||(m=this.initParams.unitId),!m)throw new Error("slot is required");let g=typeof d=="object"&&Array.isArray(d)?d.join(", "):d,y=document.createElement("ins");if(y.className="adsbygoogle",y.id="jolibox-ads",y.style.display="block",y.setAttribute("data-ad-client",this.initParams.clientId),y.setAttribute("data-ad-slot",m),g&&y.setAttribute("data-ad-format",g),u&&y.setAttribute("data-full-width-responsive",u),p&&y.setAttribute("style",p),(s=this.contextInfo.testAdsMode)!=null?s:!1){let v=document.createElement("div");v.style.position="absolute",v.style.top="0",v.style.left="0",v.style.width="100%",v.style.height="100%",v.style.display="flex",v.style.justifyContent="center",v.style.alignItems="center",v.style.backgroundColor="rgba(0, 0, 0, 0.5)",v.style.color="white",v.innerHTML="Test Ad",y.style.position="relative",f.appendChild(y),y.appendChild(v)}else f.appendChild(y),new MutationObserver(v=>{v.forEach(b=>{if(b.type==="attributes"&&b.attributeName==="data-ad-status"){let k=y.getAttribute("data-ad-status");this.context.track("AdSenseUnitStatusChanged",{status:k!=null?k:"null"})}})}).observe(y,{attributes:!0,attributeFilter:["data-ad-status"]}),this.push({})})),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,window.adsbygoogle=window.adsbygoogle||[]}init(){return w(this,null,function*(){var t;if(this.context.track("CallAdsInit",{provider:this.name}),typeof window=="undefined")return;let r="google-adsense",n=(t=this.contextInfo.testAdsMode)!=null?t:!1;if(!document.getElementById(r)&&this.initParams.clientId){let i=document.createElement("script");i.id=r,i.async=!0,i.crossOrigin="anonymous",i.src=`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${this.initParams.clientId}`,n&&i.setAttribute("data-adbreak-test","on"),this.initParams.channelId&&i.setAttribute("data-ad-channel",this.initParams.channelId),this.initParams.admobInterstitialSlot&&i.setAttribute("data-admob-interstitial-slot",this.initParams.admobInterstitialSlot),this.initParams.admobRewardedSlot&&i.setAttribute("data-admob-rewarded-slot",this.initParams.admobRewardedSlot),this.initParams.admobOnly&&i.setAttribute("data-admob-ads-only","on"),document.head.appendChild(i),this.context.track("LoadAdsenseCompleted",null)}})}};rH=function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(tH(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=eH(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var n;return(n=r.parentNode)==null?void 0:n.removeChild(r)}),this.tags=[],this.ctr=0},e}(),$e="-ms-",ll="-moz-",z="-webkit-",yx="comm",df="rule",pf="decl",nH="@import",_x="@keyframes",iH="@layer",oH=Math.abs,hl=String.fromCharCode,aH=Object.assign;ml=1,zn=1,wx=0,lt=0,Se=0,Kn="";IH=function(e,t,r){for(var n=0,i=0;n=i,i=Vt(),n===38&&i===12&&(t[r]=1),!ko(i);)ht();return Ao(e,lt)},EH=function(e,t){var r=-1,n=44;do switch(ko(n)){case 0:n===38&&Vt()===12&&(t[r]=1),e[r]+=IH(lt-1,t,r);break;case 2:e[r]+=nl(n);break;case 4:if(n===44){e[++r]=Vt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=hl(n)}while(n=ht());return e},kH=function(e,t){return Ex(EH(Ix(e),t))},zS=new WeakMap,AH=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!zS.get(r))&&!n){zS.set(e,!0);for(var i=[],o=kH(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},SH=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};xH=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case pf:e.return=kx(e.value,e.length);break;case _x:return Wn([_o(e,{value:K(e.value,"@","@"+z)})],n);case df:if(e.length)return cH(e.props,function(i){switch(lH(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Wn([_o(e,{props:[K(i,/:(read-\w+)/,":"+ll+"$1")]})],n);case"::placeholder":return Wn([_o(e,{props:[K(i,/:(plac\w+)/,":"+z+"input-$1")]}),_o(e,{props:[K(i,/:(plac\w+)/,":"+ll+"$1")]}),_o(e,{props:[K(i,/:(plac\w+)/,$e+"input-$1")]})],n)}return""})}},CH=[xH],TH=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var g=m.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||CH,i={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),y=1;y<g.length;y++)i[g[y]]=!0;a.push(m)});var s,l=[AH,SH];{var c,d=[yH,bH(function(m){c.insert(m)})],u=_H(l.concat(n,d)),p=function(m){return Wn(vH(m),u)};s=function(m,g,y,v){c=y,p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new rH({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return f.sheet.hydrate(a),f};PH={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},RH=/[A-Z]|^ms/g,NH=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ax=function(e){return e.charCodeAt(1)===45},KS=function(e){return e!=null&&typeof e!="boolean"},qp=wH(function(e){return Ax(e)?e:e.replace(RH,"-$&").toLowerCase()}),YS=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(NH,function(r,n,i){return Rr={name:n,styles:i,next:Rr},n})}return PH[e]!==1&&!Ax(e)&&typeof t=="number"&&t!==0?t+"px":t};QS=/label:\s*([^\s;{]+)\s*(;|$)/g;LH=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},MH=function(e,t,r){LH(e,t);var n=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next;while(i!==void 0)}};qH=function(e){var t=TH(e);t.sheet.speedy=function(a){this.isSpeedy=a},t.compat=!0;var r=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=Up(s,t.registered,void 0);return MH(t,c),t.key+"-"+c.name},n=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=Up(s,t.registered),d="animation-"+c.name;return XS(t,{name:c.name,styles:"@keyframes "+d+"{"+c.styles+"}"}),d},i=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=Up(s,t.registered);XS(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return ZS(t.registered,r,UH(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){a.forEach(function(s){t.inserted[s]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:Sx.bind(null,t.registered),merge:ZS.bind(null,t.registered,r)}},UH=function e(t){for(var r="",n=0;n<t.length;n++){var i=t[n];if(i!=null){var o=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))o=e(i);else{o="";for(var a in i)i[a]&&a&&(o&&(o+=" "),o+=a)}break}default:o=i}o&&(r&&(r+=" "),r+=o)}}return r},FH=qH({key:"css"}),Yn=FH.css,tx=0,xx=[],Pe=N,rx=Pe.__b,nx=Pe.__r,ix=Pe.diffed,ox=Pe.__c,ax=Pe.unmount,sx=Pe.__;Pe.__b=function(e){ft=null,rx&&rx(e)},Pe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),sx&&sx(e,t)},Pe.__r=function(e){nx&&nx(e),Xp=0;var t=(ft=e.__c).__H;t&&(Fp===ft?(t.__h=[],ft.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(ol),t.__h.forEach(Zp),t.__h=[],Xp=0)),Fp=ft},Pe.diffed=function(e){ix&&ix(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(xx.push(t)!==1&&ex===Pe.requestAnimationFrame||((ex=Pe.requestAnimationFrame)||GH)(JH)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Fp=ft=null},Pe.__c=function(e,t){t.some(function(r){try{r.__h.forEach(ol),r.__h=r.__h.filter(function(n){return!n.__||Zp(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Pe.__e(n,r.__v)}}),ox&&ox(e,t)},Pe.unmount=function(e){ax&&ax(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{ol(n)}catch(i){t=i}}),r.__H=void 0,t&&Pe.__e(t,r.__v))};lx=typeof requestAnimationFrame=="function";HH=Symbol.for("preact-signals");ee=void 0,bo=void 0,Nr=0,ef=0,ul=0;Fe.prototype.brand=HH;Fe.prototype.h=function(){return!0};Fe.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};Fe.prototype.U=function(e){if(this.t!==void 0){var t=e.e,r=e.x;t!==void 0&&(t.x=r,e.e=void 0),r!==void 0&&(r.e=t,e.x=void 0),e===this.t&&(this.t=r)}};Fe.prototype.subscribe=function(e){var t=this;return xo(function(){var r=t.value,n=ee;ee=void 0;try{e(r)}finally{ee=n}})};Fe.prototype.valueOf=function(){return this.value};Fe.prototype.toString=function(){return this.value+""};Fe.prototype.toJSON=function(){return this.value};Fe.prototype.peek=function(){var e=ee;ee=void 0;try{return this.value}finally{ee=e}};Object.defineProperty(Fe.prototype,"value",{get:function(){var e=Tx(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(ef>100)throw new Error("Cycle detected");this.v=e,this.i++,ul++,Nr++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{gl()}}}});(Qn.prototype=new Fe).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===ul))return!0;if(this.g=ul,this.f|=1,this.i>0&&!Ox(this))return this.f&=-2,!0;var e=ee;try{Px(this),ee=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return ee=e,Rx(this),this.f&=-2,!0};Qn.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Fe.prototype.S.call(this,e)};Qn.prototype.U=function(e){if(this.t!==void 0&&(Fe.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};Qn.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(Qn.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Tx(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});So.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};So.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Nx(this),Px(this),Nr++;var e=ee;return ee=this,VH.bind(this,e)};So.prototype.N=function(){2&this.f||(this.f|=2,this.o=bo,bo=this)};So.prototype.d=function(){this.f|=8,1&this.f||hf(this)};Lx=[];xo(function(){Dx=this.N})();Mx.displayName="_st";Object.defineProperties(Fe.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Mx},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});Xn("__b",function(e,t){if(typeof t.type=="string"){var r,n=t.props;for(var i in n)if(i!=="children"){var o=n[i];o instanceof Fe&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});Xn("__r",function(e,t){dl();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return xo(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),dl(r),e(t)});Xn("__e",function(e,t,r,n){dl(),e(t,r,n)});Xn("diffed",function(e,t){dl();var r;if(typeof t.type=="string"&&(r=t.__e)){var n=t.__np,i=t.props;if(n){var o=r.U;if(o)for(var a in o){var s=o[a];s!==void 0&&!(a in n)&&(s.d(),o[a]=void 0)}else o={},r.U=o;for(var l in n){var c=o[l],d=n[l];c===void 0?(c=$H(r,l,d,i),o[l]=c):c.o(d,i)}}}e(t)});Xn("unmount",function(e,t){if(typeof t.type=="string"){var r=t.__e;if(r){var n=r.U;if(n){r.U=void 0;for(var i in n){var o=n[i];o&&o.d()}}}}else{var a=t.__c;if(a){var s=a.__$u;s&&(a.__$u=void 0,s.d())}}e(t)});Xn("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});ct.prototype.shouldComponentUpdate=function(e,t){var r=this.__$u,n=r&&r.s!==void 0;for(var i in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var o=2&this.__$f;if(!(n||o||4&this.__$f)||1&this.__$f)return!0}else if(!(n||4&this.__$f)||3&this.__$f)return!0;for(var a in e)if(a!=="__source"&&e[a]!==this.props[a])return!0;for(var s in this.props)if(!(s in e))return!0;return!1};WH=function(e){queueMicrotask(function(){queueMicrotask(e)})};We=Yn`
623
623
  inset: 0;
624
624
  clear: none;
625
625
  float: none;
@@ -637,7 +637,7 @@ or `);this.errors.push(o)}return n}},Ls=class extends ke{constructor(...t){super
637
637
  text-decoration: none;
638
638
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
639
639
  'Helvetica Neue', sans-serif;
640
- `;WH=0;zH=Yn`
640
+ `;YH=0;QH=Yn`
641
641
  ${We}
642
642
  position: fixed;
643
643
  top: 0;
@@ -712,7 +712,7 @@ or `);this.errors.push(o)}return n}},Ls=class extends ke{constructor(...t){super
712
712
  }
713
713
  }
714
714
  }
715
- `,ur=re(null),ef=re(""),tf=re(""),al=re(!1),KH=()=>{var e;(e=ur.value)==null||e.call(ur,!1)},YH=()=>{var e;(e=ur.value)==null||e.call(ur,!0)},QH=e=>w(void 0,null,function*(){let{title:t,content:r}=e;return ur.value&&(ur.value(!1),st(()=>{ur.value=null,al.value=!1})),st(()=>{ef.value=t||"",tf.value=r||"",al.value=!0}),new Promise(n=>{ur.value=i=>{st(()=>{ur.value=null,al.value=!1,ef.value="",tf.value=""}),n(i)}})}),XH=()=>al.value?ge("div",{className:zH,children:ge("div",{className:"card-wrapper",children:[ge("div",{className:"body",children:[ge("div",{className:"title",children:ef.value}),ge("div",{className:"content",children:tf.value})]}),ge("div",{className:"footer",children:[ge("button",{onClick:KH,className:"cancel-btn",children:"Cancel"}),ge("button",{onClick:YH,className:"confirm-btm",children:"Confirm"})]})]})}):null,ZH=Yn`
715
+ `,ur=re(null),tf=re(""),rf=re(""),al=re(!1),XH=()=>{var e;(e=ur.value)==null||e.call(ur,!1)},ZH=()=>{var e;(e=ur.value)==null||e.call(ur,!0)},e4=e=>w(void 0,null,function*(){let{title:t,content:r}=e;return ur.value&&(ur.value(!1),st(()=>{ur.value=null,al.value=!1})),st(()=>{tf.value=t||"",rf.value=r||"",al.value=!0}),new Promise(n=>{ur.value=i=>{st(()=>{ur.value=null,al.value=!1,tf.value="",rf.value=""}),n(i)}})}),t4=()=>al.value?ge("div",{className:QH,children:ge("div",{className:"card-wrapper",children:[ge("div",{className:"body",children:[ge("div",{className:"title",children:tf.value}),ge("div",{className:"content",children:rf.value})]}),ge("div",{className:"footer",children:[ge("button",{onClick:XH,className:"cancel-btn",children:"Cancel"}),ge("button",{onClick:ZH,className:"confirm-btm",children:"Confirm"})]})]})}):null,r4=Yn`
716
716
  ${We}
717
717
  position: relative;
718
718
  display: flex;
@@ -745,7 +745,7 @@ or `);this.errors.push(o)}return n}},Ls=class extends ke{constructor(...t){super
745
745
  cursor: not-allowed;
746
746
  }
747
747
  }
748
- `,e4=()=>{let e=re(!1),t=re(null);return{timerPaused:e,startTimestamp:t,startTimer:()=>{st(()=>{t.value=Date.now(),e.value=!1})}}},t4=e=>{let{countdown:t=0,mode:r,onClose:n,state:i}=e,{startTimestamp:o,timerPaused:a}=i,s=Dx(t);$H(()=>{s.value>0?s.value-=1:st(()=>{a.value=!0,s.value=0})},a.value?null:1e3);let l=wo(()=>{if(r==="interstitial"||r==="rewarded_insterstitial"||!o.value)return!1;let f=Date.now()-o.value;return s.value>0&&t-s.value>=5&&f>=5e3}),c=wo(()=>{if(r==="interstitial")return!0;if(!o.value)return!1;let f=Date.now()-o.value;return s.value<=0&&f>=(t-1)*1e3&&t>5}),d=wo(()=>r==="interstitial"?!1:!l.value&&!c.value),u=()=>w(void 0,null,function*(){if(a.value=!0,!(yield QH({title:"Are you sure?",content:"You will lose your reward if you dismiss this Ad."}))){a.value=!1;return}n("dismiss"),st(()=>{a.value=!0,s.value=0,o.value=null})}),p=()=>{n("viewed"),st(()=>{a.value=!0,s.value=0,o.value=null})};return ge("div",{className:ZH,children:[s.value>0&&r!=="interstitial"&&ge("div",{className:"timer",children:[s.value,"s"]}),ge("button",{onClick:l.value?u:c.value?p:void 0,disabled:d.value,children:ge("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ge("path",{d:"M13.3 0.710215C12.91 0.320215 12.28 0.320215 11.89 0.710215L6.99997 5.59022L2.10997 0.700215C1.71997 0.310215 1.08997 0.310215 0.699971 0.700215C0.309971 1.09021 0.309971 1.72022 0.699971 2.11022L5.58997 7.00022L0.699971 11.8902C0.309971 12.2802 0.309971 12.9102 0.699971 13.3002C1.08997 13.6902 1.71997 13.6902 2.10997 13.3002L6.99997 8.41021L11.89 13.3002C12.28 13.6902 12.91 13.6902 13.3 13.3002C13.69 12.9102 13.69 12.2802 13.3 11.8902L8.40997 7.00022L13.3 2.11022C13.68 1.73022 13.68 1.09022 13.3 0.710215Z",fill:"white"})})})]})},r4=()=>{let e=re(),t=re(),r=re(),n=re(),i=re(),o=re(!1),a=re(15),s=re(""),l=re("reward");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,visible:o,countdown:a,src:s,mode:l}},n4=Yn`
748
+ `,n4=()=>{let e=re(!1),t=re(null);return{timerPaused:e,startTimestamp:t,startTimer:()=>{st(()=>{t.value=Date.now(),e.value=!1})}}},i4=e=>{let{countdown:t=0,mode:r,onClose:n,state:i}=e,{startTimestamp:o,timerPaused:a}=i,s=qx(t);KH(()=>{s.value>0?s.value-=1:st(()=>{a.value=!0,s.value=0})},a.value?null:1e3);let l=wo(()=>{if(r==="interstitial"||r==="rewarded_insterstitial"||!o.value)return!1;let f=Date.now()-o.value;return s.value>0&&t-s.value>=5&&f>=5e3}),c=wo(()=>{if(r==="interstitial")return!0;if(!o.value)return!1;let f=Date.now()-o.value;return s.value<=0&&f>=(t-1)*1e3&&t>5}),d=wo(()=>r==="interstitial"?!1:!l.value&&!c.value),u=()=>w(void 0,null,function*(){if(a.value=!0,!(yield e4({title:"Are you sure?",content:"You will lose your reward if you dismiss this Ad."}))){a.value=!1;return}n("dismiss"),st(()=>{a.value=!0,s.value=0,o.value=null})}),p=()=>{n("viewed"),st(()=>{a.value=!0,s.value=0,o.value=null})};return ge("div",{className:r4,children:[s.value>0&&r!=="interstitial"&&ge("div",{className:"timer",children:[s.value,"s"]}),ge("button",{onClick:l.value?u:c.value?p:void 0,disabled:d.value,children:ge("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ge("path",{d:"M13.3 0.710215C12.91 0.320215 12.28 0.320215 11.89 0.710215L6.99997 5.59022L2.10997 0.700215C1.71997 0.310215 1.08997 0.310215 0.699971 0.700215C0.309971 1.09021 0.309971 1.72022 0.699971 2.11022L5.58997 7.00022L0.699971 11.8902C0.309971 12.2802 0.309971 12.9102 0.699971 13.3002C1.08997 13.6902 1.71997 13.6902 2.10997 13.3002L6.99997 8.41021L11.89 13.3002C12.28 13.6902 12.91 13.6902 13.3 13.3002C13.69 12.9102 13.69 12.2802 13.3 11.8902L8.40997 7.00022L13.3 2.11022C13.68 1.73022 13.68 1.09022 13.3 0.710215Z",fill:"white"})})})]})},o4=()=>{let e=re(),t=re(),r=re(),n=re(),i=re(),o=re(!1),a=re(15),s=re(""),l=re("reward");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,visible:o,countdown:a,src:s,mode:l}},a4=Yn`
749
749
  ${We}
750
750
  position: fixed;
751
751
  z-index: 2147483647;
@@ -764,7 +764,7 @@ or `);this.errors.push(o)}return n}},Ls=class extends ke{constructor(...t){super
764
764
  width: 100%;
765
765
  height: 100%;
766
766
  }
767
- `,i4=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,visible:s,countdown:l,src:c,mode:d}=t,u=Ui(()=>e4(),[]),[p,f]=la(!1),m=y=>{var v,b,k,x;s.value=!1,y==="dismiss"?(v=n.value)==null||v.call(n):y==="viewed"&&((b=i.value)==null||b.call(i)),(k=r.value)==null||k.call(r),(x=o.value)==null||x.call(o),f(!1)},g=bn(()=>{var y;p||(f(!0),(y=a.value)==null||y.call(a))},[p]);return Mi(()=>{p&&(d.value==="reward"||d.value==="rewarded_insterstitial")&&setTimeout(()=>{u.startTimer()},100)},[p,d.value]),s.value?ge("div",{className:n4,children:[ge(t4,{mode:d.value,onClose:m,countdown:l.value,state:u}),s.value&&ge("iframe",{src:c.value,onLoad:g,sandbox:"allow-scripts allow-same-origin allow-forms allow-modals allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-top-navigation allow-top-navigation-by-user-activation allow-top-navigation-to-custom-protocols"}),ge(XH,{})]}):null};rf=class{constructor(t,r){lr(this,"name","OKSPIN"),lr(this,"initialized",!1),lr(this,"initCompleter",null),lr(this,"context",void 0),lr(this,"initParams",void 0),lr(this,"adsOverlay",null),lr(this,"adsIsShowing",!1),lr(this,"lastUnDisplayedAdBreak",null),lr(this,"state",r4()),this.context=t,this.initParams=r}init(){return w(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg"),yu(ge(i4,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay),this.initialized=!0,(t=this.initCompleter)==null||t.call(this)})}adConfig(t){var r;if(this.initialized){(r=t.onReady)==null||r.call(t);return}this.initCompleter=()=>{var n;(n=t.onReady)==null||n.call(t)}}adBreak(t,r){return w(this,null,function*(){var n,i,o,a,s,l,c,d;if(!this.initialized||!this.adsOverlay||!r.params.url){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"});return}if(this.adsIsShowing){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}switch(t.type){case"preroll":{(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(a=t.beforeAd)==null||a.call(t);let u=()=>{var f;this.adsIsShowing=!1,(f=t.afterAd)==null||f.call(t)},p=()=>{var f;this.adsIsShowing=!1,(f=t.adBreakDone)==null||f.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})};st(()=>{this.adsIsShowing=!0,this.state.afterAd.value=u,this.state.adBreakDone.value=p,this.state.src.value=r.params.url,this.state.mode.value="interstitial",this.state.visible.value=!0});break}case"reward":{this.lastUnDisplayedAdBreak&&((l=(s=this.lastUnDisplayedAdBreak).adBreakDone)==null||l.call(s,{breakType:this.lastUnDisplayedAdBreak.type,breakName:this.lastUnDisplayedAdBreak.type==="preroll"?"":this.lastUnDisplayedAdBreak.name,breakFormat:this.lastUnDisplayedAdBreak.type==="reward"?"reward":"interstitial",breakStatus:"ignored"}),this.lastUnDisplayedAdBreak=null),(c=t.beforeAd)==null||c.call(t);let u=()=>{var v;this.adsIsShowing=!1,(v=t.afterAd)==null||v.call(t)},p={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},f=()=>{var v;this.adsIsShowing=!1,p.breakStatus="dismissed",(v=t.adDismissed)==null||v.call(t)},m=()=>{var v;this.adsIsShowing=!1,p.breakStatus="viewed",(v=t.adViewed)==null||v.call(t)},g=()=>{var v;this.adsIsShowing=!1,(v=t.adBreakDone)==null||v.call(t,p)};st(()=>{this.state.afterAd.value=u,this.state.adDismissed.value=f,this.state.adViewed.value=m,this.state.adBreakDone.value=g});let y=()=>{var v;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(v=t.adBreakDone)==null||v.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,st(()=>{var b;this.state.countdown.value=(b=r.params.countdown)!=null?b:15,this.state.src.value=r.params.url,this.state.mode.value="reward",this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,y);break}}})}},$n={};window.addEventListener("message",e=>{e.origin!=="https://ads.appsrockets.com"&&e.origin!=="https://stg-ads.appsrockets.com"||$n[e.data.type]&&$n[e.data.type].forEach(t=>{t(e.data.data)})});Hn=(e,t)=>{Mi(()=>($n[e]||($n[e]=new Set),$n[e].add(t),()=>{$n[e].delete(t)}),[e,t])},s4=()=>{let e=re(),t=re(),r=re(),n=re(),i=re(),o=re(),a=re(),s=re(!1),l=re("");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,adLinkClicked:o,adError:a,visible:s,src:l}},l4=Yn`
767
+ `,s4=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,visible:s,countdown:l,src:c,mode:d}=t,u=Ui(()=>n4(),[]),[p,f]=la(!1),m=y=>{var v,b,k,x;s.value=!1,y==="dismiss"?(v=n.value)==null||v.call(n):y==="viewed"&&((b=i.value)==null||b.call(i)),(k=r.value)==null||k.call(r),(x=o.value)==null||x.call(o),f(!1)},g=bn(()=>{var y;p||(f(!0),(y=a.value)==null||y.call(a))},[p]);return Mi(()=>{p&&(d.value==="reward"||d.value==="rewarded_insterstitial")&&setTimeout(()=>{u.startTimer()},100)},[p,d.value]),s.value?ge("div",{className:a4,children:[ge(i4,{mode:d.value,onClose:m,countdown:l.value,state:u}),s.value&&ge("iframe",{src:c.value,onLoad:g,sandbox:"allow-scripts allow-same-origin allow-forms allow-modals allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-top-navigation allow-top-navigation-by-user-activation allow-top-navigation-to-custom-protocols"}),ge(t4,{})]}):null};nf=class{constructor(t,r){lr(this,"name","OKSPIN"),lr(this,"initialized",!1),lr(this,"initCompleter",null),lr(this,"context",void 0),lr(this,"initParams",void 0),lr(this,"adsOverlay",null),lr(this,"adsIsShowing",!1),lr(this,"lastUnDisplayedAdBreak",null),lr(this,"state",o4()),this.context=t,this.initParams=r}init(){return w(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg"),_u(ge(s4,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay),this.initialized=!0,(t=this.initCompleter)==null||t.call(this)})}adConfig(t){var r;if(this.initialized){(r=t.onReady)==null||r.call(t);return}this.initCompleter=()=>{var n;(n=t.onReady)==null||n.call(t)}}adBreak(t,r){return w(this,null,function*(){var n,i,o,a,s,l,c,d;if(!this.initialized||!this.adsOverlay||!r.params.url){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"});return}if(this.adsIsShowing){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}switch(t.type){case"preroll":{(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(a=t.beforeAd)==null||a.call(t);let u=()=>{var f;this.adsIsShowing=!1,(f=t.afterAd)==null||f.call(t)},p=()=>{var f;this.adsIsShowing=!1,(f=t.adBreakDone)==null||f.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})};st(()=>{this.adsIsShowing=!0,this.state.afterAd.value=u,this.state.adBreakDone.value=p,this.state.src.value=r.params.url,this.state.mode.value="interstitial",this.state.visible.value=!0});break}case"reward":{this.lastUnDisplayedAdBreak&&((l=(s=this.lastUnDisplayedAdBreak).adBreakDone)==null||l.call(s,{breakType:this.lastUnDisplayedAdBreak.type,breakName:this.lastUnDisplayedAdBreak.type==="preroll"?"":this.lastUnDisplayedAdBreak.name,breakFormat:this.lastUnDisplayedAdBreak.type==="reward"?"reward":"interstitial",breakStatus:"ignored"}),this.lastUnDisplayedAdBreak=null),(c=t.beforeAd)==null||c.call(t);let u=()=>{var v;this.adsIsShowing=!1,(v=t.afterAd)==null||v.call(t)},p={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},f=()=>{var v;this.adsIsShowing=!1,p.breakStatus="dismissed",(v=t.adDismissed)==null||v.call(t)},m=()=>{var v;this.adsIsShowing=!1,p.breakStatus="viewed",(v=t.adViewed)==null||v.call(t)},g=()=>{var v;this.adsIsShowing=!1,(v=t.adBreakDone)==null||v.call(t,p)};st(()=>{this.state.afterAd.value=u,this.state.adDismissed.value=f,this.state.adViewed.value=m,this.state.adBreakDone.value=g});let y=()=>{var v;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(v=t.adBreakDone)==null||v.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,st(()=>{var b;this.state.countdown.value=(b=r.params.countdown)!=null?b:15,this.state.src.value=r.params.url,this.state.mode.value="reward",this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,y);break}}})}},$n={};window.addEventListener("message",e=>{e.origin!=="https://ads.appsrockets.com"&&e.origin!=="https://stg-ads.appsrockets.com"||$n[e.data.type]&&$n[e.data.type].forEach(t=>{t(e.data.data)})});Hn=(e,t)=>{Mi(()=>($n[e]||($n[e]=new Set),$n[e].add(t),()=>{$n[e].delete(t)}),[e,t])},u4=()=>{let e=re(),t=re(),r=re(),n=re(),i=re(),o=re(),a=re(),s=re(!1),l=re("");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,adLinkClicked:o,adError:a,visible:s,src:l}},d4=Yn`
768
768
  ${We}
769
769
  position: fixed;
770
770
  z-index: 2147483647;
@@ -783,7 +783,7 @@ or `);this.errors.push(o)}return n}},Ls=class extends ke{constructor(...t){super
783
783
  width: 100%;
784
784
  height: 100%;
785
785
  }
786
- `,c4=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adLinkClicked:s,visible:l,src:c}=t,[d,u]=la(!1),p=m=>{var g,y,v,b;u(!1),l.value=!1,m==="dismiss"?(g=n.value)==null||g.call(n):m==="viewed"&&((y=i.value)==null||y.call(i)),(v=r.value)==null||v.call(r),(b=o.value)==null||b.call(o)},f=()=>{var m;(m=a.value)==null||m.call(a)};return Hn("appsrockets_ad_dismissed",()=>p("dismiss")),Hn("appsrockets_ad_rewarded",()=>p("viewed")),Hn("appsrockets_ad_completed",()=>p("viewed")),Hn("appsrockets_ad_skipped",()=>p("viewed")),Hn("appsrockets_ad_clicked",m=>{var g;return(g=s.value)==null?void 0:g.call(s,m)}),Hn("appsrockets_ad_loaded",()=>u(!0)),l.value?ge("div",{className:l4,style:{display:d?"flex":"none"},children:l.value&&ge("iframe",{src:c.value,onLoad:f,allowFullScreen:!0,allow:"autoplay",sandbox:"allow-scripts allow-same-origin allow-forms allow-modals allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-top-navigation allow-top-navigation-by-user-activation allow-top-navigation-to-custom-protocols"})}):null};nf=class{constructor(t,r){cr(this,"name","APPSROCKETS"),cr(this,"initialized",!1),cr(this,"initCompleter",null),cr(this,"context",void 0),cr(this,"adsOverlay",null),cr(this,"adsIsShowing",!1),cr(this,"lastUnDisplayedAdBreak",null),cr(this,"state",s4()),cr(this,"processUrl",n=>{var i;let o=this.context.getContextInfo(),a=new URL(n),s=new URLSearchParams(a.search);return s.has("joliSource")||s.set("joliSource",o.joliSource),s.get("osType")||s.set("osType",o.osType),s.get("runtimeType")||s.set("runtimeType",o.runtimeType),s.get("mode")||s.set("mode","AFG"),s.get("deviceId")||s.set("deviceId",o.deviceId),s.get("statusBarHeight")||s.set("statusBarHeight",((i=this.context.getWindowInfo().statusBarHeight)!=null?i:0).toString()),a.search=s.toString(),a.toString()}),this.context=t}init(){return w(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg-appsrockets"),yu(ge(c4,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay),this.initialized=!0,(t=this.initCompleter)==null||t.call(this)})}adConfig(t){var r;if(this.initialized){(r=t.onReady)==null||r.call(t);return}this.initCompleter=()=>{var n;(n=t.onReady)==null||n.call(t)}}adBreak(t,r){var n,i,o,a,s,l,c,d;if(!this.initialized||!this.adsOverlay||!r.params.url){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"});return}if(this.adsIsShowing){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}let u=p=>{var f,m;(m=(f=this.context).handleLinkClicked)==null||m.call(f,p)};switch(t.type){case"preroll":{(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(a=t.beforeAd)==null||a.call(t);let p=()=>{var g;this.adsIsShowing=!1,(g=t.afterAd)==null||g.call(t)},f=()=>{var g;this.adsIsShowing=!1,(g=t.adBreakDone)==null||g.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})},m=()=>{var g;this.adsIsShowing=!1,(g=t.adBreakDone)==null||g.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"noAdPreloaded"})};st(()=>{this.adsIsShowing=!0,this.state.afterAd.value=p,this.state.adBreakDone.value=f,this.state.src.value=this.processUrl(r.params.url),this.state.adLinkClicked.value=u,this.state.adError.value=m,this.state.visible.value=!0});break}case"reward":{this.lastUnDisplayedAdBreak&&((l=(s=this.lastUnDisplayedAdBreak).adBreakDone)==null||l.call(s,{breakType:this.lastUnDisplayedAdBreak.type,breakName:this.lastUnDisplayedAdBreak.type==="preroll"?"":this.lastUnDisplayedAdBreak.name,breakFormat:this.lastUnDisplayedAdBreak.type==="reward"?"reward":"interstitial",breakStatus:"ignored"}),this.lastUnDisplayedAdBreak=null),(c=t.beforeAd)==null||c.call(t);let p=()=>{var k;this.adsIsShowing=!1,(k=t.afterAd)==null||k.call(t)},f={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},m=()=>{var k;this.adsIsShowing=!1,f.breakStatus="dismissed",(k=t.adDismissed)==null||k.call(t)},g=()=>{var k;this.adsIsShowing=!1,f.breakStatus="viewed",(k=t.adViewed)==null||k.call(t)},y=()=>{var k;this.adsIsShowing=!1,(k=t.adBreakDone)==null||k.call(t,f)},v=()=>{this.adsIsShowing=!1,f.breakStatus="noAdPreloaded"};st(()=>{this.state.afterAd.value=p,this.state.adDismissed.value=m,this.state.adViewed.value=g,this.state.adBreakDone.value=y,this.state.adLinkClicked.value=u,this.state.adError.value=v});let b=()=>{var k;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(k=t.adBreakDone)==null||k.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,st(()=>{this.state.src.value=this.processUrl(r.params.url),this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,b);break}}}},Mx=()=>{window.googletag=window.googletag||{cmd:[]},window.googletag.pubadsReady||window.googletag.cmd.push(()=>{window.googletag.enableServices()})};of=class{constructor(t,r,n){Ve(this,"adUnit",void 0),Ve(this,"project",void 0),Ve(this,"keyValue",void 0),Ve(this,"adsContext",null),Ve(this,"rewardedSlot",null),Ve(this,"rewardedPayload",null),Ve(this,"readyEvent",null),Ve(this,"withCommand",function(){googletag.cmd.push(...arguments)}),Ve(this,"init",()=>{var i;this.rewardedSlot=googletag.defineOutOfPageSlot(this.adUnit,googletag.enums.OutOfPageFormat.REWARDED),this.rewardedSlot&&(this.rewardedSlot.addService(googletag.pubads()),googletag.pubads().addEventListener("rewardedSlotReady",this.handleSlotReady),googletag.pubads().addEventListener("rewardedSlotClosed",this.handleSlotClosed),googletag.pubads().addEventListener("rewardedSlotGranted",this.handleSlotGranted),googletag.pubads().addEventListener("slotRenderEnded",this.handleSlotRenderEnded),this.keyValue&&(Object.keys(this.keyValue).forEach(o=>{var a;(a=this.rewardedSlot)==null||a.setTargeting(o,this.keyValue[o])}),Object.keys(this.keyValue).includes("project")||(i=this.rewardedSlot)==null||i.setTargeting("project",this.project)),googletag.display(this.rewardedSlot))}),Ve(this,"destroy",i=>{var o,a;this.rewardedPayload=null,this.readyEvent=null,googletag.pubads().removeEventListener("rewardedSlotReady",this.handleSlotReady),googletag.pubads().removeEventListener("rewardedSlotClosed",this.handleSlotClosed),googletag.pubads().removeEventListener("rewardedSlotGranted",this.handleSlotGranted),googletag.pubads().removeEventListener("slotRenderEnded",this.handleSlotRenderEnded),this.rewardedSlot&&(googletag.destroySlots([this.rewardedSlot]),this.rewardedSlot=null),(a=(o=this.adsContext)==null?void 0:o.adBreakDone)==null||a.call(o,i),this.adsContext=null}),Ve(this,"reinit",i=>{this.destroy(i),this.init()}),Ve(this,"handleSlotReady",i=>{i.slot===this.rewardedSlot&&(this.readyEvent=i)}),Ve(this,"handleSlotClosed",i=>{var o,a;if(this.adsContext&&i.slot===this.rewardedSlot){let s=this.rewardedPayload?"viewed":"dismissed";s==="viewed"?this.adsContext.adViewed():this.adsContext.adDismissed(),(a=(o=this.adsContext).afterAd)==null||a.call(o),this.withCommand(()=>{this.reinit(s)})}}),Ve(this,"handleSlotGranted",i=>{this.adsContext&&i.slot===this.rewardedSlot&&(this.rewardedPayload=i.payload)}),Ve(this,"handleSlotRenderEnded",i=>{i.slot===this.rewardedSlot&&i.isEmpty&&this.adsContext&&this.withCommand(()=>{this.reinit("frequencyCapped")})}),Ve(this,"requestAds",i=>{this.withCommand(()=>{if(this.adsContext&&this.reinit("ignored"),this.rewardedSlot||this.init(),this.adsContext=i,!this.rewardedSlot){this.reinit("notReady");return}if(this.readyEvent)this.adsContext.beforeReward(()=>{var o,a,s;(a=(o=this.adsContext)==null?void 0:o.beforeAd)==null||a.call(o),(s=this.readyEvent)==null||s.makeRewardedVisible()});else{let o=a=>{a.slot===this.rewardedSlot&&this.adsContext&&(googletag.pubads().removeEventListener("rewardedSlotReady",o),this.readyEvent=a,this.adsContext.beforeReward(()=>{var s,l,c;(l=(s=this.adsContext)==null?void 0:s.beforeAd)==null||l.call(s),(c=this.readyEvent)==null||c.makeRewardedVisible()}))};googletag.pubads().addEventListener("rewardedSlotReady",o),window.setTimeout(()=>{this.readyEvent||(this.reinit("timeout"),googletag.pubads().removeEventListener("rewardedSlotReady",o))},500)}})}),this.adUnit=t,this.project=r,this.keyValue=n,Mx(),this.withCommand(()=>{this.init()})}};af=class{constructor(t,r,n){var i=this;at(this,"adUnit",void 0),at(this,"project",void 0),at(this,"keyValue",void 0),at(this,"adsContext",null),at(this,"gamingInterstitialSlot",null),at(this,"readyEvent",null),at(this,"isRetrying",!1),at(this,"withCommand",function(){googletag.cmd.push(...arguments)}),at(this,"init",()=>{var o;this.gamingInterstitialSlot=googletag.defineOutOfPageSlot(this.adUnit,googletag.enums.OutOfPageFormat.GAME_MANUAL_INTERSTITIAL),this.gamingInterstitialSlot&&(this.gamingInterstitialSlot.addService(googletag.pubads()),googletag.pubads().addEventListener("gameManualInterstitialSlotReady",this.handleSlotReady),googletag.pubads().addEventListener("gameManualInterstitialSlotClosed",this.handleSlotClosed),this.keyValue&&(Object.keys(this.keyValue).forEach(a=>{var s;(s=this.gamingInterstitialSlot)==null||s.setTargeting(a,this.keyValue[a])}),Object.keys(this.keyValue).includes("project")||(o=this.gamingInterstitialSlot)==null||o.setTargeting("project",this.project)),googletag.display(this.gamingInterstitialSlot))}),at(this,"destroy",function(o){var a,s;(!(arguments.length>1&&arguments[1]!==void 0)||arguments[1])&&((s=(a=i.adsContext)==null?void 0:a.onEnd)==null||s.call(a,o),i.adsContext=null),googletag.pubads().removeEventListener("gameManualInterstitialSlotReady",i.handleSlotReady),googletag.pubads().removeEventListener("gameManualInterstitialSlotClosed",i.handleSlotClosed),i.gamingInterstitialSlot&&(googletag.destroySlots([i.gamingInterstitialSlot]),i.gamingInterstitialSlot=null,i.readyEvent=null)}),at(this,"reinit",function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;i.destroy(o,a),i.init()}),at(this,"handleSlotReady",o=>{this.gamingInterstitialSlot===o.slot&&(this.readyEvent=o)}),at(this,"handleSlotClosed",o=>{var a,s;this.adsContext&&this.gamingInterstitialSlot===o.slot&&((s=(a=this.adsContext).afterAd)==null||s.call(a),this.withCommand(()=>{this.reinit("viewed")}))}),at(this,"requestAds",o=>{this.withCommand(()=>{var a,s,l;if(this.adsContext&&this.reinit("ignored"),this.gamingInterstitialSlot||this.init(),this.adsContext=o,!this.gamingInterstitialSlot){this.reinit("notReady");return}this.readyEvent?((a=o.beforeAd)==null||a.call(o),this.readyEvent.makeGameManualInterstitialVisible()):((l=(s=this.adsContext).onEnd)==null||l.call(s,"frequencyCapped"),this.adsContext=null,this.isRetrying||(this.isRetrying=!0,window.setTimeout(()=>{this.readyEvent||this.withCommand(()=>{this.reinit("frequencyCapped",!1)}),this.isRetrying=!1},31e3)))})}),Mx(),this.adUnit=t,this.project=r,this.keyValue=n,this.withCommand(()=>{this.init()})}};sf=class{constructor(t,r){Zr(this,"name","GOOGLE_GPT"),Zr(this,"context",void 0),Zr(this,"contextInfo",void 0),Zr(this,"initParams",void 0),Zr(this,"rewardAdManager",void 0),Zr(this,"interstitialManager",void 0),Zr(this,"insertScript",()=>{let n="jolibox-google-gpt",i=document.getElementById(n);i||(i=window.document.createElement("script"),i.id=n,i.async=!0,i.src="https://securepubads.g.doubleclick.net/tag/js/gpt.js",i.crossOrigin="anonymous",document.head.appendChild(i))}),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,this.insertScript()}init(){return w(this,null,function*(){let t=this.contextInfo.testAdsMode?"/22639388115/rewarded_web_example":this.initParams.rewardedSlot,r=this.contextInfo.testAdsMode?"/6355419/Travel/Europe/France/Paris":this.initParams.interstitialSlot,n=`minigame-${this.contextInfo.runtimeType==="APP"?"app":"h5"}`;t&&(this.rewardAdManager=new of(t,n,this.initParams.keyValue)),r&&(this.interstitialManager=new af(r,n,this.initParams.keyValue))})}adConfig(t,r){}adBreak(t,r){var n,i,o;switch(t.type){case"preroll":{(n=t.adBreakDone)==null||n.call(t,{breakType:"preroll",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"reward":{if(!this.rewardAdManager){(i=t.adBreakDone)==null||i.call(t,{breakName:t.name,breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}this.rewardAdManager.requestAds({beforeAd:t.beforeAd,afterAd:t.afterAd,adDismissed:t.adDismissed,adViewed:t.adViewed,beforeReward:t.beforeReward,adBreakDone:a=>{var s;(s=t.adBreakDone)==null||s.call(t,{breakName:t.name,breakType:t.type,breakFormat:"reward",breakStatus:a})}});break}default:{if(!this.interstitialManager){(o=t.adBreakDone)==null||o.call(t,{breakName:t.name,breakType:t.type,breakFormat:"interstitial",breakStatus:"noAdPreloaded"});return}this.interstitialManager.requestAds({beforeAd:t.beforeAd,afterAd:t.afterAd,onEnd:a=>{var s;(s=t.adBreakDone)==null||s.call(t,{breakName:t.name,breakType:t.type,breakFormat:"interstitial",breakStatus:a})}});break}}}};lf=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";jp(this,"context",void 0),jp(this,"placement","GAME"),jp(this,"contextInfo",void 0),this.context=t,this.placement=r,this.contextInfo=this.context.getContextInfo()}getLocation(){let t=new URLSearchParams(window.location.search),r={};return t.forEach((n,i)=>{r[i]=n}),{name:this.placement==="GAME"?"GamePage":"DramaPage",params:r}}getDevice(){var t,r,n,i;return{platform:(t=this.contextInfo.platform)!=null?t:fx.WebSDK,os:this.contextInfo.osType+"_"+this.contextInfo.runtimeType,appVersion:"1.0.0",appId:(r=this.contextInfo.hostAppId)!=null?r:"1",model:(n=this.contextInfo.deviceModel)!=null?n:"UnknownModel",brand:(i=this.contextInfo.deviceBrand)!=null?i:"UnknownBrand",uuid:this.contextInfo.deviceId,jsSdkVersion:"1.0.0",extra:{}}}serialize(t,r){var n;let i={protocolVersion:"1.0.0",events:[{name:t,type:dx.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:px.WebSDK};return R3(i)}};dl=class{constructor(t){Ze(this,"context",void 0),Ze(this,"adsTrackSerializer",void 0),Ze(this,"contextInfo",void 0),this.context=t,this.contextInfo=t.getContextInfo(),this.adsTrackSerializer=new lf(this.context)}getRequestContextData(t){var r,n;this.contextInfo=this.context.getContextInfo();let{width:i,height:o}=this.context.getWindowInfo();return{report:JSON.stringify(this.adsTrackSerializer.serialize(t,{sessionId:this.contextInfo.sessionId,objectType:this.contextInfo.objectType,objectId:this.contextInfo.objectId,testAdsMode:this.contextInfo.testAdsMode})),osType:this.contextInfo.osType,runtimeType:this.contextInfo.runtimeType,sessionId:this.contextInfo.sessionId,deviceId:this.contextInfo.deviceId,adId:this.contextInfo.adId,deviceModel:(r=this.contextInfo.deviceModel)!=null?r:"UnknownModel",deviceBrand:(n=this.contextInfo.deviceBrand)!=null?n:"UnknownBrand",dimension:{width:i,height:o}}}getRequestBizParams(){return{objectType:this.contextInfo.objectType,objectId:this.contextInfo.objectId}}},cf=class{constructor(t,r){var n=this;Ze(this,"context",void 0),Ze(this,"contextInfo",void 0),Ze(this,"requestContext",void 0),Ze(this,"pendingAFGAdsInfo",{REWARD:Promise.resolve(null),INTERSTITIAL:Promise.resolve(null)}),Ze(this,"pendingAFVAdsInfo",Promise.resolve(null)),Ze(this,"doFetchAdsInfo",i=>w(this,null,function*(){let o=i==="afv"?"AdsAFVSDKRequest":"AdsAFGSDKAdBreak",a=i==="afv"?"REWARD_INTERSTITIAL":i==="reward"?"REWARD":"INTERSTITIAL",s=i==="afv"?void 0:"cached",{data:l,code:c}=yield this.context.httpClient.post("/api/ads/info",{data:{contextData:this.requestContext.getRequestContextData(o),bizParams:this.requestContext.getRequestBizParams(),adsType:a,testAdsMode:this.contextInfo.testAdsMode,name:s}});return c==="SUCCESS"||c==="BYPASS_ADS"?{code:c,data:l}:null})),Ze(this,"cacheRewardInfo",()=>{this.pendingAFGAdsInfo.REWARD=this.doFetchAdsInfo("reward").catch(()=>null)}),Ze(this,"cacheInterstitialInfo",i=>{this.pendingAFGAdsInfo.INTERSTITIAL=this.doFetchAdsInfo(i).catch(()=>null)}),Ze(this,"cacheAFVInfo",()=>{this.pendingAFVAdsInfo=this.doFetchAdsInfo("afv").catch(()=>null)}),Ze(this,"cacheNextAFGAdsInfo",i=>w(this,null,function*(){i==="reward"?this.cacheRewardInfo():this.cacheInterstitialInfo(i)})),Ze(this,"getAFGAdsInfo",i=>w(this,null,function*(){let o=yield i==="reward"?this.pendingAFGAdsInfo.REWARD:this.pendingAFGAdsInfo.INTERSTITIAL;return this.cacheNextAFGAdsInfo(i),o})),Ze(this,"getAFVAdsInfo",function(){return w(this,arguments,function*(){if(!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]){let i=yield n.pendingAFVAdsInfo;return n.cacheAFVInfo(),i}else return n.cacheAFVInfo(),yield n.pendingAFVAdsInfo})}),this.context=t,this.contextInfo=this.context.getContextInfo(),this.requestContext=new dl(t),r!=null&&r.reward&&this.cacheRewardInfo(),r!=null&&r.interstitial&&this.cacheInterstitialInfo("start"),r!=null&&r.afv&&this.cacheAFVInfo()}};pl=class{constructor(t){if(Ct(this,"context",void 0),Ct(this,"contextInfo",void 0),Ct(this,"providers",{}),Ct(this,"channelPolicy",void 0),Ct(this,"adsActionDetection",void 0),Ct(this,"requestContext",void 0),Ct(this,"adsRequest",void 0),Ct(this,"initialized",!1),Ct(this,"adsIsShowing",!1),Ct(this,"lastAdBreak",void 0),Ct(this,"initializedTimeStamp",Date.now()),t)this.context=t,this.channelPolicy=new Wp(this.context),this.adsActionDetection=new $p(this.context),this.contextInfo=this.context.getContextInfo(),this.adsRequest=new cf(t),this.requestContext=new dl(t);else throw new Error("JoliboxAdsForGame requires a configuration object")}init(t){return w(this,null,function*(){window.adsbygoogle=window.adsbygoogle||[];let{data:r}=yield this.context.httpClient.post("/api/ads/init",{data:{contextData:this.requestContext.getRequestContextData("AdsAFGSDKInit"),bizParams:this.requestContext.getRequestBizParams(),testAdsMode:this.contextInfo.testAdsMode}});if((r==null?void 0:r.length)>0)for(let n of r)switch(n.provider){case"GOOGLE_GPT":{let i=new sf(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"ADSENSE":case"ADSENSE_ADMOB":{let i=new zp(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"OKSPIN":{let i=new rf(this.context,n.params);yield i.init(),this.providers.OKSPIN=i;break}case"APPSROCKETS":{let i=new nf(this.context,n.params);yield i.init(),this.providers.APPSROCKETS=i;break}}this.adsRequest.cacheInterstitialInfo("start"),this.adsRequest.cacheRewardInfo(),this.initialized=!0})}adConfig(t){this.providers.ADSENSE?this.providers.ADSENSE.adConfig(t):window.adsbygoogle.push(t)}adBreak(t){return w(this,null,function*(){var r,n,i,o,a,s,l,c,d,u,p,f,m,g;let y=Date.now();if(y-this.initializedTimeStamp<3e3){(r=t.adBreakDone)==null||r.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}if(this.lastAdBreak&&y-this.lastAdBreak<500){console.warn("[Jolibox SDK Ads] You can't call adBreak too frequently"),(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}if(this.lastAdBreak=y,this.adsIsShowing){console.warn("[Jolibox SDK Ads] You can't call adBreak while ad is showing"),(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}if(this.initialized||(yield this.init()),t.type!=="reward"&&!this.channelPolicy.shouldBypassCallingInterstitial()){(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"skipInterstitials",breakFormat:"interstitial",breakStatus:"viewed"});return}if(!this.context.checkNetwork()){(a=t.adBreakDone)==null||a.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}try{let v=yield this.adsRequest.getAFGAdsInfo(t.type),b=v==null?void 0:v.data,k=v==null?void 0:v.code;if(k==="BYPASS_ADS"){switch(t.type){case"preroll":{(s=t.adBreakDone)==null||s.call(t,{breakType:t.type,breakFormat:"interstitial",breakStatus:"viewed"});break}case"reward":{t.beforeReward(()=>{var x,P,C,S;(x=t.beforeAd)==null||x.call(t),(P=t.adViewed)==null||P.call(t),(C=t.afterAd)==null||C.call(t),(S=t.adBreakDone)==null||S.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"viewed"})});break}default:{(l=t.beforeAd)==null||l.call(t),(c=t.afterAd)==null||c.call(t),(d=t.adBreakDone)==null||d.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"});break}}return}if(!b||k!=="SUCCESS"){(u=t.adBreakDone)==null||u.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}else{let x=b.sort((O,J)=>O.seq-J.seq);if(x.length===0){(p=t.adBreakDone)==null||p.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}let P=!0,C=null,S=new Vp(this.context);for(this.adsActionDetection.adBreakIsShowing=!0;x.length>0;){let O=x.shift(),J=this.providers[O.provider];if(J){let[Ke,M]=yield S.callAdBreakAndContinue(J,t,O,Re=>{var Ne;this.adsIsShowing=Re,(Ne=this.context.eventEmitter)==null||Ne.emit("isAdShowing",Re)});P=Ke,C=M}else P=!0,C={breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"};if(!P)break}P&&C&&((f=t.adBreakDone)==null||f.call(t,C))}}catch(v){(m=t.adBreakDone)==null||m.call(t,{breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}finally{this.adsIsShowing=!1,(g=this.context.eventEmitter)==null||g.emit("isAdShowing",!1),this.adsActionDetection.adBreakIsShowing=!1}})}adUnit(t){console.warn("This method has been deprecated. We will not support AdSense AdUnit in the future.")}},WX=Yn`
786
+ `,p4=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adLinkClicked:s,visible:l,src:c}=t,[d,u]=la(!1),p=m=>{var g,y,v,b;u(!1),l.value=!1,m==="dismiss"?(g=n.value)==null||g.call(n):m==="viewed"&&((y=i.value)==null||y.call(i)),(v=r.value)==null||v.call(r),(b=o.value)==null||b.call(o)},f=()=>{var m;(m=a.value)==null||m.call(a)};return Hn("appsrockets_ad_dismissed",()=>p("dismiss")),Hn("appsrockets_ad_rewarded",()=>p("viewed")),Hn("appsrockets_ad_completed",()=>p("viewed")),Hn("appsrockets_ad_skipped",()=>p("viewed")),Hn("appsrockets_ad_clicked",m=>{var g;return(g=s.value)==null?void 0:g.call(s,m)}),Hn("appsrockets_ad_loaded",()=>u(!0)),l.value?ge("div",{className:d4,style:{display:d?"flex":"none"},children:l.value&&ge("iframe",{src:c.value,onLoad:f,allowFullScreen:!0,allow:"autoplay",sandbox:"allow-scripts allow-same-origin allow-forms allow-modals allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-top-navigation allow-top-navigation-by-user-activation allow-top-navigation-to-custom-protocols"})}):null};of=class{constructor(t,r){cr(this,"name","APPSROCKETS"),cr(this,"initialized",!1),cr(this,"initCompleter",null),cr(this,"context",void 0),cr(this,"adsOverlay",null),cr(this,"adsIsShowing",!1),cr(this,"lastUnDisplayedAdBreak",null),cr(this,"state",u4()),cr(this,"processUrl",n=>{var i;let o=this.context.getContextInfo(),a=new URL(n),s=new URLSearchParams(a.search);return s.has("joliSource")||s.set("joliSource",o.joliSource),s.get("osType")||s.set("osType",o.osType),s.get("runtimeType")||s.set("runtimeType",o.runtimeType),s.get("mode")||s.set("mode","AFG"),s.get("deviceId")||s.set("deviceId",o.deviceId),s.get("statusBarHeight")||s.set("statusBarHeight",((i=this.context.getWindowInfo().statusBarHeight)!=null?i:0).toString()),a.search=s.toString(),a.toString()}),this.context=t}init(){return w(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg-appsrockets"),_u(ge(p4,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay),this.initialized=!0,(t=this.initCompleter)==null||t.call(this)})}adConfig(t){var r;if(this.initialized){(r=t.onReady)==null||r.call(t);return}this.initCompleter=()=>{var n;(n=t.onReady)==null||n.call(t)}}adBreak(t,r){var n,i,o,a,s,l,c,d;if(!this.initialized||!this.adsOverlay||!r.params.url){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"});return}if(this.adsIsShowing){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}let u=p=>{var f,m;(m=(f=this.context).handleLinkClicked)==null||m.call(f,p)};switch(t.type){case"preroll":{(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(a=t.beforeAd)==null||a.call(t);let p=()=>{var g;this.adsIsShowing=!1,(g=t.afterAd)==null||g.call(t)},f=()=>{var g;this.adsIsShowing=!1,(g=t.adBreakDone)==null||g.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})},m=()=>{var g;this.adsIsShowing=!1,(g=t.adBreakDone)==null||g.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"noAdPreloaded"})};st(()=>{this.adsIsShowing=!0,this.state.afterAd.value=p,this.state.adBreakDone.value=f,this.state.src.value=this.processUrl(r.params.url),this.state.adLinkClicked.value=u,this.state.adError.value=m,this.state.visible.value=!0});break}case"reward":{this.lastUnDisplayedAdBreak&&((l=(s=this.lastUnDisplayedAdBreak).adBreakDone)==null||l.call(s,{breakType:this.lastUnDisplayedAdBreak.type,breakName:this.lastUnDisplayedAdBreak.type==="preroll"?"":this.lastUnDisplayedAdBreak.name,breakFormat:this.lastUnDisplayedAdBreak.type==="reward"?"reward":"interstitial",breakStatus:"ignored"}),this.lastUnDisplayedAdBreak=null),(c=t.beforeAd)==null||c.call(t);let p=()=>{var k;this.adsIsShowing=!1,(k=t.afterAd)==null||k.call(t)},f={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},m=()=>{var k;this.adsIsShowing=!1,f.breakStatus="dismissed",(k=t.adDismissed)==null||k.call(t)},g=()=>{var k;this.adsIsShowing=!1,f.breakStatus="viewed",(k=t.adViewed)==null||k.call(t)},y=()=>{var k;this.adsIsShowing=!1,(k=t.adBreakDone)==null||k.call(t,f)},v=()=>{this.adsIsShowing=!1,f.breakStatus="noAdPreloaded"};st(()=>{this.state.afterAd.value=p,this.state.adDismissed.value=m,this.state.adViewed.value=g,this.state.adBreakDone.value=y,this.state.adLinkClicked.value=u,this.state.adError.value=v});let b=()=>{var k;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(k=t.adBreakDone)==null||k.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,st(()=>{this.state.src.value=this.processUrl(r.params.url),this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,b);break}}}},Fx=()=>{window.googletag=window.googletag||{cmd:[]},window.googletag.pubadsReady||window.googletag.cmd.push(()=>{window.googletag.enableServices()})};af=class{constructor(t,r,n){Ve(this,"adUnit",void 0),Ve(this,"project",void 0),Ve(this,"keyValue",void 0),Ve(this,"adsContext",null),Ve(this,"rewardedSlot",null),Ve(this,"rewardedPayload",null),Ve(this,"readyEvent",null),Ve(this,"withCommand",function(){googletag.cmd.push(...arguments)}),Ve(this,"init",()=>{var i;this.rewardedSlot=googletag.defineOutOfPageSlot(this.adUnit,googletag.enums.OutOfPageFormat.REWARDED),this.rewardedSlot&&(this.rewardedSlot.addService(googletag.pubads()),googletag.pubads().addEventListener("rewardedSlotReady",this.handleSlotReady),googletag.pubads().addEventListener("rewardedSlotClosed",this.handleSlotClosed),googletag.pubads().addEventListener("rewardedSlotGranted",this.handleSlotGranted),googletag.pubads().addEventListener("slotRenderEnded",this.handleSlotRenderEnded),this.keyValue&&(Object.keys(this.keyValue).forEach(o=>{var a;(a=this.rewardedSlot)==null||a.setTargeting(o,this.keyValue[o])}),Object.keys(this.keyValue).includes("project")||(i=this.rewardedSlot)==null||i.setTargeting("project",this.project)),googletag.display(this.rewardedSlot))}),Ve(this,"destroy",i=>{var o,a;this.rewardedPayload=null,this.readyEvent=null,googletag.pubads().removeEventListener("rewardedSlotReady",this.handleSlotReady),googletag.pubads().removeEventListener("rewardedSlotClosed",this.handleSlotClosed),googletag.pubads().removeEventListener("rewardedSlotGranted",this.handleSlotGranted),googletag.pubads().removeEventListener("slotRenderEnded",this.handleSlotRenderEnded),this.rewardedSlot&&(googletag.destroySlots([this.rewardedSlot]),this.rewardedSlot=null),(a=(o=this.adsContext)==null?void 0:o.adBreakDone)==null||a.call(o,i),this.adsContext=null}),Ve(this,"reinit",i=>{this.destroy(i),this.init()}),Ve(this,"handleSlotReady",i=>{i.slot===this.rewardedSlot&&(this.readyEvent=i)}),Ve(this,"handleSlotClosed",i=>{var o,a;if(this.adsContext&&i.slot===this.rewardedSlot){let s=this.rewardedPayload?"viewed":"dismissed";s==="viewed"?this.adsContext.adViewed():this.adsContext.adDismissed(),(a=(o=this.adsContext).afterAd)==null||a.call(o),this.withCommand(()=>{this.reinit(s)})}}),Ve(this,"handleSlotGranted",i=>{this.adsContext&&i.slot===this.rewardedSlot&&(this.rewardedPayload=i.payload)}),Ve(this,"handleSlotRenderEnded",i=>{i.slot===this.rewardedSlot&&i.isEmpty&&this.adsContext&&this.withCommand(()=>{this.reinit("frequencyCapped")})}),Ve(this,"requestAds",i=>{this.withCommand(()=>{if(this.adsContext&&this.reinit("ignored"),this.rewardedSlot||this.init(),this.adsContext=i,!this.rewardedSlot){this.reinit("notReady");return}if(this.readyEvent)this.adsContext.beforeReward(()=>{var o,a,s;(a=(o=this.adsContext)==null?void 0:o.beforeAd)==null||a.call(o),(s=this.readyEvent)==null||s.makeRewardedVisible()});else{let o=a=>{a.slot===this.rewardedSlot&&this.adsContext&&(googletag.pubads().removeEventListener("rewardedSlotReady",o),this.readyEvent=a,this.adsContext.beforeReward(()=>{var s,l,c;(l=(s=this.adsContext)==null?void 0:s.beforeAd)==null||l.call(s),(c=this.readyEvent)==null||c.makeRewardedVisible()}))};googletag.pubads().addEventListener("rewardedSlotReady",o),window.setTimeout(()=>{this.readyEvent||(this.reinit("timeout"),googletag.pubads().removeEventListener("rewardedSlotReady",o))},500)}})}),this.adUnit=t,this.project=r,this.keyValue=n,Fx(),this.withCommand(()=>{this.init()})}};sf=class{constructor(t,r,n){var i=this;at(this,"adUnit",void 0),at(this,"project",void 0),at(this,"keyValue",void 0),at(this,"adsContext",null),at(this,"gamingInterstitialSlot",null),at(this,"readyEvent",null),at(this,"isRetrying",!1),at(this,"withCommand",function(){googletag.cmd.push(...arguments)}),at(this,"init",()=>{var o;this.gamingInterstitialSlot=googletag.defineOutOfPageSlot(this.adUnit,googletag.enums.OutOfPageFormat.GAME_MANUAL_INTERSTITIAL),this.gamingInterstitialSlot&&(this.gamingInterstitialSlot.addService(googletag.pubads()),googletag.pubads().addEventListener("gameManualInterstitialSlotReady",this.handleSlotReady),googletag.pubads().addEventListener("gameManualInterstitialSlotClosed",this.handleSlotClosed),this.keyValue&&(Object.keys(this.keyValue).forEach(a=>{var s;(s=this.gamingInterstitialSlot)==null||s.setTargeting(a,this.keyValue[a])}),Object.keys(this.keyValue).includes("project")||(o=this.gamingInterstitialSlot)==null||o.setTargeting("project",this.project)),googletag.display(this.gamingInterstitialSlot))}),at(this,"destroy",function(o){var a,s;(!(arguments.length>1&&arguments[1]!==void 0)||arguments[1])&&((s=(a=i.adsContext)==null?void 0:a.onEnd)==null||s.call(a,o),i.adsContext=null),googletag.pubads().removeEventListener("gameManualInterstitialSlotReady",i.handleSlotReady),googletag.pubads().removeEventListener("gameManualInterstitialSlotClosed",i.handleSlotClosed),i.gamingInterstitialSlot&&(googletag.destroySlots([i.gamingInterstitialSlot]),i.gamingInterstitialSlot=null,i.readyEvent=null)}),at(this,"reinit",function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;i.destroy(o,a),i.init()}),at(this,"handleSlotReady",o=>{this.gamingInterstitialSlot===o.slot&&(this.readyEvent=o)}),at(this,"handleSlotClosed",o=>{var a,s;this.adsContext&&this.gamingInterstitialSlot===o.slot&&((s=(a=this.adsContext).afterAd)==null||s.call(a),this.withCommand(()=>{this.reinit("viewed")}))}),at(this,"requestAds",o=>{this.withCommand(()=>{var a,s,l;if(this.adsContext&&this.reinit("ignored"),this.gamingInterstitialSlot||this.init(),this.adsContext=o,!this.gamingInterstitialSlot){this.reinit("notReady");return}this.readyEvent?((a=o.beforeAd)==null||a.call(o),this.readyEvent.makeGameManualInterstitialVisible()):((l=(s=this.adsContext).onEnd)==null||l.call(s,"frequencyCapped"),this.adsContext=null,this.isRetrying||(this.isRetrying=!0,window.setTimeout(()=>{this.readyEvent||this.withCommand(()=>{this.reinit("frequencyCapped",!1)}),this.isRetrying=!1},31e3)))})}),Fx(),this.adUnit=t,this.project=r,this.keyValue=n,this.withCommand(()=>{this.init()})}};lf=class{constructor(t,r){Zr(this,"name","GOOGLE_GPT"),Zr(this,"context",void 0),Zr(this,"contextInfo",void 0),Zr(this,"initParams",void 0),Zr(this,"rewardAdManager",void 0),Zr(this,"interstitialManager",void 0),Zr(this,"insertScript",()=>{let n="jolibox-google-gpt",i=document.getElementById(n);i||(i=window.document.createElement("script"),i.id=n,i.async=!0,i.src="https://securepubads.g.doubleclick.net/tag/js/gpt.js",i.crossOrigin="anonymous",document.head.appendChild(i))}),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,this.insertScript()}init(){return w(this,null,function*(){let t=this.contextInfo.testAdsMode?"/22639388115/rewarded_web_example":this.initParams.rewardedSlot,r=this.contextInfo.testAdsMode?"/6355419/Travel/Europe/France/Paris":this.initParams.interstitialSlot,n=`minigame-${this.contextInfo.runtimeType==="APP"?"app":"h5"}`;t&&(this.rewardAdManager=new af(t,n,this.initParams.keyValue)),r&&(this.interstitialManager=new sf(r,n,this.initParams.keyValue))})}adConfig(t,r){}adBreak(t,r){var n,i,o;switch(t.type){case"preroll":{(n=t.adBreakDone)==null||n.call(t,{breakType:"preroll",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"reward":{if(!this.rewardAdManager){(i=t.adBreakDone)==null||i.call(t,{breakName:t.name,breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}this.rewardAdManager.requestAds({beforeAd:t.beforeAd,afterAd:t.afterAd,adDismissed:t.adDismissed,adViewed:t.adViewed,beforeReward:t.beforeReward,adBreakDone:a=>{var s;(s=t.adBreakDone)==null||s.call(t,{breakName:t.name,breakType:t.type,breakFormat:"reward",breakStatus:a})}});break}default:{if(!this.interstitialManager){(o=t.adBreakDone)==null||o.call(t,{breakName:t.name,breakType:t.type,breakFormat:"interstitial",breakStatus:"noAdPreloaded"});return}this.interstitialManager.requestAds({beforeAd:t.beforeAd,afterAd:t.afterAd,onEnd:a=>{var s;(s=t.adBreakDone)==null||s.call(t,{breakName:t.name,breakType:t.type,breakFormat:"interstitial",breakStatus:a})}});break}}}};cf=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";Jp(this,"context",void 0),Jp(this,"placement","GAME"),Jp(this,"contextInfo",void 0),this.context=t,this.placement=r,this.contextInfo=this.context.getContextInfo()}getLocation(){let t=new URLSearchParams(window.location.search),r={};return t.forEach((n,i)=>{r[i]=n}),{name:this.placement==="GAME"?"GamePage":"DramaPage",params:r}}getDevice(){var t,r,n,i;return{platform:(t=this.contextInfo.platform)!=null?t:vx.WebSDK,os:this.contextInfo.osType+"_"+this.contextInfo.runtimeType,appVersion:"1.0.0",appId:(r=this.contextInfo.hostAppId)!=null?r:"1",model:(n=this.contextInfo.deviceModel)!=null?n:"UnknownModel",brand:(i=this.contextInfo.deviceBrand)!=null?i:"UnknownBrand",uuid:this.contextInfo.deviceId,jsSdkVersion:"1.0.0",extra:{}}}serialize(t,r){var n;let i={protocolVersion:"1.0.0",events:[{name:t,type:hx.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:mx.WebSDK};return L3(i)}};pl=class{constructor(t){Ze(this,"context",void 0),Ze(this,"adsTrackSerializer",void 0),Ze(this,"contextInfo",void 0),this.context=t,this.contextInfo=t.getContextInfo(),this.adsTrackSerializer=new cf(this.context)}getRequestContextData(t){var r,n;this.contextInfo=this.context.getContextInfo();let{width:i,height:o}=this.context.getWindowInfo();return{report:JSON.stringify(this.adsTrackSerializer.serialize(t,{sessionId:this.contextInfo.sessionId,objectType:this.contextInfo.objectType,objectId:this.contextInfo.objectId,testAdsMode:this.contextInfo.testAdsMode})),osType:this.contextInfo.osType,runtimeType:this.contextInfo.runtimeType,sessionId:this.contextInfo.sessionId,deviceId:this.contextInfo.deviceId,adId:this.contextInfo.adId,deviceModel:(r=this.contextInfo.deviceModel)!=null?r:"UnknownModel",deviceBrand:(n=this.contextInfo.deviceBrand)!=null?n:"UnknownBrand",dimension:{width:i,height:o}}}getRequestBizParams(){return{objectType:this.contextInfo.objectType,objectId:this.contextInfo.objectId}}},uf=class{constructor(t,r){var n=this;Ze(this,"context",void 0),Ze(this,"contextInfo",void 0),Ze(this,"requestContext",void 0),Ze(this,"pendingAFGAdsInfo",{REWARD:Promise.resolve(null),INTERSTITIAL:Promise.resolve(null)}),Ze(this,"pendingAFVAdsInfo",Promise.resolve(null)),Ze(this,"doFetchAdsInfo",i=>w(this,null,function*(){let o=i==="afv"?"AdsAFVSDKRequest":"AdsAFGSDKAdBreak",a=i==="afv"?"REWARD_INTERSTITIAL":i==="reward"?"REWARD":"INTERSTITIAL",s=i==="afv"?void 0:"cached",{data:l,code:c}=yield this.context.httpClient.post("/api/ads/info",{data:{contextData:this.requestContext.getRequestContextData(o),bizParams:this.requestContext.getRequestBizParams(),adsType:a,testAdsMode:this.contextInfo.testAdsMode,name:s}});return c==="SUCCESS"||c==="BYPASS_ADS"?{code:c,data:l}:null})),Ze(this,"cacheRewardInfo",()=>{this.pendingAFGAdsInfo.REWARD=this.doFetchAdsInfo("reward").catch(()=>null)}),Ze(this,"cacheInterstitialInfo",i=>{this.pendingAFGAdsInfo.INTERSTITIAL=this.doFetchAdsInfo(i).catch(()=>null)}),Ze(this,"cacheAFVInfo",()=>{this.pendingAFVAdsInfo=this.doFetchAdsInfo("afv").catch(()=>null)}),Ze(this,"cacheNextAFGAdsInfo",i=>w(this,null,function*(){i==="reward"?this.cacheRewardInfo():this.cacheInterstitialInfo(i)})),Ze(this,"getAFGAdsInfo",i=>w(this,null,function*(){let o=yield i==="reward"?this.pendingAFGAdsInfo.REWARD:this.pendingAFGAdsInfo.INTERSTITIAL;return this.cacheNextAFGAdsInfo(i),o})),Ze(this,"getAFVAdsInfo",function(){return w(this,arguments,function*(){if(!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]){let i=yield n.pendingAFVAdsInfo;return n.cacheAFVInfo(),i}else return n.cacheAFVInfo(),yield n.pendingAFVAdsInfo})}),this.context=t,this.contextInfo=this.context.getContextInfo(),this.requestContext=new pl(t),r!=null&&r.reward&&this.cacheRewardInfo(),r!=null&&r.interstitial&&this.cacheInterstitialInfo("start"),r!=null&&r.afv&&this.cacheAFVInfo()}};fl=class{constructor(t){if(Ct(this,"context",void 0),Ct(this,"contextInfo",void 0),Ct(this,"providers",{}),Ct(this,"channelPolicy",void 0),Ct(this,"adsActionDetection",void 0),Ct(this,"requestContext",void 0),Ct(this,"adsRequest",void 0),Ct(this,"initialized",!1),Ct(this,"adsIsShowing",!1),Ct(this,"lastAdBreak",void 0),Ct(this,"initializedTimeStamp",Date.now()),t)this.context=t,this.channelPolicy=new zp(this.context),this.adsActionDetection=new Wp(this.context),this.contextInfo=this.context.getContextInfo(),this.adsRequest=new uf(t),this.requestContext=new pl(t);else throw new Error("JoliboxAdsForGame requires a configuration object")}init(t){return w(this,null,function*(){window.adsbygoogle=window.adsbygoogle||[];let{data:r}=yield this.context.httpClient.post("/api/ads/init",{data:{contextData:this.requestContext.getRequestContextData("AdsAFGSDKInit"),bizParams:this.requestContext.getRequestBizParams(),testAdsMode:this.contextInfo.testAdsMode}});if((r==null?void 0:r.length)>0)for(let n of r)switch(n.provider){case"GOOGLE_GPT":{let i=new lf(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"ADSENSE":case"ADSENSE_ADMOB":{let i=new Kp(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"OKSPIN":{let i=new nf(this.context,n.params);yield i.init(),this.providers.OKSPIN=i;break}case"APPSROCKETS":{let i=new of(this.context,n.params);yield i.init(),this.providers.APPSROCKETS=i;break}}this.adsRequest.cacheInterstitialInfo("start"),this.adsRequest.cacheRewardInfo(),this.initialized=!0})}adConfig(t){this.providers.ADSENSE?this.providers.ADSENSE.adConfig(t):window.adsbygoogle.push(t)}adBreak(t){return w(this,null,function*(){var r,n,i,o,a,s,l,c,d,u,p,f,m,g;let y=Date.now();if(y-this.initializedTimeStamp<3e3){(r=t.adBreakDone)==null||r.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}if(this.lastAdBreak&&y-this.lastAdBreak<500){console.warn("[Jolibox SDK Ads] You can't call adBreak too frequently"),(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}if(this.lastAdBreak=y,this.adsIsShowing){console.warn("[Jolibox SDK Ads] You can't call adBreak while ad is showing"),(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}if(this.initialized||(yield this.init()),t.type!=="reward"&&!this.channelPolicy.shouldBypassCallingInterstitial()){(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"skipInterstitials",breakFormat:"interstitial",breakStatus:"viewed"});return}if(!this.context.checkNetwork()){(a=t.adBreakDone)==null||a.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}try{let v=yield this.adsRequest.getAFGAdsInfo(t.type),b=v==null?void 0:v.data,k=v==null?void 0:v.code;if(k==="BYPASS_ADS"){switch(t.type){case"preroll":{(s=t.adBreakDone)==null||s.call(t,{breakType:t.type,breakFormat:"interstitial",breakStatus:"viewed"});break}case"reward":{t.beforeReward(()=>{var x,P,C,A;(x=t.beforeAd)==null||x.call(t),(P=t.adViewed)==null||P.call(t),(C=t.afterAd)==null||C.call(t),(A=t.adBreakDone)==null||A.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"viewed"})});break}default:{(l=t.beforeAd)==null||l.call(t),(c=t.afterAd)==null||c.call(t),(d=t.adBreakDone)==null||d.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"});break}}return}if(!b||k!=="SUCCESS"){(u=t.adBreakDone)==null||u.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}else{let x=b.sort((O,J)=>O.seq-J.seq);if(x.length===0){(p=t.adBreakDone)==null||p.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}let P=!0,C=null,A=new $p(this.context);for(this.adsActionDetection.adBreakIsShowing=!0;x.length>0;){let O=x.shift(),J=this.providers[O.provider];if(J){let[Ke,M]=yield A.callAdBreakAndContinue(J,t,O,Re=>{var Ne;this.adsIsShowing=Re,(Ne=this.context.eventEmitter)==null||Ne.emit("isAdShowing",Re)});P=Ke,C=M}else P=!0,C={breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"};if(!P)break}P&&C&&((f=t.adBreakDone)==null||f.call(t,C))}}catch(v){(m=t.adBreakDone)==null||m.call(t,{breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}finally{this.adsIsShowing=!1,(g=this.context.eventEmitter)==null||g.emit("isAdShowing",!1),this.adsActionDetection.adBreakIsShowing=!1}})}adUnit(t){console.warn("This method has been deprecated. We will not support AdSense AdUnit in the future.")}},YX=Yn`
787
787
  ${We}
788
788
  position: fixed;
789
789
  left: 0;
@@ -832,4 +832,4 @@ or `);this.errors.push(o)}return n}},Ls=class extends ke{constructor(...t){super
832
832
  cursor: pointer;
833
833
  }
834
834
  }
835
- `});function Fx(){let e=new Map,t,r;return{registerRewardHandler(i,o){e.set(i,o)},handleReward(i,...o){return w(this,null,function*(){return yield i.reduce((s,l)=>w(this,null,function*(){let c=yield s;if(c===!0)return!0;Ux&&console.log(`handleReward ${l}`);let d=e.get(l),u=d?yield d(...o):c;return Ux&&console.log(`handleReward ${l} ${u}`),u}),Promise.resolve(!1))})},registerRewardsFetcher(i){return w(this,null,function*(){t=(...o)=>w(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),["ADS"]}})})},registerRewardFrequencyConfigFetcher(i){return w(this,null,function*(){r=(...o)=>w(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),{joliCoinUseAndCharge:Fn,loginGuide:jn}}})})},getRewardsTypes(...i){return w(this,null,function*(){return t?yield t(...i):["ADS"]})},getRewardFrequencyConfig(...i){return w(this,null,function*(){return r?yield r(...i):{joliCoinUseAndCharge:Fn,loginGuide:jn}})}}}var Ux,jx=A(()=>{"use strict";B();Xe();Ux=E.testMode});var k4,S4,Jx,Gx,Bx=A(()=>{"use strict";Xe();R();k4=()=>(e,t)=>{let r={JOLI_GEM:3,JOLI_GEM_ONLY:3,JOLI_COIN:2,JOLI_COIN_ONLY:2,ADS:1};return r[t]-r[e]},S4=e=>e.length?e.includes("JOLI_GEM")&&e.length<=1?["JOLI_GEM_ONLY"]:e.includes("JOLI_COIN")&&e.length<=1?["JOLI_COIN_ONLY"]:e.sort(k4()):["ADS"],Jx=e=>{e.registerRewardsFetcher(t=>w(void 0,null,function*(){var n,i,o,a,s;let r=["ADS"];try{let l=yield t.post("/api/games/unlock-options",{});if(l.code!=="SUCCESS")return r;console.log("-----res fetch reward-----",l),q.emit($s,{options:((n=l.data)==null?void 0:n.unlockOptions)||[],userJoliCoin:((i=l.extra)==null?void 0:i.joliCoin)||{balance:0,enableAutoDeduct:!1},userGem:((o=l.extra)==null?void 0:o.joliGem)||{balance:0,enableAutoDeduct:!1}});let c=((s=(a=l.data)==null?void 0:a.unlockOptions)==null?void 0:s.map(d=>d.type))||Array.from(r);return S4(c)}catch(l){return console.error("getRewardOptions error:",l),r}}))},Gx=e=>{e.registerRewardFrequencyConfigFetcher(t=>w(void 0,null,function*(){var n,i,o,a;let r=yield t.get("/api/fe-configs/web-common/global-config",{});return q.emit(Tr,{joliCoinUseAndCharge:((n=r.data)==null?void 0:n.joliCoinUseAndCharge)||Fn,loginGuide:((i=r.data)==null?void 0:i.loginGuide)||jn}),r.data&&ne.emit("onGlobalConfigChanged",{globalConfig:r.data}),{joliCoinUseAndCharge:((o=r.data)==null?void 0:o.joliCoinUseAndCharge)||Fn,loginGuide:((a=r.data)==null?void 0:a.loginGuide)||jn}}))}});var Hx,Vx=A(()=>{"use strict";Hx=e=>t=>w(void 0,null,function*(){try{console.log("trigger @jolibox/ads reward",t),yield e.adBreak(t)}catch(r){console.error("-----createAdsRewardHandler error-----",r)}return!0})});var ze,Dr=A(()=>{"use strict";Xe();Or();Xe();ze=it(q,$s)});var gl,hf=A(()=>{"use strict";gl={JOLI_COIN:{balanceEndpoint:"/api/joli-coin/balance",balanceDetailEndpoint:"/api/joli-coin/balance-detail",unlockEndpoint:"/api/joli-coin/unlock",unlockType:"JOLI_COIN"},GEM:{balanceEndpoint:"/api/joli-gem/balance",balanceDetailEndpoint:"/api/joli-gem/balance-detail",unlockEndpoint:"/api/joli-gem/unlock",unlockType:"GEM"}}});var $t,Zn=A(()=>{"use strict";R();$t=X()});var $x,Wx=A(()=>{"use strict";$x=e=>w(void 0,null,function*(){return(yield e.get("/api/joli-coin/balance",{query:{type:"JOLI_COIN"}})).data})});var zx,Kx=A(()=>{"use strict";zx=e=>w(void 0,null,function*(){return(yield e.get("/api/joli-gem/balance",{query:{type:"GEM"}})).data})});var ei,yl=A(()=>{"use strict";Wx();Kx();ei={JOLI_COIN:{fetchBalance:$x,getQuantity:e=>{var t,r,n;return(n=(r=(t=e==null?void 0:e.options)==null?void 0:t.find(i=>i.type==="JOLI_COIN"))==null?void 0:r.joliCoinChoices[0].joliCoinQuantity)!=null?n:0},getCurrentUser:e=>{var t;return(t=e==null?void 0:e.userJoliCoin)!=null?t:{balance:0,enableAutoDeduct:!1}},createUpdatedUser:(e,t)=>({balance:e,enableAutoDeduct:t}),getUpdateKey:()=>"userJoliCoin",isEnough:(e,t)=>{var r,n;return(n=(r=e==null?void 0:e.options)==null?void 0:r.some(i=>i.type==="JOLI_COIN"&&i.joliCoinChoices.some(o=>{var a;return o.joliCoinQuantity<=((a=t==null?void 0:t.balance)!=null?a:0)})))!=null?n:!1}},JOLI_GEM:{fetchBalance:zx,getQuantity:e=>{var t,r,n,i;return(i=(n=(r=(t=e==null?void 0:e.options)==null?void 0:t.find(o=>o.type==="JOLI_GEM"))==null?void 0:r.joliGemChoice)==null?void 0:n.joliGemQuantity)!=null?i:0},getCurrentUser:e=>{var t;return(t=e==null?void 0:e.userGem)!=null?t:{balance:0,enableAutoDeduct:!1}},createUpdatedUser:(e,t)=>({balance:e,enableAutoDeduct:t}),getUpdateKey:()=>"userGem",isEnough:(e,t)=>{var n,i,o;let r=e==null?void 0:e.options.find(a=>a.type==="JOLI_GEM");return r?((i=(n=r.joliGemChoice)==null?void 0:n.joliGemQuantity)!=null?i:0)<=((o=t==null?void 0:t.balance)!=null?o:0):!1}}}});var Co,dr,mf=A(()=>{"use strict";Zn();Dr();Or();Xe();Xe();yl();Co=(e,t,r)=>{let{showUnlockWithCurrencyModal:n}=r;$t.registerCommand(`Rewards.${e}.useJolicoin`,()=>w(void 0,null,function*(){let i=yield ze.getData(),o=ei[t],a=o.getCurrentUser(i),s=o.getQuantity(i),l=!!(a!=null&&a.enableAutoDeduct);return console.log("-----unlockOptions usemodal-----",i,l,s),(yield n({enableAutoDeduct:l,userCurrency:a,quantity:s,currency:t}))!=="CONFIRM"?{result:"FAILED"}:{result:"SUCCESS"}}))},dr=(e,t)=>r=>w(void 0,null,function*(){let n=it(q,Qr);return q.emit(zs,e,{enableAutoDeduct:r.enableAutoDeduct,userCurrency:r.userCurrency,quantity:r.quantity,currency:r.currency,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).useModalResult})});var To,pr,Yx=A(()=>{"use strict";Zn();Dr();Xe();Or();Xe();yl();To=(e,t,r)=>{let{httpClient:n,initiateAndAwaitPayment:i}=r;$t.registerCommand(`Rewards.${e}.usePayment`,()=>w(void 0,null,function*(){var p;let o=yield ze.getData(),a=ei[t],s=yield a.fetchBalance(n),l=a.getQuantity(o),c=a.getCurrentUser(o),d=a.createUpdatedUser((p=s==null?void 0:s.balance)!=null?p:0,c.enableAutoDeduct),u=a.getUpdateKey();return ze.updateData({[u]:d}),console.log("-----unlockOptions payment-----",o,d,l,t),a.isEnough(o,d)?{result:"CONTINUE"}:{result:(yield i({userCurrency:d,currencyQuantity:l,currency:t}))==="SUCCESS"?"SUCCESS":"FAILED"}}))},pr=(e,t)=>r=>w(void 0,null,function*(){let n=it(q,xt);return q.emit(Ws,e,{userCurrency:r.userCurrency,quantity:r.currencyQuantity,currency:r.currency,enableAutoDeduct:r.userCurrency.enableAutoDeduct,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).paymentResult})});var vf,fr,Qx=A(()=>{"use strict";B();Zn();Or();Xe();Xe();R();Dr();yl();vf=(e,t,r)=>{let{showUnloginModal:n,httpClient:i}=r;$t.registerCommand(`Rewards.${e}.useUnloginModal`,()=>w(void 0,null,function*(){var s,l,c;let o=(s=E.hostUserInfo)==null?void 0:s.isLogin,a=yield ze.getData();if(console.log("-----isLogin-----",!!o),!o){let d=yield n(t);if(console.log("-----unloginModalResult-----",d),d.result=="FAILED"||d.result=="CANCEL")return{result:"FAILED"};let{isFirstLogin:u,claimedRewardValue:p}=(l=d.rewards)!=null?l:{};if(d.result=="SUCCESS"){u&&p&&(yield eh(3e3));let f=ei[t],m=yield f.fetchBalance(i),g=f.getQuantity(a),y=f.getCurrentUser(a),v=f.createUpdatedUser((c=m==null?void 0:m.balance)!=null?c:0,y.enableAutoDeduct),b=f.getUpdateKey();if(ze.updateData({[b]:v}),v.balance>=g)return{result:"SUCCESS"}}}return{result:"CONTINUE"}}))},fr=(e,t)=>r=>w(void 0,null,function*(){let n=it(q,ar);return q.emit(Ks,e,{confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText,currency:r}),yield n.getFreshData()})});var en=A(()=>{"use strict";mf();Yx();Qx()});var A4,_l,gf=A(()=>{"use strict";B();R();hf();en();Zn();A4=(e,t,r,{handlers:{handleUnlockSuccess:n,handleUnlockFailed:i,unlockOptionsHandler:o,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:s,showUnloginModal:l}})=>{To(e,"JOLI_COIN",{httpClient:t,initiateAndAwaitPayment:a}),Co(e,"JOLI_COIN",{showUnlockWithCurrencyModal:s});let c=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return d=>w(void 0,null,function*(){var u,p,f;try{let m=!0;for(let v of c){let b=yield $t.executeCommand(v);if(m=m&&b.result!=="FAILED",b.result!=="CONTINUE")break}if(!m)return i==null||i(d),!1;let g=gl[r],y=yield t.post(g.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${an()}-${E.mpType}-${Date.now()}`,gameInfo:{gameId:E.mpId}}});if(console.log("-----unlockWithCurrency request result-----",y),y.code=="SUCCESS"){try{(p=d.adBreakDone)==null||p.call(d,{breakType:d.type,breakName:"name"in d&&(u=d.name)!=null?u:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in d&&((f=d.adViewed)==null||f.call(d))}catch(v){console.error("-----unlockWithJolicoin adBreakDone error-----",v)}return n==null||n({quantity:y.data.quantity,balance:y.data.balance}),!0}return i==null||i(d),!1}catch(m){if(console.info("JolicoinRewardHandler error:",m),m instanceof Error&&m.message=="CANCEL")throw m;return i==null||i(d),!1}finally{o.clearCache()}})},_l=(e,t,r)=>A4(e,t,"JOLI_COIN",r)});var Xx,Zx=A(()=>{"use strict";Dr();gf();en();Xx=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=()=>{r==null||r()},i=dr("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),o=pr("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),a=fr("ADS-JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return _l("ADS-JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:ze,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:i,showUnloginModal:a}})}});var eC,tC=A(()=>{"use strict";gf();Dr();en();eC=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=l=>{var c;r==null||r(),(c=l.adBreakDone)==null||c.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},i=dr("JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),o=pr("JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),a=fr("JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return _l("JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:ze,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:i,showUnloginModal:a}})}});var bl,yf=A(()=>{"use strict";B();R();hf();en();mf();Zn();bl=(e,t,{handlers:{handleUnlockSuccess:r,handleUnlockFailed:n,unlockOptionsHandler:i,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:a,showUnloginModal:s}})=>{vf(e,"JOLI_GEM",{httpClient:t,showUnloginModal:s}),To(e,"JOLI_GEM",{httpClient:t,initiateAndAwaitPayment:o}),Co(e,"JOLI_GEM",{showUnlockWithCurrencyModal:a});let l=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return c=>w(void 0,null,function*(){var d,u,p;try{let f=!0;for(let y of l){let v=yield $t.executeCommand(y);if(f=f&&v.result!=="FAILED",v.result!=="CONTINUE")break}if(!f)return n==null||n(c),!1;let m=gl.GEM,g=yield t.post(m.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${an()}-${E.mpType}-${Date.now()}`,gameInfo:{gameId:E.mpId}}});if(console.log("-----unlockWithGem request result-----",g),g.code=="SUCCESS"){try{(u=c.adBreakDone)==null||u.call(c,{breakType:c.type,breakName:"name"in c&&(d=c.name)!=null?d:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in c&&((p=c.adViewed)==null||p.call(c))}catch(y){console.error("-----unlockWithGem adBreakDone error-----",y)}return r==null||r({quantity:g.data.quantity,balance:g.data.balance}),!0}return n==null||n(c),!1}catch(f){if(console.info("GemRewardHandler error:",f),f instanceof Error&&f.message=="CANCEL")throw f;return n==null||n(c),!1}finally{i.clearCache()}})}});var rC,nC=A(()=>{"use strict";Dr();yf();en();rC=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=()=>{r==null||r()},i=dr("ADS-JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),o=pr("ADS-JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),a=fr("ADS-JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return bl("ADS-JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:ze,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:i,showUnloginModal:a}})}});var iC,oC=A(()=>{"use strict";yf();Dr();en();iC=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=l=>{var c;r==null||r(),(c=l.adBreakDone)==null||c.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},i=dr("JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),o=pr("JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),a=fr("JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return bl("JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:ze,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:i,showUnloginModal:a}})}});var Tt,aC=A(()=>{"use strict";jx();Bx();Vx();Zx();tC();nC();oC();Tt=Fx();Jx(Tt);Gx(Tt)});var wl,x4,tn,C4,Oo,sC,lC,T4,O4,_f,P4,R4,cC=A(()=>{"use strict";R();nt();ir();MA();qx();yt();B();gt();_e();aC();mc();wl=X(),x4=()=>{let{data:e}=j("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},tn={get:(e,t)=>te(e,T({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>te(e,T({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},C4={httpClient:tn,checkNetwork:x4,track:U,eventEmitter:Vo,getWindowInfo:()=>({width:window.innerWidth*window.devicePixelRatio,height:window.innerHeight*window.devicePixelRatio,statusBarHeight:30}),handleLinkClicked:e=>{window.open(e,"_blank")},getContextInfo:()=>{var e,t,r,n,i,o,a,s,l;return{hostAppId:(t=(e=E.hostInfo)==null?void 0:e.aid)!=null?t:"1",deviceId:(r=E.deviceInfo.did)!=null?r:"",adId:(n=E.deviceInfo.adId)!=null?n:"",sessionId:(i=E.sessionId)!=null?i:"",userId:(a=(o=E.hostUserInfo)==null?void 0:o.uid)!=null?a:"",objectType:"GAME",objectId:E.mpId,testAdsMode:E.testAdsMode,channel:(s=E.joliSource)!=null?s:"",deviceBrand:E.deviceInfo.brand,deviceModel:E.deviceInfo.model,osType:E.platform==="android"?"ANDROID":E.platform==="ios"?"IOS":"PC",runtimeType:"APP",platform:1e3,joliSource:(l=E.joliSource)!=null?l:""}}},Oo=new pl(C4);Tt.getRewardFrequencyConfig(tn).then(e=>{console.log("getRewardFrequencyConfig",e)});Tt.registerRewardHandler("ADS",Hx(Oo));Tt.registerRewardHandler("JOLI_COIN",Xx(tn,{onUnlockSuccess:e=>{sC(e),U("jolicoin_unlock_success",{quantity:e.quantity})},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));Tt.registerRewardHandler("JOLI_COIN_ONLY",eC(tn,{onUnlockSuccess:e=>{sC(e),U("jolicoin_unlock_success",{quantity:e.quantity,isOnly:!0})},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));Tt.registerRewardHandler("JOLI_GEM",rC(tn,{onUnlockSuccess:e=>{lC(e),U("gem_unlock_success",{quantity:e.quantity})}}));Tt.registerRewardHandler("JOLI_GEM_ONLY",iC(tn,{onUnlockSuccess:e=>{lC(e),U("gem_unlock_success",{quantity:e.quantity,isOnly:!0})}}));sC=e=>{let{quantity:t}=e,r=`{slot-coin} ${t} {slot-i18n-jolicoin.coinUsed}`;Cr(r,{customStyle:{mark:{marginRight:"8px"},base:{with:"auto"}},i18nParams:{text:"Jolicoin Used"}})},lC=e=>{let{quantity:t}=e,r=`{slot-correct} ${t*-1} {slot-gem}`;Cr(r,{customStyle:{mark:{marginRight:"8px"},base:{"font-size":"25px","font-weight":"700","line-height":"18px"},span:{width:"auto",minWidth:"fit-content",maxWidth:"60px",textAlign:"center",padding:"0 2px",lineHeight:"25px"},gem:{transform:"translateY(-2px)",width:"28px",height:"28px"}}})},T4=W("adInit",{implement:e=>{Oo.init(e)}}),O4=W("adConfig",{implement:e=>{Oo.adConfig(e)}}),_f=!1,P4=W("adBreak",{implement:e=>{if(e.type==="reward"){if(_f)return;_f=!0,Tt.getRewardsTypes(tn).then(t=>{Tt.handleReward(t,e).catch(r=>{var n;console.info("handleReward failed in native",r),(n=e.adBreakDone)==null||n.call(e,{breakType:e.type,breakFormat:e.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}).finally(()=>{_f=!1})})}else Oo.adBreak(e)}}),R4=W("adUnit",{implement:e=>{Oo.adUnit(e)}});wl.registerCommand("AdsSDK.init",T4);wl.registerCommand("AdsSDK.adConfig",O4);wl.registerCommand("AdsSDK.adBreak",P4);wl.registerCommand("AdsSDK.adUnit",R4);L("AdsSDK.init",{version:"1.0.0"});L("AdsSDK.adConfig",{version:"1.0.0"});L("AdsSDK.adBreak",{version:"1.0.0"});L("AdsSDK.adUnit",{version:"1.0.0"})});var Po,N4,D4,L4,M4,q4,uC=A(()=>{"use strict";R();_e();nt();B();Po=X(),N4=W("openSchemaSync",{paramsSchema:I.tuple(I.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${E.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=j("openSchemaSync",{schema:t});if(r.errNo!==0)throw new Pt(r.errMsg,r.errNo)}}),D4=W("openPageSync",{paramsSchema:I.tuple(I.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=j("openPageSync",{url:e});if(t!==0||!n)throw new Pt(r,t);return{webviewId:n.webviewId}}}),L4=W("closePageSync",{paramsSchema:I.tuple(I.number()),implement:e=>{let{errNo:t,errMsg:r}=j("closePageSync",{webviewId:e});if(t!==0)throw new Pt(r,t)}}),M4=W("interceptSystemExitSync",{paramsSchema:I.tuple(I.boolean()),implement:e=>{ne.emit("onInterceptSystemExit",{intercept:e}),ne.emit("onInterceptBackPress",{intercept:e})}}),q4=W("navigateToNativePage",{paramsSchema:I.tuple(I.enum("openHistory","openDiscover","openDiscover","openGame","openDrama","openTopup","openFeed"),I.object()),implement:(e,t)=>{j("callHostMethodAsync",{method:e,params:T({},t)})}});Po.registerCommand("RouterSDK.openSchema",N4);Po.registerCommand("RouterSDK.openPage",D4);Po.registerCommand("RouterSDK.closePage",L4);Po.registerCommand("RouterSDK.interceptSystemExit",M4);Po.registerCommand("RouterSDK.navigateToNativePage",q4);L("router.openSchema",{version:"1.1.10"});L("router.openPage",{version:"1.1.10"});L("router.closePage",{version:"1.1.10"});L("router.interceptSystemExit",{version:"1.1.18"});L("router.navigateToNativePage",{version:"1.1.19"})});function j4(e){Bl("cpLoadProgressEvent",{progress:e},E.webviewId,!0)}var pC,U4,Il,bf,dC,F4,J4,fC=A(()=>{"use strict";R();nt();_e();B();yt();pC=X(),U4=W("onLoadFinished",{implement:()=>{Bl("cpLoadFinishEvent",{},E.webviewId,!0),U("loadFinished",{duration:performance.now()})}}),Il=null,bf=!1,dC=0,F4=200;J4=W("onLoadProgress",{paramsSchema:I.tuple(I.number()),implement:e=>{Il=e,bf||(bf=!0,requestAnimationFrame(function t(){let r=Date.now();r-dC>=F4?(Il!==null&&(j4(Il),dC=r,Il=null),bf=!1):requestAnimationFrame(t)}))}});pC.registerCommand("RuntimeSDK.loadFinishedEvent",U4);pC.registerCommand("RuntimeSDK.loadProgressEvent",J4)});var G4,B4,H4,hC=A(()=>{"use strict";R();nt();B();G4=X(),B4="isNativeSupport",H4=W(B4,{paramsSchema:I.tuple(I.object({version:I.string()})),implement:e=>{let t=E.sdkInfo.nativeSDKVersionCode,{version:r}=e;return r?{code:"SUCCESS",data:fh(mp(t!=null?t:0),r,">=")}:{code:"FAILURE",message:"[Jolibox SDK] api or versionCode is required",data:!1}}});G4.registerCommand("API.isNativeSupport",H4);L("isNativeSupport",{version:"1.1.46"})});var yC=h(If=>{"use strict";nt();_e();R();R();B();var mC=X(),El=[],wf=!1,vC=e=>{var n;let t=E.platform,r=(n=E.sdkInfo.nativeSDKVersionCode)!=null?n:0;return e.reduce((i,o)=>{if(typeof o=="string")i.push(o);else{let{method:a,platforms:s,nativeVersionCode:l}=o,c=!0;s&&!s.includes(t)&&(c=!1),l&&l>r&&(c=!1),c&&i.push(a)}return i},[])};ne.on("onGlobalConfigChanged",e=>{var t,r;El=vC((r=(t=e.globalConfig)==null?void 0:t.supportedHostMethods)!=null?r:[]),wf=!0});var gC=()=>new Promise(e=>{if(wf)e(El);else{let t=r=>{var n;El=vC((n=r.globalConfig.supportedHostMethods)!=null?n:[]),wf=!0,ne.off("onGlobalConfigChanged",t),e(El)};ne.on("onGlobalConfigChanged",t)}}),V4=Se("callHostMethod",{paramsSchema:I.tuple(I.object({method:I.string(),params:I.object().optional().default({})})),implement:r=>w(If,[r],function*({method:e,params:t}){if(!(yield gC()).includes(e))throw new Pt("Method not supported",10001);let{errNo:i,errMsg:o,data:a}=yield j("callHostMethodAsync",{method:e,params:T({},t)});if(i!==0)throw new Pt(o,i);let c=a,{callHostMethodId:s}=c,l=je(c,["callHostMethodId"]);return T({},l)})});mC.registerCommand("API.callHostMethod",V4);L("callHostMethod",{version:"1.1.49"});var $4=Se("userTrackAsync",{paramsSchema:I.tuple(I.object({event:I.string(),eventType:I.number(),params:I.object().optional().default({})})),implement:n=>w(If,[n],function*({event:e,eventType:t,params:r}){if(!(yield gC()).includes("userTrackAsync"))throw new Pt("Method not supported",10001);let{errNo:o,errMsg:a}=yield j("trackAsync",{event:e,eventType:t,data:T({},r),webviewId:E.webviewId});if(o!==0)throw new Pt(a,o)})});mC.registerCommand("API.track",$4);L("track",{version:"1.1.53"})});var W4={};var Fte,Bte,Kte,_C=A(()=>{"use strict";GS();Fte=ie(BS());YS();bp();tA();Bte=ie(rA());Bs();cC();uC();fC();hC();Kte=ie(yC())});var bC=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[bC])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[bC]=!0;w(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(NS(),RS)),Promise.resolve().then(()=>(_C(),W4)),Promise.resolve().then(()=>(yt(),Bh))]);e()});
835
+ `});function Gx(){let e=new Map,t,r;return{registerRewardHandler(i,o){e.set(i,o)},handleReward(i,...o){return w(this,null,function*(){return yield i.reduce((s,l)=>w(this,null,function*(){let c=yield s;if(c===!0)return!0;Jx&&console.log(`handleReward ${l}`);let d=e.get(l),u=d?yield d(...o):c;return Jx&&console.log(`handleReward ${l} ${u}`),u}),Promise.resolve(!1))})},registerRewardsFetcher(i){return w(this,null,function*(){t=(...o)=>w(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),["ADS"]}})})},registerRewardFrequencyConfigFetcher(i){return w(this,null,function*(){r=(...o)=>w(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),{joliCoinUseAndCharge:Fn,loginGuide:jn}}})})},getRewardsTypes(...i){return w(this,null,function*(){return t?yield t(...i):["ADS"]})},getRewardFrequencyConfig(...i){return w(this,null,function*(){return r?yield r(...i):{joliCoinUseAndCharge:Fn,loginGuide:jn}})}}}var Jx,Bx=S(()=>{"use strict";B();Xe();Jx=E.testMode});var x4,C4,Hx,Vx,$x=S(()=>{"use strict";Xe();R();x4=()=>(e,t)=>{let r={JOLI_GEM:3,JOLI_GEM_ONLY:3,JOLI_COIN:2,JOLI_COIN_ONLY:2,ADS:1};return r[t]-r[e]},C4=e=>e.length?e.includes("JOLI_GEM")&&e.length<=1?["JOLI_GEM_ONLY"]:e.includes("JOLI_COIN")&&e.length<=1?["JOLI_COIN_ONLY"]:e.sort(x4()):["ADS"],Hx=e=>{e.registerRewardsFetcher(t=>w(void 0,null,function*(){var n,i,o,a,s;let r=["ADS"];try{let l=yield t.post("/api/games/unlock-options",{});if(l.code!=="SUCCESS")return r;console.log("-----res fetch reward-----",l),q.emit($s,{options:((n=l.data)==null?void 0:n.unlockOptions)||[],userJoliCoin:((i=l.extra)==null?void 0:i.joliCoin)||{balance:0,enableAutoDeduct:!1},userGem:((o=l.extra)==null?void 0:o.joliGem)||{balance:0,enableAutoDeduct:!1}});let c=((s=(a=l.data)==null?void 0:a.unlockOptions)==null?void 0:s.map(d=>d.type))||Array.from(r);return C4(c)}catch(l){return console.error("getRewardOptions error:",l),r}}))},Vx=e=>{e.registerRewardFrequencyConfigFetcher(t=>w(void 0,null,function*(){var n,i,o,a;let r=yield t.get("/api/fe-configs/web-common/global-config",{});return q.emit(Tr,{joliCoinUseAndCharge:((n=r.data)==null?void 0:n.joliCoinUseAndCharge)||Fn,loginGuide:((i=r.data)==null?void 0:i.loginGuide)||jn}),r.data&&ne.emit("onGlobalConfigChanged",{globalConfig:r.data}),{joliCoinUseAndCharge:((o=r.data)==null?void 0:o.joliCoinUseAndCharge)||Fn,loginGuide:((a=r.data)==null?void 0:a.loginGuide)||jn}}))}});var Wx,zx=S(()=>{"use strict";Wx=e=>t=>w(void 0,null,function*(){try{console.log("trigger @jolibox/ads reward",t),yield e.adBreak(t)}catch(r){console.error("-----createAdsRewardHandler error-----",r)}return!0})});var ze,Dr=S(()=>{"use strict";Xe();Or();Xe();ze=it(q,$s)});var yl,mf=S(()=>{"use strict";yl={JOLI_COIN:{balanceEndpoint:"/api/joli-coin/balance",balanceDetailEndpoint:"/api/joli-coin/balance-detail",unlockEndpoint:"/api/joli-coin/unlock",unlockType:"JOLI_COIN"},GEM:{balanceEndpoint:"/api/joli-gem/balance",balanceDetailEndpoint:"/api/joli-gem/balance-detail",unlockEndpoint:"/api/joli-gem/unlock",unlockType:"GEM"}}});var $t,Zn=S(()=>{"use strict";R();$t=X()});var Kx,Yx=S(()=>{"use strict";Kx=e=>w(void 0,null,function*(){return(yield e.get("/api/joli-coin/balance",{query:{type:"JOLI_COIN"}})).data})});var Qx,Xx=S(()=>{"use strict";Qx=e=>w(void 0,null,function*(){return(yield e.get("/api/joli-gem/balance",{query:{type:"GEM"}})).data})});var ei,_l=S(()=>{"use strict";Yx();Xx();ei={JOLI_COIN:{fetchBalance:Kx,getQuantity:e=>{var t,r,n;return(n=(r=(t=e==null?void 0:e.options)==null?void 0:t.find(i=>i.type==="JOLI_COIN"))==null?void 0:r.joliCoinChoices[0].joliCoinQuantity)!=null?n:0},getCurrentUser:e=>{var t;return(t=e==null?void 0:e.userJoliCoin)!=null?t:{balance:0,enableAutoDeduct:!1}},createUpdatedUser:(e,t)=>({balance:e,enableAutoDeduct:t}),getUpdateKey:()=>"userJoliCoin",isEnough:(e,t)=>{var r,n;return(n=(r=e==null?void 0:e.options)==null?void 0:r.some(i=>i.type==="JOLI_COIN"&&i.joliCoinChoices.some(o=>{var a;return o.joliCoinQuantity<=((a=t==null?void 0:t.balance)!=null?a:0)})))!=null?n:!1}},JOLI_GEM:{fetchBalance:Qx,getQuantity:e=>{var t,r,n,i;return(i=(n=(r=(t=e==null?void 0:e.options)==null?void 0:t.find(o=>o.type==="JOLI_GEM"))==null?void 0:r.joliGemChoice)==null?void 0:n.joliGemQuantity)!=null?i:0},getCurrentUser:e=>{var t;return(t=e==null?void 0:e.userGem)!=null?t:{balance:0,enableAutoDeduct:!1}},createUpdatedUser:(e,t)=>({balance:e,enableAutoDeduct:t}),getUpdateKey:()=>"userGem",isEnough:(e,t)=>{var n,i,o;let r=e==null?void 0:e.options.find(a=>a.type==="JOLI_GEM");return r?((i=(n=r.joliGemChoice)==null?void 0:n.joliGemQuantity)!=null?i:0)<=((o=t==null?void 0:t.balance)!=null?o:0):!1}}}});var Co,dr,vf=S(()=>{"use strict";Zn();Dr();Or();Xe();Xe();_l();Co=(e,t,r)=>{let{showUnlockWithCurrencyModal:n}=r;$t.registerCommand(`Rewards.${e}.useJolicoin`,()=>w(void 0,null,function*(){let i=yield ze.getData(),o=ei[t],a=o.getCurrentUser(i),s=o.getQuantity(i),l=!!(a!=null&&a.enableAutoDeduct);return console.log("-----unlockOptions usemodal-----",i,l,s),(yield n({enableAutoDeduct:l,userCurrency:a,quantity:s,currency:t}))!=="CONFIRM"?{result:"FAILED"}:{result:"SUCCESS"}}))},dr=(e,t)=>r=>w(void 0,null,function*(){let n=it(q,Qr);return q.emit(zs,e,{enableAutoDeduct:r.enableAutoDeduct,userCurrency:r.userCurrency,quantity:r.quantity,currency:r.currency,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).useModalResult})});var To,pr,Zx=S(()=>{"use strict";Zn();Dr();Xe();Or();Xe();_l();To=(e,t,r)=>{let{httpClient:n,initiateAndAwaitPayment:i}=r;$t.registerCommand(`Rewards.${e}.usePayment`,()=>w(void 0,null,function*(){var p;let o=yield ze.getData(),a=ei[t],s=yield a.fetchBalance(n),l=a.getQuantity(o),c=a.getCurrentUser(o),d=a.createUpdatedUser((p=s==null?void 0:s.balance)!=null?p:0,c.enableAutoDeduct),u=a.getUpdateKey();return ze.updateData({[u]:d}),console.log("-----unlockOptions payment-----",o,d,l,t),a.isEnough(o,d)?{result:"CONTINUE"}:{result:(yield i({userCurrency:d,currencyQuantity:l,currency:t}))==="SUCCESS"?"SUCCESS":"FAILED"}}))},pr=(e,t)=>r=>w(void 0,null,function*(){let n=it(q,xt);return q.emit(Ws,e,{userCurrency:r.userCurrency,quantity:r.currencyQuantity,currency:r.currency,enableAutoDeduct:r.userCurrency.enableAutoDeduct,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).paymentResult})});var gf,fr,eC=S(()=>{"use strict";B();Zn();Or();Xe();Xe();R();Dr();_l();gf=(e,t,r)=>{let{showUnloginModal:n,httpClient:i}=r;$t.registerCommand(`Rewards.${e}.useUnloginModal`,()=>w(void 0,null,function*(){var s,l,c;let o=(s=E.hostUserInfo)==null?void 0:s.isLogin,a=yield ze.getData();if(console.log("-----isLogin-----",!!o),!o){let d=yield n(t);if(console.log("-----unloginModalResult-----",d),d.result=="FAILED"||d.result=="CANCEL")return{result:"FAILED"};let{isFirstLogin:u,claimedRewardValue:p}=(l=d.rewards)!=null?l:{};if(d.result=="SUCCESS"){u&&p&&(yield th(3e3));let f=ei[t],m=yield f.fetchBalance(i),g=f.getQuantity(a),y=f.getCurrentUser(a),v=f.createUpdatedUser((c=m==null?void 0:m.balance)!=null?c:0,y.enableAutoDeduct),b=f.getUpdateKey();if(ze.updateData({[b]:v}),v.balance>=g)return{result:"SUCCESS"}}}return{result:"CONTINUE"}}))},fr=(e,t)=>r=>w(void 0,null,function*(){let n=it(q,ar);return q.emit(Ks,e,{confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText,currency:r}),yield n.getFreshData()})});var en=S(()=>{"use strict";vf();Zx();eC()});var T4,bl,yf=S(()=>{"use strict";B();R();mf();en();Zn();T4=(e,t,r,{handlers:{handleUnlockSuccess:n,handleUnlockFailed:i,unlockOptionsHandler:o,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:s,showUnloginModal:l}})=>{To(e,"JOLI_COIN",{httpClient:t,initiateAndAwaitPayment:a}),Co(e,"JOLI_COIN",{showUnlockWithCurrencyModal:s});let c=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return d=>w(void 0,null,function*(){var u,p,f;try{let m=!0;for(let v of c){let b=yield $t.executeCommand(v);if(m=m&&b.result!=="FAILED",b.result!=="CONTINUE")break}if(!m)return i==null||i(d),!1;let g=yl[r],y=yield t.post(g.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${an()}-${E.mpType}-${Date.now()}`,gameInfo:{gameId:E.mpId}}});if(console.log("-----unlockWithCurrency request result-----",y),y.code=="SUCCESS"){try{(p=d.adBreakDone)==null||p.call(d,{breakType:d.type,breakName:"name"in d&&(u=d.name)!=null?u:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in d&&((f=d.adViewed)==null||f.call(d))}catch(v){console.error("-----unlockWithJolicoin adBreakDone error-----",v)}return n==null||n({quantity:y.data.quantity,balance:y.data.balance}),!0}return i==null||i(d),!1}catch(m){if(console.info("JolicoinRewardHandler error:",m),m instanceof Error&&m.message=="CANCEL")throw m;return i==null||i(d),!1}finally{o.clearCache()}})},bl=(e,t,r)=>T4(e,t,"JOLI_COIN",r)});var tC,rC=S(()=>{"use strict";Dr();yf();en();tC=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=()=>{r==null||r()},i=dr("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),o=pr("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),a=fr("ADS-JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return bl("ADS-JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:ze,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:i,showUnloginModal:a}})}});var nC,iC=S(()=>{"use strict";yf();Dr();en();nC=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=l=>{var c;r==null||r(),(c=l.adBreakDone)==null||c.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},i=dr("JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),o=pr("JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),a=fr("JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return bl("JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:ze,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:i,showUnloginModal:a}})}});var wl,_f=S(()=>{"use strict";B();R();mf();en();vf();Zn();wl=(e,t,{handlers:{handleUnlockSuccess:r,handleUnlockFailed:n,unlockOptionsHandler:i,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:a,showUnloginModal:s}})=>{gf(e,"JOLI_GEM",{httpClient:t,showUnloginModal:s}),To(e,"JOLI_GEM",{httpClient:t,initiateAndAwaitPayment:o}),Co(e,"JOLI_GEM",{showUnlockWithCurrencyModal:a});let l=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return c=>w(void 0,null,function*(){var d,u,p;try{let f=!0;for(let y of l){let v=yield $t.executeCommand(y);if(f=f&&v.result!=="FAILED",v.result!=="CONTINUE")break}if(!f)return n==null||n(c),!1;let m=yl.GEM,g=yield t.post(m.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${an()}-${E.mpType}-${Date.now()}`,gameInfo:{gameId:E.mpId}}});if(console.log("-----unlockWithGem request result-----",g),g.code=="SUCCESS"){try{(u=c.adBreakDone)==null||u.call(c,{breakType:c.type,breakName:"name"in c&&(d=c.name)!=null?d:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in c&&((p=c.adViewed)==null||p.call(c))}catch(y){console.error("-----unlockWithGem adBreakDone error-----",y)}return r==null||r({quantity:g.data.quantity,balance:g.data.balance}),!0}return n==null||n(c),!1}catch(f){if(console.info("GemRewardHandler error:",f),f instanceof Error&&f.message=="CANCEL")throw f;return n==null||n(c),!1}finally{i.clearCache()}})}});var oC,aC=S(()=>{"use strict";Dr();_f();en();oC=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=()=>{r==null||r()},i=dr("ADS-JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),o=pr("ADS-JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),a=fr("ADS-JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return wl("ADS-JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:ze,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:i,showUnloginModal:a}})}});var sC,lC=S(()=>{"use strict";_f();Dr();en();sC=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=l=>{var c;r==null||r(),(c=l.adBreakDone)==null||c.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},i=dr("JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),o=pr("JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),a=fr("JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return wl("JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:ze,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:i,showUnloginModal:a}})}});var Tt,cC=S(()=>{"use strict";Bx();$x();zx();rC();iC();aC();lC();Tt=Gx();Hx(Tt);Vx(Tt)});var Il,O4,tn,P4,Oo,uC,dC,R4,N4,bf,D4,L4,pC=S(()=>{"use strict";R();nt();ir();qS();jx();yt();B();gt();_e();cC();vc();Il=X(),O4=()=>{let{data:e}=j("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},tn={get:(e,t)=>te(e,T({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>te(e,T({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},P4={httpClient:tn,checkNetwork:O4,track:U,eventEmitter:Vo,getWindowInfo:()=>({width:window.innerWidth*window.devicePixelRatio,height:window.innerHeight*window.devicePixelRatio,statusBarHeight:30}),handleLinkClicked:e=>{window.open(e,"_blank")},getContextInfo:()=>{var e,t,r,n,i,o,a,s,l;return{hostAppId:(t=(e=E.hostInfo)==null?void 0:e.aid)!=null?t:"1",deviceId:(r=E.deviceInfo.did)!=null?r:"",adId:(n=E.deviceInfo.adId)!=null?n:"",sessionId:(i=E.sessionId)!=null?i:"",userId:(a=(o=E.hostUserInfo)==null?void 0:o.uid)!=null?a:"",objectType:"GAME",objectId:E.mpId,testAdsMode:E.testAdsMode,channel:(s=E.joliSource)!=null?s:"",deviceBrand:E.deviceInfo.brand,deviceModel:E.deviceInfo.model,osType:E.platform==="android"?"ANDROID":E.platform==="ios"?"IOS":"PC",runtimeType:"APP",platform:1e3,joliSource:(l=E.joliSource)!=null?l:""}}},Oo=new fl(P4);Tt.getRewardFrequencyConfig(tn).then(e=>{console.log("getRewardFrequencyConfig",e)});Tt.registerRewardHandler("ADS",Wx(Oo));Tt.registerRewardHandler("JOLI_COIN",tC(tn,{onUnlockSuccess:e=>{uC(e),U("jolicoin_unlock_success",{quantity:e.quantity})},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));Tt.registerRewardHandler("JOLI_COIN_ONLY",nC(tn,{onUnlockSuccess:e=>{uC(e),U("jolicoin_unlock_success",{quantity:e.quantity,isOnly:!0})},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));Tt.registerRewardHandler("JOLI_GEM",oC(tn,{onUnlockSuccess:e=>{dC(e),U("gem_unlock_success",{quantity:e.quantity})}}));Tt.registerRewardHandler("JOLI_GEM_ONLY",sC(tn,{onUnlockSuccess:e=>{dC(e),U("gem_unlock_success",{quantity:e.quantity,isOnly:!0})}}));uC=e=>{let{quantity:t}=e,r=`{slot-coin} ${t} {slot-i18n-jolicoin.coinUsed}`;Cr(r,{customStyle:{mark:{marginRight:"8px"},base:{with:"auto"}},i18nParams:{text:"Jolicoin Used"}})},dC=e=>{let{quantity:t}=e,r=`{slot-correct} ${t*-1} {slot-gem}`;Cr(r,{customStyle:{mark:{marginRight:"8px"},base:{"font-size":"25px","font-weight":"700","line-height":"18px"},span:{width:"auto",minWidth:"fit-content",maxWidth:"60px",textAlign:"center",padding:"0 2px",lineHeight:"25px"},gem:{transform:"translateY(-2px)",width:"28px",height:"28px"}}})},R4=W("adInit",{implement:e=>{Oo.init(e)}}),N4=W("adConfig",{implement:e=>{Oo.adConfig(e)}}),bf=!1,D4=W("adBreak",{implement:e=>{if(e.type==="reward"){if(bf)return;bf=!0,Tt.getRewardsTypes(tn).then(t=>{Tt.handleReward(t,e).catch(r=>{var n;console.info("handleReward failed in native",r),(n=e.adBreakDone)==null||n.call(e,{breakType:e.type,breakFormat:e.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}).finally(()=>{bf=!1})})}else Oo.adBreak(e)}}),L4=W("adUnit",{implement:e=>{Oo.adUnit(e)}});Il.registerCommand("AdsSDK.init",R4);Il.registerCommand("AdsSDK.adConfig",N4);Il.registerCommand("AdsSDK.adBreak",D4);Il.registerCommand("AdsSDK.adUnit",L4);L("AdsSDK.init",{version:"1.0.0"});L("AdsSDK.adConfig",{version:"1.0.0"});L("AdsSDK.adBreak",{version:"1.0.0"});L("AdsSDK.adUnit",{version:"1.0.0"})});var Po,M4,q4,U4,F4,j4,fC=S(()=>{"use strict";R();_e();nt();B();Po=X(),M4=W("openSchemaSync",{paramsSchema:I.tuple(I.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${E.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=j("openSchemaSync",{schema:t});if(r.errNo!==0)throw new Pt(r.errMsg,r.errNo)}}),q4=W("openPageSync",{paramsSchema:I.tuple(I.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=j("openPageSync",{url:e});if(t!==0||!n)throw new Pt(r,t);return{webviewId:n.webviewId}}}),U4=W("closePageSync",{paramsSchema:I.tuple(I.number()),implement:e=>{let{errNo:t,errMsg:r}=j("closePageSync",{webviewId:e});if(t!==0)throw new Pt(r,t)}}),F4=W("interceptSystemExitSync",{paramsSchema:I.tuple(I.boolean()),implement:e=>{ne.emit("onInterceptSystemExit",{intercept:e}),ne.emit("onInterceptBackPress",{intercept:e})}}),j4=W("navigateToNativePage",{paramsSchema:I.tuple(I.enum("openHistory","openDiscover","openDiscover","openGame","openDrama","openTopup","openFeed"),I.object()),implement:(e,t)=>{j("callHostMethodAsync",{method:e,params:T({},t)})}});Po.registerCommand("RouterSDK.openSchema",M4);Po.registerCommand("RouterSDK.openPage",q4);Po.registerCommand("RouterSDK.closePage",U4);Po.registerCommand("RouterSDK.interceptSystemExit",F4);Po.registerCommand("RouterSDK.navigateToNativePage",j4);L("router.openSchema",{version:"1.1.10"});L("router.openPage",{version:"1.1.10"});L("router.closePage",{version:"1.1.10"});L("router.interceptSystemExit",{version:"1.1.18"});L("router.navigateToNativePage",{version:"1.1.19"})});function B4(e){Hl("cpLoadProgressEvent",{progress:e},E.webviewId,!0)}var mC,J4,El,wf,hC,G4,H4,vC=S(()=>{"use strict";R();nt();_e();B();yt();mC=X(),J4=W("onLoadFinished",{implement:()=>{Hl("cpLoadFinishEvent",{},E.webviewId,!0),U("loadFinished",{duration:performance.now()})}}),El=null,wf=!1,hC=0,G4=200;H4=W("onLoadProgress",{paramsSchema:I.tuple(I.number()),implement:e=>{El=e,wf||(wf=!0,requestAnimationFrame(function t(){let r=Date.now();r-hC>=G4?(El!==null&&(B4(El),hC=r,El=null),wf=!1):requestAnimationFrame(t)}))}});mC.registerCommand("RuntimeSDK.loadFinishedEvent",J4);mC.registerCommand("RuntimeSDK.loadProgressEvent",H4)});var V4,$4,W4,gC=S(()=>{"use strict";R();nt();B();V4=X(),$4="isNativeSupport",W4=W($4,{paramsSchema:I.tuple(I.object({version:I.string()})),implement:e=>{let t=E.sdkInfo.nativeSDKVersionCode,{version:r}=e;return r?{code:"SUCCESS",data:hh(vp(t!=null?t:0),r,">=")}:{code:"FAILURE",message:"[Jolibox SDK] api or versionCode is required",data:!1}}});V4.registerCommand("API.isNativeSupport",W4);L("isNativeSupport",{version:"1.1.46"})});var wC=h(Ef=>{"use strict";nt();_e();R();R();B();var yC=X(),kl=[],If=!1,_C=e=>{var n;let t=E.platform,r=(n=E.sdkInfo.nativeSDKVersionCode)!=null?n:0;return e.reduce((i,o)=>{if(typeof o=="string")i.push(o);else{let{method:a,platforms:s,nativeVersionCode:l}=o,c=!0;s&&!s.includes(t)&&(c=!1),l&&l>r&&(c=!1),c&&i.push(a)}return i},[])};ne.on("onGlobalConfigChanged",e=>{var t,r;kl=_C((r=(t=e.globalConfig)==null?void 0:t.supportedHostMethods)!=null?r:[]),If=!0});var bC=()=>new Promise(e=>{if(If)e(kl);else{let t=r=>{var n;kl=_C((n=r.globalConfig.supportedHostMethods)!=null?n:[]),If=!0,ne.off("onGlobalConfigChanged",t),e(kl)};ne.on("onGlobalConfigChanged",t)}}),z4=Ae("callHostMethod",{paramsSchema:I.tuple(I.object({method:I.string(),params:I.object().optional().default({})})),implement:r=>w(Ef,[r],function*({method:e,params:t}){if(!(yield bC()).includes(e))throw new Pt("Method not supported",10001);let{errNo:i,errMsg:o,data:a}=yield j("callHostMethodAsync",{method:e,params:T({},t)});if(i!==0)throw new Pt(o,i);let c=a,{callHostMethodId:s}=c,l=je(c,["callHostMethodId"]);return T({},l)})});yC.registerCommand("API.callHostMethod",z4);L("callHostMethod",{version:"1.1.49"});var K4=Ae("userTrackAsync",{paramsSchema:I.tuple(I.object({event:I.string(),eventType:I.number(),params:I.object().optional().default({})})),implement:n=>w(Ef,[n],function*({event:e,eventType:t,params:r}){if(!(yield bC()).includes("userTrackAsync"))throw new Pt("Method not supported",10001);let{errNo:o,errMsg:a}=yield j("trackAsync",{event:e,eventType:t,data:T({},r),webviewId:E.webviewId});if(o!==0)throw new Pt(a,o)})});yC.registerCommand("API.track",K4);L("track",{version:"1.1.53"})});var Y4={};var Gte,$te,Xte,IC=S(()=>{"use strict";BA();Gte=ie(HA());QA();wp();rS();$te=ie(nS());Bs();pC();fC();vC();gC();Xte=ie(wC())});var EC=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[EC])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[EC]=!0;w(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(DA(),NA)),Promise.resolve().then(()=>(IC(),Y4)),Promise.resolve().then(()=>(yt(),Hh))]);e()});