@jolibox/implement 1.3.5-beta.3 → 1.3.5-beta.9

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,6 +1,6 @@
1
- var UR=Object.create;var Ea=Object.defineProperty,MR=Object.defineProperties,FR=Object.getOwnPropertyDescriptor,jR=Object.getOwnPropertyDescriptors,BR=Object.getOwnPropertyNames,Ia=Object.getOwnPropertySymbols,GR=Object.getPrototypeOf,Bc=Object.prototype.hasOwnProperty,Bm=Object.prototype.propertyIsEnumerable;var jm=(e,t,r)=>t in e?Ea(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T=(e,t)=>{for(var r in t||(t={}))Bc.call(t,r)&&jm(e,r,t[r]);if(Ia)for(var r of Ia(t))Bm.call(t,r)&&jm(e,r,t[r]);return e},B=(e,t)=>MR(e,jR(t));var Qe=(e,t)=>{var r={};for(var n in e)Bc.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ia)for(var n of Ia(e))t.indexOf(n)<0&&Bm.call(e,n)&&(r[n]=e[n]);return r};var x=(e,t)=>()=>(e&&(t=e(e=0)),t);var m=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Gm=(e,t)=>{for(var r in t)Ea(e,r,{get:t[r],enumerable:!0})},JR=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of BR(t))!Bc.call(e,i)&&i!==r&&Ea(e,i,{get:()=>t[i],enumerable:!(n=FR(t,i))||n.enumerable});return e};var se=(e,t,r)=>(r=e!=null?UR(GR(e)):{},JR(t||!e||!e.__esModule?Ea(r,"default",{value:e,enumerable:!0}):r,e));var v=(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 KR(e){return!!(e!=null&&e.__nativeBuffers__)}function zc(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!KR(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=YR(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function XR(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:QR(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function rO(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function tg(e){return typeof e=="string"}function jn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Hm(e){return typeof e=="number"&&!isNaN(e)}function iO(e){return typeof e=="undefined"}function oO(e){return iO(e)||e===null}function rg(e){return typeof e=="function"}function aO(e){return jn(e)&&rg(e.then)}function ng(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function ji(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function fO(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 yO(){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 IO(e){return new Promise(t=>ig(e)(t))}function ig(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function EO(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new Ji(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function kO(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)CO(e[n],t[n])}function CO(e,t){if(tg(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(rg(t)){try{if(e instanceof t)return}catch(r){}if(!oO(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 Pt(e,t){if(Yc.config[e]){Ta.warn(`[can i use] ${e} already registered`);return}Yc.config[e]=pr({},t)}function Wm(e,t){return`[${e}]:${t}`}function DO(e,t){zm||(Hc=new ka({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),$c=new ka({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Vc=new ka({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),t("onJoliboxEnterBackground",()=>{Hc.flush(),$c.flush(),Vc.flush()}),zm=!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:h,invokeCallback:g}=f,b=(a=(o=u.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";Hc.report({status:b,method:n(s,l),errNo:`${p}`,errMsg:u,isForeground:d,duration:Date.now()-c}),c&&h&&g&&($c.report({status:b,method:s,isForeground:d,duration:Number((h-c).toFixed(3))}),Vc.report({status:b,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 MO(e,t){let r=0,n=!0,i=UO.resolveMap,o=DO(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,Wc.forEach(l=>xa(this,[l],function*({method:c,args:d,resolve:u}){let p=yield s(c,d);u(p)})),Wc.length=0});let a=(l,c)=>{let d=i.get(Number(l));if(!d)return;let u=zc(c);d(u),i.delete(Number(l))},s=(l,c)=>{var d,u;let p=Date.now(),f=`${n}`;r+=1;let h=new nO;if(i.set(r,h.resolve),!n&&TO.includes(l))return new Promise(E=>{Wc.push({method:l,args:c,resolve:E})});let g=WR(pr({},{method:l,startTime:p,args:c,isForeground:f}),{invokeType:"js-bridge"}),b=!LO&&PO.includes(l),y=XR(c,b),_=b?y:JSON.stringify(y),S;if(l.endsWith("Sync")||RO.includes(l)?S=(d=e.call)==null?void 0:d.call(e,l,y,r):typeof _=="string"?S=e.invoke(l,_,r):S=(u=e.call)==null?void 0:u.call(e,l,_,r),S){try{typeof S=="string"&&(S=JSON.parse(S)),S=zc(S)}catch(E){Ta.error(E)}return i.delete(r),S.errorCode&&(S.errorCode=Wm(l,S.errorCode)),o(pr(pr({},g),S)),S}return l.endsWith("Sync")&&i.delete(r),h.promise.then(E=>(E.errorCode&&(E.errorCode=Wm(l,E.errorCode)),o(pr(pr({},g),E)),E))};return{invokeNative:s,applyNative:(l,c)=>{let d=s(l,c);return aO(d)?d.then(u=>Km(l,u)):Km(l,d)},invokeHandler:a}}function Km(e,t){if(!jn(t)){Ta.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=zR(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new uO(n,i,o,a);return s}function FO(e){if(globalThis[Aa])return globalThis[Aa];let t=new Zc,r=new Zc,n=new ka({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[Aa]={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=zc(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===ag){l.forEach(c=>{let[d,u]=c;try{r.emit(d.slice(Gi.length),u,a)}catch(p){}});return}if(i.startsWith(Gi)){r.emit(i.slice(Gi.length),l,a);return}t.emit(i,l,a)}},globalThis[Aa]}function jO(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(`${Gi}${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(ag,d,p)}catch(p){}}),n=void 0,t.clear()}));let c=t.get(s);c||(c=[],t.set(s,c)),c.push([`${Gi}${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(OO,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 BO(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=FO(e),{invokeNative:a,invokeHandler:s,applyNative:l}=MO(e,r),{publish:c,emitNative:d}=jO(e);return{invokeHandler:s,subscribeHandler:t,applyNative:l,invokeNative:a,onNative:r,offNative:n,emitNative:d,publish:c,subscribe:i,unsubscribe:o}}function sg(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var HR,$R,VR,Ca,Qm,Xm,Jm,pr,WR,zR,xa,YR,QR,Zm,ZR,eO,eg,tO,nO,sO,lO,Pa,cO,uO,dO,Gc,Ta,$m,pO,Kc,hO,Yc,mO,gO,vO,Fn,bO,n6,Qc,fe,_O,wO,Bi,Ji,Zc,eu,SO,Jc,AO,i6,tu,Vm,o6,og,xO,Gi,PO,TO,RO,ag,OO,NO,ka,zm,Hc,$c,Vc,Wc,LO,ru,qO,UO,Aa,nu,xt,lg,cg,GO,ug,Ym,he,F,De,a6,JO,dg,iu,s6,l6,ue=x(()=>{"use strict";HR=Object.defineProperty,$R=Object.defineProperties,VR=Object.getOwnPropertyDescriptors,Ca=Object.getOwnPropertySymbols,Qm=Object.prototype.hasOwnProperty,Xm=Object.prototype.propertyIsEnumerable,Jm=(e,t,r)=>t in e?HR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,pr=(e,t)=>{for(var r in t||(t={}))Qm.call(t,r)&&Jm(e,r,t[r]);if(Ca)for(var r of Ca(t))Xm.call(t,r)&&Jm(e,r,t[r]);return e},WR=(e,t)=>$R(e,VR(t)),zR=(e,t)=>{var r={};for(var n in e)Qm.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ca)for(var n of Ca(e))t.indexOf(n)<0&&Xm.call(e,n)&&(r[n]=e[n]);return r},xa=(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())});YR=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};QR=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)};Zm=Object.defineProperty,ZR=Object.getOwnPropertyDescriptor,eO=(e,t)=>{for(var r in t)Zm(e,r,{get:t[r],enumerable:!0})},eg=(e,t,r,n)=>{for(var i=n>1?void 0:n?ZR(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&&Zm(t,r,i),i},tO=(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}nO=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))}})}};sO=(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))(sO||{}),lO=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}},Pa=class extends lO{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},cO=class extends Pa{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},uO=class extends Pa{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},dO=class extends Pa{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},Gc=class extends Pa{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};Ta={log:ji("log"),warn:ji("warn"),info:ji("info"),error:ji("error"),debug:ji("debug")};Object.assign(globalThis,{logger:Ta});$m=Symbol.for("Jolibox.canIUseMap"),pO={};globalThis[$m]||(globalThis[$m]=pO);Kc=Symbol.for("Jolibox.canIUseMap.native"),hO={};globalThis[Kc]||(globalThis[Kc]=hO);Yc={get config(){return globalThis[Kc]}},mO=(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))(mO||{}),gO=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(gO||{}),vO=(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))(vO||{});yO();Fn=typeof window=="undefined",bO=()=>!Fn&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),n6={isiOS:!Fn&&(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:!Fn&&navigator.userAgent.includes("Android"),isMac:!Fn&&navigator.userAgent.includes("Mac"),isFacebook:!Fn&&navigator.userAgent.includes("FB_IAB"),isPC:!Fn&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},Qc=class Xc{constructor(t){this.element=t,this.next=Xc.Undefined,this.prev=Xc.Undefined}};Qc.Undefined=new Qc(void 0);fe=Qc,_O=class{constructor(){this._first=fe.Undefined,this._last=fe.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===fe.Undefined}clear(){let e=this._first;for(;e!==fe.Undefined;){let t=e.next;e.prev=fe.Undefined,e.next=fe.Undefined,e=t}this._first=fe.Undefined,this._last=fe.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new fe(e);if(this._first===fe.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!==fe.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==fe.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==fe.Undefined&&e.next!==fe.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===fe.Undefined&&e.next===fe.Undefined?(this._first=fe.Undefined,this._last=fe.Undefined):e.next===fe.Undefined?(this._last=this._last.prev,this._last.next=fe.Undefined):e.prev===fe.Undefined&&(this._first=this._first.next,this._first.prev=fe.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==fe.Undefined;)yield e.element,e=e.next}},wO=0,Bi=class{constructor(e){this.value=e,this.id=wO++}},Ji=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 Bi&&(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 Bi(t);return this._listeners?this._listeners instanceof Bi?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 Bi)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 h=this._listeners.indexOf(c);h>=0&&(this._listeners.splice(h,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 Bi?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Zc=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 Ji,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 _O,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)}},eu={};eO(eu,{None:()=>SO,filter:()=>EO,once:()=>ig,toPromise:()=>IO});SO=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Jc=Symbol.for("Jolibox.hostEmitter"),AO=()=>{let e=new Zc;return globalThis[Jc]||(globalThis[Jc]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Jc]},i6=AO();tu=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Ji,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 kO(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}};tu=eg([ng],tu);Vm=class{constructor(){this._onWillExecuteCommand=new Ji,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Ji,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new tu,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=rO(3e4)),this._starActivation}executeCommand(e,...t){return tO(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),eu.toPromise(eu.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}}};Vm=eg([ng],Vm);o6=Symbol.for("Jolibox.commands");Pt("requestPaymentSync",{version:1e6,properties:{paymentBody:{appStoreProductId:102e4}}});Pt("requestProductDetailsAsync",{version:102e4});Pt("invokeSubscriptionPanelSync",{version:107e4,properties:{type:{game:107e4,drama:107e4}}});Pt("loginSync",{version:1e6,properties:{skipLogin:102e4,triggerFrom:102e4}});Pt("getABTest",{version:1050100,platforms:{android:1050100,ios:!1}});Pt("userTrackAsync",{version:1e6});Pt("openMiniapp",{version:1050100});Pt("requestCoinDetailsSync",{version:1070100});Pt("requestCoinDetailsAsync",{version:1070100});Pt("sendServerEventAsync",{version:1070100});Pt("loadAdsAsync",{version:1070200});Pt("showAdAsync",{version:1070200});og=(e,t)=>{function r(i){var o;let[a,...s]=i.split(":");if(!a)return!1;let l=Yc.config[a];if(!l)return!1;let c=(o=t==null?void 0:t())!=null?o:"",d=l.version;if(l.platforms&&c in l.platforms){let p=l.platforms[c];if(p===!1)return!1;typeof p=="number"&&(d=p)}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=fO(i,o);if(!s)return!1;if(jn(s)){let l=s.version;return Hm(l)?typeof a=="number"&&a>=l:!0}return Hm(s)?typeof a=="number"&&a>=s:s===!0}return{canIUseNative:r}};xO=()=>bO(),Gi="custom_event_",PO=[],TO=[],RO=["env","createRequestTask","login"],ag="__batch_event__",OO="__native_batch_event__",NO=e=>e==="pv"?e:"default",ka=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=NO(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&&jn(a))throw new Gc(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let l=[];if(jn(a))l.push(...Object.keys(a));else if(tg(a)){if(i.length>0)throw new Gc(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);l.push(a)}else throw new Gc(`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=jn(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={}}},zm=!1;Wc=[],LO=!1,ru=Symbol.for("Jolibox.invokeResolverInstance"),qO=new Map;globalThis[ru]||(globalThis[ru]=qO);UO={get resolveMap(){return globalThis[ru]}};Aa=Symbol.for("Jolibox.subscribeInstance");xt={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){xt.trigger=e},onDoExit(e){xt.exit=e},onDoBackPress(e){xt.backPress=e}},lg=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new cO("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="")=>{xt.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>xa(void 0,null,function*(){let o=yield xt.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});nu={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=sg(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:lg,doExit:r};globalThis.joliboxJSCore=pr({},n)}if(typeof window!="undefined"&&window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(o="")=>{xt.trigger(),t.onDocumentReady(JSON.stringify({path:o}))},n=o=>xa(void 0,null,function*(){let a=yield xt.exit();t.doExit(JSON.stringify({uuid:o,shouldInterrupt:a}))});nu={onDocumentReady:r,invoke(o,a,s){t.invoke(JSON.stringify({event:o,paramsString:a,callbackId:s}))},doExit:n,publish(o,a,s){let l=sg(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 xa(this,null,function*(){let a=yield xt.backPress();t.doBackPress(JSON.stringify({uuid:o,shouldInterrupt:a}))})}};let i={onDocumentReady:r,env:lg,doExit:n};globalThis.joliboxJSCore=pr({},i)}cg=nu;if(!cg&&xO())throw new dO("No joliboxJScore is found, native bridge not found.");GO=pr({},cg),ug=BO(GO),{invokeHandler:Ym}=ug,{applyNative:he,invokeNative:F,onNative:De,offNative:a6,subscribeHandler:JO,publish:dg,emitNative:iu,subscribe:s6,unsubscribe:l6}=ug;globalThis.joliboxJSBridge={callHandler:Ym,invokeHandler:Ym,subscribeHandler:JO}});function zO(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Oa(e){return new Promise(t=>setTimeout(t,e))}function zi(e){return typeof e=="string"}function cn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function yg(e){return typeof e=="object"&&Array.isArray(e)}function Na(e){return typeof e=="number"&&!isNaN(e)}function Fr(e){return e===!0||e===!1}function bg(e){return typeof e=="undefined"}function Ki(e){return bg(e)||e===null}function KO(e){return typeof e=="function"}function _g(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function wg(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:hg(l)&&hg(s)?i[a]=n(gg({},s),l):Array.isArray(l)&&Array.isArray(s)?i[a]=[...s,...l]:i[a]=l}return i}return n(e,t)}function hg(e){return e&&typeof e=="object"&&e.constructor===Object}function Sg(e,t){if(Array.isArray(e))return e.concat(t)}function Yi(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 QO(e,t){return(...r)=>t(e,...r)}function Bn(e){return t=>QO(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(i){e(new Wt(`${i}`))}})}function Hi(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function Cg(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 vu(){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 n1(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"||a==="mporia.com"||a==="pingplus.ai")return`${o}.${a}`}return`${o}.jolibox.com`}function yu(e){return n1("app","stg-app",e)}function Jn(e){return`https://${yu(e)}`}function s1(e){return new Promise(t=>Rg(e)(t))}function Rg(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function l1(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new Wi(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function u1(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)d1(e[n],t[n])}function d1(e,t){if(zi(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(KO(t)){try{if(e instanceof t)return}catch(r){}if(!Ki(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 p1(){return typeof globalThis!="undefined"?globalThis[Og]:void 0}function f1(e){typeof globalThis!="undefined"&&(globalThis[Og]=e)}function W(e=!1){let t=p1();if(!e&&t)return t;let r=new Ra,n=new uu,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 f1(i),i}var du,HO,pg,$O,VO,fg,gg,WO,vg,ln,ut,YO,pu,Qi,fu,Ig,Wt,Da,Eg,La,Ag,kg,Xi,hu,zt,au,XO,mu,mg,ZO,V,gu,e1,Gn,$i,Zi,t1,r1,xg,Pg,Tg,Mt,su,me,i1,o1,Vi,Wi,Kt,cu,a1,ou,c1,_e,Ra,uu,Og,O=x(()=>{"use strict";du=Object.defineProperty,HO=Object.getOwnPropertyDescriptor,pg=Object.getOwnPropertySymbols,$O=Object.prototype.hasOwnProperty,VO=Object.prototype.propertyIsEnumerable,fg=(e,t,r)=>t in e?du(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,gg=(e,t)=>{for(var r in t||(t={}))$O.call(t,r)&&fg(e,r,t[r]);if(pg)for(var r of pg(t))VO.call(t,r)&&fg(e,r,t[r]);return e},WO=(e,t)=>{for(var r in t)du(e,r,{get:t[r],enumerable:!0})},vg=(e,t,r,n)=>{for(var i=n>1?void 0:n?HO(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&&du(t,r,i),i},ln=(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}ut=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))}})}};YO=(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))(YO||{}),pu=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}},Qi=class extends pu{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},fu=class extends pu{constructor(){super(...arguments),this.kind="USER_ERROR"}},Ig=class extends fu{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},Wt=class extends fu{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))}},Da=class extends fu{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))}},Eg=class extends Qi{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},La=class extends Qi{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))}},Ag=class extends Qi{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_METHOD_ERROR"}},kg=class extends Qi{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},Xi=class extends pu{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}}},hu=class extends Qi{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};zt={log:Hi("log"),warn:Hi("warn"),info:Hi("info"),error:Hi("error"),debug:Hi("debug")};Object.assign(globalThis,{logger:zt});au=Symbol.for("Jolibox.canIUseMap"),XO={};globalThis[au]||(globalThis[au]=XO);mu={get config(){return globalThis[au]}},mg=Symbol.for("Jolibox.canIUseMap.native"),ZO={};globalThis[mg]||(globalThis[mg]=ZO);V=(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))(V||{}),gu=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(gu||{}),e1=(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))(e1||{}),Gn=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});vu();$i=typeof window=="undefined",Zi={isiOS:!$i&&(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:!$i&&navigator.userAgent.includes("Android"),isMac:!$i&&navigator.userAgent.includes("Mac"),isFacebook:!$i&&navigator.userAgent.includes("FB_IAB"),isPC:!$i&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},t1="device_id",r1="advertising_id",xg=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,Gn()),window.__joliboxLocalStorage__.getItem(e)),Pg=()=>new URLSearchParams(window.location.search).get("deviceId")||xg(t1),Tg=()=>new URLSearchParams(window.location.search).get("advertisingId")||xg(r1);Mt=class{constructor(e,t={}){this.requestAdapter=e,this.cache=new Map,this.pendingRequests=new Map,this.requestSequence=0,this.cacheSequences=new Map,this.config=gg({duration:10*60*1e3,timeout:3e3,keyGenerator:(r,n)=>r,consistencyChecker:()=>!0},t)}request(e,t){return ln(this,null,function*(){let r=this.config.keyGenerator(e,t),n=this.pendingRequests.get(r);if(n)return console.log(`[RequestCacheService] Reusing pending request for ${e}`),n;let i=this.requestInternal(e,t),o=this.createTimeoutPromise(),a=Promise.race([i,o]).catch(s=>ln(this,null,function*(){if(s.message.includes("timeout")){let l=this.getValidCachedData(r);if(l)return console.warn(`[RequestCacheService] Request timeout, falling back to cache for ${e}`),this.requestAdapter.processCachedData?this.requestAdapter.processCachedData(l):l}throw s}));this.pendingRequests.set(r,a),i.then(s=>{console.log(`[RequestCacheService] Background request completed successfully for ${e}`)}).catch(s=>{console.warn(`[RequestCacheService] Background request failed for ${e}:`,s)});try{return yield a}finally{this.pendingRequests.delete(r)}})}requestInternal(e,t){return ln(this,null,function*(){var r,n,i,o;let a=this.config.keyGenerator(e,t),s=++this.requestSequence,l=this.getValidCachedData(a);if(console.log("[RequestCacheService] requestInternal start",e,"cached:",l),l){if(this.requestAdapter.extractRealTimeData&&this.requestAdapter.mergeData)try{let u=yield this.requestAdapter.execute(e,t),p=this.requestAdapter.extractRealTimeData(u),f=(n=(r=this.requestAdapter).extractCacheableData)==null?void 0:n.call(r,u);return f&&!this.config.consistencyChecker(l,f)?(console.log(`[RequestCacheService] Cache invalidated due to data change for ${e}`),this.setCachedDataWithSequence(a,f,s),u):this.requestAdapter.mergeData(l,p)}catch(u){return console.warn(`[RequestCacheService] Failed to fetch real-time data, using cache only for ${e}:`,u),this.requestAdapter.processCachedData?this.requestAdapter.processCachedData(l):l}return console.log(`[RequestCacheService] use cache for ${e}`),this.requestAdapter.processCachedData?this.requestAdapter.processCachedData(l):l}console.log(`[RequestCacheService] Cache miss, fetching fresh data for ${e} (sequence: ${s})`);let c=yield this.requestAdapter.execute(e,t),d=(o=(i=this.requestAdapter).extractCacheableData)==null?void 0:o.call(i,c);return d&&this.setCachedDataWithSequence(a,d,s),c})}createTimeoutPromise(){return new Promise((e,t)=>{setTimeout(()=>{t(new Error(`[RequestCacheService] Request timeout after ${this.config.timeout/1e3} seconds`))},this.config.timeout)})}getValidCachedData(e){let t=this.cache.get(e);return t?Date.now()>t.expiresAt?(this.cache.delete(e),null):t.data:null}setCachedDataWithSequence(e,t,r,n){let i=this.cache.get(e);if(i&&i.sequence>r){console.log(`[RequestCacheService] Ignoring stale cache update for ${e} (current: ${i.sequence}, incoming: ${r})`);return}let o=Date.now();this.cache.set(e,{data:JSON.parse(JSON.stringify(t)),timestamp:o,expiresAt:o+this.config.duration,key:e,sequence:r,metadata:n}),this.cacheSequences.set(e,r),console.log(`[RequestCacheService] Updated cache for ${e} with sequence ${r}`)}refreshCache(e,t){return ln(this,null,function*(){let r=this.config.keyGenerator(e,t);return this.cache.delete(r),this.request(e,t)})}forceRequest(e,t){return ln(this,null,function*(){var r,n;let i=this.config.keyGenerator(e,t),o=++this.requestSequence;console.log(`[RequestCacheService] Force request for ${e} (sequence: ${o})`);let a=yield this.requestAdapter.execute(e,t),s=(n=(r=this.requestAdapter).extractCacheableData)==null?void 0:n.call(r,a);return s&&(this.setCachedDataWithSequence(i,s,o),console.log(`[RequestCacheService] Force updated cache for ${e}`)),a})}warmupCache(e,t){return ln(this,null,function*(){let r=this.config.keyGenerator(e,t);if(this.pendingRequests.has(r)){console.log(`[RequestCacheService] Skipping warmup for ${e} - request in progress`);return}if(this.hasValidCache(r)){console.log(`[RequestCacheService] Skipping warmup for ${e} - valid cache exists`);return}try{console.log(`[RequestCacheService] Warming up cache for ${e}`),yield this.forceRequest(e,t)}catch(n){console.warn(`[RequestCacheService] Cache warmup failed for ${e}:`,n)}})}clearCache(e){e?(this.cache.delete(e),this.cacheSequences.delete(e),this.pendingRequests.delete(e),console.log(`[RequestCacheService] Cleared cache for ${e}`)):(this.cache.clear(),this.cacheSequences.clear(),this.pendingRequests.clear(),this.requestSequence=0,console.log("[RequestCacheService] Cleared all cache"))}clearExpiredCache(){let e=Date.now();for(let[t,r]of this.cache)e>r.expiresAt&&(this.cache.delete(t),this.cacheSequences.delete(t));console.log("[RequestCacheService] Cleared expired cache entries")}getCacheStats(){let e=Date.now(),t=0,r=0;for(let n of this.cache.values())e>n.expiresAt?r++:t++;return{cacheCount:this.cache.size,validCount:t,expiredCount:r,pendingRequestCount:this.pendingRequests.size}}getCacheKeys(){return Array.from(this.cache.keys())}hasValidCache(e){let t=this.cache.get(e);return t?Date.now()<=t.expiresAt:!1}getPendingRequestKeys(){return Array.from(this.pendingRequests.keys())}hasPendingRequest(e){return this.pendingRequests.has(e)}getCacheSequence(e){return this.cacheSequences.get(e)}},su=class lu{constructor(t){this.element=t,this.next=lu.Undefined,this.prev=lu.Undefined}};su.Undefined=new su(void 0);me=su,i1=class{constructor(){this._first=me.Undefined,this._last=me.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===me.Undefined}clear(){let e=this._first;for(;e!==me.Undefined;){let t=e.next;e.prev=me.Undefined,e.next=me.Undefined,e=t}this._first=me.Undefined,this._last=me.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new me(e);if(this._first===me.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!==me.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==me.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==me.Undefined&&e.next!==me.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===me.Undefined&&e.next===me.Undefined?(this._first=me.Undefined,this._last=me.Undefined):e.next===me.Undefined?(this._last=this._last.prev,this._last.next=me.Undefined):e.prev===me.Undefined&&(this._first=this._first.next,this._first.prev=me.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==me.Undefined;)yield e.element,e=e.next}},o1=0,Vi=class{constructor(e){this.value=e,this.id=o1++}},Wi=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 Vi&&(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 Vi(t);return this._listeners?this._listeners instanceof Vi?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 Vi)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 h=this._listeners.indexOf(c);h>=0&&(this._listeners.splice(h,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 Vi?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Kt=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 Wi,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 i1,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)}},cu={};WO(cu,{None:()=>a1,filter:()=>l1,once:()=>Rg,toPromise:()=>s1});a1=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});ou=Symbol.for("Jolibox.hostEmitter"),c1=()=>{let e=new Kt;return globalThis[ou]||(globalThis[ou]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[ou]},_e=c1();Ra=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Wi,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 u1(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}};Ra=vg([_g],Ra);uu=class{constructor(){this._onWillExecuteCommand=new Wi,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Wi,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Ra,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=zO(3e4)),this._starActivation}executeCommand(e,...t){return ln(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),cu.toPromise(cu.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}}};uu=vg([_g],uu);Og=Symbol.for("Jolibox.commands")});function Ee(e,t={}){bu.emit("ERROR_REPORT",{error:e,options:t})}var bu,un,vt=x(()=>{"use strict";O();O();bu=new Kt,un=new Kt;Ee.debounce=Yi(Ee,50,{leading:!0})});var _u,h1,Ng,Dg,Lg=x(()=>{"use strict";O();vt();_u=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{}}},h1=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},Ng=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:_u(o),payloadJson:_u(a),signature:_u(s)}}else throw"joli_source is missing"}catch(r){return Ee(new Eg(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},Dg=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],i=h1(e),o=r[2];return`${n}.${i}.${o}`}return t}});var m1,wu,qg=x(()=>{"use strict";O();m1="1.3.5-beta.3",wu=()=>m1});function Iu(e,t){return(document==null?void 0:document.head.querySelector(`meta[name="${e}"][content="${t}"]`))!==null}var g1,Ug,Su,Mg,ge,v1,I,J=x(()=>{"use strict";O();Lg();qg();O();g1={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:Pg(),adId:Tg(),pixelRatio:window.devicePixelRatio||1,platform:Zi.isAndroid?"android":Zi.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:wu()},schema:window.location.href,platform:Zi.isAndroid?"android":Zi.isiOS?"ios":"h5"},Su=(Ug=globalThis.joliboxJSCore)==null?void 0:Ug.env,ge=Object.assign({},(Mg=Su==null?void 0:Su())!=null?Mg:g1);v1=()=>{var g,b,y,_,S,E,P,C,k,G,ce;let{payloadJson:e,headerJson:t,signature:r}=ge.schema.length?Ng(ge.schema):{},n=`${ge.deviceInfo.did}-${new Date().getTime()}`,o=new URL(ge.schema.length?ge.schema:window.location.href).searchParams,a=(y=(b=(g=o.get("mpId"))!=null?g:o.get("appId"))!=null?b:o.get("gameId"))!=null?y:"",s=(E=(S=(_=ge.clientSessionId)!=null?_:e==null?void 0:e.sessionId)!=null?S:o.get("sessionId"))!=null?E:n,l=!!((C=(P=e==null?void 0:e.testAdsMode)!=null?P:e==null?void 0:e.__testAdsMode)!=null?C:o.get("testAdsMode")==="true"),c=(ce=(G=(k=e==null?void 0:e.joliboxEnv)!=null?k:e==null?void 0:e.__joliboxEnv)!=null?G:o.get("joliboxEnv"))!=null?ce:"production",d=c==="staging",u=t==null?void 0:t.channel,f=new URL(window.location.href).searchParams,h=e==null?void 0:e.__shouldInterupt;return{get startTime(){var N;return(N=performance.timeOrigin)!=null?N:performance.timing.navigationStart},get testMode(){return d},get testAdsMode(){return l},get joliboxEnv(){return c},get joliSource(){var N,R;return(R=(N=f.get("joliSource"))!=null?N:o.get("joliSource"))!=null?R:null},get mpId(){var N;return(N=a!=null?a:e==null?void 0:e.id)!=null?N:""},get mpVersion(){var N;return(N=t==null?void 0:t.ver)!=null?N:wu()},get mpType(){var N,R;return(R=(N=t==null?void 0:t.__mpType)!=null?N:e==null?void 0:e.__mpType)!=null?R:"game"},get platform(){var N;return((N=ge.platform)!=null?N:ge.deviceInfo.platform).toLowerCase()},get deviceInfo(){return ge.deviceInfo},get sdkInfo(){return ge.sdkInfo},get hostInfo(){return ge.hostInfo},get hostUserInfo(){return ge.hostUserInfo},get sessionId(){var N,R;return(R=(N=ge.clientSessionId)!=null?N:s)!=null?R:n},get channel(){return u},get webviewId(){var N;return(N=ge.webviewId)!=null?N:-1},get shouldInterupt(){return h},get from(){return e==null?void 0:e.__from},get baseApiHost(){return yu(d)},get adId(){var N;return(N=ge.deviceInfo.adId)!=null?N:ge.deviceInfo.did},get language(){return ge.deviceInfo.lang},get sdkEnvironment(){return Iu("dlightek","jolibox")?"dlightek":o.get("huaweiQuick")==="true"?"huaweiQuick":Iu("gamedistribution","jolibox")?"gamedistribution":Iu("funmax","jolibox")?"funmax":"jolibox"},get viewport(){var H,te,Ut;let N=(H=ge.deviceInfo.pixelRatio)!=null?H:1,R=(te=ge.deviceInfo.statusBarHeight)!=null?te:e==null?void 0:e.__androidStatusBarHeight,U=(Ut=ge.deviceInfo.navigationBarHeight)!=null?Ut:e==null?void 0:e.__androidNavigationBarHeight;return{statusBarHeight:R!==void 0?R/N:20,navigationBarHeight:U!==void 0?U/N:10}},get abTests(){var N,R;return(R=(N=ge.abValues)==null?void 0:N.split(","))!=null?R:[]},get mpInfo(){var N;return(N=ge.mpInfo)!=null?N:{mpName:"unknown"}},onEnvConfigChanged:N=>{wg(ge,N,Sg)},encodeJoliSourceQuery:N=>{var R,U;return t&&r?Dg(T(T({},e),N),(R=o.get("joliSource"))!=null?R:""):(U=o.get("joliSource"))!=null?U:""},setDoExitDirectly:()=>{h=!1}}},I=v1()});var Eu,jg,y1,b1,Fg,_1,Bg=x(()=>{"use strict";O();vt();J();O();Eu=!1,jg=(e,t)=>e==null?!1:t in e,y1=e=>jg(e,"kind"),b1=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},Fg=(e,t={},r)=>{var o,a,s;let n={user_id:(a=(o=I.hostUserInfo)==null?void 0:o.uid)!=null?a:"",device_id:(s=I.deviceInfo.did)!=null?s:"",timestamp:Date.now(),tag:b1(e.name)},i=B(T({},n),{env:t.environment,isFromUser:r});r?un.emit("GLOBAL_USER_ERROR",e,i):un.emit("GLOBAL_ERROR",e,i)},_1=e=>jg(e,"kind")&&e.kind==="USER_ERROR";bu.on("ERROR_REPORT",({error:e,options:t})=>{if(Eu)return;Eu=!0;let r=y1(e)&&e.raw?e.raw:e;try{let n=_1(e);Fg(e,t,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new hu(`${i}, origin error: ${r.message}`);zt.error(o),Fg(new hu(o.message),{environment:t.environment},!1)}finally{Eu=!1}})});var Xe,Au,jr=x(()=>{"use strict";vt();O();vt();Xe=(e,t)=>{var r,n;return new Xi((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},Au=e=>new Ig(e)});var Gg=x(()=>{"use strict";Bg();jr();O();ue();un.on("GLOBAL_ERROR",(e,t)=>{var n;let r={message:e.message,stack:(n=e.stack)!=null?n:"",errorType:e.name,source:0};F("trackAsync",{event:"reportJsError",data:r})});un.on("GLOBAL_USER_ERROR",(e,t)=>{zt.log("UserError",e,t)})});var ku=x(()=>{"use strict"});function Jg(e,t){let r=(n,i,o)=>{let c=i!=null?i:{},{eventType:a}=c,s=Qe(c,["eventType"]),l=B(T({tag:n,eventType:o!=null?o:a!=null?a:V.Other},t),{extra:T({},s)});n=="globalJsError"?Ee(new kg(JSON.stringify(l))):e("systemLog",l,I.webviewId)};return r.debounce=Yi(r,500,{leading:!0}),r}function Hg(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=Yi(t,500,{leading:!0}),t}var $g=x(()=>{"use strict";O();O();vt();J()});function Vg(e,t){let r=Jg(e,t),n=Hg(r);return{track:r,trackPerformance:n}}var Wg=x(()=>{"use strict";$g()});var zg=x(()=>{"use strict";J();O();O()});var Kg=x(()=>{"use strict";Wg();ku();zg()});var qa,Yg=x(()=>{"use strict";qa=class{constructor(t,r){this.eventEmitter=t;this.lastReportTime=0;this.visible=!0;this.reportCount=0;this.notifyIframeGameEvent=(t,r)=>{window.parent&&window.parent.postMessage({type:t,data:r},"*")};this.playGame=t=>{this.reportCount++,(this.reportCount<=3||(this.reportCount-3)%3===0)&&(this.reporter({event:"PLAY_GAME",params:{duration:t}}),this.tracker("PlayGame",{duration:t}),this.notifyIframeGameEvent("JOLIBOX_GAME_PLAY",{duration:t}))};this.timer=this.createRAFTimer(t=>{this.playGame(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.notifyIframeGameEvent("JOLIBOX_GAME_OPEN",{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.notifyIframeGameEvent("JOLIBOX_GAME_CLOSE",{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(),h=f-r;h>=this.interval&&(this.visible&&(a+=Math.min(h,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 Ua(e,t,r){var l,c,d;let n=new Map,i=(l=r==null?void 0:r.baseUrl)!=null?l:Jn(I.testMode),o=(c=r==null?void 0:r.type)!=null?c:"public",a=(d=r==null?void 0:r.defaultHeaders)!=null?d:{};return De("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:b}=f,y=Qe(f,["requestTaskId","state"]);u.statusCode===200?p.resolve(y):p.reject(y),n.delete(g)}else if(u.state==="fail"){let h=u,{requestTaskId:g,state:b}=h,y=Qe(h,["requestTaskId","state"]);p.reject(y),n.delete(g)}else zt.warn("onRequestTaskStateChange unknown event",u)}),_e.on("onLoginComplete",({isLogin:u,token:p})=>{o!=="public"&&u&&p&&(a["X-JOLI-TOKEN"]=p)}),(f,...h)=>v(this,[f,...h],function*(u,p={}){let g=Date.now(),b=w1(u,B(T({},p),{baseUrl:i})),{method:y="GET",responseType:_="text",dataType:S="json",timeout:E,enableCache:P=!1,appendHostCookie:C=!0}=p,k=Object.assign({"content-type":"application/json"},a,p.header),G={url:b,method:y,header:k,enableCache:P,responseType:_,appendHostCookie:C};if(y=="POST"||y=="PUT"){let H=I1(p.data,k["content-type"]);G.data=H}E&&Object.assign(G,{timeout:E});let{data:{requestTaskId:ce}}=F(e,G);if(typeof ce!="string")throw Xe({code:-1,msg:"requestTaskId is not a string"});let{resolve:N,reject:R,promise:U}=new ut;n.set(ce,{resolve:N,reject:R});try{let H=yield U,{data:te}=H;return S==="json"&&typeof te=="string"&&(te=S1(te)),{url:b,timeout:E,method:y,response:B(T({},H),{data:te})}}catch(H){let te=H;if(cn(te)){let{errMsg:Ut,prefetchDetail:Fc,isPrefetch:jc,errNo:qR}=te;zi(Ut)&&Ee(Xe({code:-1,msg:Ut},{errNo:qR,errMsg:Ut}))}throw H}})}function S1(e){try{return JSON.parse(e.trim())}catch(t){return e}}function I1(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 w1,Cu=x(()=>{"use strict";O();ue();vt();jr();J();w1=(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 xu,Qg,ne,yt=x(()=>{"use strict";Cu();J();O();xu={};(Qg=I.hostUserInfo)!=null&&Qg.token&&(xu["x-joli-token"]=I.hostUserInfo.token);I.joliSource&&(xu["x-joli-source"]=I.joliSource);ne=Ua("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:Jn(I.testMode),defaultHeaders:xu})});function Xg(e){let t=mu.config[e];return t||(t={},mu.config[e]=t),(r,n)=>{if(t[r]){zt.warn(`[can i use] ${r} already registered`);return}t[r]=T({},n)}}var Zg=x(()=>{"use strict";O()});function Pu(e){ev=e}function Ma(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>Ma(t)):Object.keys(e).reduce((t,r)=>(t[r]=Ma(e[r]),t),{})}function fr(e){return typeof e=="number"}function Tu(e){let t=Ru(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function Ru(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var ev,Ce,Fa,ja,Ba,Ga,Hn,Ja,Ha,$a,Va,Wa,za,Ka,Ya,Qa,Xa,Za,es,Ou=x(()=>{"use strict";ev=!1;Ce=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(ev)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 ${Tu(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return Ma(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:Ma(this._default)}optional(){return this._optional=!0,this}};Fa=class extends Ce{validate(t){return this._optional&&t===void 0?!0:fr(t)?fr(this._min)&&t<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):fr(this._max)&&t>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):fr(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}},ja=class extends Ce{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},Ba=class extends Ce{validate(t){if(this._optional&&t===void 0)return!0;if(typeof t!="string")return this.fail({expect:"string",actual:t});if(fr(this._maxLength)&&t.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if(fr(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}},Ga=class extends Ce{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},Hn=class extends Ce{validate(t){return!0}},Ja=class extends Ce{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},Ha=class extends Ce{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},$a=class extends Ce{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},Va=class extends Ce{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 ${Tu(t)}`)}return!0}},Wa=class extends Ce{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(fr(this._minItems)&&r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if(fr(this._maxItems)&&r.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if(fr(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}},za=class extends Ce{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(Ru(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}},Ka=class extends Ce{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(Ru(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}},Ya=class extends Ce{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:Tu(this.value),actual:r}):!0}},Qa=class extends Ce{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(`
2
- or `);this.errors.push(o)}return n}},Xa=class extends Ce{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}},Za=class extends Ce{validate(t){return t===void 0&&this._optional||t instanceof ArrayBuffer?!0:this.fail({expect:"arraybuffer",actual:t})}},es=class extends Ce{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 Nu(e,t,r="param"){if(e.errors=[],e.path=r,Pu(!0),!e.validate(t)){let n=e.errors.join(`
3
- `);throw e.errors.length=0,Pu(!1),new TypeError(n)}}var A,Du=x(()=>{"use strict";Ou();Ou();A={object(e){return new Ka(e)},array(e){return new Wa(e)},tuple(...e){return new Xa(...e)},literal(e){return new Ya(e)},or(...e){return new Qa(...e)},symbol(){return new Ga},record(e){return new za(e)},function(){return new $a},boolean(){return new ja},string(){return new Ba},number(){return new Fa},undefined(){return new Ja},null(){return new Ha},unknown(){return new Hn},any(){return new Hn},as(){return new Hn},arraybuffer(){return new Za},enum(...e){return new Va(...e)},typedarray(e){return new es(e)}}});var ts,tv,rv=x(()=>{"use strict";O();vt();Du();jr();ts=1,tv=e=>{function t(n,i){return(...o)=>{var u,p,f,h;let a=Date.now(),s={method:n,trace_id:ts};ts+=1;let l="SUCCESS",c=`${n}:ok`,d=0;try{if(i.paramsSchema)try{Nu(i.paramsSchema,o,"params")}catch(_){throw Au(`${n}:fail ${_.message}`)}let g=i.implement(...o),b=g,y=`${n}:ok`;if(g&&"code"in g){let{code:_,data:S,message:E}=g;l=_,b=S,y=E}return{code:l,message:y,data:b}}catch(g){let b=g;d=(p=(u=b.code)!=null?u:b.errNo)!=null?p:2e3,l="FAILURE";let y=(h=(f=b.message)!=null?f:b.errMsg)!=null?h:`${g}`;return c=`${n}:${l} ${y.replace(/^\S+:(fail|cancel)\s?/,"")}`,Ee(new Xi(c,d)),{code:l,message:c}}finally{let g=Date.now()-a}}}function r(n,i){return(...o)=>v(this,null,function*(){var p,f,h,g;let a=yg(o)?o:[o],s=Date.now(),l={method:n,trace_id:ts};ts+=1;let c=`${n}:ok`,d="SUCCESS",u={code:d,message:c};try{if(i.paramsSchema)try{Nu(i.paramsSchema,a,"params")}catch(_){throw Au(_.message)}let y=yield i.implement(...a);if(y&&"code"in y){let{code:_,data:S,message:E}=y;d=_,c=E,y=S}return Object.assign(u,{code:d,message:c,data:y}),u}catch(b){let y=b,_=(f=(p=y.code)!=null?p:y.errNo)!=null?f:2e3;d="FAILURE";let S=(g=(h=y.message)!=null?h:y.errMsg)!=null?g:`${b}`,E=`${n}:${d} ${S.replace(/^\S+:(fail|cancel)\s?/,"")}`;return Object.assign(u,{code:d,message:E}),Ee(new Xi(E,_)),u}finally{let b=Date.now()-s}})}return{createAPI:r,createSyncAPI:t}}});var je,Lu=x(()=>{"use strict";J();ue();({canIUseNative:je}=og(()=>I.sdkInfo.nativeSDKVersionCode,()=>I.platform))});function qu(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 nv=x(()=>{"use strict"});var oe,K,M,Je=x(()=>{"use strict";Zg();Tt();rv();Du();Lu();nv();({createAPI:oe,createSyncAPI:K}=tv(j)),M=Xg("native")});function iv(e){let t=Object.prototype.toString.call(e).split(" ")[1].split("]")[0].toLocaleLowerCase();return t==="array"&&(t="object"),P1.includes(t)?t:""}function ov(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 av(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 rs,A1,k1,C1,x1,q8,U8,P1,Br,bt,eo=x(()=>{"use strict";Je();ue();O();yt();J();rs=W(),A1=oe("getLocalStorage",{paramsSchema:A.tuple(A.string()),implement(e){return v(this,null,function*(){let{response:t}=yield ne(`/api/games/user-storage/${I.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 he("getLocalStorageAsync",{key:e}),s=ov(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}}})}});rs.registerCommand("StorageSDK.getItem",A1);M("storage.getItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});k1=oe("setStorage",{paramsSchema:A.tuple(A.string(),A.or(A.string(),A.boolean(),A.number())),implement(e,t){return v(this,null,function*(){let r=I.mpId,n=typeof t=="string"?t:String(t),{response:i}=yield ne(`/api/games/user-storage/${r}`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e,value:n}}),{data:{code:o,message:a}}=i,s=iv(t),l=av(t,s);return yield he("setLocalStorageAsync",{key:e,data:l,dataType:s}),o=="SUCCESS"?{code:o,message:a}:{code:o,message:`${a}. fallback to native`}})}});rs.registerCommand("StorageSDK.setItem",k1);M("storage.setItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});C1=oe("removeStorage",{paramsSchema:A.tuple(A.string()),implement(e){return v(this,null,function*(){let t=I.mpId,{response:r}=yield ne(`/api/games/user-storage/${t}/remove`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e}}),{data:{code:n,message:i}}=r;return yield he("removeLocalStorageAsync",{key:e}),n==="SUCCESS"?{code:n,message:i}:{code:n,message:"[Jolibox SDK] remove item succ"}})}});rs.registerCommand("StorageSDK.removeItem",C1);M("storage.removeItem",{version:"1.0.0",properties:{key:"1.0.0"}});x1=oe("clearStorage",{implement(){return v(this,null,function*(){let e=I.mpId,{response:t}=yield ne(`/api/games/user-storage/${e}/clear`,{method:"POST",appendHostCookie:!0});he("clearLocalStorageAsync");let{data:{code:r,message:n}}=t;return r==="SUCCESS"?{code:r,message:n}:{code:r,message:`${n}.fallback to native`}})}});rs.registerCommand("StorageSDK.clear",x1);M("storage.clear",{version:"1.0.0"});q8=oe("getStorageInfo",{implement(){return v(this,null,function*(){let{data:e}=yield he("getStorageInfoAsync");return e})}});M("getStorageInfo",{version:"1.0.0",success:{keys:"1.0.0",currentSize:"1.0.0",limitSize:"1.0.0"}});U8=K("getStorageInfoSync",{implement(){return F("getStorageInfoSync")}}),P1=["string","number","boolean","object",""];Br=oe("getGlobalStorage",{paramsSchema:A.tuple(A.string()),implement(e){return v(this,null,function*(){try{let{data:{data:t,dataType:r}}=yield he("getGlobalStorageAsync",{key:e});return{code:"SUCCESS",message:"success",data:ov(t,r)}}catch(t){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get global storage failed",data:null}}})}}),bt=oe("setGlobalStorage",{paramsSchema:A.tuple(A.string(),A.or(A.string(),A.boolean(),A.number(),A.array())),implement(e,t){return v(this,null,function*(){try{let r=iv(t),n=av(t,r);return yield he("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 sv,ns,lv=x(()=>{"use strict";J();Yg();O();yt();ue();eo();Lu();sv="REPORT_FIRST_OPEN_GAME",ns=class extends qa{constructor(t,r,n){super(r,n),this.gameId=I.mpId,this.sessionId=I.sessionId,this.track=t,this.taskUrl=Jn(I.testMode)+"/api/base/app-event"}reporter(t){return v(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 this.createTask(o)})}reportToNative(t){return v(this,null,function*(){let{event:r,params:n}=t;yield he("userTrackAsync",{event:r,params:T({},n),gameId:this.gameId})})}tracker(t,r=null){this.track(t,r)}start(t){super.start(t),this.tryReportOpenGamePlus()}tryReportOpenGamePlus(){Br(sv).then(t=>{Fr(t.data)&&t.data&&this.tracker("OpenGame_2Plus"),bt(sv,!0)})}createTask(t){return je("sendServerEventAsync")?he("sendServerEventAsync",{payload:t}):I.platform==="android"?ne("/api/base/app-event",{method:"POST",data:t}):he("trackAppEventAsync",{url:this.taskUrl,body:JSON.stringify(t)})}}});var fv={};Gm(fv,{nativeTaskEmitter:()=>to,taskTracker:()=>Ft,track:()=>j,trackPerformance:()=>dv});var T1,cv,uv,j,dv,pv,to,Ft,Tt=x(()=>{"use strict";Gg();O();ku();Kg();J();lv();ue();T1=(e,t,r)=>{var c,d,u,p,f,h,g;let n=t,i=cn(n.extra)?n.extra:zi(n.extra)?JSON.parse(n.extra):{},{mpName:o,mpVersion:a}=(c=I.mpInfo)!=null?c:{},s=T(T(B(T({},i),{mp_id:(d=n.mp_id)!=null?d:"",mp_version:(u=n.mp_version)!=null?u:"",session_id:I.sessionId,user_id:(f=(p=I.hostUserInfo)==null?void 0:p.uid)!=null?f:""}),o?{mp_name:o}:{}),a?{mp_info_version:a}:{}),l=(h=n.eventType)!=null?h:V.Other;F("trackAsync",{event:(g=t.tag)!=null?g:e,data:s,webviewId:r,eventType:l})},{track:j,trackPerformance:dv}=Vg(T1,{type:gu.AppSDK,platform:"native",jssdk_version:(uv=(cv=I.sdkInfo)==null?void 0:cv.jssdkVersion)!=null?uv:"1.0.0",mp_id:I.mpId,mp_version:I.mpVersion}),pv=W();pv.registerCommand("ReportSDK.traceSystemTimeline",({event:e,duration:t,extra:r})=>{dv(e,t,r)});pv.registerCommand("ReportSDK.traceSystem",({event:e,info:t})=>{j(e,t)});to=new Kt,Ft=new ns(j,to)});function hv(){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 MR=Object.create;var ka=Object.defineProperty,FR=Object.defineProperties,jR=Object.getOwnPropertyDescriptor,BR=Object.getOwnPropertyDescriptors,GR=Object.getOwnPropertyNames,Ca=Object.getOwnPropertySymbols,JR=Object.getPrototypeOf,Jc=Object.prototype.hasOwnProperty,Gm=Object.prototype.propertyIsEnumerable;var Bm=(e,t,r)=>t in e?ka(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,P=(e,t)=>{for(var r in t||(t={}))Jc.call(t,r)&&Bm(e,r,t[r]);if(Ca)for(var r of Ca(t))Gm.call(t,r)&&Bm(e,r,t[r]);return e},B=(e,t)=>FR(e,BR(t));var Xe=(e,t)=>{var r={};for(var n in e)Jc.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ca)for(var n of Ca(e))t.indexOf(n)<0&&Gm.call(e,n)&&(r[n]=e[n]);return r};var x=(e,t)=>()=>(e&&(t=e(e=0)),t);var m=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Jm=(e,t)=>{for(var r in t)ka(e,r,{get:t[r],enumerable:!0})},HR=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of GR(t))!Jc.call(e,i)&&i!==r&&ka(e,i,{get:()=>t[i],enumerable:!(n=jR(t,i))||n.enumerable});return e};var se=(e,t,r)=>(r=e!=null?MR(JR(e)):{},HR(t||!e||!e.__esModule?ka(r,"default",{value:e,enumerable:!0}):r,e));var v=(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 YR(e){return!!(e!=null&&e.__nativeBuffers__)}function Yc(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!YR(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=QR(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function ZR(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:XR(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function nO(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function rg(e){return typeof e=="string"}function jn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function $m(e){return typeof e=="number"&&!isNaN(e)}function oO(e){return typeof e=="undefined"}function aO(e){return oO(e)||e===null}function ng(e){return typeof e=="function"}function sO(e){return jn(e)&&ng(e.then)}function ig(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function Ji(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function hO(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 bO(){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 EO(e){return new Promise(t=>og(e)(t))}function og(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function AO(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new Vi(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function kO(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)xO(e[n],t[n])}function xO(e,t){if(rg(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(ng(t)){try{if(e instanceof t)return}catch(r){}if(!aO(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 Rt(e,t){if(Xc.config[e]){Na.warn(`[can i use] ${e} already registered`);return}Xc.config[e]=pr({},t)}function zm(e,t){return`[${e}]:${t}`}function LO(e,t){Km||(Vc=new Ta({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Wc=new Ta({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),zc=new Ta({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),t("onJoliboxEnterBackground",()=>{Vc.flush(),Wc.flush(),zc.flush()}),Km=!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:h,invokeCallback:g}=f,b=(a=(o=u.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";Vc.report({status:b,method:n(s,l),errNo:`${p}`,errMsg:u,isForeground:d,duration:Date.now()-c}),c&&h&&g&&(Wc.report({status:b,method:s,isForeground:d,duration:Number((h-c).toFixed(3))}),zc.report({status:b,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 FO(e,t){let r=0,n=!0,i=MO.resolveMap,o=LO(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,Kc.forEach(l=>Ra(this,[l],function*({method:c,args:d,resolve:u}){let p=yield s(c,d);u(p)})),Kc.length=0});let a=(l,c)=>{let d=i.get(Number(l));if(!d)return;let u=Yc(c);d(u),i.delete(Number(l))},s=(l,c)=>{var d,u;let p=Date.now(),f=`${n}`;r+=1;let h=new iO;if(i.set(r,h.resolve),!n&&RO.includes(l))return new Promise(E=>{Kc.push({method:l,args:c,resolve:E})});let g=zR(pr({},{method:l,startTime:p,args:c,isForeground:f}),{invokeType:"js-bridge"}),b=!qO&&PO.includes(l),y=ZR(c,b),_=b?y:JSON.stringify(y),I;if(l.endsWith("Sync")||OO.includes(l)?I=(d=e.call)==null?void 0:d.call(e,l,y,r):typeof _=="string"?I=e.invoke(l,_,r):I=(u=e.call)==null?void 0:u.call(e,l,_,r),I){try{typeof I=="string"&&(I=JSON.parse(I)),I=Yc(I)}catch(E){Na.error(E)}return i.delete(r),I.errorCode&&(I.errorCode=zm(l,I.errorCode)),o(pr(pr({},g),I)),I}return l.endsWith("Sync")&&i.delete(r),h.promise.then(E=>(E.errorCode&&(E.errorCode=zm(l,E.errorCode)),o(pr(pr({},g),E)),E))};return{invokeNative:s,applyNative:(l,c)=>{let d=s(l,c);return sO(d)?d.then(u=>Ym(l,u)):Ym(l,d)},invokeHandler:a}}function Ym(e,t){if(!jn(t)){Na.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=KR(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new dO(n,i,o,a);return s}function jO(e){if(globalThis[xa])return globalThis[xa];let t=new tu,r=new tu,n=new Ta({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[xa]={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=Yc(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===sg){l.forEach(c=>{let[d,u]=c;try{r.emit(d.slice($i.length),u,a)}catch(p){}});return}if(i.startsWith($i)){r.emit(i.slice($i.length),l,a);return}t.emit(i,l,a)}},globalThis[xa]}function BO(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(`${$i}${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(sg,d,p)}catch(p){}}),n=void 0,t.clear()}));let c=t.get(s);c||(c=[],t.set(s,c)),c.push([`${$i}${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(NO,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 GO(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=jO(e),{invokeNative:a,invokeHandler:s,applyNative:l}=FO(e,r),{publish:c,emitNative:d}=BO(e);return{invokeHandler:s,subscribeHandler:t,applyNative:l,invokeNative:a,onNative:r,offNative:n,emitNative:d,publish:c,subscribe:i,unsubscribe:o}}function lg(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var $R,VR,WR,Pa,Xm,Zm,Hm,pr,zR,KR,Ra,QR,XR,eg,eO,tO,tg,rO,iO,lO,cO,Oa,uO,dO,pO,Hc,Na,Vm,fO,Qc,mO,Xc,gO,vO,yO,Fn,_O,s6,Zc,fe,wO,SO,Hi,Vi,tu,ru,IO,$c,CO,l6,nu,Wm,c6,ag,TO,$i,PO,RO,OO,sg,NO,DO,Ta,Km,Vc,Wc,zc,Kc,qO,iu,UO,MO,xa,ou,Pt,cg,ug,JO,dg,Qm,he,F,De,u6,HO,pg,au,d6,p6,ue=x(()=>{"use strict";$R=Object.defineProperty,VR=Object.defineProperties,WR=Object.getOwnPropertyDescriptors,Pa=Object.getOwnPropertySymbols,Xm=Object.prototype.hasOwnProperty,Zm=Object.prototype.propertyIsEnumerable,Hm=(e,t,r)=>t in e?$R(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,pr=(e,t)=>{for(var r in t||(t={}))Xm.call(t,r)&&Hm(e,r,t[r]);if(Pa)for(var r of Pa(t))Zm.call(t,r)&&Hm(e,r,t[r]);return e},zR=(e,t)=>VR(e,WR(t)),KR=(e,t)=>{var r={};for(var n in e)Xm.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Pa)for(var n of Pa(e))t.indexOf(n)<0&&Zm.call(e,n)&&(r[n]=e[n]);return r},Ra=(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())});QR=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};XR=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)};eg=Object.defineProperty,eO=Object.getOwnPropertyDescriptor,tO=(e,t)=>{for(var r in t)eg(e,r,{get:t[r],enumerable:!0})},tg=(e,t,r,n)=>{for(var i=n>1?void 0:n?eO(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&&eg(t,r,i),i},rO=(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}iO=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))}})}};lO=(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))(lO||{}),cO=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}},Oa=class extends cO{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},uO=class extends Oa{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},dO=class extends Oa{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},pO=class extends Oa{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},Hc=class extends Oa{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};Na={log:Ji("log"),warn:Ji("warn"),info:Ji("info"),error:Ji("error"),debug:Ji("debug")};Object.assign(globalThis,{logger:Na});Vm=Symbol.for("Jolibox.canIUseMap"),fO={};globalThis[Vm]||(globalThis[Vm]=fO);Qc=Symbol.for("Jolibox.canIUseMap.native"),mO={};globalThis[Qc]||(globalThis[Qc]=mO);Xc={get config(){return globalThis[Qc]}},gO=(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))(gO||{}),vO=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(vO||{}),yO=(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))(yO||{});bO();Fn=typeof window=="undefined",_O=()=>!Fn&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),s6={isiOS:!Fn&&(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:!Fn&&navigator.userAgent.includes("Android"),isMac:!Fn&&navigator.userAgent.includes("Mac"),isFacebook:!Fn&&navigator.userAgent.includes("FB_IAB"),isPC:!Fn&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},Zc=class eu{constructor(t){this.element=t,this.next=eu.Undefined,this.prev=eu.Undefined}};Zc.Undefined=new Zc(void 0);fe=Zc,wO=class{constructor(){this._first=fe.Undefined,this._last=fe.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===fe.Undefined}clear(){let e=this._first;for(;e!==fe.Undefined;){let t=e.next;e.prev=fe.Undefined,e.next=fe.Undefined,e=t}this._first=fe.Undefined,this._last=fe.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new fe(e);if(this._first===fe.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!==fe.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==fe.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==fe.Undefined&&e.next!==fe.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===fe.Undefined&&e.next===fe.Undefined?(this._first=fe.Undefined,this._last=fe.Undefined):e.next===fe.Undefined?(this._last=this._last.prev,this._last.next=fe.Undefined):e.prev===fe.Undefined&&(this._first=this._first.next,this._first.prev=fe.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==fe.Undefined;)yield e.element,e=e.next}},SO=0,Hi=class{constructor(e){this.value=e,this.id=SO++}},Vi=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 Hi&&(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 Hi(t);return this._listeners?this._listeners instanceof Hi?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 Hi)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 h=this._listeners.indexOf(c);h>=0&&(this._listeners.splice(h,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 Hi?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},tu=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 Vi,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 wO,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)}},ru={};tO(ru,{None:()=>IO,filter:()=>AO,once:()=>og,toPromise:()=>EO});IO=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});$c=Symbol.for("Jolibox.hostEmitter"),CO=()=>{let e=new tu;return globalThis[$c]||(globalThis[$c]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[$c]},l6=CO();nu=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Vi,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 kO(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}};nu=tg([ig],nu);Wm=class{constructor(){this._onWillExecuteCommand=new Vi,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Vi,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new nu,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=nO(3e4)),this._starActivation}executeCommand(e,...t){return rO(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),ru.toPromise(ru.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}}};Wm=tg([ig],Wm);c6=Symbol.for("Jolibox.commands");Rt("requestPaymentSync",{version:1e6,properties:{paymentBody:{appStoreProductId:102e4}}});Rt("requestProductDetailsAsync",{version:102e4});Rt("invokeSubscriptionPanelSync",{version:107e4,properties:{type:{game:107e4,drama:107e4}}});Rt("loginSync",{version:1e6,properties:{skipLogin:102e4,triggerFrom:102e4}});Rt("getABTest",{version:1050100,platforms:{android:1050100,ios:!1}});Rt("userTrackAsync",{version:1e6});Rt("openMiniapp",{version:1050100});Rt("requestCoinDetailsSync",{version:1070100});Rt("requestCoinDetailsAsync",{version:1070100});Rt("sendServerEventAsync",{version:1070100});Rt("loadAdsAsync",{version:1070200});Rt("showAdAsync",{version:1070200});ag=(e,t)=>{function r(i){var o;let[a,...s]=i.split(":");if(!a)return!1;let l=Xc.config[a];if(!l)return!1;let c=(o=t==null?void 0:t())!=null?o:"",d=l.version;if(l.platforms&&c in l.platforms){let p=l.platforms[c];if(p===!1)return!1;typeof p=="number"&&(d=p)}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=hO(i,o);if(!s)return!1;if(jn(s)){let l=s.version;return $m(l)?typeof a=="number"&&a>=l:!0}return $m(s)?typeof a=="number"&&a>=s:s===!0}return{canIUseNative:r}};TO=()=>_O(),$i="custom_event_",PO=[],RO=[],OO=["env","createRequestTask","login"],sg="__batch_event__",NO="__native_batch_event__",DO=e=>e==="pv"?e:"default",Ta=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=DO(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&&jn(a))throw new Hc(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let l=[];if(jn(a))l.push(...Object.keys(a));else if(rg(a)){if(i.length>0)throw new Hc(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);l.push(a)}else throw new Hc(`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=jn(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={}}},Km=!1;Kc=[],qO=!1,iu=Symbol.for("Jolibox.invokeResolverInstance"),UO=new Map;globalThis[iu]||(globalThis[iu]=UO);MO={get resolveMap(){return globalThis[iu]}};xa=Symbol.for("Jolibox.subscribeInstance");Pt={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){Pt.trigger=e},onDoExit(e){Pt.exit=e},onDoBackPress(e){Pt.backPress=e}},cg=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new uO("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="")=>{Pt.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>Ra(void 0,null,function*(){let o=yield Pt.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});ou={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=lg(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:cg,doExit:r};globalThis.joliboxJSCore=pr({},n)}if(typeof window!="undefined"&&window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(o="")=>{Pt.trigger(),t.onDocumentReady(JSON.stringify({path:o}))},n=o=>Ra(void 0,null,function*(){let a=yield Pt.exit();t.doExit(JSON.stringify({uuid:o,shouldInterrupt:a}))});ou={onDocumentReady:r,invoke(o,a,s){t.invoke(JSON.stringify({event:o,paramsString:a,callbackId:s}))},doExit:n,publish(o,a,s){let l=lg(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 Ra(this,null,function*(){let a=yield Pt.backPress();t.doBackPress(JSON.stringify({uuid:o,shouldInterrupt:a}))})}};let i={onDocumentReady:r,env:cg,doExit:n};globalThis.joliboxJSCore=pr({},i)}ug=ou;if(!ug&&TO())throw new pO("No joliboxJScore is found, native bridge not found.");JO=pr({},ug),dg=GO(JO),{invokeHandler:Qm}=dg,{applyNative:he,invokeNative:F,onNative:De,offNative:u6,subscribeHandler:HO,publish:pg,emitNative:au,subscribe:d6,unsubscribe:p6}=dg;globalThis.joliboxJSBridge={callHandler:Qm,invokeHandler:Qm,subscribeHandler:HO}});function KO(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function La(e){return new Promise(t=>setTimeout(t,e))}function Qi(e){return typeof e=="string"}function cn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function bg(e){return typeof e=="object"&&Array.isArray(e)}function qa(e){return typeof e=="number"&&!isNaN(e)}function Fr(e){return e===!0||e===!1}function _g(e){return typeof e=="undefined"}function Xi(e){return _g(e)||e===null}function YO(e){return typeof e=="function"}function wg(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function Sg(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:mg(l)&&mg(s)?i[a]=n(vg({},s),l):Array.isArray(l)&&Array.isArray(s)?i[a]=[...s,...l]:i[a]=l}return i}return n(e,t)}function mg(e){return e&&typeof e=="object"&&e.constructor===Object}function Ig(e,t){if(Array.isArray(e))return e.concat(t)}function Zi(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 XO(e,t){return(...r)=>t(e,...r)}function Bn(e){return t=>XO(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(i){e(new Wt(`${i}`))}})}function Wi(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function xg(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 bu(){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 i1(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"||a==="mporia.com"||a==="pingplus.ai")return`${o}.${a}`}return`${o}.jolibox.com`}function _u(e){return i1("app","stg-app",e)}function Jn(e){return`https://${_u(e)}`}function l1(e){return new Promise(t=>Og(e)(t))}function Og(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function c1(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new Yi(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function d1(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)p1(e[n],t[n])}function p1(e,t){if(Qi(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(YO(t)){try{if(e instanceof t)return}catch(r){}if(!Xi(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 f1(){return typeof globalThis!="undefined"?globalThis[Ng]:void 0}function h1(e){typeof globalThis!="undefined"&&(globalThis[Ng]=e)}function W(e=!1){let t=f1();if(!e&&t)return t;let r=new Da,n=new pu,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 h1(i),i}var fu,$O,fg,VO,WO,hg,vg,zO,yg,ln,ut,QO,hu,eo,mu,Eg,Wt,Ua,Ag,Ma,Cg,kg,to,gu,zt,lu,ZO,vu,gg,e1,V,yu,t1,Gn,zi,ro,r1,n1,Tg,Pg,Rg,Ft,cu,me,o1,a1,Ki,Yi,Kt,du,s1,su,u1,_e,Da,pu,Ng,O=x(()=>{"use strict";fu=Object.defineProperty,$O=Object.getOwnPropertyDescriptor,fg=Object.getOwnPropertySymbols,VO=Object.prototype.hasOwnProperty,WO=Object.prototype.propertyIsEnumerable,hg=(e,t,r)=>t in e?fu(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,vg=(e,t)=>{for(var r in t||(t={}))VO.call(t,r)&&hg(e,r,t[r]);if(fg)for(var r of fg(t))WO.call(t,r)&&hg(e,r,t[r]);return e},zO=(e,t)=>{for(var r in t)fu(e,r,{get:t[r],enumerable:!0})},yg=(e,t,r,n)=>{for(var i=n>1?void 0:n?$O(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&&fu(t,r,i),i},ln=(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}ut=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))}})}};QO=(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))(QO||{}),hu=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}},eo=class extends hu{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},mu=class extends hu{constructor(){super(...arguments),this.kind="USER_ERROR"}},Eg=class extends mu{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},Wt=class extends mu{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))}},Ua=class extends mu{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))}},Ag=class extends eo{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},Ma=class extends eo{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))}},Cg=class extends eo{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_METHOD_ERROR"}},kg=class extends eo{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},to=class extends hu{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}}},gu=class extends eo{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};zt={log:Wi("log"),warn:Wi("warn"),info:Wi("info"),error:Wi("error"),debug:Wi("debug")};Object.assign(globalThis,{logger:zt});lu=Symbol.for("Jolibox.canIUseMap"),ZO={};globalThis[lu]||(globalThis[lu]=ZO);vu={get config(){return globalThis[lu]}},gg=Symbol.for("Jolibox.canIUseMap.native"),e1={};globalThis[gg]||(globalThis[gg]=e1);V=(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))(V||{}),yu=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(yu||{}),t1=(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))(t1||{}),Gn=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});bu();zi=typeof window=="undefined",ro={isiOS:!zi&&(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:!zi&&navigator.userAgent.includes("Android"),isMac:!zi&&navigator.userAgent.includes("Mac"),isFacebook:!zi&&navigator.userAgent.includes("FB_IAB"),isPC:!zi&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},r1="device_id",n1="advertising_id",Tg=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,Gn()),window.__joliboxLocalStorage__.getItem(e)),Pg=()=>new URLSearchParams(window.location.search).get("deviceId")||Tg(r1),Rg=()=>new URLSearchParams(window.location.search).get("advertisingId")||Tg(n1);Ft=class{constructor(e,t={}){this.requestAdapter=e,this.cache=new Map,this.pendingRequests=new Map,this.requestSequence=0,this.cacheSequences=new Map,this.config=vg({duration:10*60*1e3,timeout:3e3,keyGenerator:(r,n)=>r,consistencyChecker:()=>!0},t)}request(e,t){return ln(this,null,function*(){let r=this.config.keyGenerator(e,t),n=this.pendingRequests.get(r);if(n)return console.log(`[RequestCacheService] Reusing pending request for ${e}`),n;let i=this.requestInternal(e,t),o=this.createTimeoutPromise(),a=Promise.race([i,o]).catch(s=>ln(this,null,function*(){if(s.message.includes("timeout")){let l=this.getValidCachedData(r);if(l)return console.warn(`[RequestCacheService] Request timeout, falling back to cache for ${e}`),this.requestAdapter.processCachedData?this.requestAdapter.processCachedData(l):l}throw s}));this.pendingRequests.set(r,a),i.then(s=>{console.log(`[RequestCacheService] Background request completed successfully for ${e}`)}).catch(s=>{console.warn(`[RequestCacheService] Background request failed for ${e}:`,s)});try{return yield a}finally{this.pendingRequests.delete(r)}})}requestInternal(e,t){return ln(this,null,function*(){var r,n,i,o;let a=this.config.keyGenerator(e,t),s=++this.requestSequence,l=this.getValidCachedData(a);if(console.log("[RequestCacheService] requestInternal start",e,"cached:",l),l){if(this.requestAdapter.extractRealTimeData&&this.requestAdapter.mergeData)try{let u=yield this.requestAdapter.execute(e,t),p=this.requestAdapter.extractRealTimeData(u),f=(n=(r=this.requestAdapter).extractCacheableData)==null?void 0:n.call(r,u);return f&&!this.config.consistencyChecker(l,f)?(console.log(`[RequestCacheService] Cache invalidated due to data change for ${e}`),this.setCachedDataWithSequence(a,f,s),u):this.requestAdapter.mergeData(l,p)}catch(u){return console.warn(`[RequestCacheService] Failed to fetch real-time data, using cache only for ${e}:`,u),this.requestAdapter.processCachedData?this.requestAdapter.processCachedData(l):l}return console.log(`[RequestCacheService] use cache for ${e}`),this.requestAdapter.processCachedData?this.requestAdapter.processCachedData(l):l}console.log(`[RequestCacheService] Cache miss, fetching fresh data for ${e} (sequence: ${s})`);let c=yield this.requestAdapter.execute(e,t),d=(o=(i=this.requestAdapter).extractCacheableData)==null?void 0:o.call(i,c);return d&&this.setCachedDataWithSequence(a,d,s),c})}createTimeoutPromise(){return new Promise((e,t)=>{setTimeout(()=>{t(new Error(`[RequestCacheService] Request timeout after ${this.config.timeout/1e3} seconds`))},this.config.timeout)})}getValidCachedData(e){let t=this.cache.get(e);return t?Date.now()>t.expiresAt?(this.cache.delete(e),null):t.data:null}setCachedDataWithSequence(e,t,r,n){let i=this.cache.get(e);if(i&&i.sequence>r){console.log(`[RequestCacheService] Ignoring stale cache update for ${e} (current: ${i.sequence}, incoming: ${r})`);return}let o=Date.now();this.cache.set(e,{data:JSON.parse(JSON.stringify(t)),timestamp:o,expiresAt:o+this.config.duration,key:e,sequence:r,metadata:n}),this.cacheSequences.set(e,r),console.log(`[RequestCacheService] Updated cache for ${e} with sequence ${r}`)}refreshCache(e,t){return ln(this,null,function*(){let r=this.config.keyGenerator(e,t);return this.cache.delete(r),this.request(e,t)})}forceRequest(e,t){return ln(this,null,function*(){var r,n;let i=this.config.keyGenerator(e,t),o=++this.requestSequence;console.log(`[RequestCacheService] Force request for ${e} (sequence: ${o})`);let a=yield this.requestAdapter.execute(e,t),s=(n=(r=this.requestAdapter).extractCacheableData)==null?void 0:n.call(r,a);return s&&(this.setCachedDataWithSequence(i,s,o),console.log(`[RequestCacheService] Force updated cache for ${e}`)),a})}warmupCache(e,t){return ln(this,null,function*(){let r=this.config.keyGenerator(e,t);if(this.pendingRequests.has(r)){console.log(`[RequestCacheService] Skipping warmup for ${e} - request in progress`);return}if(this.hasValidCache(r)){console.log(`[RequestCacheService] Skipping warmup for ${e} - valid cache exists`);return}try{console.log(`[RequestCacheService] Warming up cache for ${e}`),yield this.forceRequest(e,t)}catch(n){console.warn(`[RequestCacheService] Cache warmup failed for ${e}:`,n)}})}clearCache(e){e?(this.cache.delete(e),this.cacheSequences.delete(e),this.pendingRequests.delete(e),console.log(`[RequestCacheService] Cleared cache for ${e}`)):(this.cache.clear(),this.cacheSequences.clear(),this.pendingRequests.clear(),this.requestSequence=0,console.log("[RequestCacheService] Cleared all cache"))}clearExpiredCache(){let e=Date.now();for(let[t,r]of this.cache)e>r.expiresAt&&(this.cache.delete(t),this.cacheSequences.delete(t));console.log("[RequestCacheService] Cleared expired cache entries")}getCacheStats(){let e=Date.now(),t=0,r=0;for(let n of this.cache.values())e>n.expiresAt?r++:t++;return{cacheCount:this.cache.size,validCount:t,expiredCount:r,pendingRequestCount:this.pendingRequests.size}}getCacheKeys(){return Array.from(this.cache.keys())}hasValidCache(e){let t=this.cache.get(e);return t?Date.now()<=t.expiresAt:!1}getPendingRequestKeys(){return Array.from(this.pendingRequests.keys())}hasPendingRequest(e){return this.pendingRequests.has(e)}getCacheSequence(e){return this.cacheSequences.get(e)}},cu=class uu{constructor(t){this.element=t,this.next=uu.Undefined,this.prev=uu.Undefined}};cu.Undefined=new cu(void 0);me=cu,o1=class{constructor(){this._first=me.Undefined,this._last=me.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===me.Undefined}clear(){let e=this._first;for(;e!==me.Undefined;){let t=e.next;e.prev=me.Undefined,e.next=me.Undefined,e=t}this._first=me.Undefined,this._last=me.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new me(e);if(this._first===me.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!==me.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==me.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==me.Undefined&&e.next!==me.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===me.Undefined&&e.next===me.Undefined?(this._first=me.Undefined,this._last=me.Undefined):e.next===me.Undefined?(this._last=this._last.prev,this._last.next=me.Undefined):e.prev===me.Undefined&&(this._first=this._first.next,this._first.prev=me.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==me.Undefined;)yield e.element,e=e.next}},a1=0,Ki=class{constructor(e){this.value=e,this.id=a1++}},Yi=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 Ki&&(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 Ki(t);return this._listeners?this._listeners instanceof Ki?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 Ki)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 h=this._listeners.indexOf(c);h>=0&&(this._listeners.splice(h,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 Ki?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Kt=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 Yi,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 o1,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)}},du={};zO(du,{None:()=>s1,filter:()=>c1,once:()=>Og,toPromise:()=>l1});s1=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});su=Symbol.for("Jolibox.hostEmitter"),u1=()=>{let e=new Kt;return globalThis[su]||(globalThis[su]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[su]},_e=u1();Da=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Yi,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 d1(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}};Da=yg([wg],Da);pu=class{constructor(){this._onWillExecuteCommand=new Yi,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Yi,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Da,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=KO(3e4)),this._starActivation}executeCommand(e,...t){return ln(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),du.toPromise(du.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}}};pu=yg([wg],pu);Ng=Symbol.for("Jolibox.commands")});function Ee(e,t={}){wu.emit("ERROR_REPORT",{error:e,options:t})}var wu,un,yt=x(()=>{"use strict";O();O();wu=new Kt,un=new Kt;Ee.debounce=Zi(Ee,50,{leading:!0})});var Su,m1,Dg,Lg,qg=x(()=>{"use strict";O();yt();Su=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{}}},m1=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},Dg=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:Su(o),payloadJson:Su(a),signature:Su(s)}}else throw"joli_source is missing"}catch(r){return Ee(new Ag(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},Lg=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],i=m1(e),o=r[2];return`${n}.${i}.${o}`}return t}});var g1,Iu,Ug=x(()=>{"use strict";O();g1="1.3.5-beta.9",Iu=()=>g1});function Au(e,t){return(document==null?void 0:document.head.querySelector(`meta[name="${e}"][content="${t}"]`))!==null}var v1,Mg,Eu,Fg,ge,y1,S,H=x(()=>{"use strict";O();qg();Ug();O();v1={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:Pg(),adId:Rg(),pixelRatio:window.devicePixelRatio||1,platform:ro.isAndroid?"android":ro.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:Iu()},schema:window.location.href,platform:ro.isAndroid?"android":ro.isiOS?"ios":"h5"},Eu=(Mg=globalThis.joliboxJSCore)==null?void 0:Mg.env,ge=Object.assign({},(Fg=Eu==null?void 0:Eu())!=null?Fg:v1);y1=()=>{var g,b,y,_,I,E,T,k,C,G,ce;let{payloadJson:e,headerJson:t,signature:r}=ge.schema.length?Dg(ge.schema):{},n=`${ge.deviceInfo.did}-${new Date().getTime()}`,o=new URL(ge.schema.length?ge.schema:window.location.href).searchParams,a=(y=(b=(g=o.get("mpId"))!=null?g:o.get("appId"))!=null?b:o.get("gameId"))!=null?y:"",s=(E=(I=(_=ge.clientSessionId)!=null?_:e==null?void 0:e.sessionId)!=null?I:o.get("sessionId"))!=null?E:n,l=!!((k=(T=e==null?void 0:e.testAdsMode)!=null?T:e==null?void 0:e.__testAdsMode)!=null?k:o.get("testAdsMode")==="true"),c=(ce=(G=(C=e==null?void 0:e.joliboxEnv)!=null?C:e==null?void 0:e.__joliboxEnv)!=null?G:o.get("joliboxEnv"))!=null?ce:"production",d=c==="staging",u=t==null?void 0:t.channel,f=new URL(window.location.href).searchParams,h=e==null?void 0:e.__shouldInterupt;return{get startTime(){var N;return(N=performance.timeOrigin)!=null?N:performance.timing.navigationStart},get testMode(){return d},get testAdsMode(){return l},get joliboxEnv(){return c},get joliSource(){var N,R;return(R=(N=f.get("joliSource"))!=null?N:o.get("joliSource"))!=null?R:null},get mpId(){var N;return(N=a!=null?a:e==null?void 0:e.id)!=null?N:""},get mpVersion(){var N;return(N=t==null?void 0:t.ver)!=null?N:Iu()},get mpType(){var N,R;return(R=(N=t==null?void 0:t.__mpType)!=null?N:e==null?void 0:e.__mpType)!=null?R:"game"},get platform(){var N;return((N=ge.platform)!=null?N:ge.deviceInfo.platform).toLowerCase()},get deviceInfo(){return ge.deviceInfo},get sdkInfo(){return ge.sdkInfo},get hostInfo(){return ge.hostInfo},get hostUserInfo(){return ge.hostUserInfo},get sessionId(){var N,R;return(R=(N=ge.clientSessionId)!=null?N:s)!=null?R:n},get channel(){return u},get webviewId(){var N;return(N=ge.webviewId)!=null?N:-1},get shouldInterupt(){return h},get from(){return e==null?void 0:e.__from},get baseApiHost(){return _u(d)},get adId(){var N;return(N=ge.deviceInfo.adId)!=null?N:ge.deviceInfo.did},get language(){return ge.deviceInfo.lang},get sdkEnvironment(){return Au("dlightek","jolibox")?"dlightek":o.get("huaweiQuick")==="true"?"huaweiQuick":Au("gamedistribution","jolibox")?"gamedistribution":Au("funmax","jolibox")?"funmax":"jolibox"},get viewport(){var J,re,Mt;let N=(J=ge.deviceInfo.pixelRatio)!=null?J:1,R=(re=ge.deviceInfo.statusBarHeight)!=null?re:e==null?void 0:e.__androidStatusBarHeight,D=(Mt=ge.deviceInfo.navigationBarHeight)!=null?Mt:e==null?void 0:e.__androidNavigationBarHeight;return{statusBarHeight:R!==void 0?R/N:20,navigationBarHeight:D!==void 0?D/N:10}},get abTests(){var N,R;return(R=(N=ge.abValues)==null?void 0:N.split(","))!=null?R:[]},get mpInfo(){var N;return(N=ge.mpInfo)!=null?N:{mpName:"unknown"}},onEnvConfigChanged:N=>{Sg(ge,N,Ig)},encodeJoliSourceQuery:N=>{var R,D;return t&&r?Lg(P(P({},e),N),(R=o.get("joliSource"))!=null?R:""):(D=o.get("joliSource"))!=null?D:""},setDoExitDirectly:()=>{h=!1}}},S=y1()});var Cu,Bg,b1,_1,jg,w1,Gg=x(()=>{"use strict";O();yt();H();O();Cu=!1,Bg=(e,t)=>e==null?!1:t in e,b1=e=>Bg(e,"kind"),_1=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},jg=(e,t={},r)=>{var o,a,s;let n={user_id:(a=(o=S.hostUserInfo)==null?void 0:o.uid)!=null?a:"",device_id:(s=S.deviceInfo.did)!=null?s:"",timestamp:Date.now(),tag:_1(e.name)},i=B(P({},n),{env:t.environment,isFromUser:r});r?un.emit("GLOBAL_USER_ERROR",e,i):un.emit("GLOBAL_ERROR",e,i)},w1=e=>Bg(e,"kind")&&e.kind==="USER_ERROR";wu.on("ERROR_REPORT",({error:e,options:t})=>{if(Cu)return;Cu=!0;let r=b1(e)&&e.raw?e.raw:e;try{let n=w1(e);jg(e,t,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new gu(`${i}, origin error: ${r.message}`);zt.error(o),jg(new gu(o.message),{environment:t.environment},!1)}finally{Cu=!1}})});var Je,ku,jr=x(()=>{"use strict";yt();O();yt();Je=(e,t)=>{var r,n;return new to((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},ku=e=>new Eg(e)});var Jg=x(()=>{"use strict";Gg();jr();O();ue();un.on("GLOBAL_ERROR",(e,t)=>{var n;let r={message:e.message,stack:(n=e.stack)!=null?n:"",errorType:e.name,source:0};F("trackAsync",{event:"reportJsError",data:r})});un.on("GLOBAL_USER_ERROR",(e,t)=>{zt.log("UserError",e,t)})});var xu=x(()=>{"use strict"});function Hg(e,t){let r=(n,i,o)=>{let c=i!=null?i:{},{eventType:a}=c,s=Xe(c,["eventType"]),l=B(P({tag:n,eventType:o!=null?o:a!=null?a:V.Other},t),{extra:P({},s)});n=="globalJsError"?Ee(new kg(JSON.stringify(l))):e("systemLog",l,S.webviewId)};return r.debounce=Zi(r,500,{leading:!0}),r}function $g(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=Zi(t,500,{leading:!0}),t}var Vg=x(()=>{"use strict";O();O();yt();H()});function Wg(e,t){let r=Hg(e,t),n=$g(r);return{track:r,trackPerformance:n}}var zg=x(()=>{"use strict";Vg()});var Kg=x(()=>{"use strict";H();O();O()});var Yg=x(()=>{"use strict";zg();xu();Kg()});var Fa,Qg=x(()=>{"use strict";Fa=class{constructor(t,r){this.eventEmitter=t;this.lastReportTime=0;this.visible=!0;this.reportCount=0;this.notifyIframeGameEvent=(t,r)=>{window.parent&&window.parent.postMessage({type:t,data:r},"*")};this.playGame=t=>{this.reportCount++,(this.reportCount<=3||(this.reportCount-3)%3===0)&&(this.reporter({event:"PLAY_GAME",params:{duration:t}}),this.tracker("PlayGame",{duration:t}),this.notifyIframeGameEvent("JOLIBOX_GAME_PLAY",{duration:t}))};this.timer=this.createRAFTimer(t=>{this.playGame(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.notifyIframeGameEvent("JOLIBOX_GAME_OPEN",{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.notifyIframeGameEvent("JOLIBOX_GAME_CLOSE",{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(),h=f-r;h>=this.interval&&(this.visible&&(a+=Math.min(h,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 ja(e,t,r){var l,c,d;let n=new Map,i=(l=r==null?void 0:r.baseUrl)!=null?l:Jn(S.testMode),o=(c=r==null?void 0:r.type)!=null?c:"public",a=(d=r==null?void 0:r.defaultHeaders)!=null?d:{};return De("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:b}=f,y=Xe(f,["requestTaskId","state"]);u.statusCode===200?p.resolve(y):p.reject(y),n.delete(g)}else if(u.state==="fail"){let h=u,{requestTaskId:g,state:b}=h,y=Xe(h,["requestTaskId","state"]);p.reject(y),n.delete(g)}else zt.warn("onRequestTaskStateChange unknown event",u)}),_e.on("onLoginComplete",({isLogin:u,token:p})=>{o!=="public"&&u&&p&&(a["X-JOLI-TOKEN"]=p)}),(f,...h)=>v(this,[f,...h],function*(u,p={}){let g=Date.now(),b=S1(u,B(P({},p),{baseUrl:i})),{method:y="GET",responseType:_="text",dataType:I="json",timeout:E,enableCache:T=!1,appendHostCookie:k=!0}=p,C=Object.assign({"content-type":"application/json"},a,p.header),G={url:b,method:y,header:C,enableCache:T,responseType:_,appendHostCookie:k};if(y=="POST"||y=="PUT"){let J=E1(p.data,C["content-type"]);G.data=J}E&&Object.assign(G,{timeout:E});let{data:{requestTaskId:ce}}=F(e,G);if(typeof ce!="string")throw Je({code:-1,msg:"requestTaskId is not a string"});let{resolve:N,reject:R,promise:D}=new ut;n.set(ce,{resolve:N,reject:R});try{let J=yield D,{data:re}=J;return I==="json"&&typeof re=="string"&&(re=I1(re)),{url:b,timeout:E,method:y,response:B(P({},J),{data:re})}}catch(J){let re=J;if(cn(re)){let{errMsg:Mt,prefetchDetail:Bc,isPrefetch:Gc,errNo:UR}=re;Qi(Mt)&&Ee(Je({code:-1,msg:Mt},{errNo:UR,errMsg:Mt}))}throw J}})}function I1(e){try{return JSON.parse(e.trim())}catch(t){return e}}function E1(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 S1,Tu=x(()=>{"use strict";O();ue();yt();jr();H();S1=(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 Pu,Xg,z,dt=x(()=>{"use strict";Tu();H();O();Pu={};(Xg=S.hostUserInfo)!=null&&Xg.token&&(Pu["x-joli-token"]=S.hostUserInfo.token);S.joliSource&&(Pu["x-joli-source"]=S.joliSource);z=ja("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:Jn(S.testMode),defaultHeaders:Pu})});function Zg(e){let t=vu.config[e];return t||(t={},vu.config[e]=t),(r,n)=>{if(t[r]){zt.warn(`[can i use] ${r} already registered`);return}t[r]=P({},n)}}var ev=x(()=>{"use strict";O()});function Ru(e){tv=e}function Ba(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>Ba(t)):Object.keys(e).reduce((t,r)=>(t[r]=Ba(e[r]),t),{})}function fr(e){return typeof e=="number"}function Ou(e){let t=Nu(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function Nu(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var tv,ke,Ga,Ja,Ha,$a,Hn,Va,Wa,za,Ka,Ya,Qa,Xa,Za,es,ts,rs,ns,Du=x(()=>{"use strict";tv=!1;ke=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(tv)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 ${Ou(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return Ba(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:Ba(this._default)}optional(){return this._optional=!0,this}};Ga=class extends ke{validate(t){return this._optional&&t===void 0?!0:fr(t)?fr(this._min)&&t<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):fr(this._max)&&t>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):fr(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}},Ja=class extends ke{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},Ha=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(fr(this._maxLength)&&t.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if(fr(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}},$a=class extends ke{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},Hn=class extends ke{validate(t){return!0}},Va=class extends ke{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},Wa=class extends ke{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},za=class extends ke{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},Ka=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 ${Ou(t)}`)}return!0}},Ya=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(fr(this._minItems)&&r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if(fr(this._maxItems)&&r.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if(fr(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}},Qa=class extends ke{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(Nu(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}},Xa=class extends ke{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(Nu(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}},Za=class extends ke{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:Ou(this.value),actual:r}):!0}},es=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(`
2
+ or `);this.errors.push(o)}return n}},ts=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}},rs=class extends ke{validate(t){return t===void 0&&this._optional||t instanceof ArrayBuffer?!0:this.fail({expect:"arraybuffer",actual:t})}},ns=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 Lu(e,t,r="param"){if(e.errors=[],e.path=r,Ru(!0),!e.validate(t)){let n=e.errors.join(`
3
+ `);throw e.errors.length=0,Ru(!1),new TypeError(n)}}var A,qu=x(()=>{"use strict";Du();Du();A={object(e){return new Xa(e)},array(e){return new Ya(e)},tuple(...e){return new ts(...e)},literal(e){return new Za(e)},or(...e){return new es(...e)},symbol(){return new $a},record(e){return new Qa(e)},function(){return new za},boolean(){return new Ja},string(){return new Ha},number(){return new Ga},undefined(){return new Va},null(){return new Wa},unknown(){return new Hn},any(){return new Hn},as(){return new Hn},arraybuffer(){return new rs},enum(...e){return new Ka(...e)},typedarray(e){return new ns(e)}}});var is,rv,nv=x(()=>{"use strict";O();yt();qu();jr();is=1,rv=e=>{function t(n,i){return(...o)=>{var u,p,f,h;let a=Date.now(),s={method:n,trace_id:is};is+=1;let l="SUCCESS",c=`${n}:ok`,d=0;try{if(i.paramsSchema)try{Lu(i.paramsSchema,o,"params")}catch(_){throw ku(`${n}:fail ${_.message}`)}let g=i.implement(...o),b=g,y=`${n}:ok`;if(g&&"code"in g){let{code:_,data:I,message:E}=g;l=_,b=I,y=E}return{code:l,message:y,data:b}}catch(g){let b=g;d=(p=(u=b.code)!=null?u:b.errNo)!=null?p:2e3,l="FAILURE";let y=(h=(f=b.message)!=null?f:b.errMsg)!=null?h:`${g}`;return c=`${n}:${l} ${y.replace(/^\S+:(fail|cancel)\s?/,"")}`,Ee(new to(c,d)),{code:l,message:c}}finally{let g=Date.now()-a}}}function r(n,i){return(...o)=>v(this,null,function*(){var p,f,h,g;let a=bg(o)?o:[o],s=Date.now(),l={method:n,trace_id:is};is+=1;let c=`${n}:ok`,d="SUCCESS",u={code:d,message:c};try{if(i.paramsSchema)try{Lu(i.paramsSchema,a,"params")}catch(_){throw ku(_.message)}let y=yield i.implement(...a);if(y&&"code"in y){let{code:_,data:I,message:E}=y;d=_,c=E,y=I}return Object.assign(u,{code:d,message:c,data:y}),u}catch(b){let y=b,_=(f=(p=y.code)!=null?p:y.errNo)!=null?f:2e3;d="FAILURE";let I=(g=(h=y.message)!=null?h:y.errMsg)!=null?g:`${b}`,E=`${n}:${d} ${I.replace(/^\S+:(fail|cancel)\s?/,"")}`;return Object.assign(u,{code:d,message:E}),Ee(new to(E,_)),u}finally{let b=Date.now()-s}})}return{createAPI:r,createSyncAPI:t}}});var je,Uu=x(()=>{"use strict";H();ue();({canIUseNative:je}=ag(()=>S.sdkInfo.nativeSDKVersionCode,()=>S.platform))});function Mu(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 iv=x(()=>{"use strict"});var ie,Y,L,He=x(()=>{"use strict";ev();bt();nv();qu();Uu();iv();({createAPI:ie,createSyncAPI:Y}=rv(j)),L=Zg("native")});function ov(e){let t=Object.prototype.toString.call(e).split(" ")[1].split("]")[0].toLocaleLowerCase();return t==="array"&&(t="object"),P1.includes(t)?t:""}function av(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 sv(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 os,C1,k1,x1,T1,j8,B8,P1,Br,_t,no=x(()=>{"use strict";He();ue();O();dt();H();os=W(),C1=ie("getLocalStorage",{paramsSchema:A.tuple(A.string()),implement(e){return v(this,null,function*(){let{response:t}=yield z(`/api/games/user-storage/${S.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 he("getLocalStorageAsync",{key:e}),s=av(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}}})}});os.registerCommand("StorageSDK.getItem",C1);L("storage.getItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});k1=ie("setStorage",{paramsSchema:A.tuple(A.string(),A.or(A.string(),A.boolean(),A.number())),implement(e,t){return v(this,null,function*(){let r=S.mpId,n=typeof t=="string"?t:String(t),{response:i}=yield z(`/api/games/user-storage/${r}`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e,value:n}}),{data:{code:o,message:a}}=i,s=ov(t),l=sv(t,s);return yield he("setLocalStorageAsync",{key:e,data:l,dataType:s}),o=="SUCCESS"?{code:o,message:a}:{code:o,message:`${a}. fallback to native`}})}});os.registerCommand("StorageSDK.setItem",k1);L("storage.setItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});x1=ie("removeStorage",{paramsSchema:A.tuple(A.string()),implement(e){return v(this,null,function*(){let t=S.mpId,{response:r}=yield z(`/api/games/user-storage/${t}/remove`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e}}),{data:{code:n,message:i}}=r;return yield he("removeLocalStorageAsync",{key:e}),n==="SUCCESS"?{code:n,message:i}:{code:n,message:"[Jolibox SDK] remove item succ"}})}});os.registerCommand("StorageSDK.removeItem",x1);L("storage.removeItem",{version:"1.0.0",properties:{key:"1.0.0"}});T1=ie("clearStorage",{implement(){return v(this,null,function*(){let e=S.mpId,{response:t}=yield z(`/api/games/user-storage/${e}/clear`,{method:"POST",appendHostCookie:!0});he("clearLocalStorageAsync");let{data:{code:r,message:n}}=t;return r==="SUCCESS"?{code:r,message:n}:{code:r,message:`${n}.fallback to native`}})}});os.registerCommand("StorageSDK.clear",T1);L("storage.clear",{version:"1.0.0"});j8=ie("getStorageInfo",{implement(){return v(this,null,function*(){let{data:e}=yield he("getStorageInfoAsync");return e})}});L("getStorageInfo",{version:"1.0.0",success:{keys:"1.0.0",currentSize:"1.0.0",limitSize:"1.0.0"}});B8=Y("getStorageInfoSync",{implement(){return F("getStorageInfoSync")}}),P1=["string","number","boolean","object",""];Br=ie("getGlobalStorage",{paramsSchema:A.tuple(A.string()),implement(e){return v(this,null,function*(){try{let{data:{data:t,dataType:r}}=yield he("getGlobalStorageAsync",{key:e});return{code:"SUCCESS",message:"success",data:av(t,r)}}catch(t){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get global storage failed",data:null}}})}}),_t=ie("setGlobalStorage",{paramsSchema:A.tuple(A.string(),A.or(A.string(),A.boolean(),A.number(),A.array())),implement(e,t){return v(this,null,function*(){try{let r=ov(t),n=sv(t,r);return yield he("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 lv,as,cv=x(()=>{"use strict";H();Qg();O();dt();ue();no();Uu();lv="REPORT_FIRST_OPEN_GAME",as=class extends Fa{constructor(t,r,n){super(r,n),this.gameId=S.mpId,this.sessionId=S.sessionId,this.track=t,this.taskUrl=Jn(S.testMode)+"/api/base/app-event"}reporter(t){return v(this,null,function*(){let{event:r,params:n,extraParams:i}=t,o={eventType:r,gameInfo:P({gameId:this.gameId,sessionId:this.sessionId},n)};i&&Object.assign(o,i),yield this.createTask(o)})}reportToNative(t){return v(this,null,function*(){let{event:r,params:n}=t;yield he("userTrackAsync",{event:r,params:P({},n),gameId:this.gameId})})}tracker(t,r=null){this.track(t,r)}start(t){super.start(t),this.tryReportOpenGamePlus()}tryReportOpenGamePlus(){Br(lv).then(t=>{Fr(t.data)&&t.data&&this.tracker("OpenGame_2Plus"),_t(lv,!0)})}createTask(t){return je("sendServerEventAsync")?he("sendServerEventAsync",{payload:t}):S.platform==="android"?z("/api/base/app-event",{method:"POST",data:t}):he("trackAppEventAsync",{url:this.taskUrl,body:JSON.stringify(t)})}}});var hv={};Jm(hv,{nativeTaskEmitter:()=>io,taskTracker:()=>wt,track:()=>j,trackPerformance:()=>pv});var R1,uv,dv,j,pv,fv,io,wt,bt=x(()=>{"use strict";Jg();O();xu();Yg();H();cv();ue();R1=(e,t,r)=>{var c,d,u,p,f,h,g;let n=t,i=cn(n.extra)?n.extra:Qi(n.extra)?JSON.parse(n.extra):{},{mpName:o,mpVersion:a}=(c=S.mpInfo)!=null?c:{},s=P(P(B(P({},i),{mp_id:(d=n.mp_id)!=null?d:"",mp_version:(u=n.mp_version)!=null?u:"",session_id:S.sessionId,user_id:(f=(p=S.hostUserInfo)==null?void 0:p.uid)!=null?f:""}),o?{mp_name:o}:{}),a?{mp_info_version:a}:{}),l=(h=n.eventType)!=null?h:V.Other;F("trackAsync",{event:(g=t.tag)!=null?g:e,data:s,webviewId:r,eventType:l})},{track:j,trackPerformance:pv}=Wg(R1,{type:yu.AppSDK,platform:"native",jssdk_version:(dv=(uv=S.sdkInfo)==null?void 0:uv.jssdkVersion)!=null?dv:"1.0.0",mp_id:S.mpId,mp_version:S.mpVersion}),fv=W();fv.registerCommand("ReportSDK.traceSystemTimeline",({event:e,duration:t,extra:r})=>{pv(e,t,r)});fv.registerCommand("ReportSDK.traceSystem",({event:e,info:t})=>{j(e,t)});io=new Kt,wt=new as(j,io)});function mv(){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=`
4
4
  html[data-jolibox-root] {
5
5
  height: 100%;
6
6
  margin: 0;
@@ -18,14 +18,14 @@ or `);this.errors.push(o)}return n}},Xa=class extends Ce{constructor(...t){super
18
18
  min-height: 100dvh;
19
19
  }
20
20
  }
21
- `;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}=I.viewport;document.documentElement.style.setProperty("--status-bar-height",`${s}px`),document.documentElement.style.setProperty("--navigation-bar-height",`${l}px`)},o=()=>{function s(c){return v(this,null,function*(){let d=c instanceof URL?c.href:c,u=new Promise((p,f)=>{let h=new XMLHttpRequest;h.open("GET",d),h.responseType="arraybuffer",h.addEventListener("load",()=>p(h.response)),h.addEventListener("error",f),h.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 mv=x(()=>{"use strict";J()});var gv=x(()=>{"use strict"});var vv=x(()=>{"use strict";O();vu()});var yv=x(()=>{"use strict";J()});var is,Uu=x(()=>{"use strict";gv();vv();J();yv();O();is=new Kt});function hr(e,t){for(var r in t)e[r]=t[r];return e}function Ju(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Ze(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?ls.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 as(e,a,n,i,null)}function as(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?++Sv:i,__i:-1,__u:0};return i==null&&D.vnode!=null&&D.vnode(o),o}function He(e){return e.children}function _t(e,t){this.props=e,this.context=t}function $n(e,t){if(t==null)return e.__?$n(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"?$n(e):null}function xv(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 xv(e)}}function ju(e){(!e.__d&&(e.__d=!0)&&dn.push(e)&&!ss.__r++||bv!==D.debounceRendering)&&((bv=D.debounceRendering)||Iv)(ss)}function ss(){for(var e,t,r,n,i,o,a,s=1;dn.length;)dn.length>s&&dn.sort(Ev),e=dn.shift(),s=dn.length,e.__d&&(r=void 0,i=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=hr({},n)).__v=n.__v+1,D.vnode&&D.vnode(r),Hu(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?$n(n):i,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,Rv(o,r,a),r.__e!=i&&xv(r)));ss.__r=0}function Pv(e,t,r,n,i,o,a,s,l,c,d){var u,p,f,h,g,b,y=n&&n.__k||Cv,_=t.length;for(l=O1(r,t,y,l,_),u=0;u<_;u++)(f=r.__k[u])!=null&&(p=f.__i===-1?ro:y[f.__i]||ro,f.__i=u,b=Hu(e,f,p,i,o,a,s,l,c,d),h=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&$u(p.ref,null,f),d.push(f.ref,f.__c||h,f)),g==null&&h!=null&&(g=h),4&f.__u||p.__k===f.__k?l=Tv(f,l,e):typeof f.type=="function"&&b!==void 0?l=b:h&&(l=h.nextSibling),f.__u&=-7);return r.__e=g,l}function O1(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?as(null,a,null,null,null):no(a)?as(He,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?as(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=N1(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=$n(s)),Nv(s,s));return n}function Tv(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=Tv(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=$n(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function io(e,t){return t=t||[],e==null||typeof e=="boolean"||(no(e)?e.some(function(r){io(r,t)}):t.push(e)),t}function N1(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 _v(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||R1.test(t)?r:r+"px"}function os(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||_v(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||_v(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(Av,"$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=Gu,e.addEventListener(t,o?Fu:Mu,o)):e.removeEventListener(t,o?Fu:Mu,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 wv(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=Gu++;else if(t.u<r.t)return;return r(D.event?D.event(t):t)}}}function Hu(e,t,r,n,i,o,a,s,l,c){var d,u,p,f,h,g,b,y,_,S,E,P,C,k,G,ce,N,R=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(l=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=D.__b)&&d(t);e:if(typeof R=="function")try{if(y=t.props,_="prototype"in R&&R.prototype.render,S=(d=R.contextType)&&n[d.__c],E=d?S?S.props.value:d.__:n,r.__c?b=(u=t.__c=r.__c).__=u.__E:(_?t.__c=u=new R(y,E):(t.__c=u=new _t(y,E),u.constructor=R,u.render=L1),S&&S.sub(u),u.props=y,u.state||(u.state={}),u.context=E,u.__n=n,p=u.__d=!0,u.__h=[],u._sb=[]),_&&u.__s==null&&(u.__s=u.state),_&&R.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=hr({},u.__s)),hr(u.__s,R.getDerivedStateFromProps(y,u.__s))),f=u.props,h=u.state,u.__v=t,p)_&&R.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),_&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(_&&R.getDerivedStateFromProps==null&&y!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(y,E),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(y,u.__s,E)===!1||t.__v==r.__v)){for(t.__v!=r.__v&&(u.props=y,u.state=u.__s,u.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(U){U&&(U.__=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(y,u.__s,E),_&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,h,g)})}if(u.context=E,u.props=y,u.__P=e,u.__e=!1,C=D.__r,k=0,_){for(u.state=u.__s,u.__d=!1,C&&C(t),d=u.render(u.props,u.state,u.context),G=0;G<u._sb.length;G++)u.__h.push(u._sb[G]);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&&++k<25);u.state=u.__s,u.getChildContext!=null&&(n=hr(hr({},n),u.getChildContext())),_&&!p&&u.getSnapshotBeforeUpdate!=null&&(g=u.getSnapshotBeforeUpdate(f,h)),ce=d,d!=null&&d.type===He&&d.key==null&&(ce=Ov(d.props.children)),s=Pv(e,no(ce)?ce:[ce],t,r,n,i,o,a,s,l,c),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),b&&(u.__E=u.__=null)}catch(U){if(t.__v=null,l||o!=null)if(U.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(N=o.length;N--;)Ju(o[N]);else t.__e=r.__e,t.__k=r.__k;D.__e(U,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=D1(r.__e,t,r,n,i,o,a,l,c);return(d=D.diffed)&&d(t),128&t.__u?void 0:s}function Rv(e,t,r){for(var n=0;n<r.length;n++)$u(r[n],r[++n],r[++n]);D.__c&&D.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){D.__e(o,i.__v)}})}function Ov(e){return typeof e!="object"||e==null?e:no(e)?e.map(Ov):hr({},e)}function D1(e,t,r,n,i,o,a,s,l){var c,d,u,p,f,h,g,b=r.props,y=t.props,_=t.type;if(_=="svg"?i="http://www.w3.org/2000/svg":_=="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==!!_&&(_?f.localName==_:f.nodeType==3)){e=f,o[c]=null;break}}if(e==null){if(_==null)return document.createTextNode(y);e=document.createElementNS(i,_,y.is&&y),s&&(D.__m&&D.__m(t,o),s=!1),o=null}if(_===null)b===y||s&&e.data===y||(e.data=y);else{if(o=o&&ls.call(e.childNodes),b=r.props||ro,!s&&o!=null)for(b={},c=0;c<e.attributes.length;c++)b[(f=e.attributes[c]).name]=f.value;for(c in b)if(f=b[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=f;else if(!(c in y)){if(c=="value"&&"defaultValue"in y||c=="checked"&&"defaultChecked"in y)continue;os(e,c,null,f,i)}}for(c in y)f=y[c],c=="children"?p=f:c=="dangerouslySetInnerHTML"?d=f:c=="value"?h=f:c=="checked"?g=f:s&&typeof f!="function"||b[c]===f||os(e,c,f,b[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=""),Pv(t.type==="template"?e.content:e,no(p)?p:[p],t,r,n,_=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&$n(r,0),s,l),o!=null)for(c=o.length;c--;)Ju(o[c]);s||(c="value",_=="progress"&&h==null?e.removeAttribute("value"):h!==void 0&&(h!==e[c]||_=="progress"&&!h||_=="option"&&h!==b[c])&&os(e,c,h,b[c],i),c="checked",g!==void 0&&g!==e[c]&&os(e,c,g,b[c],i))}return e}function $u(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){D.__e(i,r)}}function Nv(e,t,r){var n,i;if(D.unmount&&D.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||$u(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){D.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&Nv(n[i],t,r||typeof e.type!="function");r||Ju(e.__e),e.__c=e.__=e.__e=void 0}function L1(e,t,r){return this.constructor(e,r)}function Gr(e,t,r){var n,i,o,a;t==document&&(t=document.documentElement),D.__&&D.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],Hu(t,e=(!n&&r||t).__k=Ze(He,null,[e]),i||ro,ro,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?ls.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),Rv(o,e,a)}function pn(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,ju(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"+kv++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var ls,D,Sv,Bu,dn,bv,Iv,Ev,Av,Gu,Mu,Fu,kv,ro,Cv,R1,no,Vn=x(()=>{ro={},Cv=[],R1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,no=Array.isArray;ls=Cv.slice,D={__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}},Sv=0,Bu=function(e){return e!=null&&e.constructor==null},_t.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=hr({},this.state),typeof e=="function"&&(e=e(hr({},r),this.props)),e&&hr(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),ju(this))},_t.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ju(this))},_t.prototype.render=He,dn=[],Iv=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ev=function(e,t){return e.__v.__b-t.__v.__b},ss.__r=0,Av=/(PointerCapture)$|Capture$/i,Gu=0,Mu=wv(!1),Fu=wv(!0),kv=0});var we=m((k7,Dv)=>{"use strict";Dv.exports=function(e){try{return!!e()}catch(t){return!0}}});var Wn=m((C7,Lv)=>{"use strict";var q1=we();Lv.exports=!q1(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var xe=m((x7,Mv)=>{"use strict";var qv=Wn(),Uv=Function.prototype,Vu=Uv.call,U1=qv&&Uv.bind.bind(Vu,Vu);Mv.exports=qv?U1:function(e){return function(){return Vu.apply(e,arguments)}}});var at=m((P7,Fv)=>{"use strict";var M1=xe();Fv.exports=M1({}.isPrototypeOf)});var Se=m((Wu,jv)=>{"use strict";var oo=function(e){return e&&e.Math===Math&&e};jv.exports=oo(typeof globalThis=="object"&&globalThis)||oo(typeof window=="object"&&window)||oo(typeof self=="object"&&self)||oo(typeof global=="object"&&global)||oo(typeof Wu=="object"&&Wu)||function(){return this}()||Function("return this")()});var zu=m((T7,Hv)=>{"use strict";var F1=Wn(),Jv=Function.prototype,Bv=Jv.apply,Gv=Jv.call;Hv.exports=typeof Reflect=="object"&&Reflect.apply||(F1?Gv.bind(Bv):function(){return Gv.apply(Bv,arguments)})});var mr=m((R7,Vv)=>{"use strict";var $v=xe(),j1=$v({}.toString),B1=$v("".slice);Vv.exports=function(e){return B1(j1(e),8,-1)}});var ao=m((O7,Wv)=>{"use strict";var G1=mr(),J1=xe();Wv.exports=function(e){if(G1(e)==="Function")return J1(e)}});var $e=m((N7,zv)=>{"use strict";var Ku=typeof document=="object"&&document.all;zv.exports=typeof Ku=="undefined"&&Ku!==void 0?function(e){return typeof e=="function"||e===Ku}:function(e){return typeof e=="function"}});var st=m((D7,Kv)=>{"use strict";var H1=we();Kv.exports=!H1(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var jt=m((L7,Yv)=>{"use strict";var $1=Wn(),cs=Function.prototype.call;Yv.exports=$1?cs.bind(cs):function(){return cs.apply(cs,arguments)}});var Yu=m(Zv=>{"use strict";var Qv={}.propertyIsEnumerable,Xv=Object.getOwnPropertyDescriptor,V1=Xv&&!Qv.call({1:2},1);Zv.f=V1?function(t){var r=Xv(this,t);return!!r&&r.enumerable}:Qv});var so=m((U7,ey)=>{"use strict";ey.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var us=m((M7,ty)=>{"use strict";var W1=xe(),z1=we(),K1=mr(),Qu=Object,Y1=W1("".split);ty.exports=z1(function(){return!Qu("z").propertyIsEnumerable(0)})?function(e){return K1(e)==="String"?Y1(e,""):Qu(e)}:Qu});var fn=m((F7,ry)=>{"use strict";ry.exports=function(e){return e==null}});var hn=m((j7,ny)=>{"use strict";var Q1=fn(),X1=TypeError;ny.exports=function(e){if(Q1(e))throw new X1("Can't call method on "+e);return e}});var Jr=m((B7,iy)=>{"use strict";var Z1=us(),eN=hn();iy.exports=function(e){return Z1(eN(e))}});var Le=m((G7,oy)=>{"use strict";var tN=$e();oy.exports=function(e){return typeof e=="object"?e!==null:tN(e)}});var Yt=m((J7,ay)=>{"use strict";ay.exports={}});var zn=m((H7,ly)=>{"use strict";var Xu=Yt(),Zu=Se(),rN=$e(),sy=function(e){return rN(e)?e:void 0};ly.exports=function(e,t){return arguments.length<2?sy(Xu[e])||sy(Zu[e]):Xu[e]&&Xu[e][t]||Zu[e]&&Zu[e][t]}});var ds=m(($7,dy)=>{"use strict";var nN=Se(),cy=nN.navigator,uy=cy&&cy.userAgent;dy.exports=uy?String(uy):""});var fs=m((V7,vy)=>{"use strict";var gy=Se(),ed=ds(),py=gy.process,fy=gy.Deno,hy=py&&py.versions||fy&&fy.version,my=hy&&hy.v8,Bt,ps;my&&(Bt=my.split("."),ps=Bt[0]>0&&Bt[0]<4?1:+(Bt[0]+Bt[1]));!ps&&ed&&(Bt=ed.match(/Edge\/(\d+)/),(!Bt||Bt[1]>=74)&&(Bt=ed.match(/Chrome\/(\d+)/),Bt&&(ps=+Bt[1])));vy.exports=ps});var td=m((W7,by)=>{"use strict";var yy=fs(),iN=we(),oN=Se(),aN=oN.String;by.exports=!!Object.getOwnPropertySymbols&&!iN(function(){var e=Symbol("symbol detection");return!aN(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&yy&&yy<41})});var rd=m((z7,_y)=>{"use strict";var sN=td();_y.exports=sN&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var nd=m((K7,wy)=>{"use strict";var lN=zn(),cN=$e(),uN=at(),dN=rd(),pN=Object;wy.exports=dN?function(e){return typeof e=="symbol"}:function(e){var t=lN("Symbol");return cN(t)&&uN(t.prototype,pN(e))}});var lo=m((Y7,Sy)=>{"use strict";var fN=String;Sy.exports=function(e){try{return fN(e)}catch(t){return"Object"}}});var mn=m((Q7,Iy)=>{"use strict";var hN=$e(),mN=lo(),gN=TypeError;Iy.exports=function(e){if(hN(e))return e;throw new gN(mN(e)+" is not a function")}});var hs=m((X7,Ey)=>{"use strict";var vN=mn(),yN=fn();Ey.exports=function(e,t){var r=e[t];return yN(r)?void 0:vN(r)}});var ky=m((Z7,Ay)=>{"use strict";var id=jt(),od=$e(),ad=Le(),bN=TypeError;Ay.exports=function(e,t){var r,n;if(t==="string"&&od(r=e.toString)&&!ad(n=id(r,e))||od(r=e.valueOf)&&!ad(n=id(r,e))||t!=="string"&&od(r=e.toString)&&!ad(n=id(r,e)))return n;throw new bN("Can't convert object to primitive value")}});var Kn=m((eY,Cy)=>{"use strict";Cy.exports=!0});var Ty=m((tY,Py)=>{"use strict";var xy=Se(),_N=Object.defineProperty;Py.exports=function(e,t){try{_N(xy,e,{value:t,configurable:!0,writable:!0})}catch(r){xy[e]=t}return t}});var co=m((rY,Ny)=>{"use strict";var wN=Kn(),SN=Se(),IN=Ty(),Ry="__core-js_shared__",Oy=Ny.exports=SN[Ry]||IN(Ry,{});(Oy.versions||(Oy.versions=[])).push({version:"3.41.0",mode:wN?"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 sd=m((nY,Ly)=>{"use strict";var Dy=co();Ly.exports=function(e,t){return Dy[e]||(Dy[e]=t||{})}});var Yn=m((iY,qy)=>{"use strict";var EN=hn(),AN=Object;qy.exports=function(e){return AN(EN(e))}});var wt=m((oY,Uy)=>{"use strict";var kN=xe(),CN=Yn(),xN=kN({}.hasOwnProperty);Uy.exports=Object.hasOwn||function(t,r){return xN(CN(t),r)}});var ms=m((aY,My)=>{"use strict";var PN=xe(),TN=0,RN=Math.random(),ON=PN(1 .toString);My.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+ON(++TN+RN,36)}});var et=m((sY,jy)=>{"use strict";var NN=Se(),DN=sd(),Fy=wt(),LN=ms(),qN=td(),UN=rd(),Qn=NN.Symbol,ld=DN("wks"),MN=UN?Qn.for||Qn:Qn&&Qn.withoutSetter||LN;jy.exports=function(e){return Fy(ld,e)||(ld[e]=qN&&Fy(Qn,e)?Qn[e]:MN("Symbol."+e)),ld[e]}});var Hy=m((lY,Jy)=>{"use strict";var FN=jt(),By=Le(),Gy=nd(),jN=hs(),BN=ky(),GN=et(),JN=TypeError,HN=GN("toPrimitive");Jy.exports=function(e,t){if(!By(e)||Gy(e))return e;var r=jN(e,HN),n;if(r){if(t===void 0&&(t="default"),n=FN(r,e,t),!By(n)||Gy(n))return n;throw new JN("Can't convert object to primitive value")}return t===void 0&&(t="number"),BN(e,t)}});var cd=m((cY,$y)=>{"use strict";var $N=Hy(),VN=nd();$y.exports=function(e){var t=$N(e,"string");return VN(t)?t:t+""}});var dd=m((uY,Wy)=>{"use strict";var WN=Se(),Vy=Le(),ud=WN.document,zN=Vy(ud)&&Vy(ud.createElement);Wy.exports=function(e){return zN?ud.createElement(e):{}}});var pd=m((dY,zy)=>{"use strict";var KN=st(),YN=we(),QN=dd();zy.exports=!KN&&!YN(function(){return Object.defineProperty(QN("div"),"a",{get:function(){return 7}}).a!==7})});var fd=m(Yy=>{"use strict";var XN=st(),ZN=jt(),eD=Yu(),tD=so(),rD=Jr(),nD=cd(),iD=wt(),oD=pd(),Ky=Object.getOwnPropertyDescriptor;Yy.f=XN?Ky:function(t,r){if(t=rD(t),r=nD(r),oD)try{return Ky(t,r)}catch(n){}if(iD(t,r))return tD(!ZN(eD.f,t,r),t[r])}});var Xy=m((fY,Qy)=>{"use strict";var aD=we(),sD=$e(),lD=/#|\.prototype\./,uo=function(e,t){var r=uD[cD(e)];return r===pD?!0:r===dD?!1:sD(t)?aD(t):!!t},cD=uo.normalize=function(e){return String(e).replace(lD,".").toLowerCase()},uD=uo.data={},dD=uo.NATIVE="N",pD=uo.POLYFILL="P";Qy.exports=uo});var po=m((hY,eb)=>{"use strict";var Zy=ao(),fD=mn(),hD=Wn(),mD=Zy(Zy.bind);eb.exports=function(e,t){return fD(e),t===void 0?e:hD?mD(e,t):function(){return e.apply(t,arguments)}}});var hd=m((mY,tb)=>{"use strict";var gD=st(),vD=we();tb.exports=gD&&vD(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var gr=m((gY,rb)=>{"use strict";var yD=Le(),bD=String,_D=TypeError;rb.exports=function(e){if(yD(e))return e;throw new _D(bD(e)+" is not an object")}});var vr=m(ib=>{"use strict";var wD=st(),SD=pd(),ID=hd(),gs=gr(),nb=cd(),ED=TypeError,md=Object.defineProperty,AD=Object.getOwnPropertyDescriptor,gd="enumerable",vd="configurable",yd="writable";ib.f=wD?ID?function(t,r,n){if(gs(t),r=nb(r),gs(n),typeof t=="function"&&r==="prototype"&&"value"in n&&yd in n&&!n[yd]){var i=AD(t,r);i&&i[yd]&&(t[r]=n.value,n={configurable:vd in n?n[vd]:i[vd],enumerable:gd in n?n[gd]:i[gd],writable:!1})}return md(t,r,n)}:md:function(t,r,n){if(gs(t),r=nb(r),gs(n),SD)try{return md(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new ED("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var gn=m((yY,ob)=>{"use strict";var kD=st(),CD=vr(),xD=so();ob.exports=kD?function(e,t,r){return CD.f(e,t,xD(1,r))}:function(e,t,r){return e[t]=r,e}});var ae=m((bY,sb)=>{"use strict";var fo=Se(),PD=zu(),TD=ao(),RD=$e(),OD=fd().f,ND=Xy(),Xn=Yt(),DD=po(),Zn=gn(),ab=wt();co();var LD=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 PD(e,this,arguments)};return t.prototype=e.prototype,t};sb.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o=e.proto,a=n?fo:i?fo[r]:fo[r]&&fo[r].prototype,s=n?Xn:Xn[r]||Zn(Xn,r,{})[r],l=s.prototype,c,d,u,p,f,h,g,b,y;for(p in t)c=ND(n?p:r+(i?".":"#")+p,e.forced),d=!c&&a&&ab(a,p),h=s[p],d&&(e.dontCallGetSet?(y=OD(a,p),g=y&&y.value):g=a[p]),f=d&&g?g:t[p],!(!c&&!o&&typeof h==typeof f)&&(e.bind&&d?b=DD(f,fo):e.wrap&&d?b=LD(f):o&&RD(f)?b=TD(f):b=f,(e.sham||f&&f.sham||h&&h.sham)&&Zn(b,"sham",!0),Zn(s,p,b),o&&(u=r+"Prototype",ab(Xn,u)||Zn(Xn,u,{}),Zn(Xn[u],p,f),e.real&&l&&(c||!l[p])&&Zn(l,p,f)))}});var cb=m((_Y,lb)=>{"use strict";var qD=Math.ceil,UD=Math.floor;lb.exports=Math.trunc||function(t){var r=+t;return(r>0?UD:qD)(r)}});var ho=m((wY,ub)=>{"use strict";var MD=cb();ub.exports=function(e){var t=+e;return t!==t||t===0?0:MD(t)}});var bd=m((SY,db)=>{"use strict";var FD=ho(),jD=Math.min;db.exports=function(e){var t=FD(e);return t>0?jD(t,9007199254740991):0}});var ei=m((IY,pb)=>{"use strict";var BD=bd();pb.exports=function(e){return BD(e.length)}});var mo=m((EY,fb)=>{"use strict";var GD=mr();fb.exports=Array.isArray||function(t){return GD(t)==="Array"}});var vs=m((AY,mb)=>{"use strict";var JD=et(),HD=JD("toStringTag"),hb={};hb[HD]="z";mb.exports=String(hb)==="[object z]"});var ti=m((kY,gb)=>{"use strict";var $D=vs(),VD=$e(),ys=mr(),WD=et(),zD=WD("toStringTag"),KD=Object,YD=ys(function(){return arguments}())==="Arguments",QD=function(e,t){try{return e[t]}catch(r){}};gb.exports=$D?ys:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=QD(t=KD(e),zD))=="string"?r:YD?ys(t):(n=ys(t))==="Object"&&VD(t.callee)?"Arguments":n}});var yb=m((CY,vb)=>{"use strict";var XD=xe(),ZD=$e(),_d=co(),eL=XD(Function.toString);ZD(_d.inspectSource)||(_d.inspectSource=function(e){return eL(e)});vb.exports=_d.inspectSource});var Sd=m((xY,Ib)=>{"use strict";var tL=xe(),rL=we(),bb=$e(),nL=ti(),iL=zn(),oL=yb(),_b=function(){},wb=iL("Reflect","construct"),wd=/^\s*(?:class|function)\b/,aL=tL(wd.exec),sL=!wd.test(_b),go=function(t){if(!bb(t))return!1;try{return wb(_b,[],t),!0}catch(r){return!1}},Sb=function(t){if(!bb(t))return!1;switch(nL(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return sL||!!aL(wd,oL(t))}catch(r){return!0}};Sb.sham=!0;Ib.exports=!wb||rL(function(){var e;return go(go.call)||!go(Object)||!go(function(){e=!0})||e})?Sb:go});var Cb=m((PY,kb)=>{"use strict";var Eb=mo(),lL=Sd(),cL=Le(),uL=et(),dL=uL("species"),Ab=Array;kb.exports=function(e){var t;return Eb(e)&&(t=e.constructor,lL(t)&&(t===Ab||Eb(t.prototype))?t=void 0:cL(t)&&(t=t[dL],t===null&&(t=void 0))),t===void 0?Ab:t}});var Id=m((TY,xb)=>{"use strict";var pL=Cb();xb.exports=function(e,t){return new(pL(e))(t===0?0:t)}});var $r=m((RY,Tb)=>{"use strict";var fL=po(),hL=xe(),mL=us(),gL=Yn(),vL=ei(),yL=Id(),Pb=hL([].push),Hr=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=gL(l),f=mL(p),h=vL(f),g=fL(c,d),b=0,y=u||yL,_=t?y(l,h):r||a?y(l,0):void 0,S,E;h>b;b++)if((s||b in f)&&(S=f[b],E=g(S,b,p),e))if(t)_[b]=E;else if(E)switch(e){case 3:return!0;case 5:return S;case 6:return b;case 2:Pb(_,S)}else switch(e){case 4:return!1;case 7:Pb(_,S)}return o?-1:n||i?i:_}};Tb.exports={forEach:Hr(0),map:Hr(1),filter:Hr(2),some:Hr(3),every:Hr(4),find:Hr(5),findIndex:Hr(6),filterReject:Hr(7)}});var vo=m((OY,Rb)=>{"use strict";var bL=we(),_L=et(),wL=fs(),SL=_L("species");Rb.exports=function(e){return wL>=51||!bL(function(){var t=[],r=t.constructor={};return r[SL]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var Ob=m(()=>{"use strict";var IL=ae(),EL=$r().filter,AL=vo(),kL=AL("filter");IL({target:"Array",proto:!0,forced:!kL},{filter:function(t){return EL(this,t,arguments.length>1?arguments[1]:void 0)}})});var Rt=m((LY,Nb)=>{"use strict";var CL=Se(),xL=Yt();Nb.exports=function(e,t){var r=xL[e+"Prototype"],n=r&&r[t];if(n)return n;var i=CL[e],o=i&&i.prototype;return o&&o[t]}});var Lb=m((qY,Db)=>{"use strict";Ob();var PL=Rt();Db.exports=PL("Array","filter")});var Ub=m((UY,qb)=>{"use strict";var TL=at(),RL=Lb(),Ed=Array.prototype;qb.exports=function(e){var t=e.filter;return e===Ed||TL(Ed,e)&&t===Ed.filter?RL:t}});var Fb=m((MY,Mb)=>{"use strict";var OL=Ub();Mb.exports=OL});var Bb=m((FY,jb)=>{jb.exports=Fb()});var yo=m((jY,Gb)=>{"use strict";var NL=we();Gb.exports=function(e,t){var r=[][e];return!!r&&NL(function(){r.call(null,t||function(){return 1},1)})}});var Jb=m(()=>{"use strict";var DL=ae(),LL=$r().every,qL=yo(),UL=qL("every");DL({target:"Array",proto:!0,forced:!UL},{every:function(t){return LL(this,t,arguments.length>1?arguments[1]:void 0)}})});var $b=m((JY,Hb)=>{"use strict";Jb();var ML=Rt();Hb.exports=ML("Array","every")});var Wb=m((HY,Vb)=>{"use strict";var FL=at(),jL=$b(),Ad=Array.prototype;Vb.exports=function(e){var t=e.every;return e===Ad||FL(Ad,e)&&t===Ad.every?jL:t}});var Kb=m(($Y,zb)=>{"use strict";var BL=Wb();zb.exports=BL});var Qb=m((VY,Yb)=>{Yb.exports=Kb()});var Zb=m((WY,Xb)=>{"use strict";var GL=$r().forEach,JL=yo(),HL=JL("forEach");Xb.exports=HL?[].forEach:function(t){return GL(this,t,arguments.length>1?arguments[1]:void 0)}});var t_=m(()=>{"use strict";var $L=ae(),e_=Zb();$L({target:"Array",proto:!0,forced:[].forEach!==e_},{forEach:e_})});var n_=m((YY,r_)=>{"use strict";t_();var VL=Rt();r_.exports=VL("Array","forEach")});var o_=m((QY,i_)=>{"use strict";var WL=n_();i_.exports=WL});var a_=m(()=>{});var l_=m((eQ,s_)=>{"use strict";var zL=ti(),KL=wt(),YL=at(),QL=o_();a_();var kd=Array.prototype,XL={DOMTokenList:!0,NodeList:!0};s_.exports=function(e){var t=e.forEach;return e===kd||YL(kd,e)&&t===kd.forEach||KL(XL,zL(e))?QL:t}});var u_=m((tQ,c_)=>{c_.exports=l_()});var p_=m((rQ,d_)=>{"use strict";var ZL=TypeError,eq=9007199254740991;d_.exports=function(e){if(e>eq)throw ZL("Maximum allowed index exceeded");return e}});var Cd=m((nQ,f_)=>{"use strict";var tq=st(),rq=vr(),nq=so();f_.exports=function(e,t,r){tq?rq.f(e,t,nq(0,r)):e[t]=r}});var v_=m(()=>{"use strict";var iq=ae(),oq=we(),aq=mo(),sq=Le(),lq=Yn(),cq=ei(),h_=p_(),m_=Cd(),uq=Id(),dq=vo(),pq=et(),fq=fs(),g_=pq("isConcatSpreadable"),hq=fq>=51||!oq(function(){var e=[];return e[g_]=!1,e.concat()[0]!==e}),mq=function(e){if(!sq(e))return!1;var t=e[g_];return t!==void 0?!!t:aq(e)},gq=!hq||!dq("concat");iq({target:"Array",proto:!0,arity:1,forced:gq},{concat:function(t){var r=lq(this),n=uq(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],mq(c))for(l=cq(c),h_(i+l),a=0;a<l;a++,i++)a in c&&m_(n,i,c[a]);else h_(i+1),m_(n,i++,c);return n.length=i,n}})});var b_=m((aQ,y_)=>{"use strict";v_();var vq=Rt();y_.exports=vq("Array","concat")});var w_=m((sQ,__)=>{"use strict";var yq=at(),bq=b_(),xd=Array.prototype;__.exports=function(e){var t=e.concat;return e===xd||yq(xd,e)&&t===xd.concat?bq:t}});var I_=m((lQ,S_)=>{"use strict";var _q=w_();S_.exports=_q});var A_=m((cQ,E_)=>{E_.exports=I_()});var k_=m(()=>{"use strict";var wq=ae(),Sq=$r().some,Iq=yo(),Eq=Iq("some");wq({target:"Array",proto:!0,forced:!Eq},{some:function(t){return Sq(this,t,arguments.length>1?arguments[1]:void 0)}})});var x_=m((pQ,C_)=>{"use strict";k_();var Aq=Rt();C_.exports=Aq("Array","some")});var T_=m((fQ,P_)=>{"use strict";var kq=at(),Cq=x_(),Pd=Array.prototype;P_.exports=function(e){var t=e.some;return e===Pd||kq(Pd,e)&&t===Pd.some?Cq:t}});var O_=m((hQ,R_)=>{"use strict";var xq=T_();R_.exports=xq});var D_=m((mQ,N_)=>{N_.exports=O_()});var q_=m((gQ,L_)=>{"use strict";var bo=Se(),Pq=ds(),Tq=mr(),bs=function(e){return Pq.slice(0,e.length)===e};L_.exports=function(){return bs("Bun/")?"BUN":bs("Cloudflare-Workers")?"CLOUDFLARE":bs("Deno/")?"DENO":bs("Node.js/")?"NODE":bo.Bun&&typeof Bun.version=="string"?"BUN":bo.Deno&&typeof Deno.version=="object"?"DENO":Tq(bo.process)==="process"?"NODE":bo.window&&bo.document?"BROWSER":"REST"}()});var _o=m((vQ,U_)=>{"use strict";var Rq=xe();U_.exports=Rq([].slice)});var F_=m((yQ,M_)=>{"use strict";var Oq=TypeError;M_.exports=function(e,t){if(e<t)throw new Oq("Not enough arguments");return e}});var Td=m((bQ,B_)=>{"use strict";var j_=Se(),Nq=zu(),Dq=$e(),Lq=q_(),qq=ds(),Uq=_o(),Mq=F_(),Fq=j_.Function,jq=/MSIE .\./.test(qq)||Lq==="BUN"&&function(){var e=j_.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();B_.exports=function(e,t){var r=t?2:1;return jq?function(n,i){var o=Mq(arguments.length,1)>r,a=Dq(n)?n:Fq(n),s=o?Uq(arguments,r):[],l=o?function(){Nq(a,this,s)}:a;return t?e(l,i):e(l)}:e}});var H_=m(()=>{"use strict";var Bq=ae(),J_=Se(),Gq=Td(),G_=Gq(J_.setInterval,!0);Bq({global:!0,bind:!0,forced:J_.setInterval!==G_},{setInterval:G_})});var W_=m(()=>{"use strict";var Jq=ae(),V_=Se(),Hq=Td(),$_=Hq(V_.setTimeout,!0);Jq({global:!0,bind:!0,forced:V_.setTimeout!==$_},{setTimeout:$_})});var z_=m(()=>{"use strict";H_();W_()});var Y_=m((kQ,K_)=>{"use strict";z_();var $q=Yt();K_.exports=$q.setTimeout});var X_=m((CQ,Q_)=>{Q_.exports=Y_()});function So(e,t){Ae.__h&&Ae.__h(de,e,wo||t),wo=0;var r=de.__H||(de.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function yr(e){return wo=1,lw(cw,e)}function lw(e,t,r){var n=So(vn++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):cw(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=de,!de.__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};de.__f=!0;var o=de.shouldComponentUpdate,a=de.componentWillUpdate;de.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)},de.shouldComponentUpdate=i}return n.__N||n.__}function yn(e,t){var r=So(vn++,3);!Ae.__s&&Nd(r.__H,t)&&(r.__=e,r.u=t,de.__H.__h.push(r))}function ri(e,t){var r=So(vn++,4);!Ae.__s&&Nd(r.__H,t)&&(r.__=e,r.u=t,de.__h.push(r))}function ni(e){return wo=5,Io(function(){return{current:e}},[])}function Io(e,t){var r=So(vn++,7);return Nd(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Vr(e,t){return wo=8,Io(function(){return e},t)}function ii(e){var t=de.context[e.__c],r=So(vn++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(de)),t.props.value):e.__}function Vq(){for(var e;e=sw.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(_s),e.__H.__h.forEach(Od),e.__H.__h=[]}catch(t){e.__H.__h=[],Ae.__e(t,e.__v)}}function Wq(e){var t,r=function(){clearTimeout(n),aw&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);aw&&(t=requestAnimationFrame(r))}function _s(e){var t=de,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),de=t}function Od(e){var t=de;e.__c=e.__(),de=t}function Nd(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function cw(e,t){return typeof t=="function"?t(e):t}var vn,de,Rd,Z_,wo,sw,Ae,ew,tw,rw,nw,iw,ow,aw,Dd=x(()=>{Vn();wo=0,sw=[],Ae=D,ew=Ae.__b,tw=Ae.__r,rw=Ae.diffed,nw=Ae.__c,iw=Ae.unmount,ow=Ae.__;Ae.__b=function(e){de=null,ew&&ew(e)},Ae.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ow&&ow(e,t)},Ae.__r=function(e){tw&&tw(e),vn=0;var t=(de=e.__c).__H;t&&(Rd===de?(t.__h=[],de.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(_s),t.__h.forEach(Od),t.__h=[],vn=0)),Rd=de},Ae.diffed=function(e){rw&&rw(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(sw.push(t)!==1&&Z_===Ae.requestAnimationFrame||((Z_=Ae.requestAnimationFrame)||Wq)(Vq)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Rd=de=null},Ae.__c=function(e,t){t.some(function(r){try{r.__h.forEach(_s),r.__h=r.__h.filter(function(n){return!n.__||Od(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Ae.__e(n,r.__v)}}),nw&&nw(e,t)},Ae.unmount=function(e){iw&&iw(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{_s(n)}catch(i){t=i}}),r.__H=void 0,t&&Ae.__e(t,r.__v))};aw=typeof requestAnimationFrame=="function"});function bw(e,t){for(var r in t)e[r]=t[r];return e}function qd(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 uw(e,t){this.props=e,this.context=t}function Md(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:qd(this.props,i)}function n(i){return this.shouldComponentUpdate=r,Ze(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function Fd(e){function t(r){var n=bw({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=zq,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function _w(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=bw({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return _w(n,t,r)})),e}function ww(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return ww(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 Ld(){this.__u=0,this.o=null,this.__b=null}function Sw(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function ws(){this.i=null,this.l=null}function Ss(e,t,r){return t.__k==null&&(t.textContent=""),Gr(e,t),typeof r=="function"&&r(),e?e.__c:null}function rU(){}function nU(){return this.cancelBubble}function iU(){return this.defaultPrevented}var Ud,dw,zq,Kq,pw,fw,Yq,Qq,Xq,Zq,eU,tU,hw,Iw,oU,mw,gw,vw,Is=x(()=>{Vn();Vn();Dd();Dd();Ud=ri;(uw.prototype=new _t).isPureReactComponent=!0,uw.prototype.shouldComponentUpdate=function(e,t){return qd(this.props,e)||qd(this.state,t)};dw=D.__b;D.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),dw&&dw(e)};zq=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;Kq=D.__e;D.__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)}Kq(e,t,r,n)};pw=D.unmount;D.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),pw&&pw(e)},(Ld.prototype=new _t).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=Sw(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]=ww(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)},Ld.prototype.componentWillUnmount=function(){this.o=[]},Ld.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]=_w(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&Ze(He,null,e.fallback);return i&&(i.__u&=-33),[Ze(He,null,t.__a?null:e.children),i]};fw=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]}};(ws.prototype=new _t).__a=function(e){var t=this,r=Sw(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),fw(t,e,n)):i()};r?r(o):o()}},ws.prototype.render=function(e){this.i=null,this.l=new Map;var t=io(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},ws.prototype.componentDidUpdate=ws.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){fw(e,r,t)})};Yq=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,Qq=/^(?: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]/,Xq=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,Zq=/[A-Z0-9]/g,eU=typeof document!="undefined",tU=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};_t.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(_t.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});hw=D.event;D.event=function(e){return hw&&(e=hw(e)),e.persist=rU,e.isPropagationStopped=nU,e.isDefaultPrevented=iU,e.nativeEvent=e};oU={enumerable:!1,configurable:!0,get:function(){return this.class}},mw=D.vnode;D.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||eU&&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"||tU(r.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":Xq.test(a)&&(a=l):l=a="oninput":o&&Qq.test(a)?a=a.replace(Zq,"-$&").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=io(r.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=io(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",oU)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=Yq,mw&&mw(e)};gw=D.__r;D.__r=function(e){gw&&gw(e),Iw=e.__c};vw=D.diffed;D.diffed=function(e){vw&&vw(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),Iw=null}});var Bd=m(()=>{"use strict";var sU=ae(),jd=Se();sU({global:!0,forced:jd.globalThis!==jd},{globalThis:jd})});var Ew=m(()=>{"use strict";Bd()});var kw=m((JQ,Aw)=>{"use strict";Bd();Aw.exports=Se()});var xw=m((HQ,Cw)=>{"use strict";var lU=kw();Cw.exports=lU});var Tw=m(($Q,Pw)=>{"use strict";var cU=xw();Pw.exports=cU});var Ow=m((VQ,Rw)=>{"use strict";Ew();var uU=Tw();Rw.exports=uU});var Dw=m((WQ,Nw)=>{"use strict";Nw.exports=Ow()});var qw=m((zQ,Lw)=>{Lw.exports=Dw()});var Uw=m(()=>{"use strict";var dU=ae(),pU=mo();dU({target:"Array",stat:!0},{isArray:pU})});var Fw=m((QQ,Mw)=>{"use strict";Uw();var fU=Yt();Mw.exports=fU.Array.isArray});var Bw=m((XQ,jw)=>{"use strict";var hU=Fw();jw.exports=hU});var Jw=m((ZQ,Gw)=>{Gw.exports=Bw()});var $w=m((eX,Hw)=>{"use strict";Hw.exports=function(){}});var bn=m((tX,Vw)=>{"use strict";Vw.exports={}});var Gd=m((rX,zw)=>{"use strict";var mU=Se(),gU=$e(),Ww=mU.WeakMap;zw.exports=gU(Ww)&&/native code/.test(String(Ww))});var Es=m((nX,Yw)=>{"use strict";var vU=sd(),yU=ms(),Kw=vU("keys");Yw.exports=function(e){return Kw[e]||(Kw[e]=yU(e))}});var Eo=m((iX,Qw)=>{"use strict";Qw.exports={}});var wn=m((oX,eS)=>{"use strict";var bU=Gd(),Zw=Se(),_U=Le(),wU=gn(),Jd=wt(),Hd=co(),SU=Es(),IU=Eo(),Xw="Object already initialized",$d=Zw.TypeError,EU=Zw.WeakMap,As,Ao,ks,AU=function(e){return ks(e)?Ao(e):As(e,{})},kU=function(e){return function(t){var r;if(!_U(t)||(r=Ao(t)).type!==e)throw new $d("Incompatible receiver, "+e+" required");return r}};bU||Hd.state?(Gt=Hd.state||(Hd.state=new EU),Gt.get=Gt.get,Gt.has=Gt.has,Gt.set=Gt.set,As=function(e,t){if(Gt.has(e))throw new $d(Xw);return t.facade=e,Gt.set(e,t),t},Ao=function(e){return Gt.get(e)||{}},ks=function(e){return Gt.has(e)}):(_n=SU("state"),IU[_n]=!0,As=function(e,t){if(Jd(e,_n))throw new $d(Xw);return t.facade=e,wU(e,_n,t),t},Ao=function(e){return Jd(e,_n)?e[_n]:{}},ks=function(e){return Jd(e,_n)});var Gt,_n;eS.exports={set:As,get:Ao,has:ks,enforce:AU,getterFor:kU}});var zd=m((aX,rS)=>{"use strict";var Vd=st(),CU=wt(),tS=Function.prototype,xU=Vd&&Object.getOwnPropertyDescriptor,Wd=CU(tS,"name"),PU=Wd&&(function(){}).name==="something",TU=Wd&&(!Vd||Vd&&xU(tS,"name").configurable);rS.exports={EXISTS:Wd,PROPER:PU,CONFIGURABLE:TU}});var Kd=m((sX,nS)=>{"use strict";var RU=ho(),OU=Math.max,NU=Math.min;nS.exports=function(e,t){var r=RU(e);return r<0?OU(r+t,0):NU(r,t)}});var Yd=m((lX,oS)=>{"use strict";var DU=Jr(),LU=Kd(),qU=ei(),iS=function(e){return function(t,r,n){var i=DU(t),o=qU(i);if(o===0)return!e&&-1;var a=LU(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}};oS.exports={includes:iS(!0),indexOf:iS(!1)}});var Xd=m((cX,sS)=>{"use strict";var UU=xe(),Qd=wt(),MU=Jr(),FU=Yd().indexOf,jU=Eo(),aS=UU([].push);sS.exports=function(e,t){var r=MU(e),n=0,i=[],o;for(o in r)!Qd(jU,o)&&Qd(r,o)&&aS(i,o);for(;t.length>n;)Qd(r,o=t[n++])&&(~FU(i,o)||aS(i,o));return i}});var Cs=m((uX,lS)=>{"use strict";lS.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Zd=m((dX,cS)=>{"use strict";var BU=Xd(),GU=Cs();cS.exports=Object.keys||function(t){return BU(t,GU)}});var dS=m(uS=>{"use strict";var JU=st(),HU=hd(),$U=vr(),VU=gr(),WU=Jr(),zU=Zd();uS.f=JU&&!HU?Object.defineProperties:function(t,r){VU(t);for(var n=WU(r),i=zU(r),o=i.length,a=0,s;o>a;)$U.f(t,s=i[a++],n[s]);return t}});var fS=m((fX,pS)=>{"use strict";var KU=zn();pS.exports=KU("document","documentElement")});var ko=m((hX,_S)=>{"use strict";var YU=gr(),QU=dS(),hS=Cs(),XU=Eo(),ZU=fS(),eM=dd(),tM=Es(),mS=">",gS="<",tp="prototype",rp="script",yS=tM("IE_PROTO"),ep=function(){},bS=function(e){return gS+rp+mS+e+gS+"/"+rp+mS},vS=function(e){e.write(bS("")),e.close();var t=e.parentWindow.Object;return e=null,t},rM=function(){var e=eM("iframe"),t="java"+rp+":",r;return e.style.display="none",ZU.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(bS("document.F=Object")),r.close(),r.F},xs,Ps=function(){try{xs=new ActiveXObject("htmlfile")}catch(t){}Ps=typeof document!="undefined"?document.domain&&xs?vS(xs):rM():vS(xs);for(var e=hS.length;e--;)delete Ps[tp][hS[e]];return Ps()};XU[yS]=!0;_S.exports=Object.create||function(t,r){var n;return t!==null?(ep[tp]=YU(t),n=new ep,ep[tp]=null,n[yS]=t):n=Ps(),r===void 0?n:QU.f(n,r)}});var SS=m((mX,wS)=>{"use strict";var nM=we();wS.exports=!nM(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var ip=m((gX,ES)=>{"use strict";var iM=wt(),oM=$e(),aM=Yn(),sM=Es(),lM=SS(),IS=sM("IE_PROTO"),np=Object,cM=np.prototype;ES.exports=lM?np.getPrototypeOf:function(e){var t=aM(e);if(iM(t,IS))return t[IS];var r=t.constructor;return oM(r)&&t instanceof r?r.prototype:t instanceof np?cM:null}});var Ts=m((vX,AS)=>{"use strict";var uM=gn();AS.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:uM(e,t,r),e}});var lp=m((yX,xS)=>{"use strict";var dM=we(),pM=$e(),fM=Le(),hM=ko(),kS=ip(),mM=Ts(),gM=et(),vM=Kn(),sp=gM("iterator"),CS=!1,br,op,ap;[].keys&&(ap=[].keys(),"next"in ap?(op=kS(kS(ap)),op!==Object.prototype&&(br=op)):CS=!0);var yM=!fM(br)||dM(function(){var e={};return br[sp].call(e)!==e});yM?br={}:vM&&(br=hM(br));pM(br[sp])||mM(br,sp,function(){return this});xS.exports={IteratorPrototype:br,BUGGY_SAFARI_ITERATORS:CS}});var TS=m((bX,PS)=>{"use strict";var bM=vs(),_M=ti();PS.exports=bM?{}.toString:function(){return"[object "+_M(this)+"]"}});var Co=m((_X,OS)=>{"use strict";var wM=vs(),SM=vr().f,IM=gn(),EM=wt(),AM=TS(),kM=et(),RS=kM("toStringTag");OS.exports=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(EM(i,RS)||SM(i,RS,{configurable:!0,value:t}),n&&!wM&&IM(i,"toString",AM))}});var DS=m((wX,NS)=>{"use strict";var CM=lp().IteratorPrototype,xM=ko(),PM=so(),TM=Co(),RM=bn(),OM=function(){return this};NS.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=xM(CM,{next:PM(+!n,r)}),TM(e,i,!1,!0),RM[i]=OM,e}});var qS=m((SX,LS)=>{"use strict";var NM=xe(),DM=mn();LS.exports=function(e,t,r){try{return NM(DM(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var MS=m((IX,US)=>{"use strict";var LM=Le();US.exports=function(e){return LM(e)||e===null}});var jS=m((EX,FS)=>{"use strict";var qM=MS(),UM=String,MM=TypeError;FS.exports=function(e){if(qM(e))return e;throw new MM("Can't set "+UM(e)+" as a prototype")}});var GS=m((AX,BS)=>{"use strict";var FM=qS(),jM=Le(),BM=hn(),GM=jS();BS.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=FM(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return BM(i),GM(o),jM(i)&&(e?r(i,o):i.__proto__=o),i}}():void 0)});var Ns=m((kX,XS)=>{"use strict";var JM=ae(),HM=jt(),Rs=Kn(),YS=zd(),$M=$e(),VM=DS(),JS=ip(),HS=GS(),WM=Co(),zM=gn(),cp=Ts(),KM=et(),$S=bn(),QS=lp(),YM=YS.PROPER,QM=YS.CONFIGURABLE,VS=QS.IteratorPrototype,Os=QS.BUGGY_SAFARI_ITERATORS,xo=KM("iterator"),WS="keys",Po="values",zS="entries",KS=function(){return this};XS.exports=function(e,t,r,n,i,o,a){VM(r,t,n);var s=function(y){if(y===i&&p)return p;if(!Os&&y&&y in d)return d[y];switch(y){case WS:return function(){return new r(this,y)};case Po:return function(){return new r(this,y)};case zS:return function(){return new r(this,y)}}return function(){return new r(this)}},l=t+" Iterator",c=!1,d=e.prototype,u=d[xo]||d["@@iterator"]||i&&d[i],p=!Os&&u||s(i),f=t==="Array"&&d.entries||u,h,g,b;if(f&&(h=JS(f.call(new e)),h!==Object.prototype&&h.next&&(!Rs&&JS(h)!==VS&&(HS?HS(h,VS):$M(h[xo])||cp(h,xo,KS)),WM(h,l,!0,!0),Rs&&($S[l]=KS))),YM&&i===Po&&u&&u.name!==Po&&(!Rs&&QM?zM(d,"name",Po):(c=!0,p=function(){return HM(u,this)})),i)if(g={values:s(Po),keys:o?p:s(WS),entries:s(zS)},a)for(b in g)(Os||c||!(b in d))&&cp(d,b,g[b]);else JM({target:t,proto:!0,forced:Os||c},g);return(!Rs||a)&&d[xo]!==p&&cp(d,xo,p,{name:i}),$S[t]=p,g}});var Ds=m((CX,ZS)=>{"use strict";ZS.exports=function(e,t){return{value:e,done:t}}});var qs=m((xX,iI)=>{"use strict";var XM=Jr(),up=$w(),eI=bn(),rI=wn(),ZM=vr().f,eF=Ns(),Ls=Ds(),tF=Kn(),rF=st(),nI="Array Iterator",nF=rI.set,iF=rI.getterFor(nI);iI.exports=eF(Array,"Array",function(e,t){nF(this,{type:nI,target:XM(e),index:0,kind:t})},function(){var e=iF(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,Ls(void 0,!0);switch(e.kind){case"keys":return Ls(r,!1);case"values":return Ls(t[r],!1)}return Ls([r,t[r]],!1)},"values");var tI=eI.Arguments=eI.Array;up("keys");up("values");up("entries");if(!tF&&rF&&tI.name!=="values")try{ZM(tI,"name",{value:"values"})}catch(e){}});var dp=m(()=>{});var pp=m((RX,oI)=>{"use strict";var oF=we();oI.exports=!oF(function(){return Object.isExtensible(Object.preventExtensions({}))})});var Us=m((OX,aI)=>{"use strict";var aF=Ts();aI.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:aF(e,n,t[n],r);return e}});var fp=m(sI=>{"use strict";var sF=Xd(),lF=Cs(),cF=lF.concat("length","prototype");sI.f=Object.getOwnPropertyNames||function(t){return sF(t,cF)}});var dI=m((DX,uI)=>{"use strict";var uF=mr(),dF=Jr(),lI=fp().f,pF=_o(),cI=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],fF=function(e){try{return lI(e)}catch(t){return pF(cI)}};uI.exports.f=function(t){return cI&&uF(t)==="Window"?fF(t):lI(dF(t))}});var fI=m((LX,pI)=>{"use strict";var hF=we();pI.exports=hF(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var gI=m((qX,mI)=>{"use strict";var mF=we(),gF=Le(),vF=mr(),hI=fI(),Ms=Object.isExtensible,yF=mF(function(){Ms(1)});mI.exports=yF||hI?function(t){return!gF(t)||hI&&vF(t)==="ArrayBuffer"?!1:Ms?Ms(t):!0}:Ms});var To=m((UX,bI)=>{"use strict";var bF=ae(),_F=xe(),wF=Eo(),SF=Le(),hp=wt(),IF=vr().f,vI=fp(),EF=dI(),mp=gI(),AF=ms(),kF=pp(),yI=!1,_r=AF("meta"),CF=0,gp=function(e){IF(e,_r,{value:{objectID:"O"+CF++,weakData:{}}})},xF=function(e,t){if(!SF(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!hp(e,_r)){if(!mp(e))return"F";if(!t)return"E";gp(e)}return e[_r].objectID},PF=function(e,t){if(!hp(e,_r)){if(!mp(e))return!0;if(!t)return!1;gp(e)}return e[_r].weakData},TF=function(e){return kF&&yI&&mp(e)&&!hp(e,_r)&&gp(e),e},RF=function(){OF.enable=function(){},yI=!0;var e=vI.f,t=_F([].splice),r={};r[_r]=1,e(r).length&&(vI.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===_r){t(i,o,1);break}return i},bF({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:EF.f}))},OF=bI.exports={enable:RF,fastKey:xF,getWeakData:PF,onFreeze:TF};wF[_r]=!0});var wI=m((MX,_I)=>{"use strict";var NF=et(),DF=bn(),LF=NF("iterator"),qF=Array.prototype;_I.exports=function(e){return e!==void 0&&(DF.Array===e||qF[LF]===e)}});var vp=m((FX,II)=>{"use strict";var UF=ti(),SI=hs(),MF=fn(),FF=bn(),jF=et(),BF=jF("iterator");II.exports=function(e){if(!MF(e))return SI(e,BF)||SI(e,"@@iterator")||FF[UF(e)]}});var AI=m((jX,EI)=>{"use strict";var GF=jt(),JF=mn(),HF=gr(),$F=lo(),VF=vp(),WF=TypeError;EI.exports=function(e,t){var r=arguments.length<2?VF(e):t;if(JF(r))return HF(GF(r,e));throw new WF($F(e)+" is not iterable")}});var Fs=m((BX,CI)=>{"use strict";var zF=jt(),kI=gr(),KF=hs();CI.exports=function(e,t,r){var n,i;kI(e);try{if(n=KF(e,"return"),!n){if(t==="throw")throw r;return r}n=zF(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return kI(n),r}});var Bs=m((GX,RI)=>{"use strict";var YF=po(),QF=jt(),XF=gr(),ZF=lo(),ej=wI(),tj=ei(),xI=at(),rj=AI(),nj=vp(),PI=Fs(),ij=TypeError,js=function(e,t){this.stopped=e,this.result=t},TI=js.prototype;RI.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=YF(t,n),c,d,u,p,f,h,g,b=function(_){return c&&PI(c,"normal",_),new js(!0,_)},y=function(_){return i?(XF(_),s?l(_[0],_[1],b):l(_[0],_[1])):s?l(_,b):l(_)};if(o)c=e.iterator;else if(a)c=e;else{if(d=nj(e),!d)throw new ij(ZF(e)+" is not iterable");if(ej(d)){for(u=0,p=tj(e);p>u;u++)if(f=y(e[u]),f&&xI(TI,f))return f;return new js(!1)}c=rj(e,d)}for(h=o?e.next:c.next;!(g=QF(h,c)).done;){try{f=y(g.value)}catch(_){PI(c,"throw",_)}if(typeof f=="object"&&f&&xI(TI,f))return f}return new js(!1)}});var Gs=m((JX,OI)=>{"use strict";var oj=at(),aj=TypeError;OI.exports=function(e,t){if(oj(t,e))return e;throw new aj("Incorrect invocation")}});var yp=m((HX,DI)=>{"use strict";var sj=ae(),lj=Se(),cj=To(),uj=we(),dj=gn(),pj=Bs(),fj=Gs(),hj=$e(),mj=Le(),gj=fn(),vj=Co(),yj=vr().f,bj=$r().forEach,_j=st(),NI=wn(),wj=NI.set,Sj=NI.getterFor;DI.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=lj[e],s=a&&a.prototype,l={},c;if(!_j||!hj(a)||!(i||s.forEach&&!uj(function(){new a().entries().next()})))c=r.getConstructor(t,e,n,o),cj.enable();else{c=t(function(p,f){wj(fj(p,d),{type:e,collection:new a}),gj(f)||pj(f,p[o],{that:p,AS_ENTRIES:n})});var d=c.prototype,u=Sj(e);bj(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(p){var f=p==="add"||p==="set";p in s&&!(i&&p==="clear")&&dj(d,p,function(h,g){var b=u(this).collection;if(!f&&i&&!mj(h))return p==="get"?void 0:!1;var y=b[p](h===0?0:h,g);return f?this:y})}),i||yj(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return vj(c,e,!1,!0),l[e]=c,sj({global:!0,forced:!0},l),i||r.setStrong(c,e,n),c}});var BI=m(($X,jI)=>{"use strict";var Ij=xe(),LI=Us(),Js=To().getWeakData,Ej=Gs(),Aj=gr(),kj=fn(),bp=Le(),Cj=Bs(),UI=$r(),qI=wt(),MI=wn(),xj=MI.set,Pj=MI.getterFor,Tj=UI.find,Rj=UI.findIndex,Oj=Ij([].splice),Nj=0,Hs=function(e){return e.frozen||(e.frozen=new FI)},FI=function(){this.entries=[]},_p=function(e,t){return Tj(e.entries,function(r){return r[0]===t})};FI.prototype={get:function(e){var t=_p(this,e);if(t)return t[1]},has:function(e){return!!_p(this,e)},set:function(e,t){var r=_p(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=Rj(this.entries,function(r){return r[0]===e});return~t&&Oj(this.entries,t,1),!!~t}};jI.exports={getConstructor:function(e,t,r,n){var i=e(function(l,c){Ej(l,o),xj(l,{type:t,id:Nj++,frozen:null}),kj(c)||Cj(c,l[n],{that:l,AS_ENTRIES:r})}),o=i.prototype,a=Pj(t),s=function(l,c,d){var u=a(l),p=Js(Aj(c),!0);return p===!0?Hs(u).set(c,d):p[u.id]=d,l};return LI(o,{delete:function(l){var c=a(this);if(!bp(l))return!1;var d=Js(l);return d===!0?Hs(c).delete(l):d&&qI(d,c.id)&&delete d[c.id]},has:function(c){var d=a(this);if(!bp(c))return!1;var u=Js(c);return u===!0?Hs(d).has(c):u&&qI(u,d.id)}}),LI(o,r?{get:function(c){var d=a(this);if(bp(c)){var u=Js(c);if(u===!0)return Hs(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 KI=m(()=>{"use strict";var Dj=pp(),GI=Se(),zs=xe(),JI=Us(),Lj=To(),qj=yp(),HI=BI(),$s=Le(),Vs=wn().enforce,Uj=we(),Mj=Gd(),No=Object,Fj=Array.isArray,Ws=No.isExtensible,$I=No.isFrozen,jj=No.isSealed,VI=No.freeze,Bj=No.seal,Gj=!GI.ActiveXObject&&"ActiveXObject"in GI,Ro,WI=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},zI=qj("WeakMap",WI,HI),oi=zI.prototype,Ks=zs(oi.set),Jj=function(){return Dj&&Uj(function(){var e=VI([]);return Ks(new zI,e,1),!$I(e)})};Mj&&(Gj?(Ro=HI.getConstructor(WI,"WeakMap",!0),Lj.enable(),wp=zs(oi.delete),Oo=zs(oi.has),Sp=zs(oi.get),JI(oi,{delete:function(e){if($s(e)&&!Ws(e)){var t=Vs(this);return t.frozen||(t.frozen=new Ro),wp(this,e)||t.frozen.delete(e)}return wp(this,e)},has:function(t){if($s(t)&&!Ws(t)){var r=Vs(this);return r.frozen||(r.frozen=new Ro),Oo(this,t)||r.frozen.has(t)}return Oo(this,t)},get:function(t){if($s(t)&&!Ws(t)){var r=Vs(this);return r.frozen||(r.frozen=new Ro),Oo(this,t)?Sp(this,t):r.frozen.get(t)}return Sp(this,t)},set:function(t,r){if($s(t)&&!Ws(t)){var n=Vs(this);n.frozen||(n.frozen=new Ro),Oo(this,t)?Ks(this,t,r):n.frozen.set(t,r)}else Ks(this,t,r);return this}})):Jj()&&JI(oi,{set:function(t,r){var n;return Fj(t)&&($I(t)?n=VI:jj(t)&&(n=Bj)),Ks(this,t,r),n&&n(t),this}}));var wp,Oo,Sp});var YI=m(()=>{"use strict";KI()});var XI=m((YX,QI)=>{"use strict";qs();dp();YI();var Hj=Yt();QI.exports=Hj.WeakMap});var e0=m((QX,ZI)=>{"use strict";ZI.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 Ip=m(()=>{"use strict";qs();var $j=e0(),Vj=Se(),Wj=Co(),t0=bn();for(Ys in $j)Wj(Vj[Ys],Ys),t0[Ys]=t0.Array;var Ys});var n0=m((eZ,r0)=>{"use strict";var zj=XI();Ip();r0.exports=zj});var o0=m((tZ,i0)=>{i0.exports=n0()});var s0=m(()=>{"use strict";var Kj=ae(),Yj=ao(),Qj=Yd().indexOf,Xj=yo(),Ep=Yj([].indexOf),a0=!!Ep&&1/Ep([1],1,-0)<0,Zj=a0||!Xj("indexOf");Kj({target:"Array",proto:!0,forced:Zj},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return a0?Ep(this,t,r)||0:Qj(this,t,r)}})});var c0=m((iZ,l0)=>{"use strict";s0();var eB=Rt();l0.exports=eB("Array","indexOf")});var d0=m((oZ,u0)=>{"use strict";var tB=at(),rB=c0(),Ap=Array.prototype;u0.exports=function(e){var t=e.indexOf;return e===Ap||tB(Ap,e)&&t===Ap.indexOf?rB:t}});var f0=m((aZ,p0)=>{"use strict";var nB=d0();p0.exports=nB});var m0=m((sZ,h0)=>{h0.exports=f0()});var g0=m(()=>{"use strict";var iB=ae(),oB=$r().map,aB=vo(),sB=aB("map");iB({target:"Array",proto:!0,forced:!sB},{map:function(t){return oB(this,t,arguments.length>1?arguments[1]:void 0)}})});var y0=m((uZ,v0)=>{"use strict";g0();var lB=Rt();v0.exports=lB("Array","map")});var _0=m((dZ,b0)=>{"use strict";var cB=at(),uB=y0(),kp=Array.prototype;b0.exports=function(e){var t=e.map;return e===kp||cB(kp,e)&&t===kp.map?uB:t}});var S0=m((pZ,w0)=>{"use strict";var dB=_0();w0.exports=dB});var E0=m((fZ,I0)=>{I0.exports=S0()});var A0=m(()=>{"use strict";var pB=ae(),fB=st(),hB=ko();pB({target:"Object",stat:!0,sham:!fB},{create:hB})});var C0=m((gZ,k0)=>{"use strict";A0();var mB=Yt(),gB=mB.Object;k0.exports=function(t,r){return gB.create(t,r)}});var P0=m((vZ,x0)=>{"use strict";var vB=C0();x0.exports=vB});var R0=m((yZ,T0)=>{T0.exports=P0()});var Cp=m((bZ,O0)=>{"use strict";var yB=vr();O0.exports=function(e,t,r){return yB.f(e,t,r)}});var L0=m((_Z,D0)=>{"use strict";var bB=zn(),_B=Cp(),wB=et(),SB=st(),N0=wB("species");D0.exports=function(e){var t=bB(e);SB&&t&&!t[N0]&&_B(t,N0,{configurable:!0,get:function(){return this}})}});var G0=m((wZ,B0)=>{"use strict";var q0=ko(),IB=Cp(),U0=Us(),EB=po(),AB=Gs(),kB=fn(),CB=Bs(),xB=Ns(),Qs=Ds(),PB=L0(),Do=st(),M0=To().fastKey,j0=wn(),F0=j0.set,xp=j0.getterFor;B0.exports={getConstructor:function(e,t,r,n){var i=e(function(c,d){AB(c,o),F0(c,{type:t,index:q0(null),first:null,last:null,size:0}),Do||(c.size=0),kB(d)||CB(d,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=xp(t),s=function(c,d,u){var p=a(c),f=l(c,d),h,g;return f?f.value=u:(p.last=f={index:g=M0(d,!0),key:d,value:u,previous:h=p.last,next:null,removed:!1},p.first||(p.first=f),h&&(h.next=f),Do?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 U0(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=q0(null),Do?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,h=p.previous;delete u.index[p.index],p.removed=!0,h&&(h.next=f),f&&(f.previous=h),u.first===p&&(u.first=f),u.last===p&&(u.last=h),Do?u.size--:d.size--}return!!p},forEach:function(d){for(var u=a(this),p=EB(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)}}),U0(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)}}),Do&&IB(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=xp(t),o=xp(n);xB(e,t,function(a,s){F0(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,Qs(void 0,!0)):Qs(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},r?"entries":"values",!r,!0),PB(t)}}});var J0=m(()=>{"use strict";var TB=yp(),RB=G0();TB("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},RB)});var H0=m(()=>{"use strict";J0()});var Wr=m((kZ,$0)=>{"use strict";var OB=lo(),NB=TypeError;$0.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 NB(OB(e)+" is not a set")}});var W0=m((CZ,V0)=>{"use strict";V0.exports=function(e,t){return t===1?function(r,n){return r[e](n)}:function(r,n,i){return r[e](n,i)}}});var zr=m((xZ,K0)=>{"use strict";var DB=zn(),Pp=W0(),z0=DB("Set"),LB=z0.prototype;K0.exports={Set:z0,add:Pp("add",1),has:Pp("has",1),remove:Pp("delete",1),proto:LB}});var Kr=m((PZ,Y0)=>{"use strict";var qB=jt();Y0.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,o,a;!(o=qB(i,n)).done;)if(a=t(o.value),a!==void 0)return a}});var ai=m((TZ,Q0)=>{"use strict";var UB=Kr();Q0.exports=function(e,t,r){return r?UB(e.keys(),t,!0):e.forEach(t)}});var Xs=m((RZ,Z0)=>{"use strict";var X0=zr(),MB=ai(),FB=X0.Set,jB=X0.add;Z0.exports=function(e){var t=new FB;return MB(e,function(r){jB(t,r)}),t}});var si=m((OZ,eE)=>{"use strict";eE.exports=function(e){return e.size}});var rE=m((NZ,tE)=>{"use strict";tE.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var Yr=m((DZ,lE)=>{"use strict";var nE=mn(),aE=gr(),iE=jt(),BB=ho(),GB=rE(),oE="Invalid size",JB=RangeError,HB=TypeError,$B=Math.max,sE=function(e,t){this.set=e,this.size=$B(t,0),this.has=nE(e.has),this.keys=nE(e.keys)};sE.prototype={getIterator:function(){return GB(aE(iE(this.keys,this.set)))},includes:function(e){return iE(this.has,this.set,e)}};lE.exports=function(e){aE(e);var t=+e.size;if(t!==t)throw new HB(oE);var r=BB(t);if(r<0)throw new JB(oE);return new sE(e,r)}});var pE=m((LZ,dE)=>{"use strict";var VB=Wr(),uE=zr(),WB=Xs(),zB=si(),KB=Yr(),YB=ai(),QB=Kr(),XB=uE.has,cE=uE.remove;dE.exports=function(t){var r=VB(this),n=KB(t),i=WB(r);return zB(r)<=n.size?YB(r,function(o){n.includes(o)&&cE(i,o)}):QB(n.getIterator(),function(o){XB(r,o)&&cE(i,o)}),i}});var Qr=m((qZ,fE)=>{"use strict";fE.exports=function(){return!1}});var hE=m(()=>{"use strict";var ZB=ae(),eG=pE(),tG=Qr(),rG=!tG("difference",function(e){return e.size===0});ZB({target:"Set",proto:!0,real:!0,forced:rG},{difference:eG})});var vE=m((FZ,gE)=>{"use strict";var nG=Wr(),Tp=zr(),iG=si(),oG=Yr(),aG=ai(),sG=Kr(),lG=Tp.Set,mE=Tp.add,cG=Tp.has;gE.exports=function(t){var r=nG(this),n=oG(t),i=new lG;return iG(r)>n.size?sG(n.getIterator(),function(o){cG(r,o)&&mE(i,o)}):aG(r,function(o){n.includes(o)&&mE(i,o)}),i}});var yE=m(()=>{"use strict";var uG=ae(),dG=we(),pG=vE(),fG=Qr(),hG=!fG("intersection",function(e){return e.size===2&&e.has(1)&&e.has(2)})||dG(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});uG({target:"Set",proto:!0,real:!0,forced:hG},{intersection:pG})});var _E=m((GZ,bE)=>{"use strict";var mG=Wr(),gG=zr().has,vG=si(),yG=Yr(),bG=ai(),_G=Kr(),wG=Fs();bE.exports=function(t){var r=mG(this),n=yG(t);if(vG(r)<=n.size)return bG(r,function(o){if(n.includes(o))return!1},!0)!==!1;var i=n.getIterator();return _G(i,function(o){if(gG(r,o))return wG(i,"normal",!1)})!==!1}});var wE=m(()=>{"use strict";var SG=ae(),IG=_E(),EG=Qr(),AG=!EG("isDisjointFrom",function(e){return!e});SG({target:"Set",proto:!0,real:!0,forced:AG},{isDisjointFrom:IG})});var IE=m(($Z,SE)=>{"use strict";var kG=Wr(),CG=si(),xG=ai(),PG=Yr();SE.exports=function(t){var r=kG(this),n=PG(t);return CG(r)>n.size?!1:xG(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var EE=m(()=>{"use strict";var TG=ae(),RG=IE(),OG=Qr(),NG=!OG("isSubsetOf",function(e){return e});TG({target:"Set",proto:!0,real:!0,forced:NG},{isSubsetOf:RG})});var kE=m((zZ,AE)=>{"use strict";var DG=Wr(),LG=zr().has,qG=si(),UG=Yr(),MG=Kr(),FG=Fs();AE.exports=function(t){var r=DG(this),n=UG(t);if(qG(r)<n.size)return!1;var i=n.getIterator();return MG(i,function(o){if(!LG(r,o))return FG(i,"normal",!1)})!==!1}});var CE=m(()=>{"use strict";var jG=ae(),BG=kE(),GG=Qr(),JG=!GG("isSupersetOf",function(e){return!e});jG({target:"Set",proto:!0,real:!0,forced:JG},{isSupersetOf:BG})});var PE=m((QZ,xE)=>{"use strict";var HG=Wr(),Rp=zr(),$G=Xs(),VG=Yr(),WG=Kr(),zG=Rp.add,KG=Rp.has,YG=Rp.remove;xE.exports=function(t){var r=HG(this),n=VG(t).getIterator(),i=$G(r);return WG(n,function(o){KG(r,o)?YG(i,o):zG(i,o)}),i}});var TE=m(()=>{"use strict";var QG=ae(),XG=PE(),ZG=Qr();QG({target:"Set",proto:!0,real:!0,forced:!ZG("symmetricDifference")},{symmetricDifference:XG})});var OE=m((eee,RE)=>{"use strict";var eJ=Wr(),tJ=zr().add,rJ=Xs(),nJ=Yr(),iJ=Kr();RE.exports=function(t){var r=eJ(this),n=nJ(t).getIterator(),i=rJ(r);return iJ(n,function(o){tJ(i,o)}),i}});var NE=m(()=>{"use strict";var oJ=ae(),aJ=OE(),sJ=Qr();oJ({target:"Set",proto:!0,real:!0,forced:!sJ("union")},{union:aJ})});var Lo=m((nee,DE)=>{"use strict";var lJ=ti(),cJ=String;DE.exports=function(e){if(lJ(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return cJ(e)}});var ME=m((iee,UE)=>{"use strict";var Op=xe(),uJ=ho(),dJ=Lo(),pJ=hn(),fJ=Op("".charAt),LE=Op("".charCodeAt),hJ=Op("".slice),qE=function(e){return function(t,r){var n=dJ(pJ(t)),i=uJ(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=LE(n,i),a<55296||a>56319||i+1===o||(s=LE(n,i+1))<56320||s>57343?e?fJ(n,i):a:e?hJ(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};UE.exports={codeAt:qE(!1),charAt:qE(!0)}});var GE=m(()=>{"use strict";var mJ=ME().charAt,gJ=Lo(),jE=wn(),vJ=Ns(),FE=Ds(),BE="String Iterator",yJ=jE.set,bJ=jE.getterFor(BE);vJ(String,"String",function(e){yJ(this,{type:BE,string:gJ(e),index:0})},function(){var t=bJ(this),r=t.string,n=t.index,i;return n>=r.length?FE(void 0,!0):(i=mJ(r,n),t.index+=i.length,FE(i,!1))})});var HE=m((see,JE)=>{"use strict";qs();dp();H0();hE();yE();wE();EE();CE();TE();NE();GE();var _J=Yt();JE.exports=_J.Set});var VE=m((lee,$E)=>{"use strict";var wJ=HE();Ip();$E.exports=wJ});var zE=m((cee,WE)=>{WE.exports=VE()});var YE=m(KE=>{"use strict";KE.f=Object.getOwnPropertySymbols});var eA=m((dee,ZE)=>{"use strict";var QE=st(),SJ=xe(),IJ=jt(),EJ=we(),Np=Zd(),AJ=YE(),kJ=Yu(),CJ=Yn(),xJ=us(),li=Object.assign,XE=Object.defineProperty,PJ=SJ([].concat);ZE.exports=!li||EJ(function(){if(QE&&li({b:1},li(XE({},"a",{enumerable:!0,get:function(){XE(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}),li({},e)[r]!==7||Np(li({},t)).join("")!==n})?function(t,r){for(var n=CJ(t),i=arguments.length,o=1,a=AJ.f,s=kJ.f;i>o;)for(var l=xJ(arguments[o++]),c=a?PJ(Np(l),a(l)):Np(l),d=c.length,u=0,p;d>u;)p=c[u++],(!QE||IJ(s,l,p))&&(n[p]=l[p]);return n}:li});var rA=m(()=>{"use strict";var TJ=ae(),tA=eA();TJ({target:"Object",stat:!0,arity:2,forced:Object.assign!==tA},{assign:tA})});var iA=m((hee,nA)=>{"use strict";rA();var RJ=Yt();nA.exports=RJ.Object.assign});var aA=m((mee,oA)=>{"use strict";var OJ=iA();oA.exports=OJ});var lA=m((gee,sA)=>{sA.exports=aA()});var Dp=m((vee,cA)=>{"use strict";cA.exports=`
22
- \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var pA=m((yee,dA)=>{"use strict";var NJ=xe(),DJ=hn(),LJ=Lo(),qp=Dp(),uA=NJ("".replace),qJ=RegExp("^["+qp+"]+"),UJ=RegExp("(^|[^"+qp+"])["+qp+"]+$"),Lp=function(e){return function(t){var r=LJ(DJ(t));return e&1&&(r=uA(r,qJ,"")),e&2&&(r=uA(r,UJ,"$1")),r}};dA.exports={start:Lp(1),end:Lp(2),trim:Lp(3)}});var gA=m((bee,mA)=>{"use strict";var MJ=zd().PROPER,FJ=we(),fA=Dp(),hA="\u200B\x85\u180E";mA.exports=function(e){return FJ(function(){return!!fA[e]()||hA[e]()!==hA||MJ&&fA[e].name!==e})}});var vA=m(()=>{"use strict";var jJ=ae(),BJ=pA().trim,GJ=gA();jJ({target:"String",proto:!0,forced:GJ("trim")},{trim:function(){return BJ(this)}})});var bA=m((See,yA)=>{"use strict";vA();var JJ=Rt();yA.exports=JJ("String","trim")});var wA=m((Iee,_A)=>{"use strict";var HJ=at(),$J=bA(),Up=String.prototype;_A.exports=function(e){var t=e.trim;return typeof e=="string"||e===Up||HJ(Up,e)&&t===Up.trim?$J:t}});var IA=m((Eee,SA)=>{"use strict";var VJ=wA();SA.exports=VJ});var AA=m((Aee,EA)=>{EA.exports=IA()});var xA=m(()=>{"use strict";var WJ=ae(),kA=mo(),zJ=Sd(),KJ=Le(),CA=Kd(),YJ=ei(),QJ=Jr(),XJ=Cd(),ZJ=et(),e2=vo(),t2=_o(),r2=e2("slice"),n2=ZJ("species"),Mp=Array,i2=Math.max;WJ({target:"Array",proto:!0,forced:!r2},{slice:function(t,r){var n=QJ(this),i=YJ(n),o=CA(t,i),a=CA(r===void 0?i:r,i),s,l,c;if(kA(n)&&(s=n.constructor,zJ(s)&&(s===Mp||kA(s.prototype))?s=void 0:KJ(s)&&(s=s[n2],s===null&&(s=void 0)),s===Mp||s===void 0))return t2(n,o,a);for(l=new(s===void 0?Mp:s)(i2(a-o,0)),c=0;o<a;o++,c++)o in n&&XJ(l,c,n[o]);return l.length=c,l}})});var TA=m((xee,PA)=>{"use strict";xA();var o2=Rt();PA.exports=o2("Array","slice")});var OA=m((Pee,RA)=>{"use strict";var a2=at(),s2=TA(),Fp=Array.prototype;RA.exports=function(e){var t=e.slice;return e===Fp||a2(Fp,e)&&t===Fp.slice?s2:t}});var DA=m((Tee,NA)=>{"use strict";var l2=OA();NA.exports=l2});var qA=m((Ree,LA)=>{LA.exports=DA()});var jp=x(()=>{});var MA=m((Nee,UA)=>{"use strict";var c2=Le(),u2=mr(),d2=et(),p2=d2("match");UA.exports=function(e){var t;return c2(e)&&((t=e[p2])!==void 0?!!t:u2(e)==="RegExp")}});var jA=m((Dee,FA)=>{"use strict";var f2=MA(),h2=TypeError;FA.exports=function(e){if(f2(e))throw new h2("The method doesn't accept regular expressions");return e}});var GA=m((Lee,BA)=>{"use strict";var m2=et(),g2=m2("match");BA.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[g2]=!1,"/./"[e](t)}catch(n){}}return!1}});var $A=m(()=>{"use strict";var v2=ae(),y2=ao(),b2=fd().f,_2=bd(),JA=Lo(),w2=jA(),S2=hn(),I2=GA(),E2=Kn(),A2=y2("".slice),k2=Math.min,HA=I2("startsWith"),C2=!E2&&!HA&&!!function(){var e=b2(String.prototype,"startsWith");return e&&!e.writable}();v2({target:"String",proto:!0,forced:!C2&&!HA},{startsWith:function(t){var r=JA(S2(this));w2(t);var n=_2(k2(arguments.length>1?arguments[1]:void 0,r.length)),i=JA(t);return A2(r,n,n+i.length)===i}})});var WA=m((Mee,VA)=>{"use strict";$A();var x2=Rt();VA.exports=x2("String","startsWith")});var KA=m((Fee,zA)=>{"use strict";var P2=at(),T2=WA(),Bp=String.prototype;zA.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===Bp||P2(Bp,e)&&t===Bp.startsWith?T2:t}});var QA=m((jee,YA)=>{"use strict";var R2=KA();YA.exports=R2});var ZA=m((Bee,XA)=>{XA.exports=QA()});var ik=m((Gee,nk)=>{"use strict";var tk=xe(),O2=mn(),N2=Le(),D2=wt(),ek=_o(),L2=Wn(),rk=Function,q2=tk([].concat),U2=tk([].join),Gp={},M2=function(e,t,r){if(!D2(Gp,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";Gp[t]=rk("C,a","return new C("+U2(n,",")+")")}return Gp[t](e,r)};nk.exports=L2?rk.bind:function(t){var r=O2(this),n=r.prototype,i=ek(arguments,1),o=function(){var s=q2(i,ek(arguments));return this instanceof o?M2(r,s.length,s):r.apply(t,s)};return N2(n)&&(o.prototype=n),o}});var ak=m(()=>{"use strict";var F2=ae(),ok=ik();F2({target:"Function",proto:!0,forced:Function.bind!==ok},{bind:ok})});var lk=m(($ee,sk)=>{"use strict";ak();var j2=Rt();sk.exports=j2("Function","bind")});var uk=m((Vee,ck)=>{"use strict";var B2=at(),G2=lk(),Jp=Function.prototype;ck.exports=function(e){var t=e.bind;return e===Jp||B2(Jp,e)&&t===Jp.bind?G2:t}});var pk=m((Wee,dk)=>{"use strict";var J2=uk();dk.exports=J2});var hk=m((zee,fk)=>{fk.exports=pk()});function vl(e,t){Pe.__h&&Pe.__h(ve,e,Go||t),Go=0;var r=ve.__H||(ve.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function nr(e){return Go=1,H2(rC,e)}function H2(e,t,r){var n=vl(pi++,2);if(n.t=e,!n.__c&&(n.__=[rC(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=ve,!ve.__f)){var i=function(s,l,c){var d;if(!n.__c.__H)return!0;var u=(0,df.default)(d=n.__c.__H.__).call(d,function(f){return!!f.__c});if((0,Qk.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,qe.default)(u).call(u,function(f){if(f.__N){var h=f.__[0];f.__=f.__N,f.__N=void 0,h!==f.__[0]&&(p=!0)}}),o&&o.call(this,s,l,c)||p};ve.__f=!0;var o=ve.shouldComponentUpdate,a=ve.componentWillUpdate;ve.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)},ve.shouldComponentUpdate=i}return n.__N||n.__}function In(e,t){var r=vl(pi++,3);!Pe.__s&&tC(r.__H,t)&&(r.__=e,r.u=t,ve.__H.__h.push(r))}function Mo(e){return Go=5,Sr(function(){return{current:e}},[])}function Sr(e,t){var r=vl(pi++,7);return tC(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Ot(e,t){return Go=8,Sr(function(){return e},t)}function $2(e){var t=ve.context[e.__c],r=vl(pi++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(ve)),t.props.value):e.__}function V2(){for(var e;e=eC.shift();)if(e.__P&&e.__H)try{var t,r;(0,qe.default)(t=e.__H.__h).call(t,nl),(0,qe.default)(r=e.__H.__h).call(r,Xp),e.__H.__h=[]}catch(n){e.__H.__h=[],Pe.__e(n,e.__v)}}function W2(e){var t,r=function(){clearTimeout(n),Sk&&cancelAnimationFrame(t),(0,rr.default)(e)},n=(0,rr.default)(r,100);Sk&&(t=requestAnimationFrame(r))}function nl(e){var t=ve,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ve=t}function Xp(e){var t=ve;e.__c=e.__(),ve=t}function tC(e,t){return!e||e.length!==t.length||(0,dl.default)(t).call(t,function(r,n){return r!==e[n]})}function rC(e,t){return typeof t=="function"?t(e):t}function z2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Zp(){throw new Error("setTimeout has not been defined")}function ef(){throw new Error("clearTimeout has not been defined")}function iC(e){if(Qt===rr.default)return(0,rr.default)(e,0);if((Qt===Zp||!Qt)&&rr.default)return Qt=rr.default,(0,rr.default)(e,0);try{return Qt(e,0)}catch(t){try{return Qt.call(null,e,0)}catch(r){return Qt.call(this,e,0)}}}function K2(e){if(Xt===clearTimeout)return clearTimeout(e);if((Xt===ef||!Xt)&&clearTimeout)return Xt=clearTimeout,clearTimeout(e);try{return Xt(e)}catch(t){try{return Xt.call(null,e)}catch(r){return Xt.call(this,e)}}}function Y2(){!ci||!Zr||(ci=!1,Zr.length?wr=(0,gl.default)(Zr).call(Zr,wr):il=-1,wr.length&&oC())}function oC(){if(!ci){var e=iC(Y2);ci=!0;for(var t=wr.length;t;){for(Zr=wr,wr=[];++il<t;)Zr&&Zr[il].run();il=-1,t=wr.length}Zr=null,ci=!1,K2(e)}}function aC(e,t){this.fun=e,this.array=t}function Er(){}function Z2(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 eH(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 Ve(e,0)^45?(((t<<2^Ve(e,0))<<2^Ve(e,1))<<2^Ve(e,2))<<2^Ve(e,3):0}function cC(e){return(0,hf.default)(e).call(e)}function oH(e,t){return(e=t.exec(e))?e[0]:e}function re(e,t,r){return e.replace(t,r)}function tf(e,t){return(0,Ir.default)(e).call(e,t)}function Ve(e,t){return e.charCodeAt(t)|0}function Jo(e,t,r){return(0,mf.default)(e).call(e,t,r)}function Zt(e){return e.length}function bf(e){return e.length}function Zs(e,t){return t.push(e),e}function aH(e,t){return(0,Bo.default)(e).call(e,t).join("")}function _l(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:bl,column:fi,length:a,return:""}}function qo(e,t){return nH(_l("",null,null,"",null,null,0),e,{length:-e.length},t)}function sH(){return Te}function lH(){return Te=dt>0?Ve(mi,--dt):0,fi--,Te===10&&(fi=1,bl--),Te}function St(){return Te=dt<uC?Ve(mi,dt++):0,fi++,Te===10&&(fi=1,bl++),Te}function ir(){return Ve(mi,dt)}function ol(){return dt}function Ko(e,t){return Jo(mi,e,t)}function Ho(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 dC(e){return bl=fi=1,uC=Zt(mi=e),dt=0,[]}function pC(e){return mi="",e}function al(e){return cC(Ko(dt-1,rf(e===91?e+2:e===40?e+1:e)))}function cH(e){for(;(Te=ir())&&Te<33;)St();return Ho(e)>2||Ho(Te)>3?"":" "}function uH(e,t){for(;--t&&St()&&!(Te<48||Te>102||Te>57&&Te<65||Te>70&&Te<97););return Ko(e,ol()+(t<6&&ir()==32&&St()==32))}function rf(e){for(;St();)switch(Te){case e:return dt;case 34:case 39:e!==34&&e!==39&&rf(Te);break;case 40:e===41&&rf(e);break;case 92:St();break}return dt}function dH(e,t){for(;St()&&e+Te!==57&&!(e+Te===84&&ir()===47););return"/*"+Ko(t,dt-1)+"*"+yl(e===47?e:St())}function pH(e){for(;!Ho(ir());)St();return Ko(e,dt)}function fH(e){return pC(sl("",null,null,null,[""],e=dC(e),0,[0],e))}function sl(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,h=0,g=1,b=1,y=1,_=0,S="",E=i,P=o,C=n,k=S;b;)switch(h=_,_=St()){case 40:if(h!=108&&Ve(k,u-1)==58){tf(k+=re(al(_),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:k+=al(_);break;case 9:case 10:case 13:case 32:k+=cH(h);break;case 92:k+=uH(ol()-1,7);continue;case 47:switch(ir()){case 42:case 47:Zs(hH(dH(St(),ol()),t,r),l);break;default:k+="/"}break;case 123*g:s[c++]=Zt(k)*y;case 125*g:case 59:case 0:switch(_){case 0:case 125:b=0;case 59+d:f>0&&Zt(k)-u&&Zs(f>32?Ek(k+";",n,r,u-1):Ek(re(k," ","")+";",n,r,u-2),l);break;case 59:k+=";";default:if(Zs(C=Ik(k,t,r,c,d,i,s,S,E=[],P=[],u),o),_===123)if(d===0)sl(k,t,C,C,E,o,u,s,P);else switch(p===99&&Ve(k,3)===110?100:p){case 100:case 109:case 115:sl(e,C,C,n&&Zs(Ik(e,C,C,0,0,i,s,S,i,E=[],u),P),i,P,u,s,n?E:P);break;default:sl(k,C,C,C,[""],P,0,s,P)}}c=d=f=0,g=y=1,S=k="",u=a;break;case 58:u=1+Zt(k),f=h;default:if(g<1){if(_==123)--g;else if(_==125&&g++==0&&lH()==125)continue}switch(k+=yl(_),_*g){case 38:y=d>0?1:(k+="\f",-1);break;case 44:s[c++]=(Zt(k)-1)*y,y=1;break;case 64:ir()===45&&(k+=al(St())),p=ir(),d=u=Zt(S=k+=pH(ol())),_++;break;case 45:h===45&&Zt(k)==2&&(g=0)}}return o}function Ik(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=bf(p),h=0,g=0,b=0;h<n;++h)for(var y=0,_=Jo(e,u+1,u=rH(g=a[h])),S=e;y<f;++y)(S=cC(g>0?p[y]+" "+_:re(_,/&\f/g,p[y])))&&(l[b++]=S);return _l(e,t,r,i===0?vf:s,l,c,d)}function hH(e,t,r){return _l(e,t,r,gf,yl(sH()),Jo(e,2,-2),0)}function Ek(e,t,r,n){return _l(e,t,r,yf,Jo(e,0,n),Jo(e,n+1,-1),n)}function ui(e,t){for(var r="",n=bf(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:case yf:return e.return=e.return||e.value;case gf:return"";case lC:return e.return=e.value+"{"+ui(e.children,n)+"}";case vf:e.value=e.props.join(",")}return Zt(r=ui(e.children,n))?e.return=e.value+"{"+r+"}":""}function gH(e){var t=bf(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 vH(e){return function(t){t.root||(t=t.return)&&e(t)}}function hC(e,t){switch(iH(e,t)){case 5103:return Y+"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 Y+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Y+e+fl+e+tt+e+e;case 6828:case 4268:return Y+e+tt+e+e;case 6165:return Y+e+tt+"flex-"+e+e;case 5187:return Y+e+re(e,/(\w+).+(:[^]+)/,Y+"box-$1$2"+tt+"flex-$1$2")+e;case 5443:return Y+e+tt+"flex-item-"+re(e,/flex-|-self/,"")+e;case 4675:return Y+e+tt+"flex-line-pack"+re(e,/align-content|flex-|-self/,"")+e;case 5548:return Y+e+tt+re(e,"shrink","negative")+e;case 5292:return Y+e+tt+re(e,"basis","preferred-size")+e;case 6060:return Y+"box-"+re(e,"-grow","")+Y+e+tt+re(e,"grow","positive")+e;case 4554:return Y+re(e,/([^-])(transform)/g,"$1"+Y+"$2")+e;case 6187:return re(re(re(e,/(zoom-|grab)/,Y+"$1"),/(image-set)/,Y+"$1"),e,"")+e;case 5495:case 3959:return re(e,/(image-set\([^]*)/,Y+"$1$`$1");case 4968:return re(re(e,/(.+:)(flex-)?(.*)/,Y+"box-pack:$3"+tt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Y+e+e;case 4095:case 3583:case 4068:case 2532:return re(e,/(.+)-inline(.+)/,Y+"$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(Zt(e)-1-t>6)switch(Ve(e,t+1)){case 109:if(Ve(e,t+4)!==45)break;case 102:return re(e,/(.+:)(.+)-([^]+)/,"$1"+Y+"$2-$3$1"+fl+(Ve(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~tf(e,"stretch")?hC(re(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ve(e,t+1)!==115)break;case 6444:switch(Ve(e,Zt(e)-3-(~tf(e,"!important")&&10))){case 107:return re(e,":",":"+Y)+e;case 101:return re(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Y+(Ve(e,14)===45?"inline-":"")+"box$3$1"+Y+"$2$3$1"+tt+"$2box$3")+e}break;case 5936:switch(Ve(e,t+11)){case 114:return Y+e+tt+re(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Y+e+tt+re(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Y+e+tt+re(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Y+e+tt+e+e}return e}function gC(){if(Ck)return el.exports;Ck=1;let e=gC();return el.exports={default:e},el.exports.default=e,el.exports}function $o(e,t,r){var n,i="";return(0,qe.default)(n=r.split(" ")).call(n,function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}function RH(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 NH(e){var t=(0,Xk.default)(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function Vo(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 er={name:i.name,styles:i.styles,next:er},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)er={name:a.name,styles:a.styles,next:er},a=a.next;var s=o.styles+";";return s}return qH(e,t,r)}case"function":{if(e!==void 0){var l=er,c=r(e);return er=l,Vo(e,t,c)}break}}var d=r;if(t==null)return d;var u=t[d];return u!==void 0?u:d}function qH(e,t,r){var n="";if((0,jo.default)(r))for(var i=0;i<r.length;i++)n+=Vo(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]+"}":xk(s)&&(n+=$p(o)+":"+Pk(o,s)+";")}else if((0,jo.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)xk(a[l])&&(n+=$p(o)+":"+Pk(o,a[l])+";");else{var c=Vo(e,t,a);switch(o){case"animation":case"animationName":{n+=$p(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function en(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="";er=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=Vo(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Vo(r,t,e[s]),n){var l=o;i+=l[s]}Tk.lastIndex=0;for(var c="",d;(d=Tk.exec(i))!==null;)c+="-"+d[1];var u=RH(i)+c;return{name:u,styles:i,next:er}}function L(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return en(t)}function WH(e,t,r){var n=[],i=$o(e,n,r);return n.length<2?r:i+t(n)}function w(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 D.vnode&&D.vnode(c),c}function Yo(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=nr(e());return In(()=>{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 h3(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 CC(e){let t=window.getComputedStyle(document.body).transform,r="";t&&t!=="none"&&(r=h3(t)),e.style.transform=r,e.style.transformOrigin="0 0"}function m3(e){let t=()=>CC(e);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}}function y3(s){var l=s,{elementTag:e="Image",src:t="",children:r,handleExposure:n,className:i,imgStyle:o}=l,a=Qe(l,["elementTag","src","children","handleExposure","className","imgStyle"]);let c=v3(()=>{t&&n()});return e==="Image"?w("div",{className:i,style:{borderRadius:"8px"},children:Ze("img",B(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||{})}))}):w("div",B(T({},a),{ref:c,className:i,children:r}))}function b3(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?Ze(i.type,B(T({},i.props),{style:B(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?Ze(e.type,B(T({},e.props),{style:B(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 E3(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 Gk(e,t,r){return Sl.call(t,"css")?w(If,wC(e,t),r):w(e,t,r)}function T3(e,t,r){return Sl.call(t,"css")?w(If,wC(e,t),r):w(e,t,r)}function lf({children:e,values:t={},style:r}){let n=e.split(/({{\s*\w+\s*}})/g);return w("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?w(He,{children:t[s]},o):null}return w(He,{children:i},o)})})}function N3({src:e,alt:t="",width:r=120,height:n=120,top:i="-60px",style:o={}}){let[a,s]=nr(!1);return a?null:w("div",{style:T({position:"absolute",top:i,left:"50%",transform:"translateX(-50%)",zIndex:10,width:r,height:n},o),children:w("img",{src:e,alt:t,width:r,height:n,style:{display:"block",width:"100%",height:"100%",objectFit:"contain"},onError:()=>s(!0)})})}function q3({children:e,style:t}){return w("div",{style:`${D3.styles} ${t}`,children:[e,w("svg",{style:`${L3.styles} `,width:"18",height:"10",viewBox:"0 0 18 10",children:[w("polygon",{points:"9,10 0,1 18,1",fill:"#ffffff52"}),w("polygon",{points:"9,9 2,1 16,1",fill:"#4F396D"})]})]})}function Q3(e,t){return We(e,0)^45?(((t<<2^We(e,0))<<2^We(e,1))<<2^We(e,2))<<2^We(e,3):0}function BC(e){return(0,hf.default)(e).call(e)}function X3(e,t){return(e=t.exec(e))?e[0]:e}function X(e,t,r){return e.replace(t,r)}function cf(e,t){return(0,Ir.default)(e).call(e,t)}function We(e,t){return e.charCodeAt(t)|0}function Wo(e,t,r){return(0,mf.default)(e).call(e,t,r)}function tr(e){return e.length}function xf(e){return e.length}function rl(e,t){return t.push(e),e}function Z3(e,t){return(0,Bo.default)(e).call(e,t).join("")}function xl(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Cl,column:hi,length:a,return:""}}function Uo(e,t){return Y3(xl("",null,null,"",null,null,0),e,{length:-e.length},t)}function e4(){return Re}function t4(){return Re=pt>0?We(yi,--pt):0,hi--,Re===10&&(hi=1,Cl--),Re}function It(){return Re=pt<GC?We(yi,pt++):0,hi++,Re===10&&(hi=1,Cl++),Re}function or(){return We(yi,pt)}function ll(){return pt}function Qo(e,t){return Wo(yi,e,t)}function zo(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 JC(e){return Cl=hi=1,GC=tr(yi=e),pt=0,[]}function HC(e){return yi="",e}function cl(e){return BC(Qo(pt-1,uf(e===91?e+2:e===40?e+1:e)))}function r4(e){for(;(Re=or())&&Re<33;)It();return zo(e)>2||zo(Re)>3?"":" "}function n4(e,t){for(;--t&&It()&&!(Re<48||Re>102||Re>57&&Re<65||Re>70&&Re<97););return Qo(e,ll()+(t<6&&or()==32&&It()==32))}function uf(e){for(;It();)switch(Re){case e:return pt;case 34:case 39:e!==34&&e!==39&&uf(Re);break;case 40:e===41&&uf(e);break;case 92:It();break}return pt}function i4(e,t){for(;It()&&e+Re!==57&&!(e+Re===84&&or()===47););return"/*"+Qo(t,pt-1)+"*"+kl(e===47?e:It())}function o4(e){for(;!zo(or());)It();return Qo(e,pt)}function a4(e){return HC(ul("",null,null,null,[""],e=JC(e),0,[0],e))}function ul(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,h=0,g=1,b=1,y=1,_=0,S="",E=i,P=o,C=n,k=S;b;)switch(h=_,_=It()){case 40:if(h!=108&&We(k,u-1)==58){cf(k+=X(cl(_),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:k+=cl(_);break;case 9:case 10:case 13:case 32:k+=r4(h);break;case 92:k+=n4(ll()-1,7);continue;case 47:switch(or()){case 42:case 47:rl(s4(i4(It(),ll()),t,r),l);break;default:k+="/"}break;case 123*g:s[c++]=tr(k)*y;case 125*g:case 59:case 0:switch(_){case 0:case 125:b=0;case 59+d:y==-1&&(k=X(k,/\f/g,"")),f>0&&tr(k)-u&&rl(f>32?Hk(k+";",n,r,u-1):Hk(X(k," ","")+";",n,r,u-2),l);break;case 59:k+=";";default:if(rl(C=Jk(k,t,r,c,d,i,s,S,E=[],P=[],u),o),_===123)if(d===0)ul(k,t,C,C,E,o,u,s,P);else switch(p===99&&We(k,3)===110?100:p){case 100:case 108:case 109:case 115:ul(e,C,C,n&&rl(Jk(e,C,C,0,0,i,s,S,i,E=[],u),P),i,P,u,s,n?E:P);break;default:ul(k,C,C,C,[""],P,0,s,P)}}c=d=f=0,g=y=1,S=k="",u=a;break;case 58:u=1+tr(k),f=h;default:if(g<1){if(_==123)--g;else if(_==125&&g++==0&&t4()==125)continue}switch(k+=kl(_),_*g){case 38:y=d>0?1:(k+="\f",-1);break;case 44:s[c++]=(tr(k)-1)*y,y=1;break;case 64:or()===45&&(k+=cl(It())),p=or(),d=u=tr(S=k+=o4(ll())),_++;break;case 45:h===45&&tr(k)==2&&(g=0)}}return o}function Jk(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=xf(p),h=0,g=0,b=0;h<n;++h)for(var y=0,_=Wo(e,u+1,u=K3(g=a[h])),S=e;y<f;++y)(S=BC(g>0?p[y]+" "+_:X(_,/&\f/g,p[y])))&&(l[b++]=S);return xl(e,t,r,i===0?kf:s,l,c,d)}function s4(e,t,r){return xl(e,t,r,FC,kl(e4()),Wo(e,2,-2),0)}function Hk(e,t,r,n){return xl(e,t,r,Cf,Wo(e,0,n),Wo(e,n+1,-1),n)}function di(e,t){for(var r="",n=xf(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function l4(e,t,r,n){switch(e.type){case z3:if(e.children.length)break;case W3:case Cf:return e.return=e.return||e.value;case FC:return"";case jC:return e.return=e.value+"{"+di(e.children,n)+"}";case kf:e.value=e.props.join(",")}return tr(r=di(e.children,n))?e.return=e.value+"{"+r+"}":""}function c4(e){var t=xf(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 u4(e){return function(t){t.root||(t=t.return)&&e(t)}}function $C(e,t){switch(Q3(e,t)){case 5103:return Q+"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 Q+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Q+e+ml+e+rt+e+e;case 6828:case 4268:return Q+e+rt+e+e;case 6165:return Q+e+rt+"flex-"+e+e;case 5187:return Q+e+X(e,/(\w+).+(:[^]+)/,Q+"box-$1$2"+rt+"flex-$1$2")+e;case 5443:return Q+e+rt+"flex-item-"+X(e,/flex-|-self/,"")+e;case 4675:return Q+e+rt+"flex-line-pack"+X(e,/align-content|flex-|-self/,"")+e;case 5548:return Q+e+rt+X(e,"shrink","negative")+e;case 5292:return Q+e+rt+X(e,"basis","preferred-size")+e;case 6060:return Q+"box-"+X(e,"-grow","")+Q+e+rt+X(e,"grow","positive")+e;case 4554:return Q+X(e,/([^-])(transform)/g,"$1"+Q+"$2")+e;case 6187:return X(X(X(e,/(zoom-|grab)/,Q+"$1"),/(image-set)/,Q+"$1"),e,"")+e;case 5495:case 3959:return X(e,/(image-set\([^]*)/,Q+"$1$`$1");case 4968:return X(X(e,/(.+:)(flex-)?(.*)/,Q+"box-pack:$3"+rt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Q+e+e;case 4095:case 3583:case 4068:case 2532:return X(e,/(.+)-inline(.+)/,Q+"$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(tr(e)-1-t>6)switch(We(e,t+1)){case 109:if(We(e,t+4)!==45)break;case 102:return X(e,/(.+:)(.+)-([^]+)/,"$1"+Q+"$2-$3$1"+ml+(We(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~cf(e,"stretch")?$C(X(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(We(e,t+1)!==115)break;case 6444:switch(We(e,tr(e)-3-(~cf(e,"!important")&&10))){case 107:return X(e,":",":"+Q)+e;case 101:return X(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Q+(We(e,14)===45?"inline-":"")+"box$3$1"+Q+"$2$3$1"+rt+"$2box$3")+e}break;case 5936:switch(We(e,t+11)){case 114:return Q+e+rt+X(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Q+e+rt+X(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Q+e+rt+X(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Q+e+rt+e+e}return e}function Vk(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Yp(e,t,r){var n=[],i=$o(e,n,r);return n.length<2?r:i+t(n)}function Kk(e){if(e==="top"){let t=0;VC.forEach((r,n)=>{let i=r.querySelector(".toast");i&&(n===0?i.style.top=`max(${Wk}px, env(safe-area-inset-top))`:i.style.top=`calc(max(${Wk}px, env(safe-area-inset-top)) + ${t}px)`,t+=i.offsetHeight+zk)})}else if(e==="center"){let t=0;WC.forEach(r=>{let n=r.querySelector(".toast");n&&(n.style.top=`calc(50% + ${t}px)`,t+=n.offsetHeight+zk)})}}function En(){let e=!1,t=null,r=0,n=new Set,i=a=>v(this,null,function*(){let s=e;if(r++,e=!0,!s)try{let{iframe:l}=yield Fo.acquire(),c=l.contentDocument;if(c)t=c.createElement("div"),t.id="loading-root",c.body.appendChild(t),Gr(w(C4,{}),t);else throw new Error("Iframe document is not available.")}catch(l){console.error("[LoadingManager] Failed to show loading:",l),r=0,e=!1,Fo.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&&(Gr(null,t),(a=t.parentNode)==null||a.removeChild(t),t=null),Fo.release()))};return{show:i,hide:o,get isLoading(){return e}}}var df,Qk,qe,gl,dl,rr,pl,jo,pf,Ir,Bo,Xk,Zk,ff,hf,mf,Zee,Qp,pi,ve,Hp,mk,Go,eC,Pe,gk,vk,yk,bk,_k,wk,Sk,nC,ke,Qt,Xt,wr,ci,Zr,il,Q2,Ue,X2,sC,tt,fl,Y,gf,vf,yf,tH,lC,rH,yl,nH,bl,fi,uC,dt,Te,mi,yH,bH,_H,Ak,wH,SH,IH,EH,AH,fC,kH,kk,CH,xH,PH,mC,el,Ck,TH,_f,wl,OH,DH,LH,vC,xk,$p,Pk,Tk,er,UH,yC,bC,Rk,Sl,wf,_C,Sf,Il,MH,FH,jH,BH,GH,nf,of,wC,JH,If,HH,Ok,$H,VH,zH,KH,Vp,Nk,Wp,zp,YH,Kp,QH,XH,ZH,e5,t5,r5,n5,Dk,i5,o5,a5,Lk,s5,l5,c5,qk,u5,d5,p5,Uk,f5,h5,m5,g5,v5,y5,b5,_5,w5,S5,I5,Mk,E5,A5,k5,C5,x5,P5,T5,R5,O5,N5,D5,Fk,L5,q5,U5,M5,F5,j5,B5,G5,J5,H5,$5,V5,W5,z5,K5,Y5,Q5,X5,Z5,e3,t3,r3,n3,i3,o3,a3,s3,l3,c3,u3,d3,p3,SC,IC,EC,af,f3,AC,kC,hl,Fo,jk,g3,El,v3,xC,PC,TC,_3,w3,S3,sf,I3,RC,OC,Al,Ef,gi,Bk,Xr,NC,Sn,A3,k3,C3,x3,P3,tl,DC,Af,Ie,R3,O3,D3,L3,Jt,U3,M3,LC,qC,UC,MC,tn,F3,j3,B3,G3,J3,H3,$3,V3,rt,ml,Q,FC,kf,Cf,W3,jC,z3,K3,kl,Y3,Cl,hi,GC,pt,Re,yi,d4,p4,f4,$k,h4,m4,g4,v4,y4,b4,_4,w4,S4,I4,E4,A4,Wk,zk,VC,WC,Ar,Yk,k4,C4,ete,ar=x(()=>{"use strict";Vn();df=se(Bb(),1),Qk=se(Qb(),1),qe=se(u_(),1),gl=se(A_(),1),dl=se(D_(),1),rr=se(X_(),1);Is();Is();pl=se(qw(),1),jo=se(Jw(),1),pf=se(o0(),1),Ir=se(m0(),1),Bo=se(E0(),1),Xk=se(R0(),1),Zk=se(zE(),1),ff=se(lA(),1),hf=se(AA(),1),mf=se(qA(),1);jp();jp();Zee=se(ZA(),1),Qp=se(hk(),1),Go=0,eC=[],Pe=D,gk=Pe.__b,vk=Pe.__r,yk=Pe.diffed,bk=Pe.__c,_k=Pe.unmount,wk=Pe.__;Pe.__b=function(e){ve=null,gk&&gk(e)},Pe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),wk&&wk(e,t)},Pe.__r=function(e){var t,r,n;vk&&vk(e),pi=0;var i=(ve=e.__c).__H;i&&(Hp===ve?(i.__h=[],ve.__h=[],(0,qe.default)(t=i.__).call(t,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,qe.default)(r=i.__h).call(r,nl),(0,qe.default)(n=i.__h).call(n,Xp),i.__h=[],pi=0)),Hp=ve},Pe.diffed=function(e){var t;yk&&yk(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(eC.push(r)!==1&&mk===Pe.requestAnimationFrame||((mk=Pe.requestAnimationFrame)||W2)(V2)),(0,qe.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),Hp=ve=null},Pe.__c=function(e,t){(0,dl.default)(t).call(t,function(r){try{var n,i;(0,qe.default)(n=r.__h).call(n,nl),r.__h=(0,df.default)(i=r.__h).call(i,function(o){return!o.__||Xp(o)})}catch(o){(0,dl.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],Pe.__e(o,r.__v)}}),bk&&bk(e,t)},Pe.unmount=function(e){var t;_k&&_k(e);var r,n=e.__c;n&&n.__H&&((0,qe.default)(t=n.__H.__).call(t,function(i){try{nl(i)}catch(o){r=o}}),n.__H=void 0,r&&Pe.__e(r,n.__v))};Sk=typeof requestAnimationFrame=="function";nC={exports:{}},ke=nC.exports={};(function(){try{typeof rr.default=="function"?Qt=rr.default:Qt=Zp}catch(e){Qt=Zp}try{typeof clearTimeout=="function"?Xt=clearTimeout:Xt=ef}catch(e){Xt=ef}})();wr=[],ci=!1,il=-1;ke.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];wr.push(new aC(e,t)),wr.length===1&&!ci&&iC(oC)};aC.prototype.run=function(){this.fun.apply(null,this.array)};ke.title="browser";ke.browser=!0;ke.env={};ke.argv=[];ke.version="";ke.versions={};ke.on=Er;ke.addListener=Er;ke.once=Er;ke.off=Er;ke.removeListener=Er;ke.removeAllListeners=Er;ke.emit=Er;ke.prependListener=Er;ke.prependOnceListener=Er;ke.listeners=function(e){return[]};ke.binding=function(e){throw new Error("process.binding is not supported")};ke.cwd=function(){return"/"};ke.chdir=function(e){throw new Error("process.chdir is not supported")};ke.umask=function(){return 0};Q2=nC.exports,Ue=z2(Q2),X2=pl.default||void 0||self;sC=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,qe.default)(r).call(r,this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(eH(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=Z2(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){var r;(0,qe.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}(),tt="-ms-",fl="-moz-",Y="-webkit-",gf="comm",vf="rule",yf="decl",tH="@import",lC="@keyframes",rH=Math.abs,yl=String.fromCharCode,nH=ff.default;bl=1,fi=1,uC=0,dt=0,Te=0,mi="";yH=function(e,t,r){for(var n=0,i=0;n=i,i=ir(),n===38&&i===12&&(t[r]=1),!Ho(i);)St();return Ko(e,dt)},bH=function(e,t){var r=-1,n=44;do switch(Ho(n)){case 0:n===38&&ir()===12&&(t[r]=1),e[r]+=yH(dt-1,t,r);break;case 2:e[r]+=al(n);break;case 4:if(n===44){e[++r]=ir()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=yl(n)}while(n=St());return e},_H=function(e,t){return pC(bH(dC(e),t))},Ak=new pf.default,wH=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&&!Ak.get(r))&&!n){Ak.set(e,!0);for(var i=[],o=_H(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="")}},IH="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",EH=function(e){var t;return e.type==="comm"&&(0,Ir.default)(t=e.children).call(t,IH)>-1},AH=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(EH(l))return;break}}(0,qe.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".')})}}}},fC=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},kH=function(e,t){for(var r=e-1;r>=0;r--)if(!fC(t[r]))return!0;return!1},kk=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},CH=function(e,t,r){fC(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."),kk(e)):kH(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),kk(e)))};xH=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case yf:e.return=hC(e.value,e.length);break;case lC:return ui([qo(e,{value:re(e.value,"@","@"+Y)})],n);case vf:if(e.length)return aH(e.props,function(i){switch(oH(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ui([qo(e,{props:[re(i,/:(read-\w+)/,":"+fl+"$1")]})],n);case"::placeholder":return ui([qo(e,{props:[re(i,/:(plac\w+)/,":"+Y+"input-$1")]}),qo(e,{props:[re(i,/:(plac\w+)/,":"+fl+"$1")]}),qo(e,{props:[re(i,/:(plac\w+)/,tt+"input-$1")]})],n)}return""})}},PH=[xH],mC=function(e){var t=e.key;if(Ue.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.
23
- 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,qe.default)(Array.prototype).call(r,function(h){var g=h.getAttribute("data-emotion");(0,Ir.default)(g).call(g," ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var n=e.stylisPlugins||PH;if(Ue.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,qe.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(h){for(var g=h.getAttribute("data-emotion").split(" "),b=1;b<g.length;b++)i[g[b]]=!0;a.push(h)});var s,l=[wH,SH];Ue.env.NODE_ENV!=="production"&&l.push(AH({get compat(){return f.compat}}),CH);{var c,d=[mH,Ue.env.NODE_ENV!=="production"?function(h){h.root||(h.return?c.insert(h.return):h.value&&h.type!==gf&&c.insert(h.value+"{}"))}:vH(function(h){c.insert(h)})],u=gH((0,gl.default)(l).call(l,n,d)),p=function(h){return ui(fH(h),u)};s=function(h,g,b,y){c=b,Ue.env.NODE_ENV!=="production"&&(0,Bo.default)(g)!==void 0&&(c={insert:function(_){b.insert(_+(0,Bo.default)(g))}}),p(h?h+"{"+g.styles+"}":g.styles),y&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new sC({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},el={exports:{}};gC();TH=!0;_f=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||TH===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},wl=function(e,t,r){_f(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)}};OH={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};DH=/[A-Z]|^ms/g,LH=/_EMO_([^_]+?)_([^]*?)_EMO_/g,vC=function(e){return e.charCodeAt(1)===45},xk=function(e){return e!=null&&typeof e!="boolean"},$p=NH(function(e){return vC(e)?e:e.replace(DH,"-$&").toLowerCase()}),Pk=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(LH,function(r,n,i){return er={name:n,styles:i,next:er},n})}return OH[e]!==1&&!vC(e)&&typeof t=="number"&&t!==0?t+"px":t};Tk=/label:\s*([^\s;{]+)\s*(;|$)/g;UH=function(e){return e()},yC=Ud?Ud:!1,bC=yC||UH,Rk=yC||ri,Sl={}.hasOwnProperty,wf=pn(typeof HTMLElement<"u"?mC({key:"css"}):null);Ue.env.NODE_ENV!=="production"&&(wf.displayName="EmotionCacheContext");_C=wf.Provider,Sf=function(e){return Fd(function(t,r){var n=ii(wf);return e(t,n,r)})},Il=pn({});Ue.env.NODE_ENV!=="production"&&(Il.displayName="EmotionThemeContext");MH=function(e){var t=e.split(".");return t[t.length-1]},FH=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 MH(t[1])},jH=new Zk.default(["renderWithHooks","processChild","finishClassComponent","renderToString"]),BH=function(e){return e.replace(/\$/g,"-")},GH=function(e){if(e)for(var t=e.split(`
24
- `),r=0;r<t.length;r++){var n=FH(t[r]);if(n){if(jH.has(n))break;if(/^[A-Z]/.test(n))return BH(n)}}},nf="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",of="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",wC=function(e,t){var r,n;if(Ue.env.NODE_ENV!=="production"&&typeof t.css=="string"&&(0,Ir.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)Sl.call(t,o)&&(i[o]=t[o]);if(i[nf]=e,Ue.env.NODE_ENV!=="production"&&t.css&&(typeof t.css!="object"||typeof t.css.name!="string"||(0,Ir.default)(n=t.css.name).call(n,"-")===-1)){var a=GH(new Error().stack);a&&(i[of]=a)}return i},JH=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return _f(t,r,n),bC(function(){return wl(t,r,n)}),null},If=Sf(function(e,t,r){var n,i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[nf],a=[i],s="";typeof e.className=="string"?s=$o(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var l=en(a,void 0,ii(Il));if(Ue.env.NODE_ENV!=="production"&&(0,Ir.default)(n=l.name).call(n,"-")===-1){var c=e[of];c&&(l=en([l,"label:"+c+";"]))}s+=t.key+"-"+l.name;var d={};for(var u in e)Sl.call(e,u)&&u!=="css"&&u!==nf&&(Ue.env.NODE_ENV==="production"||u!==of)&&(d[u]=e[u]);return d.ref=r,d.className=s,Ze(He,null,Ze(JH,{cache:t,serialized:l,isStringTag:typeof o=="string"}),Ze(o,d))});Ue.env.NODE_ENV!=="production"&&(If.displayName="EmotionCssPropInternal");HH={version:"11.10.5"},Ok=!1,$H=Sf(function(e,t){Ue.env.NODE_ENV!=="production"&&!Ok&&(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?"),Ok=!0);var r=e.styles,n=en([r],void 0,ii(Il)),i=ni();return Rk(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]),Rk(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(n.next!==void 0&&wl(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});Ue.env.NODE_ENV!=="production"&&($H.displayName="EmotionGlobal");VH=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,jo.default)(o))a=e(o);else{Ue.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};zH=function(e){var t=e.cache,r=e.serializedArr;return bC(function(){for(var n=0;n<r.length;n++)wl(t,r[n],!1)}),null},KH=Sf(function(e,t){var r=!1,n=[],i=function(){if(r&&Ue.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=en(c,t.registered);return n.push(u),_f(t,u,!1),t.key+"-"+u.name},o=function(){if(r&&Ue.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 WH(t.registered,i,VH(c))},a={css:i,cx:o,theme:ii(Il)},s=e.children(a);return r=!0,Ze(He,null,Ze(zH,{cache:t,serializedArr:n}),s)});Ue.env.NODE_ENV!=="production"&&(KH.displayName="EmotionClassNames");Ue.env.NODE_ENV!=="production"&&(Vp=!0,Nk=typeof jest<"u"||typeof vi<"u",Vp&&!Nk&&(Wp=typeof pl.default<"u"?pl.default:Vp?window:X2,zp="__EMOTION_REACT_"+HH.version.split(".")[0]+"__",Wp[zp]&&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."),Wp[zp]=!0));YH=0;Kp={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"}},QH=L`
21
+ `;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}=S.viewport;document.documentElement.style.setProperty("--status-bar-height",`${s}px`),document.documentElement.style.setProperty("--navigation-bar-height",`${l}px`)},o=()=>{function s(c){return v(this,null,function*(){let d=c instanceof URL?c.href:c,u=new Promise((p,f)=>{let h=new XMLHttpRequest;h.open("GET",d),h.responseType="arraybuffer",h.addEventListener("load",()=>p(h.response)),h.addEventListener("error",f),h.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 gv=x(()=>{"use strict";H()});var vv=x(()=>{"use strict"});var yv=x(()=>{"use strict";O();bu()});var bv=x(()=>{"use strict";H()});var $n,ss=x(()=>{"use strict";vv();yv();H();bv();O();$n=new Kt});function hr(e,t){for(var r in t)e[r]=t[r];return e}function Hu(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Ze(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?ds.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 cs(e,a,n,i,null)}function cs(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?++Iv:i,__i:-1,__u:0};return i==null&&q.vnode!=null&&q.vnode(o),o}function $e(e){return e.children}function St(e,t){this.props=e,this.context=t}function Vn(e,t){if(t==null)return e.__?Vn(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"?Vn(e):null}function Tv(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 Tv(e)}}function Bu(e){(!e.__d&&(e.__d=!0)&&dn.push(e)&&!us.__r++||_v!==q.debounceRendering)&&((_v=q.debounceRendering)||Ev)(us)}function us(){for(var e,t,r,n,i,o,a,s=1;dn.length;)dn.length>s&&dn.sort(Av),e=dn.shift(),s=dn.length,e.__d&&(r=void 0,i=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=hr({},n)).__v=n.__v+1,q.vnode&&q.vnode(r),$u(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?Vn(n):i,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,Ov(o,r,a),r.__e!=i&&Tv(r)));us.__r=0}function Pv(e,t,r,n,i,o,a,s,l,c,d){var u,p,f,h,g,b,y=n&&n.__k||xv,_=t.length;for(l=N1(r,t,y,l,_),u=0;u<_;u++)(f=r.__k[u])!=null&&(p=f.__i===-1?oo:y[f.__i]||oo,f.__i=u,b=$u(e,f,p,i,o,a,s,l,c,d),h=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&Vu(p.ref,null,f),d.push(f.ref,f.__c||h,f)),g==null&&h!=null&&(g=h),4&f.__u||p.__k===f.__k?l=Rv(f,l,e):typeof f.type=="function"&&b!==void 0?l=b:h&&(l=h.nextSibling),f.__u&=-7);return r.__e=g,l}function N1(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?cs(null,a,null,null,null):ao(a)?cs($e,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?cs(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=D1(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=Vn(s)),Dv(s,s));return n}function Rv(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=Rv(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=Vn(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function so(e,t){return t=t||[],e==null||typeof e=="boolean"||(ao(e)?e.some(function(r){so(r,t)}):t.push(e)),t}function D1(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 wv(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||O1.test(t)?r:r+"px"}function ls(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||wv(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||wv(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(Cv,"$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=Ju,e.addEventListener(t,o?ju:Fu,o)):e.removeEventListener(t,o?ju:Fu,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 Sv(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=Ju++;else if(t.u<r.t)return;return r(q.event?q.event(t):t)}}}function $u(e,t,r,n,i,o,a,s,l,c){var d,u,p,f,h,g,b,y,_,I,E,T,k,C,G,ce,N,R=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(l=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=q.__b)&&d(t);e:if(typeof R=="function")try{if(y=t.props,_="prototype"in R&&R.prototype.render,I=(d=R.contextType)&&n[d.__c],E=d?I?I.props.value:d.__:n,r.__c?b=(u=t.__c=r.__c).__=u.__E:(_?t.__c=u=new R(y,E):(t.__c=u=new St(y,E),u.constructor=R,u.render=q1),I&&I.sub(u),u.props=y,u.state||(u.state={}),u.context=E,u.__n=n,p=u.__d=!0,u.__h=[],u._sb=[]),_&&u.__s==null&&(u.__s=u.state),_&&R.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=hr({},u.__s)),hr(u.__s,R.getDerivedStateFromProps(y,u.__s))),f=u.props,h=u.state,u.__v=t,p)_&&R.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),_&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(_&&R.getDerivedStateFromProps==null&&y!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(y,E),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(y,u.__s,E)===!1||t.__v==r.__v)){for(t.__v!=r.__v&&(u.props=y,u.state=u.__s,u.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(D){D&&(D.__=t)}),T=0;T<u._sb.length;T++)u.__h.push(u._sb[T]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(y,u.__s,E),_&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,h,g)})}if(u.context=E,u.props=y,u.__P=e,u.__e=!1,k=q.__r,C=0,_){for(u.state=u.__s,u.__d=!1,k&&k(t),d=u.render(u.props,u.state,u.context),G=0;G<u._sb.length;G++)u.__h.push(u._sb[G]);u._sb=[]}else do u.__d=!1,k&&k(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++C<25);u.state=u.__s,u.getChildContext!=null&&(n=hr(hr({},n),u.getChildContext())),_&&!p&&u.getSnapshotBeforeUpdate!=null&&(g=u.getSnapshotBeforeUpdate(f,h)),ce=d,d!=null&&d.type===$e&&d.key==null&&(ce=Nv(d.props.children)),s=Pv(e,ao(ce)?ce:[ce],t,r,n,i,o,a,s,l,c),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),b&&(u.__E=u.__=null)}catch(D){if(t.__v=null,l||o!=null)if(D.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(N=o.length;N--;)Hu(o[N]);else t.__e=r.__e,t.__k=r.__k;q.__e(D,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=L1(r.__e,t,r,n,i,o,a,l,c);return(d=q.diffed)&&d(t),128&t.__u?void 0:s}function Ov(e,t,r){for(var n=0;n<r.length;n++)Vu(r[n],r[++n],r[++n]);q.__c&&q.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){q.__e(o,i.__v)}})}function Nv(e){return typeof e!="object"||e==null?e:ao(e)?e.map(Nv):hr({},e)}function L1(e,t,r,n,i,o,a,s,l){var c,d,u,p,f,h,g,b=r.props,y=t.props,_=t.type;if(_=="svg"?i="http://www.w3.org/2000/svg":_=="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==!!_&&(_?f.localName==_:f.nodeType==3)){e=f,o[c]=null;break}}if(e==null){if(_==null)return document.createTextNode(y);e=document.createElementNS(i,_,y.is&&y),s&&(q.__m&&q.__m(t,o),s=!1),o=null}if(_===null)b===y||s&&e.data===y||(e.data=y);else{if(o=o&&ds.call(e.childNodes),b=r.props||oo,!s&&o!=null)for(b={},c=0;c<e.attributes.length;c++)b[(f=e.attributes[c]).name]=f.value;for(c in b)if(f=b[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=f;else if(!(c in y)){if(c=="value"&&"defaultValue"in y||c=="checked"&&"defaultChecked"in y)continue;ls(e,c,null,f,i)}}for(c in y)f=y[c],c=="children"?p=f:c=="dangerouslySetInnerHTML"?d=f:c=="value"?h=f:c=="checked"?g=f:s&&typeof f!="function"||b[c]===f||ls(e,c,f,b[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=""),Pv(t.type==="template"?e.content:e,ao(p)?p:[p],t,r,n,_=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&Vn(r,0),s,l),o!=null)for(c=o.length;c--;)Hu(o[c]);s||(c="value",_=="progress"&&h==null?e.removeAttribute("value"):h!==void 0&&(h!==e[c]||_=="progress"&&!h||_=="option"&&h!==b[c])&&ls(e,c,h,b[c],i),c="checked",g!==void 0&&g!==e[c]&&ls(e,c,g,b[c],i))}return e}function Vu(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){q.__e(i,r)}}function Dv(e,t,r){var n,i;if(q.unmount&&q.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Vu(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){q.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&Dv(n[i],t,r||typeof e.type!="function");r||Hu(e.__e),e.__c=e.__=e.__e=void 0}function q1(e,t,r){return this.constructor(e,r)}function Gr(e,t,r){var n,i,o,a;t==document&&(t=document.documentElement),q.__&&q.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],$u(t,e=(!n&&r||t).__k=Ze($e,null,[e]),i||oo,oo,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?ds.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),Ov(o,e,a)}function pn(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,Bu(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"+kv++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var ds,q,Iv,Gu,dn,_v,Ev,Av,Cv,Ju,Fu,ju,kv,oo,xv,O1,ao,Wn=x(()=>{oo={},xv=[],O1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,ao=Array.isArray;ds=xv.slice,q={__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}},Iv=0,Gu=function(e){return e!=null&&e.constructor==null},St.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=hr({},this.state),typeof e=="function"&&(e=e(hr({},r),this.props)),e&&hr(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),Bu(this))},St.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Bu(this))},St.prototype.render=$e,dn=[],Ev=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Av=function(e,t){return e.__v.__b-t.__v.__b},us.__r=0,Cv=/(PointerCapture)$|Capture$/i,Ju=0,Fu=Sv(!1),ju=Sv(!0),kv=0});var we=m((P7,Lv)=>{"use strict";Lv.exports=function(e){try{return!!e()}catch(t){return!0}}});var zn=m((R7,qv)=>{"use strict";var U1=we();qv.exports=!U1(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var xe=m((O7,Fv)=>{"use strict";var Uv=zn(),Mv=Function.prototype,Wu=Mv.call,M1=Uv&&Mv.bind.bind(Wu,Wu);Fv.exports=Uv?M1:function(e){return function(){return Wu.apply(e,arguments)}}});var at=m((N7,jv)=>{"use strict";var F1=xe();jv.exports=F1({}.isPrototypeOf)});var Se=m((zu,Bv)=>{"use strict";var lo=function(e){return e&&e.Math===Math&&e};Bv.exports=lo(typeof globalThis=="object"&&globalThis)||lo(typeof window=="object"&&window)||lo(typeof self=="object"&&self)||lo(typeof global=="object"&&global)||lo(typeof zu=="object"&&zu)||function(){return this}()||Function("return this")()});var Ku=m((D7,$v)=>{"use strict";var j1=zn(),Hv=Function.prototype,Gv=Hv.apply,Jv=Hv.call;$v.exports=typeof Reflect=="object"&&Reflect.apply||(j1?Jv.bind(Gv):function(){return Jv.apply(Gv,arguments)})});var mr=m((L7,Wv)=>{"use strict";var Vv=xe(),B1=Vv({}.toString),G1=Vv("".slice);Wv.exports=function(e){return G1(B1(e),8,-1)}});var co=m((q7,zv)=>{"use strict";var J1=mr(),H1=xe();zv.exports=function(e){if(J1(e)==="Function")return H1(e)}});var Ve=m((U7,Kv)=>{"use strict";var Yu=typeof document=="object"&&document.all;Kv.exports=typeof Yu=="undefined"&&Yu!==void 0?function(e){return typeof e=="function"||e===Yu}:function(e){return typeof e=="function"}});var st=m((M7,Yv)=>{"use strict";var $1=we();Yv.exports=!$1(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var jt=m((F7,Qv)=>{"use strict";var V1=zn(),ps=Function.prototype.call;Qv.exports=V1?ps.bind(ps):function(){return ps.apply(ps,arguments)}});var Qu=m(ey=>{"use strict";var Xv={}.propertyIsEnumerable,Zv=Object.getOwnPropertyDescriptor,W1=Zv&&!Xv.call({1:2},1);ey.f=W1?function(t){var r=Zv(this,t);return!!r&&r.enumerable}:Xv});var uo=m((B7,ty)=>{"use strict";ty.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var fs=m((G7,ry)=>{"use strict";var z1=xe(),K1=we(),Y1=mr(),Xu=Object,Q1=z1("".split);ry.exports=K1(function(){return!Xu("z").propertyIsEnumerable(0)})?function(e){return Y1(e)==="String"?Q1(e,""):Xu(e)}:Xu});var fn=m((J7,ny)=>{"use strict";ny.exports=function(e){return e==null}});var hn=m((H7,iy)=>{"use strict";var X1=fn(),Z1=TypeError;iy.exports=function(e){if(X1(e))throw new Z1("Can't call method on "+e);return e}});var Jr=m(($7,oy)=>{"use strict";var eN=fs(),tN=hn();oy.exports=function(e){return eN(tN(e))}});var Le=m((V7,ay)=>{"use strict";var rN=Ve();ay.exports=function(e){return typeof e=="object"?e!==null:rN(e)}});var Yt=m((W7,sy)=>{"use strict";sy.exports={}});var Kn=m((z7,cy)=>{"use strict";var Zu=Yt(),ed=Se(),nN=Ve(),ly=function(e){return nN(e)?e:void 0};cy.exports=function(e,t){return arguments.length<2?ly(Zu[e])||ly(ed[e]):Zu[e]&&Zu[e][t]||ed[e]&&ed[e][t]}});var hs=m((K7,py)=>{"use strict";var iN=Se(),uy=iN.navigator,dy=uy&&uy.userAgent;py.exports=dy?String(dy):""});var gs=m((Y7,yy)=>{"use strict";var vy=Se(),td=hs(),fy=vy.process,hy=vy.Deno,my=fy&&fy.versions||hy&&hy.version,gy=my&&my.v8,Bt,ms;gy&&(Bt=gy.split("."),ms=Bt[0]>0&&Bt[0]<4?1:+(Bt[0]+Bt[1]));!ms&&td&&(Bt=td.match(/Edge\/(\d+)/),(!Bt||Bt[1]>=74)&&(Bt=td.match(/Chrome\/(\d+)/),Bt&&(ms=+Bt[1])));yy.exports=ms});var rd=m((Q7,_y)=>{"use strict";var by=gs(),oN=we(),aN=Se(),sN=aN.String;_y.exports=!!Object.getOwnPropertySymbols&&!oN(function(){var e=Symbol("symbol detection");return!sN(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&by&&by<41})});var nd=m((X7,wy)=>{"use strict";var lN=rd();wy.exports=lN&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var id=m((Z7,Sy)=>{"use strict";var cN=Kn(),uN=Ve(),dN=at(),pN=nd(),fN=Object;Sy.exports=pN?function(e){return typeof e=="symbol"}:function(e){var t=cN("Symbol");return uN(t)&&dN(t.prototype,fN(e))}});var po=m((eY,Iy)=>{"use strict";var hN=String;Iy.exports=function(e){try{return hN(e)}catch(t){return"Object"}}});var mn=m((tY,Ey)=>{"use strict";var mN=Ve(),gN=po(),vN=TypeError;Ey.exports=function(e){if(mN(e))return e;throw new vN(gN(e)+" is not a function")}});var vs=m((rY,Ay)=>{"use strict";var yN=mn(),bN=fn();Ay.exports=function(e,t){var r=e[t];return bN(r)?void 0:yN(r)}});var ky=m((nY,Cy)=>{"use strict";var od=jt(),ad=Ve(),sd=Le(),_N=TypeError;Cy.exports=function(e,t){var r,n;if(t==="string"&&ad(r=e.toString)&&!sd(n=od(r,e))||ad(r=e.valueOf)&&!sd(n=od(r,e))||t!=="string"&&ad(r=e.toString)&&!sd(n=od(r,e)))return n;throw new _N("Can't convert object to primitive value")}});var Yn=m((iY,xy)=>{"use strict";xy.exports=!0});var Ry=m((oY,Py)=>{"use strict";var Ty=Se(),wN=Object.defineProperty;Py.exports=function(e,t){try{wN(Ty,e,{value:t,configurable:!0,writable:!0})}catch(r){Ty[e]=t}return t}});var fo=m((aY,Dy)=>{"use strict";var SN=Yn(),IN=Se(),EN=Ry(),Oy="__core-js_shared__",Ny=Dy.exports=IN[Oy]||EN(Oy,{});(Ny.versions||(Ny.versions=[])).push({version:"3.41.0",mode:SN?"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 ld=m((sY,qy)=>{"use strict";var Ly=fo();qy.exports=function(e,t){return Ly[e]||(Ly[e]=t||{})}});var Qn=m((lY,Uy)=>{"use strict";var AN=hn(),CN=Object;Uy.exports=function(e){return CN(AN(e))}});var It=m((cY,My)=>{"use strict";var kN=xe(),xN=Qn(),TN=kN({}.hasOwnProperty);My.exports=Object.hasOwn||function(t,r){return TN(xN(t),r)}});var ys=m((uY,Fy)=>{"use strict";var PN=xe(),RN=0,ON=Math.random(),NN=PN(1 .toString);Fy.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+NN(++RN+ON,36)}});var et=m((dY,By)=>{"use strict";var DN=Se(),LN=ld(),jy=It(),qN=ys(),UN=rd(),MN=nd(),Xn=DN.Symbol,cd=LN("wks"),FN=MN?Xn.for||Xn:Xn&&Xn.withoutSetter||qN;By.exports=function(e){return jy(cd,e)||(cd[e]=UN&&jy(Xn,e)?Xn[e]:FN("Symbol."+e)),cd[e]}});var $y=m((pY,Hy)=>{"use strict";var jN=jt(),Gy=Le(),Jy=id(),BN=vs(),GN=ky(),JN=et(),HN=TypeError,$N=JN("toPrimitive");Hy.exports=function(e,t){if(!Gy(e)||Jy(e))return e;var r=BN(e,$N),n;if(r){if(t===void 0&&(t="default"),n=jN(r,e,t),!Gy(n)||Jy(n))return n;throw new HN("Can't convert object to primitive value")}return t===void 0&&(t="number"),GN(e,t)}});var ud=m((fY,Vy)=>{"use strict";var VN=$y(),WN=id();Vy.exports=function(e){var t=VN(e,"string");return WN(t)?t:t+""}});var pd=m((hY,zy)=>{"use strict";var zN=Se(),Wy=Le(),dd=zN.document,KN=Wy(dd)&&Wy(dd.createElement);zy.exports=function(e){return KN?dd.createElement(e):{}}});var fd=m((mY,Ky)=>{"use strict";var YN=st(),QN=we(),XN=pd();Ky.exports=!YN&&!QN(function(){return Object.defineProperty(XN("div"),"a",{get:function(){return 7}}).a!==7})});var hd=m(Qy=>{"use strict";var ZN=st(),eD=jt(),tD=Qu(),rD=uo(),nD=Jr(),iD=ud(),oD=It(),aD=fd(),Yy=Object.getOwnPropertyDescriptor;Qy.f=ZN?Yy:function(t,r){if(t=nD(t),r=iD(r),aD)try{return Yy(t,r)}catch(n){}if(oD(t,r))return rD(!eD(tD.f,t,r),t[r])}});var Zy=m((vY,Xy)=>{"use strict";var sD=we(),lD=Ve(),cD=/#|\.prototype\./,ho=function(e,t){var r=dD[uD(e)];return r===fD?!0:r===pD?!1:lD(t)?sD(t):!!t},uD=ho.normalize=function(e){return String(e).replace(cD,".").toLowerCase()},dD=ho.data={},pD=ho.NATIVE="N",fD=ho.POLYFILL="P";Xy.exports=ho});var mo=m((yY,tb)=>{"use strict";var eb=co(),hD=mn(),mD=zn(),gD=eb(eb.bind);tb.exports=function(e,t){return hD(e),t===void 0?e:mD?gD(e,t):function(){return e.apply(t,arguments)}}});var md=m((bY,rb)=>{"use strict";var vD=st(),yD=we();rb.exports=vD&&yD(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var gr=m((_Y,nb)=>{"use strict";var bD=Le(),_D=String,wD=TypeError;nb.exports=function(e){if(bD(e))return e;throw new wD(_D(e)+" is not an object")}});var vr=m(ob=>{"use strict";var SD=st(),ID=fd(),ED=md(),bs=gr(),ib=ud(),AD=TypeError,gd=Object.defineProperty,CD=Object.getOwnPropertyDescriptor,vd="enumerable",yd="configurable",bd="writable";ob.f=SD?ED?function(t,r,n){if(bs(t),r=ib(r),bs(n),typeof t=="function"&&r==="prototype"&&"value"in n&&bd in n&&!n[bd]){var i=CD(t,r);i&&i[bd]&&(t[r]=n.value,n={configurable:yd in n?n[yd]:i[yd],enumerable:vd in n?n[vd]:i[vd],writable:!1})}return gd(t,r,n)}:gd:function(t,r,n){if(bs(t),r=ib(r),bs(n),ID)try{return gd(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new AD("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var gn=m((SY,ab)=>{"use strict";var kD=st(),xD=vr(),TD=uo();ab.exports=kD?function(e,t,r){return xD.f(e,t,TD(1,r))}:function(e,t,r){return e[t]=r,e}});var ae=m((IY,lb)=>{"use strict";var go=Se(),PD=Ku(),RD=co(),OD=Ve(),ND=hd().f,DD=Zy(),Zn=Yt(),LD=mo(),ei=gn(),sb=It();fo();var qD=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 PD(e,this,arguments)};return t.prototype=e.prototype,t};lb.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o=e.proto,a=n?go:i?go[r]:go[r]&&go[r].prototype,s=n?Zn:Zn[r]||ei(Zn,r,{})[r],l=s.prototype,c,d,u,p,f,h,g,b,y;for(p in t)c=DD(n?p:r+(i?".":"#")+p,e.forced),d=!c&&a&&sb(a,p),h=s[p],d&&(e.dontCallGetSet?(y=ND(a,p),g=y&&y.value):g=a[p]),f=d&&g?g:t[p],!(!c&&!o&&typeof h==typeof f)&&(e.bind&&d?b=LD(f,go):e.wrap&&d?b=qD(f):o&&OD(f)?b=RD(f):b=f,(e.sham||f&&f.sham||h&&h.sham)&&ei(b,"sham",!0),ei(s,p,b),o&&(u=r+"Prototype",sb(Zn,u)||ei(Zn,u,{}),ei(Zn[u],p,f),e.real&&l&&(c||!l[p])&&ei(l,p,f)))}});var ub=m((EY,cb)=>{"use strict";var UD=Math.ceil,MD=Math.floor;cb.exports=Math.trunc||function(t){var r=+t;return(r>0?MD:UD)(r)}});var vo=m((AY,db)=>{"use strict";var FD=ub();db.exports=function(e){var t=+e;return t!==t||t===0?0:FD(t)}});var _d=m((CY,pb)=>{"use strict";var jD=vo(),BD=Math.min;pb.exports=function(e){var t=jD(e);return t>0?BD(t,9007199254740991):0}});var ti=m((kY,fb)=>{"use strict";var GD=_d();fb.exports=function(e){return GD(e.length)}});var yo=m((xY,hb)=>{"use strict";var JD=mr();hb.exports=Array.isArray||function(t){return JD(t)==="Array"}});var _s=m((TY,gb)=>{"use strict";var HD=et(),$D=HD("toStringTag"),mb={};mb[$D]="z";gb.exports=String(mb)==="[object z]"});var ri=m((PY,vb)=>{"use strict";var VD=_s(),WD=Ve(),ws=mr(),zD=et(),KD=zD("toStringTag"),YD=Object,QD=ws(function(){return arguments}())==="Arguments",XD=function(e,t){try{return e[t]}catch(r){}};vb.exports=VD?ws:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=XD(t=YD(e),KD))=="string"?r:QD?ws(t):(n=ws(t))==="Object"&&WD(t.callee)?"Arguments":n}});var bb=m((RY,yb)=>{"use strict";var ZD=xe(),eL=Ve(),wd=fo(),tL=ZD(Function.toString);eL(wd.inspectSource)||(wd.inspectSource=function(e){return tL(e)});yb.exports=wd.inspectSource});var Id=m((OY,Eb)=>{"use strict";var rL=xe(),nL=we(),_b=Ve(),iL=ri(),oL=Kn(),aL=bb(),wb=function(){},Sb=oL("Reflect","construct"),Sd=/^\s*(?:class|function)\b/,sL=rL(Sd.exec),lL=!Sd.test(wb),bo=function(t){if(!_b(t))return!1;try{return Sb(wb,[],t),!0}catch(r){return!1}},Ib=function(t){if(!_b(t))return!1;switch(iL(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return lL||!!sL(Sd,aL(t))}catch(r){return!0}};Ib.sham=!0;Eb.exports=!Sb||nL(function(){var e;return bo(bo.call)||!bo(Object)||!bo(function(){e=!0})||e})?Ib:bo});var xb=m((NY,kb)=>{"use strict";var Ab=yo(),cL=Id(),uL=Le(),dL=et(),pL=dL("species"),Cb=Array;kb.exports=function(e){var t;return Ab(e)&&(t=e.constructor,cL(t)&&(t===Cb||Ab(t.prototype))?t=void 0:uL(t)&&(t=t[pL],t===null&&(t=void 0))),t===void 0?Cb:t}});var Ed=m((DY,Tb)=>{"use strict";var fL=xb();Tb.exports=function(e,t){return new(fL(e))(t===0?0:t)}});var $r=m((LY,Rb)=>{"use strict";var hL=mo(),mL=xe(),gL=fs(),vL=Qn(),yL=ti(),bL=Ed(),Pb=mL([].push),Hr=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=vL(l),f=gL(p),h=yL(f),g=hL(c,d),b=0,y=u||bL,_=t?y(l,h):r||a?y(l,0):void 0,I,E;h>b;b++)if((s||b in f)&&(I=f[b],E=g(I,b,p),e))if(t)_[b]=E;else if(E)switch(e){case 3:return!0;case 5:return I;case 6:return b;case 2:Pb(_,I)}else switch(e){case 4:return!1;case 7:Pb(_,I)}return o?-1:n||i?i:_}};Rb.exports={forEach:Hr(0),map:Hr(1),filter:Hr(2),some:Hr(3),every:Hr(4),find:Hr(5),findIndex:Hr(6),filterReject:Hr(7)}});var _o=m((qY,Ob)=>{"use strict";var _L=we(),wL=et(),SL=gs(),IL=wL("species");Ob.exports=function(e){return SL>=51||!_L(function(){var t=[],r=t.constructor={};return r[IL]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var Nb=m(()=>{"use strict";var EL=ae(),AL=$r().filter,CL=_o(),kL=CL("filter");EL({target:"Array",proto:!0,forced:!kL},{filter:function(t){return AL(this,t,arguments.length>1?arguments[1]:void 0)}})});var Ot=m((FY,Db)=>{"use strict";var xL=Se(),TL=Yt();Db.exports=function(e,t){var r=TL[e+"Prototype"],n=r&&r[t];if(n)return n;var i=xL[e],o=i&&i.prototype;return o&&o[t]}});var qb=m((jY,Lb)=>{"use strict";Nb();var PL=Ot();Lb.exports=PL("Array","filter")});var Mb=m((BY,Ub)=>{"use strict";var RL=at(),OL=qb(),Ad=Array.prototype;Ub.exports=function(e){var t=e.filter;return e===Ad||RL(Ad,e)&&t===Ad.filter?OL:t}});var jb=m((GY,Fb)=>{"use strict";var NL=Mb();Fb.exports=NL});var Gb=m((JY,Bb)=>{Bb.exports=jb()});var wo=m((HY,Jb)=>{"use strict";var DL=we();Jb.exports=function(e,t){var r=[][e];return!!r&&DL(function(){r.call(null,t||function(){return 1},1)})}});var Hb=m(()=>{"use strict";var LL=ae(),qL=$r().every,UL=wo(),ML=UL("every");LL({target:"Array",proto:!0,forced:!ML},{every:function(t){return qL(this,t,arguments.length>1?arguments[1]:void 0)}})});var Vb=m((WY,$b)=>{"use strict";Hb();var FL=Ot();$b.exports=FL("Array","every")});var zb=m((zY,Wb)=>{"use strict";var jL=at(),BL=Vb(),Cd=Array.prototype;Wb.exports=function(e){var t=e.every;return e===Cd||jL(Cd,e)&&t===Cd.every?BL:t}});var Yb=m((KY,Kb)=>{"use strict";var GL=zb();Kb.exports=GL});var Xb=m((YY,Qb)=>{Qb.exports=Yb()});var e_=m((QY,Zb)=>{"use strict";var JL=$r().forEach,HL=wo(),$L=HL("forEach");Zb.exports=$L?[].forEach:function(t){return JL(this,t,arguments.length>1?arguments[1]:void 0)}});var r_=m(()=>{"use strict";var VL=ae(),t_=e_();VL({target:"Array",proto:!0,forced:[].forEach!==t_},{forEach:t_})});var i_=m((eQ,n_)=>{"use strict";r_();var WL=Ot();n_.exports=WL("Array","forEach")});var a_=m((tQ,o_)=>{"use strict";var zL=i_();o_.exports=zL});var s_=m(()=>{});var c_=m((iQ,l_)=>{"use strict";var KL=ri(),YL=It(),QL=at(),XL=a_();s_();var kd=Array.prototype,ZL={DOMTokenList:!0,NodeList:!0};l_.exports=function(e){var t=e.forEach;return e===kd||QL(kd,e)&&t===kd.forEach||YL(ZL,KL(e))?XL:t}});var d_=m((oQ,u_)=>{u_.exports=c_()});var f_=m((aQ,p_)=>{"use strict";var eq=TypeError,tq=9007199254740991;p_.exports=function(e){if(e>tq)throw eq("Maximum allowed index exceeded");return e}});var xd=m((sQ,h_)=>{"use strict";var rq=st(),nq=vr(),iq=uo();h_.exports=function(e,t,r){rq?nq.f(e,t,iq(0,r)):e[t]=r}});var y_=m(()=>{"use strict";var oq=ae(),aq=we(),sq=yo(),lq=Le(),cq=Qn(),uq=ti(),m_=f_(),g_=xd(),dq=Ed(),pq=_o(),fq=et(),hq=gs(),v_=fq("isConcatSpreadable"),mq=hq>=51||!aq(function(){var e=[];return e[v_]=!1,e.concat()[0]!==e}),gq=function(e){if(!lq(e))return!1;var t=e[v_];return t!==void 0?!!t:sq(e)},vq=!mq||!pq("concat");oq({target:"Array",proto:!0,arity:1,forced:vq},{concat:function(t){var r=cq(this),n=dq(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],gq(c))for(l=uq(c),m_(i+l),a=0;a<l;a++,i++)a in c&&g_(n,i,c[a]);else m_(i+1),g_(n,i++,c);return n.length=i,n}})});var __=m((uQ,b_)=>{"use strict";y_();var yq=Ot();b_.exports=yq("Array","concat")});var S_=m((dQ,w_)=>{"use strict";var bq=at(),_q=__(),Td=Array.prototype;w_.exports=function(e){var t=e.concat;return e===Td||bq(Td,e)&&t===Td.concat?_q:t}});var E_=m((pQ,I_)=>{"use strict";var wq=S_();I_.exports=wq});var C_=m((fQ,A_)=>{A_.exports=E_()});var k_=m(()=>{"use strict";var Sq=ae(),Iq=$r().some,Eq=wo(),Aq=Eq("some");Sq({target:"Array",proto:!0,forced:!Aq},{some:function(t){return Iq(this,t,arguments.length>1?arguments[1]:void 0)}})});var T_=m((gQ,x_)=>{"use strict";k_();var Cq=Ot();x_.exports=Cq("Array","some")});var R_=m((vQ,P_)=>{"use strict";var kq=at(),xq=T_(),Pd=Array.prototype;P_.exports=function(e){var t=e.some;return e===Pd||kq(Pd,e)&&t===Pd.some?xq:t}});var N_=m((yQ,O_)=>{"use strict";var Tq=R_();O_.exports=Tq});var L_=m((bQ,D_)=>{D_.exports=N_()});var U_=m((_Q,q_)=>{"use strict";var So=Se(),Pq=hs(),Rq=mr(),Ss=function(e){return Pq.slice(0,e.length)===e};q_.exports=function(){return Ss("Bun/")?"BUN":Ss("Cloudflare-Workers")?"CLOUDFLARE":Ss("Deno/")?"DENO":Ss("Node.js/")?"NODE":So.Bun&&typeof Bun.version=="string"?"BUN":So.Deno&&typeof Deno.version=="object"?"DENO":Rq(So.process)==="process"?"NODE":So.window&&So.document?"BROWSER":"REST"}()});var Io=m((wQ,M_)=>{"use strict";var Oq=xe();M_.exports=Oq([].slice)});var j_=m((SQ,F_)=>{"use strict";var Nq=TypeError;F_.exports=function(e,t){if(e<t)throw new Nq("Not enough arguments");return e}});var Rd=m((IQ,G_)=>{"use strict";var B_=Se(),Dq=Ku(),Lq=Ve(),qq=U_(),Uq=hs(),Mq=Io(),Fq=j_(),jq=B_.Function,Bq=/MSIE .\./.test(Uq)||qq==="BUN"&&function(){var e=B_.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();G_.exports=function(e,t){var r=t?2:1;return Bq?function(n,i){var o=Fq(arguments.length,1)>r,a=Lq(n)?n:jq(n),s=o?Mq(arguments,r):[],l=o?function(){Dq(a,this,s)}:a;return t?e(l,i):e(l)}:e}});var $_=m(()=>{"use strict";var Gq=ae(),H_=Se(),Jq=Rd(),J_=Jq(H_.setInterval,!0);Gq({global:!0,bind:!0,forced:H_.setInterval!==J_},{setInterval:J_})});var z_=m(()=>{"use strict";var Hq=ae(),W_=Se(),$q=Rd(),V_=$q(W_.setTimeout,!0);Hq({global:!0,bind:!0,forced:W_.setTimeout!==V_},{setTimeout:V_})});var K_=m(()=>{"use strict";$_();z_()});var Q_=m((PQ,Y_)=>{"use strict";K_();var Vq=Yt();Y_.exports=Vq.setTimeout});var Z_=m((RQ,X_)=>{X_.exports=Q_()});function Ao(e,t){Ae.__h&&Ae.__h(de,e,Eo||t),Eo=0;var r=de.__H||(de.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function yr(e){return Eo=1,cw(uw,e)}function cw(e,t,r){var n=Ao(vn++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):uw(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=de,!de.__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};de.__f=!0;var o=de.shouldComponentUpdate,a=de.componentWillUpdate;de.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)},de.shouldComponentUpdate=i}return n.__N||n.__}function yn(e,t){var r=Ao(vn++,3);!Ae.__s&&Dd(r.__H,t)&&(r.__=e,r.u=t,de.__H.__h.push(r))}function ni(e,t){var r=Ao(vn++,4);!Ae.__s&&Dd(r.__H,t)&&(r.__=e,r.u=t,de.__h.push(r))}function ii(e){return Eo=5,Co(function(){return{current:e}},[])}function Co(e,t){var r=Ao(vn++,7);return Dd(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Vr(e,t){return Eo=8,Co(function(){return e},t)}function oi(e){var t=de.context[e.__c],r=Ao(vn++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(de)),t.props.value):e.__}function Wq(){for(var e;e=lw.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Is),e.__H.__h.forEach(Nd),e.__H.__h=[]}catch(t){e.__H.__h=[],Ae.__e(t,e.__v)}}function zq(e){var t,r=function(){clearTimeout(n),sw&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);sw&&(t=requestAnimationFrame(r))}function Is(e){var t=de,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),de=t}function Nd(e){var t=de;e.__c=e.__(),de=t}function Dd(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function uw(e,t){return typeof t=="function"?t(e):t}var vn,de,Od,ew,Eo,lw,Ae,tw,rw,nw,iw,ow,aw,sw,Ld=x(()=>{Wn();Eo=0,lw=[],Ae=q,tw=Ae.__b,rw=Ae.__r,nw=Ae.diffed,iw=Ae.__c,ow=Ae.unmount,aw=Ae.__;Ae.__b=function(e){de=null,tw&&tw(e)},Ae.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),aw&&aw(e,t)},Ae.__r=function(e){rw&&rw(e),vn=0;var t=(de=e.__c).__H;t&&(Od===de?(t.__h=[],de.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Is),t.__h.forEach(Nd),t.__h=[],vn=0)),Od=de},Ae.diffed=function(e){nw&&nw(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(lw.push(t)!==1&&ew===Ae.requestAnimationFrame||((ew=Ae.requestAnimationFrame)||zq)(Wq)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Od=de=null},Ae.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Is),r.__h=r.__h.filter(function(n){return!n.__||Nd(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Ae.__e(n,r.__v)}}),iw&&iw(e,t)},Ae.unmount=function(e){ow&&ow(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Is(n)}catch(i){t=i}}),r.__H=void 0,t&&Ae.__e(t,r.__v))};sw=typeof requestAnimationFrame=="function"});function _w(e,t){for(var r in t)e[r]=t[r];return e}function Ud(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 dw(e,t){this.props=e,this.context=t}function Fd(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:Ud(this.props,i)}function n(i){return this.shouldComponentUpdate=r,Ze(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function jd(e){function t(r){var n=_w({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=Kq,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function ww(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=_w({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return ww(n,t,r)})),e}function Sw(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Sw(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 qd(){this.__u=0,this.o=null,this.__b=null}function Iw(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Es(){this.i=null,this.l=null}function As(e,t,r){return t.__k==null&&(t.textContent=""),Gr(e,t),typeof r=="function"&&r(),e?e.__c:null}function nU(){}function iU(){return this.cancelBubble}function oU(){return this.defaultPrevented}var Md,pw,Kq,Yq,fw,hw,Qq,Xq,Zq,eU,tU,rU,mw,Ew,aU,gw,vw,yw,Cs=x(()=>{Wn();Wn();Ld();Ld();Md=ni;(dw.prototype=new St).isPureReactComponent=!0,dw.prototype.shouldComponentUpdate=function(e,t){return Ud(this.props,e)||Ud(this.state,t)};pw=q.__b;q.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),pw&&pw(e)};Kq=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;Yq=q.__e;q.__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)}Yq(e,t,r,n)};fw=q.unmount;q.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),fw&&fw(e)},(qd.prototype=new St).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=Iw(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]=Sw(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)},qd.prototype.componentWillUnmount=function(){this.o=[]},qd.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]=ww(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&Ze($e,null,e.fallback);return i&&(i.__u&=-33),[Ze($e,null,t.__a?null:e.children),i]};hw=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]}};(Es.prototype=new St).__a=function(e){var t=this,r=Iw(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),hw(t,e,n)):i()};r?r(o):o()}},Es.prototype.render=function(e){this.i=null,this.l=new Map;var t=so(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},Es.prototype.componentDidUpdate=Es.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){hw(e,r,t)})};Qq=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,Xq=/^(?: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]/,Zq=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,eU=/[A-Z0-9]/g,tU=typeof document!="undefined",rU=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};St.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(St.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});mw=q.event;q.event=function(e){return mw&&(e=mw(e)),e.persist=nU,e.isPropagationStopped=iU,e.isDefaultPrevented=oU,e.nativeEvent=e};aU={enumerable:!1,configurable:!0,get:function(){return this.class}},gw=q.vnode;q.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||tU&&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"||rU(r.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":Zq.test(a)&&(a=l):l=a="oninput":o&&Xq.test(a)?a=a.replace(eU,"-$&").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=so(r.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=so(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",aU)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=Qq,gw&&gw(e)};vw=q.__r;q.__r=function(e){vw&&vw(e),Ew=e.__c};yw=q.diffed;q.diffed=function(e){yw&&yw(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),Ew=null}});var Gd=m(()=>{"use strict";var lU=ae(),Bd=Se();lU({global:!0,forced:Bd.globalThis!==Bd},{globalThis:Bd})});var Aw=m(()=>{"use strict";Gd()});var kw=m((WQ,Cw)=>{"use strict";Gd();Cw.exports=Se()});var Tw=m((zQ,xw)=>{"use strict";var cU=kw();xw.exports=cU});var Rw=m((KQ,Pw)=>{"use strict";var uU=Tw();Pw.exports=uU});var Nw=m((YQ,Ow)=>{"use strict";Aw();var dU=Rw();Ow.exports=dU});var Lw=m((QQ,Dw)=>{"use strict";Dw.exports=Nw()});var Uw=m((XQ,qw)=>{qw.exports=Lw()});var Mw=m(()=>{"use strict";var pU=ae(),fU=yo();pU({target:"Array",stat:!0},{isArray:fU})});var jw=m((tX,Fw)=>{"use strict";Mw();var hU=Yt();Fw.exports=hU.Array.isArray});var Gw=m((rX,Bw)=>{"use strict";var mU=jw();Bw.exports=mU});var Hw=m((nX,Jw)=>{Jw.exports=Gw()});var Vw=m((iX,$w)=>{"use strict";$w.exports=function(){}});var bn=m((oX,Ww)=>{"use strict";Ww.exports={}});var Jd=m((aX,Kw)=>{"use strict";var gU=Se(),vU=Ve(),zw=gU.WeakMap;Kw.exports=vU(zw)&&/native code/.test(String(zw))});var ks=m((sX,Qw)=>{"use strict";var yU=ld(),bU=ys(),Yw=yU("keys");Qw.exports=function(e){return Yw[e]||(Yw[e]=bU(e))}});var ko=m((lX,Xw)=>{"use strict";Xw.exports={}});var wn=m((cX,tS)=>{"use strict";var _U=Jd(),eS=Se(),wU=Le(),SU=gn(),Hd=It(),$d=fo(),IU=ks(),EU=ko(),Zw="Object already initialized",Vd=eS.TypeError,AU=eS.WeakMap,xs,xo,Ts,CU=function(e){return Ts(e)?xo(e):xs(e,{})},kU=function(e){return function(t){var r;if(!wU(t)||(r=xo(t)).type!==e)throw new Vd("Incompatible receiver, "+e+" required");return r}};_U||$d.state?(Gt=$d.state||($d.state=new AU),Gt.get=Gt.get,Gt.has=Gt.has,Gt.set=Gt.set,xs=function(e,t){if(Gt.has(e))throw new Vd(Zw);return t.facade=e,Gt.set(e,t),t},xo=function(e){return Gt.get(e)||{}},Ts=function(e){return Gt.has(e)}):(_n=IU("state"),EU[_n]=!0,xs=function(e,t){if(Hd(e,_n))throw new Vd(Zw);return t.facade=e,SU(e,_n,t),t},xo=function(e){return Hd(e,_n)?e[_n]:{}},Ts=function(e){return Hd(e,_n)});var Gt,_n;tS.exports={set:xs,get:xo,has:Ts,enforce:CU,getterFor:kU}});var Kd=m((uX,nS)=>{"use strict";var Wd=st(),xU=It(),rS=Function.prototype,TU=Wd&&Object.getOwnPropertyDescriptor,zd=xU(rS,"name"),PU=zd&&(function(){}).name==="something",RU=zd&&(!Wd||Wd&&TU(rS,"name").configurable);nS.exports={EXISTS:zd,PROPER:PU,CONFIGURABLE:RU}});var Yd=m((dX,iS)=>{"use strict";var OU=vo(),NU=Math.max,DU=Math.min;iS.exports=function(e,t){var r=OU(e);return r<0?NU(r+t,0):DU(r,t)}});var Qd=m((pX,aS)=>{"use strict";var LU=Jr(),qU=Yd(),UU=ti(),oS=function(e){return function(t,r,n){var i=LU(t),o=UU(i);if(o===0)return!e&&-1;var a=qU(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}};aS.exports={includes:oS(!0),indexOf:oS(!1)}});var Zd=m((fX,lS)=>{"use strict";var MU=xe(),Xd=It(),FU=Jr(),jU=Qd().indexOf,BU=ko(),sS=MU([].push);lS.exports=function(e,t){var r=FU(e),n=0,i=[],o;for(o in r)!Xd(BU,o)&&Xd(r,o)&&sS(i,o);for(;t.length>n;)Xd(r,o=t[n++])&&(~jU(i,o)||sS(i,o));return i}});var Ps=m((hX,cS)=>{"use strict";cS.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var ep=m((mX,uS)=>{"use strict";var GU=Zd(),JU=Ps();uS.exports=Object.keys||function(t){return GU(t,JU)}});var pS=m(dS=>{"use strict";var HU=st(),$U=md(),VU=vr(),WU=gr(),zU=Jr(),KU=ep();dS.f=HU&&!$U?Object.defineProperties:function(t,r){WU(t);for(var n=zU(r),i=KU(r),o=i.length,a=0,s;o>a;)VU.f(t,s=i[a++],n[s]);return t}});var hS=m((vX,fS)=>{"use strict";var YU=Kn();fS.exports=YU("document","documentElement")});var To=m((yX,wS)=>{"use strict";var QU=gr(),XU=pS(),mS=Ps(),ZU=ko(),eM=hS(),tM=pd(),rM=ks(),gS=">",vS="<",rp="prototype",np="script",bS=rM("IE_PROTO"),tp=function(){},_S=function(e){return vS+np+gS+e+vS+"/"+np+gS},yS=function(e){e.write(_S("")),e.close();var t=e.parentWindow.Object;return e=null,t},nM=function(){var e=tM("iframe"),t="java"+np+":",r;return e.style.display="none",eM.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(_S("document.F=Object")),r.close(),r.F},Rs,Os=function(){try{Rs=new ActiveXObject("htmlfile")}catch(t){}Os=typeof document!="undefined"?document.domain&&Rs?yS(Rs):nM():yS(Rs);for(var e=mS.length;e--;)delete Os[rp][mS[e]];return Os()};ZU[bS]=!0;wS.exports=Object.create||function(t,r){var n;return t!==null?(tp[rp]=QU(t),n=new tp,tp[rp]=null,n[bS]=t):n=Os(),r===void 0?n:XU.f(n,r)}});var IS=m((bX,SS)=>{"use strict";var iM=we();SS.exports=!iM(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var op=m((_X,AS)=>{"use strict";var oM=It(),aM=Ve(),sM=Qn(),lM=ks(),cM=IS(),ES=lM("IE_PROTO"),ip=Object,uM=ip.prototype;AS.exports=cM?ip.getPrototypeOf:function(e){var t=sM(e);if(oM(t,ES))return t[ES];var r=t.constructor;return aM(r)&&t instanceof r?r.prototype:t instanceof ip?uM:null}});var Ns=m((wX,CS)=>{"use strict";var dM=gn();CS.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:dM(e,t,r),e}});var cp=m((SX,TS)=>{"use strict";var pM=we(),fM=Ve(),hM=Le(),mM=To(),kS=op(),gM=Ns(),vM=et(),yM=Yn(),lp=vM("iterator"),xS=!1,br,ap,sp;[].keys&&(sp=[].keys(),"next"in sp?(ap=kS(kS(sp)),ap!==Object.prototype&&(br=ap)):xS=!0);var bM=!hM(br)||pM(function(){var e={};return br[lp].call(e)!==e});bM?br={}:yM&&(br=mM(br));fM(br[lp])||gM(br,lp,function(){return this});TS.exports={IteratorPrototype:br,BUGGY_SAFARI_ITERATORS:xS}});var RS=m((IX,PS)=>{"use strict";var _M=_s(),wM=ri();PS.exports=_M?{}.toString:function(){return"[object "+wM(this)+"]"}});var Po=m((EX,NS)=>{"use strict";var SM=_s(),IM=vr().f,EM=gn(),AM=It(),CM=RS(),kM=et(),OS=kM("toStringTag");NS.exports=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(AM(i,OS)||IM(i,OS,{configurable:!0,value:t}),n&&!SM&&EM(i,"toString",CM))}});var LS=m((AX,DS)=>{"use strict";var xM=cp().IteratorPrototype,TM=To(),PM=uo(),RM=Po(),OM=bn(),NM=function(){return this};DS.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=TM(xM,{next:PM(+!n,r)}),RM(e,i,!1,!0),OM[i]=NM,e}});var US=m((CX,qS)=>{"use strict";var DM=xe(),LM=mn();qS.exports=function(e,t,r){try{return DM(LM(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var FS=m((kX,MS)=>{"use strict";var qM=Le();MS.exports=function(e){return qM(e)||e===null}});var BS=m((xX,jS)=>{"use strict";var UM=FS(),MM=String,FM=TypeError;jS.exports=function(e){if(UM(e))return e;throw new FM("Can't set "+MM(e)+" as a prototype")}});var JS=m((TX,GS)=>{"use strict";var jM=US(),BM=Le(),GM=hn(),JM=BS();GS.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=jM(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return GM(i),JM(o),BM(i)&&(e?r(i,o):i.__proto__=o),i}}():void 0)});var qs=m((PX,ZS)=>{"use strict";var HM=ae(),$M=jt(),Ds=Yn(),QS=Kd(),VM=Ve(),WM=LS(),HS=op(),$S=JS(),zM=Po(),KM=gn(),up=Ns(),YM=et(),VS=bn(),XS=cp(),QM=QS.PROPER,XM=QS.CONFIGURABLE,WS=XS.IteratorPrototype,Ls=XS.BUGGY_SAFARI_ITERATORS,Ro=YM("iterator"),zS="keys",Oo="values",KS="entries",YS=function(){return this};ZS.exports=function(e,t,r,n,i,o,a){WM(r,t,n);var s=function(y){if(y===i&&p)return p;if(!Ls&&y&&y in d)return d[y];switch(y){case zS:return function(){return new r(this,y)};case Oo:return function(){return new r(this,y)};case KS:return function(){return new r(this,y)}}return function(){return new r(this)}},l=t+" Iterator",c=!1,d=e.prototype,u=d[Ro]||d["@@iterator"]||i&&d[i],p=!Ls&&u||s(i),f=t==="Array"&&d.entries||u,h,g,b;if(f&&(h=HS(f.call(new e)),h!==Object.prototype&&h.next&&(!Ds&&HS(h)!==WS&&($S?$S(h,WS):VM(h[Ro])||up(h,Ro,YS)),zM(h,l,!0,!0),Ds&&(VS[l]=YS))),QM&&i===Oo&&u&&u.name!==Oo&&(!Ds&&XM?KM(d,"name",Oo):(c=!0,p=function(){return $M(u,this)})),i)if(g={values:s(Oo),keys:o?p:s(zS),entries:s(KS)},a)for(b in g)(Ls||c||!(b in d))&&up(d,b,g[b]);else HM({target:t,proto:!0,forced:Ls||c},g);return(!Ds||a)&&d[Ro]!==p&&up(d,Ro,p,{name:i}),VS[t]=p,g}});var Us=m((RX,eI)=>{"use strict";eI.exports=function(e,t){return{value:e,done:t}}});var Fs=m((OX,oI)=>{"use strict";var ZM=Jr(),dp=Vw(),tI=bn(),nI=wn(),eF=vr().f,tF=qs(),Ms=Us(),rF=Yn(),nF=st(),iI="Array Iterator",iF=nI.set,oF=nI.getterFor(iI);oI.exports=tF(Array,"Array",function(e,t){iF(this,{type:iI,target:ZM(e),index:0,kind:t})},function(){var e=oF(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,Ms(void 0,!0);switch(e.kind){case"keys":return Ms(r,!1);case"values":return Ms(t[r],!1)}return Ms([r,t[r]],!1)},"values");var rI=tI.Arguments=tI.Array;dp("keys");dp("values");dp("entries");if(!rF&&nF&&rI.name!=="values")try{eF(rI,"name",{value:"values"})}catch(e){}});var pp=m(()=>{});var fp=m((LX,aI)=>{"use strict";var aF=we();aI.exports=!aF(function(){return Object.isExtensible(Object.preventExtensions({}))})});var js=m((qX,sI)=>{"use strict";var sF=Ns();sI.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:sF(e,n,t[n],r);return e}});var hp=m(lI=>{"use strict";var lF=Zd(),cF=Ps(),uF=cF.concat("length","prototype");lI.f=Object.getOwnPropertyNames||function(t){return lF(t,uF)}});var pI=m((MX,dI)=>{"use strict";var dF=mr(),pF=Jr(),cI=hp().f,fF=Io(),uI=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],hF=function(e){try{return cI(e)}catch(t){return fF(uI)}};dI.exports.f=function(t){return uI&&dF(t)==="Window"?hF(t):cI(pF(t))}});var hI=m((FX,fI)=>{"use strict";var mF=we();fI.exports=mF(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var vI=m((jX,gI)=>{"use strict";var gF=we(),vF=Le(),yF=mr(),mI=hI(),Bs=Object.isExtensible,bF=gF(function(){Bs(1)});gI.exports=bF||mI?function(t){return!vF(t)||mI&&yF(t)==="ArrayBuffer"?!1:Bs?Bs(t):!0}:Bs});var No=m((BX,_I)=>{"use strict";var _F=ae(),wF=xe(),SF=ko(),IF=Le(),mp=It(),EF=vr().f,yI=hp(),AF=pI(),gp=vI(),CF=ys(),kF=fp(),bI=!1,_r=CF("meta"),xF=0,vp=function(e){EF(e,_r,{value:{objectID:"O"+xF++,weakData:{}}})},TF=function(e,t){if(!IF(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!mp(e,_r)){if(!gp(e))return"F";if(!t)return"E";vp(e)}return e[_r].objectID},PF=function(e,t){if(!mp(e,_r)){if(!gp(e))return!0;if(!t)return!1;vp(e)}return e[_r].weakData},RF=function(e){return kF&&bI&&gp(e)&&!mp(e,_r)&&vp(e),e},OF=function(){NF.enable=function(){},bI=!0;var e=yI.f,t=wF([].splice),r={};r[_r]=1,e(r).length&&(yI.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===_r){t(i,o,1);break}return i},_F({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:AF.f}))},NF=_I.exports={enable:OF,fastKey:TF,getWeakData:PF,onFreeze:RF};SF[_r]=!0});var SI=m((GX,wI)=>{"use strict";var DF=et(),LF=bn(),qF=DF("iterator"),UF=Array.prototype;wI.exports=function(e){return e!==void 0&&(LF.Array===e||UF[qF]===e)}});var yp=m((JX,EI)=>{"use strict";var MF=ri(),II=vs(),FF=fn(),jF=bn(),BF=et(),GF=BF("iterator");EI.exports=function(e){if(!FF(e))return II(e,GF)||II(e,"@@iterator")||jF[MF(e)]}});var CI=m((HX,AI)=>{"use strict";var JF=jt(),HF=mn(),$F=gr(),VF=po(),WF=yp(),zF=TypeError;AI.exports=function(e,t){var r=arguments.length<2?WF(e):t;if(HF(r))return $F(JF(r,e));throw new zF(VF(e)+" is not iterable")}});var Gs=m(($X,xI)=>{"use strict";var KF=jt(),kI=gr(),YF=vs();xI.exports=function(e,t,r){var n,i;kI(e);try{if(n=YF(e,"return"),!n){if(t==="throw")throw r;return r}n=KF(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return kI(n),r}});var Hs=m((VX,OI)=>{"use strict";var QF=mo(),XF=jt(),ZF=gr(),ej=po(),tj=SI(),rj=ti(),TI=at(),nj=CI(),ij=yp(),PI=Gs(),oj=TypeError,Js=function(e,t){this.stopped=e,this.result=t},RI=Js.prototype;OI.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=QF(t,n),c,d,u,p,f,h,g,b=function(_){return c&&PI(c,"normal",_),new Js(!0,_)},y=function(_){return i?(ZF(_),s?l(_[0],_[1],b):l(_[0],_[1])):s?l(_,b):l(_)};if(o)c=e.iterator;else if(a)c=e;else{if(d=ij(e),!d)throw new oj(ej(e)+" is not iterable");if(tj(d)){for(u=0,p=rj(e);p>u;u++)if(f=y(e[u]),f&&TI(RI,f))return f;return new Js(!1)}c=nj(e,d)}for(h=o?e.next:c.next;!(g=XF(h,c)).done;){try{f=y(g.value)}catch(_){PI(c,"throw",_)}if(typeof f=="object"&&f&&TI(RI,f))return f}return new Js(!1)}});var $s=m((WX,NI)=>{"use strict";var aj=at(),sj=TypeError;NI.exports=function(e,t){if(aj(t,e))return e;throw new sj("Incorrect invocation")}});var bp=m((zX,LI)=>{"use strict";var lj=ae(),cj=Se(),uj=No(),dj=we(),pj=gn(),fj=Hs(),hj=$s(),mj=Ve(),gj=Le(),vj=fn(),yj=Po(),bj=vr().f,_j=$r().forEach,wj=st(),DI=wn(),Sj=DI.set,Ij=DI.getterFor;LI.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=cj[e],s=a&&a.prototype,l={},c;if(!wj||!mj(a)||!(i||s.forEach&&!dj(function(){new a().entries().next()})))c=r.getConstructor(t,e,n,o),uj.enable();else{c=t(function(p,f){Sj(hj(p,d),{type:e,collection:new a}),vj(f)||fj(f,p[o],{that:p,AS_ENTRIES:n})});var d=c.prototype,u=Ij(e);_j(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(p){var f=p==="add"||p==="set";p in s&&!(i&&p==="clear")&&pj(d,p,function(h,g){var b=u(this).collection;if(!f&&i&&!gj(h))return p==="get"?void 0:!1;var y=b[p](h===0?0:h,g);return f?this:y})}),i||bj(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return yj(c,e,!1,!0),l[e]=c,lj({global:!0,forced:!0},l),i||r.setStrong(c,e,n),c}});var GI=m((KX,BI)=>{"use strict";var Ej=xe(),qI=js(),Vs=No().getWeakData,Aj=$s(),Cj=gr(),kj=fn(),_p=Le(),xj=Hs(),MI=$r(),UI=It(),FI=wn(),Tj=FI.set,Pj=FI.getterFor,Rj=MI.find,Oj=MI.findIndex,Nj=Ej([].splice),Dj=0,Ws=function(e){return e.frozen||(e.frozen=new jI)},jI=function(){this.entries=[]},wp=function(e,t){return Rj(e.entries,function(r){return r[0]===t})};jI.prototype={get:function(e){var t=wp(this,e);if(t)return t[1]},has:function(e){return!!wp(this,e)},set:function(e,t){var r=wp(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=Oj(this.entries,function(r){return r[0]===e});return~t&&Nj(this.entries,t,1),!!~t}};BI.exports={getConstructor:function(e,t,r,n){var i=e(function(l,c){Aj(l,o),Tj(l,{type:t,id:Dj++,frozen:null}),kj(c)||xj(c,l[n],{that:l,AS_ENTRIES:r})}),o=i.prototype,a=Pj(t),s=function(l,c,d){var u=a(l),p=Vs(Cj(c),!0);return p===!0?Ws(u).set(c,d):p[u.id]=d,l};return qI(o,{delete:function(l){var c=a(this);if(!_p(l))return!1;var d=Vs(l);return d===!0?Ws(c).delete(l):d&&UI(d,c.id)&&delete d[c.id]},has:function(c){var d=a(this);if(!_p(c))return!1;var u=Vs(c);return u===!0?Ws(d).has(c):u&&UI(u,d.id)}}),qI(o,r?{get:function(c){var d=a(this);if(_p(c)){var u=Vs(c);if(u===!0)return Ws(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 YI=m(()=>{"use strict";var Lj=fp(),JI=Se(),Qs=xe(),HI=js(),qj=No(),Uj=bp(),$I=GI(),zs=Le(),Ks=wn().enforce,Mj=we(),Fj=Jd(),qo=Object,jj=Array.isArray,Ys=qo.isExtensible,VI=qo.isFrozen,Bj=qo.isSealed,WI=qo.freeze,Gj=qo.seal,Jj=!JI.ActiveXObject&&"ActiveXObject"in JI,Do,zI=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},KI=Uj("WeakMap",zI,$I),ai=KI.prototype,Xs=Qs(ai.set),Hj=function(){return Lj&&Mj(function(){var e=WI([]);return Xs(new KI,e,1),!VI(e)})};Fj&&(Jj?(Do=$I.getConstructor(zI,"WeakMap",!0),qj.enable(),Sp=Qs(ai.delete),Lo=Qs(ai.has),Ip=Qs(ai.get),HI(ai,{delete:function(e){if(zs(e)&&!Ys(e)){var t=Ks(this);return t.frozen||(t.frozen=new Do),Sp(this,e)||t.frozen.delete(e)}return Sp(this,e)},has:function(t){if(zs(t)&&!Ys(t)){var r=Ks(this);return r.frozen||(r.frozen=new Do),Lo(this,t)||r.frozen.has(t)}return Lo(this,t)},get:function(t){if(zs(t)&&!Ys(t)){var r=Ks(this);return r.frozen||(r.frozen=new Do),Lo(this,t)?Ip(this,t):r.frozen.get(t)}return Ip(this,t)},set:function(t,r){if(zs(t)&&!Ys(t)){var n=Ks(this);n.frozen||(n.frozen=new Do),Lo(this,t)?Xs(this,t,r):n.frozen.set(t,r)}else Xs(this,t,r);return this}})):Hj()&&HI(ai,{set:function(t,r){var n;return jj(t)&&(VI(t)?n=WI:Bj(t)&&(n=Gj)),Xs(this,t,r),n&&n(t),this}}));var Sp,Lo,Ip});var QI=m(()=>{"use strict";YI()});var ZI=m((eZ,XI)=>{"use strict";Fs();pp();QI();var $j=Yt();XI.exports=$j.WeakMap});var t0=m((tZ,e0)=>{"use strict";e0.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 Ep=m(()=>{"use strict";Fs();var Vj=t0(),Wj=Se(),zj=Po(),r0=bn();for(Zs in Vj)zj(Wj[Zs],Zs),r0[Zs]=r0.Array;var Zs});var i0=m((iZ,n0)=>{"use strict";var Kj=ZI();Ep();n0.exports=Kj});var a0=m((oZ,o0)=>{o0.exports=i0()});var l0=m(()=>{"use strict";var Yj=ae(),Qj=co(),Xj=Qd().indexOf,Zj=wo(),Ap=Qj([].indexOf),s0=!!Ap&&1/Ap([1],1,-0)<0,eB=s0||!Zj("indexOf");Yj({target:"Array",proto:!0,forced:eB},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return s0?Ap(this,t,r)||0:Xj(this,t,r)}})});var u0=m((lZ,c0)=>{"use strict";l0();var tB=Ot();c0.exports=tB("Array","indexOf")});var p0=m((cZ,d0)=>{"use strict";var rB=at(),nB=u0(),Cp=Array.prototype;d0.exports=function(e){var t=e.indexOf;return e===Cp||rB(Cp,e)&&t===Cp.indexOf?nB:t}});var h0=m((uZ,f0)=>{"use strict";var iB=p0();f0.exports=iB});var g0=m((dZ,m0)=>{m0.exports=h0()});var v0=m(()=>{"use strict";var oB=ae(),aB=$r().map,sB=_o(),lB=sB("map");oB({target:"Array",proto:!0,forced:!lB},{map:function(t){return aB(this,t,arguments.length>1?arguments[1]:void 0)}})});var b0=m((hZ,y0)=>{"use strict";v0();var cB=Ot();y0.exports=cB("Array","map")});var w0=m((mZ,_0)=>{"use strict";var uB=at(),dB=b0(),kp=Array.prototype;_0.exports=function(e){var t=e.map;return e===kp||uB(kp,e)&&t===kp.map?dB:t}});var I0=m((gZ,S0)=>{"use strict";var pB=w0();S0.exports=pB});var A0=m((vZ,E0)=>{E0.exports=I0()});var C0=m(()=>{"use strict";var fB=ae(),hB=st(),mB=To();fB({target:"Object",stat:!0,sham:!hB},{create:mB})});var x0=m((_Z,k0)=>{"use strict";C0();var gB=Yt(),vB=gB.Object;k0.exports=function(t,r){return vB.create(t,r)}});var P0=m((wZ,T0)=>{"use strict";var yB=x0();T0.exports=yB});var O0=m((SZ,R0)=>{R0.exports=P0()});var xp=m((IZ,N0)=>{"use strict";var bB=vr();N0.exports=function(e,t,r){return bB.f(e,t,r)}});var q0=m((EZ,L0)=>{"use strict";var _B=Kn(),wB=xp(),SB=et(),IB=st(),D0=SB("species");L0.exports=function(e){var t=_B(e);IB&&t&&!t[D0]&&wB(t,D0,{configurable:!0,get:function(){return this}})}});var J0=m((AZ,G0)=>{"use strict";var U0=To(),EB=xp(),M0=js(),AB=mo(),CB=$s(),kB=fn(),xB=Hs(),TB=qs(),el=Us(),PB=q0(),Uo=st(),F0=No().fastKey,B0=wn(),j0=B0.set,Tp=B0.getterFor;G0.exports={getConstructor:function(e,t,r,n){var i=e(function(c,d){CB(c,o),j0(c,{type:t,index:U0(null),first:null,last:null,size:0}),Uo||(c.size=0),kB(d)||xB(d,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=Tp(t),s=function(c,d,u){var p=a(c),f=l(c,d),h,g;return f?f.value=u:(p.last=f={index:g=F0(d,!0),key:d,value:u,previous:h=p.last,next:null,removed:!1},p.first||(p.first=f),h&&(h.next=f),Uo?p.size++:c.size++,g!=="F"&&(p.index[g]=f)),c},l=function(c,d){var u=a(c),p=F0(d),f;if(p!=="F")return u.index[p];for(f=u.first;f;f=f.next)if(f.key===d)return f};return M0(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=U0(null),Uo?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,h=p.previous;delete u.index[p.index],p.removed=!0,h&&(h.next=f),f&&(f.previous=h),u.first===p&&(u.first=f),u.last===p&&(u.last=h),Uo?u.size--:d.size--}return!!p},forEach:function(d){for(var u=a(this),p=AB(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)}}),M0(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)}}),Uo&&EB(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=Tp(t),o=Tp(n);TB(e,t,function(a,s){j0(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,el(void 0,!0)):el(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},r?"entries":"values",!r,!0),PB(t)}}});var H0=m(()=>{"use strict";var RB=bp(),OB=J0();RB("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},OB)});var $0=m(()=>{"use strict";H0()});var Wr=m((PZ,V0)=>{"use strict";var NB=po(),DB=TypeError;V0.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 DB(NB(e)+" is not a set")}});var z0=m((RZ,W0)=>{"use strict";W0.exports=function(e,t){return t===1?function(r,n){return r[e](n)}:function(r,n,i){return r[e](n,i)}}});var zr=m((OZ,Y0)=>{"use strict";var LB=Kn(),Pp=z0(),K0=LB("Set"),qB=K0.prototype;Y0.exports={Set:K0,add:Pp("add",1),has:Pp("has",1),remove:Pp("delete",1),proto:qB}});var Kr=m((NZ,Q0)=>{"use strict";var UB=jt();Q0.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,o,a;!(o=UB(i,n)).done;)if(a=t(o.value),a!==void 0)return a}});var si=m((DZ,X0)=>{"use strict";var MB=Kr();X0.exports=function(e,t,r){return r?MB(e.keys(),t,!0):e.forEach(t)}});var tl=m((LZ,eE)=>{"use strict";var Z0=zr(),FB=si(),jB=Z0.Set,BB=Z0.add;eE.exports=function(e){var t=new jB;return FB(e,function(r){BB(t,r)}),t}});var li=m((qZ,tE)=>{"use strict";tE.exports=function(e){return e.size}});var nE=m((UZ,rE)=>{"use strict";rE.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var Yr=m((MZ,cE)=>{"use strict";var iE=mn(),sE=gr(),oE=jt(),GB=vo(),JB=nE(),aE="Invalid size",HB=RangeError,$B=TypeError,VB=Math.max,lE=function(e,t){this.set=e,this.size=VB(t,0),this.has=iE(e.has),this.keys=iE(e.keys)};lE.prototype={getIterator:function(){return JB(sE(oE(this.keys,this.set)))},includes:function(e){return oE(this.has,this.set,e)}};cE.exports=function(e){sE(e);var t=+e.size;if(t!==t)throw new $B(aE);var r=GB(t);if(r<0)throw new HB(aE);return new lE(e,r)}});var fE=m((FZ,pE)=>{"use strict";var WB=Wr(),dE=zr(),zB=tl(),KB=li(),YB=Yr(),QB=si(),XB=Kr(),ZB=dE.has,uE=dE.remove;pE.exports=function(t){var r=WB(this),n=YB(t),i=zB(r);return KB(r)<=n.size?QB(r,function(o){n.includes(o)&&uE(i,o)}):XB(n.getIterator(),function(o){ZB(r,o)&&uE(i,o)}),i}});var Qr=m((jZ,hE)=>{"use strict";hE.exports=function(){return!1}});var mE=m(()=>{"use strict";var eG=ae(),tG=fE(),rG=Qr(),nG=!rG("difference",function(e){return e.size===0});eG({target:"Set",proto:!0,real:!0,forced:nG},{difference:tG})});var yE=m((JZ,vE)=>{"use strict";var iG=Wr(),Rp=zr(),oG=li(),aG=Yr(),sG=si(),lG=Kr(),cG=Rp.Set,gE=Rp.add,uG=Rp.has;vE.exports=function(t){var r=iG(this),n=aG(t),i=new cG;return oG(r)>n.size?lG(n.getIterator(),function(o){uG(r,o)&&gE(i,o)}):sG(r,function(o){n.includes(o)&&gE(i,o)}),i}});var bE=m(()=>{"use strict";var dG=ae(),pG=we(),fG=yE(),hG=Qr(),mG=!hG("intersection",function(e){return e.size===2&&e.has(1)&&e.has(2)})||pG(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});dG({target:"Set",proto:!0,real:!0,forced:mG},{intersection:fG})});var wE=m((VZ,_E)=>{"use strict";var gG=Wr(),vG=zr().has,yG=li(),bG=Yr(),_G=si(),wG=Kr(),SG=Gs();_E.exports=function(t){var r=gG(this),n=bG(t);if(yG(r)<=n.size)return _G(r,function(o){if(n.includes(o))return!1},!0)!==!1;var i=n.getIterator();return wG(i,function(o){if(vG(r,o))return SG(i,"normal",!1)})!==!1}});var SE=m(()=>{"use strict";var IG=ae(),EG=wE(),AG=Qr(),CG=!AG("isDisjointFrom",function(e){return!e});IG({target:"Set",proto:!0,real:!0,forced:CG},{isDisjointFrom:EG})});var EE=m((KZ,IE)=>{"use strict";var kG=Wr(),xG=li(),TG=si(),PG=Yr();IE.exports=function(t){var r=kG(this),n=PG(t);return xG(r)>n.size?!1:TG(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var AE=m(()=>{"use strict";var RG=ae(),OG=EE(),NG=Qr(),DG=!NG("isSubsetOf",function(e){return e});RG({target:"Set",proto:!0,real:!0,forced:DG},{isSubsetOf:OG})});var kE=m((XZ,CE)=>{"use strict";var LG=Wr(),qG=zr().has,UG=li(),MG=Yr(),FG=Kr(),jG=Gs();CE.exports=function(t){var r=LG(this),n=MG(t);if(UG(r)<n.size)return!1;var i=n.getIterator();return FG(i,function(o){if(!qG(r,o))return jG(i,"normal",!1)})!==!1}});var xE=m(()=>{"use strict";var BG=ae(),GG=kE(),JG=Qr(),HG=!JG("isSupersetOf",function(e){return!e});BG({target:"Set",proto:!0,real:!0,forced:HG},{isSupersetOf:GG})});var PE=m((tee,TE)=>{"use strict";var $G=Wr(),Op=zr(),VG=tl(),WG=Yr(),zG=Kr(),KG=Op.add,YG=Op.has,QG=Op.remove;TE.exports=function(t){var r=$G(this),n=WG(t).getIterator(),i=VG(r);return zG(n,function(o){YG(r,o)?QG(i,o):KG(i,o)}),i}});var RE=m(()=>{"use strict";var XG=ae(),ZG=PE(),eJ=Qr();XG({target:"Set",proto:!0,real:!0,forced:!eJ("symmetricDifference")},{symmetricDifference:ZG})});var NE=m((iee,OE)=>{"use strict";var tJ=Wr(),rJ=zr().add,nJ=tl(),iJ=Yr(),oJ=Kr();OE.exports=function(t){var r=tJ(this),n=iJ(t).getIterator(),i=nJ(r);return oJ(n,function(o){rJ(i,o)}),i}});var DE=m(()=>{"use strict";var aJ=ae(),sJ=NE(),lJ=Qr();aJ({target:"Set",proto:!0,real:!0,forced:!lJ("union")},{union:sJ})});var Mo=m((see,LE)=>{"use strict";var cJ=ri(),uJ=String;LE.exports=function(e){if(cJ(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return uJ(e)}});var FE=m((lee,ME)=>{"use strict";var Np=xe(),dJ=vo(),pJ=Mo(),fJ=hn(),hJ=Np("".charAt),qE=Np("".charCodeAt),mJ=Np("".slice),UE=function(e){return function(t,r){var n=pJ(fJ(t)),i=dJ(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=qE(n,i),a<55296||a>56319||i+1===o||(s=qE(n,i+1))<56320||s>57343?e?hJ(n,i):a:e?mJ(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};ME.exports={codeAt:UE(!1),charAt:UE(!0)}});var JE=m(()=>{"use strict";var gJ=FE().charAt,vJ=Mo(),BE=wn(),yJ=qs(),jE=Us(),GE="String Iterator",bJ=BE.set,_J=BE.getterFor(GE);yJ(String,"String",function(e){bJ(this,{type:GE,string:vJ(e),index:0})},function(){var t=_J(this),r=t.string,n=t.index,i;return n>=r.length?jE(void 0,!0):(i=gJ(r,n),t.index+=i.length,jE(i,!1))})});var $E=m((dee,HE)=>{"use strict";Fs();pp();$0();mE();bE();SE();AE();xE();RE();DE();JE();var wJ=Yt();HE.exports=wJ.Set});var WE=m((pee,VE)=>{"use strict";var SJ=$E();Ep();VE.exports=SJ});var KE=m((fee,zE)=>{zE.exports=WE()});var QE=m(YE=>{"use strict";YE.f=Object.getOwnPropertySymbols});var tA=m((mee,eA)=>{"use strict";var XE=st(),IJ=xe(),EJ=jt(),AJ=we(),Dp=ep(),CJ=QE(),kJ=Qu(),xJ=Qn(),TJ=fs(),ci=Object.assign,ZE=Object.defineProperty,PJ=IJ([].concat);eA.exports=!ci||AJ(function(){if(XE&&ci({b:1},ci(ZE({},"a",{enumerable:!0,get:function(){ZE(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}),ci({},e)[r]!==7||Dp(ci({},t)).join("")!==n})?function(t,r){for(var n=xJ(t),i=arguments.length,o=1,a=CJ.f,s=kJ.f;i>o;)for(var l=TJ(arguments[o++]),c=a?PJ(Dp(l),a(l)):Dp(l),d=c.length,u=0,p;d>u;)p=c[u++],(!XE||EJ(s,l,p))&&(n[p]=l[p]);return n}:ci});var nA=m(()=>{"use strict";var RJ=ae(),rA=tA();RJ({target:"Object",stat:!0,arity:2,forced:Object.assign!==rA},{assign:rA})});var oA=m((yee,iA)=>{"use strict";nA();var OJ=Yt();iA.exports=OJ.Object.assign});var sA=m((bee,aA)=>{"use strict";var NJ=oA();aA.exports=NJ});var cA=m((_ee,lA)=>{lA.exports=sA()});var Lp=m((wee,uA)=>{"use strict";uA.exports=`
22
+ \v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var fA=m((See,pA)=>{"use strict";var DJ=xe(),LJ=hn(),qJ=Mo(),Up=Lp(),dA=DJ("".replace),UJ=RegExp("^["+Up+"]+"),MJ=RegExp("(^|[^"+Up+"])["+Up+"]+$"),qp=function(e){return function(t){var r=qJ(LJ(t));return e&1&&(r=dA(r,UJ,"")),e&2&&(r=dA(r,MJ,"$1")),r}};pA.exports={start:qp(1),end:qp(2),trim:qp(3)}});var vA=m((Iee,gA)=>{"use strict";var FJ=Kd().PROPER,jJ=we(),hA=Lp(),mA="\u200B\x85\u180E";gA.exports=function(e){return jJ(function(){return!!hA[e]()||mA[e]()!==mA||FJ&&hA[e].name!==e})}});var yA=m(()=>{"use strict";var BJ=ae(),GJ=fA().trim,JJ=vA();BJ({target:"String",proto:!0,forced:JJ("trim")},{trim:function(){return GJ(this)}})});var _A=m((Cee,bA)=>{"use strict";yA();var HJ=Ot();bA.exports=HJ("String","trim")});var SA=m((kee,wA)=>{"use strict";var $J=at(),VJ=_A(),Mp=String.prototype;wA.exports=function(e){var t=e.trim;return typeof e=="string"||e===Mp||$J(Mp,e)&&t===Mp.trim?VJ:t}});var EA=m((xee,IA)=>{"use strict";var WJ=SA();IA.exports=WJ});var CA=m((Tee,AA)=>{AA.exports=EA()});var TA=m(()=>{"use strict";var zJ=ae(),kA=yo(),KJ=Id(),YJ=Le(),xA=Yd(),QJ=ti(),XJ=Jr(),ZJ=xd(),e2=et(),t2=_o(),r2=Io(),n2=t2("slice"),i2=e2("species"),Fp=Array,o2=Math.max;zJ({target:"Array",proto:!0,forced:!n2},{slice:function(t,r){var n=XJ(this),i=QJ(n),o=xA(t,i),a=xA(r===void 0?i:r,i),s,l,c;if(kA(n)&&(s=n.constructor,KJ(s)&&(s===Fp||kA(s.prototype))?s=void 0:YJ(s)&&(s=s[i2],s===null&&(s=void 0)),s===Fp||s===void 0))return r2(n,o,a);for(l=new(s===void 0?Fp:s)(o2(a-o,0)),c=0;o<a;o++,c++)o in n&&ZJ(l,c,n[o]);return l.length=c,l}})});var RA=m((Oee,PA)=>{"use strict";TA();var a2=Ot();PA.exports=a2("Array","slice")});var NA=m((Nee,OA)=>{"use strict";var s2=at(),l2=RA(),jp=Array.prototype;OA.exports=function(e){var t=e.slice;return e===jp||s2(jp,e)&&t===jp.slice?l2:t}});var LA=m((Dee,DA)=>{"use strict";var c2=NA();DA.exports=c2});var UA=m((Lee,qA)=>{qA.exports=LA()});var Bp=x(()=>{});var FA=m((Uee,MA)=>{"use strict";var u2=Le(),d2=mr(),p2=et(),f2=p2("match");MA.exports=function(e){var t;return u2(e)&&((t=e[f2])!==void 0?!!t:d2(e)==="RegExp")}});var BA=m((Mee,jA)=>{"use strict";var h2=FA(),m2=TypeError;jA.exports=function(e){if(h2(e))throw new m2("The method doesn't accept regular expressions");return e}});var JA=m((Fee,GA)=>{"use strict";var g2=et(),v2=g2("match");GA.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[v2]=!1,"/./"[e](t)}catch(n){}}return!1}});var VA=m(()=>{"use strict";var y2=ae(),b2=co(),_2=hd().f,w2=_d(),HA=Mo(),S2=BA(),I2=hn(),E2=JA(),A2=Yn(),C2=b2("".slice),k2=Math.min,$A=E2("startsWith"),x2=!A2&&!$A&&!!function(){var e=_2(String.prototype,"startsWith");return e&&!e.writable}();y2({target:"String",proto:!0,forced:!x2&&!$A},{startsWith:function(t){var r=HA(I2(this));S2(t);var n=w2(k2(arguments.length>1?arguments[1]:void 0,r.length)),i=HA(t);return C2(r,n,n+i.length)===i}})});var zA=m((Gee,WA)=>{"use strict";VA();var T2=Ot();WA.exports=T2("String","startsWith")});var YA=m((Jee,KA)=>{"use strict";var P2=at(),R2=zA(),Gp=String.prototype;KA.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===Gp||P2(Gp,e)&&t===Gp.startsWith?R2:t}});var XA=m((Hee,QA)=>{"use strict";var O2=YA();QA.exports=O2});var eC=m(($ee,ZA)=>{ZA.exports=XA()});var oC=m((Vee,iC)=>{"use strict";var rC=xe(),N2=mn(),D2=Le(),L2=It(),tC=Io(),q2=zn(),nC=Function,U2=rC([].concat),M2=rC([].join),Jp={},F2=function(e,t,r){if(!L2(Jp,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";Jp[t]=nC("C,a","return new C("+M2(n,",")+")")}return Jp[t](e,r)};iC.exports=q2?nC.bind:function(t){var r=N2(this),n=r.prototype,i=tC(arguments,1),o=function(){var s=U2(i,tC(arguments));return this instanceof o?F2(r,s.length,s):r.apply(t,s)};return D2(n)&&(o.prototype=n),o}});var sC=m(()=>{"use strict";var j2=ae(),aC=oC();j2({target:"Function",proto:!0,forced:Function.bind!==aC},{bind:aC})});var cC=m((Kee,lC)=>{"use strict";sC();var B2=Ot();lC.exports=B2("Function","bind")});var dC=m((Yee,uC)=>{"use strict";var G2=at(),J2=cC(),Hp=Function.prototype;uC.exports=function(e){var t=e.bind;return e===Hp||G2(Hp,e)&&t===Hp.bind?J2:t}});var fC=m((Qee,pC)=>{"use strict";var H2=dC();pC.exports=H2});var mC=m((Xee,hC)=>{hC.exports=fC()});function _l(e,t){Te.__h&&Te.__h(ve,e,$o||t),$o=0;var r=ve.__H||(ve.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function nr(e){return $o=1,$2(nk,e)}function $2(e,t,r){var n=_l(fi++,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=ve,!ve.__f)){var i=function(s,l,c){var d;if(!n.__c.__H)return!0;var u=(0,pf.default)(d=n.__c.__H.__).call(d,function(f){return!!f.__c});if((0,XC.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,qe.default)(u).call(u,function(f){if(f.__N){var h=f.__[0];f.__=f.__N,f.__N=void 0,h!==f.__[0]&&(p=!0)}}),o&&o.call(this,s,l,c)||p};ve.__f=!0;var o=ve.shouldComponentUpdate,a=ve.componentWillUpdate;ve.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)},ve.shouldComponentUpdate=i}return n.__N||n.__}function In(e,t){var r=_l(fi++,3);!Te.__s&&rk(r.__H,t)&&(r.__=e,r.u=t,ve.__H.__h.push(r))}function Bo(e){return $o=5,Sr(function(){return{current:e}},[])}function Sr(e,t){var r=_l(fi++,7);return rk(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Nt(e,t){return $o=8,Sr(function(){return e},t)}function V2(e){var t=ve.context[e.__c],r=_l(fi++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(ve)),t.props.value):e.__}function W2(){for(var e;e=tk.shift();)if(e.__P&&e.__H)try{var t,r;(0,qe.default)(t=e.__H.__h).call(t,al),(0,qe.default)(r=e.__H.__h).call(r,Zp),e.__H.__h=[]}catch(n){e.__H.__h=[],Te.__e(n,e.__v)}}function z2(e){var t,r=function(){clearTimeout(n),IC&&cancelAnimationFrame(t),(0,rr.default)(e)},n=(0,rr.default)(r,100);IC&&(t=requestAnimationFrame(r))}function al(e){var t=ve,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ve=t}function Zp(e){var t=ve;e.__c=e.__(),ve=t}function rk(e,t){return!e||e.length!==t.length||(0,hl.default)(t).call(t,function(r,n){return r!==e[n]})}function nk(e,t){return typeof t=="function"?t(e):t}function K2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ef(){throw new Error("setTimeout has not been defined")}function tf(){throw new Error("clearTimeout has not been defined")}function ok(e){if(Qt===rr.default)return(0,rr.default)(e,0);if((Qt===ef||!Qt)&&rr.default)return Qt=rr.default,(0,rr.default)(e,0);try{return Qt(e,0)}catch(t){try{return Qt.call(null,e,0)}catch(r){return Qt.call(this,e,0)}}}function Y2(e){if(Xt===clearTimeout)return clearTimeout(e);if((Xt===tf||!Xt)&&clearTimeout)return Xt=clearTimeout,clearTimeout(e);try{return Xt(e)}catch(t){try{return Xt.call(null,e)}catch(r){return Xt.call(this,e)}}}function Q2(){!ui||!Zr||(ui=!1,Zr.length?wr=(0,bl.default)(Zr).call(Zr,wr):sl=-1,wr.length&&ak())}function ak(){if(!ui){var e=ok(Q2);ui=!0;for(var t=wr.length;t;){for(Zr=wr,wr=[];++sl<t;)Zr&&Zr[sl].run();sl=-1,t=wr.length}Zr=null,ui=!1,Y2(e)}}function sk(e,t){this.fun=e,this.array=t}function Er(){}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 oH(e,t){return We(e,0)^45?(((t<<2^We(e,0))<<2^We(e,1))<<2^We(e,2))<<2^We(e,3):0}function uk(e){return(0,mf.default)(e).call(e)}function aH(e,t){return(e=t.exec(e))?e[0]:e}function ne(e,t,r){return e.replace(t,r)}function rf(e,t){return(0,Ir.default)(e).call(e,t)}function We(e,t){return e.charCodeAt(t)|0}function Vo(e,t,r){return(0,gf.default)(e).call(e,t,r)}function Zt(e){return e.length}function _f(e){return e.length}function rl(e,t){return t.push(e),e}function sH(e,t){return(0,Ho.default)(e).call(e,t).join("")}function Il(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Sl,column:hi,length:a,return:""}}function Fo(e,t){return iH(Il("",null,null,"",null,null,0),e,{length:-e.length},t)}function lH(){return Pe}function cH(){return Pe=pt>0?We(gi,--pt):0,hi--,Pe===10&&(hi=1,Sl--),Pe}function Et(){return Pe=pt<dk?We(gi,pt++):0,hi++,Pe===10&&(hi=1,Sl++),Pe}function ir(){return We(gi,pt)}function ll(){return pt}function Xo(e,t){return Vo(gi,e,t)}function Wo(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 pk(e){return Sl=hi=1,dk=Zt(gi=e),pt=0,[]}function fk(e){return gi="",e}function cl(e){return uk(Xo(pt-1,nf(e===91?e+2:e===40?e+1:e)))}function uH(e){for(;(Pe=ir())&&Pe<33;)Et();return Wo(e)>2||Wo(Pe)>3?"":" "}function dH(e,t){for(;--t&&Et()&&!(Pe<48||Pe>102||Pe>57&&Pe<65||Pe>70&&Pe<97););return Xo(e,ll()+(t<6&&ir()==32&&Et()==32))}function nf(e){for(;Et();)switch(Pe){case e:return pt;case 34:case 39:e!==34&&e!==39&&nf(Pe);break;case 40:e===41&&nf(e);break;case 92:Et();break}return pt}function pH(e,t){for(;Et()&&e+Pe!==57&&!(e+Pe===84&&ir()===47););return"/*"+Xo(t,pt-1)+"*"+wl(e===47?e:Et())}function fH(e){for(;!Wo(ir());)Et();return Xo(e,pt)}function hH(e){return fk(ul("",null,null,null,[""],e=pk(e),0,[0],e))}function ul(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,h=0,g=1,b=1,y=1,_=0,I="",E=i,T=o,k=n,C=I;b;)switch(h=_,_=Et()){case 40:if(h!=108&&We(C,u-1)==58){rf(C+=ne(cl(_),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:C+=cl(_);break;case 9:case 10:case 13:case 32:C+=uH(h);break;case 92:C+=dH(ll()-1,7);continue;case 47:switch(ir()){case 42:case 47:rl(mH(pH(Et(),ll()),t,r),l);break;default:C+="/"}break;case 123*g:s[c++]=Zt(C)*y;case 125*g:case 59:case 0:switch(_){case 0:case 125:b=0;case 59+d:f>0&&Zt(C)-u&&rl(f>32?AC(C+";",n,r,u-1):AC(ne(C," ","")+";",n,r,u-2),l);break;case 59:C+=";";default:if(rl(k=EC(C,t,r,c,d,i,s,I,E=[],T=[],u),o),_===123)if(d===0)ul(C,t,k,k,E,o,u,s,T);else switch(p===99&&We(C,3)===110?100:p){case 100:case 109:case 115:ul(e,k,k,n&&rl(EC(e,k,k,0,0,i,s,I,i,E=[],u),T),i,T,u,s,n?E:T);break;default:ul(C,k,k,k,[""],T,0,s,T)}}c=d=f=0,g=y=1,I=C="",u=a;break;case 58:u=1+Zt(C),f=h;default:if(g<1){if(_==123)--g;else if(_==125&&g++==0&&cH()==125)continue}switch(C+=wl(_),_*g){case 38:y=d>0?1:(C+="\f",-1);break;case 44:s[c++]=(Zt(C)-1)*y,y=1;break;case 64:ir()===45&&(C+=cl(Et())),p=ir(),d=u=Zt(I=C+=fH(ll())),_++;break;case 45:h===45&&Zt(C)==2&&(g=0)}}return o}function EC(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=_f(p),h=0,g=0,b=0;h<n;++h)for(var y=0,_=Vo(e,u+1,u=nH(g=a[h])),I=e;y<f;++y)(I=uk(g>0?p[y]+" "+_:ne(_,/&\f/g,p[y])))&&(l[b++]=I);return Il(e,t,r,i===0?yf:s,l,c,d)}function mH(e,t,r){return Il(e,t,r,vf,wl(lH()),Vo(e,2,-2),0)}function AC(e,t,r,n){return Il(e,t,r,bf,Vo(e,0,n),Vo(e,n+1,-1),n)}function di(e,t){for(var r="",n=_f(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function gH(e,t,r,n){switch(e.type){case rH:case bf:return e.return=e.return||e.value;case vf:return"";case ck:return e.return=e.value+"{"+di(e.children,n)+"}";case yf:e.value=e.props.join(",")}return Zt(r=di(e.children,n))?e.return=e.value+"{"+r+"}":""}function vH(e){var t=_f(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 yH(e){return function(t){t.root||(t=t.return)&&e(t)}}function mk(e,t){switch(oH(e,t)){case 5103:return Q+"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 Q+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Q+e+gl+e+tt+e+e;case 6828:case 4268:return Q+e+tt+e+e;case 6165:return Q+e+tt+"flex-"+e+e;case 5187:return Q+e+ne(e,/(\w+).+(:[^]+)/,Q+"box-$1$2"+tt+"flex-$1$2")+e;case 5443:return Q+e+tt+"flex-item-"+ne(e,/flex-|-self/,"")+e;case 4675:return Q+e+tt+"flex-line-pack"+ne(e,/align-content|flex-|-self/,"")+e;case 5548:return Q+e+tt+ne(e,"shrink","negative")+e;case 5292:return Q+e+tt+ne(e,"basis","preferred-size")+e;case 6060:return Q+"box-"+ne(e,"-grow","")+Q+e+tt+ne(e,"grow","positive")+e;case 4554:return Q+ne(e,/([^-])(transform)/g,"$1"+Q+"$2")+e;case 6187:return ne(ne(ne(e,/(zoom-|grab)/,Q+"$1"),/(image-set)/,Q+"$1"),e,"")+e;case 5495:case 3959:return ne(e,/(image-set\([^]*)/,Q+"$1$`$1");case 4968:return ne(ne(e,/(.+:)(flex-)?(.*)/,Q+"box-pack:$3"+tt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Q+e+e;case 4095:case 3583:case 4068:case 2532:return ne(e,/(.+)-inline(.+)/,Q+"$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(Zt(e)-1-t>6)switch(We(e,t+1)){case 109:if(We(e,t+4)!==45)break;case 102:return ne(e,/(.+:)(.+)-([^]+)/,"$1"+Q+"$2-$3$1"+gl+(We(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~rf(e,"stretch")?mk(ne(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(We(e,t+1)!==115)break;case 6444:switch(We(e,Zt(e)-3-(~rf(e,"!important")&&10))){case 107:return ne(e,":",":"+Q)+e;case 101:return ne(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Q+(We(e,14)===45?"inline-":"")+"box$3$1"+Q+"$2$3$1"+tt+"$2box$3")+e}break;case 5936:switch(We(e,t+11)){case 114:return Q+e+tt+ne(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Q+e+tt+ne(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Q+e+tt+ne(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Q+e+tt+e+e}return e}function vk(){if(xC)return nl.exports;xC=1;let e=vk();return nl.exports={default:e},nl.exports.default=e,nl.exports}function zo(e,t,r){var n,i="";return(0,qe.default)(n=r.split(" ")).call(n,function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}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 DH(e){var t=(0,ZC.default)(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function Ko(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 er={name:i.name,styles:i.styles,next:er},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)er={name:a.name,styles:a.styles,next:er},a=a.next;var s=o.styles+";";return s}return UH(e,t,r)}case"function":{if(e!==void 0){var l=er,c=r(e);return er=l,Ko(e,t,c)}break}}var d=r;if(t==null)return d;var u=t[d];return u!==void 0?u:d}function UH(e,t,r){var n="";if((0,Jo.default)(r))for(var i=0;i<r.length;i++)n+=Ko(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]+"}":TC(s)&&(n+=Vp(o)+":"+PC(o,s)+";")}else if((0,Jo.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)TC(a[l])&&(n+=Vp(o)+":"+PC(o,a[l])+";");else{var c=Ko(e,t,a);switch(o){case"animation":case"animationName":{n+=Vp(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function en(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="";er=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=Ko(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Ko(r,t,e[s]),n){var l=o;i+=l[s]}RC.lastIndex=0;for(var c="",d;(d=RC.exec(i))!==null;)c+="-"+d[1];var u=OH(i)+c;return{name:u,styles:i,next:er}}function U(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return en(t)}function zH(e,t,r){var n=[],i=zo(e,n,r);return n.length<2?r:i+t(n)}function w(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:--QH,__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 q.vnode&&q.vnode(c),c}function Zo(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=nr(e());return In(()=>{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 m3(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 xk(e){let t=window.getComputedStyle(document.body).transform,r="";t&&t!=="none"&&(r=m3(t)),e.style.transform=r,e.style.transformOrigin="0 0"}function g3(e){let t=()=>xk(e);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}}function b3(s){var l=s,{elementTag:e="Image",src:t="",children:r,handleExposure:n,className:i,imgStyle:o}=l,a=Xe(l,["elementTag","src","children","handleExposure","className","imgStyle"]);let c=y3(()=>{t&&n()});return e==="Image"?w("div",{className:i,style:{borderRadius:"8px"},children:Ze("img",B(P({},a),{ref:c,src:t!=null?t:"",style:P({display:"block",width:"100%",height:"auto",objectFit:"cover",maxWidth:"100%",maxHeight:"100%",aspectRatio:"1 / 1",borderRadius:"8px"},o||{})}))}):w("div",B(P({},a),{ref:c,className:i,children:r}))}function _3(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?Ze(i.type,B(P({},i.props),{style:B(P({},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?Ze(e.type,B(P({},e.props),{style:B(P({},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 A3(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 JC(e,t,r){return Al.call(t,"css")?w(Ef,Sk(e,t),r):w(e,t,r)}function R3(e,t,r){return Al.call(t,"css")?w(Ef,Sk(e,t),r):w(e,t,r)}function cf({children:e,values:t={},style:r}){let n=e.split(/({{\s*\w+\s*}})/g);return w("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?w($e,{children:t[s]},o):null}return w($e,{children:i},o)})})}function D3({src:e,alt:t="",width:r=120,height:n=120,top:i="-60px",style:o={}}){let[a,s]=nr(!1);return a?null:w("div",{style:P({position:"absolute",top:i,left:"50%",transform:"translateX(-50%)",zIndex:10,width:r,height:n},o),children:w("img",{src:e,alt:t,width:r,height:n,style:{display:"block",width:"100%",height:"100%",objectFit:"contain"},onError:()=>s(!0)})})}function U3({children:e,style:t}){return w("div",{style:`${L3.styles} ${t}`,children:[e,w("svg",{style:`${q3.styles} `,width:"18",height:"10",viewBox:"0 0 18 10",children:[w("polygon",{points:"9,10 0,1 18,1",fill:"#ffffff52"}),w("polygon",{points:"9,9 2,1 16,1",fill:"#4F396D"})]})]})}function X3(e,t){return ze(e,0)^45?(((t<<2^ze(e,0))<<2^ze(e,1))<<2^ze(e,2))<<2^ze(e,3):0}function Gk(e){return(0,mf.default)(e).call(e)}function Z3(e,t){return(e=t.exec(e))?e[0]:e}function Z(e,t,r){return e.replace(t,r)}function uf(e,t){return(0,Ir.default)(e).call(e,t)}function ze(e,t){return e.charCodeAt(t)|0}function Yo(e,t,r){return(0,gf.default)(e).call(e,t,r)}function tr(e){return e.length}function Tf(e){return e.length}function ol(e,t){return t.push(e),e}function e4(e,t){return(0,Ho.default)(e).call(e,t).join("")}function Rl(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Pl,column:mi,length:a,return:""}}function jo(e,t){return Q3(Rl("",null,null,"",null,null,0),e,{length:-e.length},t)}function t4(){return Re}function r4(){return Re=ft>0?ze(bi,--ft):0,mi--,Re===10&&(mi=1,Pl--),Re}function At(){return Re=ft<Jk?ze(bi,ft++):0,mi++,Re===10&&(mi=1,Pl++),Re}function or(){return ze(bi,ft)}function dl(){return ft}function ea(e,t){return Yo(bi,e,t)}function Qo(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 Hk(e){return Pl=mi=1,Jk=tr(bi=e),ft=0,[]}function $k(e){return bi="",e}function pl(e){return Gk(ea(ft-1,df(e===91?e+2:e===40?e+1:e)))}function n4(e){for(;(Re=or())&&Re<33;)At();return Qo(e)>2||Qo(Re)>3?"":" "}function i4(e,t){for(;--t&&At()&&!(Re<48||Re>102||Re>57&&Re<65||Re>70&&Re<97););return ea(e,dl()+(t<6&&or()==32&&At()==32))}function df(e){for(;At();)switch(Re){case e:return ft;case 34:case 39:e!==34&&e!==39&&df(Re);break;case 40:e===41&&df(e);break;case 92:At();break}return ft}function o4(e,t){for(;At()&&e+Re!==57&&!(e+Re===84&&or()===47););return"/*"+ea(t,ft-1)+"*"+Tl(e===47?e:At())}function a4(e){for(;!Qo(or());)At();return ea(e,ft)}function s4(e){return $k(fl("",null,null,null,[""],e=Hk(e),0,[0],e))}function fl(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,h=0,g=1,b=1,y=1,_=0,I="",E=i,T=o,k=n,C=I;b;)switch(h=_,_=At()){case 40:if(h!=108&&ze(C,u-1)==58){uf(C+=Z(pl(_),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:C+=pl(_);break;case 9:case 10:case 13:case 32:C+=n4(h);break;case 92:C+=i4(dl()-1,7);continue;case 47:switch(or()){case 42:case 47:ol(l4(o4(At(),dl()),t,r),l);break;default:C+="/"}break;case 123*g:s[c++]=tr(C)*y;case 125*g:case 59:case 0:switch(_){case 0:case 125:b=0;case 59+d:y==-1&&(C=Z(C,/\f/g,"")),f>0&&tr(C)-u&&ol(f>32?$C(C+";",n,r,u-1):$C(Z(C," ","")+";",n,r,u-2),l);break;case 59:C+=";";default:if(ol(k=HC(C,t,r,c,d,i,s,I,E=[],T=[],u),o),_===123)if(d===0)fl(C,t,k,k,E,o,u,s,T);else switch(p===99&&ze(C,3)===110?100:p){case 100:case 108:case 109:case 115:fl(e,k,k,n&&ol(HC(e,k,k,0,0,i,s,I,i,E=[],u),T),i,T,u,s,n?E:T);break;default:fl(C,k,k,k,[""],T,0,s,T)}}c=d=f=0,g=y=1,I=C="",u=a;break;case 58:u=1+tr(C),f=h;default:if(g<1){if(_==123)--g;else if(_==125&&g++==0&&r4()==125)continue}switch(C+=Tl(_),_*g){case 38:y=d>0?1:(C+="\f",-1);break;case 44:s[c++]=(tr(C)-1)*y,y=1;break;case 64:or()===45&&(C+=pl(At())),p=or(),d=u=tr(I=C+=a4(dl())),_++;break;case 45:h===45&&tr(C)==2&&(g=0)}}return o}function HC(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=Tf(p),h=0,g=0,b=0;h<n;++h)for(var y=0,_=Yo(e,u+1,u=Y3(g=a[h])),I=e;y<f;++y)(I=Gk(g>0?p[y]+" "+_:Z(_,/&\f/g,p[y])))&&(l[b++]=I);return Rl(e,t,r,i===0?kf:s,l,c,d)}function l4(e,t,r){return Rl(e,t,r,jk,Tl(t4()),Yo(e,2,-2),0)}function $C(e,t,r,n){return Rl(e,t,r,xf,Yo(e,0,n),Yo(e,n+1,-1),n)}function pi(e,t){for(var r="",n=Tf(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function c4(e,t,r,n){switch(e.type){case K3:if(e.children.length)break;case z3:case xf:return e.return=e.return||e.value;case jk:return"";case Bk:return e.return=e.value+"{"+pi(e.children,n)+"}";case kf:e.value=e.props.join(",")}return tr(r=pi(e.children,n))?e.return=e.value+"{"+r+"}":""}function u4(e){var t=Tf(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 d4(e){return function(t){t.root||(t=t.return)&&e(t)}}function Vk(e,t){switch(X3(e,t)){case 5103:return X+"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 X+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return X+e+yl+e+rt+e+e;case 6828:case 4268:return X+e+rt+e+e;case 6165:return X+e+rt+"flex-"+e+e;case 5187:return X+e+Z(e,/(\w+).+(:[^]+)/,X+"box-$1$2"+rt+"flex-$1$2")+e;case 5443:return X+e+rt+"flex-item-"+Z(e,/flex-|-self/,"")+e;case 4675:return X+e+rt+"flex-line-pack"+Z(e,/align-content|flex-|-self/,"")+e;case 5548:return X+e+rt+Z(e,"shrink","negative")+e;case 5292:return X+e+rt+Z(e,"basis","preferred-size")+e;case 6060:return X+"box-"+Z(e,"-grow","")+X+e+rt+Z(e,"grow","positive")+e;case 4554:return X+Z(e,/([^-])(transform)/g,"$1"+X+"$2")+e;case 6187:return Z(Z(Z(e,/(zoom-|grab)/,X+"$1"),/(image-set)/,X+"$1"),e,"")+e;case 5495:case 3959:return Z(e,/(image-set\([^]*)/,X+"$1$`$1");case 4968:return Z(Z(e,/(.+:)(flex-)?(.*)/,X+"box-pack:$3"+rt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+X+e+e;case 4095:case 3583:case 4068:case 2532:return Z(e,/(.+)-inline(.+)/,X+"$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(tr(e)-1-t>6)switch(ze(e,t+1)){case 109:if(ze(e,t+4)!==45)break;case 102:return Z(e,/(.+:)(.+)-([^]+)/,"$1"+X+"$2-$3$1"+yl+(ze(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~uf(e,"stretch")?Vk(Z(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ze(e,t+1)!==115)break;case 6444:switch(ze(e,tr(e)-3-(~uf(e,"!important")&&10))){case 107:return Z(e,":",":"+X)+e;case 101:return Z(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+X+(ze(e,14)===45?"inline-":"")+"box$3$1"+X+"$2$3$1"+rt+"$2box$3")+e}break;case 5936:switch(ze(e,t+11)){case 114:return X+e+rt+Z(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return X+e+rt+Z(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return X+e+rt+Z(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return X+e+rt+e+e}return e}function WC(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Qp(e,t,r){var n=[],i=zo(e,n,r);return n.length<2?r:i+t(n)}function YC(e){if(e==="top"){let t=0;Wk.forEach((r,n)=>{let i=r.querySelector(".toast");i&&(n===0?i.style.top=`max(${zC}px, env(safe-area-inset-top))`:i.style.top=`calc(max(${zC}px, env(safe-area-inset-top)) + ${t}px)`,t+=i.offsetHeight+KC)})}else if(e==="center"){let t=0;zk.forEach(r=>{let n=r.querySelector(".toast");n&&(n.style.top=`calc(50% + ${t}px)`,t+=n.offsetHeight+KC)})}}function En(){let e=!1,t=null,r=0,n=new Set,i=a=>v(this,null,function*(){let s=e;if(r++,e=!0,!s)try{let{iframe:l}=yield Go.acquire(),c=l.contentDocument;if(c)t=c.createElement("div"),t.id="loading-root",c.body.appendChild(t),Gr(w(x4,{}),t);else throw new Error("Iframe document is not available.")}catch(l){console.error("[LoadingManager] Failed to show loading:",l),r=0,e=!1,Go.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&&(Gr(null,t),(a=t.parentNode)==null||a.removeChild(t),t=null),Go.release()))};return{show:i,hide:o,get isLoading(){return e}}}var pf,XC,qe,bl,hl,rr,ml,Jo,ff,Ir,Ho,ZC,ek,hf,mf,gf,nte,Xp,fi,ve,$p,gC,$o,tk,Te,vC,yC,bC,_C,wC,SC,IC,ik,Ce,Qt,Xt,wr,ui,Zr,sl,X2,Ue,Z2,lk,tt,gl,Q,vf,yf,bf,rH,ck,nH,wl,iH,Sl,hi,dk,pt,Pe,gi,bH,_H,wH,CC,SH,IH,EH,AH,CH,hk,kH,kC,xH,TH,PH,gk,nl,xC,RH,wf,El,NH,LH,qH,yk,TC,Vp,PC,RC,er,MH,bk,_k,OC,Al,Sf,wk,If,Cl,FH,jH,BH,GH,JH,of,af,Sk,HH,Ef,$H,NC,VH,WH,KH,YH,Wp,DC,zp,Kp,QH,Yp,XH,ZH,e5,t5,r5,n5,i5,LC,o5,a5,s5,qC,l5,c5,u5,UC,d5,p5,f5,MC,h5,m5,g5,v5,y5,b5,_5,w5,S5,I5,E5,FC,A5,C5,k5,x5,T5,P5,R5,O5,N5,D5,L5,jC,q5,U5,M5,F5,j5,B5,G5,J5,H5,$5,V5,W5,z5,K5,Y5,Q5,X5,Z5,e3,t3,r3,n3,i3,o3,a3,s3,l3,c3,u3,d3,p3,f3,Ik,Ek,Ak,sf,h3,Ck,kk,vl,Go,BC,v3,kl,y3,Tk,Pk,Rk,w3,S3,I3,lf,E3,Ok,Nk,xl,Af,yi,GC,Xr,Dk,Sn,C3,k3,x3,T3,P3,il,Lk,Cf,Ie,O3,N3,L3,q3,Jt,M3,F3,qk,Uk,Mk,Fk,tn,j3,B3,G3,J3,H3,$3,V3,W3,rt,yl,X,jk,kf,xf,z3,Bk,K3,Y3,Tl,Q3,Pl,mi,Jk,ft,Re,bi,p4,f4,h4,VC,m4,g4,v4,y4,b4,_4,w4,S4,I4,E4,A4,C4,zC,KC,Wk,zk,Ar,QC,k4,x4,ite,ar=x(()=>{"use strict";Wn();pf=se(Gb(),1),XC=se(Xb(),1),qe=se(d_(),1),bl=se(C_(),1),hl=se(L_(),1),rr=se(Z_(),1);Cs();Cs();ml=se(Uw(),1),Jo=se(Hw(),1),ff=se(a0(),1),Ir=se(g0(),1),Ho=se(A0(),1),ZC=se(O0(),1),ek=se(KE(),1),hf=se(cA(),1),mf=se(CA(),1),gf=se(UA(),1);Bp();Bp();nte=se(eC(),1),Xp=se(mC(),1),$o=0,tk=[],Te=q,vC=Te.__b,yC=Te.__r,bC=Te.diffed,_C=Te.__c,wC=Te.unmount,SC=Te.__;Te.__b=function(e){ve=null,vC&&vC(e)},Te.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),SC&&SC(e,t)},Te.__r=function(e){var t,r,n;yC&&yC(e),fi=0;var i=(ve=e.__c).__H;i&&($p===ve?(i.__h=[],ve.__h=[],(0,qe.default)(t=i.__).call(t,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,qe.default)(r=i.__h).call(r,al),(0,qe.default)(n=i.__h).call(n,Zp),i.__h=[],fi=0)),$p=ve},Te.diffed=function(e){var t;bC&&bC(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(tk.push(r)!==1&&gC===Te.requestAnimationFrame||((gC=Te.requestAnimationFrame)||z2)(W2)),(0,qe.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),$p=ve=null},Te.__c=function(e,t){(0,hl.default)(t).call(t,function(r){try{var n,i;(0,qe.default)(n=r.__h).call(n,al),r.__h=(0,pf.default)(i=r.__h).call(i,function(o){return!o.__||Zp(o)})}catch(o){(0,hl.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],Te.__e(o,r.__v)}}),_C&&_C(e,t)},Te.unmount=function(e){var t;wC&&wC(e);var r,n=e.__c;n&&n.__H&&((0,qe.default)(t=n.__H.__).call(t,function(i){try{al(i)}catch(o){r=o}}),n.__H=void 0,r&&Te.__e(r,n.__v))};IC=typeof requestAnimationFrame=="function";ik={exports:{}},Ce=ik.exports={};(function(){try{typeof rr.default=="function"?Qt=rr.default:Qt=ef}catch(e){Qt=ef}try{typeof clearTimeout=="function"?Xt=clearTimeout:Xt=tf}catch(e){Xt=tf}})();wr=[],ui=!1,sl=-1;Ce.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];wr.push(new sk(e,t)),wr.length===1&&!ui&&ok(ak)};sk.prototype.run=function(){this.fun.apply(null,this.array)};Ce.title="browser";Ce.browser=!0;Ce.env={};Ce.argv=[];Ce.version="";Ce.versions={};Ce.on=Er;Ce.addListener=Er;Ce.once=Er;Ce.off=Er;Ce.removeListener=Er;Ce.removeAllListeners=Er;Ce.emit=Er;Ce.prependListener=Er;Ce.prependOnceListener=Er;Ce.listeners=function(e){return[]};Ce.binding=function(e){throw new Error("process.binding is not supported")};Ce.cwd=function(){return"/"};Ce.chdir=function(e){throw new Error("process.chdir is not supported")};Ce.umask=function(){return 0};X2=ik.exports,Ue=K2(X2),Z2=ml.default||void 0||self;lk=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,qe.default)(r).call(r,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(){var r;(0,qe.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}(),tt="-ms-",gl="-moz-",Q="-webkit-",vf="comm",yf="rule",bf="decl",rH="@import",ck="@keyframes",nH=Math.abs,wl=String.fromCharCode,iH=hf.default;Sl=1,hi=1,dk=0,pt=0,Pe=0,gi="";bH=function(e,t,r){for(var n=0,i=0;n=i,i=ir(),n===38&&i===12&&(t[r]=1),!Wo(i);)Et();return Xo(e,pt)},_H=function(e,t){var r=-1,n=44;do switch(Wo(n)){case 0:n===38&&ir()===12&&(t[r]=1),e[r]+=bH(pt-1,t,r);break;case 2:e[r]+=cl(n);break;case 4:if(n===44){e[++r]=ir()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=wl(n)}while(n=Et());return e},wH=function(e,t){return fk(_H(pk(e),t))},CC=new ff.default,SH=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&&!CC.get(r))&&!n){CC.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]}}},IH=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},EH="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",AH=function(e){var t;return e.type==="comm"&&(0,Ir.default)(t=e.children).call(t,EH)>-1},CH=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(AH(l))return;break}}(0,qe.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},kH=function(e,t){for(var r=e-1;r>=0;r--)if(!hk(t[r]))return!0;return!1},kC=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},xH=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."),kC(e)):kH(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),kC(e)))};TH=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case bf:e.return=mk(e.value,e.length);break;case ck:return di([Fo(e,{value:ne(e.value,"@","@"+Q)})],n);case yf:if(e.length)return sH(e.props,function(i){switch(aH(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return di([Fo(e,{props:[ne(i,/:(read-\w+)/,":"+gl+"$1")]})],n);case"::placeholder":return di([Fo(e,{props:[ne(i,/:(plac\w+)/,":"+Q+"input-$1")]}),Fo(e,{props:[ne(i,/:(plac\w+)/,":"+gl+"$1")]}),Fo(e,{props:[ne(i,/:(plac\w+)/,tt+"input-$1")]})],n)}return""})}},PH=[TH],gk=function(e){var t=e.key;if(Ue.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.
23
+ 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,qe.default)(Array.prototype).call(r,function(h){var g=h.getAttribute("data-emotion");(0,Ir.default)(g).call(g," ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var n=e.stylisPlugins||PH;if(Ue.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,qe.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(h){for(var g=h.getAttribute("data-emotion").split(" "),b=1;b<g.length;b++)i[g[b]]=!0;a.push(h)});var s,l=[SH,IH];Ue.env.NODE_ENV!=="production"&&l.push(CH({get compat(){return f.compat}}),xH);{var c,d=[gH,Ue.env.NODE_ENV!=="production"?function(h){h.root||(h.return?c.insert(h.return):h.value&&h.type!==vf&&c.insert(h.value+"{}"))}:yH(function(h){c.insert(h)})],u=vH((0,bl.default)(l).call(l,n,d)),p=function(h){return di(hH(h),u)};s=function(h,g,b,y){c=b,Ue.env.NODE_ENV!=="production"&&(0,Ho.default)(g)!==void 0&&(c={insert:function(_){b.insert(_+(0,Ho.default)(g))}}),p(h?h+"{"+g.styles+"}":g.styles),y&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new lk({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},nl={exports:{}};vk();RH=!0;wf=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||RH===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},El=function(e,t,r){wf(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)}};NH={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};LH=/[A-Z]|^ms/g,qH=/_EMO_([^_]+?)_([^]*?)_EMO_/g,yk=function(e){return e.charCodeAt(1)===45},TC=function(e){return e!=null&&typeof e!="boolean"},Vp=DH(function(e){return yk(e)?e:e.replace(LH,"-$&").toLowerCase()}),PC=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(qH,function(r,n,i){return er={name:n,styles:i,next:er},n})}return NH[e]!==1&&!yk(e)&&typeof t=="number"&&t!==0?t+"px":t};RC=/label:\s*([^\s;{]+)\s*(;|$)/g;MH=function(e){return e()},bk=Md?Md:!1,_k=bk||MH,OC=bk||ni,Al={}.hasOwnProperty,Sf=pn(typeof HTMLElement<"u"?gk({key:"css"}):null);Ue.env.NODE_ENV!=="production"&&(Sf.displayName="EmotionCacheContext");wk=Sf.Provider,If=function(e){return jd(function(t,r){var n=oi(Sf);return e(t,n,r)})},Cl=pn({});Ue.env.NODE_ENV!=="production"&&(Cl.displayName="EmotionThemeContext");FH=function(e){var t=e.split(".");return t[t.length-1]},jH=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 FH(t[1])},BH=new ek.default(["renderWithHooks","processChild","finishClassComponent","renderToString"]),GH=function(e){return e.replace(/\$/g,"-")},JH=function(e){if(e)for(var t=e.split(`
24
+ `),r=0;r<t.length;r++){var n=jH(t[r]);if(n){if(BH.has(n))break;if(/^[A-Z]/.test(n))return GH(n)}}},of="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",af="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Sk=function(e,t){var r,n;if(Ue.env.NODE_ENV!=="production"&&typeof t.css=="string"&&(0,Ir.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)Al.call(t,o)&&(i[o]=t[o]);if(i[of]=e,Ue.env.NODE_ENV!=="production"&&t.css&&(typeof t.css!="object"||typeof t.css.name!="string"||(0,Ir.default)(n=t.css.name).call(n,"-")===-1)){var a=JH(new Error().stack);a&&(i[af]=a)}return i},HH=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return wf(t,r,n),_k(function(){return El(t,r,n)}),null},Ef=If(function(e,t,r){var n,i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[of],a=[i],s="";typeof e.className=="string"?s=zo(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var l=en(a,void 0,oi(Cl));if(Ue.env.NODE_ENV!=="production"&&(0,Ir.default)(n=l.name).call(n,"-")===-1){var c=e[af];c&&(l=en([l,"label:"+c+";"]))}s+=t.key+"-"+l.name;var d={};for(var u in e)Al.call(e,u)&&u!=="css"&&u!==of&&(Ue.env.NODE_ENV==="production"||u!==af)&&(d[u]=e[u]);return d.ref=r,d.className=s,Ze($e,null,Ze(HH,{cache:t,serialized:l,isStringTag:typeof o=="string"}),Ze(o,d))});Ue.env.NODE_ENV!=="production"&&(Ef.displayName="EmotionCssPropInternal");$H={version:"11.10.5"},NC=!1,VH=If(function(e,t){Ue.env.NODE_ENV!=="production"&&!NC&&(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?"),NC=!0);var r=e.styles,n=en([r],void 0,oi(Cl)),i=ii();return OC(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]),OC(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(n.next!==void 0&&El(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});Ue.env.NODE_ENV!=="production"&&(VH.displayName="EmotionGlobal");WH=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,Jo.default)(o))a=e(o);else{Ue.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};KH=function(e){var t=e.cache,r=e.serializedArr;return _k(function(){for(var n=0;n<r.length;n++)El(t,r[n],!1)}),null},YH=If(function(e,t){var r=!1,n=[],i=function(){if(r&&Ue.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=en(c,t.registered);return n.push(u),wf(t,u,!1),t.key+"-"+u.name},o=function(){if(r&&Ue.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 zH(t.registered,i,WH(c))},a={css:i,cx:o,theme:oi(Cl)},s=e.children(a);return r=!0,Ze($e,null,Ze(KH,{cache:t,serializedArr:n}),s)});Ue.env.NODE_ENV!=="production"&&(YH.displayName="EmotionClassNames");Ue.env.NODE_ENV!=="production"&&(Wp=!0,DC=typeof jest<"u"||typeof vi<"u",Wp&&!DC&&(zp=typeof ml.default<"u"?ml.default:Wp?window:Z2,Kp="__EMOTION_REACT_"+$H.version.split(".")[0]+"__",zp[Kp]&&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."),zp[Kp]=!0));QH=0;Yp={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"}},XH=U`
25
25
  width: 100%;
26
26
  overflow: auto;
27
27
  margin: 0 auto;
28
- `,XH=`
28
+ `,ZH=`
29
29
  @keyframes fadeIn {
30
30
  from { opacity: 0; }
31
31
  to { opacity: 1; }
@@ -69,44 +69,44 @@ If multiple caches share the same key they might "fight" for each other's style
69
69
  .fadeIn {
70
70
  animation: fadeIn 0.3s ease forwards;
71
71
  }
72
- `,ZH=({children:e,isOpen:t=!1,preventCloseOnBackdropClick:r=!1,onClose:n,className:i="",placement:o="bottom"},a)=>{let[s,l]=nr(!1),[c,d]=nr(null),[u,p]=nr(!1),f=Mo(null),h=Mo(null),g=Mo(!1);In(()=>{if(s&&f.current){let R=f.current.ownerDocument,U=R.createElement("style");U.innerHTML=XH,R.head.appendChild(U);let H={overflow:R.body.style.overflow,position:R.body.style.position,width:R.body.style.width};return R.body.style.overflow="hidden",R.body.style.position="fixed",R.body.style.width="100%",()=>{R.head.contains(U)&&R.head.removeChild(U),R.body.style.overflow=H.overflow,R.body.style.position=H.position,R.body.style.width=H.width}}},[s]),In(()=>{t?!s&&!g.current&&(l(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)})):s&&(g.current=!0,d("leave"),p(!1))},[t]);let b=Ot(R=>{R.target===h.current&&(c==="leave"?(d(null),l(!1),g.current=!1,n&&n()):c==="enter"&&(d(null),p(!0)))},[c,n]),y=Ot(()=>{s&&!g.current&&(g.current=!0,d("leave"),p(!1))},[s]),_=Ot(R=>{r||(R.preventDefault(),R.stopPropagation(),y())},[y]),S=Ot(()=>{!g.current&&!s&&(l(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)}))},[s]),E=Ot(()=>s&&!g.current,[s]);if(In(()=>{if(a){let R={show:S,hide:y,isOpen:E};typeof a=="function"?a(R):a&&(a.current=R)}},[S,y,E,a]),!s)return null;let P=o==="center",C=B(T({},Kp.drawerBackdrop),{alignItems:P?"center":"flex-end",justifyContent:"center",backgroundColor:"transparent",pointerEvents:"none"}),k={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"},G=P?B(T({},Kp.centerDrawer),{pointerEvents:"auto"}):B(T({},Kp.drawer),{height:"auto",pointerEvents:"auto"});s&&!u&&!c&&!P&&(G.transform="translateY(100%)");let ce=c?P?c==="leave"?"fadeOut":c==="enter"?"fadeIn":"":`drawer-${c}`:"",N=c?`backdrop-${c}`:"";return w("div",{ref:f,style:C,children:[w("div",{style:k,className:N,onClick:_}),w("div",{ref:h,style:B(T({},G),{opacity:P&&c===null&&!u?0:1}),className:`${P&&c==="leave"?"fadeOut":ce} ${i}`,onAnimationEnd:b,onClick:R=>R.stopPropagation(),children:w("div",{style:QH.styles,children:e})})]})},e5=Fd(ZH);t5={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"},r5={unlockNeeds:"Unlock needs",price:"Price",unlockWithJolicoin:"Unlock with GEM for a better experience",unlockWithJolicoinDescription:"Unlock with GEM automatically",useJolicoin:"Use GEM",balance:"GEM Balance"},n5={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:t5,joligem:r5,loginGuide:n5},i5={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"},o5={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"},a5={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"},Lk={jolicoin:i5,joligem:o5,loginGuide:a5},s5={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"},l5={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"},c5={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!"},qk={jolicoin:s5,joligem:l5,loginGuide:c5},u5={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"},d5={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"},p5={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!"},Uk={jolicoin:u5,joligem:d5,loginGuide:p5},f5={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"},h5={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"},m5={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!"},g5={jolicoin:f5,joligem:h5,loginGuide:m5},v5={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"},y5={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"},b5={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!"},_5={jolicoin:v5,joligem:y5,loginGuide:b5},w5={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"},S5={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"},I5={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:w5,joligem:S5,loginGuide:I5},E5={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"},A5={unlockNeeds:"Necesario desbloquear",price:"Precio",unlockWithJolicoin:"Desbloquea con GEM",unlockWithJolicoinDescription:"Desbloquea autom\xE1ticamente con GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},k5={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!"},C5={jolicoin:E5,joligem:A5,loginGuide:k5},x5={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"},P5={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"},T5={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"},R5={jolicoin:x5,joligem:P5,loginGuide:T5},O5={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"},N5={unlockNeeds:"Necess\xE1rio desbloquear",price:"Pre\xE7o",unlockWithJolicoin:"Desbloqueie com GEM",unlockWithJolicoinDescription:"Desbloqueie automaticamente com GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},D5={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!"},Fk={jolicoin:O5,joligem:N5,loginGuide:D5},L5={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"},q5={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"},U5={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!"},M5={jolicoin:L5,joligem:q5,loginGuide:U5},F5={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"},j5={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"},B5={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"},G5={jolicoin:F5,joligem:j5,loginGuide:B5},J5={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"},H5={unlockNeeds:"Entsperren erforderlich",price:"Preis",unlockWithJolicoin:"Mit GEM entsperren",unlockWithJolicoinDescription:"Automatisch mit GEM entsperren",useJolicoin:"GEM verwenden",balance:"GEM Guthaben"},$5={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!"},V5={jolicoin:J5,joligem:H5,loginGuide:$5},W5={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"},z5={unlockNeeds:"D\xE9verrouillage n\xE9cessaire",price:"Prix",unlockWithJolicoin:"D\xE9verrouillez avec GEM",unlockWithJolicoinDescription:"D\xE9verrouillez automatiquement avec GEM",useJolicoin:"Utiliser GEM",balance:"GEM Solde"},K5={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 !"},Y5={jolicoin:W5,joligem:z5,loginGuide:K5},Q5={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"},X5={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"},Z5={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!"},e3={jolicoin:Q5,joligem:X5,loginGuide:Z5},t3={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"},r3={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"},n3={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!"},i3={jolicoin:t3,joligem:r3,loginGuide:n3},o3={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"},a3={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"},s3={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!"},l3={jolicoin:o3,joligem:a3,loginGuide:s3},c3={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"},u3={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"},d3={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!"},p3={jolicoin:c3,joligem:u3,loginGuide:d3},SC={en:{translations:Dk},en_GB:{translations:Dk},zh:{translations:Lk},"zh-Hans":{translations:Lk},"zh-Hant":{translations:G5},id:{translations:qk},in:{translations:qk},ms:{translations:Uk},my:{translations:Uk},th:{translations:g5},vi:{translations:_5},fil:{translations:Mk},tl:{translations:Mk},es:{translations:C5},ja:{translations:R5},pt:{translations:Fk},pt_PT:{translations:Fk},ko:{translations:M5},de:{translations:V5},fr:{translations:Y5},hi:{translations:e3},ru:{translations:i3},bn:{translations:l3},tr:{translations:p3}},IC=pn(void 0),EC=({definition:e,children:t})=>{let r={translations:e};return w(IC.Provider,{value:r,children:t})},af=null,f3={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"},AC=e=>{af=e},kC=()=>{var e;if(typeof af!="function")return console.warn("Language handler is not registered or is not a function. Defaulting to 'en'."),"en";try{let t=af();return(e=f3[t])!=null?e:"en"}catch(t){return console.error("Error executing registered language handler:",t),"en"}};hl=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=mC({key:"iframe-css",container:this.persistentIframe.contentDocument.head,prepend:!0}),this.removeGlobalTransformSync&&this.removeGlobalTransformSync(),this.removeGlobalTransformSync=m3(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 v(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"&&(CC(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"))}},Fo=new hl(99999998,"auto"),jk=new hl(99999999,"none"),g3=({title:e,content:t,noHeader:r,height:n,padding:i="16px",footerButtons:o,onClose:a})=>{let s=Yo(),l={container:L`
72
+ `,e5=({children:e,isOpen:t=!1,preventCloseOnBackdropClick:r=!1,onClose:n,className:i="",placement:o="bottom"},a)=>{let[s,l]=nr(!1),[c,d]=nr(null),[u,p]=nr(!1),f=Bo(null),h=Bo(null),g=Bo(!1);In(()=>{if(s&&f.current){let R=f.current.ownerDocument,D=R.createElement("style");D.innerHTML=ZH,R.head.appendChild(D);let J={overflow:R.body.style.overflow,position:R.body.style.position,width:R.body.style.width};return R.body.style.overflow="hidden",R.body.style.position="fixed",R.body.style.width="100%",()=>{R.head.contains(D)&&R.head.removeChild(D),R.body.style.overflow=J.overflow,R.body.style.position=J.position,R.body.style.width=J.width}}},[s]),In(()=>{t?!s&&!g.current&&(l(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)})):s&&(g.current=!0,d("leave"),p(!1))},[t]);let b=Nt(R=>{R.target===h.current&&(c==="leave"?(d(null),l(!1),g.current=!1,n&&n()):c==="enter"&&(d(null),p(!0)))},[c,n]),y=Nt(()=>{s&&!g.current&&(g.current=!0,d("leave"),p(!1))},[s]),_=Nt(R=>{r||(R.preventDefault(),R.stopPropagation(),y())},[y]),I=Nt(()=>{!g.current&&!s&&(l(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)}))},[s]),E=Nt(()=>s&&!g.current,[s]);if(In(()=>{if(a){let R={show:I,hide:y,isOpen:E};typeof a=="function"?a(R):a&&(a.current=R)}},[I,y,E,a]),!s)return null;let T=o==="center",k=B(P({},Yp.drawerBackdrop),{alignItems:T?"center":"flex-end",justifyContent:"center",backgroundColor:"transparent",pointerEvents:"none"}),C={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"},G=T?B(P({},Yp.centerDrawer),{pointerEvents:"auto"}):B(P({},Yp.drawer),{height:"auto",pointerEvents:"auto"});s&&!u&&!c&&!T&&(G.transform="translateY(100%)");let ce=c?T?c==="leave"?"fadeOut":c==="enter"?"fadeIn":"":`drawer-${c}`:"",N=c?`backdrop-${c}`:"";return w("div",{ref:f,style:k,children:[w("div",{style:C,className:N,onClick:_}),w("div",{ref:h,style:B(P({},G),{opacity:T&&c===null&&!u?0:1}),className:`${T&&c==="leave"?"fadeOut":ce} ${i}`,onAnimationEnd:b,onClick:R=>R.stopPropagation(),children:w("div",{style:XH.styles,children:e})})]})},t5=jd(e5);r5={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"},n5={unlockNeeds:"Unlock needs",price:"Price",unlockWithJolicoin:"Unlock with GEM for a better experience",unlockWithJolicoinDescription:"Unlock with GEM automatically",useJolicoin:"Use GEM",balance:"GEM Balance"},i5={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!"},LC={jolicoin:r5,joligem:n5,loginGuide:i5},o5={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"},a5={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"},s5={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"},qC={jolicoin:o5,joligem:a5,loginGuide:s5},l5={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"},c5={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"},u5={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!"},UC={jolicoin:l5,joligem:c5,loginGuide:u5},d5={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"},p5={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"},f5={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!"},MC={jolicoin:d5,joligem:p5,loginGuide:f5},h5={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"},m5={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"},g5={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!"},v5={jolicoin:h5,joligem:m5,loginGuide:g5},y5={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"},b5={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"},_5={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!"},w5={jolicoin:y5,joligem:b5,loginGuide:_5},S5={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"},I5={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"},E5={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!"},FC={jolicoin:S5,joligem:I5,loginGuide:E5},A5={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"},C5={unlockNeeds:"Necesario desbloquear",price:"Precio",unlockWithJolicoin:"Desbloquea con GEM",unlockWithJolicoinDescription:"Desbloquea autom\xE1ticamente con GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},k5={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!"},x5={jolicoin:A5,joligem:C5,loginGuide:k5},T5={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"},P5={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"},R5={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"},O5={jolicoin:T5,joligem:P5,loginGuide:R5},N5={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"},D5={unlockNeeds:"Necess\xE1rio desbloquear",price:"Pre\xE7o",unlockWithJolicoin:"Desbloqueie com GEM",unlockWithJolicoinDescription:"Desbloqueie automaticamente com GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},L5={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!"},jC={jolicoin:N5,joligem:D5,loginGuide:L5},q5={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"},U5={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"},M5={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!"},F5={jolicoin:q5,joligem:U5,loginGuide:M5},j5={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"},B5={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"},G5={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"},J5={jolicoin:j5,joligem:B5,loginGuide:G5},H5={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"},$5={unlockNeeds:"Entsperren erforderlich",price:"Preis",unlockWithJolicoin:"Mit GEM entsperren",unlockWithJolicoinDescription:"Automatisch mit GEM entsperren",useJolicoin:"GEM verwenden",balance:"GEM Guthaben"},V5={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!"},W5={jolicoin:H5,joligem:$5,loginGuide:V5},z5={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"},K5={unlockNeeds:"D\xE9verrouillage n\xE9cessaire",price:"Prix",unlockWithJolicoin:"D\xE9verrouillez avec GEM",unlockWithJolicoinDescription:"D\xE9verrouillez automatiquement avec GEM",useJolicoin:"Utiliser GEM",balance:"GEM Solde"},Y5={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 !"},Q5={jolicoin:z5,joligem:K5,loginGuide:Y5},X5={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"},Z5={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"},e3={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!"},t3={jolicoin:X5,joligem:Z5,loginGuide:e3},r3={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"},n3={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"},i3={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!"},o3={jolicoin:r3,joligem:n3,loginGuide:i3},a3={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"},s3={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"},l3={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!"},c3={jolicoin:a3,joligem:s3,loginGuide:l3},u3={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"},d3={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"},p3={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!"},f3={jolicoin:u3,joligem:d3,loginGuide:p3},Ik={en:{translations:LC},en_GB:{translations:LC},zh:{translations:qC},"zh-Hans":{translations:qC},"zh-Hant":{translations:J5},id:{translations:UC},in:{translations:UC},ms:{translations:MC},my:{translations:MC},th:{translations:v5},vi:{translations:w5},fil:{translations:FC},tl:{translations:FC},es:{translations:x5},ja:{translations:O5},pt:{translations:jC},pt_PT:{translations:jC},ko:{translations:F5},de:{translations:W5},fr:{translations:Q5},hi:{translations:t3},ru:{translations:o3},bn:{translations:c3},tr:{translations:f3}},Ek=pn(void 0),Ak=({definition:e,children:t})=>{let r={translations:e};return w(Ek.Provider,{value:r,children:t})},sf=null,h3={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"},Ck=e=>{sf=e},kk=()=>{var e;if(typeof sf!="function")return console.warn("Language handler is not registered or is not a function. Defaulting to 'en'."),"en";try{let t=sf();return(e=h3[t])!=null?e:"en"}catch(t){return console.error("Error executing registered language handler:",t),"en"}};vl=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=gk({key:"iframe-css",container:this.persistentIframe.contentDocument.head,prepend:!0}),this.removeGlobalTransformSync&&this.removeGlobalTransformSync(),this.removeGlobalTransformSync=g3(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 v(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"&&(xk(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"))}},Go=new vl(99999998,"auto"),BC=new vl(99999999,"none"),v3=({title:e,content:t,noHeader:r,height:n,padding:i="16px",footerButtons:o,onClose:a})=>{let s=Zo(),l={container:U`
73
73
  display: flex;
74
74
  flex-direction: column;
75
75
  height: 100%;
76
76
  width: 100%;
77
77
  max-width: ${s==="portrait"?"440px":"75%"};
78
78
  margin: 0 auto;
79
- `,header:L`
79
+ `,header:U`
80
80
  padding: 16px;
81
81
  border-bottom: 1px solid #eee;
82
82
  display: flex;
83
83
  justify-content: space-between;
84
84
  align-items: center;
85
- `,content:L`
85
+ `,content:U`
86
86
  padding: ${i};
87
87
  flex: 1;
88
88
  overflow: auto;
89
- `,footer:L`
89
+ `,footer:U`
90
90
  padding: 16px;
91
91
  border-top: 1px solid #eee;
92
92
  display: flex;
93
93
  justify-content: flex-end;
94
94
  gap: 8px;
95
- `,closeButton:L`
95
+ `,closeButton:U`
96
96
  background: none;
97
97
  border: none;
98
98
  cursor: pointer;
99
99
  font-size: 20px;
100
- `,button:L`
100
+ `,button:U`
101
101
  padding: 8px 16px;
102
102
  border-radius: 4px;
103
103
  border: 1px solid #ddd;
104
104
  cursor: pointer;
105
- `};return w("div",{className:l.container.name,children:[!r&&w("div",{className:l.header.name,children:[w("h3",{children:e}),w("button",{className:l.closeButton.name,onClick:a,children:"\xD7"})]}),w("div",{className:l.content.name,children:t}),o&&o.length>0&&w("div",{className:l.footer.name,children:o.map((c,d)=>w("button",{className:L`
105
+ `};return w("div",{className:l.container.name,children:[!r&&w("div",{className:l.header.name,children:[w("h3",{children:e}),w("button",{className:l.closeButton.name,onClick:a,children:"\xD7"})]}),w("div",{className:l.content.name,children:t}),o&&o.length>0&&w("div",{className:l.footer.name,children:o.map((c,d)=>w("button",{className:U`
106
106
  ${l.button}
107
107
  background-color: ${c.variant==="primary"?"#1677ff":"#fff"};
108
108
  color: ${c.variant==="primary"?"#fff":"#333"};
109
- `.name,onClick:u=>{var p;return(p=c.onClick)==null?void 0:p.call(c,u,{hide:a})},children:c.text},d))})]})},El=e=>{let t=!1,r=kC(),n=SC[r].translations,i=`drawer-container-${Math.random().toString(36).slice(2,10)}`,o=null,a=null,s=null;function l(p){var f,h;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)),Gr(w(_C,{value:a,children:w(EC,{definition:n,children:w(e5,{ref:g=>{},placement:(f=e.placement)!=null?f:"bottom",isOpen:p,onClose:c,preventCloseOnBackdropClick:(h=e.preventCloseOnBackdropClick)!=null?h:!1,backdropColor:e.backdropColor,children:w(g3,B(T({},e),{onClose:u}))})})}),s)}function c(){var p,f;if(t){if(t=!1,o==null?void 0:o.contentDocument){let h=o.contentDocument.getElementById(i);h&&((p=h.parentNode)==null||p.removeChild(h))}Fo.release(),(f=e.onClose)==null||f.call(e)}}function d(){return v(this,null,function*(){let p=yield Fo.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.")}}},v3=(e,t={threshold:.6})=>{let r=Mo(null),n=Mo(!1),i=Ot(o=>{let[a]=o;a.isIntersecting&&!n.current?(n.current=!0,e()):a.isIntersecting||(n.current=!1)},[e]);return In(()=>{if(r.current){let o=new IntersectionObserver(i,t);return o.observe(r.current),()=>{r.current&&o.unobserve(r.current)}}},[i,t]),r};xC=o=>{var a=o,{children:e,fluid:t=!1,className:r="",style:n={}}=a,i=Qe(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 w("div",B(T({className:r,style:s},i),{children:e}))},PC=s=>{var l=s,{children:e,gutter:t=0,justify:r="start",align:n="top",className:i="",style:o={}}=l,a=Qe(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,h=Array.isArray(t)?t[1]:0;f>0&&(u.marginLeft=`-${f/2}px`,u.marginRight=`-${f/2}px`),h>0&&(u.marginTop=`-${h/2}px`,u.marginBottom=`-${h/2}px`)}let p=t?b3(e,t):e;return w("div",B(T({className:i,style:u},a),{children:p}))};TC=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=Qe(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 h=t/24*100;f.flex=`0 0 ${h}%`,f.maxWidth=`${h}%`}return r!==void 0&&(f.marginLeft=`${r/24*100}%`),w("div",B(T({className:l,style:f},d),{children:e}))},_3=({game:e,layerName:t,orientation:r,routeMode:n,onGameClick:i})=>{var s,l;let o=Vr(c=>{c.preventDefault(),i==null||i(e)},[i,e]),a=Vr(()=>{},[e,t]);return w(TC,{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:[w("div",{className:"relative w-full mb-[2px] ion-no-margin",children:w(y3,{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})}),w("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)},w3=a=>{var s=a,{list:e,routeMode:t,layerName:r,onGameClick:n,orientation:i}=s,o=Qe(s,["list","routeMode","layerName","onGameClick","orientation"]);return w(xC,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{maxWidth:i==="landscape"?"100%":"440px",minHeight:"1px"},children:w(PC,{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=>w(_3,{orientation:i,game:l,routeMode:t,layerName:r,onGameClick:n},l.gameId))})})},S3=Md(w3),sf=(e=>(e.Dismiss="DISMISS",e.Quit="QUIT",e))(sf||{}),I3=e=>{let{games:t,title:r,buttons:n,onClose:i}=e,[o,a]=nr(null),s=Ot(u=>{i==null||i({type:u.type===sf.Quit?"quit":"dismiss"})},[i]),l=Ot(u=>{i==null||i({type:"navigate",data:{game:u}})},[i]),c=Yo();if(!t.length)return w(He,{});let d=Ot(u=>{if(u!==null&&!u.shadowRoot){let p=u.attachShadow({mode:"open"}),f=document.createElement("style");f.textContent=`
109
+ `.name,onClick:u=>{var p;return(p=c.onClick)==null?void 0:p.call(c,u,{hide:a})},children:c.text},d))})]})},kl=e=>{let t=!1,r=kk(),n=Ik[r].translations,i=`drawer-container-${Math.random().toString(36).slice(2,10)}`,o=null,a=null,s=null;function l(p){var f,h;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)),Gr(w(wk,{value:a,children:w(Ak,{definition:n,children:w(t5,{ref:g=>{},placement:(f=e.placement)!=null?f:"bottom",isOpen:p,onClose:c,preventCloseOnBackdropClick:(h=e.preventCloseOnBackdropClick)!=null?h:!1,backdropColor:e.backdropColor,children:w(v3,B(P({},e),{onClose:u}))})})}),s)}function c(){var p,f;if(t){if(t=!1,o==null?void 0:o.contentDocument){let h=o.contentDocument.getElementById(i);h&&((p=h.parentNode)==null||p.removeChild(h))}Go.release(),(f=e.onClose)==null||f.call(e)}}function d(){return v(this,null,function*(){let p=yield Go.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.")}}},y3=(e,t={threshold:.6})=>{let r=Bo(null),n=Bo(!1),i=Nt(o=>{let[a]=o;a.isIntersecting&&!n.current?(n.current=!0,e()):a.isIntersecting||(n.current=!1)},[e]);return In(()=>{if(r.current){let o=new IntersectionObserver(i,t);return o.observe(r.current),()=>{r.current&&o.unobserve(r.current)}}},[i,t]),r};Tk=o=>{var a=o,{children:e,fluid:t=!1,className:r="",style:n={}}=a,i=Xe(a,["children","fluid","className","style"]);let s=P({width:"100%",marginLeft:"auto",marginRight:"auto",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box",maxWidth:t?"100%":void 0},n);return w("div",B(P({className:r,style:s},i),{children:e}))},Pk=s=>{var l=s,{children:e,gutter:t=0,justify:r="start",align:n="top",className:i="",style:o={}}=l,a=Xe(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=P({display:"flex",flexWrap:"wrap",boxSizing:"border-box",justifyContent:c[r],alignItems:d[n]},o);if(t){let f=Array.isArray(t)?t[0]:t,h=Array.isArray(t)?t[1]:0;f>0&&(u.marginLeft=`-${f/2}px`,u.marginRight=`-${f/2}px`),h>0&&(u.marginTop=`-${h/2}px`,u.marginBottom=`-${h/2}px`)}let p=t?_3(e,t):e;return w("div",B(P({className:i,style:u},a),{children:p}))};Rk=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=Xe(p,["children","span","offset","xs","sm","md","lg","xl","className","style"]);let f=P({position:"relative",width:"100%",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box"},c);if(t!==void 0){let h=t/24*100;f.flex=`0 0 ${h}%`,f.maxWidth=`${h}%`}return r!==void 0&&(f.marginLeft=`${r/24*100}%`),w("div",B(P({className:l,style:f},d),{children:e}))},w3=({game:e,layerName:t,orientation:r,routeMode:n,onGameClick:i})=>{var s,l;let o=Vr(c=>{c.preventDefault(),i==null||i(e)},[i,e]),a=Vr(()=>{},[e,t]);return w(Rk,{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:[w("div",{className:"relative w-full mb-[2px] ion-no-margin",children:w(b3,{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})}),w("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)},S3=a=>{var s=a,{list:e,routeMode:t,layerName:r,onGameClick:n,orientation:i}=s,o=Xe(s,["list","routeMode","layerName","onGameClick","orientation"]);return w(Tk,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{maxWidth:i==="landscape"?"100%":"440px",minHeight:"1px"},children:w(Pk,{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=>w(w3,{orientation:i,game:l,routeMode:t,layerName:r,onGameClick:n},l.gameId))})})},I3=Fd(S3),lf=(e=>(e.Dismiss="DISMISS",e.Quit="QUIT",e))(lf||{}),E3=e=>{let{games:t,title:r,buttons:n,onClose:i}=e,[o,a]=nr(null),s=Nt(u=>{i==null||i({type:u.type===lf.Quit?"quit":"dismiss"})},[i]),l=Nt(u=>{i==null||i({type:"navigate",data:{game:u}})},[i]),c=Zo();if(!t.length)return w($e,{});let d=Nt(u=>{if(u!==null&&!u.shadowRoot){let p=u.attachShadow({mode:"open"}),f=document.createElement("style");f.textContent=`
110
110
  .recommend-panel {
111
111
  display: flex;
112
112
  flex-direction: column;
@@ -228,19 +228,19 @@ If multiple caches share the same key they might "fight" for each other's style
228
228
  background-color: #7817FF;
229
229
  color: #fff;
230
230
  }
231
- `;let h=document.createElement("div");h.id="recommend-panel-content",p.appendChild(f),p.appendChild(h),a(p)}},[]);return In(()=>{if(o){let u=o.getElementById("recommend-panel-content");u&&Gr(w("div",{className:"recommend-panel",children:w("div",{className:"container",children:[w("p",{className:"title",children:r}),w("div",{className:"games-container",children:w(S3,{list:t||[],routeMode:"REDIRECT",layerName:"RecommendedGuide",onGameClick:l,orientation:c})}),w("div",{className:"buttons-container",children:(n!=null?n:[]).map((p,f)=>w("div",{className:"button-wrapper",children:w("button",{className:`button ${p.type===sf.Quit?"quit-button":"action-button"}`,onClick:()=>s(p),children:w("span",{className:"button-text-ellipsis",children:p.text})})},f))})]})}),u)}},[o,t,r,n,s,l]),w("div",{ref:d})},RC=e=>{let t=El({title:e.title,content:w(I3,{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},OC="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=",Al="https://fe-oss.jolibox.com/static/coin/jolicoin.png",Ef="https://fe-oss.jolibox.com/static/coin/gem.png";gi=()=>{let e=$2(IC);if(!e)throw new Error("useTranslations must be used within a LightIntlProvider");let{translations:t}=e;return{t:(r,n)=>{let i=E3(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}},Bk=({text:e,initialFontSize:t,styles:r})=>w("span",{style:r,children:w("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})}),Xr={coinInfo:L`
231
+ `;let h=document.createElement("div");h.id="recommend-panel-content",p.appendChild(f),p.appendChild(h),a(p)}},[]);return In(()=>{if(o){let u=o.getElementById("recommend-panel-content");u&&Gr(w("div",{className:"recommend-panel",children:w("div",{className:"container",children:[w("p",{className:"title",children:r}),w("div",{className:"games-container",children:w(I3,{list:t||[],routeMode:"REDIRECT",layerName:"RecommendedGuide",onGameClick:l,orientation:c})}),w("div",{className:"buttons-container",children:(n!=null?n:[]).map((p,f)=>w("div",{className:"button-wrapper",children:w("button",{className:`button ${p.type===lf.Quit?"quit-button":"action-button"}`,onClick:()=>s(p),children:w("span",{className:"button-text-ellipsis",children:p.text})})},f))})]})}),u)}},[o,t,r,n,s,l]),w("div",{ref:d})},Ok=e=>{let t=kl({title:e.title,content:w(E3,{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},Nk="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=",xl="https://fe-oss.jolibox.com/static/coin/jolicoin.png",Af="https://fe-oss.jolibox.com/static/coin/gem.png";yi=()=>{let e=V2(Ek);if(!e)throw new Error("useTranslations must be used within a LightIntlProvider");let{translations:t}=e;return{t:(r,n)=>{let i=A3(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}},GC=({text:e,initialFontSize:t,styles:r})=>w("span",{style:r,children:w("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})}),Xr={coinInfo:U`
232
232
  display: flex;
233
233
  width: calc(100% - 40px);
234
234
  max-width: 720px;
235
235
  justify-content: space-between;
236
- `,coinAmount:L`
236
+ `,coinAmount:U`
237
237
  display: flex;
238
238
  flex-direction: row;
239
239
  gap: 4px;
240
240
  align-items: center;
241
241
  flex: 1;
242
242
  min-width: 0;
243
- `,coinAmountBalance:L`
243
+ `,coinAmountBalance:U`
244
244
  display: flex;
245
245
  flex-direction: row;
246
246
  gap: 4px;
@@ -248,7 +248,7 @@ If multiple caches share the same key they might "fight" for each other's style
248
248
  justify-content: flex-end;
249
249
  flex: 1;
250
250
  min-width: 0;
251
- `,coinLabelContainer:L`
251
+ `,coinLabelContainer:U`
252
252
  font-weight: 600;
253
253
  text-align: center;
254
254
  flex-shrink: 1;
@@ -256,20 +256,20 @@ If multiple caches share the same key they might "fight" for each other's style
256
256
  min-width: 30px;
257
257
  overflow: hidden;
258
258
  color: #fff;
259
- `,coinValue:L`
259
+ `,coinValue:U`
260
260
  display: flex;
261
261
  align-items: center;
262
262
  gap: 3px;
263
263
  font-size: 22px;
264
264
  font-weight: 900;
265
265
  color: #fdde9d;
266
- `,coinIcon:L`
266
+ `,coinIcon:U`
267
267
  width: 16px;
268
268
  height: 16px;
269
- `,gemIcon:L`
269
+ `,gemIcon:U`
270
270
  width: 25px;
271
271
  height: 25px;
272
- `,autoExpandLabel:L`
272
+ `,autoExpandLabel:U`
273
273
  font-weight: 700;
274
274
  text-align: center;
275
275
  flex-shrink: 1;
@@ -280,7 +280,7 @@ If multiple caches share the same key they might "fight" for each other's style
280
280
  max-width: 70vw;
281
281
  display: inline-block;
282
282
  vertical-align: middle;
283
- `,coinValueText:L`
283
+ `,coinValueText:U`
284
284
  font-weight: 600;
285
285
  text-align: center;
286
286
  flex-shrink: 1;
@@ -288,7 +288,7 @@ If multiple caches share the same key they might "fight" for each other's style
288
288
  font-size: 16px;
289
289
  font-weight: 600;
290
290
  color: #d9d9d9;
291
- `},NC=({unlockNeedsAmount:e=0,balanceAmount:t=0,coinImage:r=Al,formatter:n=s=>s>999?"999+":`${s}`,hideNeeds:i=!1,hideBalance:o=!1,currency:a="JOLI_COIN"})=>{let s=n(t),{t:l}=gi(),c=14,d=Sr(()=>a==="JOLI_GEM"?"joligem.balance":"jolicoin.balance",[a]);return w("div",{style:Xr.coinInfo.styles,children:[!i&&w("div",{style:Xr.coinAmount.styles,children:[w(Bk,{text:l("jolicoin.price"),initialFontSize:c,styles:Xr.coinLabelContainer.styles}),w("div",{style:Xr.coinValue.styles,children:[w("img",{src:r,alt:"Jolicoin",style:a==="JOLI_GEM"?Xr.gemIcon.styles:Xr.coinIcon.styles}),w("span",{children:e})]})]}),!o&&w("div",{style:Xr.coinAmountBalance.styles,children:w(Bk,{text:l(d)+":\xA0"+s,initialFontSize:c,styles:Xr.coinValueText.styles})})]})},Sn={card:L`
291
+ `},Dk=({unlockNeedsAmount:e=0,balanceAmount:t=0,coinImage:r=xl,formatter:n=s=>s>999?"999+":`${s}`,hideNeeds:i=!1,hideBalance:o=!1,currency:a="JOLI_COIN"})=>{let s=n(t),{t:l}=yi(),c=14,d=Sr(()=>a==="JOLI_GEM"?"joligem.balance":"jolicoin.balance",[a]);return w("div",{style:Xr.coinInfo.styles,children:[!i&&w("div",{style:Xr.coinAmount.styles,children:[w(GC,{text:l("jolicoin.price"),initialFontSize:c,styles:Xr.coinLabelContainer.styles}),w("div",{style:Xr.coinValue.styles,children:[w("img",{src:r,alt:"Jolicoin",style:a==="JOLI_GEM"?Xr.gemIcon.styles:Xr.coinIcon.styles}),w("span",{children:e})]})]}),!o&&w("div",{style:Xr.coinAmountBalance.styles,children:w(GC,{text:l(d)+":\xA0"+s,initialFontSize:c,styles:Xr.coinValueText.styles})})]})},Sn={card:U`
292
292
  display: flex;
293
293
  flex-direction: column;
294
294
  align-items: center;
@@ -300,50 +300,50 @@ If multiple caches share the same key they might "fight" for each other's style
300
300
  transition: all 0.2s ease;
301
301
  border: 1px solid transparent;
302
302
  -webkit-tap-highlight-color: transparent;
303
- `,selectedCard:L`
303
+ `,selectedCard:U`
304
304
  background: -webkit-linear-gradient(39.03deg, rgba(255, 255, 255, 0.24) 15.04%, rgba(192, 147, 255, 0.3) 73.25%) !important;
305
305
  border-color: #7e41ff !important;
306
306
  -webkit-tap-highlight-color: transparent;
307
- `,coinContainer:L`
307
+ `,coinContainer:U`
308
308
  display: flex;
309
309
  align-items: center;
310
310
  margin-bottom: 8px;
311
- `,coinIcon:L`
311
+ `,coinIcon:U`
312
312
  width: 21px;
313
313
  height: 21px;
314
314
  margin-right: 4px;
315
- `,gemIcon:L`
315
+ `,gemIcon:U`
316
316
  width: 25px;
317
317
  height: 25px;
318
318
  margin-right: 4px;
319
- `,coinValue:L`
319
+ `,coinValue:U`
320
320
  font-size: 20px;
321
321
  font-weight: bold;
322
322
  color: white;
323
- `,price:L`
323
+ `,price:U`
324
324
  font-size: 16px;
325
325
  color: #C093FF;
326
326
  font-weight: bold;
327
- `},A3=L`
327
+ `},C3=U`
328
328
  box-sizing: border-box;
329
329
  width: 100%;
330
330
  aspect-ratio: 1/1;
331
- `,k3=L`
331
+ `,k3=U`
332
332
  aspect-ratio: 1/1; // 强制 1:1 的宽高比
333
333
  display: flex;
334
334
  flex-direction: column;
335
335
  justify-content: center;
336
336
  -webkit-tap-highlight-color: transparent;
337
- `,C3=e=>w("div",{style:A3.styles,children:w("div",{style:k3.styles,children:w("div",{style:`${Sn.card.styles} ${e.option.id===e.selectedId?Sn.selectedCard.styles:""}`,onClick:()=>e.handleSelect(e.option),children:[w("div",{style:Sn.coinContainer.styles,children:[w("img",{src:e.coinImageSrc,alt:"Coin",style:e.currency==="JOLI_GEM"?Sn.gemIcon.styles:Sn.coinIcon.styles}),w("span",{style:Sn.coinValue.styles,children:e.option.coins.toLocaleString()})]}),w("div",{style:Sn.price.styles,children:e.option.price})]})})}),x3=({options:e,selectedId:t,onSelect:r,currency:n,coinImageSrc:i=Al})=>{let o=Yo(),a=s=>{r==null||r(s)};return w(xC,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{padding:"0px"},children:w(PC,{gutter:[10,10],style:{display:"flex","flex-wrap":"wrap"},children:e.map(s=>w(TC,{span:o==="landscape"?4:8,children:w(C3,{currency:n,option:s,selectedId:t,coinImageSrc:i,handleSelect:a})},s.id))})})},P3=Md(x3);tl={toggleSwitch:L`
337
+ `,x3=e=>w("div",{style:C3.styles,children:w("div",{style:k3.styles,children:w("div",{style:`${Sn.card.styles} ${e.option.id===e.selectedId?Sn.selectedCard.styles:""}`,onClick:()=>e.handleSelect(e.option),children:[w("div",{style:Sn.coinContainer.styles,children:[w("img",{src:e.coinImageSrc,alt:"Coin",style:e.currency==="JOLI_GEM"?Sn.gemIcon.styles:Sn.coinIcon.styles}),w("span",{style:Sn.coinValue.styles,children:e.option.coins.toLocaleString()})]}),w("div",{style:Sn.price.styles,children:e.option.price})]})})}),T3=({options:e,selectedId:t,onSelect:r,currency:n,coinImageSrc:i=xl})=>{let o=Zo(),a=s=>{r==null||r(s)};return w(Tk,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{padding:"0px"},children:w(Pk,{gutter:[10,10],style:{display:"flex","flex-wrap":"wrap"},children:e.map(s=>w(Rk,{span:o==="landscape"?4:8,children:w(x3,{currency:n,option:s,selectedId:t,coinImageSrc:i,handleSelect:a})},s.id))})})},P3=Fd(T3);il={toggleSwitch:U`
338
338
  position: relative;
339
339
  display: inline-block;
340
340
  width: 33px;
341
341
  height: 18px;
342
- `,toggleInput:L`
342
+ `,toggleInput:U`
343
343
  opacity: 0;
344
344
  width: 15px;
345
345
  height: 15px;
346
- `,toggleSlider:L`
346
+ `,toggleSlider:U`
347
347
  position: absolute;
348
348
  cursor: pointer;
349
349
  top: 0;
@@ -365,13 +365,13 @@ If multiple caches share the same key they might "fight" for each other's style
365
365
  transition: 0.4s;
366
366
  border-radius: 50%;
367
367
  }
368
- `,toggleSliderActive:L`
368
+ `,toggleSliderActive:U`
369
369
  background-color: #6a3de8;
370
370
 
371
371
  &:before {
372
372
  transform: translateX(18px);
373
373
  }
374
- `},DC=({enableAutoDeduct:e,toggleEnableAutoDeduct:t})=>T3("label",{css:tl.toggleSwitch,children:[Gk("input",{css:tl.toggleInput,type:"checkbox",checked:e,onChange:t}),Gk("span",{css:[tl.toggleSlider,e&&tl.toggleSliderActive]})]}),Af=()=>w("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w("g",{"clip-path":"url(#clip0_2716_2719)",children:w("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"})}),w("defs",{children:w("clipPath",{id:"clip0_2716_2719",children:w("rect",{width:"24",height:"24",fill:"white",transform:"translate(0 0.5)"})})})]}),Ie={modal:L`
374
+ `},Lk=({enableAutoDeduct:e,toggleEnableAutoDeduct:t})=>R3("label",{css:il.toggleSwitch,children:[JC("input",{css:il.toggleInput,type:"checkbox",checked:e,onChange:t}),JC("span",{css:[il.toggleSlider,e&&il.toggleSliderActive]})]}),Cf=()=>w("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[w("g",{"clip-path":"url(#clip0_2716_2719)",children:w("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"})}),w("defs",{children:w("clipPath",{id:"clip0_2716_2719",children:w("rect",{width:"24",height:"24",fill:"white",transform:"translate(0 0.5)"})})})]}),Ie={modal:U`
375
375
  font-family: PingFangSC-Regular;
376
376
  background-color: #1a1a1a;
377
377
  color: white;
@@ -383,22 +383,22 @@ If multiple caches share the same key they might "fight" for each other's style
383
383
  margin: 0 auto;
384
384
  display: flex;
385
385
  flex-direction: column;
386
- `,header:L`
386
+ `,header:U`
387
387
  display: flex;
388
388
  justify-content: space-between;
389
389
  align-items: center;
390
- `,closeButton:L`
390
+ `,closeButton:U`
391
391
  background: none;
392
392
  border: none;
393
393
  cursor: pointer;
394
394
  color: white;
395
395
  padding: 0px;
396
- `,content:L`
396
+ `,content:U`
397
397
  display: flex;
398
398
  flex-direction: column;
399
399
  gap: 8px;
400
400
  padding-right: 8px;
401
- `,title:L`
401
+ `,title:U`
402
402
  font-size: 14px;
403
403
  font-weight: 600;
404
404
  line-height: 24px;
@@ -406,12 +406,12 @@ If multiple caches share the same key they might "fight" for each other's style
406
406
  color: #fff;
407
407
  padding: 8px 0;
408
408
  text-align: center;
409
- `,autoDeductOption:L`
409
+ `,autoDeductOption:U`
410
410
  display: flex;
411
411
  justify-content: space-between;
412
412
  align-items: center;
413
413
  -webkit-tap-highlight-color: transparent;
414
- `,buttonContainer:L`
414
+ `,buttonContainer:U`
415
415
  display: flex;
416
416
  width: 100%;
417
417
  gap: 16px;
@@ -422,7 +422,7 @@ If multiple caches share the same key they might "fight" for each other's style
422
422
  flex-direction: row;
423
423
  gap: 16px;
424
424
  }
425
- `,buttonFlex:L`
425
+ `,buttonFlex:U`
426
426
  width: 100%;
427
427
  flex: 1 1 100%;
428
428
 
@@ -430,7 +430,7 @@ If multiple caches share the same key they might "fight" for each other's style
430
430
  width: 50%;
431
431
  flex: 1 1 50%;
432
432
  }
433
- `,confirmButton:L`
433
+ `,confirmButton:U`
434
434
  background-color: #6a3de8;
435
435
  color: white;
436
436
  border: none;
@@ -441,7 +441,7 @@ If multiple caches share the same key they might "fight" for each other's style
441
441
  cursor: pointer;
442
442
  transition: background-color 0.3s;
443
443
  -webkit-tap-highlight-color: transparent;
444
- `,cancelButton:L`
444
+ `,cancelButton:U`
445
445
  background-color: transparent;
446
446
  color: #d9d9d9;
447
447
  border: 1px solid rgba(255, 255, 255, 0.2);
@@ -452,26 +452,26 @@ If multiple caches share the same key they might "fight" for each other's style
452
452
  cursor: pointer;
453
453
  transition: background-color 0.3s;
454
454
  -webkit-tap-highlight-color: transparent;
455
- `,bottomIndicator:L`
455
+ `,bottomIndicator:U`
456
456
  width: 40px;
457
457
  height: 4px;
458
458
  background-color: rgba(255, 255, 255, 0.3);
459
459
  border-radius: 2px;
460
460
  margin: 0 auto;
461
461
  -webkit-tap-highlight-color: transparent;
462
- `},R3=({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]=nr(r),u=Yo(),{t:p}=gi(),f=()=>{i(c)},h=Sr(()=>n==="JOLI_GEM"?Ef:Al,[n]),g=Sr(()=>n==="JOLI_GEM"?"joligem.unlockWithJolicoin":"jolicoin.unlockWithJolicoin",[n]),b=Sr(()=>n==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[n]),y=Ot(()=>{d(!c),a(!c)},[c]);return w("div",{style:`${Ie.modal.styles} ${u==="portrait"?"max-width: 440px":"max-width: 75%"}`,children:[w("div",{style:Ie.header.styles,children:[w(NC,{unlockNeedsAmount:e,balanceAmount:t,coinImage:h,currency:n}),w("button",{style:Ie.closeButton.styles,onClick:o.bind(null,{type:"CANCEL"}),children:w(Af,{})})]}),w("div",{style:Ie.content.styles,children:[w("h2",{style:Ie.title.styles,children:p(g)}),!r&&w("div",{style:Ie.autoDeductOption.styles,children:[w("span",{style:L`
462
+ `},O3=({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]=nr(r),u=Zo(),{t:p}=yi(),f=()=>{i(c)},h=Sr(()=>n==="JOLI_GEM"?Af:xl,[n]),g=Sr(()=>n==="JOLI_GEM"?"joligem.unlockWithJolicoin":"jolicoin.unlockWithJolicoin",[n]),b=Sr(()=>n==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[n]),y=Nt(()=>{d(!c),a(!c)},[c]);return w("div",{style:`${Ie.modal.styles} ${u==="portrait"?"max-width: 440px":"max-width: 75%"}`,children:[w("div",{style:Ie.header.styles,children:[w(Dk,{unlockNeedsAmount:e,balanceAmount:t,coinImage:h,currency:n}),w("button",{style:Ie.closeButton.styles,onClick:o.bind(null,{type:"CANCEL"}),children:w(Cf,{})})]}),w("div",{style:Ie.content.styles,children:[w("h2",{style:Ie.title.styles,children:p(g)}),!r&&w("div",{style:Ie.autoDeductOption.styles,children:[w("span",{style:U`
463
463
  font-size: 12px;
464
464
  font-weight: 400;
465
465
  line-height: 1.2;
466
466
  color: #979797;
467
- `.styles,children:p(b)}),w(DC,{enableAutoDeduct:c,toggleEnableAutoDeduct:y})]}),w("section",{style:`${Ie.buttonContainer.styles} ${u==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[w("button",{style:`${Ie.confirmButton.styles} ${Ie.buttonFlex.styles}`,onClick:f,children:p(s)}),w("button",{style:`${Ie.cancelButton.styles} ${Ie.buttonFlex.styles}`,onClick:o.bind(null,{type:"FAILED"}),children:p(l)})]})]})]})},O3=({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]=nr(r),{t:f}=gi(),[h,g]=nr(()=>{var C,k;return((C=n.find(G=>G.defaultSelected))==null?void 0:C.productId)||((k=n==null?void 0:n[0])==null?void 0:k.productId)}),b=Yo(),y=()=>{o(h)},_=Ot(C=>{console.log(C),g(C),l(C)},[]),S=Ot(()=>{p(!u),s(!u)},[u]),E=Sr(()=>i==="JOLI_GEM"?Ef:Al,[i]),P=Sr(()=>i==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[i]);return console.log("defaultEnableAutoDeduct",r),w("div",{style:Ie.modal.styles,children:[w("div",{style:Ie.header.styles,children:[w(NC,{unlockNeedsAmount:e,balanceAmount:t,coinImage:E,currency:i}),w("button",{style:Ie.closeButton.styles,onClick:a.bind(null,{type:"CANCEL"}),children:w(Af,{})})]}),w("div",{style:Ie.content.styles,children:[w("div",{style:L`
467
+ `.styles,children:p(b)}),w(Lk,{enableAutoDeduct:c,toggleEnableAutoDeduct:y})]}),w("section",{style:`${Ie.buttonContainer.styles} ${u==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[w("button",{style:`${Ie.confirmButton.styles} ${Ie.buttonFlex.styles}`,onClick:f,children:p(s)}),w("button",{style:`${Ie.cancelButton.styles} ${Ie.buttonFlex.styles}`,onClick:o.bind(null,{type:"FAILED"}),children:p(l)})]})]})]})},N3=({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]=nr(r),{t:f}=yi(),[h,g]=nr(()=>{var k,C;return((k=n.find(G=>G.defaultSelected))==null?void 0:k.productId)||((C=n==null?void 0:n[0])==null?void 0:C.productId)}),b=Zo(),y=()=>{o(h)},_=Nt(k=>{console.log(k),g(k),l(k)},[]),I=Nt(()=>{p(!u),s(!u)},[u]),E=Sr(()=>i==="JOLI_GEM"?Af:xl,[i]),T=Sr(()=>i==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[i]);return console.log("defaultEnableAutoDeduct",r),w("div",{style:Ie.modal.styles,children:[w("div",{style:Ie.header.styles,children:[w(Dk,{unlockNeedsAmount:e,balanceAmount:t,coinImage:E,currency:i}),w("button",{style:Ie.closeButton.styles,onClick:a.bind(null,{type:"CANCEL"}),children:w(Cf,{})})]}),w("div",{style:Ie.content.styles,children:[w("div",{style:U`
468
468
  padding: 16px 0px;
469
- `.styles,children:w(P3,{options:n.map(C=>({id:C.productId,coins:C.quantity,price:C.totalAmountStr})),coinImageSrc:E,selectedId:h,currency:i,onSelect:C=>_(C.id)})}),!r&&w("div",{style:Ie.autoDeductOption.styles,children:[w("span",{style:L`
469
+ `.styles,children:w(P3,{options:n.map(k=>({id:k.productId,coins:k.quantity,price:k.totalAmountStr})),coinImageSrc:E,selectedId:h,currency:i,onSelect:k=>_(k.id)})}),!r&&w("div",{style:Ie.autoDeductOption.styles,children:[w("span",{style:U`
470
470
  font-size: 12px;
471
471
  font-weight: 400;
472
472
  line-height: 1.2;
473
473
  color: #979797;
474
- `.styles,children:f(P)}),w(DC,{enableAutoDeduct:u,toggleEnableAutoDeduct:S})]}),w("section",{style:`${Ie.buttonContainer.styles} ${b==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[w("button",{style:`${Ie.confirmButton.styles} ${Ie.buttonFlex.styles}`,onClick:y,children:f(c)}),w("button",{style:`${Ie.cancelButton.styles} ${Ie.buttonFlex.styles}`,onClick:a.bind(null,{type:"FAILED"}),children:f(d)})]})]})]})};D3=L`
474
+ `.styles,children:f(T)}),w(Lk,{enableAutoDeduct:u,toggleEnableAutoDeduct:I})]}),w("section",{style:`${Ie.buttonContainer.styles} ${b==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[w("button",{style:`${Ie.confirmButton.styles} ${Ie.buttonFlex.styles}`,onClick:y,children:f(c)}),w("button",{style:`${Ie.cancelButton.styles} ${Ie.buttonFlex.styles}`,onClick:a.bind(null,{type:"FAILED"}),children:f(d)})]})]})]})};L3=U`
475
475
  display: inline-flex;
476
476
  align-items: center;
477
477
  justify-content: center;
@@ -488,18 +488,18 @@ If multiple caches share the same key they might "fight" for each other's style
488
488
  white-space: nowrap;
489
489
  text-overflow: ellipsis;
490
490
  border: 1px solid rgba(255, 255, 255, 0.52);
491
- `,L3=L`
491
+ `,q3=U`
492
492
  position: absolute;
493
493
  left: 20%;
494
494
  bottom: -9px;
495
495
  transform: translateX(-50%);
496
496
  z-index: 2;
497
497
  pointer-events: none;
498
- `;Jt=B(T({},Ie),{header:L`
498
+ `;Jt=B(P({},Ie),{header:U`
499
499
  display: flex;
500
500
  justify-content: flex-end;
501
501
  align-items: center;
502
- `,introduct:L`
502
+ `,introduct:U`
503
503
  display: flex;
504
504
  flex-direction: column;
505
505
  align-items: center;
@@ -507,20 +507,20 @@ If multiple caches share the same key they might "fight" for each other's style
507
507
  margin-top: 24px;
508
508
  gap: 8px;
509
509
  padding: 0 20px;
510
- `,introductSubTitle:L`
510
+ `,introductSubTitle:U`
511
511
  font-size: 14px;
512
512
  color: rgb(255, 255, 255);
513
513
  opacity: 0.5;
514
514
  line-height: 21px;
515
515
  text-align: center;
516
516
  font-weight: 600;
517
- `,introductTitle:L`
517
+ `,introductTitle:U`
518
518
  font-size: 16px;
519
519
  color: #ffffff;
520
520
  line-height: 24px;
521
521
  text-align: center;
522
522
  font-weight: 600;
523
- `,tipsBubble:L`
523
+ `,tipsBubble:U`
524
524
  display: inline-flex;
525
525
  align-items: center;
526
526
  justify-content: center;
@@ -549,7 +549,7 @@ If multiple caches share the same key they might "fight" for each other's style
549
549
  border-top: 8px solid #4f396d;
550
550
  z-index: 2;
551
551
  }
552
- `}),U3={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()},M3=({currency:e,rewardType:t,rewardValue:r,confirmButtonKey:n,cancelButtonKey:i,onClose:o,onConfirm:a})=>{let s=t==="ADS-JOLI_COIN",{t:l}=gi(),c=U3[t];return w("div",{style:{paddingTop:"80px"},children:w("section",{style:`${Jt.modal.styles} width:calc(100% - 40px); position: relative; border-radius: 16px; padding: 0;`,children:[w(N3,{src:c,alt:"\u{1FA99}",width:213,height:125,top:"-80px"}),w("div",{style:Jt.header.styles,children:w("button",{style:`${Jt.closeButton.styles} padding-top: 10px; padding-right: 10px;`,onClick:o.bind(null,{type:"CANCEL"}),children:w(Af,{})})}),w("div",{style:Jt.introduct.styles,children:[s?w("span",{style:Jt.introductSubTitle.styles,children:l("loginGuide.instead")}):null,w("span",{style:Jt.introductTitle.styles,children:w(lf,{children:l("loginGuide.introduct"),values:{coin:w("img",{src:c,alt:"\u{1FA99}",style:{height:"20px",verticalAlign:"text-top",marginRight:"2px"}})}})})]}),w("div",{style:{width:"calc(100% - 40px)",paddingBottom:"16px"},children:w("section",{style:`${Jt.buttonContainer.styles} flex-direction: column; margin-top: 48px; padding: 0 20px;`,children:[w("div",{style:{position:"relative",display:"inline-block",width:"100%",height:"100%"},children:[w("div",{style:{position:"absolute",top:"-32px",right:"-5px",width:"auto",zIndex:1},children:w(q3,{children:w(lf,{style:{fontSize:"12px",color:"#FFFFFF",fontWeight:600,lineHeight:"16px",textAlign:"center"},children:l("loginGuide.tips"),values:{coin:w(He,{children:[w("img",{src:c,alt:"\u{1FA99}",style:{height:"16px",verticalAlign:"text-top",marginRight:"2px"}}),r]})}})})}),w("button",{style:`${Jt.confirmButton.styles} ${Jt.buttonFlex.styles} padding: 0; line-height: 24px; display: flex; align-items: center; justify-content: center; overflow: hidden;`,onClick:a,children:w("span",{style:"display: flex; align-items: center; justify-content: center; width: 100%; word-break: break-word; height: 48px;",children:l(n)})})]}),w("button",{style:`${Jt.cancelButton.styles} ${Jt.buttonFlex.styles} line-height: 24px;`,onClick:o.bind(null,{type:"FAILED"}),children:l(i)})]})})]})})},LC=e=>{let t=El({title:"",content:w(R3,{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},qC=e=>{let t=El({title:"",content:w(O3,{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},UC=e=>{let t=El({title:"",content:w(M3,{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},MC=new Map,tn=(e,t)=>{MC.set(e,t)};tn(/^\{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 w("div",{style:r,children:w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",style:{height:"24px",verticalAlign:"middle"},children:[w("g",{clipPath:"url(#clip0_2247_16523)",children:w("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"})}),w("defs",{children:w("clipPath",{id:"clip0_2247_16523",children:w("rect",{width:"24",height:"24",fill:"white"})})})]})})});tn(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:OC;return w("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});tn(/^\{slot-gem\}/,(e,t)=>{var i,o,a;let r=(i=t==null?void 0:t.gemImage)!=null?i:Ef,n=(a=(o=t==null?void 0:t.customStyle)==null?void 0:o.gem)!=null?a:{width:"28px",height:"28px"};return w("img",{src:r,alt:"\u{1FA99}",style:B(T({},n),{verticalAlign:"middle"})})});F3=/^\{slot-i18n-(.+?)\}/,j3=({i18nKey:e,i18nParams:t,fallbackText:r})=>{let{t:n}=gi(),i=n(e,t);return w("span",{style:{width:"auto",padding:"0 2px"},children:i||r})};tn(F3,(e,t)=>{var n;let r=e[1];return r?w(j3,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,fallbackText:`[${r}]`}):(console.warn("No i18n key extracted from slot pattern:",e[0]),w("span",{children:(n=t==null?void 0:t.text)!=null?n:""}))});B3=/^\{slot-i18ntran-(.+?)\}/,G3=({i18nKey:e,i18nParams:t,imgMap:r={},fallbackText:n})=>{let{t:i}=gi(),o=i(e),a=Object.entries(r).reduce((s,[l,c])=>(s[l]=c(t[l]),s),{});return w(lf,{children:o||n,values:T(T({},t),a)})},J3={coin:e=>w(He,{children:[w("img",{src:OC,alt:"coin",style:{width:16,height:16,marginRight:2,textAlign:"center"}})," ",e," Jolicoin"]})};tn(B3,(e,t)=>{var n,i;let r=e[1];return r?w(G3,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,imgMap:(n=t==null?void 0:t.imgMap)!=null?n:J3,fallbackText:`[${r}]`}):w("span",{children:(i=t==null?void 0:t.text)!=null?i:""})});H3="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8yMjk0XzQwODkpIi8+CjxwYXRoIGQ9Ik0xNC4yOTUgMjUuOTIyN0MxNC4yOTUgMjUuOTIyNyAxNy45MTI1IDIxLjY0MzYgMjEuNzc1OSAxOC4wOTg0QzI0Ljc1NzQgMTUuMzYyMSAyOC4yMTUxIDEzLjE0NzQgMjguMjE1MSAxMy4xNDc0TDI3Ljk2OTUgMTEuNDEzOEMyNy45Njk1IDExLjQxMzggMjQuMDk4NyAxMi45NzYzIDIwLjc1NzUgMTUuMTk0N0MxNy4zNjUzIDE3LjQ0NTQgMTQuNTAzMyAyMC4zNTc3IDE0LjUwMzMgMjAuMzU3N0wxMS4xMzkgMTUuNjQyOEw5LjAzOTk2IDE3LjA1MjJMMTQuMjk1IDI1LjkyMjdMMTQuMjk1IDI1LjkyMjdaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzIyOTRfNDA4OSIgeDE9IjExLjczNDEiIHkxPSIzLjE3NTQxIiB4Mj0iMTgiIHkyPSIzNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjOTc1QkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzc4MTdGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=";tn(/^\{slot-success\}/,(e,t)=>w("img",{src:H3,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));$3="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4xNDIxIDIwQzE1LjY2NSAyMCAyMC4xNDIxIDE1LjUyMjggMjAuMTQyMSAxMEMyMC4xNDIxIDQuNDc3MTUgMTUuNjY1IDEuNzM2OThlLTA3IDEwLjE0MjEgMS43MzY5OGUtMDdDNC42MTkyOSAxLjczNjk4ZS0wNyAwLjE0MjEzNiA0LjQ3NzE1IDAuMTQyMTM1IDEwQzAuMTQyMTM2IDE1LjUyMjggNC42MTkyOSAyMCAxMC4xNDIxIDIwWk02LjUwNTk4IDUuMDQ5OTdDNi4xMTU0NiA0LjY1OTQ1IDUuNDgyMjkgNC42NTk0NSA1LjA5MTc3IDUuMDQ5OTdDNC43MDEyNCA1LjQ0MDUgNC43MDEyNCA2LjA3MzY2IDUuMDkxNzcgNi40NjQxOUw4LjYyNzMgOS45OTk3Mkw1LjA5MTc3IDEzLjUzNTNDNC43MDEyNCAxMy45MjU4IDQuNzAxMjQgMTQuNTU4OSA1LjA5MTc3IDE0Ljk0OTVDNS40ODIyOSAxNS4zNCA2LjExNTQ2IDE1LjM0IDYuNTA1OTggMTQuOTQ5NUwxMC4wNDE1IDExLjQxMzlMMTMuNTc3IDE0Ljk0OTVDMTMuOTY3NiAxNS4zNCAxNC42MDA3IDE1LjM0IDE0Ljk5MTMgMTQuOTQ5NUMxNS4zODE4IDE0LjU1ODkgMTUuMzgxOCAxMy45MjU4IDE0Ljk5MTMgMTMuNTM1M0wxMS40NTU3IDkuOTk5NzJMMTQuOTkxMyA2LjQ2NDE5QzE1LjM4MTggNi4wNzM2NiAxNS4zODE4IDUuNDQwNSAxNC45OTEzIDUuMDQ5OTdDMTQuNjAwNyA0LjY1OTQ1IDEzLjk2NzYgNC42NTk0NSAxMy41NzcgNS4wNDk5N0wxMC4wNDE1IDguNTg1NTFMNi41MDU5OCA1LjA0OTk3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";tn(/^\{slot-error\}/,(e,t)=>w("img",{src:$3,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));V3="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=";tn(/^\{slot-correct\}/,(e,t)=>{var i,o;let r=V3,n=(o=(i=t.customStyle)==null?void 0:i.correct)!=null?o:{width:"24px",height:"24px"};return w("img",{src:r,alt:"\u{1FA99}",style:B(T({},n),{verticalAlign:"middle"})})});rt="-ms-",ml="-moz-",Q="-webkit-",FC="comm",kf="rule",Cf="decl",W3="@import",jC="@keyframes",z3="@layer",K3=Math.abs,kl=String.fromCharCode,Y3=ff.default;Cl=1,hi=1,GC=0,pt=0,Re=0,yi="";d4=function(e,t,r){for(var n=0,i=0;n=i,i=or(),n===38&&i===12&&(t[r]=1),!zo(i);)It();return Qo(e,pt)},p4=function(e,t){var r=-1,n=44;do switch(zo(n)){case 0:n===38&&or()===12&&(t[r]=1),e[r]+=d4(pt-1,t,r);break;case 2:e[r]+=cl(n);break;case 4:if(n===44){e[++r]=or()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=kl(n)}while(n=It());return e},f4=function(e,t){return HC(p4(JC(e),t))},$k=new pf.default,h4=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&&!$k.get(r))&&!n){$k.set(e,!0);for(var i=[],o=f4(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]}}},m4=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};g4=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Cf:e.return=$C(e.value,e.length);break;case jC:return di([Uo(e,{value:X(e.value,"@","@"+Q)})],n);case kf:if(e.length)return Z3(e.props,function(i){switch(X3(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return di([Uo(e,{props:[X(i,/:(read-\w+)/,":"+ml+"$1")]})],n);case"::placeholder":return di([Uo(e,{props:[X(i,/:(plac\w+)/,":"+Q+"input-$1")]}),Uo(e,{props:[X(i,/:(plac\w+)/,":"+ml+"$1")]}),Uo(e,{props:[X(i,/:(plac\w+)/,rt+"input-$1")]})],n)}return""})}},v4=[g4],y4=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,qe.default)(Array.prototype).call(r,function(h){var g=h.getAttribute("data-emotion");(0,Ir.default)(g).call(g," ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var n=e.stylisPlugins||v4,i={},o,a=[];o=e.container||document.head,(0,qe.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(h){for(var g=h.getAttribute("data-emotion").split(" "),b=1;b<g.length;b++)i[g[b]]=!0;a.push(h)});var s,l=[h4,m4];{var c,d=[l4,u4(function(h){c.insert(h)})],u=c4((0,gl.default)(l).call(l,n,d)),p=function(h){return di(a4(h),u)};s=function(h,g,b,y){c=b,p(h?h+"{"+g.styles+"}":g.styles),y&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new sC({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};b4=function(e){var t=y4(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=en(s,t.registered,void 0);return wl(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=en(s,t.registered),d="animation-"+c.name;return Vk(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=en(s,t.registered);Vk(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return Yp(t.registered,r,_4(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){(0,qe.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,Qp.default)($o).call($o,null,t.registered),merge:(0,Qp.default)(Yp).call(Yp,null,t.registered,r)}},_4=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,jo.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},w4=b4({key:"css"}),S4=w4.css,I4=(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 w("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 MC.entries()){let p=d.source.startsWith("^")?d.source.slice(1):d.source,f=new RegExp(p,"g");f.lastIndex=i;let h=f.exec(e);h&&h.index<l&&(s=h,l=h.index,c=u)}if(s&&c){if(l>i){let d=e.substring(i,l);n.push(w("span",{style:r,children:d}))}n.push(c(s,t)),i=l+s[0].length}else{let d=e.substring(i);n.push(w("span",{style:r,children:d}));break}}let o=S4`
552
+ `}),M3={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()},F3=({currency:e,rewardType:t,rewardValue:r,confirmButtonKey:n,cancelButtonKey:i,onClose:o,onConfirm:a})=>{let s=t==="ADS-JOLI_COIN",{t:l}=yi(),c=M3[t];return w("div",{style:{paddingTop:"80px"},children:w("section",{style:`${Jt.modal.styles} width:calc(100% - 40px); position: relative; border-radius: 16px; padding: 0;`,children:[w(D3,{src:c,alt:"\u{1FA99}",width:213,height:125,top:"-80px"}),w("div",{style:Jt.header.styles,children:w("button",{style:`${Jt.closeButton.styles} padding-top: 10px; padding-right: 10px;`,onClick:o.bind(null,{type:"CANCEL"}),children:w(Cf,{})})}),w("div",{style:Jt.introduct.styles,children:[s?w("span",{style:Jt.introductSubTitle.styles,children:l("loginGuide.instead")}):null,w("span",{style:Jt.introductTitle.styles,children:w(cf,{children:l("loginGuide.introduct"),values:{coin:w("img",{src:c,alt:"\u{1FA99}",style:{height:"20px",verticalAlign:"text-top",marginRight:"2px"}})}})})]}),w("div",{style:{width:"calc(100% - 40px)",paddingBottom:"16px"},children:w("section",{style:`${Jt.buttonContainer.styles} flex-direction: column; margin-top: 48px; padding: 0 20px;`,children:[w("div",{style:{position:"relative",display:"inline-block",width:"100%",height:"100%"},children:[w("div",{style:{position:"absolute",top:"-32px",right:"-5px",width:"auto",zIndex:1},children:w(U3,{children:w(cf,{style:{fontSize:"12px",color:"#FFFFFF",fontWeight:600,lineHeight:"16px",textAlign:"center"},children:l("loginGuide.tips"),values:{coin:w($e,{children:[w("img",{src:c,alt:"\u{1FA99}",style:{height:"16px",verticalAlign:"text-top",marginRight:"2px"}}),r]})}})})}),w("button",{style:`${Jt.confirmButton.styles} ${Jt.buttonFlex.styles} padding: 0; line-height: 24px; display: flex; align-items: center; justify-content: center; overflow: hidden;`,onClick:a,children:w("span",{style:"display: flex; align-items: center; justify-content: center; width: 100%; word-break: break-word; height: 48px;",children:l(n)})})]}),w("button",{style:`${Jt.cancelButton.styles} ${Jt.buttonFlex.styles} line-height: 24px;`,onClick:o.bind(null,{type:"FAILED"}),children:l(i)})]})})]})})},qk=e=>{let t=kl({title:"",content:w(O3,{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},Uk=e=>{let t=kl({title:"",content:w(N3,{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},Mk=e=>{let t=kl({title:"",content:w(F3,{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},Fk=new Map,tn=(e,t)=>{Fk.set(e,t)};tn(/^\{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 w("div",{style:r,children:w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",style:{height:"24px",verticalAlign:"middle"},children:[w("g",{clipPath:"url(#clip0_2247_16523)",children:w("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"})}),w("defs",{children:w("clipPath",{id:"clip0_2247_16523",children:w("rect",{width:"24",height:"24",fill:"white"})})})]})})});tn(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:Nk;return w("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});tn(/^\{slot-gem\}/,(e,t)=>{var i,o,a;let r=(i=t==null?void 0:t.gemImage)!=null?i:Af,n=(a=(o=t==null?void 0:t.customStyle)==null?void 0:o.gem)!=null?a:{width:"28px",height:"28px"};return w("img",{src:r,alt:"\u{1FA99}",style:B(P({},n),{verticalAlign:"middle"})})});j3=/^\{slot-i18n-(.+?)\}/,B3=({i18nKey:e,i18nParams:t,fallbackText:r})=>{let{t:n}=yi(),i=n(e,t);return w("span",{style:{width:"auto",padding:"0 2px"},children:i||r})};tn(j3,(e,t)=>{var n;let r=e[1];return r?w(B3,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,fallbackText:`[${r}]`}):(console.warn("No i18n key extracted from slot pattern:",e[0]),w("span",{children:(n=t==null?void 0:t.text)!=null?n:""}))});G3=/^\{slot-i18ntran-(.+?)\}/,J3=({i18nKey:e,i18nParams:t,imgMap:r={},fallbackText:n})=>{let{t:i}=yi(),o=i(e),a=Object.entries(r).reduce((s,[l,c])=>(s[l]=c(t[l]),s),{});return w(cf,{children:o||n,values:P(P({},t),a)})},H3={coin:e=>w($e,{children:[w("img",{src:Nk,alt:"coin",style:{width:16,height:16,marginRight:2,textAlign:"center"}})," ",e," Jolicoin"]})};tn(G3,(e,t)=>{var n,i;let r=e[1];return r?w(J3,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,imgMap:(n=t==null?void 0:t.imgMap)!=null?n:H3,fallbackText:`[${r}]`}):w("span",{children:(i=t==null?void 0:t.text)!=null?i:""})});$3="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8yMjk0XzQwODkpIi8+CjxwYXRoIGQ9Ik0xNC4yOTUgMjUuOTIyN0MxNC4yOTUgMjUuOTIyNyAxNy45MTI1IDIxLjY0MzYgMjEuNzc1OSAxOC4wOTg0QzI0Ljc1NzQgMTUuMzYyMSAyOC4yMTUxIDEzLjE0NzQgMjguMjE1MSAxMy4xNDc0TDI3Ljk2OTUgMTEuNDEzOEMyNy45Njk1IDExLjQxMzggMjQuMDk4NyAxMi45NzYzIDIwLjc1NzUgMTUuMTk0N0MxNy4zNjUzIDE3LjQ0NTQgMTQuNTAzMyAyMC4zNTc3IDE0LjUwMzMgMjAuMzU3N0wxMS4xMzkgMTUuNjQyOEw5LjAzOTk2IDE3LjA1MjJMMTQuMjk1IDI1LjkyMjdMMTQuMjk1IDI1LjkyMjdaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzIyOTRfNDA4OSIgeDE9IjExLjczNDEiIHkxPSIzLjE3NTQxIiB4Mj0iMTgiIHkyPSIzNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjOTc1QkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzc4MTdGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=";tn(/^\{slot-success\}/,(e,t)=>w("img",{src:$3,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));V3="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4xNDIxIDIwQzE1LjY2NSAyMCAyMC4xNDIxIDE1LjUyMjggMjAuMTQyMSAxMEMyMC4xNDIxIDQuNDc3MTUgMTUuNjY1IDEuNzM2OThlLTA3IDEwLjE0MjEgMS43MzY5OGUtMDdDNC42MTkyOSAxLjczNjk4ZS0wNyAwLjE0MjEzNiA0LjQ3NzE1IDAuMTQyMTM1IDEwQzAuMTQyMTM2IDE1LjUyMjggNC42MTkyOSAyMCAxMC4xNDIxIDIwWk02LjUwNTk4IDUuMDQ5OTdDNi4xMTU0NiA0LjY1OTQ1IDUuNDgyMjkgNC42NTk0NSA1LjA5MTc3IDUuMDQ5OTdDNC43MDEyNCA1LjQ0MDUgNC43MDEyNCA2LjA3MzY2IDUuMDkxNzcgNi40NjQxOUw4LjYyNzMgOS45OTk3Mkw1LjA5MTc3IDEzLjUzNTNDNC43MDEyNCAxMy45MjU4IDQuNzAxMjQgMTQuNTU4OSA1LjA5MTc3IDE0Ljk0OTVDNS40ODIyOSAxNS4zNCA2LjExNTQ2IDE1LjM0IDYuNTA1OTggMTQuOTQ5NUwxMC4wNDE1IDExLjQxMzlMMTMuNTc3IDE0Ljk0OTVDMTMuOTY3NiAxNS4zNCAxNC42MDA3IDE1LjM0IDE0Ljk5MTMgMTQuOTQ5NUMxNS4zODE4IDE0LjU1ODkgMTUuMzgxOCAxMy45MjU4IDE0Ljk5MTMgMTMuNTM1M0wxMS40NTU3IDkuOTk5NzJMMTQuOTkxMyA2LjQ2NDE5QzE1LjM4MTggNi4wNzM2NiAxNS4zODE4IDUuNDQwNSAxNC45OTEzIDUuMDQ5OTdDMTQuNjAwNyA0LjY1OTQ1IDEzLjk2NzYgNC42NTk0NSAxMy41NzcgNS4wNDk5N0wxMC4wNDE1IDguNTg1NTFMNi41MDU5OCA1LjA0OTk3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";tn(/^\{slot-error\}/,(e,t)=>w("img",{src:V3,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));W3="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=";tn(/^\{slot-correct\}/,(e,t)=>{var i,o;let r=W3,n=(o=(i=t.customStyle)==null?void 0:i.correct)!=null?o:{width:"24px",height:"24px"};return w("img",{src:r,alt:"\u{1FA99}",style:B(P({},n),{verticalAlign:"middle"})})});rt="-ms-",yl="-moz-",X="-webkit-",jk="comm",kf="rule",xf="decl",z3="@import",Bk="@keyframes",K3="@layer",Y3=Math.abs,Tl=String.fromCharCode,Q3=hf.default;Pl=1,mi=1,Jk=0,ft=0,Re=0,bi="";p4=function(e,t,r){for(var n=0,i=0;n=i,i=or(),n===38&&i===12&&(t[r]=1),!Qo(i);)At();return ea(e,ft)},f4=function(e,t){var r=-1,n=44;do switch(Qo(n)){case 0:n===38&&or()===12&&(t[r]=1),e[r]+=p4(ft-1,t,r);break;case 2:e[r]+=pl(n);break;case 4:if(n===44){e[++r]=or()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Tl(n)}while(n=At());return e},h4=function(e,t){return $k(f4(Hk(e),t))},VC=new ff.default,m4=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&&!VC.get(r))&&!n){VC.set(e,!0);for(var i=[],o=h4(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]}}},g4=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};v4=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case xf:e.return=Vk(e.value,e.length);break;case Bk:return pi([jo(e,{value:Z(e.value,"@","@"+X)})],n);case kf:if(e.length)return e4(e.props,function(i){switch(Z3(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pi([jo(e,{props:[Z(i,/:(read-\w+)/,":"+yl+"$1")]})],n);case"::placeholder":return pi([jo(e,{props:[Z(i,/:(plac\w+)/,":"+X+"input-$1")]}),jo(e,{props:[Z(i,/:(plac\w+)/,":"+yl+"$1")]}),jo(e,{props:[Z(i,/:(plac\w+)/,rt+"input-$1")]})],n)}return""})}},y4=[v4],b4=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,qe.default)(Array.prototype).call(r,function(h){var g=h.getAttribute("data-emotion");(0,Ir.default)(g).call(g," ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var n=e.stylisPlugins||y4,i={},o,a=[];o=e.container||document.head,(0,qe.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(h){for(var g=h.getAttribute("data-emotion").split(" "),b=1;b<g.length;b++)i[g[b]]=!0;a.push(h)});var s,l=[m4,g4];{var c,d=[c4,d4(function(h){c.insert(h)})],u=u4((0,bl.default)(l).call(l,n,d)),p=function(h){return pi(s4(h),u)};s=function(h,g,b,y){c=b,p(h?h+"{"+g.styles+"}":g.styles),y&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new lk({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};_4=function(e){var t=b4(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=en(s,t.registered,void 0);return El(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=en(s,t.registered),d="animation-"+c.name;return WC(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=en(s,t.registered);WC(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return Qp(t.registered,r,w4(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){(0,qe.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,Xp.default)(zo).call(zo,null,t.registered),merge:(0,Xp.default)(Qp).call(Qp,null,t.registered,r)}},w4=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,Jo.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},S4=_4({key:"css"}),I4=S4.css,E4=(e,t)=>{var a;let r=P({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 w("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 Fk.entries()){let p=d.source.startsWith("^")?d.source.slice(1):d.source,f=new RegExp(p,"g");f.lastIndex=i;let h=f.exec(e);h&&h.index<l&&(s=h,l=h.index,c=u)}if(s&&c){if(l>i){let d=e.substring(i,l);n.push(w("span",{style:r,children:d}))}n.push(c(s,t)),i=l+s[0].length}else{let d=e.substring(i);n.push(w("span",{style:r,children:d}));break}}let o=I4`
553
553
  display: 'flex',
554
554
  alignItems: 'flex-start',
555
555
  gap: '4px',
@@ -560,7 +560,7 @@ If multiple caches share the same key they might "fight" for each other's style
560
560
  fontWeight: 600,
561
561
  lineHeight: '18px',
562
562
  width: 'max-content'
563
- `;return n.length===1?n[0]:w("div",{className:o,children:n})},E4=({message:e,type:t="info",duration:r=3e3,onClose:n,position:i="top",customStyle:o})=>{let[a,s]=nr(!0);In(()=>{let d=setTimeout(()=>{s(!1),setTimeout(()=>{n==null||n()},300)},r);return()=>clearTimeout(d)},[r,n]);let l=Sr(()=>{let d=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10);return Math.max(20,d)},[]),c=L`
563
+ `;return n.length===1?n[0]:w("div",{className:o,children:n})},A4=({message:e,type:t="info",duration:r=3e3,onClose:n,position:i="top",customStyle:o})=>{let[a,s]=nr(!0);In(()=>{let d=setTimeout(()=>{s(!1),setTimeout(()=>{n==null||n()},300)},r);return()=>clearTimeout(d)},[r,n]);let l=Sr(()=>{let d=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10);return Math.max(20,d)},[]),c=U`
564
564
  position: fixed;
565
565
  left: 50%;
566
566
  padding: 10px 16px;
@@ -610,7 +610,7 @@ If multiple caches share the same key they might "fight" for each other's style
610
610
  ${Object.entries(o).map(([d,u])=>`${d}: ${u};`).join(`
611
611
  `)}
612
612
  `}
613
- `;return w("div",{className:`toast toast-${t}`,style:c.styles,children:e})},A4=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10),Wk=Math.max(20,A4),zk=12,VC=[],WC=[];Ar=(e,t)=>v(void 0,null,function*(){var p;let{iframe:r,emotionCache:n}=yield jk.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"?VC:WC;s.push(o);let l=I4(e,t),c=kC(),d=SC[c].translations;function u(){i==null||i.body.removeChild(o);let f=s.indexOf(o);f!==-1&&s.splice(f,1),Kk(a),jk.release()}setTimeout(()=>Kk(a),0),Gr(w(_C,{value:n,children:w(EC,{definition:d,children:w(E4,{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)}),Yk={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"}},k4=`
613
+ `;return w("div",{className:`toast toast-${t}`,style:c.styles,children:e})},C4=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10),zC=Math.max(20,C4),KC=12,Wk=[],zk=[];Ar=(e,t)=>v(void 0,null,function*(){var p;let{iframe:r,emotionCache:n}=yield BC.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"?Wk:zk;s.push(o);let l=E4(e,t),c=kk(),d=Ik[c].translations;function u(){i==null||i.body.removeChild(o);let f=s.indexOf(o);f!==-1&&s.splice(f,1),YC(a),BC.release()}setTimeout(()=>YC(a),0),Gr(w(wk,{value:n,children:w(Ak,{definition:d,children:w(A4,{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)}),QC={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"}},k4=`
614
614
  @keyframes spin {
615
615
  0% {
616
616
  transform: rotate(0deg);
@@ -619,7 +619,7 @@ If multiple caches share the same key they might "fight" for each other's style
619
619
  transform: rotate(360deg);
620
620
  }
621
621
  }
622
- `,C4=()=>w("div",{style:Yk.container,children:[w("style",{children:k4}),w("div",{style:Yk.spinner})]});ete=En()});function zC(){return v(this,null,function*(){if(Pf)return Pf;let t=`${I.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com"}/api/user-retention/exit-recommendations?objectId=${I.mpId}&from=GAME_DETAIL`,{response:{data:r}}=yield ne(t);return Pf=r,r})}function KC(){return v(this,null,function*(){let e=new ut;if(I.mpType!=="game")return e.resolve(!1),e.promise;if(Tf)return e.resolve(!0),e.promise;let t=yield zC();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:i}=t.data;Tf=!0;let o={domain:"GAME",buttons:t.data.buttons.map(s=>`${s.type}-${s.text}`).join(","),list:r.games.map(s=>s.gameId).join(",")};j("RecommendedGuide",T({eventType:V.View},o));let a=RC({games:r.games,title:n,buttons:i,onClose:s=>{var l;switch(Tf=!1,s.type){case"quit":j("RecommendedGuide",{eventType:V.Click,type:"QUIT",domain:"GAME"}),e.resolve(!1);break;case"dismiss":j("RecommendedGuide",T({eventType:V.Hide},o)),e.resolve(!0),a.destroy();break;case"navigate":if((l=s.data)!=null&&l.game){let c=s.data.game;x4(c),j("GameItem",{eventType:V.Click,gameId:c.gameId,layerName:"RecommendedGuide",domain:"GAME"}),setTimeout(()=>{e.resolve(!1)},0)}else e.resolve(!0);a.destroy();break;default:j("RecommendedGuide",T({eventType:V.Hide},o)),e.resolve(!0);break}}});return e.promise})}var Pf,x4,Tf,YC=x(()=>{"use strict";J();ue();O();ar();yt();Tt();Pf=null;zC();x4=e=>{var a;let{data:t}=F("envSync"),r=new URL(t.schema),n=new URLSearchParams(r.search);n.set("gameId",e.gameId),n.set("joliSource",I.encodeJoliSourceQuery({__mpType:"game",__orientation:(a=e.orientation)!=null?a:"VERTICAL"}));let o=`${`https://${e.gameId}.content.jolibox.com/`}index.html?${n.toString()}`;F("openSchemaSync",{schema:o})},Tf=!1});function T4(e){let t=T(T({},P4),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 h(){let{overlayTransition:_,containerTransition:S,iframeTransition:E}=p();pe=document.createElement("div"),pe.id="jolibox-modal-overlay",pe.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:${_}; opacity:0; visibility:hidden;`,ie=document.createElement("div"),ie.id="jolibox-modal-container",ie.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:${S};`;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 k=document.createElement("div");if(k.style.cssText="width:100%; height:100%; display:flex; flex-direction:column; padding-bottom:env(safe-area-inset-bottom, 0); position:relative;",Nt=document.createElement("iframe"),Nt.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${E};`,Nt.src=r,Nt.onload=()=>{P.parentNode&&P.parentNode.removeChild(P),Nt.style.opacity="1",g(),l==null||l(),_e.emit("onModalIframeLoaded",{url:r})},k.appendChild(Nt),k.appendChild(P),ie.appendChild(k),i){let G=document.createElement("div");G.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;",G.innerHTML="\u2715",G.onclick=y,ie.appendChild(G)}pe.appendChild(ie),document.body.appendChild(pe),pe.addEventListener("click",function(G){G.target===pe&&y()}),o&&b()}function g(){!pe||!ie||u||(pe.style.visibility="visible",a?requestAnimationFrame(()=>{pe&&(pe.style.opacity="1"),ie&&(ie.style.transform="translateY(0)"),u=!0}):(pe&&(pe.style.opacity="1"),ie&&(ie.style.transform="translateY(0)"),u=!0),F("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:I.webviewId}))}function b(){if(!ie)return;let _=P=>{c=P.touches[0].clientY},S=P=>{if(!u)return;d=P.touches[0].clientY;let C=d-c;C>0&&(ie&&(ie.style.transition="none",ie.style.transform=`translateY(${C}px)`),P.preventDefault())},E=()=>{!u||!ie||(ie.style.transition=a?"transform 0.3s ease":"none",d-c>80?y():ie.style.transform="translateY(0)")};ie.addEventListener("touchstart",_),ie.addEventListener("touchmove",S),ie.addEventListener("touchend",E)}function y(){!pe||!ie||!u||(a?(ie.style.transform="translateY(100%)",pe.style.opacity="0"):pe.style.visibility="hidden",u=!1,F("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:I.webviewId}),setTimeout(()=>{pe&&(pe.remove(),pe=null,ie=null,Nt=null,s==null||s(),_e.emit("onModalIframeClosed",{url:r}))},f()))}return h(),{close:y}}function QC(){return window.joliboxUI=B(T({},window.joliboxUI),{createIframeModal:T4}),()=>{window.joliboxUI=void 0,pe&&pe.parentNode&&pe.parentNode.removeChild(pe),ie&&ie.parentNode&&ie.parentNode.removeChild(ie),Nt&&Nt.parentNode&&Nt.parentNode.removeChild(Nt),pe=null,ie=null,Nt=null}}var P4,pe,ie,Nt,XC=x(()=>{"use strict";ue();J();O();P4={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},pe=null,ie=null,Nt=null});var ix,Tl,Of,Rl,_i,ox,wi,ax,sx,lx,bi,ZC,Pl,ex,R4,cx,Nf,tx,ux,O4,rx,Rf,dx,nx,N4,px,fx=x(()=>{ix=-1,Tl=function(e){addEventListener("pageshow",function(t){t.persisted&&(ix=t.timeStamp,e(t))},!0)},Of=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},Rl=function(){var e=Of();return e&&e.activationStart||0},_i=function(e,t){var r=Of(),n="navigate";return ix>=0?n="back-forward-cache":r&&(document.prerendering||Rl()>0?n="prerender":document.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:t===void 0?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:n}},ox=function(e,t,r){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver(function(i){Promise.resolve().then(function(){t(i.getEntries())})});return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch(i){}},wi=function(e,t,r,n){var i,o;return function(a){t.value>=0&&(a||n)&&((o=t.value-(i||0))||i===void 0)&&(i=t.value,t.delta=o,t.rating=function(s,l){return s>l[1]?"poor":s>l[0]?"needs-improvement":"good"}(t.value,r),e(t))}},ax=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},sx=function(e){document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&e()})},lx=function(e){var t=!1;return function(){t||(e(),t=!0)}},bi=-1,ZC=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},Pl=function(e){document.visibilityState==="hidden"&&bi>-1&&(bi=e.type==="visibilitychange"?e.timeStamp:0,R4())},ex=function(){addEventListener("visibilitychange",Pl,!0),addEventListener("prerenderingchange",Pl,!0)},R4=function(){removeEventListener("visibilitychange",Pl,!0),removeEventListener("prerenderingchange",Pl,!0)},cx=function(){return bi<0&&(bi=ZC(),ex(),Tl(function(){setTimeout(function(){bi=ZC(),ex()},0)})),{get firstHiddenTime(){return bi}}},Nf=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},tx=[1800,3e3],ux=function(e,t){t=t||{},Nf(function(){var r,n=cx(),i=_i("FCP"),o=ox("paint",function(a){a.forEach(function(s){s.name==="first-contentful-paint"&&(o.disconnect(),s.startTime<n.firstHiddenTime&&(i.value=Math.max(s.startTime-Rl(),0),i.entries.push(s),r(!0)))})});o&&(r=wi(e,i,tx,t.reportAllChanges),Tl(function(a){i=_i("FCP"),r=wi(e,i,tx,t.reportAllChanges),ax(function(){i.value=performance.now()-a.timeStamp,r(!0)})}))})},O4=function(e){var t=self.requestIdleCallback||self.setTimeout,r=-1;return e=lx(e),document.visibilityState==="hidden"?e():(r=t(e),sx(e)),r},rx=[2500,4e3],Rf={},dx=function(e,t){t=t||{},Nf(function(){var r,n=cx(),i=_i("LCP"),o=function(l){t.reportAllChanges||(l=l.slice(-1)),l.forEach(function(c){c.startTime<n.firstHiddenTime&&(i.value=Math.max(c.startTime-Rl(),0),i.entries=[c],r())})},a=ox("largest-contentful-paint",o);if(a){r=wi(e,i,rx,t.reportAllChanges);var s=lx(function(){Rf[i.id]||(o(a.takeRecords()),a.disconnect(),Rf[i.id]=!0,r(!0))});["keydown","click"].forEach(function(l){addEventListener(l,function(){return O4(s)},{once:!0,capture:!0})}),sx(s),Tl(function(l){i=_i("LCP"),r=wi(e,i,rx,t.reportAllChanges),ax(function(){i.value=performance.now()-l.timeStamp,Rf[i.id]=!0,r(!0)})})}})},nx=[800,1800],N4=function e(t){document.prerendering?Nf(function(){return e(t)}):document.readyState!=="complete"?addEventListener("load",function(){return e(t)},!0):setTimeout(t,0)},px=function(e,t){t=t||{};var r=_i("TTFB"),n=wi(e,r,nx,t.reportAllChanges);N4(function(){var i=Of();i&&(r.value=Math.max(i.responseStart-Rl(),0),r.entries=[i],n(!0),Tl(function(){r=_i("TTFB",0),(n=wi(e,r,nx,t.reportAllChanges))(!0)}))})}});var vx={};Gm(vx,{config:()=>$4});function L4(){is.on("isAdShowing",e=>{Dl=e,Fr(Dl)&&F("updateContainerConfigSync",{displayCapsuleButton:!Dl,webviewId:I.webviewId})})}function q4(){_e.on("onInterceptSystemExit",({intercept:e})=>{hx=e})}function U4(){_e.on("onInterceptBackPress",({intercept:e})=>{D4=e}),De("onBeforeBackPress",({uuid:e,disableExitRecommendDialog:t})=>{var r,n;gx(t),_e.emit("onBackPress",{}),(n=(r=globalThis.joliboxJSCore)==null?void 0:r.doBackPress)==null||n.call(r,e)})}function M4(){_e.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),j("onDocumentReady",{start_timestamp:ql,timestamp:Date.now()})})}function F4(){De("onI18nChanged",({language:e})=>{_e.emit("onI18nChanged",{i18n:e})})}function j4(e){I.mpType==="game"&&Ft.start(e)}function B4(){De("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&I.onEnvConfigChanged({hostUserInfo:e}),_e.emit("LifecycleEvent.onReady",T({},I.hostUserInfo?I.hostUserInfo:{isLogin:!1})),j("joliboxServiceReady",{start_timestamp:ql,timestamp:Date.now()}),j4(t),AC(()=>I.language)}),De("onBeforeExit",({uuid:e,disableExitRecommendDialog:t})=>{var r;gx(t),(r=globalThis.joliboxJSCore)==null||r.doExit(e)})}function G4(){let e=()=>{j("onBeforeExit",{timestamp:Date.now()}),Ol==null||Ol(),Nl==null||Nl(),Ft.close(Date.now()-ql)},t=()=>Dl||hx;xt.onDoExit(()=>v(this,null,function*(){return t()?!0:Fr(I.shouldInterupt)?(I.shouldInterupt||e(),I.shouldInterupt):Ll!=null&&Ll.canShowRecommended&&!mx&&(yield KC())?!0:(e(),!1)})),xt.onDoBackPress(()=>v(this,null,function*(){return!!t()}))}function J4(){ux(e=>{j("GameFCP",{value:e.value,rating:e.rating,navigationType:e.navigationType})}),dx(e=>{j("GameLCP",{value:e.value,rating:e.rating,navigationType:e.navigationType})}),px(e=>{j("GameTTFB",{value:e.value,rating:e.rating,navigationType:e.navigationType})})}function H4(){return v(this,null,function*(){try{let e="/api/fe-configs/js-sdk/basic-meta",{response:{data:t}}=yield ne(e);t&&(Ll=t)}catch(e){console.error("fetchMetaConfig error:",e)}})}function $4(){ql=Date.now(),B4(),L4(),q4(),U4(),G4(),M4(),F4(),H4(),J4(),Nl=QC(),Ol=hv()}var Ol,Nl,ql,Dl,Ll,hx,D4,mx,gx,yx=x(()=>{"use strict";ue();J();O();Tt();mv();Uu();YC();yt();ar();XC();fx();Dl=!1,Ll=null,hx=!1,D4=!1,mx=!1,gx=e=>{Fr(e)&&(mx=e)};xt.onReady(()=>{})});var bx,V4,W4,z4,K4,_x=x(()=>{"use strict";O();Je();ue();J();bx=W(),V4="env",W4="getSystemInfoSync",z4=K(W4,{implement:()=>{var r;let e=F("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:I.viewport.statusBarHeight,navigationBarHeight:I.viewport.navigationBarHeight}}}}),K4=K(V4,{implement:()=>{var t;let e=F("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});bx.registerCommand("API.getSystemInfoSync",z4);bx.registerCommand("API.env",K4);M("env",{version:"1.0.0"});M("getSystemInfoSync",{version:"1.0.0",properties:{viewport:"1.0.33"}})});var wx=m(Df=>{"use strict";O();Je();vt();ue();Tt();J();var Y4="exitGame",Q4="onReady",X4="onJoliboxShow",Z4="onJoliboxHide",Ul=W(),Ml=Bn(Ee),e$=oe(Y4,{paramsSchema:A.tuple(A.function(),A.boolean().optional().default(!1)),implement:(e,t=!1)=>v(Df,null,function*(){Ml(e).call(Df),Fr(I.shouldInterupt)&&!I.shouldInterupt&&I.from&&dg("onRetentionResult",{shouldStay:t},I.from,!0),t||I.setDoExitDirectly(),yield he("exitAppAsync")})}),t$=K(X4,{paramsSchema:A.tuple(A.function()),implement(e){let t=Ml(e);De("onJoliboxEnterForeground",()=>{t.call(this),to.emit("visible",!0)})}}),r$=K(Z4,{paramsSchema:A.tuple(A.function()),implement(e){let t=Ml(e);De("onJoliboxEnterBackground",()=>{t.call(this),to.emit("visible",!1)})}}),n$=K(Q4,{paramsSchema:A.tuple(A.function()),implement(e){let t=Ml(e);_e.on("LifecycleEvent.onReady",r=>{t(r)})}});Ul.registerCommand("LifecycleSDK.exit",e$);Ul.registerCommand("LifecycleSDK.onReady",n$);Ul.registerCommand("LifecycleSDK.onJoliboxShow",t$);Ul.registerCommand("LifecycleSDK.onJoliboxHide",r$);M("lifeCycle.exit",{version:"1.0.0"});M("lifeCycle.onReady",{version:"1.0.0"});M("lifeCycle.onJoliboxShow",{version:"1.0.0"});M("lifeCycle.onJoliboxHide",{version:"1.0.0"})});function Sx(e){let t={};if(!cn(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 Ix(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 Ex(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function Ax(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!cn(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 kx=x(()=>{"use strict";O()});var i$,o$,Lf,qf,Cx,a$,s$,l$,xx=x(()=>{"use strict";jr();Cu();Je();kx();O();vt();J();i$=15,o$=Ua("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:I.baseApiHost}),Lf=0,qf=[],Cx=Bn(Ee),a$=(e,t)=>{let r=e.filter(t),n=e.filter(i=>!t(i));return e.length=0,e.push(...n),r},s$=e=>{let t=new ut,r=()=>{};return K("request",{paramsSchema:A.tuple(A.object({url:A.string(),method:A.string(),headers:A.object().optional(),data:A.or(A.object(),A.array()).optional(),query:A.object().optional(),dataType:A.string().default("json"),responseType:A.string().default("text"),enableCache:A.boolean().default(!1),appendHostCookie:A.boolean().default(!0),timeout:A.number().default(3e4),success:A.function(),fail:A.function()})),implement(i){let o=()=>v(this,null,function*(){var s,l,c;let a=Cx(i.fail);try{if(Lf+=1,t.state!=="pending")return;let{data:d,dataType:u,responseType:p,enableCache:f,appendHostCookie:h}=i,g=Sx((s=i.headers)!=null?s:{}),b=Ix(i.method),y=Ex(i.timeout),_=Ax(i.url,b,d),S=Cx(i.success),E=Object.assign({},i,{method:b,header:h?void 0:g,data:b==="GET"||b==="HEAD"?void 0:d,enableCache:f,query:(l=i.query)!=null?l:{},dataType:u,responseType:p,appendHostCookie:h});y&&(E.timeout=y);let P=o$(_,E);{let{response:C}=yield P,{code:k,data:G,message:ce}=C;if(G&&typeof G=="object"&&"status"in G&&G.status!==200)throw Xe({code:G.status||-1,msg:`request:fail status ${G.status}`});t.resolve({code:k!=null?k:"SUCCESS",data:G,message:ce!=null?ce:"request:ok"}),S({code:"SUCCESS",message:"request:ok",data:G})}}catch(d){t.reject(d),a({code:"FAILURE",message:"httpRequst: failed"})}finally{Lf-=1,(c=qf.shift())==null||c()}});return Lf>=i$?(r=()=>{a$(qf,a=>a===o)},qf.push(o)):o(),t.promise}})(e),{abort(){t.reject(Xe({code:-1,msg:"request:fail abort"})),r()}}},l$=W();l$.registerCommand("HttpSDK.request",s$);M("request",{version:"1.0.0"})});var c$,u$,d$,Uf,Px=x(()=>{"use strict";O();ue();Je();c$=K("showKeyboard",{paramsSchema:A.tuple(A.object({defaultValue:A.string().optional().default(""),multiple:A.boolean().optional().default(!1),maxLength:A.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)),F("showKeyboardSync",B(T({},e),{defaultValue:r,maxLength:t}))}});M("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"}});u$=K("updateKeyboard",{paramsSchema:A.tuple(A.object({value:A.string()})),implement(e){F("updateKeyboardSync",e)}});M("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});d$=K("hideKeyboard",{implement(){F("hideKeyboardSync")}});M("keyboard.hideKeyboard",{version:"1.0.0"});Uf=W();Uf.registerCommand("KeyboardSDK.showKeyboard",c$);Uf.registerCommand("KeyboardSDK.updateKeyboard",u$);Uf.registerCommand("KeyboardSDK.hideKeyboard",d$)});var Tx=m(Fl=>{"use strict";O();Je();Tt();var Mf=W(),p$=oe("levelFinished",{paramsSchema:A.tuple(A.object({levelId:A.or(A.string(),A.number()),duration:A.number().optional(),rating:A.number().optional(),score:A.number().optional(),variation:A.string().optional()})),implement:e=>v(Fl,null,function*(){let{levelId:t,duration:r,rating:n,score:i,variation:o}=e,a=[];a.push(Ft.tracker("LevelFinished",{levelId:t,duration:r,rating:n,score:i,variation:o})),a.push(Ft.reporter({event:"COMPLETE_GAME_LEVEL",extraParams:{inGameInfo:{levelId:t,duration:r,rating:n,score:i}}})),yield Promise.all(a)})}),f$=oe("gamePlayEnded",{paramsSchema:A.tuple(A.object({duration:A.number().optional(),rating:A.number().optional(),score:A.number(),variation:A.string().optional()})),implement:e=>v(Fl,null,function*(){let{duration:t,rating:r,score:n,variation:i}=e,o=[];o.push(Ft.tracker("GamePlayEnded",{duration:t,rating:r,score:n,variation:i})),o.push(Ft.reporter({event:"GAME_ENDED",extraParams:{inGameInfo:{duration:t,rating:r,score:n}}})),yield Promise.all(o)})}),h$=oe("levelUpgrade",{paramsSchema:A.tuple(A.object({levelId:A.or(A.string(),A.number()),name:A.string().optional()})),implement:r=>v(Fl,[r],function*({levelId:e,name:t}){let n=[];n.push(Ft.tracker("LevelUpgrade",{name:t,levelId:e})),n.push(Ft.reporter({event:"GAME_LEVEL_UP",extraParams:{inGameInfo:{levelId:e,levelName:t}}})),yield Promise.all(n)})});Mf.registerCommand("TaskTrackerSDK.levelFinished",p$);Mf.registerCommand("TaskTrackerSDK.gamePlayEnded",f$);Mf.registerCommand("TaskTrackerSDK.levelUpgrade",h$);M("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"}}});M("TaskTrackerSDK.onGamePlayEnded",{version:"1.1.25",properties:{params:{duration:"1.1.25",rating:"1.1.25",score:"1.1.25",variation:"1.1.50"}}});M("TaskTrackerSDK.onLevelUpgrade",{version:"1.1.25",properties:{params:{levelId:"1.1.25",name:"1.1.25"}}})});var Ff,jf,Bf,m$,Rx,jl=x(()=>{"use strict";J();ue();Je();O();jr();M("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"}});M("checkSession",{version:"1.0.0",success:{errMsg:"1.0.0",isLogin:"1.0.0",isSubUser:"1.2.9"}});Ff=new Map;De("onLoginStateChange",({isLogin:e,token:t,uuid:r,isFirstLogin:n,extra:i,appAccountToken:o})=>{let a=Ff.get(r);a&&(a.resolve({isLogin:e,token:t,isFirstLogin:n,extra:i,appAccountToken:o}),Ff.delete(r))});jf=(e,t=!1)=>v(void 0,null,function*(){var h,g,b;let{data:{isLogin:r}}=yield he("checkLoginAsync");if(r)return{isLogin:!0,token:(h=I.hostUserInfo)==null?void 0:h.token};let{skipLogin:n,triggerFrom:i}=e!=null?e:{},o=F("loginSync",{skipLogin:n,triggerFrom:i}),{data:{uuid:a}}=o;if(!a)throw Xe({code:-1,msg:"login failed"});let s=new ut;Ff.set(a,s);let l=yield s.promise,c=F("envSync"),d=(b=(g=c==null?void 0:c.data)==null?void 0:g.hostUserInfo)==null?void 0:b.isSubUser;I.onEnvConfigChanged({hostUserInfo:B(T({},l),{isSubUser:d})});let y=l,{extra:u,appAccountToken:p}=y,f=Qe(y,["extra","appAccountToken"]);return _e.emit("onLoginComplete",f),t?l:f}),Bf=oe("login",{paramsSchema:A.tuple(A.object({skipLogin:A.boolean().optional(),triggerFrom:A.string().optional()}).optional()),implement(e){return v(this,null,function*(){return yield jf(e!=null?e:{})})}}),m$=oe("checkSession",{implement(){return v(this,null,function*(){var r;let{data:{isLogin:e}}=yield he("checkLoginAsync"),t=(r=I.hostUserInfo)==null?void 0:r.isSubUser;return{isLogin:e,isSubUser:t}})}}),Rx=W();Rx.registerCommand("API.login",Bf);Rx.registerCommand("API.checkSession",m$)});var Ox,Nx=x(()=>{"use strict";Ox=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 An(e){return t=>v(this,null,function*(){var l;let{dailyMaxPopUps:r,minInterval:n}=t,i=yield Br(e);if(!i.data)return{canShow:!0,isFirst:!0};let o=Dx(i.data),a=Ox(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 kn(e){return()=>v(this,null,function*(){var i;let t=Date.now(),r=yield Br(e),n=Dx((i=r.data)!=null?i:"[]");n.push(t),n.sort((o,a)=>a-o).splice(8),yield bt(e,JSON.stringify(n))})}var Dx,Lx,qx,Ux,Mx,Fx,jx,Bx,Gx,Jx,Hx,$x,Vx,Wx,zx,Xo=x(()=>{"use strict";eo();Nx();Dx=e=>{let t;try{t=JSON.parse(e)}catch(r){t=[]}return t};Lx=An("joli_coin_use_modal_frequency"),qx=An("joli_coin_payment_frequency"),Ux=An("joli_coin_unlogin_modal_frequency"),Mx=An("joli_gem_use_modal_frequency"),Fx=An("joli_gem_payment_frequency"),jx=An("joli_gem_unlogin_modal_frequency"),Bx=An("subscription_frequency");Gx=kn("joli_coin_use_modal_frequency"),Jx=kn("joli_coin_payment_frequency"),Hx=kn("joli_coin_unlogin_modal_frequency"),$x=kn("joli_gem_use_modal_frequency"),Vx=kn("joli_gem_payment_frequency"),Wx=kn("joli_gem_unlogin_modal_frequency"),zx=kn("subscription_frequency")});var Gf,Bl,Jf=x(()=>{"use strict";yt();Gf=Promise.resolve(),Bl=(e,t)=>v(void 0,null,function*(){Gf=Gf.then(()=>v(void 0,null,function*(){yield ne(t,{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield Gf})});var Gl,Jl,Ht,Hl,Cn,$t,kr,$l,Vl,xn,Si,g$,q,Cr,xr,Be=x(()=>{"use strict";O();Gl="UNLOCK_OPTIONS_CHANGED",Jl="INVOKE_PAYMENT",Ht="ON_PAYMENT_RESULT",Hl="ON_USE_MODAL_EVENT",Cn="ON_USE_MODAL_RESULT",$t="ON_USE_MODAL_FREQUENCY",kr="ON_USE_UNLOGIN_MODAL_EVENT",$l="INVOKE_UNLOGIN_MODAL_EVENT",Vl="INVOKE_SUBSCRIPTION_EVENT",xn="ON_USE_SUBSCRIPTION_RESULT",Si=new Kt,g$=()=>({on:Si.on.bind(Si),off:Si.off.bind(Si),emit:Si.emit.bind(Si)}),q=g$(),Cr={charge:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},useJolicoin:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},joinMember:{dailyMaxPopUps:2,minInterval:8*60*60*1e3}},xr={show:!0,minInterval:8*60*60*1e3}});function Ge(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 sr=x(()=>{"use strict"});var Qx=m(Hf=>{"use strict";Xo();Jf();Be();Be();ar();Tt();O();sr();var v$={JOLI_COIN:{frequencyConfigKey:"useJolicoin",trackEvents:{popupShow:"unlock_popup_show",coinUnlock:"coin_unlock_click",adUnlock:"ad_unlock_click"},frequencyChecker:Lx,frequencyUpdater:Gx,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:Mx,frequencyUpdater:$x,apiEndpointAutoDeduct:"/api/joli-gem/user-config"}},Kx=En(),Yx=Ge(q,$t);Yx.getData();q.on(Hl,(e,t)=>v(Hf,null,function*(){let r=t.currency,n=v$[r];if(e.includes("ADS-")){yield Kx.show({duration:3e3});let l=yield Yx.getData(),{canShow:c,isFirst:d}=yield n.frequencyChecker(l.joliCoinUseAndCharge[n.frequencyConfigKey]);console.log(`${r} modal show by frequency`,c,d),Kx.hide();let{balance:u}=t.userCurrency;if(u>=t.quantity&&t.enableAutoDeduct&&!d){q.emit(Cn,{useModalResult:"CONFIRM"});return}if(!c){q.emit(Cn,{useModalResult:"FAILED"});return}}j(n.trackEvents.popupShow,{eventType:V.View,targetType:"game",currency:r});let{userCurrency:i,enableAutoDeduct:o,quantity:a}=t,s=LC({data:{enableAutoDeduct:o,userCurrency:i,quantity:a,currency:r},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{j(n.trackEvents.coinUnlock,{targetType:"game",eventType:V.Click,coinConsume:t.quantity,ifAutoUnlock:t.enableAutoDeduct,currency:r}),q.emit(Cn,{useModalResult:"CONFIRM"}),s.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:l})=>{l==="FAILED"&&j(n.trackEvents.adUnlock,{targetType:"game",eventType:V.Click,currency:r}),q.emit(Cn,{useModalResult:(l!=null?l:"")==="CANCEL"?"CANCEL":"FAILED"}),s.destroy()}},onEnableDeductChanged:l=>v(Hf,null,function*(){yield Bl(l,n.apiEndpointAutoDeduct)})}});yield n.frequencyUpdater()}))});function Xx(){let e=new Map;return{registerPaymentHandler(r,n){e.set(r,n)},invokePayment(r,...n){return v(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 Ee(o),{code:"FAILED",message:`[joliboxSDK]: paymenterror ${o}`}}})}}}var Zx=x(()=>{"use strict";vt()});var Zo=x(()=>{"use strict"});var y$,Ii,Et,b$,Pn,Wl=x(()=>{"use strict";Zo();O();J();yt();y$=()=>{let[e,t]=[Da,La].map(r=>(n,i,o)=>new r(n,i,o));return{createPaymentError:e,createPaymentInternalError:t}},{createPaymentError:Ii,createPaymentInternalError:Et}=y$(),b$=I.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",Pn=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startPayment=t=>v(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw Ii(n,1001);return yield this.pay()});this.cancelOrder=t=>v(this,null,function*(){var n,i;let{response:r}=yield ne(`/api/orders/${t}/cancel`,{method:"POST",data:{}});if(r.code!=="SUCCCESS")throw Ii((i=(n=r.message)!=null?n:r.errMsg)!=null?i:"",1003)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",I.deviceInfo.platform),t.set("joliSource",I.encodeJoliSourceQuery(T({},this.generatePaymentContext()))),`${b$}//payment/callback?${t.toString()}`}}get orderId(){return this._orderId}get status(){return this._orderStatus}}});var Vf,eP,tP=x(()=>{"use strict";yt();Wl();Zo();Vf=class extends Pn{constructor(r){super();this.productId=r;this.generatePaymentContext=()=>({type:"JOLI_COIN_ORDER_CONTEXT",state:"TO_VALIDATE",productId:this.productId,orderId:this.orderId});this.pay=()=>v(this,null,function*(){let r=this.generateCallbackUrl();return console.info("callbackUrl",r),{code:"SUCCESS",message:"jolicoin payment success"}})}placeOrder(r){return v(this,null,function*(){var n,i,o,a;try{let{response:s}=yield ne("/api/orders/checkout/joli-coin",{method:"POST",data:{productId:r.productId}});if(s.code!=="SUCCESS")throw Ii((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),Et((a=JSON.stringify(s))!=null?a:"jolicoin placeorder failed",1002)}})}},eP=()=>{let e=new Map;return t=>v(void 0,null,function*(){let r=e.get(t);return r||(r=new Vf(t),e.set(t,r)),yield r.startPayment({productId:t}),{code:"SUCCESS",message:"jolicoin payment success"}})}});var rP,nP=x(()=>{"use strict";rP={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 Wf,iP,zf,Kf,_$,Yf,oP=x(()=>{"use strict";yt();Wl();Zo();ue();O();J();ar();nP();Wf=new Map;De("onPaymentStateChange",e=>{console.info("onPaymentStateChange",e);let{orderUUID:t,status:r,totalAmount:n,orderResponse:i}=e,o=Wf.get(t);if(o){if(r==="SUCCESS")o.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{totalAmount:n}});else{if(r==="FAILED"&&Na(i==null?void 0:i.errNo)&&(i==null?void 0:i.errNo)!==0)throw Et(`jolicoin payment failed: ${i==null?void 0:i.errMsg}`,1002);let a=rP[r];a&&Ar(`{slot-error} {slot-i18n-jolicoin.${a}}`,{position:"center",duration:3e3}),o.resolve({code:"FAILED",message:"jolicoin payment failed"})}Wf.delete(t)}});iP=e=>v(void 0,null,function*(){var n,i;let t=new ut,r;try{let o=yield he("requestPaymentSync",{paymentBody:{appStoreProductId:e.appStoreProductId,appAccountToken:e.appAccountToken}});if(r=(n=o.data)==null?void 0:n.orderUUID,console.info("---purchaseGem---",o),!r)throw Et("orderUUID is null",1002);Wf.set(r,t)}catch(o){throw Et((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),zf=class extends Pn{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=()=>v(this,null,function*(){return yield iP({appStoreProductId:this.appStoreProductId})})}placeOrder(r){return v(this,null,function*(){return{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},Kf=class extends Pn{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=()=>v(this,null,function*(){return yield iP({appStoreProductId:this.appStoreProductId,appAccountToken:this.appAccountToken})})}placeOrder(r){return v(this,null,function*(){var a;console.log("----start place order for ios----");let{response:n}=yield ne("/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 Et("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"}})}},_$={android:zf,ios:Kf},Yf=()=>{let e=new Map;return t=>v(void 0,null,function*(){let{productId:r,appStoreProductId:n}=t,i=e.get(r);if(!i){let s=_$[I.platform];if(!s)throw Et("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 Ii(a,1002);return{code:"SUCCESS",message:"jolicoin payment success"}})}});var Tn,Qf=x(()=>{"use strict";Zx();tP();oP();Tn=Xx();Tn.registerPaymentHandler("JOLI_COIN",eP());Tn.registerPaymentHandler("JOLI_COIN_IAP",Yf());Tn.registerPaymentHandler("JOLI_GEM_IAP",Yf())});function aP(n,i){return v(this,arguments,function*(e,t,r={}){let{storageKeyPrefix:o="joli_cache_"}=r,a=o+e,s=a+"_timestamp";try{let l=yield t(),c=Date.now();try{l!=null&&(yield bt(a,l),yield bt(s,c.toString()),console.log("[Cache] Cached result for key:",e))}catch(d){console.warn("[Cache] Failed to save to localStorage for key:",e,d)}return l}catch(l){throw console.warn("[Cache] Executor failed for key:",e,l),l}})}function zl(n,i){return v(this,arguments,function*(e,t,r={}){let{cacheDuration:o=-1,storageKeyPrefix:a="joli_cache_"}=r,s=a+e,l=s+"_timestamp",c=o===1/0||o===-1;try{let{data:d}=yield Br(s),{data:u}=yield Br(l);if(d&&u){let p=parseInt(u,10);if(c||Date.now()-p<o){console.log("[Cache] Using localStorage cached data for key:",e);let f=JSON.parse(d);return c||setTimeout(()=>v(this,null,function*(){try{console.log("[Cache] Background updating cache for key:",e);let h=yield t(),g=Date.now();yield bt(s,h),yield bt(l,g.toString()),console.log("[Cache] Background cache update completed for key:",e)}catch(h){console.warn("[Cache] Background cache update failed for key:",e,h)}}),0),f}else yield bt(s,null),yield bt(l,null)}}catch(d){console.warn("[Cache] Failed to read from localStorage for key:",e,d)}try{let d=yield t(),u=Date.now();try{d&&(yield bt(s,d),yield bt(l,u.toString()))}catch(p){console.warn("[Cache] Failed to save to localStorage for key:",e,p)}return d}catch(d){throw console.warn("[Cache] Executor failed for key:",e,d),d}})}var Xf=x(()=>{"use strict";eo()});function w$(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=>!Ki(r.totalAmountStr))}var rn,Zf,lr,Ql,eh,th,Kl,Yl,sP,Xl,rh=x(()=>{"use strict";Qf();O();ue();yt();O();Xf();rn=class rn{execute(t,r){return v(this,null,function*(){var a,s,l;let{response:n}=yield ne(t,{method:"GET",appendHostCookie:!0,responseType:"json"});if(console.log("[PaymentService] get products info from server",t,n.data),!((a=n.data)!=null&&a.data))throw new Error("get products info failed");let i=n.data.data,o=(l=(s=i.paymentChoices)==null?void 0:s.filter(c=>typeof c.appStoreProductId=="string").map(c=>c.appStoreProductId))!=null?l:[];if(o.length>0){let c=yield this.getNativePriceData(o);c&&w$(i,c)}if(i.paymentChoices.length===0)throw new Error("paymentChoices is empty");return i})}getNativePriceData(t){return v(this,null,function*(){let r=t.sort().join(",");return zl(r,()=>v(this,null,function*(){try{let{data:n}=yield he("requestProductDetailsAsync",{appStoreProductIds:t});return n&&(rn.nativePriceCache.set(r,n),rn.nativePriceCacheTimestamp.set(r,Date.now())),n}catch(n){throw console.warn("[PaymentService] Failed to fetch native product details:",n),n}}),{cacheDuration:rn.NATIVE_PRICE_CACHE_DURATION,storageKeyPrefix:"joli_native_price_"})})}extractCacheableData(t){return{paymentChoices:t.paymentChoices}}mergeData(t,r){return{balance:r.balance,enableAutoDeduct:r.enableAutoDeduct,paymentChoices:t.paymentChoices}}processCachedData(t){return{balance:0,enableAutoDeduct:!1,paymentChoices:t.paymentChoices}}static clearNativePriceCache(){this.nativePriceCache.clear(),this.nativePriceCacheTimestamp.clear(),console.log("[PaymentService] Cleared native price cache")}};rn.nativePriceCache=new Map,rn.NATIVE_PRICE_CACHE_DURATION=10*60*1e3,rn.nativePriceCacheTimestamp=new Map;Zf=rn,lr=class lr extends Mt{constructor(r,n){super(new Zf,{duration:10*60*1e3,timeout:3e3});this.apiEndpoint=r;this.paymentType=n}getProductsInfo(){return v(this,null,function*(){let r=lr.failureCounters.get(this.apiEndpoint)||0;if(r>=lr.MAX_FAILURE_COUNT)throw new Error(`getProductsInfo has failed more than ${lr.MAX_FAILURE_COUNT} times for ${this.apiEndpoint}`);try{let n=yield this.request(this.apiEndpoint);return lr.failureCounters.delete(this.apiEndpoint),n}catch(n){let i=r+1;throw lr.failureCounters.set(this.apiEndpoint,i),console.warn(`[PaymentService] getProductsInfo failed (${i}/${lr.MAX_FAILURE_COUNT+1}) for ${this.apiEndpoint}:`,n),n}})}purchase(r){return v(this,null,function*(){var a;let n=yield this.getProductsInfo(),i=(a=n==null?void 0:n.paymentChoices.find(s=>s.productId===r))==null?void 0:a.appStoreProductId;if(!i)throw new Error("appStoreProductId not found");return yield Tn.invokePayment(this.paymentType==="JOLI_COIN"?"JOLI_COIN_IAP":"JOLI_GEM_IAP",{productId:r,appStoreProductId:i})})}getProductsInfoWithBalance(){return v(this,null,function*(){return this.request(this.apiEndpoint)})}refreshProductsInfo(){return v(this,null,function*(){return this.forceRequest(this.apiEndpoint)})}static resetFailureCounters(){this.failureCounters.clear()}static getFailureCount(r){return this.failureCounters.get(r)||0}};lr.failureCounters=new Map,lr.MAX_FAILURE_COUNT=2;Ql=lr,eh=class extends Ql{constructor(){super("/api/joli-coin/balance-detail","JOLI_COIN")}},th=class extends Ql{constructor(){super("/api/joli-gem/balance-detail","JOLI_GEM")}},Kl=null,Yl=null,sP=()=>Kl||(Kl=new eh,Kl),Xl=()=>Yl||(Yl=new th,Yl)});var uP=m(Zl=>{"use strict";Be();ar();J();jl();O();Xo();Qf();ar();Je();Tt();Jf();sr();rh();var S$={JOLI_COIN:{frequencyConfigKey:"charge",trackEvents:{modalShow:"coinorder_show",orderClick:"coinorder_click",payEnsure:"order_pay_ensure",payResult:"order_pay_result",adUnlock:"ad_unlock_click"},frequencyChecker:qx,frequencyUpdater:Jx,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:Fx,frequencyUpdater:Vx,apiEndpoint:"/api/joli-gem/balance-detail",apiEndpointAutoDeduct:"/api/joli-gem/user-config",paymentType:"JOLI_GEM_IAP"}},Ei=En(),lP=sP(),cP=Xl(),I$=Ge(q,$t);q.on(Jl,(e,t)=>v(Zl,null,function*(){var r,n,i;try{let o=t.currency,a=S$[o];if(!je("requestPaymentSync:paymentBody:appStoreProductId")){console.info("requestPaymentSync:paymentBody:appStoreProductId not supported"),setTimeout(()=>{q.emit(Ht,{paymentResult:"FAILED",currency:o})},0);return}if(e.includes("ADS-")){yield Ei.show({duration:3e3});let d=yield I$.getData(),{canShow:u}=yield a.frequencyChecker(d.joliCoinUseAndCharge[a.frequencyConfigKey]);if(console.log(`${o} payment show by frequency`,u),Ei.hide(),!u){q.emit(Ht,{paymentResult:"FAILED",currency:o});return}console.log("show by frequency")}yield Ei.show({duration:3e3});let s=o==="JOLI_COIN"?lP:cP,l=yield s.getProductsInfo();if(Ei.hide(),!l||!((r=l.paymentChoices)!=null&&r.length)){q.emit(Ht,{paymentResult:"FAILED",currency:o});return}j(a.trackEvents.modalShow,{targetType:"game",eventType:V.View,currency:o});let c=qC({data:{userCurrency:t.userCurrency,quantity:t.quantity,currency:o,paymentChoices:(i=(n=l.paymentChoices)==null?void 0:n.map(d=>{var u;return B(T({},d),{totalAmountStr:(u=d.totalAmountStr)!=null?u:""})}))!=null?i:[],enableAutoDeduct:t.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:d=>v(Zl,null,function*(){var f,h,g,b,y,_,S,E;if(j(a.trackEvents.payEnsure,{targetType:"game",eventType:V.Click,payWay:"app_iap",coinAmount:t.quantity,currency:o,orderPrice:(h=(f=l.paymentChoices.find(P=>P.productId===d))==null?void 0:f.totalAmountStr)!=null?h:""}),!((g=I.hostUserInfo)!=null&&g.isLogin)){let{data:P}=yield Bf({skipLogin:!0});if(!(P!=null&&P.isLogin)){console.log("login failed");return}let C=yield s.refreshProductsInfo();if(((b=C==null?void 0:C.balance)!=null?b:0)>=t.quantity){q.emit(Ht,{paymentResult:"SUCCESS",currency:o}),c.destroy();return}}console.log("invokeNativePayment",d);let u=(_=(y=l==null?void 0:l.paymentChoices)==null?void 0:y.find(P=>P.productId===d))==null?void 0:_.appStoreProductId;if(!u){q.emit(Ht,{paymentResult:"FAILED",currency:o}),c.destroy();return}yield Ei.show({duration:3e3});let{code:p}=yield Tn.invokePayment(a.paymentType,{productId:d,appStoreProductId:u});if(Ei.hide(),j(a.trackEvents.payResult,{eventType:V.Other,targetType:"game",payWay:"app_iap",coinAmount:t.quantity,currency:o,orderPrice:(E=(S=l.paymentChoices.find(P=>P.productId===d))==null?void 0:S.totalAmountStr)!=null?E:"",payResult:p}),p!=="SUCCESS"){console.info("[JoliboxSDK] payment failed in payment.invokePaymet");return}Ar("{slot-success} {slot-i18n-jolicoin.unlockSuccess}",{position:"center",duration:3e3}),q.emit(Ht,{paymentResult:"SUCCESS",currency:o}),c.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:d})=>{q.emit(Ht,{paymentResult:(d!=null?d:"")==="CANCEL"?"CANCEL":"FAILED",currency:o}),j(a.trackEvents.adUnlock,{targetType:"game",eventType:V.Click,currency:o}),c.destroy()}},onEnableDeductChanged:d=>v(Zl,null,function*(){yield Bl(d,a.apiEndpointAutoDeduct)})},onSelect:d=>{var u,p;j(a.trackEvents.orderClick,{targetType:"game",eventType:V.Click,coinAmount:t.quantity,currency:o,orderPrice:(p=(u=l.paymentChoices.find(f=>f.productId===d))==null?void 0:u.totalAmountStr)!=null?p:""})}});yield a.frequencyUpdater()}catch(o){console.error("payment failed",o),q.emit(Ht,{paymentResult:"FAILED",currency:t.currency})}}));lP.getProductsInfo().catch(e=>{console.error("preload joli coin payment details failed",e)});cP.getProductsInfo().catch(e=>{console.error("preload joli gem payment details failed",e)})});var pP=m(ec=>{"use strict";Be();sr();Xo();yt();vt();O();jl();ar();Tt();var E$={JOLI_COIN:{frequencyChecker:Ux,frequencyUpdater:Hx,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:jx,frequencyUpdater:Wx,trackEvents:{modalExpose:"GemLoginGuideModal",clickConfirm:"GemLoginGuideModal",clickConfirmLogin:"GemLoginGuideModal",modalHide:"GemLoginGuideModal",clickClose:"GemLoginGuideModal",clickWatchAds:"GemLoginGuideModal"},toastMessage:{i18nKey:"{slot-i18ntran-loginGuide.gemRewardTips}",usedText:"Gem Used"}}},dP=Ge(q,$t);dP.getData();q.on($l,(e,t)=>v(ec,null,function*(){var r;try{let n=t.currency,i=E$[n];if(e.includes("ADS-")){let s=yield dP.getData();if(console.log(`${n} unlogin guide config`,s.loginGuide),!s.loginGuide.show){q.emit(kr,{result:"NOT_SUPPORT"});return}let{canShow:l}=yield i.frequencyChecker(s.loginGuide);if(console.log(`${n} canShowUseModal`,l),!l){q.emit(kr,{result:"FAILED"});return}}let{firstLogin:o}=(r=yield A$())!=null?r:{};if(!(o!=null&&o.reward)){console.log("[JoliboxSDK] unlogin modal reward is empty"),q.emit(kr,{result:"NOT_SUPPORT"});return}j(i.trackEvents.modalExpose,{eventType:V.Expose,currency:n},V.Expose);let a=UC({data:{rewardType:e,rewardValue:o.reward.rewardValue,currency:t.currency},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>v(ec,null,function*(){var d,u,p,f;j(i.trackEvents.clickConfirm,{type:"click_confirm",eventType:V.Click,currency:n},V.Click);let{isLogin:s,extra:l,isFirstLogin:c}=yield jf({},!0);if(!s){console.log("login failed");return}if(j(i.trackEvents.clickConfirmLogin,{type:"click_confirm_login",isFirstLogin:c,eventType:V.Click,currency:n},V.Click),c&&((d=l==null?void 0:l.firstLogin)!=null&&d.reward)){let{rewardValue:h}=l.firstLogin.reward;Ar(i.toastMessage.i18nKey,{i18nParams:{text:i.toastMessage.usedText,coin:h},position:"top",duration:3e3})}q.emit(kr,{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})=>{j(i.trackEvents.modalHide,{eventType:V.Hide,currency:n},V.Hide);let l=s==="CANCEL"?"click_close":"click_watch_ads",c=s==="CANCEL"?i.trackEvents.clickClose:i.trackEvents.clickWatchAds;j(c,{type:l,eventType:V.Click,currency:n},V.Click),q.emit(kr,{result:"FAILED"}),a.destroy()}}}});yield i.frequencyUpdater()}catch(n){Ee(new Ag(n)),q.emit(kr,{result:"FAILED"})}}));var A$=()=>v(ec,null,function*(){var t;let{response:e}=yield ne("/api/base/global-config",{method:"GET",appendHostCookie:!0,responseType:"json"});return(t=e.data)==null?void 0:t.data})});function k$(){let e=new Map;return{registerSubscriptionHandler(r,n){e.set(r,n)},invokeSubscription(r,...n){return v(this,null,function*(){let i=e.get(r);if(!i)return{code:"FAILED",message:`[joliboxSDK]: ${r} subscription not supported in this platform`};try{return yield i(...n)}catch(o){return Ee(o),{code:"FAILED",message:`[joliboxSDK]: subscription error ${o}`}}})}}}var ea,nh=x(()=>{"use strict";vt();ea=k$()});var Rn,tc=x(()=>{"use strict";Rn={PlaceOrderFailed:1001,CancelOrderFailed:1002,SubscriptionFailed:1003,InvalidPlan:1004}});var C$,fP,rc,x$,ta,ih=x(()=>{"use strict";tc();O();J();C$=()=>{let[e,t]=[Da,La].map(r=>(n,i,o)=>new r(n,i,o));return{createSubscriptionError:e,createSubscriptionInternalError:t}},{createSubscriptionError:fP,createSubscriptionInternalError:rc}=C$(),x$=I.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",ta=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startSubscription=t=>v(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw fP(n,Rn.PlaceOrderFailed);return yield this.subscribe(t)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",I.deviceInfo.platform),t.set("joliSource",I.encodeJoliSourceQuery(T({},this.generateSubscriptionContext()))),`${x$}/subscription/callback?${t.toString()}`};this.createSubscriptionError=fP;this.createSubscriptionInternalError=rc}setOrderId(t){this._orderId=t}setOrderStatus(t){this._orderStatus=t}get orderId(){return this._orderId}get status(){return this._orderStatus}}});function P$(e,t){Object.keys(t).forEach(r=>{var i,o,a,s;let n=e.find(l=>l.appStoreProductId===r);n&&(n.amountStr=t[r].pricing.formattedPrice,n.originalAmountStr=t[r].pricing.originalPrice,n.discountPercentage=(o=(i=t[r].pricing.discountPercentage)==null?void 0:i.toString())!=null?o:"",n.trialDay=(s=(a=t[r].trial)==null?void 0:a.duration)!=null?s:0)}),e=e.filter(r=>!Ki(r.amountStr))}var On,ic,oh,ah,nc,hP,sh=x(()=>{"use strict";O();ue();yt();O();Xf();nh();ue();ih();tc();On=class On{static getNativePriceCache(t){var n;let r=t.sort().join(",");return(n=this.nativePriceCache.get(r))!=null?n:{}}execute(t,r){return v(this,null,function*(){var a,s;let{response:n}=yield ne(t,{method:"GET",appendHostCookie:!0,responseType:"json"});if(!((a=n.data)!=null&&a.data))throw new Error("get subscription tiers failed");let i=n.data.data,o=(s=i==null?void 0:i.filter(l=>typeof l.appStoreProductId=="string").map(l=>l.appStoreProductId))!=null?s:[];if(o.length>0){let l=yield this.getNativePriceData(o);l&&P$(i,l)}if(i.length===0)throw new Error("subscription tiers is empty");return i})}requestNativeSubscriptionPlans(t,r){return v(this,null,function*(){try{let{data:n}=yield he("requestSubscriptionPlansAsync",{appStoreProductIds:t,type:"game"});return n&&(On.nativePriceCache.set(r,n),On.nativePriceCacheTimestamp.set(r,Date.now())),n}catch(n){throw console.warn("[SubscriptionService] Failed to fetch native subscription pricing:",n),n}})}getNativePriceData(t,r=!1){return v(this,null,function*(){let n=t.sort().join(",");return(r?aP:zl)(n,()=>this.requestNativeSubscriptionPlans(t,n),{storageKeyPrefix:"joli_subscription_price_"})})}extractCacheableData(t){return{subscriptionTiers:t}}mergeData(){throw new Error("SubscriptionService does not support real-time data merging")}processCachedData(t){return t.subscriptionTiers}updateNativePriceCache(t){return v(this,null,function*(){yield this.getNativePriceData(t,!0),console.log("[SubscriptionService] Updated native price cache for products:",t)})}static clearNativePriceCache(){this.nativePriceCache.clear(),this.nativePriceCacheTimestamp.clear(),console.log("[SubscriptionService] Cleared native price cache")}};On.nativePriceCache=new Map,On.NATIVE_PRICE_CACHE_DURATION=1*24*60*60*1e3,On.nativePriceCacheTimestamp=new Map;ic=On,oh=class extends Mt{constructor(r){super(new ic,{duration:30*60*1e3,timeout:3e3});this.apiEndpoint=r;this.pendingSubscriptions=new Map;this.subInfoCacheKeys=[];this.listenSubscriptionPanelStateChange()}getSubInfo(){return v(this,null,function*(){var r;try{let n=yield this.request(this.apiEndpoint);return this.subInfoCacheKeys=(r=n==null?void 0:n.map(i=>{var o;return(o=i.appStoreProductId)!=null?o:""}))!=null?r:[],n}catch(n){throw console.warn(`[SubscriptionService] getSubInfo failed for ${this.apiEndpoint}:`,n),n}})}refreshSubInfo(){return v(this,null,function*(){return this.forceRequest(this.apiEndpoint)})}updateNativePriceCache(r){return v(this,null,function*(){yield this.requestAdapter.updateNativePriceCache(r)})}updateAllNativePriceCache(){return v(this,null,function*(){try{this.subInfoCacheKeys.length>0&&(yield this.updateNativePriceCache(this.subInfoCacheKeys),this.forceRequest(this.apiEndpoint))}catch(r){throw console.warn("[SubscriptionService] Failed to update all native price cache:",r),r}})}subscribe(r){return v(this,null,function*(){var s;console.log("[SubscriptionService] subscribe params",ea);let n=new AbortController,i=ea.invokeSubscription("SUB_APP",{productId:r.nativeProductId,appStoreProductId:r.appStoreProductId,planId:r.basePlanId}),o=this.pollSubscriptionStatus(n.signal),a=yield Promise.race([i.then(l=>{var c;return n.abort(),{result:l.code,subPlanId:(c=l.data)==null?void 0:c.subPlanId,message:l.message}}),o.then(l=>(l==null?void 0:l.result)==="SUCCESS"?(n.abort(),l):new Promise(()=>{console.log("[SubscriptionPolling] Timeout for subscriptionService.subscribe completion")}))]);return{result:a.result,subPlanId:a.subPlanId,message:(s=a.message)!=null?s:""}})}pollSubscriptionStatus(r){return v(this,null,function*(){var o,a;for(let s=0;s<10;s++){if(r.aborted){console.log("[SubscriptionPolling] Aborted due to subscribe completion");return}try{let{response:l}=yield ne("/api/subs/info",{method:"GET",appendHostCookie:!0,responseType:"json"});if(((a=(o=l.data)==null?void 0:o.data)==null?void 0:a.status)==="ACTIVE")return{result:"SUCCESS",subPlanId:l.data.data.subPlanId,message:"Subscription activated via polling"}}catch(l){console.warn(`[SubscriptionPolling] Attempt ${s+1} failed:`,l)}s<9&&!r.aborted&&(yield Oa(5e3))}})}invokeSubscriptionPanel(){return v(this,null,function*(){var i,o;let r=new ut,n;try{if(console.log("[invokeSubscriptionPanel] requestSubscriptionSync params"),n=(i=F("invokeSubscriptionPanelSync",{type:"game"}).data)==null?void 0:i.subUUID,!n)throw rc("orderUUID is null",Rn.SubscriptionFailed);this.pendingSubscriptions.set(n,r)}catch(a){throw rc((o=JSON.stringify(a))!=null?o:"subscription panel failed",Rn.SubscriptionFailed)}return r.promise})}getTierByProductId(r){return v(this,null,function*(){var s;let n=yield this.getSubInfo(),i=n==null?void 0:n.find(l=>l.productId===r);if(!i)return;let o=ic.getNativePriceCache((n!=null?n:[]).map(l=>{var c;return(c=l.appStoreProductId)!=null?c:""}));if(!o)return;let a=o[(s=i.appStoreProductId)!=null?s:""];if(a)return console.log("[SubscriptionService] getTierByProductId nativeSubInfo",a),{nativeProductId:a.productId,appStoreProductId:i.appStoreProductId,basePlanId:a.basePlanId}})}listenSubscriptionPanelStateChange(){De("onSubscriptionPanelStateChange",r=>{var i;console.log("[onSubscriptionPanelStateChange] data",r);let n=this.pendingSubscriptions.get(r.subUUID);n&&(r.status==="SUCCESS"?n.resolve({code:"SUCCESS",message:"subscription panel success",data:{result:"SUCCESS",subPlanId:(i=r.orderResponse)==null?void 0:i.subPlanId}}):n.resolve({code:"FAILED",message:"subscription panel failed",data:{result:"FAILED"}}))})}},ah=class extends oh{constructor(){super("/api/subs/pricing")}},nc=null,hP=()=>nc||(nc=new ah,nc)});var mP=x(()=>{"use strict"});function vP(){let e=new Map;return t=>v(this,null,function*(){console.log("[SubAppSubscriptionHandler] createSubAppSubscriptionHandler params",t);let{productId:r,planId:n}=t,i=`${r}_${n}`,o=e.get(i);if(!o){console.log("[SubAppSubscriptionHandler] createSubAppSubscriptionHandler instance not found",i);let a=T$[I.platform];if(!a)throw new Error(`Platform ${I.platform} not supported for sub-app subscription`);o=new a(r,n),e.set(i,o)}return o.startSubscription({basePlanId:n,appStoreProductId:t.appStoreProductId,productId:r})})}var lh,gP,ch,uh,T$,yP=x(()=>{"use strict";J();ih();Zo();Wl();O();ue();O();tc();De("onGlobalSubscriptionStateChange",e=>{let{status:t,orderResponse:r}=e;console.log("[onGlobalSubscriptionStateChange] data",e),t==="SUCCESS"&&(r!=null&&r.subPlanId||r!=null&&r.tickedId)&&I.onEnvConfigChanged({hostUserInfo:{isLogin:!0,isSubUser:!0}})});lh=new Map;De("onSubscritptionStateChange",e=>{var o,a;let{subUUID:t,status:r,orderResponse:n}=e;console.log("[onSubscritptionStateChange] data",e);let i=lh.get(t);if(i){if(r==="SUCCESS")i.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{subPlanId:(o=n==null?void 0:n.subPlanId)!=null?o:n.tickedId}});else{if(r==="FAILED"&&Na(n==null?void 0:n.errNo)&&(n==null?void 0:n.errNo)!==0)throw Et(`subscription failed: ${n==null?void 0:n.errMsg}`,Rn.SubscriptionFailed);i.resolve({code:r,message:(a=n==null?void 0:n.errMsg)!=null?a:"UNKNOWN_ERROR"})}lh.delete(t)}});gP=e=>v(void 0,null,function*(){var n,i;let t=new ut,r;try{if(console.log("[internalSubscribe] requestSubscriptionSync params",e),r=(n=F("requestSubscriptionSync",T({params:{basePlanId:e.basePlanId,appStoreProductId:e.appStoreProductId,productId:e.productId}},e.appAccountToken?{paymentBody:{appAccountToken:e.appAccountToken,appStoreProductId:e.appStoreProductId}}:{})).data)==null?void 0:n.subUUID,!r)throw Et("subUUID is null",1002);lh.set(r,t)}catch(o){throw Et((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),ch=class extends ta{constructor(r,n){super();this.productId=r;this.planId=n}placeOrder(r){return v(this,null,function*(){return{code:"SUCCESS",message:"Android subscription order placed locally"}})}cancelOrder(r){return Promise.resolve({code:"SUCCESS",message:"Android order cancelled locally",data:void 0})}generateSubscriptionContext(){return{gameId:I.mpId,productId:this.productId,planId:this.planId}}subscribe(r){return v(this,null,function*(){return yield gP(r)})}},uh=class extends ta{constructor(r,n){super();this.productId=r;this.planId=n}placeOrder(r){return v(this,null,function*(){var o,a;console.log("----start place order for iOS subscription----");let n=F("envSync"),i=(a=(o=n==null?void 0:n.data)==null?void 0:o.hostUserInfo)==null?void 0:a.appAccountToken;if(!i)throw Et("appAccountToken is null",1002);return this.subscriptionToken=i,{code:"SUCCESS",message:"placeorder sub-app success in native"}})}cancelOrder(r){return v(this,null,function*(){return Promise.resolve({code:"SUCCESS",message:"Android order cancelled locally",data:void 0})})}generateSubscriptionContext(){return{gameId:I.mpId,productId:this.productId,planId:this.planId}}subscribe(r){return v(this,null,function*(){return yield gP(B(T({},r),{appAccountToken:this.subscriptionToken}))})}},T$={android:ch,ios:uh}});var Nn,dh=x(()=>{"use strict";sh();mP();nh();yP();sh();Nn=hP();ea.registerSubscriptionHandler("SUB_APP",vP())});var SP=m(wP=>{"use strict";Xo();Be();sr();Je();dh();ar();var R$={SUBSCRIPTION:{frequencyConfigKey:"joinMember",frequencyChecker:Bx,frequencyUpdater:zx}},bP=En(),_P=Ge(q,$t);_P.getData();q.on(Vl,e=>v(wP,null,function*(){let t=R$.SUBSCRIPTION;if(!je("invokeSubscriptionPanelSync")){console.info("invokeSubscriptionPanelSync not supported"),setTimeout(()=>{q.emit(xn,{result:"FAILED"})},0);return}yield bP.show({duration:3e3});let r=yield _P.getData(),{canShow:n,isFirst:i}=yield t.frequencyChecker(r.joliCoinUseAndCharge[t.frequencyConfigKey]);if(bP.hide(),!n){q.emit(xn,{result:"FAILED"});return}let{data:o,code:a}=yield Nn.invokeSubscriptionPanel();a=="SUCCESS"&&(o!=null&&o.subPlanId)?q.emit(xn,{result:"SUCCESS"}):q.emit(xn,{result:"FAILED"}),yield t.frequencyUpdater()}))});var ioe,ooe,aoe,soe,IP=x(()=>{"use strict";ioe=se(Qx()),ooe=se(uP()),aoe=se(pP()),soe=se(SP())});function $$(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function V$(e){return typeof e=="string"}function W$(e){return typeof e=="undefined"}function z$(e){return W$(e)||e===null}function K$(e){return typeof e=="function"}function lT(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 ra(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function cc(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 rV(e){let t=e.location?cc(e.location,PP):null,r=e.target?cc(e.target,PP):null;return cc(G$(B$({},e),{location:t,target:r}),eV)}function nV(e){let t=e.events.map(n=>rV(n)),r=cc(e.device,tV);return[e.protocolVersion,t,r,e.project]}function iV(){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 cV(e){return new Promise(t=>pT(e)(t))}function pT(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 uV(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new da(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 pV(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)fV(e[n],t[n])}function fV(e,t){if(V$(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(K$(t)){try{if(e instanceof t)return}catch(r){}if(!z$(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 ft(e,t,r){return(t=hV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hV(e){var t=mV(e,"string");return typeof t=="symbol"?t:t+""}function mV(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 oc(e,t,r){return(t=gV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gV(e){var t=vV(e,"string");return typeof t=="symbol"?t:t+""}function vV(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 ac(e,t,r){return(t=yV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yV(e){var t=bV(e,"string");return typeof t=="symbol"?t:t+""}function bV(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 Pr(e,t,r){return(t=_V(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _V(e){var t=wV(e,"string");return typeof t=="symbol"?t:t+""}function wV(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 SV(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 IV(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 PV(e,t){return ze(e,0)^45?(((t<<2^ze(e,0))<<2^ze(e,1))<<2^ze(e,2))<<2^ze(e,3):0}function mT(e){return e.trim()}function TV(e,t){return(e=t.exec(e))?e[0]:e}function ee(e,t,r){return e.replace(t,r)}function Dh(e,t){return e.indexOf(t)}function ze(e,t){return e.charCodeAt(t)|0}function pa(e,t,r){return e.slice(t,r)}function cr(e){return e.length}function cm(e){return e.length}function sc(e,t){return t.push(e),e}function RV(e,t){return e.map(t).join("")}function xc(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Cc,column:Oi,length:a,return:""}}function ia(e,t){return xV(xc("",null,null,"",null,null,0),e,{length:-e.length},t)}function OV(){return Oe}function NV(){return Oe=mt>0?ze(Ni,--mt):0,Oi--,Oe===10&&(Oi=1,Cc--),Oe}function kt(){return Oe=mt<gT?ze(Ni,mt++):0,Oi++,Oe===10&&(Oi=1,Cc++),Oe}function ur(){return ze(Ni,mt)}function uc(){return mt}function ma(e,t){return pa(Ni,e,t)}function fa(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 vT(e){return Cc=Oi=1,gT=cr(Ni=e),mt=0,[]}function yT(e){return Ni="",e}function dc(e){return mT(ma(mt-1,Lh(e===91?e+2:e===40?e+1:e)))}function DV(e){for(;(Oe=ur())&&Oe<33;)kt();return fa(e)>2||fa(Oe)>3?"":" "}function LV(e,t){for(;--t&&kt()&&!(Oe<48||Oe>102||Oe>57&&Oe<65||Oe>70&&Oe<97););return ma(e,uc()+(t<6&&ur()==32&&kt()==32))}function Lh(e){for(;kt();)switch(Oe){case e:return mt;case 34:case 39:e!==34&&e!==39&&Lh(Oe);break;case 40:e===41&&Lh(e);break;case 92:kt();break}return mt}function qV(e,t){for(;kt()&&e+Oe!==57&&!(e+Oe===84&&ur()===47););return"/*"+ma(t,mt-1)+"*"+kc(e===47?e:kt())}function UV(e){for(;!fa(ur());)kt();return ma(e,mt)}function MV(e){return yT(pc("",null,null,null,[""],e=vT(e),0,[0],e))}function pc(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,h=0,g=1,b=1,y=1,_=0,S="",E=i,P=o,C=n,k=S;b;)switch(h=_,_=kt()){case 40:if(h!=108&&ze(k,u-1)==58){Dh(k+=ee(dc(_),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:k+=dc(_);break;case 9:case 10:case 13:case 32:k+=DV(h);break;case 92:k+=LV(uc()-1,7);continue;case 47:switch(ur()){case 42:case 47:sc(FV(qV(kt(),uc()),t,r),l);break;default:k+="/"}break;case 123*g:s[c++]=cr(k)*y;case 125*g:case 59:case 0:switch(_){case 0:case 125:b=0;case 59+d:y==-1&&(k=ee(k,/\f/g,"")),f>0&&cr(k)-u&&sc(f>32?OP(k+";",n,r,u-1):OP(ee(k," ","")+";",n,r,u-2),l);break;case 59:k+=";";default:if(sc(C=RP(k,t,r,c,d,i,s,S,E=[],P=[],u),o),_===123)if(d===0)pc(k,t,C,C,E,o,u,s,P);else switch(p===99&&ze(k,3)===110?100:p){case 100:case 108:case 109:case 115:pc(e,C,C,n&&sc(RP(e,C,C,0,0,i,s,S,i,E=[],u),P),i,P,u,s,n?E:P);break;default:pc(k,C,C,C,[""],P,0,s,P)}}c=d=f=0,g=y=1,S=k="",u=a;break;case 58:u=1+cr(k),f=h;default:if(g<1){if(_==123)--g;else if(_==125&&g++==0&&NV()==125)continue}switch(k+=kc(_),_*g){case 38:y=d>0?1:(k+="\f",-1);break;case 44:s[c++]=(cr(k)-1)*y,y=1;break;case 64:ur()===45&&(k+=dc(kt())),p=ur(),d=u=cr(S=k+=UV(uc())),_++;break;case 45:h===45&&cr(k)==2&&(g=0)}}return o}function RP(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=cm(p),h=0,g=0,b=0;h<n;++h)for(var y=0,_=pa(e,u+1,u=CV(g=a[h])),S=e;y<f;++y)(S=mT(g>0?p[y]+" "+_:ee(_,/&\f/g,p[y])))&&(l[b++]=S);return xc(e,t,r,i===0?sm:s,l,c,d)}function FV(e,t,r){return xc(e,t,r,fT,kc(OV()),pa(e,2,-2),0)}function OP(e,t,r,n){return xc(e,t,r,lm,pa(e,0,n),pa(e,n+1,-1),n)}function Ti(e,t){for(var r="",n=cm(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function jV(e,t,r,n){switch(e.type){case kV:if(e.children.length)break;case AV:case lm:return e.return=e.return||e.value;case fT:return"";case hT:return e.return=e.value+"{"+Ti(e.children,n)+"}";case sm:e.value=e.props.join(",")}return cr(r=Ti(e.children,n))?e.return=e.value+"{"+r+"}":""}function BV(e){var t=cm(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 GV(e){return function(t){t.root||(t=t.return)&&e(t)}}function JV(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function bT(e,t){switch(PV(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+vc+e+it+e+e;case 6828:case 4268:return Z+e+it+e+e;case 6165:return Z+e+it+"flex-"+e+e;case 5187:return Z+e+ee(e,/(\w+).+(:[^]+)/,Z+"box-$1$2"+it+"flex-$1$2")+e;case 5443:return Z+e+it+"flex-item-"+ee(e,/flex-|-self/,"")+e;case 4675:return Z+e+it+"flex-line-pack"+ee(e,/align-content|flex-|-self/,"")+e;case 5548:return Z+e+it+ee(e,"shrink","negative")+e;case 5292:return Z+e+it+ee(e,"basis","preferred-size")+e;case 6060:return Z+"box-"+ee(e,"-grow","")+Z+e+it+ee(e,"grow","positive")+e;case 4554:return Z+ee(e,/([^-])(transform)/g,"$1"+Z+"$2")+e;case 6187:return ee(ee(ee(e,/(zoom-|grab)/,Z+"$1"),/(image-set)/,Z+"$1"),e,"")+e;case 5495:case 3959:return ee(e,/(image-set\([^]*)/,Z+"$1$`$1");case 4968:return ee(ee(e,/(.+:)(flex-)?(.*)/,Z+"box-pack:$3"+it+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Z+e+e;case 4095:case 3583:case 4068:case 2532:return ee(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(cr(e)-1-t>6)switch(ze(e,t+1)){case 109:if(ze(e,t+4)!==45)break;case 102:return ee(e,/(.+:)(.+)-([^]+)/,"$1"+Z+"$2-$3$1"+vc+(ze(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Dh(e,"stretch")?bT(ee(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ze(e,t+1)!==115)break;case 6444:switch(ze(e,cr(e)-3-(~Dh(e,"!important")&&10))){case 107:return ee(e,":",":"+Z)+e;case 101:return ee(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Z+(ze(e,14)===45?"inline-":"")+"box$3$1"+Z+"$2$3$1"+it+"$2box$3")+e}break;case 5936:switch(ze(e,t+11)){case 114:return Z+e+it+ee(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Z+e+it+ee(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Z+e+it+ee(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Z+e+it+e+e}return e}function XV(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 yc(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 nn={name:i.name,styles:i.styles,next:nn},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)nn={name:a.name,styles:a.styles,next:nn},a=a.next;var s=o.styles+";";return s}return r9(e,t,r)}}var l=r;if(t==null)return l;var c=t[l];return c!==void 0?c:l}function r9(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=yc(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]+"}":DP(s)&&(n+=fh(o)+":"+LP(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++)DP(a[l])&&(n+=fh(o)+":"+LP(o,a[l])+";");else{var c=yc(e,t,a);switch(o){case"animation":case"animationName":{n+=fh(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function hh(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="";nn=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=yc(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=yc(r,t,e[s]),n){var l=o;i+=l[s]}qP.lastIndex=0;for(var c="",d;(d=qP.exec(i))!==null;)c+="-"+d[1];var u=XV(i)+c;return{name:u,styles:i,next:nn}}function wT(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}function UP(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function MP(e,t,r){var n=[],i=wT(e,n,r);return n.length<2?r:i+t(n)}function l9(e,t){Me.__h&&Me.__h(At,e,jP||t),jP=0;var r=At.__H||(At.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function IT(e,t){var r=l9(qh++,7);return d9(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function c9(){for(var e;e=ST.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(fc),e.__H.__h.forEach(Uh),e.__H.__h=[]}catch(t){e.__H.__h=[],Me.__e(t,e.__v)}}function u9(e){var t,r=function(){clearTimeout(n),WP&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);WP&&(t=requestAnimationFrame(r))}function fc(e){var t=At,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),At=t}function Uh(e){var t=At;e.__c=e.__(),At=t}function d9(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Pc(){if(on>1)on--;else{for(var e,t=!1;la!==void 0;){var r=la;for(la=void 0,Mh++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&AT(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(Mh=0,on--,t)throw e}}function Ke(e){if(on>0)return e();on++;try{return e()}finally{Pc()}}function ET(e){if(le!==void 0){var t=e.n;if(t===void 0||t.t!==le)return t={i:0,S:e,p:le.s,n:void 0,t:le,e:void 0,x:void 0,r:t},le.s!==void 0&&(le.s.n=t),le.s=t,e.n=t,32&le.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=le.s,t.n=void 0,le.s.n=t,le.s=t),t}}function Ye(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function $(e){return new Ye(e)}function AT(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 kT(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 CT(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 Di(e){Ye.call(this,void 0),this.x=e,this.s=void 0,this.g=bc-1,this.f=4}function ca(e){return new Di(e)}function xT(e){var t=e.u;if(e.u=void 0,typeof t=="function"){on++;var r=le;le=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,um(e),n}finally{le=r,Pc()}}}function um(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,xT(e)}function f9(e){if(le!==this)throw new Error("Out-of-order effect");CT(this),le=e,this.f&=-2,8&this.f&&um(this),Pc()}function ga(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function va(e){var t=new ga(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function Li(e,t){D[e]=t.bind(null,D[e]||function(){})}function _c(e){gh&&gh(),gh=e&&e.S()}function RT(e){var t=this,r=e.data,n=OT(r);n.value=r;var i=IT(function(){for(var s=t,l=t.__v;l=l.__;)if(l.__c){l.__c.__$f|=4;break}var c=ca(function(){var f=n.value.value;return f===0?0:f===!0?"":f||""}),d=ca(function(){return!Array.isArray(c.value)&&!Bu(c.value)}),u=va(function(){if(this.N=NT,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 h9(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=$(r);return{o:function(a,s){o.value=a,n=s},d:va(function(){this.N=NT;var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function OT(e){return IT(function(){return $(e)},[])}function g9(){Ke(function(){for(var e;e=TT.shift();)PT.call(e)})}function NT(){TT.push(this)===1&&(D.requestAnimationFrame||m9)(g9)}function v9(e,t){let r=ni(e);ri(()=>{r.current=e},[e]),yn(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function z(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:--y9,__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 D.vnode&&D.vnode(c),c}function Tr(e,t,r){return(t=T9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function T9(e){var t=R9(e,"string");return typeof t=="symbol"?t:t+""}function R9(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 lt(e,t,r){return(t=J9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function J9(e){var t=H9(e,"string");return typeof t=="symbol"?t:t+""}function H9(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 Rr(e,t,r){return(t=z9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function z9(e){var t=K9(e,"string");return typeof t=="symbol"?t:t+""}function K9(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 nt(e,t,r){return(t=Y9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Y9(e){var t=Q9(e,"string");return typeof t=="symbol"?t:t+""}function Q9(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 ht(e,t,r){return(t=X9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function X9(e){var t=Z9(e,"string");return typeof t=="symbol"?t:t+""}function Z9(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 Dn(e,t,r){return(t=eW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eW(e){var t=tW(e,"string");return typeof t=="symbol"?t:t+""}function tW(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 vh(e,t,r){return(t=rW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function rW(e){var t=nW(e,"string");return typeof t=="symbol"?t:t+""}function nW(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=iW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function iW(e){var t=oW(e,"string");return typeof t=="symbol"?t:t+""}function oW(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 dW(e){return!!(e!=null&&e.__nativeBuffers__)}function Kh(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!dW(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=pW(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function hW(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,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:fW(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function yW(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function MT(e){return typeof e=="string"}function Ri(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function YP(e){return typeof e=="number"&&!isNaN(e)}function _W(e){return typeof e=="undefined"}function wW(e){return _W(e)||e===null}function FT(e){return typeof e=="function"}function SW(e){return Ri(e)&&FT(e.then)}function jT(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 oa(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function PW(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 DW(){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 FW(e){return new Promise(t=>BT(e)(t))}function BT(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 jW(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new ha(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 GW(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)JW(e[n],t[n])}function JW(e,t){if(MT(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(!wW(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 Dt(e,t){if(Qh.config[e]){Rc.warn(`[can i use] ${e} already registered`);return}Qh.config[e]=Lr({},t)}function ZP(e,t){return`[${e}]:${t}`}function QW(e,t){eT||(_h=new mc({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),wh=new mc({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Sh=new mc({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),t("onJoliboxEnterBackground",()=>{_h.flush(),wh.flush(),Sh.flush()}),eT=!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:h,invokeCallback:g}=f,b=(a=(o=u.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";_h.report({status:b,method:n(s,l),errNo:`${p}`,errMsg:u,isForeground:d,duration:Date.now()-c}),c&&h&&g&&(wh.report({status:b,method:s,isForeground:d,duration:Number((h-c).toFixed(3))}),Sh.report({status:b,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 ez(e,t){let r=0,n=!0,i=ZW.resolveMap,o=QW(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,Ih.forEach(l=>Ic(this,[l],function(c){let{method:d,args:u,resolve:p}=c;return function*(){let f=yield s(d,u);p(f)}()})),Ih.length=0});let a=(l,c)=>{let d=i.get(Number(l));if(!d)return;let u=Kh(c);d(u),i.delete(Number(l))},s=(l,c)=>{var d,u;let p=Date.now(),f=`${n}`;r+=1;let h=new bW;if(i.set(r,h.resolve),!n&&WW.includes(l))return new Promise(E=>{Ih.push({method:l,args:c,resolve:E})});let g=cW(Lr({},{method:l,startTime:p,args:c,isForeground:f}),{invokeType:"js-bridge"}),b=VW.includes(l),y=hW(c,b),_=b?y:JSON.stringify(y),S;if(l.endsWith("Sync")||zW.includes(l)?S=(d=e.call)==null?void 0:d.call(e,l,y,r):typeof _=="string"?S=e.invoke(l,_,r):S=(u=e.call)==null?void 0:u.call(e,l,_,r),S){try{typeof S=="string"&&(S=JSON.parse(S)),S=Kh(S)}catch(E){Rc.error(E)}return i.delete(r),S.errorCode&&(S.errorCode=ZP(l,S.errorCode)),o(Lr(Lr({},g),S)),S}return l.endsWith("Sync")&&i.delete(r),h.promise.then(E=>(E.errorCode&&(E.errorCode=ZP(l,E.errorCode)),o(Lr(Lr({},g),E)),E))};return{invokeNative:s,applyNative:(l,c)=>{let d=s(l,c);return SW(d)?d.then(u=>tT(l,u)):tT(l,d)},invokeHandler:a}}function tT(e,t){if(!Ri(t)){Rc.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=uW(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new kW(n,i,o,a);return s}function tz(e){if(globalThis[lc])return globalThis[lc];let t=new em,r=new em,n=new mc({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[lc]={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=Kh(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===GT){l.forEach(c=>{let[d,u]=c;try{r.emit(d.slice(ua.length),u,a)}catch(p){}});return}if(i.startsWith(ua)){r.emit(i.slice(ua.length),l,a);return}t.emit(i,l,a)}},globalThis[lc]}function rz(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(`${ua}${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(GT,d,p)}catch(p){}}),n=void 0,t.clear()}));let c=t.get(s);c||(c=[],t.set(s,c)),c.push([`${ua}${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(KW,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 nz(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=tz(e),{invokeNative:a,invokeHandler:s,applyNative:l}=ez(e,r),{publish:c,emitNative:d}=rz(e);return{invokeHandler:s,subscribeHandler:t,applyNative:l,invokeNative:a,onNative:r,offNative:n,emitNative:d,publish:c,subscribe:i,unsubscribe:o}}function JT(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}function lz(e,t,r){return(t=cz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cz(e){var t=uz(e,"string");return typeof t=="symbol"?t:t+""}function uz(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 Or(e,t,r){return(t=pz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pz(e){var t=fz(e,"string");return typeof t=="symbol"?t:t+""}function fz(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 Nr(e,t,r){return(t=hz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function hz(e){var t=mz(e,"string");return typeof t=="symbol"?t:t+""}function mz(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 sa(e,t,r){return(t=gz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gz(e){var t=vz(e,"string");return typeof t=="symbol"?t:t+""}function vz(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 Vt(e,t,r){return(t=yz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function yz(e){var t=bz(e,"string");return typeof t=="symbol"?t:t+""}function bz(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 O$,N$,D$,gc,nT,iT,EP,oT,L$,q$,aT,U$,M$,AP,F$,j$,kP,B$,G$,J$,sT,H$,Y$,Q$,CP,X$,xP,Z$,cT,uT,dT,PP,eV,tV,Ci,Ah,kh,ye,oV,aV,na,da,sV,xh,lV,ph,dV,Ph,TP,Ai,Th,Rh,Oh,Nh,EV,it,vc,Z,fT,sm,lm,AV,hT,kV,CV,kc,xV,Cc,Oi,gT,mt,Oe,Ni,HV,$V,VV,NP,WV,zV,KV,YV,QV,ZV,e9,t9,_T,DP,fh,LP,qP,nn,n9,i9,o9,a9,s9,ot,qh,At,mh,FP,jP,ST,Me,BP,GP,JP,HP,$P,VP,WP,p9,le,la,on,Mh,bc,PT,gh,TT,m9,Fe,y9,b9,Dr,Fh,jh,hc,_9,w9,S9,I9,E9,A9,k9,C9,x9,P9,Bh,O9,N9,D9,L9,q9,U9,M9,zP,F9,j9,B9,G9,Gh,Pi,ki,$9,V9,W9,Jh,DT,Hh,$h,Vh,Wh,wc,zh,aW,sW,lW,Sc,LT,qT,KP,Lr,cW,uW,Ic,pW,fW,mW,gW,UT,vW,bW,IW,EW,Tc,AW,kW,CW,yh,Rc,QP,xW,Yh,TW,Qh,RW,OW,NW,xi,LW,Xh,be,qW,UW,aa,ha,em,tm,MW,bh,BW,rm,XP,HW,$W,ua,VW,WW,zW,GT,KW,YW,mc,eT,_h,wh,Sh,Ih,nm,XW,ZW,lc,dm,an,HT,$T,iz,VT,rT,Eh,oz,az,sz,dz,Ec,im,om,am,Ac,uoe,WT=x(()=>{"use strict";Vn();Is();O$=Object.defineProperty,N$=Object.defineProperties,D$=Object.getOwnPropertyDescriptors,gc=Object.getOwnPropertySymbols,nT=Object.prototype.hasOwnProperty,iT=Object.prototype.propertyIsEnumerable,EP=(e,t,r)=>t in e?O$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,oT=(e,t)=>{for(var r in t||(t={}))nT.call(t,r)&&EP(e,r,t[r]);if(gc)for(var r of gc(t))iT.call(t,r)&&EP(e,r,t[r]);return e},L$=(e,t)=>N$(e,D$(t)),q$=(e,t)=>{var r={};for(var n in e)nT.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&gc)for(var n of gc(e))t.indexOf(n)<0&&iT.call(e,n)&&(r[n]=e[n]);return r},aT=Object.defineProperty,U$=Object.defineProperties,M$=Object.getOwnPropertyDescriptors,AP=Object.getOwnPropertySymbols,F$=Object.prototype.hasOwnProperty,j$=Object.prototype.propertyIsEnumerable,kP=(e,t,r)=>t in e?aT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,B$=(e,t)=>{for(var r in t||(t={}))F$.call(t,r)&&kP(e,r,t[r]);if(AP)for(var r of AP(t))j$.call(t,r)&&kP(e,r,t[r]);return e},G$=(e,t)=>U$(e,M$(t)),J$=(e,t)=>{for(var r in t)aT(e,r,{get:t[r],enumerable:!0})},sT=(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},H$=(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}Y$=(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))(Y$||{});Q$={log:ra("log"),warn:ra("warn"),info:ra("info"),error:ra("error"),debug:ra("debug")};Object.assign(globalThis,{logger:Q$});CP=Symbol.for("Jolibox.canIUseMap"),X$={};globalThis[CP]||(globalThis[CP]=X$);xP=Symbol.for("Jolibox.canIUseMap.native"),Z$={};globalThis[xP]||(globalThis[xP]=Z$);cT=(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))(cT||{}),uT=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(uT||{}),dT=(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))(dT||{}),PP=["name","params"],eV=["name","type","location","target","extra","timestamp","userId"],tV=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];iV();Ci=typeof window=="undefined",Ah=()=>!Ci&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK");!Ci&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),!Ci&&navigator.userAgent.includes("Android"),!Ci&&navigator.userAgent.includes("Mac"),!Ci&&navigator.userAgent.includes("FB_IAB"),!Ci&&!navigator.userAgent.includes("iPhone")&&navigator.userAgent.includes("Android");kh=class Ch{constructor(t){this.element=t,this.next=Ch.Undefined,this.prev=Ch.Undefined}};kh.Undefined=new kh(void 0);ye=kh,oV=class{constructor(){this._first=ye.Undefined,this._last=ye.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ye.Undefined}clear(){let e=this._first;for(;e!==ye.Undefined;){let t=e.next;e.prev=ye.Undefined,e.next=ye.Undefined,e=t}this._first=ye.Undefined,this._last=ye.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new ye(e);if(this._first===ye.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!==ye.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ye.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ye.Undefined&&e.next!==ye.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ye.Undefined&&e.next===ye.Undefined?(this._first=ye.Undefined,this._last=ye.Undefined):e.next===ye.Undefined?(this._last=this._last.prev,this._last.next=ye.Undefined):e.prev===ye.Undefined&&(this._first=this._first.next,this._first.prev=ye.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ye.Undefined;)yield e.element,e=e.next}},aV=0,na=class{constructor(e){this.value=e,this.id=aV++}},da=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 na&&(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 na(e);return this._listeners?this._listeners instanceof na?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 na)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 na?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},sV=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 da,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 oV,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)}},xh={};J$(xh,{None:()=>lV,filter:()=>uV,once:()=>pT,toPromise:()=>cV});lV=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});ph=Symbol.for("Jolibox.hostEmitter"),dV=()=>{let e=new sV;return globalThis[ph]||(globalThis[ph]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[ph]};dV();Ph=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new da,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 pV(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}};Ph=sT([lT],Ph);TP=class{constructor(){this._onWillExecuteCommand=new da,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new da,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Ph,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=$$(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 H$(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),xh.toPromise(xh.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{}}};TP=sT([lT],TP);Ai=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")},Th=class{constructor(t){ft(this,"context",void 0),ft(this,"continueCallback",void 0),ft(this,"adIsShowingCallback",void 0),ft(this,"isBeforeAdCalled",!1),ft(this,"isBeforeRewardCalled",!1),ft(this,"isAdDismissedCalled",!1),ft(this,"isAdViewedCalled",!1),ft(this,"isAfterAdCalled",!1),ft(this,"currentProvider",void 0),ft(this,"currentClientParams",void 0),ft(this,"adsHasResponse",!1),ft(this,"videoChecker",window.document.createElement("video")),ft(this,"contextInfo",void 0),ft(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.notifyIframeAdsEvent("JOLIBOX_AD_CALL_BEFORE_REWARD",oT({userEvent:a},this.paramsToTrack)),Ah()&&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=Ai(r);s==null||s()}),this.context=t,this.contextInfo=t.getContextInfo()}notifyIframeAdsEvent(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.notifyIframeAdsEvent("JOLIBOX_AD_CALL_BEFORE_AD",this.paramsToTrack),!this.isBeforeAdCalled){this.isBeforeAdCalled=!0;let a=Ai(t);a==null||a(),((r=this.currentClientParams)==null?void 0:r.type)!=="reward"&&((n=this.adIsShowingCallback)==null||n.call(this,!0),Ah()&&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=Ai(t);r==null||r()}}}wrapAdViewed(t){return()=>{if(this.adsHasResponse=!0,!this.isAdViewedCalled){this.isAdViewedCalled=!0;let r=Ai(t);r==null||r()}}}wrapAfterAd(t){return()=>{if(this.adsHasResponse=!0,this.context.track("CallAfterAd",this.paramsToTrack),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AFTER_AD",this.paramsToTrack),!this.isAfterAdCalled){this.isAfterAdCalled=!0;let r=Ai(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.notifyIframeAdsEvent("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=Ai(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 v(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.notifyIframeAdsEvent("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.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AD_BREAK",this.paramsToTrack),t.adBreak(a,n),window.JoliTesterBridge&&console.log("joli-fullscreen-ad-show")})})}};Rh=class{constructor(t){oc(this,"context",void 0),oc(this,"adBreakIsShowing",!1),oc(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),oc(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()})}};Oh=class{constructor(t){ac(this,"configs",null),ac(this,"firstRun",!0),ac(this,"context",void 0),ac(this,"contextInfo",void 0),this.context=t,this.contextInfo=this.context.getContextInfo(),this.init()}init(){return v(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}};Nh=class{constructor(t,r){Pr(this,"name","ADSENSE"),Pr(this,"context",void 0),Pr(this,"contextInfo",void 0),Pr(this,"configured",!1),Pr(this,"initParams",void 0),Pr(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),Pr(this,"adConfig",n=>{let i=n,{onReady:o}=i,a=q$(i,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),Pr(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),Pr(this,"adUnit",n=>v(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 h=c;if(h||(h=this.initParams.unitId),!h)throw new Error("slot is required");let g=typeof d=="object"&&Array.isArray(d)?d.join(", "):d,b=document.createElement("ins");if(b.className="adsbygoogle",b.id="jolibox-ads",b.style.display="block",b.setAttribute("data-ad-client",this.initParams.clientId),b.setAttribute("data-ad-slot",h),g&&b.setAttribute("data-ad-format",g),u&&b.setAttribute("data-full-width-responsive",u),p&&b.setAttribute("style",p),(s=this.contextInfo.testAdsMode)!=null?s:!1){let y=document.createElement("div");y.style.position="absolute",y.style.top="0",y.style.left="0",y.style.width="100%",y.style.height="100%",y.style.display="flex",y.style.justifyContent="center",y.style.alignItems="center",y.style.backgroundColor="rgba(0, 0, 0, 0.5)",y.style.color="white",y.innerHTML="Test Ad",b.style.position="relative",f.appendChild(b),b.appendChild(y)}else f.appendChild(b),new MutationObserver(y=>{y.forEach(_=>{if(_.type==="attributes"&&_.attributeName==="data-ad-status"){let S=b.getAttribute("data-ad-status");this.context.track("AdSenseUnitStatusChanged",{status:S!=null?S:"null"})}})}).observe(b,{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 v(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)}})}};EV=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(IV(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=SV(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}(),it="-ms-",vc="-moz-",Z="-webkit-",fT="comm",sm="rule",lm="decl",AV="@import",hT="@keyframes",kV="@layer",CV=Math.abs,kc=String.fromCharCode,xV=Object.assign;Cc=1,Oi=1,gT=0,mt=0,Oe=0,Ni="";HV=function(e,t,r){for(var n=0,i=0;n=i,i=ur(),n===38&&i===12&&(t[r]=1),!fa(i);)kt();return ma(e,mt)},$V=function(e,t){var r=-1,n=44;do switch(fa(n)){case 0:n===38&&ur()===12&&(t[r]=1),e[r]+=HV(mt-1,t,r);break;case 2:e[r]+=dc(n);break;case 4:if(n===44){e[++r]=ur()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=kc(n)}while(n=kt());return e},VV=function(e,t){return yT($V(vT(e),t))},NP=new WeakMap,WV=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&&!NP.get(r))&&!n){NP.set(e,!0);for(var i=[],o=VV(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]}}},zV=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};KV=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case lm:e.return=bT(e.value,e.length);break;case hT:return Ti([ia(e,{value:ee(e.value,"@","@"+Z)})],n);case sm:if(e.length)return RV(e.props,function(i){switch(TV(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ti([ia(e,{props:[ee(i,/:(read-\w+)/,":"+vc+"$1")]})],n);case"::placeholder":return Ti([ia(e,{props:[ee(i,/:(plac\w+)/,":"+Z+"input-$1")]}),ia(e,{props:[ee(i,/:(plac\w+)/,":"+vc+"$1")]}),ia(e,{props:[ee(i,/:(plac\w+)/,it+"input-$1")]})],n)}return""})}},YV=[KV],QV=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(h){var g=h.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var n=e.stylisPlugins||YV,i={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(h){for(var g=h.getAttribute("data-emotion").split(" "),b=1;b<g.length;b++)i[g[b]]=!0;a.push(h)});var s,l=[WV,zV];{var c,d=[jV,GV(function(h){c.insert(h)})],u=BV(l.concat(n,d)),p=function(h){return Ti(MV(h),u)};s=function(h,g,b,y){c=b,p(h?h+"{"+g.styles+"}":g.styles),y&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new EV({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};ZV={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},e9=/[A-Z]|^ms/g,t9=/_EMO_([^_]+?)_([^]*?)_EMO_/g,_T=function(e){return e.charCodeAt(1)===45},DP=function(e){return e!=null&&typeof e!="boolean"},fh=JV(function(e){return _T(e)?e:e.replace(e9,"-$&").toLowerCase()}),LP=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(t9,function(r,n,i){return nn={name:n,styles:i,next:nn},n})}return ZV[e]!==1&&!_T(e)&&typeof t=="number"&&t!==0?t+"px":t};qP=/label:\s*([^\s;{]+)\s*(;|$)/g;n9=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},i9=function(e,t,r){n9(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)}};o9=function(e){var t=QV(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=hh(s,t.registered,void 0);return i9(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=hh(s,t.registered),d="animation-"+c.name;return UP(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=hh(s,t.registered);UP(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return MP(t.registered,r,a9(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:wT.bind(null,t.registered),merge:MP.bind(null,t.registered,r)}},a9=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},s9=o9({key:"css"}),ot=s9.css,jP=0,ST=[],Me=D,BP=Me.__b,GP=Me.__r,JP=Me.diffed,HP=Me.__c,$P=Me.unmount,VP=Me.__;Me.__b=function(e){At=null,BP&&BP(e)},Me.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),VP&&VP(e,t)},Me.__r=function(e){GP&&GP(e),qh=0;var t=(At=e.__c).__H;t&&(mh===At?(t.__h=[],At.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(fc),t.__h.forEach(Uh),t.__h=[],qh=0)),mh=At},Me.diffed=function(e){JP&&JP(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(ST.push(t)!==1&&FP===Me.requestAnimationFrame||((FP=Me.requestAnimationFrame)||u9)(c9)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),mh=At=null},Me.__c=function(e,t){t.some(function(r){try{r.__h.forEach(fc),r.__h=r.__h.filter(function(n){return!n.__||Uh(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Me.__e(n,r.__v)}}),HP&&HP(e,t)},Me.unmount=function(e){$P&&$P(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{fc(n)}catch(i){t=i}}),r.__H=void 0,t&&Me.__e(t,r.__v))};WP=typeof requestAnimationFrame=="function";p9=Symbol.for("preact-signals");le=void 0,la=void 0,on=0,Mh=0,bc=0;Ye.prototype.brand=p9;Ye.prototype.h=function(){return!0};Ye.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)};Ye.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)}};Ye.prototype.subscribe=function(e){var t=this;return va(function(){var r=t.value,n=le;le=void 0;try{e(r)}finally{le=n}})};Ye.prototype.valueOf=function(){return this.value};Ye.prototype.toString=function(){return this.value+""};Ye.prototype.toJSON=function(){return this.value};Ye.prototype.peek=function(){var e=le;le=void 0;try{return this.value}finally{le=e}};Object.defineProperty(Ye.prototype,"value",{get:function(){var e=ET(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Mh>100)throw new Error("Cycle detected");this.v=e,this.i++,bc++,on++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Pc()}}}});(Di.prototype=new Ye).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===bc))return!0;if(this.g=bc,this.f|=1,this.i>0&&!AT(this))return this.f&=-2,!0;var e=le;try{kT(this),le=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 le=e,CT(this),this.f&=-2,!0};Di.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)}Ye.prototype.S.call(this,e)};Di.prototype.U=function(e){if(this.t!==void 0&&(Ye.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)}};Di.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(Di.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=ET(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});ga.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()}};ga.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,xT(this),kT(this),on++;var e=le;return le=this,f9.bind(this,e)};ga.prototype.N=function(){2&this.f||(this.f|=2,this.o=la,la=this)};ga.prototype.d=function(){this.f|=8,1&this.f||um(this)};TT=[];va(function(){PT=this.N})();RT.displayName="_st";Object.defineProperties(Ye.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:RT},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});Li("__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 Ye&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});Li("__r",function(e,t){_c();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return va(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),_c(r),e(t)});Li("__e",function(e,t,r,n){_c(),e(t,r,n)});Li("diffed",function(e,t){_c();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=h9(r,l,d,i),o[l]=c):c.o(d,i)}}}e(t)});Li("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)});Li("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});_t.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};m9=function(e){queueMicrotask(function(){queueMicrotask(e)})};Fe=ot`
622
+ `,x4=()=>w("div",{style:QC.container,children:[w("style",{children:k4}),w("div",{style:QC.spinner})]});ite=En()});function Kk(){return v(this,null,function*(){if(Pf)return Pf;let t=`${S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com"}/api/user-retention/exit-recommendations?objectId=${S.mpId}&from=GAME_DETAIL`,{response:{data:r}}=yield z(t);return Pf=r,r})}function Yk(){return v(this,null,function*(){let e=new ut;if(S.mpType!=="game")return e.resolve(!1),e.promise;if(Rf)return e.resolve(!0),e.promise;let t=yield Kk();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:i}=t.data;Rf=!0;let o={domain:"GAME",buttons:t.data.buttons.map(s=>`${s.type}-${s.text}`).join(","),list:r.games.map(s=>s.gameId).join(",")};j("RecommendedGuide",P({eventType:V.View},o));let a=Ok({games:r.games,title:n,buttons:i,onClose:s=>{var l;switch(Rf=!1,s.type){case"quit":j("RecommendedGuide",{eventType:V.Click,type:"QUIT",domain:"GAME"}),e.resolve(!1);break;case"dismiss":j("RecommendedGuide",P({eventType:V.Hide},o)),e.resolve(!0),a.destroy();break;case"navigate":if((l=s.data)!=null&&l.game){let c=s.data.game;T4(c),j("GameItem",{eventType:V.Click,gameId:c.gameId,layerName:"RecommendedGuide",domain:"GAME"}),setTimeout(()=>{e.resolve(!1)},0)}else e.resolve(!0);a.destroy();break;default:j("RecommendedGuide",P({eventType:V.Hide},o)),e.resolve(!0);break}}});return e.promise})}var Pf,T4,Rf,Qk=x(()=>{"use strict";H();ue();O();ar();dt();bt();Pf=null;Kk();T4=e=>{var a;let{data:t}=F("envSync"),r=new URL(t.schema),n=new URLSearchParams(r.search);n.set("gameId",e.gameId),n.set("joliSource",S.encodeJoliSourceQuery({__mpType:"game",__orientation:(a=e.orientation)!=null?a:"VERTICAL"}));let o=`${`https://${e.gameId}.content.jolibox.com/`}index.html?${n.toString()}`;F("openSchemaSync",{schema:o})},Rf=!1});function R4(e){let t=P(P({},P4),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 h(){let{overlayTransition:_,containerTransition:I,iframeTransition:E}=p();pe=document.createElement("div"),pe.id="jolibox-modal-overlay",pe.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:${_}; opacity:0; visibility:hidden;`,oe=document.createElement("div"),oe.id="jolibox-modal-container",oe.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:${I};`;let T=document.createElement("div");T.id="jolibox-modal-loading",T.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 k=document.createElement("style");k.textContent="@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }",document.head.appendChild(k);let C=document.createElement("div");if(C.style.cssText="width:100%; height:100%; display:flex; flex-direction:column; padding-bottom:env(safe-area-inset-bottom, 0); position:relative;",Dt=document.createElement("iframe"),Dt.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${E};`,Dt.src=r,Dt.onload=()=>{T.parentNode&&T.parentNode.removeChild(T),Dt.style.opacity="1",g(),l==null||l(),_e.emit("onModalIframeLoaded",{url:r})},C.appendChild(Dt),C.appendChild(T),oe.appendChild(C),i){let G=document.createElement("div");G.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;",G.innerHTML="\u2715",G.onclick=y,oe.appendChild(G)}pe.appendChild(oe),document.body.appendChild(pe),pe.addEventListener("click",function(G){G.target===pe&&y()}),o&&b()}function g(){!pe||!oe||u||(pe.style.visibility="visible",a?requestAnimationFrame(()=>{pe&&(pe.style.opacity="1"),oe&&(oe.style.transform="translateY(0)"),u=!0}):(pe&&(pe.style.opacity="1"),oe&&(oe.style.transform="translateY(0)"),u=!0),F("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:S.webviewId}))}function b(){if(!oe)return;let _=T=>{c=T.touches[0].clientY},I=T=>{if(!u)return;d=T.touches[0].clientY;let k=d-c;k>0&&(oe&&(oe.style.transition="none",oe.style.transform=`translateY(${k}px)`),T.preventDefault())},E=()=>{!u||!oe||(oe.style.transition=a?"transform 0.3s ease":"none",d-c>80?y():oe.style.transform="translateY(0)")};oe.addEventListener("touchstart",_),oe.addEventListener("touchmove",I),oe.addEventListener("touchend",E)}function y(){!pe||!oe||!u||(a?(oe.style.transform="translateY(100%)",pe.style.opacity="0"):pe.style.visibility="hidden",u=!1,F("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:S.webviewId}),setTimeout(()=>{pe&&(pe.remove(),pe=null,oe=null,Dt=null,s==null||s(),_e.emit("onModalIframeClosed",{url:r}))},f()))}return h(),{close:y}}function Xk(){return window.joliboxUI=B(P({},window.joliboxUI),{createIframeModal:R4}),()=>{window.joliboxUI=void 0,pe&&pe.parentNode&&pe.parentNode.removeChild(pe),oe&&oe.parentNode&&oe.parentNode.removeChild(oe),Dt&&Dt.parentNode&&Dt.parentNode.removeChild(Dt),pe=null,oe=null,Dt=null}}var P4,pe,oe,Dt,Zk=x(()=>{"use strict";ue();H();O();P4={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},pe=null,oe=null,Dt=null});var ox,Nl,Nf,Dl,wi,ax,Si,sx,lx,cx,_i,ex,Ol,tx,O4,ux,Df,rx,dx,N4,nx,Of,px,ix,D4,fx,hx=x(()=>{ox=-1,Nl=function(e){addEventListener("pageshow",function(t){t.persisted&&(ox=t.timeStamp,e(t))},!0)},Nf=function(){var e=self.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},Dl=function(){var e=Nf();return e&&e.activationStart||0},wi=function(e,t){var r=Nf(),n="navigate";return ox>=0?n="back-forward-cache":r&&(document.prerendering||Dl()>0?n="prerender":document.wasDiscarded?n="restore":r.type&&(n=r.type.replace(/_/g,"-"))),{name:e,value:t===void 0?-1:t,rating:"good",delta:0,entries:[],id:"v4-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:n}},ax=function(e,t,r){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var n=new PerformanceObserver(function(i){Promise.resolve().then(function(){t(i.getEntries())})});return n.observe(Object.assign({type:e,buffered:!0},r||{})),n}}catch(i){}},Si=function(e,t,r,n){var i,o;return function(a){t.value>=0&&(a||n)&&((o=t.value-(i||0))||i===void 0)&&(i=t.value,t.delta=o,t.rating=function(s,l){return s>l[1]?"poor":s>l[0]?"needs-improvement":"good"}(t.value,r),e(t))}},sx=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},lx=function(e){document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&e()})},cx=function(e){var t=!1;return function(){t||(e(),t=!0)}},_i=-1,ex=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},Ol=function(e){document.visibilityState==="hidden"&&_i>-1&&(_i=e.type==="visibilitychange"?e.timeStamp:0,O4())},tx=function(){addEventListener("visibilitychange",Ol,!0),addEventListener("prerenderingchange",Ol,!0)},O4=function(){removeEventListener("visibilitychange",Ol,!0),removeEventListener("prerenderingchange",Ol,!0)},ux=function(){return _i<0&&(_i=ex(),tx(),Nl(function(){setTimeout(function(){_i=ex(),tx()},0)})),{get firstHiddenTime(){return _i}}},Df=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},rx=[1800,3e3],dx=function(e,t){t=t||{},Df(function(){var r,n=ux(),i=wi("FCP"),o=ax("paint",function(a){a.forEach(function(s){s.name==="first-contentful-paint"&&(o.disconnect(),s.startTime<n.firstHiddenTime&&(i.value=Math.max(s.startTime-Dl(),0),i.entries.push(s),r(!0)))})});o&&(r=Si(e,i,rx,t.reportAllChanges),Nl(function(a){i=wi("FCP"),r=Si(e,i,rx,t.reportAllChanges),sx(function(){i.value=performance.now()-a.timeStamp,r(!0)})}))})},N4=function(e){var t=self.requestIdleCallback||self.setTimeout,r=-1;return e=cx(e),document.visibilityState==="hidden"?e():(r=t(e),lx(e)),r},nx=[2500,4e3],Of={},px=function(e,t){t=t||{},Df(function(){var r,n=ux(),i=wi("LCP"),o=function(l){t.reportAllChanges||(l=l.slice(-1)),l.forEach(function(c){c.startTime<n.firstHiddenTime&&(i.value=Math.max(c.startTime-Dl(),0),i.entries=[c],r())})},a=ax("largest-contentful-paint",o);if(a){r=Si(e,i,nx,t.reportAllChanges);var s=cx(function(){Of[i.id]||(o(a.takeRecords()),a.disconnect(),Of[i.id]=!0,r(!0))});["keydown","click"].forEach(function(l){addEventListener(l,function(){return N4(s)},{once:!0,capture:!0})}),lx(s),Nl(function(l){i=wi("LCP"),r=Si(e,i,nx,t.reportAllChanges),sx(function(){i.value=performance.now()-l.timeStamp,Of[i.id]=!0,r(!0)})})}})},ix=[800,1800],D4=function e(t){document.prerendering?Df(function(){return e(t)}):document.readyState!=="complete"?addEventListener("load",function(){return e(t)},!0):setTimeout(t,0)},fx=function(e,t){t=t||{};var r=wi("TTFB"),n=Si(e,r,ix,t.reportAllChanges);D4(function(){var i=Nf();i&&(r.value=Math.max(i.responseStart-Dl(),0),r.entries=[i],n(!0),Nl(function(){r=wi("TTFB",0),(n=Si(e,r,ix,t.reportAllChanges))(!0)}))})}});var yx={};Jm(yx,{config:()=>V4});function q4(){$n.on("isAdShowing",e=>{Ul=e,Fr(Ul)&&S.mpType==="game"&&F("updateContainerConfigSync",{displayCapsuleButton:!Ul,webviewId:S.webviewId})})}function U4(){_e.on("onInterceptSystemExit",({intercept:e})=>{mx=e})}function M4(){_e.on("onInterceptBackPress",({intercept:e})=>{L4=e}),De("onBeforeBackPress",({uuid:e,disableExitRecommendDialog:t})=>{var r,n;vx(t),_e.emit("onBackPress",{}),(n=(r=globalThis.joliboxJSCore)==null?void 0:r.doBackPress)==null||n.call(r,e)})}function F4(){_e.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),j("onDocumentReady",{start_timestamp:Fl,timestamp:Date.now()})})}function j4(){De("onI18nChanged",({language:e})=>{_e.emit("onI18nChanged",{i18n:e})})}function B4(e){S.mpType==="game"&&wt.start(e)}function G4(){De("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&S.onEnvConfigChanged({hostUserInfo:e}),_e.emit("LifecycleEvent.onReady",P({},S.hostUserInfo?S.hostUserInfo:{isLogin:!1})),j("joliboxServiceReady",{start_timestamp:Fl,timestamp:Date.now()}),B4(t),Ck(()=>S.language)}),De("onBeforeExit",({uuid:e,disableExitRecommendDialog:t})=>{var r;vx(t),(r=globalThis.joliboxJSCore)==null||r.doExit(e)})}function J4(){let e=()=>{j("onBeforeExit",{timestamp:Date.now()}),Ll==null||Ll(),ql==null||ql(),wt.close(Date.now()-Fl)},t=()=>Ul||mx;Pt.onDoExit(()=>v(this,null,function*(){return t()?!0:Fr(S.shouldInterupt)?(S.shouldInterupt||e(),S.shouldInterupt):Ml!=null&&Ml.canShowRecommended&&!gx&&(yield Yk())?!0:(e(),!1)})),Pt.onDoBackPress(()=>v(this,null,function*(){return!!t()}))}function H4(){dx(e=>{j("GameFCP",{value:e.value,rating:e.rating,navigationType:e.navigationType})}),px(e=>{j("GameLCP",{value:e.value,rating:e.rating,navigationType:e.navigationType})}),fx(e=>{j("GameTTFB",{value:e.value,rating:e.rating,navigationType:e.navigationType})})}function $4(){return v(this,null,function*(){try{let e="/api/fe-configs/js-sdk/basic-meta",{response:{data:t}}=yield z(e);t&&(Ml=t)}catch(e){console.error("fetchMetaConfig error:",e)}})}function V4(){Fl=Date.now(),G4(),q4(),U4(),M4(),J4(),F4(),j4(),$4(),H4(),ql=Xk(),Ll=mv()}var Ll,ql,Fl,Ul,Ml,mx,L4,gx,vx,bx=x(()=>{"use strict";ue();H();O();bt();gv();ss();Qk();dt();ar();Zk();hx();Ul=!1,Ml=null,mx=!1,L4=!1,gx=!1,vx=e=>{Fr(e)&&(gx=e)};Pt.onReady(()=>{})});var _x,W4,z4,K4,Y4,wx=x(()=>{"use strict";O();He();ue();H();_x=W(),W4="env",z4="getSystemInfoSync",K4=Y(z4,{implement:()=>{var r;let e=F("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:S.viewport.statusBarHeight,navigationBarHeight:S.viewport.navigationBarHeight}}}}),Y4=Y(W4,{implement:()=>{var t;let e=F("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});_x.registerCommand("API.getSystemInfoSync",K4);_x.registerCommand("API.env",Y4);L("env",{version:"1.0.0"});L("getSystemInfoSync",{version:"1.0.0",properties:{viewport:"1.0.33"}})});var Sx=m(Lf=>{"use strict";O();He();yt();ue();bt();H();var Q4="exitGame",X4="onReady",Z4="onJoliboxShow",e$="onJoliboxHide",jl=W(),Bl=Bn(Ee),t$=ie(Q4,{paramsSchema:A.tuple(A.function(),A.boolean().optional().default(!1)),implement:(e,t=!1)=>v(Lf,null,function*(){Bl(e).call(Lf),Fr(S.shouldInterupt)&&!S.shouldInterupt&&S.from&&pg("onRetentionResult",{shouldStay:t},S.from,!0),t||S.setDoExitDirectly(),yield he("exitAppAsync")})}),r$=Y(Z4,{paramsSchema:A.tuple(A.function()),implement(e){let t=Bl(e);De("onJoliboxEnterForeground",()=>{t.call(this),io.emit("visible",!0)})}}),n$=Y(e$,{paramsSchema:A.tuple(A.function()),implement(e){let t=Bl(e);De("onJoliboxEnterBackground",()=>{t.call(this),io.emit("visible",!1)})}}),i$=Y(X4,{paramsSchema:A.tuple(A.function()),implement(e){let t=Bl(e);_e.on("LifecycleEvent.onReady",r=>{t(r)})}});jl.registerCommand("LifecycleSDK.exit",t$);jl.registerCommand("LifecycleSDK.onReady",i$);jl.registerCommand("LifecycleSDK.onJoliboxShow",r$);jl.registerCommand("LifecycleSDK.onJoliboxHide",n$);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 Ix(e){let t={};if(!cn(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 Ex(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 Ax(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function Cx(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!cn(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 kx=x(()=>{"use strict";O()});var o$,a$,qf,Uf,xx,s$,l$,c$,Tx=x(()=>{"use strict";jr();Tu();He();kx();O();yt();H();o$=15,a$=ja("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:S.baseApiHost}),qf=0,Uf=[],xx=Bn(Ee),s$=(e,t)=>{let r=e.filter(t),n=e.filter(i=>!t(i));return e.length=0,e.push(...n),r},l$=e=>{let t=new ut,r=()=>{};return Y("request",{paramsSchema:A.tuple(A.object({url:A.string(),method:A.string(),headers:A.object().optional(),data:A.or(A.object(),A.array()).optional(),query:A.object().optional(),dataType:A.string().default("json"),responseType:A.string().default("text"),enableCache:A.boolean().default(!1),appendHostCookie:A.boolean().default(!0),timeout:A.number().default(3e4),success:A.function(),fail:A.function()})),implement(i){let o=()=>v(this,null,function*(){var s,l,c;let a=xx(i.fail);try{if(qf+=1,t.state!=="pending")return;let{data:d,dataType:u,responseType:p,enableCache:f,appendHostCookie:h}=i,g=Ix((s=i.headers)!=null?s:{}),b=Ex(i.method),y=Ax(i.timeout),_=Cx(i.url,b,d),I=xx(i.success),E=Object.assign({},i,{method:b,header:h?void 0:g,data:b==="GET"||b==="HEAD"?void 0:d,enableCache:f,query:(l=i.query)!=null?l:{},dataType:u,responseType:p,appendHostCookie:h});y&&(E.timeout=y);let T=a$(_,E);{let{response:k}=yield T,{code:C,data:G,message:ce}=k;if(G&&typeof G=="object"&&"status"in G&&G.status!==200)throw Je({code:G.status||-1,msg:`request:fail status ${G.status}`});t.resolve({code:C!=null?C:"SUCCESS",data:G,message:ce!=null?ce:"request:ok"}),I({code:"SUCCESS",message:"request:ok",data:G})}}catch(d){t.reject(d),a({code:"FAILURE",message:"httpRequst: failed"})}finally{qf-=1,(c=Uf.shift())==null||c()}});return qf>=o$?(r=()=>{s$(Uf,a=>a===o)},Uf.push(o)):o(),t.promise}})(e),{abort(){t.reject(Je({code:-1,msg:"request:fail abort"})),r()}}},c$=W();c$.registerCommand("HttpSDK.request",l$);L("request",{version:"1.0.0"})});var u$,d$,p$,Mf,Px=x(()=>{"use strict";O();ue();He();u$=Y("showKeyboard",{paramsSchema:A.tuple(A.object({defaultValue:A.string().optional().default(""),multiple:A.boolean().optional().default(!1),maxLength:A.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)),F("showKeyboardSync",B(P({},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"}});d$=Y("updateKeyboard",{paramsSchema:A.tuple(A.object({value:A.string()})),implement(e){F("updateKeyboardSync",e)}});L("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});p$=Y("hideKeyboard",{implement(){F("hideKeyboardSync")}});L("keyboard.hideKeyboard",{version:"1.0.0"});Mf=W();Mf.registerCommand("KeyboardSDK.showKeyboard",u$);Mf.registerCommand("KeyboardSDK.updateKeyboard",d$);Mf.registerCommand("KeyboardSDK.hideKeyboard",p$)});var Rx=m(Gl=>{"use strict";O();He();bt();var Ff=W(),f$=ie("levelFinished",{paramsSchema:A.tuple(A.object({levelId:A.or(A.string(),A.number()),duration:A.number().optional(),rating:A.number().optional(),score:A.number().optional(),variation:A.string().optional()})),implement:e=>v(Gl,null,function*(){let{levelId:t,duration:r,rating:n,score:i,variation:o}=e,a=[];a.push(wt.tracker("LevelFinished",{levelId:t,duration:r,rating:n,score:i,variation:o})),a.push(wt.reporter({event:"COMPLETE_GAME_LEVEL",extraParams:{inGameInfo:{levelId:t,duration:r,rating:n,score:i}}})),yield Promise.all(a)})}),h$=ie("gamePlayEnded",{paramsSchema:A.tuple(A.object({duration:A.number().optional(),rating:A.number().optional(),score:A.number(),variation:A.string().optional()})),implement:e=>v(Gl,null,function*(){let{duration:t,rating:r,score:n,variation:i}=e,o=[];o.push(wt.tracker("GamePlayEnded",{duration:t,rating:r,score:n,variation:i})),o.push(wt.reporter({event:"GAME_ENDED",extraParams:{inGameInfo:{duration:t,rating:r,score:n}}})),yield Promise.all(o)})}),m$=ie("levelUpgrade",{paramsSchema:A.tuple(A.object({levelId:A.or(A.string(),A.number()),name:A.string().optional()})),implement:r=>v(Gl,[r],function*({levelId:e,name:t}){let n=[];n.push(wt.tracker("LevelUpgrade",{name:t,levelId:e})),n.push(wt.reporter({event:"GAME_LEVEL_UP",extraParams:{inGameInfo:{levelId:e,levelName:t}}})),yield Promise.all(n)})});Ff.registerCommand("TaskTrackerSDK.levelFinished",f$);Ff.registerCommand("TaskTrackerSDK.gamePlayEnded",h$);Ff.registerCommand("TaskTrackerSDK.levelUpgrade",m$);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 jf,Bf,Gf,g$,Ox,Jl=x(()=>{"use strict";H();ue();He();O();jr();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",isLogin:"1.0.0",isSubUser:"1.2.9"}});jf=new Map;De("onLoginStateChange",({isLogin:e,token:t,uuid:r,isFirstLogin:n,extra:i,appAccountToken:o})=>{let a=jf.get(r);a&&(a.resolve({isLogin:e,token:t,isFirstLogin:n,extra:i,appAccountToken:o}),jf.delete(r))});Bf=(e,t=!1)=>v(void 0,null,function*(){var h,g,b;let{data:{isLogin:r}}=yield he("checkLoginAsync");if(r)return{isLogin:!0,token:(h=S.hostUserInfo)==null?void 0:h.token};let{skipLogin:n,triggerFrom:i}=e!=null?e:{},o=F("loginSync",{skipLogin:n,triggerFrom:i}),{data:{uuid:a}}=o;if(!a)throw Je({code:-1,msg:"login failed"});let s=new ut;jf.set(a,s);let l=yield s.promise,c=F("envSync"),d=(b=(g=c==null?void 0:c.data)==null?void 0:g.hostUserInfo)==null?void 0:b.isSubUser;S.onEnvConfigChanged({hostUserInfo:B(P({},l),{isSubUser:d})});let y=l,{extra:u,appAccountToken:p}=y,f=Xe(y,["extra","appAccountToken"]);return _e.emit("onLoginComplete",f),t?l:f}),Gf=ie("login",{paramsSchema:A.tuple(A.object({skipLogin:A.boolean().optional(),triggerFrom:A.string().optional()}).optional()),implement(e){return v(this,null,function*(){return yield Bf(e!=null?e:{})})}}),g$=ie("checkSession",{implement(){return v(this,null,function*(){var r;let{data:{isLogin:e}}=yield he("checkLoginAsync"),t=(r=S.hostUserInfo)==null?void 0:r.isSubUser;return{isLogin:e,isSubUser:t}})}}),Ox=W();Ox.registerCommand("API.login",Gf);Ox.registerCommand("API.checkSession",g$)});var Nx,Dx=x(()=>{"use strict";Nx=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 An(e){return t=>v(this,null,function*(){var l;let{dailyMaxPopUps:r,minInterval:n}=t,i=yield Br(e);if(!i.data)return{canShow:!0,isFirst:!0};let o=Lx(i.data),a=Nx(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 Cn(e){return()=>v(this,null,function*(){var i;let t=Date.now(),r=yield Br(e),n=Lx((i=r.data)!=null?i:"[]");n.push(t),n.sort((o,a)=>a-o).splice(8),yield _t(e,JSON.stringify(n))})}var Lx,qx,Ux,Mx,Fx,jx,Bx,Gx,Jx,Hx,$x,Vx,Wx,zx,Kx,ta=x(()=>{"use strict";no();Dx();Lx=e=>{let t;try{t=JSON.parse(e)}catch(r){t=[]}return t};qx=An("joli_coin_use_modal_frequency"),Ux=An("joli_coin_payment_frequency"),Mx=An("joli_coin_unlogin_modal_frequency"),Fx=An("joli_gem_use_modal_frequency"),jx=An("joli_gem_payment_frequency"),Bx=An("joli_gem_unlogin_modal_frequency"),Gx=An("subscription_frequency");Jx=Cn("joli_coin_use_modal_frequency"),Hx=Cn("joli_coin_payment_frequency"),$x=Cn("joli_coin_unlogin_modal_frequency"),Vx=Cn("joli_gem_use_modal_frequency"),Wx=Cn("joli_gem_payment_frequency"),zx=Cn("joli_gem_unlogin_modal_frequency"),Kx=Cn("subscription_frequency")});var Jf,Hl,Hf=x(()=>{"use strict";dt();Jf=Promise.resolve(),Hl=(e,t)=>v(void 0,null,function*(){Jf=Jf.then(()=>v(void 0,null,function*(){yield z(t,{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield Jf})});var $l,Vl,Ht,Wl,kn,$t,Cr,zl,Kl,xn,Ii,v$,M,kr,xr,Be=x(()=>{"use strict";O();$l="UNLOCK_OPTIONS_CHANGED",Vl="INVOKE_PAYMENT",Ht="ON_PAYMENT_RESULT",Wl="ON_USE_MODAL_EVENT",kn="ON_USE_MODAL_RESULT",$t="ON_USE_MODAL_FREQUENCY",Cr="ON_USE_UNLOGIN_MODAL_EVENT",zl="INVOKE_UNLOGIN_MODAL_EVENT",Kl="INVOKE_SUBSCRIPTION_EVENT",xn="ON_USE_SUBSCRIPTION_RESULT",Ii=new Kt,v$=()=>({on:Ii.on.bind(Ii),off:Ii.off.bind(Ii),emit:Ii.emit.bind(Ii)}),M=v$(),kr={charge:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},useJolicoin:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},joinMember:{dailyMaxPopUps:2,minInterval:8*60*60*1e3}},xr={show:!0,minInterval:8*60*60*1e3}});function Ge(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=P(P({},i),a),r=Promise.resolve(i),n&&(n(i),n=null),i}}}var sr=x(()=>{"use strict"});var Xx=m($f=>{"use strict";ta();Hf();Be();Be();ar();bt();O();sr();var y$={JOLI_COIN:{frequencyConfigKey:"useJolicoin",trackEvents:{popupShow:"unlock_popup_show",coinUnlock:"coin_unlock_click",adUnlock:"ad_unlock_click"},frequencyChecker:qx,frequencyUpdater:Jx,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:Fx,frequencyUpdater:Vx,apiEndpointAutoDeduct:"/api/joli-gem/user-config"}},Yx=En(),Qx=Ge(M,$t);Qx.getData();M.on(Wl,(e,t)=>v($f,null,function*(){let r=t.currency,n=y$[r];if(e.includes("ADS-")){yield Yx.show({duration:3e3});let l=yield Qx.getData(),{canShow:c,isFirst:d}=yield n.frequencyChecker(l.joliCoinUseAndCharge[n.frequencyConfigKey]);console.log(`${r} modal show by frequency`,c,d),Yx.hide();let{balance:u}=t.userCurrency;if(u>=t.quantity&&t.enableAutoDeduct&&!d){M.emit(kn,{useModalResult:"CONFIRM"});return}if(!c){M.emit(kn,{useModalResult:"FAILED"});return}}j(n.trackEvents.popupShow,{eventType:V.View,targetType:"game",currency:r});let{userCurrency:i,enableAutoDeduct:o,quantity:a}=t,s=qk({data:{enableAutoDeduct:o,userCurrency:i,quantity:a,currency:r},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{j(n.trackEvents.coinUnlock,{targetType:"game",eventType:V.Click,coinConsume:t.quantity,ifAutoUnlock:t.enableAutoDeduct,currency:r}),M.emit(kn,{useModalResult:"CONFIRM"}),s.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:l})=>{l==="FAILED"&&j(n.trackEvents.adUnlock,{targetType:"game",eventType:V.Click,currency:r}),M.emit(kn,{useModalResult:(l!=null?l:"")==="CANCEL"?"CANCEL":"FAILED"}),s.destroy()}},onEnableDeductChanged:l=>v($f,null,function*(){yield Hl(l,n.apiEndpointAutoDeduct)})}});yield n.frequencyUpdater()}))});function Zx(){let e=new Map;return{registerPaymentHandler(r,n){e.set(r,n)},invokePayment(r,...n){return v(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 Ee(o),{code:"FAILED",message:`[joliboxSDK]: paymenterror ${o}`}}})}}}var eT=x(()=>{"use strict";yt()});var ra=x(()=>{"use strict"});var b$,Ei,Ct,_$,Tn,Yl=x(()=>{"use strict";ra();O();H();dt();b$=()=>{let[e,t]=[Ua,Ma].map(r=>(n,i,o)=>new r(n,i,o));return{createPaymentError:e,createPaymentInternalError:t}},{createPaymentError:Ei,createPaymentInternalError:Ct}=b$(),_$=S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",Tn=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startPayment=t=>v(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw Ei(n,1001);return yield this.pay()});this.cancelOrder=t=>v(this,null,function*(){var n,i;let{response:r}=yield z(`/api/orders/${t}/cancel`,{method:"POST",data:{}});if(r.code!=="SUCCCESS")throw Ei((i=(n=r.message)!=null?n:r.errMsg)!=null?i:"",1003)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",S.deviceInfo.platform),t.set("joliSource",S.encodeJoliSourceQuery(P({},this.generatePaymentContext()))),`${_$}//payment/callback?${t.toString()}`}}get orderId(){return this._orderId}get status(){return this._orderStatus}}});var Wf,tT,rT=x(()=>{"use strict";dt();Yl();ra();Wf=class extends Tn{constructor(r){super();this.productId=r;this.generatePaymentContext=()=>({type:"JOLI_COIN_ORDER_CONTEXT",state:"TO_VALIDATE",productId:this.productId,orderId:this.orderId});this.pay=()=>v(this,null,function*(){let r=this.generateCallbackUrl();return console.info("callbackUrl",r),{code:"SUCCESS",message:"jolicoin payment success"}})}placeOrder(r){return v(this,null,function*(){var n,i,o,a;try{let{response:s}=yield z("/api/orders/checkout/joli-coin",{method:"POST",data:{productId:r.productId}});if(s.code!=="SUCCESS")throw Ei((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),Ct((a=JSON.stringify(s))!=null?a:"jolicoin placeorder failed",1002)}})}},tT=()=>{let e=new Map;return t=>v(void 0,null,function*(){let r=e.get(t);return r||(r=new Wf(t),e.set(t,r)),yield r.startPayment({productId:t}),{code:"SUCCESS",message:"jolicoin payment success"}})}});var nT,iT=x(()=>{"use strict";nT={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 zf,oT,Kf,Yf,w$,Qf,aT=x(()=>{"use strict";dt();Yl();ra();ue();O();H();ar();iT();zf=new Map;De("onPaymentStateChange",e=>{console.info("onPaymentStateChange",e);let{orderUUID:t,status:r,totalAmount:n,orderResponse:i}=e,o=zf.get(t);if(o){if(r==="SUCCESS")o.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{totalAmount:n}});else{if(r==="FAILED"&&qa(i==null?void 0:i.errNo)&&(i==null?void 0:i.errNo)!==0)throw Ct(`jolicoin payment failed: ${i==null?void 0:i.errMsg}`,1002);let a=nT[r];a&&Ar(`{slot-error} {slot-i18n-jolicoin.${a}}`,{position:"center",duration:3e3}),o.resolve({code:"FAILED",message:"jolicoin payment failed"})}zf.delete(t)}});oT=e=>v(void 0,null,function*(){var n,i;let t=new ut,r;try{let o=yield he("requestPaymentSync",{paymentBody:{appStoreProductId:e.appStoreProductId,appAccountToken:e.appAccountToken}});if(r=(n=o.data)==null?void 0:n.orderUUID,console.info("---purchaseGem---",o),!r)throw Ct("orderUUID is null",1002);zf.set(r,t)}catch(o){throw Ct((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),Kf=class extends Tn{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=()=>v(this,null,function*(){return yield oT({appStoreProductId:this.appStoreProductId})})}placeOrder(r){return v(this,null,function*(){return{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},Yf=class extends Tn{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=()=>v(this,null,function*(){return yield oT({appStoreProductId:this.appStoreProductId,appAccountToken:this.appAccountToken})})}placeOrder(r){return v(this,null,function*(){var a;console.log("----start place order for ios----");let{response:n}=yield z("/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 Ct("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"}})}},w$={android:Kf,ios:Yf},Qf=()=>{let e=new Map;return t=>v(void 0,null,function*(){let{productId:r,appStoreProductId:n}=t,i=e.get(r);if(!i){let s=w$[S.platform];if(!s)throw Ct("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 Ei(a,1002);return{code:"SUCCESS",message:"jolicoin payment success"}})}});var Pn,Xf=x(()=>{"use strict";eT();rT();aT();Pn=Zx();Pn.registerPaymentHandler("JOLI_COIN",tT());Pn.registerPaymentHandler("JOLI_COIN_IAP",Qf());Pn.registerPaymentHandler("JOLI_GEM_IAP",Qf())});function sT(n,i){return v(this,arguments,function*(e,t,r={}){let{storageKeyPrefix:o="joli_cache_"}=r,a=o+e,s=a+"_timestamp";try{let l=yield t(),c=Date.now();try{l!=null&&(yield _t(a,l),yield _t(s,c.toString()),console.log("[Cache] Cached result for key:",e))}catch(d){console.warn("[Cache] Failed to save to localStorage for key:",e,d)}return l}catch(l){throw console.warn("[Cache] Executor failed for key:",e,l),l}})}function Ql(n,i){return v(this,arguments,function*(e,t,r={}){let{cacheDuration:o=-1,storageKeyPrefix:a="joli_cache_"}=r,s=a+e,l=s+"_timestamp",c=o===1/0||o===-1;try{let{data:d}=yield Br(s),{data:u}=yield Br(l);if(d&&u){let p=parseInt(u,10);if(c||Date.now()-p<o){console.log("[Cache] Using localStorage cached data for key:",e);let f=JSON.parse(d);return c||setTimeout(()=>v(this,null,function*(){try{console.log("[Cache] Background updating cache for key:",e);let h=yield t(),g=Date.now();yield _t(s,h),yield _t(l,g.toString()),console.log("[Cache] Background cache update completed for key:",e)}catch(h){console.warn("[Cache] Background cache update failed for key:",e,h)}}),0),f}else yield _t(s,null),yield _t(l,null)}}catch(d){console.warn("[Cache] Failed to read from localStorage for key:",e,d)}try{let d=yield t(),u=Date.now();try{d&&(yield _t(s,d),yield _t(l,u.toString()))}catch(p){console.warn("[Cache] Failed to save to localStorage for key:",e,p)}return d}catch(d){throw console.warn("[Cache] Executor failed for key:",e,d),d}})}var Zf=x(()=>{"use strict";no()});function S$(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=>!Xi(r.totalAmountStr))}var rn,eh,lr,ec,th,rh,Xl,Zl,lT,tc,nh=x(()=>{"use strict";Xf();O();ue();dt();O();Zf();rn=class rn{execute(t,r){return v(this,null,function*(){var a,s,l;let{response:n}=yield z(t,{method:"GET",appendHostCookie:!0,responseType:"json"});if(console.log("[PaymentService] get products info from server",t,n.data),!((a=n.data)!=null&&a.data))throw new Error("get products info failed");let i=n.data.data,o=(l=(s=i.paymentChoices)==null?void 0:s.filter(c=>typeof c.appStoreProductId=="string").map(c=>c.appStoreProductId))!=null?l:[];if(o.length>0){let c=yield this.getNativePriceData(o);c&&S$(i,c)}if(i.paymentChoices.length===0)throw new Error("paymentChoices is empty");return i})}getNativePriceData(t){return v(this,null,function*(){let r=t.sort().join(",");return Ql(r,()=>v(this,null,function*(){try{let{data:n}=yield he("requestProductDetailsAsync",{appStoreProductIds:t});return n&&(rn.nativePriceCache.set(r,n),rn.nativePriceCacheTimestamp.set(r,Date.now())),n}catch(n){throw console.warn("[PaymentService] Failed to fetch native product details:",n),n}}),{cacheDuration:rn.NATIVE_PRICE_CACHE_DURATION,storageKeyPrefix:"joli_native_price_"})})}extractCacheableData(t){return{paymentChoices:t.paymentChoices}}mergeData(t,r){return{balance:r.balance,enableAutoDeduct:r.enableAutoDeduct,paymentChoices:t.paymentChoices}}processCachedData(t){return{balance:0,enableAutoDeduct:!1,paymentChoices:t.paymentChoices}}static clearNativePriceCache(){this.nativePriceCache.clear(),this.nativePriceCacheTimestamp.clear(),console.log("[PaymentService] Cleared native price cache")}};rn.nativePriceCache=new Map,rn.NATIVE_PRICE_CACHE_DURATION=10*60*1e3,rn.nativePriceCacheTimestamp=new Map;eh=rn,lr=class lr extends Ft{constructor(r,n){super(new eh,{duration:10*60*1e3,timeout:3e3});this.apiEndpoint=r;this.paymentType=n}getProductsInfo(){return v(this,null,function*(){let r=lr.failureCounters.get(this.apiEndpoint)||0;if(r>=lr.MAX_FAILURE_COUNT)throw new Error(`getProductsInfo has failed more than ${lr.MAX_FAILURE_COUNT} times for ${this.apiEndpoint}`);try{let n=yield this.request(this.apiEndpoint);return lr.failureCounters.delete(this.apiEndpoint),n}catch(n){let i=r+1;throw lr.failureCounters.set(this.apiEndpoint,i),console.warn(`[PaymentService] getProductsInfo failed (${i}/${lr.MAX_FAILURE_COUNT+1}) for ${this.apiEndpoint}:`,n),n}})}purchase(r){return v(this,null,function*(){var a;let n=yield this.getProductsInfo(),i=(a=n==null?void 0:n.paymentChoices.find(s=>s.productId===r))==null?void 0:a.appStoreProductId;if(!i)throw new Error("appStoreProductId not found");return yield Pn.invokePayment(this.paymentType==="JOLI_COIN"?"JOLI_COIN_IAP":"JOLI_GEM_IAP",{productId:r,appStoreProductId:i})})}getProductsInfoWithBalance(){return v(this,null,function*(){return this.request(this.apiEndpoint)})}refreshProductsInfo(){return v(this,null,function*(){return this.forceRequest(this.apiEndpoint)})}static resetFailureCounters(){this.failureCounters.clear()}static getFailureCount(r){return this.failureCounters.get(r)||0}};lr.failureCounters=new Map,lr.MAX_FAILURE_COUNT=2;ec=lr,th=class extends ec{constructor(){super("/api/joli-coin/balance-detail","JOLI_COIN")}},rh=class extends ec{constructor(){super("/api/joli-gem/balance-detail","JOLI_GEM")}},Xl=null,Zl=null,lT=()=>Xl||(Xl=new th,Xl),tc=()=>Zl||(Zl=new rh,Zl)});var dT=m(rc=>{"use strict";Be();ar();H();Jl();O();ta();Xf();ar();He();bt();Hf();sr();nh();var I$={JOLI_COIN:{frequencyConfigKey:"charge",trackEvents:{modalShow:"coinorder_show",orderClick:"coinorder_click",payEnsure:"order_pay_ensure",payResult:"order_pay_result",adUnlock:"ad_unlock_click"},frequencyChecker:Ux,frequencyUpdater:Hx,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:jx,frequencyUpdater:Wx,apiEndpoint:"/api/joli-gem/balance-detail",apiEndpointAutoDeduct:"/api/joli-gem/user-config",paymentType:"JOLI_GEM_IAP"}},Ai=En(),cT=lT(),uT=tc(),E$=Ge(M,$t);M.on(Vl,(e,t)=>v(rc,null,function*(){var r,n,i;try{let o=t.currency,a=I$[o];if(!je("requestPaymentSync:paymentBody:appStoreProductId")){console.info("requestPaymentSync:paymentBody:appStoreProductId not supported"),setTimeout(()=>{M.emit(Ht,{paymentResult:"FAILED",currency:o})},0);return}if(e.includes("ADS-")){yield Ai.show({duration:3e3});let d=yield E$.getData(),{canShow:u}=yield a.frequencyChecker(d.joliCoinUseAndCharge[a.frequencyConfigKey]);if(console.log(`${o} payment show by frequency`,u),Ai.hide(),!u){M.emit(Ht,{paymentResult:"FAILED",currency:o});return}console.log("show by frequency")}yield Ai.show({duration:3e3});let s=o==="JOLI_COIN"?cT:uT,l=yield s.getProductsInfo();if(Ai.hide(),!l||!((r=l.paymentChoices)!=null&&r.length)){M.emit(Ht,{paymentResult:"FAILED",currency:o});return}j(a.trackEvents.modalShow,{targetType:"game",eventType:V.View,currency:o});let c=Uk({data:{userCurrency:t.userCurrency,quantity:t.quantity,currency:o,paymentChoices:(i=(n=l.paymentChoices)==null?void 0:n.map(d=>{var u;return B(P({},d),{totalAmountStr:(u=d.totalAmountStr)!=null?u:""})}))!=null?i:[],enableAutoDeduct:t.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:d=>v(rc,null,function*(){var f,h,g,b,y,_,I,E;if(j(a.trackEvents.payEnsure,{targetType:"game",eventType:V.Click,payWay:"app_iap",coinAmount:t.quantity,currency:o,orderPrice:(h=(f=l.paymentChoices.find(T=>T.productId===d))==null?void 0:f.totalAmountStr)!=null?h:""}),!((g=S.hostUserInfo)!=null&&g.isLogin)){let{data:T}=yield Gf({skipLogin:!0});if(!(T!=null&&T.isLogin)){console.log("login failed");return}let k=yield s.refreshProductsInfo();if(((b=k==null?void 0:k.balance)!=null?b:0)>=t.quantity){M.emit(Ht,{paymentResult:"SUCCESS",currency:o}),c.destroy();return}}console.log("invokeNativePayment",d);let u=(_=(y=l==null?void 0:l.paymentChoices)==null?void 0:y.find(T=>T.productId===d))==null?void 0:_.appStoreProductId;if(!u){M.emit(Ht,{paymentResult:"FAILED",currency:o}),c.destroy();return}yield Ai.show({duration:3e3});let{code:p}=yield Pn.invokePayment(a.paymentType,{productId:d,appStoreProductId:u});if(Ai.hide(),j(a.trackEvents.payResult,{eventType:V.Other,targetType:"game",payWay:"app_iap",coinAmount:t.quantity,currency:o,orderPrice:(E=(I=l.paymentChoices.find(T=>T.productId===d))==null?void 0:I.totalAmountStr)!=null?E:"",payResult:p}),p!=="SUCCESS"){console.info("[JoliboxSDK] payment failed in payment.invokePaymet");return}Ar("{slot-success} {slot-i18n-jolicoin.unlockSuccess}",{position:"center",duration:3e3}),M.emit(Ht,{paymentResult:"SUCCESS",currency:o}),c.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:d})=>{M.emit(Ht,{paymentResult:(d!=null?d:"")==="CANCEL"?"CANCEL":"FAILED",currency:o}),j(a.trackEvents.adUnlock,{targetType:"game",eventType:V.Click,currency:o}),c.destroy()}},onEnableDeductChanged:d=>v(rc,null,function*(){yield Hl(d,a.apiEndpointAutoDeduct)})},onSelect:d=>{var u,p;j(a.trackEvents.orderClick,{targetType:"game",eventType:V.Click,coinAmount:t.quantity,currency:o,orderPrice:(p=(u=l.paymentChoices.find(f=>f.productId===d))==null?void 0:u.totalAmountStr)!=null?p:""})}});yield a.frequencyUpdater()}catch(o){console.error("payment failed",o),M.emit(Ht,{paymentResult:"FAILED",currency:t.currency})}}));cT.getProductsInfo().catch(e=>{console.error("preload joli coin payment details failed",e)});uT.getProductsInfo().catch(e=>{console.error("preload joli gem payment details failed",e)})});var fT=m(nc=>{"use strict";Be();sr();ta();dt();yt();O();Jl();ar();bt();var A$={JOLI_COIN:{frequencyChecker:Mx,frequencyUpdater:$x,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:Bx,frequencyUpdater:zx,trackEvents:{modalExpose:"GemLoginGuideModal",clickConfirm:"GemLoginGuideModal",clickConfirmLogin:"GemLoginGuideModal",modalHide:"GemLoginGuideModal",clickClose:"GemLoginGuideModal",clickWatchAds:"GemLoginGuideModal"},toastMessage:{i18nKey:"{slot-i18ntran-loginGuide.gemRewardTips}",usedText:"Gem Used"}}},pT=Ge(M,$t);pT.getData();M.on(zl,(e,t)=>v(nc,null,function*(){var r;try{let n=t.currency,i=A$[n];if(e.includes("ADS-")){let s=yield pT.getData();if(console.log(`${n} unlogin guide config`,s.loginGuide),!s.loginGuide.show){M.emit(Cr,{result:"NOT_SUPPORT"});return}let{canShow:l}=yield i.frequencyChecker(s.loginGuide);if(console.log(`${n} canShowUseModal`,l),!l){M.emit(Cr,{result:"FAILED"});return}}let{firstLogin:o}=(r=yield C$())!=null?r:{};if(!(o!=null&&o.reward)){console.log("[JoliboxSDK] unlogin modal reward is empty"),M.emit(Cr,{result:"NOT_SUPPORT"});return}j(i.trackEvents.modalExpose,{eventType:V.Expose,currency:n},V.Expose);let a=Mk({data:{rewardType:e,rewardValue:o.reward.rewardValue,currency:t.currency},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>v(nc,null,function*(){var d,u,p,f;j(i.trackEvents.clickConfirm,{type:"click_confirm",eventType:V.Click,currency:n},V.Click);let{isLogin:s,extra:l,isFirstLogin:c}=yield Bf({},!0);if(!s){console.log("login failed");return}if(j(i.trackEvents.clickConfirmLogin,{type:"click_confirm_login",isFirstLogin:c,eventType:V.Click,currency:n},V.Click),c&&((d=l==null?void 0:l.firstLogin)!=null&&d.reward)){let{rewardValue:h}=l.firstLogin.reward;Ar(i.toastMessage.i18nKey,{i18nParams:{text:i.toastMessage.usedText,coin:h},position:"top",duration:3e3})}M.emit(Cr,{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})=>{j(i.trackEvents.modalHide,{eventType:V.Hide,currency:n},V.Hide);let l=s==="CANCEL"?"click_close":"click_watch_ads",c=s==="CANCEL"?i.trackEvents.clickClose:i.trackEvents.clickWatchAds;j(c,{type:l,eventType:V.Click,currency:n},V.Click),M.emit(Cr,{result:"FAILED"}),a.destroy()}}}});yield i.frequencyUpdater()}catch(n){Ee(new Cg(n)),M.emit(Cr,{result:"FAILED"})}}));var C$=()=>v(nc,null,function*(){var t;let{response:e}=yield z("/api/base/global-config",{method:"GET",appendHostCookie:!0,responseType:"json"});return(t=e.data)==null?void 0:t.data})});function k$(){let e=new Map;return{registerSubscriptionHandler(r,n){e.set(r,n)},invokeSubscription(r,...n){return v(this,null,function*(){let i=e.get(r);if(!i)return{code:"FAILED",message:`[joliboxSDK]: ${r} subscription not supported in this platform`};try{return yield i(...n)}catch(o){return Ee(o),{code:"FAILED",message:`[joliboxSDK]: subscription error ${o}`}}})}}}var na,ih=x(()=>{"use strict";yt();na=k$()});var Rn,ic=x(()=>{"use strict";Rn={PlaceOrderFailed:1001,CancelOrderFailed:1002,SubscriptionFailed:1003,InvalidPlan:1004}});var x$,hT,oc,T$,ia,oh=x(()=>{"use strict";ic();O();H();x$=()=>{let[e,t]=[Ua,Ma].map(r=>(n,i,o)=>new r(n,i,o));return{createSubscriptionError:e,createSubscriptionInternalError:t}},{createSubscriptionError:hT,createSubscriptionInternalError:oc}=x$(),T$=S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",ia=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startSubscription=t=>v(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw hT(n,Rn.PlaceOrderFailed);return yield this.subscribe(t)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",S.deviceInfo.platform),t.set("joliSource",S.encodeJoliSourceQuery(P({},this.generateSubscriptionContext()))),`${T$}/subscription/callback?${t.toString()}`};this.createSubscriptionError=hT;this.createSubscriptionInternalError=oc}setOrderId(t){this._orderId=t}setOrderStatus(t){this._orderStatus=t}get orderId(){return this._orderId}get status(){return this._orderStatus}}});function P$(e,t){Object.keys(t).forEach(r=>{var i,o,a,s;let n=e.find(l=>l.appStoreProductId===r);n&&(n.amountStr=t[r].pricing.formattedPrice,n.originalAmountStr=t[r].pricing.originalPrice,n.discountPercentage=(o=(i=t[r].pricing.discountPercentage)==null?void 0:i.toString())!=null?o:"",n.trialDay=(s=(a=t[r].trial)==null?void 0:a.duration)!=null?s:0)}),e=e.filter(r=>!Xi(r.amountStr))}var On,sc,ah,sh,ac,mT,lh=x(()=>{"use strict";O();ue();dt();O();Zf();ih();ue();oh();ic();On=class On{static getNativePriceCache(t){var n;let r=t.sort().join(",");return(n=this.nativePriceCache.get(r))!=null?n:{}}execute(t,r){return v(this,null,function*(){var a,s;let{response:n}=yield z(t,{method:"GET",appendHostCookie:!0,responseType:"json"});if(!((a=n.data)!=null&&a.data))throw new Error("get subscription tiers failed");let i=n.data.data,o=(s=i==null?void 0:i.filter(l=>typeof l.appStoreProductId=="string").map(l=>l.appStoreProductId))!=null?s:[];if(o.length>0){let l=yield this.getNativePriceData(o);l&&P$(i,l)}if(i.length===0)throw new Error("subscription tiers is empty");return i})}requestNativeSubscriptionPlans(t,r){return v(this,null,function*(){try{let{data:n}=yield he("requestSubscriptionPlansAsync",{appStoreProductIds:t,type:"game"});return n&&(On.nativePriceCache.set(r,n),On.nativePriceCacheTimestamp.set(r,Date.now())),n}catch(n){throw console.warn("[SubscriptionService] Failed to fetch native subscription pricing:",n),n}})}getNativePriceData(t,r=!1){return v(this,null,function*(){let n=t.sort().join(",");return(r?sT:Ql)(n,()=>this.requestNativeSubscriptionPlans(t,n),{storageKeyPrefix:"joli_subscription_price_"})})}extractCacheableData(t){return{subscriptionTiers:t}}mergeData(){throw new Error("SubscriptionService does not support real-time data merging")}processCachedData(t){return t.subscriptionTiers}updateNativePriceCache(t){return v(this,null,function*(){yield this.getNativePriceData(t,!0),console.log("[SubscriptionService] Updated native price cache for products:",t)})}static clearNativePriceCache(){this.nativePriceCache.clear(),this.nativePriceCacheTimestamp.clear(),console.log("[SubscriptionService] Cleared native price cache")}};On.nativePriceCache=new Map,On.NATIVE_PRICE_CACHE_DURATION=1*24*60*60*1e3,On.nativePriceCacheTimestamp=new Map;sc=On,ah=class extends Ft{constructor(r){super(new sc,{duration:30*60*1e3,timeout:3e3});this.apiEndpoint=r;this.pendingSubscriptions=new Map;this.subInfoCacheKeys=[];this.listenSubscriptionPanelStateChange()}getSubInfo(){return v(this,null,function*(){var r;try{let n=yield this.request(this.apiEndpoint);return this.subInfoCacheKeys=(r=n==null?void 0:n.map(i=>{var o;return(o=i.appStoreProductId)!=null?o:""}))!=null?r:[],n}catch(n){throw console.warn(`[SubscriptionService] getSubInfo failed for ${this.apiEndpoint}:`,n),n}})}refreshSubInfo(){return v(this,null,function*(){return this.forceRequest(this.apiEndpoint)})}updateNativePriceCache(r){return v(this,null,function*(){yield this.requestAdapter.updateNativePriceCache(r)})}updateAllNativePriceCache(){return v(this,null,function*(){try{this.subInfoCacheKeys.length>0&&(yield this.updateNativePriceCache(this.subInfoCacheKeys),this.forceRequest(this.apiEndpoint))}catch(r){throw console.warn("[SubscriptionService] Failed to update all native price cache:",r),r}})}subscribe(r){return v(this,null,function*(){var s;console.log("[SubscriptionService] subscribe params",na);let n=new AbortController,i=na.invokeSubscription("SUB_APP",{productId:r.nativeProductId,appStoreProductId:r.appStoreProductId,planId:r.basePlanId}),o=this.pollSubscriptionStatus(n.signal),a=yield Promise.race([i.then(l=>{var c;return n.abort(),{result:l.code,subPlanId:(c=l.data)==null?void 0:c.subPlanId,message:l.message}}),o.then(l=>(l==null?void 0:l.result)==="SUCCESS"?(n.abort(),l):new Promise(()=>{console.log("[SubscriptionPolling] Timeout for subscriptionService.subscribe completion")}))]);return{result:a.result,subPlanId:a.subPlanId,message:(s=a.message)!=null?s:""}})}pollSubscriptionStatus(r){return v(this,null,function*(){var o,a;for(let s=0;s<10;s++){if(r.aborted){console.log("[SubscriptionPolling] Aborted due to subscribe completion");return}try{let{response:l}=yield z("/api/subs/info",{method:"GET",appendHostCookie:!0,responseType:"json"});if(((a=(o=l.data)==null?void 0:o.data)==null?void 0:a.status)==="ACTIVE")return{result:"SUCCESS",subPlanId:l.data.data.subPlanId,message:"Subscription activated via polling"}}catch(l){console.warn(`[SubscriptionPolling] Attempt ${s+1} failed:`,l)}s<9&&!r.aborted&&(yield La(5e3))}})}invokeSubscriptionPanel(){return v(this,null,function*(){var i,o;let r=new ut,n;try{if(console.log("[invokeSubscriptionPanel] requestSubscriptionSync params"),n=(i=F("invokeSubscriptionPanelSync",{type:"game"}).data)==null?void 0:i.subUUID,!n)throw oc("orderUUID is null",Rn.SubscriptionFailed);this.pendingSubscriptions.set(n,r)}catch(a){throw oc((o=JSON.stringify(a))!=null?o:"subscription panel failed",Rn.SubscriptionFailed)}return r.promise})}getTierByProductId(r){return v(this,null,function*(){var s;let n=yield this.getSubInfo(),i=n==null?void 0:n.find(l=>l.productId===r);if(!i)return;let o=sc.getNativePriceCache((n!=null?n:[]).map(l=>{var c;return(c=l.appStoreProductId)!=null?c:""}));if(!o)return;let a=o[(s=i.appStoreProductId)!=null?s:""];if(a)return console.log("[SubscriptionService] getTierByProductId nativeSubInfo",a),{nativeProductId:a.productId,appStoreProductId:i.appStoreProductId,basePlanId:a.basePlanId}})}listenSubscriptionPanelStateChange(){De("onSubscriptionPanelStateChange",r=>{var i;console.log("[onSubscriptionPanelStateChange] data",r);let n=this.pendingSubscriptions.get(r.subUUID);n&&(r.status==="SUCCESS"?n.resolve({code:"SUCCESS",message:"subscription panel success",data:{result:"SUCCESS",subPlanId:(i=r.orderResponse)==null?void 0:i.subPlanId}}):n.resolve({code:"FAILED",message:"subscription panel failed",data:{result:"FAILED"}}))})}},sh=class extends ah{constructor(){super("/api/subs/pricing")}},ac=null,mT=()=>ac||(ac=new sh,ac)});var gT=x(()=>{"use strict"});function yT(){let e=new Map;return t=>v(this,null,function*(){console.log("[SubAppSubscriptionHandler] createSubAppSubscriptionHandler params",t);let{productId:r,planId:n}=t,i=`${r}_${n}`,o=e.get(i);if(!o){console.log("[SubAppSubscriptionHandler] createSubAppSubscriptionHandler instance not found",i);let a=R$[S.platform];if(!a)throw new Error(`Platform ${S.platform} not supported for sub-app subscription`);o=new a(r,n),e.set(i,o)}return o.startSubscription({basePlanId:n,appStoreProductId:t.appStoreProductId,productId:r})})}var ch,vT,uh,dh,R$,bT=x(()=>{"use strict";H();oh();ra();Yl();O();ue();O();ic();De("onGlobalSubscriptionStateChange",e=>{let{status:t,orderResponse:r}=e;console.log("[onGlobalSubscriptionStateChange] data",e),t==="SUCCESS"&&(r!=null&&r.subPlanId||r!=null&&r.tickedId)&&S.onEnvConfigChanged({hostUserInfo:{isLogin:!0,isSubUser:!0}})});ch=new Map;De("onSubscritptionStateChange",e=>{var o,a;let{subUUID:t,status:r,orderResponse:n}=e;console.log("[onSubscritptionStateChange] data",e);let i=ch.get(t);if(i){if(r==="SUCCESS")i.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{subPlanId:(o=n==null?void 0:n.subPlanId)!=null?o:n.tickedId}});else{if(r==="FAILED"&&qa(n==null?void 0:n.errNo)&&(n==null?void 0:n.errNo)!==0)throw Ct(`subscription failed: ${n==null?void 0:n.errMsg}`,Rn.SubscriptionFailed);i.resolve({code:r,message:(a=n==null?void 0:n.errMsg)!=null?a:"UNKNOWN_ERROR"})}ch.delete(t)}});vT=e=>v(void 0,null,function*(){var n,i;let t=new ut,r;try{if(console.log("[internalSubscribe] requestSubscriptionSync params",e),r=(n=F("requestSubscriptionSync",P({params:{basePlanId:e.basePlanId,appStoreProductId:e.appStoreProductId,productId:e.productId}},e.appAccountToken?{paymentBody:{appAccountToken:e.appAccountToken,appStoreProductId:e.appStoreProductId}}:{})).data)==null?void 0:n.subUUID,!r)throw Ct("subUUID is null",1002);ch.set(r,t)}catch(o){throw Ct((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),uh=class extends ia{constructor(r,n){super();this.productId=r;this.planId=n}placeOrder(r){return v(this,null,function*(){return{code:"SUCCESS",message:"Android subscription order placed locally"}})}cancelOrder(r){return Promise.resolve({code:"SUCCESS",message:"Android order cancelled locally",data:void 0})}generateSubscriptionContext(){return{gameId:S.mpId,productId:this.productId,planId:this.planId}}subscribe(r){return v(this,null,function*(){return yield vT(r)})}},dh=class extends ia{constructor(r,n){super();this.productId=r;this.planId=n}placeOrder(r){return v(this,null,function*(){var o,a;console.log("----start place order for iOS subscription----");let n=F("envSync"),i=(a=(o=n==null?void 0:n.data)==null?void 0:o.hostUserInfo)==null?void 0:a.appAccountToken;if(!i)throw Ct("appAccountToken is null",1002);return this.subscriptionToken=i,{code:"SUCCESS",message:"placeorder sub-app success in native"}})}cancelOrder(r){return v(this,null,function*(){return Promise.resolve({code:"SUCCESS",message:"Android order cancelled locally",data:void 0})})}generateSubscriptionContext(){return{gameId:S.mpId,productId:this.productId,planId:this.planId}}subscribe(r){return v(this,null,function*(){return yield vT(B(P({},r),{appAccountToken:this.subscriptionToken}))})}},R$={android:uh,ios:dh}});var Nn,ph=x(()=>{"use strict";lh();gT();ih();bT();lh();Nn=mT();na.registerSubscriptionHandler("SUB_APP",yT())});var IT=m(ST=>{"use strict";ta();Be();sr();He();ph();ar();var O$={SUBSCRIPTION:{frequencyConfigKey:"joinMember",frequencyChecker:Gx,frequencyUpdater:Kx}},_T=En(),wT=Ge(M,$t);wT.getData();M.on(Kl,e=>v(ST,null,function*(){let t=O$.SUBSCRIPTION;if(!je("invokeSubscriptionPanelSync")){console.info("invokeSubscriptionPanelSync not supported"),setTimeout(()=>{M.emit(xn,{result:"FAILED"})},0);return}yield _T.show({duration:3e3});let r=yield wT.getData(),{canShow:n,isFirst:i}=yield t.frequencyChecker(r.joliCoinUseAndCharge[t.frequencyConfigKey]);if(_T.hide(),!n){M.emit(xn,{result:"FAILED"});return}let{data:o,code:a}=yield Nn.invokeSubscriptionPanel();a=="SUCCESS"&&(o!=null&&o.subPlanId)?M.emit(xn,{result:"SUCCESS"}):M.emit(xn,{result:"FAILED"}),yield t.frequencyUpdater()}))});var loe,coe,uoe,doe,ET=x(()=>{"use strict";loe=se(Xx()),coe=se(dT()),uoe=se(fT()),doe=se(IT())});function V$(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function W$(e){return typeof e=="string"}function z$(e){return typeof e=="undefined"}function K$(e){return z$(e)||e===null}function Y$(e){return typeof e=="function"}function cP(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 oa(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function pc(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 nV(e){let t=e.location?pc(e.location,PT):null,r=e.target?pc(e.target,PT):null;return pc(J$(G$({},e),{location:t,target:r}),tV)}function iV(e){let t=e.events.map(n=>nV(n)),r=pc(e.device,rV);return[e.protocolVersion,t,r,e.project]}function oV(){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 uV(e){return new Promise(t=>fP(e)(t))}function fP(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 dV(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new ha(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 fV(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)hV(e[n],t[n])}function hV(e,t){if(W$(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(Y$(t)){try{if(e instanceof t)return}catch(r){}if(!K$(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 ht(e,t,r){return(t=mV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mV(e){var t=gV(e,"string");return typeof t=="symbol"?t:t+""}function gV(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 lc(e,t,r){return(t=vV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vV(e){var t=yV(e,"string");return typeof t=="symbol"?t:t+""}function yV(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 cc(e,t,r){return(t=bV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bV(e){var t=_V(e,"string");return typeof t=="symbol"?t:t+""}function _V(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 Tr(e,t,r){return(t=wV(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wV(e){var t=SV(e,"string");return typeof t=="symbol"?t:t+""}function SV(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 IV(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 EV(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 PV(e,t){return Ke(e,0)^45?(((t<<2^Ke(e,0))<<2^Ke(e,1))<<2^Ke(e,2))<<2^Ke(e,3):0}function gP(e){return e.trim()}function RV(e,t){return(e=t.exec(e))?e[0]:e}function te(e,t,r){return e.replace(t,r)}function Lh(e,t){return e.indexOf(t)}function Ke(e,t){return e.charCodeAt(t)|0}function ma(e,t,r){return e.slice(t,r)}function cr(e){return e.length}function um(e){return e.length}function uc(e,t){return t.push(e),e}function OV(e,t){return e.map(t).join("")}function Pc(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Tc,column:Ni,length:a,return:""}}function sa(e,t){return TV(Pc("",null,null,"",null,null,0),e,{length:-e.length},t)}function NV(){return Oe}function DV(){return Oe=gt>0?Ke(Li,--gt):0,Ni--,Oe===10&&(Ni=1,Tc--),Oe}function xt(){return Oe=gt<vP?Ke(Li,gt++):0,Ni++,Oe===10&&(Ni=1,Tc++),Oe}function ur(){return Ke(Li,gt)}function fc(){return gt}function ya(e,t){return ma(Li,e,t)}function ga(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 yP(e){return Tc=Ni=1,vP=cr(Li=e),gt=0,[]}function bP(e){return Li="",e}function hc(e){return gP(ya(gt-1,qh(e===91?e+2:e===40?e+1:e)))}function LV(e){for(;(Oe=ur())&&Oe<33;)xt();return ga(e)>2||ga(Oe)>3?"":" "}function qV(e,t){for(;--t&&xt()&&!(Oe<48||Oe>102||Oe>57&&Oe<65||Oe>70&&Oe<97););return ya(e,fc()+(t<6&&ur()==32&&xt()==32))}function qh(e){for(;xt();)switch(Oe){case e:return gt;case 34:case 39:e!==34&&e!==39&&qh(Oe);break;case 40:e===41&&qh(e);break;case 92:xt();break}return gt}function UV(e,t){for(;xt()&&e+Oe!==57&&!(e+Oe===84&&ur()===47););return"/*"+ya(t,gt-1)+"*"+xc(e===47?e:xt())}function MV(e){for(;!ga(ur());)xt();return ya(e,gt)}function FV(e){return bP(mc("",null,null,null,[""],e=yP(e),0,[0],e))}function mc(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,h=0,g=1,b=1,y=1,_=0,I="",E=i,T=o,k=n,C=I;b;)switch(h=_,_=xt()){case 40:if(h!=108&&Ke(C,u-1)==58){Lh(C+=te(hc(_),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:C+=hc(_);break;case 9:case 10:case 13:case 32:C+=LV(h);break;case 92:C+=qV(fc()-1,7);continue;case 47:switch(ur()){case 42:case 47:uc(jV(UV(xt(),fc()),t,r),l);break;default:C+="/"}break;case 123*g:s[c++]=cr(C)*y;case 125*g:case 59:case 0:switch(_){case 0:case 125:b=0;case 59+d:y==-1&&(C=te(C,/\f/g,"")),f>0&&cr(C)-u&&uc(f>32?NT(C+";",n,r,u-1):NT(te(C," ","")+";",n,r,u-2),l);break;case 59:C+=";";default:if(uc(k=OT(C,t,r,c,d,i,s,I,E=[],T=[],u),o),_===123)if(d===0)mc(C,t,k,k,E,o,u,s,T);else switch(p===99&&Ke(C,3)===110?100:p){case 100:case 108:case 109:case 115:mc(e,k,k,n&&uc(OT(e,k,k,0,0,i,s,I,i,E=[],u),T),i,T,u,s,n?E:T);break;default:mc(C,k,k,k,[""],T,0,s,T)}}c=d=f=0,g=y=1,I=C="",u=a;break;case 58:u=1+cr(C),f=h;default:if(g<1){if(_==123)--g;else if(_==125&&g++==0&&DV()==125)continue}switch(C+=xc(_),_*g){case 38:y=d>0?1:(C+="\f",-1);break;case 44:s[c++]=(cr(C)-1)*y,y=1;break;case 64:ur()===45&&(C+=hc(xt())),p=ur(),d=u=cr(I=C+=MV(fc())),_++;break;case 45:h===45&&cr(C)==2&&(g=0)}}return o}function OT(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=um(p),h=0,g=0,b=0;h<n;++h)for(var y=0,_=ma(e,u+1,u=xV(g=a[h])),I=e;y<f;++y)(I=gP(g>0?p[y]+" "+_:te(_,/&\f/g,p[y])))&&(l[b++]=I);return Pc(e,t,r,i===0?lm:s,l,c,d)}function jV(e,t,r){return Pc(e,t,r,hP,xc(NV()),ma(e,2,-2),0)}function NT(e,t,r,n){return Pc(e,t,r,cm,ma(e,0,n),ma(e,n+1,-1),n)}function Ri(e,t){for(var r="",n=um(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function BV(e,t,r,n){switch(e.type){case kV:if(e.children.length)break;case CV:case cm:return e.return=e.return||e.value;case hP:return"";case mP:return e.return=e.value+"{"+Ri(e.children,n)+"}";case lm:e.value=e.props.join(",")}return cr(r=Ri(e.children,n))?e.return=e.value+"{"+r+"}":""}function GV(e){var t=um(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 JV(e){return function(t){t.root||(t=t.return)&&e(t)}}function HV(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function _P(e,t){switch(PV(e,t)){case 5103:return ee+"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 ee+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ee+e+_c+e+it+e+e;case 6828:case 4268:return ee+e+it+e+e;case 6165:return ee+e+it+"flex-"+e+e;case 5187:return ee+e+te(e,/(\w+).+(:[^]+)/,ee+"box-$1$2"+it+"flex-$1$2")+e;case 5443:return ee+e+it+"flex-item-"+te(e,/flex-|-self/,"")+e;case 4675:return ee+e+it+"flex-line-pack"+te(e,/align-content|flex-|-self/,"")+e;case 5548:return ee+e+it+te(e,"shrink","negative")+e;case 5292:return ee+e+it+te(e,"basis","preferred-size")+e;case 6060:return ee+"box-"+te(e,"-grow","")+ee+e+it+te(e,"grow","positive")+e;case 4554:return ee+te(e,/([^-])(transform)/g,"$1"+ee+"$2")+e;case 6187:return te(te(te(e,/(zoom-|grab)/,ee+"$1"),/(image-set)/,ee+"$1"),e,"")+e;case 5495:case 3959:return te(e,/(image-set\([^]*)/,ee+"$1$`$1");case 4968:return te(te(e,/(.+:)(flex-)?(.*)/,ee+"box-pack:$3"+it+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ee+e+e;case 4095:case 3583:case 4068:case 2532:return te(e,/(.+)-inline(.+)/,ee+"$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(cr(e)-1-t>6)switch(Ke(e,t+1)){case 109:if(Ke(e,t+4)!==45)break;case 102:return te(e,/(.+:)(.+)-([^]+)/,"$1"+ee+"$2-$3$1"+_c+(Ke(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Lh(e,"stretch")?_P(te(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ke(e,t+1)!==115)break;case 6444:switch(Ke(e,cr(e)-3-(~Lh(e,"!important")&&10))){case 107:return te(e,":",":"+ee)+e;case 101:return te(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ee+(Ke(e,14)===45?"inline-":"")+"box$3$1"+ee+"$2$3$1"+it+"$2box$3")+e}break;case 5936:switch(Ke(e,t+11)){case 114:return ee+e+it+te(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ee+e+it+te(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ee+e+it+te(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ee+e+it+e+e}return e}function ZV(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 wc(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 nn={name:i.name,styles:i.styles,next:nn},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)nn={name:a.name,styles:a.styles,next:nn},a=a.next;var s=o.styles+";";return s}return n9(e,t,r)}}var l=r;if(t==null)return l;var c=t[l];return c!==void 0?c:l}function n9(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=wc(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]+"}":LT(s)&&(n+=hh(o)+":"+qT(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++)LT(a[l])&&(n+=hh(o)+":"+qT(o,a[l])+";");else{var c=wc(e,t,a);switch(o){case"animation":case"animationName":{n+=hh(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function mh(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="";nn=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=wc(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=wc(r,t,e[s]),n){var l=o;i+=l[s]}UT.lastIndex=0;for(var c="",d;(d=UT.exec(i))!==null;)c+="-"+d[1];var u=ZV(i)+c;return{name:u,styles:i,next:nn}}function SP(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}function MT(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function FT(e,t,r){var n=[],i=SP(e,n,r);return n.length<2?r:i+t(n)}function c9(e,t){Me.__h&&Me.__h(kt,e,BT||t),BT=0;var r=kt.__H||(kt.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function EP(e,t){var r=c9(Uh++,7);return p9(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function u9(){for(var e;e=IP.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(gc),e.__H.__h.forEach(Mh),e.__H.__h=[]}catch(t){e.__H.__h=[],Me.__e(t,e.__v)}}function d9(e){var t,r=function(){clearTimeout(n),zT&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);zT&&(t=requestAnimationFrame(r))}function gc(e){var t=kt,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),kt=t}function Mh(e){var t=kt;e.__c=e.__(),kt=t}function p9(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Rc(){if(on>1)on--;else{for(var e,t=!1;da!==void 0;){var r=da;for(da=void 0,Fh++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&CP(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(Fh=0,on--,t)throw e}}function Ye(e){if(on>0)return e();on++;try{return e()}finally{Rc()}}function AP(e){if(le!==void 0){var t=e.n;if(t===void 0||t.t!==le)return t={i:0,S:e,p:le.s,n:void 0,t:le,e:void 0,x:void 0,r:t},le.s!==void 0&&(le.s.n=t),le.s=t,e.n=t,32&le.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=le.s,t.n=void 0,le.s.n=t,le.s=t),t}}function Qe(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function $(e){return new Qe(e)}function CP(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 kP(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 xP(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 qi(e){Qe.call(this,void 0),this.x=e,this.s=void 0,this.g=Sc-1,this.f=4}function pa(e){return new qi(e)}function TP(e){var t=e.u;if(e.u=void 0,typeof t=="function"){on++;var r=le;le=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,dm(e),n}finally{le=r,Rc()}}}function dm(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,TP(e)}function h9(e){if(le!==this)throw new Error("Out-of-order effect");xP(this),le=e,this.f&=-2,8&this.f&&dm(this),Rc()}function ba(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function _a(e){var t=new ba(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function Ui(e,t){q[e]=t.bind(null,q[e]||function(){})}function Ic(e){vh&&vh(),vh=e&&e.S()}function OP(e){var t=this,r=e.data,n=NP(r);n.value=r;var i=EP(function(){for(var s=t,l=t.__v;l=l.__;)if(l.__c){l.__c.__$f|=4;break}var c=pa(function(){var f=n.value.value;return f===0?0:f===!0?"":f||""}),d=pa(function(){return!Array.isArray(c.value)&&!Gu(c.value)}),u=_a(function(){if(this.N=DP,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 m9(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=$(r);return{o:function(a,s){o.value=a,n=s},d:_a(function(){this.N=DP;var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function NP(e){return EP(function(){return $(e)},[])}function v9(){Ye(function(){for(var e;e=RP.shift();)PP.call(e)})}function DP(){RP.push(this)===1&&(q.requestAnimationFrame||g9)(v9)}function y9(e,t){let r=ii(e);ni(()=>{r.current=e},[e]),yn(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function K(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:--b9,__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 q.vnode&&q.vnode(c),c}function Pr(e,t,r){return(t=R9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function R9(e){var t=O9(e,"string");return typeof t=="symbol"?t:t+""}function O9(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 lt(e,t,r){return(t=H9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H9(e){var t=$9(e,"string");return typeof t=="symbol"?t:t+""}function $9(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 Rr(e,t,r){return(t=K9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K9(e){var t=Y9(e,"string");return typeof t=="symbol"?t:t+""}function Y9(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 nt(e,t,r){return(t=Q9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Q9(e){var t=X9(e,"string");return typeof t=="symbol"?t:t+""}function X9(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 mt(e,t,r){return(t=Z9(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Z9(e){var t=eW(e,"string");return typeof t=="symbol"?t:t+""}function eW(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 Dn(e,t,r){return(t=tW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tW(e){var t=rW(e,"string");return typeof t=="symbol"?t:t+""}function rW(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 yh(e,t,r){return(t=nW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nW(e){var t=iW(e,"string");return typeof t=="symbol"?t:t+""}function iW(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=oW(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oW(e){var t=aW(e,"string");return typeof t=="symbol"?t:t+""}function aW(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 pW(e){return!!(e!=null&&e.__nativeBuffers__)}function Yh(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!pW(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=fW(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function mW(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,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:hW(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function bW(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function FP(e){return typeof e=="string"}function Oi(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function QT(e){return typeof e=="number"&&!isNaN(e)}function wW(e){return typeof e=="undefined"}function SW(e){return wW(e)||e===null}function jP(e){return typeof e=="function"}function IW(e){return Oi(e)&&jP(e.then)}function BP(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 la(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function PW(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 LW(){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 jW(e){return new Promise(t=>GP(e)(t))}function GP(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 BW(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new va(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 JW(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)HW(e[n],t[n])}function HW(e,t){if(FP(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(jP(t)){try{if(e instanceof t)return}catch(r){}if(!SW(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 Lt(e,t){if(Xh.config[e]){Nc.warn(`[can i use] ${e} already registered`);return}Xh.config[e]=Lr({},t)}function eP(e,t){return`[${e}]:${t}`}function XW(e,t){tP||(wh=new yc({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Sh=new yc({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Ih=new yc({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),t("onJoliboxEnterBackground",()=>{wh.flush(),Sh.flush(),Ih.flush()}),tP=!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:h,invokeCallback:g}=f,b=(a=(o=u.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";wh.report({status:b,method:n(s,l),errNo:`${p}`,errMsg:u,isForeground:d,duration:Date.now()-c}),c&&h&&g&&(Sh.report({status:b,method:s,isForeground:d,duration:Number((h-c).toFixed(3))}),Ih.report({status:b,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 tz(e,t){let r=0,n=!0,i=ez.resolveMap,o=XW(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,Eh.forEach(l=>Cc(this,[l],function(c){let{method:d,args:u,resolve:p}=c;return function*(){let f=yield s(d,u);p(f)}()})),Eh.length=0});let a=(l,c)=>{let d=i.get(Number(l));if(!d)return;let u=Yh(c);d(u),i.delete(Number(l))},s=(l,c)=>{var d,u;let p=Date.now(),f=`${n}`;r+=1;let h=new _W;if(i.set(r,h.resolve),!n&&zW.includes(l))return new Promise(E=>{Eh.push({method:l,args:c,resolve:E})});let g=uW(Lr({},{method:l,startTime:p,args:c,isForeground:f}),{invokeType:"js-bridge"}),b=WW.includes(l),y=mW(c,b),_=b?y:JSON.stringify(y),I;if(l.endsWith("Sync")||KW.includes(l)?I=(d=e.call)==null?void 0:d.call(e,l,y,r):typeof _=="string"?I=e.invoke(l,_,r):I=(u=e.call)==null?void 0:u.call(e,l,_,r),I){try{typeof I=="string"&&(I=JSON.parse(I)),I=Yh(I)}catch(E){Nc.error(E)}return i.delete(r),I.errorCode&&(I.errorCode=eP(l,I.errorCode)),o(Lr(Lr({},g),I)),I}return l.endsWith("Sync")&&i.delete(r),h.promise.then(E=>(E.errorCode&&(E.errorCode=eP(l,E.errorCode)),o(Lr(Lr({},g),E)),E))};return{invokeNative:s,applyNative:(l,c)=>{let d=s(l,c);return IW(d)?d.then(u=>rP(l,u)):rP(l,d)},invokeHandler:a}}function rP(e,t){if(!Oi(t)){Nc.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=dW(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new kW(n,i,o,a);return s}function rz(e){if(globalThis[dc])return globalThis[dc];let t=new tm,r=new tm,n=new yc({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[dc]={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=Yh(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===JP){l.forEach(c=>{let[d,u]=c;try{r.emit(d.slice(fa.length),u,a)}catch(p){}});return}if(i.startsWith(fa)){r.emit(i.slice(fa.length),l,a);return}t.emit(i,l,a)}},globalThis[dc]}function nz(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(`${fa}${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(JP,d,p)}catch(p){}}),n=void 0,t.clear()}));let c=t.get(s);c||(c=[],t.set(s,c)),c.push([`${fa}${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(YW,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 iz(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=rz(e),{invokeNative:a,invokeHandler:s,applyNative:l}=tz(e,r),{publish:c,emitNative:d}=nz(e);return{invokeHandler:s,subscribeHandler:t,applyNative:l,invokeNative:a,onNative:r,offNative:n,emitNative:d,publish:c,subscribe:i,unsubscribe:o}}function HP(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}function cz(e,t,r){return(t=uz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uz(e){var t=dz(e,"string");return typeof t=="symbol"?t:t+""}function dz(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 Or(e,t,r){return(t=fz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function fz(e){var t=hz(e,"string");return typeof t=="symbol"?t:t+""}function hz(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 Nr(e,t,r){return(t=mz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function mz(e){var t=gz(e,"string");return typeof t=="symbol"?t:t+""}function gz(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 ua(e,t,r){return(t=vz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vz(e){var t=yz(e,"string");return typeof t=="symbol"?t:t+""}function yz(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 Vt(e,t,r){return(t=bz(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bz(e){var t=_z(e,"string");return typeof t=="symbol"?t:t+""}function _z(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 N$,D$,L$,bc,iP,oP,AT,aP,q$,U$,sP,M$,F$,CT,j$,B$,kT,G$,J$,H$,lP,$$,Q$,X$,xT,Z$,TT,eV,uP,dP,pP,PT,tV,rV,xi,Ch,kh,ye,aV,sV,aa,ha,lV,Th,cV,fh,pV,Ph,RT,Ci,Rh,Oh,Nh,Dh,AV,it,_c,ee,hP,lm,cm,CV,mP,kV,xV,xc,TV,Tc,Ni,vP,gt,Oe,Li,$V,VV,WV,DT,zV,KV,YV,QV,XV,e9,t9,r9,wP,LT,hh,qT,UT,nn,i9,o9,a9,s9,l9,ot,Uh,kt,gh,jT,BT,IP,Me,GT,JT,HT,$T,VT,WT,zT,f9,le,da,on,Fh,Sc,PP,vh,RP,g9,Fe,b9,_9,Dr,jh,Bh,vc,w9,S9,I9,E9,A9,C9,k9,x9,T9,P9,Gh,N9,D9,L9,q9,U9,M9,F9,KT,j9,B9,G9,J9,Jh,Pi,ki,V9,W9,z9,Hh,LP,$h,Vh,Wh,zh,Ec,Kh,sW,lW,cW,Ac,qP,UP,YT,Lr,uW,dW,Cc,fW,hW,gW,vW,MP,yW,_W,EW,AW,Oc,CW,kW,xW,bh,Nc,XT,TW,Qh,RW,Xh,OW,NW,DW,Ti,qW,Zh,be,UW,MW,ca,va,tm,rm,FW,_h,GW,nm,ZT,$W,VW,fa,WW,zW,KW,JP,YW,QW,yc,tP,wh,Sh,Ih,Eh,im,ZW,ez,dc,pm,an,$P,VP,oz,WP,nP,Ah,az,sz,lz,pz,kc,om,am,sm,Di,hoe,fm=x(()=>{"use strict";Wn();Cs();N$=Object.defineProperty,D$=Object.defineProperties,L$=Object.getOwnPropertyDescriptors,bc=Object.getOwnPropertySymbols,iP=Object.prototype.hasOwnProperty,oP=Object.prototype.propertyIsEnumerable,AT=(e,t,r)=>t in e?N$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,aP=(e,t)=>{for(var r in t||(t={}))iP.call(t,r)&&AT(e,r,t[r]);if(bc)for(var r of bc(t))oP.call(t,r)&&AT(e,r,t[r]);return e},q$=(e,t)=>D$(e,L$(t)),U$=(e,t)=>{var r={};for(var n in e)iP.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&bc)for(var n of bc(e))t.indexOf(n)<0&&oP.call(e,n)&&(r[n]=e[n]);return r},sP=Object.defineProperty,M$=Object.defineProperties,F$=Object.getOwnPropertyDescriptors,CT=Object.getOwnPropertySymbols,j$=Object.prototype.hasOwnProperty,B$=Object.prototype.propertyIsEnumerable,kT=(e,t,r)=>t in e?sP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,G$=(e,t)=>{for(var r in t||(t={}))j$.call(t,r)&&kT(e,r,t[r]);if(CT)for(var r of CT(t))B$.call(t,r)&&kT(e,r,t[r]);return e},J$=(e,t)=>M$(e,F$(t)),H$=(e,t)=>{for(var r in t)sP(e,r,{get:t[r],enumerable:!0})},lP=(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},$$=(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}Q$=(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))(Q$||{});X$={log:oa("log"),warn:oa("warn"),info:oa("info"),error:oa("error"),debug:oa("debug")};Object.assign(globalThis,{logger:X$});xT=Symbol.for("Jolibox.canIUseMap"),Z$={};globalThis[xT]||(globalThis[xT]=Z$);TT=Symbol.for("Jolibox.canIUseMap.native"),eV={};globalThis[TT]||(globalThis[TT]=eV);uP=(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))(uP||{}),dP=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(dP||{}),pP=(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))(pP||{}),PT=["name","params"],tV=["name","type","location","target","extra","timestamp","userId"],rV=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];oV();xi=typeof window=="undefined",Ch=()=>!xi&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK");!xi&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),!xi&&navigator.userAgent.includes("Android"),!xi&&navigator.userAgent.includes("Mac"),!xi&&navigator.userAgent.includes("FB_IAB"),!xi&&!navigator.userAgent.includes("iPhone")&&navigator.userAgent.includes("Android");kh=class xh{constructor(t){this.element=t,this.next=xh.Undefined,this.prev=xh.Undefined}};kh.Undefined=new kh(void 0);ye=kh,aV=class{constructor(){this._first=ye.Undefined,this._last=ye.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ye.Undefined}clear(){let e=this._first;for(;e!==ye.Undefined;){let t=e.next;e.prev=ye.Undefined,e.next=ye.Undefined,e=t}this._first=ye.Undefined,this._last=ye.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new ye(e);if(this._first===ye.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!==ye.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ye.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ye.Undefined&&e.next!==ye.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ye.Undefined&&e.next===ye.Undefined?(this._first=ye.Undefined,this._last=ye.Undefined):e.next===ye.Undefined?(this._last=this._last.prev,this._last.next=ye.Undefined):e.prev===ye.Undefined&&(this._first=this._first.next,this._first.prev=ye.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ye.Undefined;)yield e.element,e=e.next}},sV=0,aa=class{constructor(e){this.value=e,this.id=sV++}},ha=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 aa&&(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 aa(e);return this._listeners?this._listeners instanceof aa?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 aa)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 aa?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},lV=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 ha,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 aV,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)}},Th={};H$(Th,{None:()=>cV,filter:()=>dV,once:()=>fP,toPromise:()=>uV});cV=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});fh=Symbol.for("Jolibox.hostEmitter"),pV=()=>{let e=new lV;return globalThis[fh]||(globalThis[fh]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[fh]};pV();Ph=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new ha,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 fV(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}};Ph=lP([cP],Ph);RT=class{constructor(){this._onWillExecuteCommand=new ha,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new ha,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Ph,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=V$(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 $$(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),Th.toPromise(Th.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{}}};RT=lP([cP],RT);Ci=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")},Rh=class{constructor(t){ht(this,"context",void 0),ht(this,"continueCallback",void 0),ht(this,"adIsShowingCallback",void 0),ht(this,"isBeforeAdCalled",!1),ht(this,"isBeforeRewardCalled",!1),ht(this,"isAdDismissedCalled",!1),ht(this,"isAdViewedCalled",!1),ht(this,"isAfterAdCalled",!1),ht(this,"currentProvider",void 0),ht(this,"currentClientParams",void 0),ht(this,"adsHasResponse",!1),ht(this,"videoChecker",window.document.createElement("video")),ht(this,"contextInfo",void 0),ht(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.notifyIframeAdsEvent("JOLIBOX_AD_CALL_BEFORE_REWARD",aP({userEvent:a},this.paramsToTrack)),Ch()&&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=Ci(r);s==null||s()}),this.context=t,this.contextInfo=t.getContextInfo()}notifyIframeAdsEvent(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.notifyIframeAdsEvent("JOLIBOX_AD_CALL_BEFORE_AD",this.paramsToTrack),!this.isBeforeAdCalled){this.isBeforeAdCalled=!0;let a=Ci(t);a==null||a(),((r=this.currentClientParams)==null?void 0:r.type)!=="reward"&&((n=this.adIsShowingCallback)==null||n.call(this,!0),Ch()&&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=Ci(t);r==null||r()}}}wrapAdViewed(t){return()=>{if(this.adsHasResponse=!0,!this.isAdViewedCalled){this.isAdViewedCalled=!0;let r=Ci(t);r==null||r()}}}wrapAfterAd(t){return()=>{if(this.adsHasResponse=!0,this.context.track("CallAfterAd",this.paramsToTrack),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AFTER_AD",this.paramsToTrack),!this.isAfterAdCalled){this.isAfterAdCalled=!0;let r=Ci(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.notifyIframeAdsEvent("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=Ci(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 v(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.notifyIframeAdsEvent("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.notifyIframeAdsEvent("JOLIBOX_AD_CALL_AD_BREAK",this.paramsToTrack),t.adBreak(a,n),window.JoliTesterBridge&&console.log("joli-fullscreen-ad-show")})})}};Oh=class{constructor(t){lc(this,"context",void 0),lc(this,"adBreakIsShowing",!1),lc(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),lc(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()})}};Nh=class{constructor(t){cc(this,"configs",null),cc(this,"firstRun",!0),cc(this,"context",void 0),cc(this,"contextInfo",void 0),this.context=t,this.contextInfo=this.context.getContextInfo(),this.init()}init(){return v(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}};Dh=class{constructor(t,r){Tr(this,"name","ADSENSE"),Tr(this,"context",void 0),Tr(this,"contextInfo",void 0),Tr(this,"configured",!1),Tr(this,"initParams",void 0),Tr(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),Tr(this,"adConfig",n=>{let i=n,{onReady:o}=i,a=U$(i,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),Tr(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),Tr(this,"adUnit",n=>v(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 h=c;if(h||(h=this.initParams.unitId),!h)throw new Error("slot is required");let g=typeof d=="object"&&Array.isArray(d)?d.join(", "):d,b=document.createElement("ins");if(b.className="adsbygoogle",b.id="jolibox-ads",b.style.display="block",b.setAttribute("data-ad-client",this.initParams.clientId),b.setAttribute("data-ad-slot",h),g&&b.setAttribute("data-ad-format",g),u&&b.setAttribute("data-full-width-responsive",u),p&&b.setAttribute("style",p),(s=this.contextInfo.testAdsMode)!=null?s:!1){let y=document.createElement("div");y.style.position="absolute",y.style.top="0",y.style.left="0",y.style.width="100%",y.style.height="100%",y.style.display="flex",y.style.justifyContent="center",y.style.alignItems="center",y.style.backgroundColor="rgba(0, 0, 0, 0.5)",y.style.color="white",y.innerHTML="Test Ad",b.style.position="relative",f.appendChild(b),b.appendChild(y)}else f.appendChild(b),new MutationObserver(y=>{y.forEach(_=>{if(_.type==="attributes"&&_.attributeName==="data-ad-status"){let I=b.getAttribute("data-ad-status");this.context.track("AdSenseUnitStatusChanged",{status:I!=null?I:"null"})}})}).observe(b,{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 v(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)}})}};AV=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(EV(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=IV(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}(),it="-ms-",_c="-moz-",ee="-webkit-",hP="comm",lm="rule",cm="decl",CV="@import",mP="@keyframes",kV="@layer",xV=Math.abs,xc=String.fromCharCode,TV=Object.assign;Tc=1,Ni=1,vP=0,gt=0,Oe=0,Li="";$V=function(e,t,r){for(var n=0,i=0;n=i,i=ur(),n===38&&i===12&&(t[r]=1),!ga(i);)xt();return ya(e,gt)},VV=function(e,t){var r=-1,n=44;do switch(ga(n)){case 0:n===38&&ur()===12&&(t[r]=1),e[r]+=$V(gt-1,t,r);break;case 2:e[r]+=hc(n);break;case 4:if(n===44){e[++r]=ur()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=xc(n)}while(n=xt());return e},WV=function(e,t){return bP(VV(yP(e),t))},DT=new WeakMap,zV=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&&!DT.get(r))&&!n){DT.set(e,!0);for(var i=[],o=WV(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]}}},KV=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};YV=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case cm:e.return=_P(e.value,e.length);break;case mP:return Ri([sa(e,{value:te(e.value,"@","@"+ee)})],n);case lm:if(e.length)return OV(e.props,function(i){switch(RV(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ri([sa(e,{props:[te(i,/:(read-\w+)/,":"+_c+"$1")]})],n);case"::placeholder":return Ri([sa(e,{props:[te(i,/:(plac\w+)/,":"+ee+"input-$1")]}),sa(e,{props:[te(i,/:(plac\w+)/,":"+_c+"$1")]}),sa(e,{props:[te(i,/:(plac\w+)/,it+"input-$1")]})],n)}return""})}},QV=[YV],XV=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(h){var g=h.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var n=e.stylisPlugins||QV,i={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(h){for(var g=h.getAttribute("data-emotion").split(" "),b=1;b<g.length;b++)i[g[b]]=!0;a.push(h)});var s,l=[zV,KV];{var c,d=[BV,JV(function(h){c.insert(h)})],u=GV(l.concat(n,d)),p=function(h){return Ri(FV(h),u)};s=function(h,g,b,y){c=b,p(h?h+"{"+g.styles+"}":g.styles),y&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new AV({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};e9={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},t9=/[A-Z]|^ms/g,r9=/_EMO_([^_]+?)_([^]*?)_EMO_/g,wP=function(e){return e.charCodeAt(1)===45},LT=function(e){return e!=null&&typeof e!="boolean"},hh=HV(function(e){return wP(e)?e:e.replace(t9,"-$&").toLowerCase()}),qT=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(r9,function(r,n,i){return nn={name:n,styles:i,next:nn},n})}return e9[e]!==1&&!wP(e)&&typeof t=="number"&&t!==0?t+"px":t};UT=/label:\s*([^\s;{]+)\s*(;|$)/g;i9=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},o9=function(e,t,r){i9(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)}};a9=function(e){var t=XV(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=mh(s,t.registered,void 0);return o9(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=mh(s,t.registered),d="animation-"+c.name;return MT(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=mh(s,t.registered);MT(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return FT(t.registered,r,s9(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:SP.bind(null,t.registered),merge:FT.bind(null,t.registered,r)}},s9=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},l9=a9({key:"css"}),ot=l9.css,BT=0,IP=[],Me=q,GT=Me.__b,JT=Me.__r,HT=Me.diffed,$T=Me.__c,VT=Me.unmount,WT=Me.__;Me.__b=function(e){kt=null,GT&&GT(e)},Me.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),WT&&WT(e,t)},Me.__r=function(e){JT&&JT(e),Uh=0;var t=(kt=e.__c).__H;t&&(gh===kt?(t.__h=[],kt.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(gc),t.__h.forEach(Mh),t.__h=[],Uh=0)),gh=kt},Me.diffed=function(e){HT&&HT(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(IP.push(t)!==1&&jT===Me.requestAnimationFrame||((jT=Me.requestAnimationFrame)||d9)(u9)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),gh=kt=null},Me.__c=function(e,t){t.some(function(r){try{r.__h.forEach(gc),r.__h=r.__h.filter(function(n){return!n.__||Mh(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Me.__e(n,r.__v)}}),$T&&$T(e,t)},Me.unmount=function(e){VT&&VT(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{gc(n)}catch(i){t=i}}),r.__H=void 0,t&&Me.__e(t,r.__v))};zT=typeof requestAnimationFrame=="function";f9=Symbol.for("preact-signals");le=void 0,da=void 0,on=0,Fh=0,Sc=0;Qe.prototype.brand=f9;Qe.prototype.h=function(){return!0};Qe.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)};Qe.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)}};Qe.prototype.subscribe=function(e){var t=this;return _a(function(){var r=t.value,n=le;le=void 0;try{e(r)}finally{le=n}})};Qe.prototype.valueOf=function(){return this.value};Qe.prototype.toString=function(){return this.value+""};Qe.prototype.toJSON=function(){return this.value};Qe.prototype.peek=function(){var e=le;le=void 0;try{return this.value}finally{le=e}};Object.defineProperty(Qe.prototype,"value",{get:function(){var e=AP(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(Fh>100)throw new Error("Cycle detected");this.v=e,this.i++,Sc++,on++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Rc()}}}});(qi.prototype=new Qe).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Sc))return!0;if(this.g=Sc,this.f|=1,this.i>0&&!CP(this))return this.f&=-2,!0;var e=le;try{kP(this),le=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 le=e,xP(this),this.f&=-2,!0};qi.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)}Qe.prototype.S.call(this,e)};qi.prototype.U=function(e){if(this.t!==void 0&&(Qe.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)}};qi.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(qi.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=AP(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});ba.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()}};ba.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,TP(this),kP(this),on++;var e=le;return le=this,h9.bind(this,e)};ba.prototype.N=function(){2&this.f||(this.f|=2,this.o=da,da=this)};ba.prototype.d=function(){this.f|=8,1&this.f||dm(this)};RP=[];_a(function(){PP=this.N})();OP.displayName="_st";Object.defineProperties(Qe.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:OP},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});Ui("__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 Qe&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});Ui("__r",function(e,t){Ic();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return _a(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),Ic(r),e(t)});Ui("__e",function(e,t,r,n){Ic(),e(t,r,n)});Ui("diffed",function(e,t){Ic();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=m9(r,l,d,i),o[l]=c):c.o(d,i)}}}e(t)});Ui("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)});Ui("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});St.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};g9=function(e){queueMicrotask(function(){queueMicrotask(e)})};Fe=ot`
623
623
  inset: 0;
624
624
  clear: none;
625
625
  float: none;
@@ -637,7 +637,7 @@ If multiple caches share the same key they might "fight" for each other's style
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
- `;y9=0;b9=ot`
640
+ `;b9=0;_9=ot`
641
641
  ${Fe}
642
642
  position: fixed;
643
643
  top: 0;
@@ -712,7 +712,7 @@ If multiple caches share the same key they might "fight" for each other's style
712
712
  }
713
713
  }
714
714
  }
715
- `,Dr=$(null),Fh=$(""),jh=$(""),hc=$(!1),_9=()=>{var e;(e=Dr.value)==null||e.call(Dr,!1)},w9=()=>{var e;(e=Dr.value)==null||e.call(Dr,!0)},S9=e=>v(void 0,null,function*(){let{title:t,content:r}=e;return Dr.value&&(Dr.value(!1),Ke(()=>{Dr.value=null,hc.value=!1})),Ke(()=>{Fh.value=t||"",jh.value=r||"",hc.value=!0}),new Promise(n=>{Dr.value=i=>{Ke(()=>{Dr.value=null,hc.value=!1,Fh.value="",jh.value=""}),n(i)}})}),I9=()=>hc.value?z("div",{className:b9,children:z("div",{className:"card-wrapper",children:[z("div",{className:"body",children:[z("div",{className:"title",children:Fh.value}),z("div",{className:"content",children:jh.value})]}),z("div",{className:"footer",children:[z("button",{onClick:_9,className:"cancel-btn",children:"Cancel"}),z("button",{onClick:w9,className:"confirm-btm",children:"Confirm"})]})]})}):null,E9=ot`
715
+ `,Dr=$(null),jh=$(""),Bh=$(""),vc=$(!1),w9=()=>{var e;(e=Dr.value)==null||e.call(Dr,!1)},S9=()=>{var e;(e=Dr.value)==null||e.call(Dr,!0)},I9=e=>v(void 0,null,function*(){let{title:t,content:r}=e;return Dr.value&&(Dr.value(!1),Ye(()=>{Dr.value=null,vc.value=!1})),Ye(()=>{jh.value=t||"",Bh.value=r||"",vc.value=!0}),new Promise(n=>{Dr.value=i=>{Ye(()=>{Dr.value=null,vc.value=!1,jh.value="",Bh.value=""}),n(i)}})}),E9=()=>vc.value?K("div",{className:_9,children:K("div",{className:"card-wrapper",children:[K("div",{className:"body",children:[K("div",{className:"title",children:jh.value}),K("div",{className:"content",children:Bh.value})]}),K("div",{className:"footer",children:[K("button",{onClick:w9,className:"cancel-btn",children:"Cancel"}),K("button",{onClick:S9,className:"confirm-btm",children:"Confirm"})]})]})}):null,A9=ot`
716
716
  ${Fe}
717
717
  position: relative;
718
718
  display: flex;
@@ -745,7 +745,7 @@ If multiple caches share the same key they might "fight" for each other's style
745
745
  cursor: not-allowed;
746
746
  }
747
747
  }
748
- `,A9=()=>{let e=$(!1),t=$(null);return{timerPaused:e,startTimestamp:t,startTimer:()=>{Ke(()=>{t.value=Date.now(),e.value=!1})}}},k9=e=>{let{countdown:t=0,mode:r,onClose:n,state:i}=e,{startTimestamp:o,timerPaused:a}=i,s=OT(t);v9(()=>{s.value>0?s.value-=1:Ke(()=>{a.value=!0,s.value=0})},a.value?null:1e3);let l=ca(()=>{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=ca(()=>{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=ca(()=>r==="interstitial"?!1:!l.value&&!c.value),u=()=>v(void 0,null,function*(){if(a.value=!0,!(yield S9({title:"Are you sure?",content:"You will lose your reward if you dismiss this Ad."}))){a.value=!1;return}n("dismiss"),Ke(()=>{a.value=!0,s.value=0,o.value=null})}),p=()=>{n("viewed"),Ke(()=>{a.value=!0,s.value=0,o.value=null})};return z("div",{className:E9,children:[s.value>0&&r!=="interstitial"&&z("div",{className:"timer",children:[s.value,"s"]}),z("button",{onClick:l.value?u:c.value?p:void 0,disabled:d.value,children:z("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:z("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"})})})]})},C9=()=>{let e=$(),t=$(),r=$(),n=$(),i=$(),o=$(!1),a=$(15),s=$(""),l=$("reward");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,visible:o,countdown:a,src:s,mode:l}},x9=ot`
748
+ `,C9=()=>{let e=$(!1),t=$(null);return{timerPaused:e,startTimestamp:t,startTimer:()=>{Ye(()=>{t.value=Date.now(),e.value=!1})}}},k9=e=>{let{countdown:t=0,mode:r,onClose:n,state:i}=e,{startTimestamp:o,timerPaused:a}=i,s=NP(t);y9(()=>{s.value>0?s.value-=1:Ye(()=>{a.value=!0,s.value=0})},a.value?null:1e3);let l=pa(()=>{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=pa(()=>{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=pa(()=>r==="interstitial"?!1:!l.value&&!c.value),u=()=>v(void 0,null,function*(){if(a.value=!0,!(yield I9({title:"Are you sure?",content:"You will lose your reward if you dismiss this Ad."}))){a.value=!1;return}n("dismiss"),Ye(()=>{a.value=!0,s.value=0,o.value=null})}),p=()=>{n("viewed"),Ye(()=>{a.value=!0,s.value=0,o.value=null})};return K("div",{className:A9,children:[s.value>0&&r!=="interstitial"&&K("div",{className:"timer",children:[s.value,"s"]}),K("button",{onClick:l.value?u:c.value?p:void 0,disabled:d.value,children:K("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:K("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"})})})]})},x9=()=>{let e=$(),t=$(),r=$(),n=$(),i=$(),o=$(!1),a=$(15),s=$(""),l=$("reward");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,visible:o,countdown:a,src:s,mode:l}},T9=ot`
749
749
  ${Fe}
750
750
  position: fixed;
751
751
  z-index: 2147483647;
@@ -764,14 +764,14 @@ If multiple caches share the same key they might "fight" for each other's style
764
764
  width: 100%;
765
765
  height: 100%;
766
766
  }
767
- `,P9=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=Io(()=>A9(),[]),[p,f]=yr(!1),h=b=>{var y,_,S,E;s.value=!1,b==="dismiss"?(y=n.value)==null||y.call(n):b==="viewed"&&((_=i.value)==null||_.call(i)),(S=r.value)==null||S.call(r),(E=o.value)==null||E.call(o),f(!1)},g=Vr(()=>{var b;p||(f(!0),(b=a.value)==null||b.call(a))},[p]);return yn(()=>{p&&(d.value==="reward"||d.value==="rewarded_insterstitial")&&setTimeout(()=>{u.startTimer()},100)},[p,d.value]),s.value?z("div",{className:x9,children:[z(k9,{mode:d.value,onClose:h,countdown:l.value,state:u}),s.value&&z("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"}),z(I9,{})]}):null};Bh=class{constructor(t,r){Tr(this,"name","OKSPIN"),Tr(this,"initialized",!1),Tr(this,"initCompleter",null),Tr(this,"context",void 0),Tr(this,"initParams",void 0),Tr(this,"adsOverlay",null),Tr(this,"adsIsShowing",!1),Tr(this,"lastUnDisplayedAdBreak",null),Tr(this,"state",C9()),this.context=t,this.initParams=r}init(){return v(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg"),Ss(z(P9,{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 v(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"})};Ke(()=>{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 y;this.adsIsShowing=!1,(y=t.afterAd)==null||y.call(t)},p={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},f=()=>{var y;this.adsIsShowing=!1,p.breakStatus="dismissed",(y=t.adDismissed)==null||y.call(t)},h=()=>{var y;this.adsIsShowing=!1,p.breakStatus="viewed",(y=t.adViewed)==null||y.call(t)},g=()=>{var y;this.adsIsShowing=!1,(y=t.adBreakDone)==null||y.call(t,p)};Ke(()=>{this.state.afterAd.value=u,this.state.adDismissed.value=f,this.state.adViewed.value=h,this.state.adBreakDone.value=g});let b=()=>{var y;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(y=t.adBreakDone)==null||y.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,Ke(()=>{var _;this.state.countdown.value=(_=r.params.countdown)!=null?_: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,b);break}}})}},O9=()=>{let e=$(null),t=$(null),r=$(null),n=$(null),i=$(null),o=$(null),a=$(!1),s=$(null);return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,adError:o,visible:a,payload:s}},N9=ot`
767
+ `,P9=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=Co(()=>C9(),[]),[p,f]=yr(!1),h=b=>{var y,_,I,E;s.value=!1,b==="dismiss"?(y=n.value)==null||y.call(n):b==="viewed"&&((_=i.value)==null||_.call(i)),(I=r.value)==null||I.call(r),(E=o.value)==null||E.call(o),f(!1)},g=Vr(()=>{var b;p||(f(!0),(b=a.value)==null||b.call(a))},[p]);return yn(()=>{p&&(d.value==="reward"||d.value==="rewarded_insterstitial")&&setTimeout(()=>{u.startTimer()},100)},[p,d.value]),s.value?K("div",{className:T9,children:[K(k9,{mode:d.value,onClose:h,countdown:l.value,state:u}),s.value&&K("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"}),K(E9,{})]}):null};Gh=class{constructor(t,r){Pr(this,"name","OKSPIN"),Pr(this,"initialized",!1),Pr(this,"initCompleter",null),Pr(this,"context",void 0),Pr(this,"initParams",void 0),Pr(this,"adsOverlay",null),Pr(this,"adsIsShowing",!1),Pr(this,"lastUnDisplayedAdBreak",null),Pr(this,"state",x9()),this.context=t,this.initParams=r}init(){return v(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg"),As(K(P9,{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 v(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"})};Ye(()=>{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 y;this.adsIsShowing=!1,(y=t.afterAd)==null||y.call(t)},p={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},f=()=>{var y;this.adsIsShowing=!1,p.breakStatus="dismissed",(y=t.adDismissed)==null||y.call(t)},h=()=>{var y;this.adsIsShowing=!1,p.breakStatus="viewed",(y=t.adViewed)==null||y.call(t)},g=()=>{var y;this.adsIsShowing=!1,(y=t.adBreakDone)==null||y.call(t,p)};Ye(()=>{this.state.afterAd.value=u,this.state.adDismissed.value=f,this.state.adViewed.value=h,this.state.adBreakDone.value=g});let b=()=>{var y;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(y=t.adBreakDone)==null||y.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,Ye(()=>{var _;this.state.countdown.value=(_=r.params.countdown)!=null?_: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,b);break}}})}},N9=()=>{let e=$(null),t=$(null),r=$(null),n=$(null),i=$(null),o=$(null),a=$(!1),s=$(null);return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,adError:o,visible:a,payload:s}},D9=ot`
768
768
  ${Fe}
769
769
  position: fixed;
770
770
  inset: 0;
771
771
  z-index: 2147483647;
772
772
  display: flex;
773
773
  background: #000000;
774
- `,D9=ot`
774
+ `,L9=ot`
775
775
  ${Fe}
776
776
  position: relative;
777
777
  width: 100%;
@@ -779,7 +779,7 @@ If multiple caches share the same key they might "fight" for each other's style
779
779
  display: flex;
780
780
  flex-direction: column;
781
781
  color: #f7f9fc;
782
- `,L9=ot`
782
+ `,q9=ot`
783
783
  position: absolute;
784
784
  top: 24px;
785
785
  left: 24px;
@@ -790,15 +790,15 @@ If multiple caches share the same key they might "fight" for each other's style
790
790
  border-radius: 999px;
791
791
  background: rgba(0, 0, 0, 0.65);
792
792
  border: 1px solid rgba(255, 255, 255, 0.08);
793
- `,q9=ot`
793
+ `,U9=ot`
794
794
  font-size: 11px;
795
795
  letter-spacing: 0.08em;
796
796
  text-transform: uppercase;
797
797
  color: #c7d4ef;
798
- `,U9=ot`
798
+ `,M9=ot`
799
799
  font-size: 14px;
800
800
  font-weight: 500;
801
- `,M9=ot`
801
+ `,F9=ot`
802
802
  ${Fe}
803
803
  flex: 1;
804
804
  background: #050505;
@@ -806,7 +806,7 @@ If multiple caches share the same key they might "fight" for each other's style
806
806
  align-items: center;
807
807
  justify-content: center;
808
808
  padding: 0;
809
- `,zP=ot`
809
+ `,KT=ot`
810
810
  width: 100%;
811
811
  height: 100%;
812
812
  border: 2px dashed rgba(255, 255, 255, 0.08);
@@ -815,13 +815,13 @@ If multiple caches share the same key they might "fight" for each other's style
815
815
  justify-content: center;
816
816
  color: #6e7da1;
817
817
  font-size: 14px;
818
- `,F9=ot`
818
+ `,j9=ot`
819
819
  position: absolute;
820
820
  bottom: 32px;
821
821
  right: 32px;
822
822
  display: flex;
823
823
  gap: 12px;
824
- `,j9=ot`
824
+ `,B9=ot`
825
825
  min-width: 160px;
826
826
  min-height: 48px;
827
827
  border-radius: 999px;
@@ -837,7 +837,7 @@ If multiple caches share the same key they might "fight" for each other's style
837
837
  opacity: 0.4;
838
838
  cursor: not-allowed;
839
839
  }
840
- `,B9=ot`
840
+ `,G9=ot`
841
841
  min-width: 120px;
842
842
  min-height: 44px;
843
843
  border-radius: 999px;
@@ -847,7 +847,7 @@ If multiple caches share the same key they might "fight" for each other's style
847
847
  font-size: 14px;
848
848
  font-weight: 500;
849
849
  cursor: pointer;
850
- `,G9=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adError:s,visible:l,payload:c}=t,[d,u]=yr(!1),[p,f]=yr(0),[h,g]=yr(!1),[b,y]=yr(!1),[_,S]=yr("Loading next content..."),E=ni(null),P=c.value,C=Vr(N=>{var R,U,H,te;u(!1),l.value=!1,N==="dismiss"?(R=n.value)==null||R.call(n):(U=i.value)==null||U.call(i),(H=r.value)==null||H.call(r),(te=o.value)==null||te.call(o)},[l,n,i,r,o]),k=Vr(()=>{var N;u(!1),l.value=!1,(N=s.value)==null||N.call(s)},[l,s]);if(yn(()=>{var N;if(!l.value||!P){f(0),g(!1),y(!1),S("Loading next content...");return}let R=P.mode==="reward"?15:0,U=Math.max(Math.floor((N=P.countdown)!=null?N:R),0);if(f(U),y(P.mode==="reward"?U===0:!0),g(P.mode==="interstitial"?U===0:!1),U===0)return;let H=U,te=window.setInterval(()=>{H-=1,f(Math.max(H,0)),H<=0&&(window.clearInterval(te),P.mode==="reward"?y(!0):g(!0))},1e3);return()=>{window.clearInterval(te)}},[l.value,P,C]),yn(()=>{var N;if(!l.value||!P)return;let R=E.current;if(!R)return;if(R.innerHTML="",S("Loading next content..."),u(!1),P.testMode){let te=document.createElement("div");te.className=zP,te.innerText="Preview slot placeholder",R.appendChild(te),u(!0),(N=a.value)==null||N.call(a);return}if(typeof window=="undefined"){k();return}let U=document.createElement("ins");U.className="adsbygoogle",U.style.display="block",U.style.width="100%",U.style.height="100%",U.setAttribute("data-ad-client",P.clientId),U.setAttribute("data-ad-slot",P.unitId),U.setAttribute("data-ad-format","auto"),U.setAttribute("data-full-width-responsive","true"),P.channelId&&U.setAttribute("data-ad-channel",P.channelId),R.appendChild(U);let H=new MutationObserver(()=>{var te;let Ut=U.getAttribute("data-ad-status");Ut==="filled"?(u(!0),S(""),(te=a.value)==null||te.call(a),H.disconnect()):Ut==="unfilled"&&(S("Slot currently unavailable."),u(!1),H.disconnect())});H.observe(U,{attributes:!0,attributeFilter:["data-ad-status"]});try{let te=window;te.adsbygoogle=te.adsbygoogle||[],te.adsbygoogle.push({})}catch(te){H.disconnect(),k()}return()=>{H.disconnect(),R.innerHTML=""}},[l.value,P,a,k]),!l.value||!P)return null;let G=P.mode==="reward"?"Next content unlocking":"Content paused",ce=p>0?`Content resumes in ${p}s`:"Content ready";return z("div",{className:N9,children:z("div",{className:D9,children:[z("div",{className:L9,children:[z("div",{className:q9,children:G}),z("div",{className:U9,children:ce})]}),z("div",{className:M9,ref:E,children:!d&&z("div",{className:zP,children:_})}),z("div",{className:F9,children:P.mode==="reward"?z("button",{className:j9,type:"button",onClick:()=>C("viewed"),disabled:!b,children:b?"Continue":`Continue in ${p}s`}):h&&z("button",{className:B9,type:"button",onClick:()=>C("viewed"),children:"Continue"})})]})})};Gh=class{constructor(t,r){if(lt(this,"name","ADSENSE_BANNER_AS_AFG"),lt(this,"initialized",!1),lt(this,"initCompleter",null),lt(this,"context",void 0),lt(this,"contextInfo",void 0),lt(this,"initParams",void 0),lt(this,"defaultCountdown",5),lt(this,"adsOverlay",null),lt(this,"adsIsShowing",!1),lt(this,"lastUnDisplayedAdBreak",null),lt(this,"requestCounter",0),lt(this,"scriptPromise",null),lt(this,"scriptReady",!1),lt(this,"scriptFailed",!1),lt(this,"state",O9()),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,typeof window!="undefined"){let n=window;n.adsbygoogle=n.adsbygoogle||[]}}init(){return v(this,null,function*(){var t;if(typeof document!="undefined"){this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg-banner-as-afg"),Ss(z(G9,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay);try{yield this.ensureAdSenseScript()}catch(r){this.scriptFailed=!0,console.warn("[BannerAsAFG] Failed to load Google AdSense script",r)}this.initialized=!0,(t=this.initCompleter)==null||t.call(this)}})}ensureAdSenseScript(){var t;if(typeof document=="undefined")return Promise.resolve();if(this.scriptPromise)return this.scriptPromise;if(document.getElementById("google-adsense"))return this.scriptReady=!0,Promise.resolve();if(!this.initParams.clientId)return this.scriptFailed=!0,Promise.reject(new Error("BannerAsAFG requires a Google AdSense clientId."));let r=(t=this.contextInfo.testAdsMode)!=null?t:!1;return this.scriptPromise=new Promise((n,i)=>{let o=document.createElement("script");o.id="google-adsense",o.async=!0,o.crossOrigin="anonymous",o.src=`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${this.initParams.clientId}`,r&&o.setAttribute("data-adbreak-test","on"),this.initParams.channelId&&o.setAttribute("data-ad-channel",this.initParams.channelId),o.onload=()=>{this.scriptReady=!0,n()},o.onerror=()=>{this.scriptFailed=!0,i(new Error("Failed to fetch Google AdSense script."))},document.head.appendChild(o)}),this.scriptPromise}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)}}resolveOverlayConfig(t){var r,n;let i=(n=(r=t==null?void 0:t.params)==null?void 0:r.countdown)!=null?n:this.defaultCountdown;return{rewardUnitId:this.initParams.rewardUnitId,interstitialUnitId:this.initParams.interstitialUnitId,channelId:this.initParams.channelId,countdown:Math.max(Math.floor(i),0)}}canDisplay(t){return!!t&&!!this.initParams.clientId&&!!this.adsOverlay&&this.initialized&&!this.scriptFailed&&this.scriptReady}showBannerOverlay(t,r){var n,i;let o=Math.max(Math.floor((n=r.countdown)!=null?n:t==="reward"?15:0),0),a={requestId:++this.requestCounter,clientId:this.initParams.clientId,unitId:t==="reward"?this.initParams.rewardUnitId:this.initParams.interstitialUnitId,channelId:r.channelId,countdown:o,mode:t,testMode:(i=this.contextInfo.testAdsMode)!=null?i:!1};this.state.payload.value=a,this.state.visible.value=!0}adBreak(t,r){var n,i,o,a,s,l,c,d,u;let p=t.type==="preroll"?"":t.name,f=t.type==="reward"?"reward":"interstitial";if(!this.initialized||!this.adsOverlay){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:p,breakFormat:f,breakStatus:"notReady"});return}if(this.adsIsShowing){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:p,breakFormat:f,breakStatus:"frequencyCapped"});return}let h=this.resolveOverlayConfig(r);if(!this.canDisplay(h.rewardUnitId)){(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:p,breakFormat:f,breakStatus:"notReady"});return}switch(t.type){case"preroll":{(a=t.adBreakDone)==null||a.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(s=t.beforeAd)==null||s.call(t);let g={breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"},b=()=>{var S;this.adsIsShowing=!1,(S=t.afterAd)==null||S.call(t)},y=()=>{var S;this.adsIsShowing=!1,(S=t.adBreakDone)==null||S.call(t,g)},_=()=>{var S,E;this.adsIsShowing=!1,g.breakStatus="noAdPreloaded",(S=t.afterAd)==null||S.call(t),(E=t.adBreakDone)==null||E.call(t,g)};Ke(()=>{this.adsIsShowing=!0,this.state.afterAd.value=b,this.state.adBreakDone.value=y,this.state.adDismissed.value=null,this.state.adViewed.value=null,this.state.adError.value=_,this.showBannerOverlay("interstitial",h)});break}case"reward":{this.lastUnDisplayedAdBreak&&((c=(l=this.lastUnDisplayedAdBreak).adBreakDone)==null||c.call(l,{breakType:this.lastUnDisplayedAdBreak.type,breakName:this.lastUnDisplayedAdBreak.type==="preroll"?"":this.lastUnDisplayedAdBreak.name,breakFormat:this.lastUnDisplayedAdBreak.type==="reward"?"reward":"interstitial",breakStatus:"ignored"}),this.lastUnDisplayedAdBreak=null),(d=t.beforeAd)==null||d.call(t);let g={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},b=()=>{var C;this.adsIsShowing=!1,(C=t.afterAd)==null||C.call(t)},y=()=>{var C;this.adsIsShowing=!1,g.breakStatus="dismissed",(C=t.adDismissed)==null||C.call(t)},_=()=>{var C;this.adsIsShowing=!1,g.breakStatus="viewed",(C=t.adViewed)==null||C.call(t)},S=()=>{var C;this.adsIsShowing=!1,(C=t.adBreakDone)==null||C.call(t,g)},E=()=>{var C,k;this.adsIsShowing=!1,g.breakStatus="noAdPreloaded",(C=t.afterAd)==null||C.call(t),(k=t.adBreakDone)==null||k.call(t,g)};Ke(()=>{this.state.afterAd.value=b,this.state.adDismissed.value=y,this.state.adViewed.value=_,this.state.adBreakDone.value=S,this.state.adError.value=E});let P=()=>{var C,k;if(!this.canDisplay(h.rewardUnitId)){this.lastUnDisplayedAdBreak=null,(C=t.afterAd)==null||C.call(t),(k=t.adBreakDone)==null||k.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.lastUnDisplayedAdBreak=null,this.adsIsShowing=!0,Ke(()=>{this.showBannerOverlay("reward",h)})};this.lastUnDisplayedAdBreak=t,(u=t.beforeReward)==null||u.call(t,P);break}}}},Pi={};window.addEventListener("message",e=>{e.origin!=="https://ads.appsrockets.com"&&e.origin!=="https://stg-ads.appsrockets.com"||Pi[e.data.type]&&Pi[e.data.type].forEach(t=>{t(e.data.data)})});ki=(e,t)=>{yn(()=>(Pi[e]||(Pi[e]=new Set),Pi[e].add(t),()=>{Pi[e].delete(t)}),[e,t])},$9=()=>{let e=$(),t=$(),r=$(),n=$(),i=$(),o=$(),a=$(),s=$(!1),l=$("");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,adLinkClicked:o,adError:a,visible:s,src:l}},V9=ot`
850
+ `,J9=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adError:s,visible:l,payload:c}=t,[d,u]=yr(!1),[p,f]=yr(0),[h,g]=yr(!1),[b,y]=yr(!1),[_,I]=yr("Loading next content..."),E=ii(null),T=c.value,k=Vr(N=>{var R,D,J,re;u(!1),l.value=!1,N==="dismiss"?(R=n.value)==null||R.call(n):(D=i.value)==null||D.call(i),(J=r.value)==null||J.call(r),(re=o.value)==null||re.call(o)},[l,n,i,r,o]),C=Vr(()=>{var N;u(!1),l.value=!1,(N=s.value)==null||N.call(s)},[l,s]);if(yn(()=>{var N;if(!l.value||!T){f(0),g(!1),y(!1),I("Loading next content...");return}let R=T.mode==="reward"?15:0,D=Math.max(Math.floor((N=T.countdown)!=null?N:R),0);if(f(D),y(T.mode==="reward"?D===0:!0),g(T.mode==="interstitial"?D===0:!1),D===0)return;let J=D,re=window.setInterval(()=>{J-=1,f(Math.max(J,0)),J<=0&&(window.clearInterval(re),T.mode==="reward"?y(!0):g(!0))},1e3);return()=>{window.clearInterval(re)}},[l.value,T,k]),yn(()=>{var N;if(!l.value||!T)return;let R=E.current;if(!R)return;if(R.innerHTML="",I("Loading next content..."),u(!1),T.testMode){let re=document.createElement("div");re.className=KT,re.innerText="Preview slot placeholder",R.appendChild(re),u(!0),(N=a.value)==null||N.call(a);return}if(typeof window=="undefined"){C();return}let D=document.createElement("ins");D.className="adsbygoogle",D.style.display="block",D.style.width="100%",D.style.height="100%",D.setAttribute("data-ad-client",T.clientId),D.setAttribute("data-ad-slot",T.unitId),D.setAttribute("data-ad-format","auto"),D.setAttribute("data-full-width-responsive","true"),T.channelId&&D.setAttribute("data-ad-channel",T.channelId),R.appendChild(D);let J=new MutationObserver(()=>{var re;let Mt=D.getAttribute("data-ad-status");Mt==="filled"?(u(!0),I(""),(re=a.value)==null||re.call(a),J.disconnect()):Mt==="unfilled"&&(I("Slot currently unavailable."),u(!1),J.disconnect())});J.observe(D,{attributes:!0,attributeFilter:["data-ad-status"]});try{let re=window;re.adsbygoogle=re.adsbygoogle||[],re.adsbygoogle.push({})}catch(re){J.disconnect(),C()}return()=>{J.disconnect(),R.innerHTML=""}},[l.value,T,a,C]),!l.value||!T)return null;let G=T.mode==="reward"?"Next content unlocking":"Content paused",ce=p>0?`Content resumes in ${p}s`:"Content ready";return K("div",{className:D9,children:K("div",{className:L9,children:[K("div",{className:q9,children:[K("div",{className:U9,children:G}),K("div",{className:M9,children:ce})]}),K("div",{className:F9,ref:E,children:!d&&K("div",{className:KT,children:_})}),K("div",{className:j9,children:T.mode==="reward"?K("button",{className:B9,type:"button",onClick:()=>k("viewed"),disabled:!b,children:b?"Continue":`Continue in ${p}s`}):h&&K("button",{className:G9,type:"button",onClick:()=>k("viewed"),children:"Continue"})})]})})};Jh=class{constructor(t,r){if(lt(this,"name","ADSENSE_BANNER_AS_AFG"),lt(this,"initialized",!1),lt(this,"initCompleter",null),lt(this,"context",void 0),lt(this,"contextInfo",void 0),lt(this,"initParams",void 0),lt(this,"defaultCountdown",5),lt(this,"adsOverlay",null),lt(this,"adsIsShowing",!1),lt(this,"lastUnDisplayedAdBreak",null),lt(this,"requestCounter",0),lt(this,"scriptPromise",null),lt(this,"scriptReady",!1),lt(this,"scriptFailed",!1),lt(this,"state",N9()),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,typeof window!="undefined"){let n=window;n.adsbygoogle=n.adsbygoogle||[]}}init(){return v(this,null,function*(){var t;if(typeof document!="undefined"){this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg-banner-as-afg"),As(K(J9,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay);try{yield this.ensureAdSenseScript()}catch(r){this.scriptFailed=!0,console.warn("[BannerAsAFG] Failed to load Google AdSense script",r)}this.initialized=!0,(t=this.initCompleter)==null||t.call(this)}})}ensureAdSenseScript(){var t;if(typeof document=="undefined")return Promise.resolve();if(this.scriptPromise)return this.scriptPromise;if(document.getElementById("google-adsense"))return this.scriptReady=!0,Promise.resolve();if(!this.initParams.clientId)return this.scriptFailed=!0,Promise.reject(new Error("BannerAsAFG requires a Google AdSense clientId."));let r=(t=this.contextInfo.testAdsMode)!=null?t:!1;return this.scriptPromise=new Promise((n,i)=>{let o=document.createElement("script");o.id="google-adsense",o.async=!0,o.crossOrigin="anonymous",o.src=`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${this.initParams.clientId}`,r&&o.setAttribute("data-adbreak-test","on"),this.initParams.channelId&&o.setAttribute("data-ad-channel",this.initParams.channelId),o.onload=()=>{this.scriptReady=!0,n()},o.onerror=()=>{this.scriptFailed=!0,i(new Error("Failed to fetch Google AdSense script."))},document.head.appendChild(o)}),this.scriptPromise}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)}}resolveOverlayConfig(t){var r,n;let i=(n=(r=t==null?void 0:t.params)==null?void 0:r.countdown)!=null?n:this.defaultCountdown;return{rewardUnitId:this.initParams.rewardUnitId,interstitialUnitId:this.initParams.interstitialUnitId,channelId:this.initParams.channelId,countdown:Math.max(Math.floor(i),0)}}canDisplay(t){return!!t&&!!this.initParams.clientId&&!!this.adsOverlay&&this.initialized&&!this.scriptFailed&&this.scriptReady}showBannerOverlay(t,r){var n,i;let o=Math.max(Math.floor((n=r.countdown)!=null?n:t==="reward"?15:0),0),a={requestId:++this.requestCounter,clientId:this.initParams.clientId,unitId:t==="reward"?this.initParams.rewardUnitId:this.initParams.interstitialUnitId,channelId:r.channelId,countdown:o,mode:t,testMode:(i=this.contextInfo.testAdsMode)!=null?i:!1};this.state.payload.value=a,this.state.visible.value=!0}adBreak(t,r){var n,i,o,a,s,l,c,d,u;let p=t.type==="preroll"?"":t.name,f=t.type==="reward"?"reward":"interstitial";if(!this.initialized||!this.adsOverlay){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:p,breakFormat:f,breakStatus:"notReady"});return}if(this.adsIsShowing){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:p,breakFormat:f,breakStatus:"frequencyCapped"});return}let h=this.resolveOverlayConfig(r);if(!this.canDisplay(h.rewardUnitId)){(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:p,breakFormat:f,breakStatus:"notReady"});return}switch(t.type){case"preroll":{(a=t.adBreakDone)==null||a.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(s=t.beforeAd)==null||s.call(t);let g={breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"},b=()=>{var I;this.adsIsShowing=!1,(I=t.afterAd)==null||I.call(t)},y=()=>{var I;this.adsIsShowing=!1,(I=t.adBreakDone)==null||I.call(t,g)},_=()=>{var I,E;this.adsIsShowing=!1,g.breakStatus="noAdPreloaded",(I=t.afterAd)==null||I.call(t),(E=t.adBreakDone)==null||E.call(t,g)};Ye(()=>{this.adsIsShowing=!0,this.state.afterAd.value=b,this.state.adBreakDone.value=y,this.state.adDismissed.value=null,this.state.adViewed.value=null,this.state.adError.value=_,this.showBannerOverlay("interstitial",h)});break}case"reward":{this.lastUnDisplayedAdBreak&&((c=(l=this.lastUnDisplayedAdBreak).adBreakDone)==null||c.call(l,{breakType:this.lastUnDisplayedAdBreak.type,breakName:this.lastUnDisplayedAdBreak.type==="preroll"?"":this.lastUnDisplayedAdBreak.name,breakFormat:this.lastUnDisplayedAdBreak.type==="reward"?"reward":"interstitial",breakStatus:"ignored"}),this.lastUnDisplayedAdBreak=null),(d=t.beforeAd)==null||d.call(t);let g={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},b=()=>{var k;this.adsIsShowing=!1,(k=t.afterAd)==null||k.call(t)},y=()=>{var k;this.adsIsShowing=!1,g.breakStatus="dismissed",(k=t.adDismissed)==null||k.call(t)},_=()=>{var k;this.adsIsShowing=!1,g.breakStatus="viewed",(k=t.adViewed)==null||k.call(t)},I=()=>{var k;this.adsIsShowing=!1,(k=t.adBreakDone)==null||k.call(t,g)},E=()=>{var k,C;this.adsIsShowing=!1,g.breakStatus="noAdPreloaded",(k=t.afterAd)==null||k.call(t),(C=t.adBreakDone)==null||C.call(t,g)};Ye(()=>{this.state.afterAd.value=b,this.state.adDismissed.value=y,this.state.adViewed.value=_,this.state.adBreakDone.value=I,this.state.adError.value=E});let T=()=>{var k,C;if(!this.canDisplay(h.rewardUnitId)){this.lastUnDisplayedAdBreak=null,(k=t.afterAd)==null||k.call(t),(C=t.adBreakDone)==null||C.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.lastUnDisplayedAdBreak=null,this.adsIsShowing=!0,Ye(()=>{this.showBannerOverlay("reward",h)})};this.lastUnDisplayedAdBreak=t,(u=t.beforeReward)==null||u.call(t,T);break}}}},Pi={};window.addEventListener("message",e=>{e.origin!=="https://ads.appsrockets.com"&&e.origin!=="https://stg-ads.appsrockets.com"||Pi[e.data.type]&&Pi[e.data.type].forEach(t=>{t(e.data.data)})});ki=(e,t)=>{yn(()=>(Pi[e]||(Pi[e]=new Set),Pi[e].add(t),()=>{Pi[e].delete(t)}),[e,t])},V9=()=>{let e=$(),t=$(),r=$(),n=$(),i=$(),o=$(),a=$(),s=$(!1),l=$("");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,adLinkClicked:o,adError:a,visible:s,src:l}},W9=ot`
851
851
  ${Fe}
852
852
  position: fixed;
853
853
  z-index: 2147483647;
@@ -866,7 +866,7 @@ If multiple caches share the same key they might "fight" for each other's style
866
866
  width: 100%;
867
867
  height: 100%;
868
868
  }
869
- `,W9=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adLinkClicked:s,visible:l,src:c}=t,[d,u]=yr(!1),p=h=>{var g,b,y,_;u(!1),l.value=!1,h==="dismiss"?(g=n.value)==null||g.call(n):h==="viewed"&&((b=i.value)==null||b.call(i)),(y=r.value)==null||y.call(r),(_=o.value)==null||_.call(o)},f=()=>{var h;(h=a.value)==null||h.call(a)};return ki("appsrockets_ad_dismissed",()=>p("dismiss")),ki("appsrockets_ad_rewarded",()=>p("viewed")),ki("appsrockets_ad_completed",()=>p("viewed")),ki("appsrockets_ad_skipped",()=>p("viewed")),ki("appsrockets_ad_clicked",h=>{var g;return(g=s.value)==null?void 0:g.call(s,h)}),ki("appsrockets_ad_loaded",()=>u(!0)),l.value?z("div",{className:V9,style:{display:d?"flex":"none"},children:l.value&&z("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};Jh=class{constructor(t,r){Rr(this,"name","APPSROCKETS"),Rr(this,"initialized",!1),Rr(this,"initCompleter",null),Rr(this,"context",void 0),Rr(this,"adsOverlay",null),Rr(this,"adsIsShowing",!1),Rr(this,"lastUnDisplayedAdBreak",null),Rr(this,"state",$9()),Rr(this,"processUrl",(n,i)=>{var o;let a=this.context.getContextInfo(),s=new URL(n),l=new URLSearchParams(s.search);return l.has("joliSource")||l.set("joliSource",a.joliSource),l.get("osType")||l.set("osType",a.osType),l.get("runtimeType")||l.set("runtimeType",a.runtimeType),l.get("mode")||l.set("mode","AFG"),l.get("deviceId")||l.set("deviceId",a.deviceId),l.get("statusBarHeight")||l.set("statusBarHeight",((o=this.context.getWindowInfo().statusBarHeight)!=null?o:0).toString()),l.get("adsType")||l.set("adsType",i),s.search=l.toString(),s.toString()}),this.context=t}init(){return v(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg-appsrockets"),Ss(z(W9,{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=f=>{var h,g;(g=(h=this.context).handleLinkClicked)==null||g.call(h,f)},p=t.type==="reward"?"REWARD":"INTERSTITIAL";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 f=()=>{var b;this.adsIsShowing=!1,(b=t.afterAd)==null||b.call(t)},h=()=>{var b;this.adsIsShowing=!1,(b=t.adBreakDone)==null||b.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})},g=()=>{var b;this.adsIsShowing=!1,(b=t.adBreakDone)==null||b.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"noAdPreloaded"})};Ke(()=>{this.adsIsShowing=!0,this.state.afterAd.value=f,this.state.adBreakDone.value=h,this.state.src.value=this.processUrl(r.params.url,p),this.state.adLinkClicked.value=u,this.state.adError.value=g,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 f=()=>{var E;this.adsIsShowing=!1,(E=t.afterAd)==null||E.call(t)},h={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},g=()=>{var E;this.adsIsShowing=!1,h.breakStatus="dismissed",(E=t.adDismissed)==null||E.call(t)},b=()=>{var E;this.adsIsShowing=!1,h.breakStatus="viewed",(E=t.adViewed)==null||E.call(t)},y=()=>{var E;this.adsIsShowing=!1,(E=t.adBreakDone)==null||E.call(t,h)},_=()=>{this.adsIsShowing=!1,h.breakStatus="noAdPreloaded"};Ke(()=>{this.state.afterAd.value=f,this.state.adDismissed.value=g,this.state.adViewed.value=b,this.state.adBreakDone.value=y,this.state.adLinkClicked.value=u,this.state.adError.value=_});let S=()=>{var E;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(E=t.adBreakDone)==null||E.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,Ke(()=>{this.state.src.value=this.processUrl(r.params.url,p),this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,S);break}}}},DT=()=>{window.googletag=window.googletag||{cmd:[]},window.googletag.pubadsReady||window.googletag.cmd.push(()=>{window.googletag.enableServices()})};Hh=class{constructor(t,r,n){nt(this,"adUnit",void 0),nt(this,"project",void 0),nt(this,"keyValue",void 0),nt(this,"adsContext",null),nt(this,"rewardedSlot",null),nt(this,"rewardedPayload",null),nt(this,"readyEvent",null),nt(this,"withCommand",function(){googletag.cmd.push(...arguments)}),nt(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))}),nt(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),i!=="ignored"&&(this.adsContext=null)}),nt(this,"reinit",i=>{this.destroy(i),this.init()}),nt(this,"handleSlotReady",i=>{i.slot===this.rewardedSlot&&(this.readyEvent=i)}),nt(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)})}}),nt(this,"handleSlotGranted",i=>{this.adsContext&&i.slot===this.rewardedSlot&&(this.rewardedPayload=i.payload)}),nt(this,"handleSlotRenderEnded",i=>{i.slot===this.rewardedSlot&&i.isEmpty&&this.adsContext&&this.withCommand(()=>{this.reinit("frequencyCapped")})}),nt(this,"requestAds",i=>{this.withCommand(()=>{if(this.adsContext){this.destroy("ignored");return}if(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,DT(),this.withCommand(()=>{this.init()})}};$h=class{constructor(t,r,n){var i=this;ht(this,"adUnit",void 0),ht(this,"project",void 0),ht(this,"keyValue",void 0),ht(this,"adsContext",null),ht(this,"gamingInterstitialSlot",null),ht(this,"readyEvent",null),ht(this,"isRetrying",!1),ht(this,"withCommand",function(){googletag.cmd.push(...arguments)}),ht(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))}),ht(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),o!=="ignored"&&(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)}),ht(this,"reinit",function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;i.destroy(o,a),i.init()}),ht(this,"handleSlotReady",o=>{this.gamingInterstitialSlot===o.slot&&(this.readyEvent=o)}),ht(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")}))}),ht(this,"requestAds",o=>{this.withCommand(()=>{var a,s,l;if(this.adsContext){this.destroy("ignored");return}if(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)))})}),DT(),this.adUnit=t,this.project=r,this.keyValue=n,this.withCommand(()=>{this.init()})}};Vh=class{constructor(t,r){Dn(this,"name","GOOGLE_GPT"),Dn(this,"context",void 0),Dn(this,"contextInfo",void 0),Dn(this,"initParams",void 0),Dn(this,"rewardAdManager",void 0),Dn(this,"interstitialManager",void 0),Dn(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 v(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 Hh(t,n,this.initParams.keyValue)),r&&(this.interstitialManager=new $h(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}}}};Wh=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";vh(this,"context",void 0),vh(this,"placement","GAME"),vh(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:dT.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:cT.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:uT.WebSDK};return nV(i)}};wc=class{constructor(t){ct(this,"context",void 0),ct(this,"adsTrackSerializer",void 0),ct(this,"contextInfo",void 0),this.context=t,this.contextInfo=t.getContextInfo(),this.adsTrackSerializer=new Wh(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}}},zh=class{constructor(t,r){var n=this;ct(this,"context",void 0),ct(this,"contextInfo",void 0),ct(this,"requestContext",void 0),ct(this,"pendingAFGAdsInfo",{REWARD:Promise.resolve(null),INTERSTITIAL:Promise.resolve(null)}),ct(this,"pendingAFVAdsInfo",Promise.resolve(null)),ct(this,"doFetchAdsInfo",i=>v(this,null,function*(){let o=i==="afv"?"AdsAFVSDKRequest":"AdsAFGSDKAdBreak",a=[];switch(i){case"afv":{a=["REWARD_INTERSTITIAL","REWARD"];break}case"reward":{a=["REWARD_INTERSTITIAL","REWARD"];break}default:{a=["INTERSTITIAL"];break}}let 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(),adsTypes:a,testAdsMode:this.contextInfo.testAdsMode,name:s}});return c==="SUCCESS"||c==="BYPASS_ADS"?{code:c,data:l}:null})),ct(this,"cacheRewardInfo",()=>{this.pendingAFGAdsInfo.REWARD=this.doFetchAdsInfo("reward").catch(()=>null)}),ct(this,"cacheInterstitialInfo",i=>{this.pendingAFGAdsInfo.INTERSTITIAL=this.doFetchAdsInfo(i).catch(()=>null)}),ct(this,"cacheAFVInfo",()=>{this.pendingAFVAdsInfo=this.doFetchAdsInfo("afv").catch(()=>null)}),ct(this,"cacheNextAFGAdsInfo",i=>v(this,null,function*(){i==="reward"?this.cacheRewardInfo():this.cacheInterstitialInfo(i)})),ct(this,"getAFGAdsInfo",i=>v(this,null,function*(){let o=yield i==="reward"?this.pendingAFGAdsInfo.REWARD:this.pendingAFGAdsInfo.INTERSTITIAL;return this.cacheNextAFGAdsInfo(i),o})),ct(this,"getAFVAdsInfo",function(){return v(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 wc(t),r!=null&&r.reward&&this.cacheRewardInfo(),r!=null&&r.interstitial&&this.cacheInterstitialInfo("start"),r!=null&&r.afv&&this.cacheAFVInfo()}},aW=Object.defineProperty,sW=Object.defineProperties,lW=Object.getOwnPropertyDescriptors,Sc=Object.getOwnPropertySymbols,LT=Object.prototype.hasOwnProperty,qT=Object.prototype.propertyIsEnumerable,KP=(e,t,r)=>t in e?aW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Lr=(e,t)=>{for(var r in t||(t={}))LT.call(t,r)&&KP(e,r,t[r]);if(Sc)for(var r of Sc(t))qT.call(t,r)&&KP(e,r,t[r]);return e},cW=(e,t)=>sW(e,lW(t)),uW=(e,t)=>{var r={};for(var n in e)LT.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Sc)for(var n of Sc(e))t.indexOf(n)<0&&qT.call(e,n)&&(r[n]=e[n]);return r},Ic=(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())});pW=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};fW=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)};mW=Object.defineProperty,gW=(e,t)=>{for(var r in t)mW(e,r,{get:t[r],enumerable:!0})},UT=(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},vW=(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}bW=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))}})}};IW=(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))(IW||{}),EW=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}},Tc=class extends EW{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},AW=class extends Tc{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},kW=class extends Tc{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},CW=class extends Tc{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},yh=class extends Tc{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};Rc={log:oa("log"),warn:oa("warn"),info:oa("info"),error:oa("error"),debug:oa("debug")};Object.assign(globalThis,{logger:Rc});QP=Symbol.for("Jolibox.canIUseMap"),xW={};globalThis[QP]||(globalThis[QP]=xW);Yh=Symbol.for("Jolibox.canIUseMap.native"),TW={};globalThis[Yh]||(globalThis[Yh]=TW);Qh={get config(){return globalThis[Yh]}},RW=(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))(RW||{}),OW=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(OW||{}),NW=(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))(NW||{});DW();xi=typeof window=="undefined",LW=()=>!xi&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK");!xi&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),!xi&&navigator.userAgent.includes("Android"),!xi&&navigator.userAgent.includes("Mac"),!xi&&navigator.userAgent.includes("FB_IAB"),!xi&&!navigator.userAgent.includes("iPhone")&&navigator.userAgent.includes("Android");Xh=class Zh{constructor(t){this.element=t,this.next=Zh.Undefined,this.prev=Zh.Undefined}};Xh.Undefined=new Xh(void 0);be=Xh,qW=class{constructor(){this._first=be.Undefined,this._last=be.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===be.Undefined}clear(){let e=this._first;for(;e!==be.Undefined;){let t=e.next;e.prev=be.Undefined,e.next=be.Undefined,e=t}this._first=be.Undefined,this._last=be.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new be(e);if(this._first===be.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!==be.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==be.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==be.Undefined&&e.next!==be.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===be.Undefined&&e.next===be.Undefined?(this._first=be.Undefined,this._last=be.Undefined):e.next===be.Undefined?(this._last=this._last.prev,this._last.next=be.Undefined):e.prev===be.Undefined&&(this._first=this._first.next,this._first.prev=be.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==be.Undefined;)yield e.element,e=e.next}},UW=0,aa=class{constructor(e){this.value=e,this.id=UW++}},ha=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 aa&&(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 aa(e);return this._listeners?this._listeners instanceof aa?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 aa)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 aa?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},em=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 ha,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 qW,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)}},tm={};gW(tm,{None:()=>MW,filter:()=>jW,once:()=>BT,toPromise:()=>FW});MW=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});bh=Symbol.for("Jolibox.hostEmitter"),BW=()=>{let e=new em;return globalThis[bh]||(globalThis[bh]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[bh]};BW();rm=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new ha,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 GW(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}};rm=UT([jT],rm);XP=class{constructor(){this._onWillExecuteCommand=new ha,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new ha,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new rm,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=yW(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 vW(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),tm.toPromise(tm.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{}}};XP=UT([jT],XP);Dt("requestPaymentSync",{version:1e6,properties:{paymentBody:{appStoreProductId:102e4}}});Dt("requestProductDetailsAsync",{version:102e4});Dt("invokeSubscriptionPanelSync",{version:107e4,properties:{type:{game:107e4,drama:107e4}}});Dt("loginSync",{version:1e6,properties:{skipLogin:102e4,triggerFrom:102e4}});Dt("getABTest",{version:1050100,platforms:{android:1050100,ios:!1}});Dt("userTrackAsync",{version:1e6});Dt("openMiniapp",{version:1050100});Dt("requestCoinDetailsSync",{version:1070100});Dt("requestCoinDetailsAsync",{version:1070100});Dt("sendServerEventAsync",{version:1070100});Dt("loadAdsAsync",{version:1070200});Dt("showAdAsync",{version:1070200});HW=(e,t)=>{function r(i){var o;let[a,...s]=i.split(":");if(!a)return!1;let l=Qh.config[a];if(!l)return!1;let c=(o=t==null?void 0:t())!=null?o:"",d=l.version;if(l.platforms&&c in l.platforms){let p=l.platforms[c];if(p===!1)return!1;typeof p=="number"&&(d=p)}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=PW(i,o);if(!s)return!1;if(Ri(s)){let l=s.version;return YP(l)?typeof a=="number"&&a>=l:!0}return YP(s)?typeof a=="number"&&a>=s:s===!0}return{canIUseNative:r}};$W=()=>LW(),ua="custom_event_",VW=[],WW=[],zW=["env","createRequestTask","login"],GT="__batch_event__",KW="__native_batch_event__",YW=e=>e==="pv"?e:"default",mc=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=YW(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&&Ri(a))throw new yh(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let l=[];if(Ri(a))l.push(...Object.keys(a));else if(MT(a)){if(i.length>0)throw new yh(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);l.push(a)}else throw new yh(`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=Ri(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={}}},eT=!1;Ih=[],nm=Symbol.for("Jolibox.invokeResolverInstance"),XW=new Map;globalThis[nm]||(globalThis[nm]=XW);ZW={get resolveMap(){return globalThis[nm]}};lc=Symbol.for("Jolibox.subscribeInstance");an={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){an.trigger=e},onDoExit(e){an.exit=e},onDoBackPress(e){an.backPress=e}},HT=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new AW("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=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";an.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>Ic(void 0,null,function*(){let o=yield an.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});dm={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=JT(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:HT,doExit:r};globalThis.joliboxJSCore=Lr({},n)}if(typeof window!="undefined"&&window.JoliAndroidSDKBridge){let e=window.JoliAndroidSDKBridge,t=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";an.trigger(),e.onDocumentReady(JSON.stringify({path:i}))},r=i=>Ic(void 0,null,function*(){let o=yield an.exit();e.doExit(JSON.stringify({uuid:i,shouldInterrupt:o}))});dm={onDocumentReady:t,invoke(i,o,a){e.invoke(JSON.stringify({event:i,paramsString:o,callbackId:a}))},doExit:r,publish(i,o,a){let s=JT(o,"joliboxJSCore");e.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)},doBackPress(i){return Ic(this,null,function*(){let o=yield an.backPress();e.doBackPress(JSON.stringify({uuid:i,shouldInterrupt:o}))})}};let n={onDocumentReady:t,env:HT,doExit:r};globalThis.joliboxJSCore=Lr({},n)}$T=dm;if(!$T&&$W())throw new CW("No joliboxJScore is found, native bridge not found.");iz=Lr({},$T),VT=nz(iz),{invokeHandler:rT}=VT,{invokeNative:Eh,onNative:oz,offNative:az,subscribeHandler:sz}=VT;globalThis.joliboxJSBridge={callHandler:rT,invokeHandler:rT,subscribeHandler:sz};dz=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(e)try{e(...r)}catch(i){console.error("[JoliboxSDK] Callback error:",i)}},Ec=class{constructor(t){this.context=t,lz(this,"canIUseHelper",void 0),this.context=t;let{canIUseNative:r}=HW(()=>this.context.getContextInfo().deviceInfo.nativeSDKVersionCode||1e6,()=>this.context.getContextInfo().deviceInfo.platform||"h5");this.canIUseHelper=r}loadAdsAsync(t){return v(this,null,function*(){try{let{errNo:r,errMsg:n}=yield Eh("loadAdsAsync",{params:{providers:t.providers}});return r!==0||n.length>0?{code:"FAILURE",message:n||"Failed to load ads"}:{code:"SUCCESS",message:"Ads loaded successfully"}}catch(r){return{code:"FAILURE",message:`Failed to load ads: ${r instanceof Error?r.message:String(r)}`}}})}canIUse(){return Ah()&&this.canIUseHelper("loadAdsAsync")&&this.canIUseHelper("showAdAsync")}showAdAsync(t){return v(this,null,function*(){try{let r=yield Eh("showAdAsync",{params:{providers:t.providers}});if(r.errNo!==0)return{code:"FAILURE",message:r.errMsg||"Failed to show ad"};let n=r.data.UUID;if(t.callbacks){let i=t.timeout!==void 0?t.timeout:3e5,o=null,a=()=>{az("onAdsStateChange",s),o&&(clearTimeout(o),o=null)},s=l=>{var c;if(l.UUID!==n)return;let d=(c=t.callbacks)==null?void 0:c[l.event];d&&dz(d,l.data),["onAdClosed","onAdError","onAdDismissed"].includes(l.event)&&a()};oz("onAdsStateChange",s),i>0&&(o=setTimeout(()=>{a(),console.warn(`[JoliboxSDK] Event listener for ad ${n} auto-cleaned after ${i}ms timeout`)},i))}return{code:"SUCCESS",message:"Ad shown successfully"}}catch(r){return{code:"FAILURE",message:`Failed to show ad: ${r instanceof Error?r.message:String(r)}`}}})}isAdsReadySync(t){try{let{errNo:r,data:n}=Eh("isAdsReadySync",{params:{providers:t.providers}});return r!==0||!n?(console.warn("[Jolibox SDK]isAdsReadySync returned an error or no data"),!1):!0}catch(r){return console.warn("[Jolibox SDK]isAdsReadySync invocation failed:",r),!1}}};im=class{get isAdsReady(){return this._isAdsReady}constructor(t,r){Or(this,"providers",void 0),Or(this,"helper",void 0),Or(this,"adsContext",null),Or(this,"_isAdsReady",!1),Or(this,"init",()=>v(this,null,function*(){this.helper.canIUse()&&((yield this.helper.loadAdsAsync({providers:this.providers})).code==="SUCCESS"?this._isAdsReady=!0:this._isAdsReady=!1)})),Or(this,"destroy",n=>{var i,o;this._isAdsReady=!1,(o=(i=this.adsContext)==null?void 0:i.adBreakDone)==null||o.call(i,n),n!=="ignored"&&(this.adsContext=null)}),Or(this,"reinit",n=>v(this,null,function*(){this.destroy(n),yield this.init()})),Or(this,"requestAds",(n,i)=>v(this,null,function*(){if(this.adsContext){this.destroy("ignored");return}this.adsContext=n,i&&i.length>0&&(this.providers=i);try{this.isAdsReady?this.showAd():yield this.reinit("frequencyCapped")}catch(o){this.destroy("notReady")}})),Or(this,"showAd",()=>{if(!this.adsContext){this.destroy("error");return}let n=!1,i=!1;this.adsContext.beforeReward(()=>v(this,null,function*(){var o,a;(a=(o=this.adsContext)==null?void 0:o.beforeAd)==null||a.call(o);let s=c=>{var d,u,p;i||(i=!0,c==="dismissed"&&((d=this.adsContext)==null||d.adDismissed()),(p=(u=this.adsContext)==null?void 0:u.afterAd)==null||p.call(u),this.reinit(c))},l={onAdShow:()=>{},onAdError:()=>{s("error")},onAdRewarded:()=>{var c;n=!0,(c=this.adsContext)==null||c.adViewed()},onAdDismissed:()=>{s(n?"viewed":"dismissed")},onAdClosed:()=>{s(n?"viewed":"dismissed")}};(yield this.helper.showAdAsync({providers:this.providers,callbacks:l,timeout:2e3})).code!=="SUCCESS"&&this.reinit("noAdPreloaded")}))}),this.providers=r,this.helper=new Ec(t),this.init()}};om=class{get isAdsReady(){return this._isAdsReady}constructor(t,r){var n=this;Nr(this,"providers",void 0),Nr(this,"helper",void 0),Nr(this,"adsContext",null),Nr(this,"_isAdsReady",!1),Nr(this,"init",()=>v(this,null,function*(){this.helper.canIUse()&&((yield this.helper.loadAdsAsync({providers:this.providers})).code==="SUCCESS"?this._isAdsReady=!0:this._isAdsReady=!1)})),Nr(this,"destroy",function(i){var o,a;let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n._isAdsReady=!1,s&&((a=(o=n.adsContext)==null?void 0:o.onEnd)==null||a.call(o,i),i!=="ignored"&&(n.adsContext=null))}),Nr(this,"reinit",function(o){return v(this,arguments,function*(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n.destroy(i,a),yield n.init()})}),Nr(this,"requestAds",(i,o)=>v(this,null,function*(){if(this.adsContext){this.destroy("ignored");return}this.adsContext=i,o&&o.length>0&&(this.providers=o);try{this.isAdsReady?yield this.showAd():yield this.reinit("frequencyCapped")}catch(a){this.destroy("notReady")}})),Nr(this,"showAd",()=>v(this,null,function*(){var i,o;if(!this.adsContext){this.destroy("error");return}let a=!1;(o=(i=this.adsContext).beforeAd)==null||o.call(i);let s=c=>{var d,u;a||(a=!0,(u=(d=this.adsContext)==null?void 0:d.afterAd)==null||u.call(d),this.reinit(c))},l={onAdShow:()=>{},onAdError:()=>{s("error")},onAdDismissed:()=>{s("dismissed")},onAdClosed:()=>{s("viewed")}};(yield this.helper.showAdAsync({providers:this.providers,callbacks:l,timeout:2e3})).code!=="SUCCESS"&&this.reinit("noAdPreloaded")})),this.providers=r,this.helper=new Ec(t),this.init()}};am=class{constructor(t,r){sa(this,"name","INTERNAL_NATIVE"),sa(this,"context",void 0),sa(this,"rewardAdManager",void 0),sa(this,"interstitialManager",void 0),sa(this,"initProviders",void 0),this.context=t,this.initProviders=r.providers;let n=this.getConfigsByTypes(["REWARD","REWARD_INTERSTITIAL"],r.providers),i=this.getConfigsByTypes(["INTERSTITIAL"],r.providers);n.length>0&&(this.rewardAdManager=new im(this.context,n)),i.length>0&&(this.interstitialManager=new om(this.context,i))}getConfigsByTypes(t,r,n){let i=[];return(n?n.map(o=>r.find(a=>a.provider===o.provider)).filter(o=>!!o):r).forEach(o=>{t.forEach(a=>{let s="";a==="REWARD"&&(s=o.params.adUnitId.reward),a==="REWARD_INTERSTITIAL"&&(s=o.params.adUnitId.rewardInterstitial),a==="INTERSTITIAL"&&(s=o.params.adUnitId.interstitial),s&&i.push({provider:o.provider,params:{placementId:s,adsType:a,extra:o.params.extra}})})}),i}init(){return v(this,null,function*(){})}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:"reward",breakStatus:"noAdPreloaded"});return}let a=this.getConfigsByTypes(["REWARD","REWARD_INTERSTITIAL"],this.initProviders,r.params);this.rewardAdManager.requestAds({beforeAd:t.beforeAd,afterAd:t.afterAd,adDismissed:t.adDismissed,adViewed:t.adViewed,beforeReward:t.beforeReward,adBreakDone:s=>{var l;(l=t.adBreakDone)==null||l.call(t,{breakName:t.name,breakType:t.type,breakFormat:"reward",breakStatus:s})}},a);break}default:{let a=t;if(!this.interstitialManager){(o=t.adBreakDone)==null||o.call(t,{breakName:a.name,breakType:t.type,breakFormat:"interstitial",breakStatus:"noAdPreloaded"});return}let s=this.getConfigsByTypes(["INTERSTITIAL"],this.initProviders,r.params);this.interstitialManager.requestAds({beforeAd:a.beforeAd,afterAd:a.afterAd,onEnd:l=>{var c;(c=t.adBreakDone)==null||c.call(t,{breakName:a.name,breakType:t.type,breakFormat:"interstitial",breakStatus:l})}},s);break}}}};Ac=class{constructor(t){if(Vt(this,"context",void 0),Vt(this,"contextInfo",void 0),Vt(this,"providers",{}),Vt(this,"channelPolicy",void 0),Vt(this,"adsActionDetection",void 0),Vt(this,"requestContext",void 0),Vt(this,"adsRequest",void 0),Vt(this,"initialized",!1),Vt(this,"adsIsShowing",!1),Vt(this,"lastAdBreak",void 0),Vt(this,"initializedTimeStamp",Date.now()),t)this.context=t,this.channelPolicy=new Oh(this.context),this.adsActionDetection=new Rh(this.context),this.contextInfo=this.context.getContextInfo(),this.adsRequest=new zh(t),this.requestContext=new wc(t);else throw new Error("JoliboxAdsForGame requires a configuration object")}init(t){return v(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){let n=r.filter(s=>s.isNative),i=r.filter(s=>!s.isNative),o={provider:"INTERNAL_NATIVE",params:{providers:n}},a=i.concat([o]);for(let s of a)switch(s.provider){case"GOOGLE_GPT":{let l=new Vh(this.context,s.params);yield l.init(),this.providers[s.provider]=l;break}case"ADSENSE":case"ADSENSE_ADMOB":{let l=new Nh(this.context,s.params);yield l.init(),this.providers[s.provider]=l;break}case"OKSPIN":{let l=new Bh(this.context,s.params);yield l.init(),this.providers.OKSPIN=l;break}case"APPSROCKETS":{let l=new Jh(this.context,s.params);yield l.init(),this.providers.APPSROCKETS=l;break}case"ADSENSE_BANNER_AS_AFG":{let l=new Gh(this.context,s.params);yield l.init(),this.providers.ADSENSE_BANNER_AS_AFG=l;break}case"INTERNAL_NATIVE":{let l=new am(this.context,s.params);yield l.init(),this.providers.INTERNAL_NATIVE=l;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 v(this,null,function*(){var r,n,i,o,a,s,l,c,d,u,p,f,h,g,b,y;let _=Date.now();if(_-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&&_-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=_,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 S=yield this.adsRequest.getAFGAdsInfo(t.type),E=S==null?void 0:S.data,P=S==null?void 0:S.code;if(P==="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 C,k,G,ce;(C=t.beforeAd)==null||C.call(t),(k=t.adViewed)==null||k.call(t),(G=t.afterAd)==null||G.call(t),(ce=t.adBreakDone)==null||ce.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(!E||P!=="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{if(E.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 C=!0,k=null,G=new Th(this.context);this.adsActionDetection.adBreakIsShowing=!0;let ce=E.filter(U=>U.isNative),N=E.filter(U=>!U.isNative),R=[{seq:(h=(f=ce[0])==null?void 0:f.seq)!=null?h:0,provider:"INTERNAL_NATIVE",params:ce}].concat(N);for(R.sort((U,H)=>U.seq-H.seq).map((U,H)=>L$(oT({},U),{seq:H}));R.length>0;){let U=R.shift(),H=this.providers[U.provider];if(H){let[te,Ut]=yield G.callAdBreakAndContinue(H,t,U,Fc=>{var jc;this.adsIsShowing=Fc,(jc=this.context.eventEmitter)==null||jc.emit("isAdShowing",Fc)});C=te,k=Ut}else C=!0,k={breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"};if(!C)break}C&&k&&((g=t.adBreakDone)==null||g.call(t,k))}}catch(S){(b=t.adBreakDone)==null||b.call(t,{breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}finally{this.adsIsShowing=!1,(y=this.context.eventEmitter)==null||y.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.")}},uoe=ot`
869
+ `,z9=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adLinkClicked:s,visible:l,src:c}=t,[d,u]=yr(!1),p=h=>{var g,b,y,_;u(!1),l.value=!1,h==="dismiss"?(g=n.value)==null||g.call(n):h==="viewed"&&((b=i.value)==null||b.call(i)),(y=r.value)==null||y.call(r),(_=o.value)==null||_.call(o)},f=()=>{var h;(h=a.value)==null||h.call(a)};return ki("appsrockets_ad_dismissed",()=>p("dismiss")),ki("appsrockets_ad_rewarded",()=>p("viewed")),ki("appsrockets_ad_completed",()=>p("viewed")),ki("appsrockets_ad_skipped",()=>p("viewed")),ki("appsrockets_ad_clicked",h=>{var g;return(g=s.value)==null?void 0:g.call(s,h)}),ki("appsrockets_ad_loaded",()=>u(!0)),l.value?K("div",{className:W9,style:{display:d?"flex":"none"},children:l.value&&K("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};Hh=class{constructor(t,r){Rr(this,"name","APPSROCKETS"),Rr(this,"initialized",!1),Rr(this,"initCompleter",null),Rr(this,"context",void 0),Rr(this,"adsOverlay",null),Rr(this,"adsIsShowing",!1),Rr(this,"lastUnDisplayedAdBreak",null),Rr(this,"state",V9()),Rr(this,"processUrl",(n,i)=>{var o;let a=this.context.getContextInfo(),s=new URL(n),l=new URLSearchParams(s.search);return l.has("joliSource")||l.set("joliSource",a.joliSource),l.get("osType")||l.set("osType",a.osType),l.get("runtimeType")||l.set("runtimeType",a.runtimeType),l.get("mode")||l.set("mode","AFG"),l.get("deviceId")||l.set("deviceId",a.deviceId),l.get("statusBarHeight")||l.set("statusBarHeight",((o=this.context.getWindowInfo().statusBarHeight)!=null?o:0).toString()),l.get("adsType")||l.set("adsType",i),s.search=l.toString(),s.toString()}),this.context=t}init(){return v(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg-appsrockets"),As(K(z9,{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=f=>{var h,g;(g=(h=this.context).handleLinkClicked)==null||g.call(h,f)},p=t.type==="reward"?"REWARD":"INTERSTITIAL";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 f=()=>{var b;this.adsIsShowing=!1,(b=t.afterAd)==null||b.call(t)},h=()=>{var b;this.adsIsShowing=!1,(b=t.adBreakDone)==null||b.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})},g=()=>{var b;this.adsIsShowing=!1,(b=t.adBreakDone)==null||b.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"noAdPreloaded"})};Ye(()=>{this.adsIsShowing=!0,this.state.afterAd.value=f,this.state.adBreakDone.value=h,this.state.src.value=this.processUrl(r.params.url,p),this.state.adLinkClicked.value=u,this.state.adError.value=g,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 f=()=>{var E;this.adsIsShowing=!1,(E=t.afterAd)==null||E.call(t)},h={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},g=()=>{var E;this.adsIsShowing=!1,h.breakStatus="dismissed",(E=t.adDismissed)==null||E.call(t)},b=()=>{var E;this.adsIsShowing=!1,h.breakStatus="viewed",(E=t.adViewed)==null||E.call(t)},y=()=>{var E;this.adsIsShowing=!1,(E=t.adBreakDone)==null||E.call(t,h)},_=()=>{this.adsIsShowing=!1,h.breakStatus="noAdPreloaded"};Ye(()=>{this.state.afterAd.value=f,this.state.adDismissed.value=g,this.state.adViewed.value=b,this.state.adBreakDone.value=y,this.state.adLinkClicked.value=u,this.state.adError.value=_});let I=()=>{var E;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(E=t.adBreakDone)==null||E.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,Ye(()=>{this.state.src.value=this.processUrl(r.params.url,p),this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,I);break}}}},LP=()=>{window.googletag=window.googletag||{cmd:[]},window.googletag.pubadsReady||window.googletag.cmd.push(()=>{window.googletag.enableServices()})};$h=class{constructor(t,r,n){nt(this,"adUnit",void 0),nt(this,"project",void 0),nt(this,"keyValue",void 0),nt(this,"adsContext",null),nt(this,"rewardedSlot",null),nt(this,"rewardedPayload",null),nt(this,"readyEvent",null),nt(this,"withCommand",function(){googletag.cmd.push(...arguments)}),nt(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))}),nt(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),i!=="ignored"&&(this.adsContext=null)}),nt(this,"reinit",i=>{this.destroy(i),this.init()}),nt(this,"handleSlotReady",i=>{i.slot===this.rewardedSlot&&(this.readyEvent=i)}),nt(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)})}}),nt(this,"handleSlotGranted",i=>{this.adsContext&&i.slot===this.rewardedSlot&&(this.rewardedPayload=i.payload)}),nt(this,"handleSlotRenderEnded",i=>{i.slot===this.rewardedSlot&&i.isEmpty&&this.adsContext&&this.withCommand(()=>{this.reinit("frequencyCapped")})}),nt(this,"requestAds",i=>{this.withCommand(()=>{if(this.adsContext){this.destroy("ignored");return}if(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,LP(),this.withCommand(()=>{this.init()})}};Vh=class{constructor(t,r,n){var i=this;mt(this,"adUnit",void 0),mt(this,"project",void 0),mt(this,"keyValue",void 0),mt(this,"adsContext",null),mt(this,"gamingInterstitialSlot",null),mt(this,"readyEvent",null),mt(this,"isRetrying",!1),mt(this,"withCommand",function(){googletag.cmd.push(...arguments)}),mt(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))}),mt(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),o!=="ignored"&&(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)}),mt(this,"reinit",function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;i.destroy(o,a),i.init()}),mt(this,"handleSlotReady",o=>{this.gamingInterstitialSlot===o.slot&&(this.readyEvent=o)}),mt(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")}))}),mt(this,"requestAds",o=>{this.withCommand(()=>{var a,s,l;if(this.adsContext){this.destroy("ignored");return}if(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)))})}),LP(),this.adUnit=t,this.project=r,this.keyValue=n,this.withCommand(()=>{this.init()})}};Wh=class{constructor(t,r){Dn(this,"name","GOOGLE_GPT"),Dn(this,"context",void 0),Dn(this,"contextInfo",void 0),Dn(this,"initParams",void 0),Dn(this,"rewardAdManager",void 0),Dn(this,"interstitialManager",void 0),Dn(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 v(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 $h(t,n,this.initParams.keyValue)),r&&(this.interstitialManager=new Vh(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}}}};zh=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";yh(this,"context",void 0),yh(this,"placement","GAME"),yh(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:pP.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:uP.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:dP.WebSDK};return iV(i)}};Ec=class{constructor(t){ct(this,"context",void 0),ct(this,"adsTrackSerializer",void 0),ct(this,"contextInfo",void 0),this.context=t,this.contextInfo=t.getContextInfo(),this.adsTrackSerializer=new zh(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}}},Kh=class{constructor(t,r){var n=this;ct(this,"context",void 0),ct(this,"contextInfo",void 0),ct(this,"requestContext",void 0),ct(this,"pendingAFGAdsInfo",{REWARD:Promise.resolve(null),INTERSTITIAL:Promise.resolve(null)}),ct(this,"pendingAFVAdsInfo",Promise.resolve(null)),ct(this,"doFetchAdsInfo",i=>v(this,null,function*(){let o=i==="afv"?"AdsAFVSDKRequest":"AdsAFGSDKAdBreak",a=[];switch(i){case"afv":{a=["REWARD_INTERSTITIAL","REWARD"];break}case"reward":{a=["REWARD_INTERSTITIAL","REWARD"];break}default:{a=["INTERSTITIAL"];break}}let 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(),adsTypes:a,testAdsMode:this.contextInfo.testAdsMode,name:s}});return c==="SUCCESS"||c==="BYPASS_ADS"?{code:c,data:l}:null})),ct(this,"cacheRewardInfo",()=>{this.pendingAFGAdsInfo.REWARD=this.doFetchAdsInfo("reward").catch(()=>null)}),ct(this,"cacheInterstitialInfo",i=>{this.pendingAFGAdsInfo.INTERSTITIAL=this.doFetchAdsInfo(i).catch(()=>null)}),ct(this,"cacheAFVInfo",()=>{this.pendingAFVAdsInfo=this.doFetchAdsInfo("afv").catch(()=>null)}),ct(this,"cacheNextAFGAdsInfo",i=>v(this,null,function*(){i==="reward"?this.cacheRewardInfo():this.cacheInterstitialInfo(i)})),ct(this,"getAFGAdsInfo",i=>v(this,null,function*(){let o=yield i==="reward"?this.pendingAFGAdsInfo.REWARD:this.pendingAFGAdsInfo.INTERSTITIAL;return this.cacheNextAFGAdsInfo(i),o})),ct(this,"getAFVAdsInfo",function(){return v(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 Ec(t),r!=null&&r.reward&&this.cacheRewardInfo(),r!=null&&r.interstitial&&this.cacheInterstitialInfo("start"),r!=null&&r.afv&&this.cacheAFVInfo()}},sW=Object.defineProperty,lW=Object.defineProperties,cW=Object.getOwnPropertyDescriptors,Ac=Object.getOwnPropertySymbols,qP=Object.prototype.hasOwnProperty,UP=Object.prototype.propertyIsEnumerable,YT=(e,t,r)=>t in e?sW(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Lr=(e,t)=>{for(var r in t||(t={}))qP.call(t,r)&&YT(e,r,t[r]);if(Ac)for(var r of Ac(t))UP.call(t,r)&&YT(e,r,t[r]);return e},uW=(e,t)=>lW(e,cW(t)),dW=(e,t)=>{var r={};for(var n in e)qP.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ac)for(var n of Ac(e))t.indexOf(n)<0&&UP.call(e,n)&&(r[n]=e[n]);return r},Cc=(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())});fW=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};hW=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)};gW=Object.defineProperty,vW=(e,t)=>{for(var r in t)gW(e,r,{get:t[r],enumerable:!0})},MP=(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},yW=(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}_W=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))}})}};EW=(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))(EW||{}),AW=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}},Oc=class extends AW{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},CW=class extends Oc{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},kW=class extends Oc{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},xW=class extends Oc{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},bh=class extends Oc{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};Nc={log:la("log"),warn:la("warn"),info:la("info"),error:la("error"),debug:la("debug")};Object.assign(globalThis,{logger:Nc});XT=Symbol.for("Jolibox.canIUseMap"),TW={};globalThis[XT]||(globalThis[XT]=TW);Qh=Symbol.for("Jolibox.canIUseMap.native"),RW={};globalThis[Qh]||(globalThis[Qh]=RW);Xh={get config(){return globalThis[Qh]}},OW=(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))(OW||{}),NW=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(NW||{}),DW=(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))(DW||{});LW();Ti=typeof window=="undefined",qW=()=>!Ti&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK");!Ti&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),!Ti&&navigator.userAgent.includes("Android"),!Ti&&navigator.userAgent.includes("Mac"),!Ti&&navigator.userAgent.includes("FB_IAB"),!Ti&&!navigator.userAgent.includes("iPhone")&&navigator.userAgent.includes("Android");Zh=class em{constructor(t){this.element=t,this.next=em.Undefined,this.prev=em.Undefined}};Zh.Undefined=new Zh(void 0);be=Zh,UW=class{constructor(){this._first=be.Undefined,this._last=be.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===be.Undefined}clear(){let e=this._first;for(;e!==be.Undefined;){let t=e.next;e.prev=be.Undefined,e.next=be.Undefined,e=t}this._first=be.Undefined,this._last=be.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new be(e);if(this._first===be.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!==be.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==be.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==be.Undefined&&e.next!==be.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===be.Undefined&&e.next===be.Undefined?(this._first=be.Undefined,this._last=be.Undefined):e.next===be.Undefined?(this._last=this._last.prev,this._last.next=be.Undefined):e.prev===be.Undefined&&(this._first=this._first.next,this._first.prev=be.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==be.Undefined;)yield e.element,e=e.next}},MW=0,ca=class{constructor(e){this.value=e,this.id=MW++}},va=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 ca&&(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 ca(e);return this._listeners?this._listeners instanceof ca?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 ca)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 ca?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},tm=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 va,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 UW,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)}},rm={};vW(rm,{None:()=>FW,filter:()=>BW,once:()=>GP,toPromise:()=>jW});FW=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});_h=Symbol.for("Jolibox.hostEmitter"),GW=()=>{let e=new tm;return globalThis[_h]||(globalThis[_h]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[_h]};GW();nm=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new va,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 JW(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}};nm=MP([BP],nm);ZT=class{constructor(){this._onWillExecuteCommand=new va,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new va,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new nm,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=bW(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 yW(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),rm.toPromise(rm.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{}}};ZT=MP([BP],ZT);Lt("requestPaymentSync",{version:1e6,properties:{paymentBody:{appStoreProductId:102e4}}});Lt("requestProductDetailsAsync",{version:102e4});Lt("invokeSubscriptionPanelSync",{version:107e4,properties:{type:{game:107e4,drama:107e4}}});Lt("loginSync",{version:1e6,properties:{skipLogin:102e4,triggerFrom:102e4}});Lt("getABTest",{version:1050100,platforms:{android:1050100,ios:!1}});Lt("userTrackAsync",{version:1e6});Lt("openMiniapp",{version:1050100});Lt("requestCoinDetailsSync",{version:1070100});Lt("requestCoinDetailsAsync",{version:1070100});Lt("sendServerEventAsync",{version:1070100});Lt("loadAdsAsync",{version:1070200});Lt("showAdAsync",{version:1070200});$W=(e,t)=>{function r(i){var o;let[a,...s]=i.split(":");if(!a)return!1;let l=Xh.config[a];if(!l)return!1;let c=(o=t==null?void 0:t())!=null?o:"",d=l.version;if(l.platforms&&c in l.platforms){let p=l.platforms[c];if(p===!1)return!1;typeof p=="number"&&(d=p)}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=PW(i,o);if(!s)return!1;if(Oi(s)){let l=s.version;return QT(l)?typeof a=="number"&&a>=l:!0}return QT(s)?typeof a=="number"&&a>=s:s===!0}return{canIUseNative:r}};VW=()=>qW(),fa="custom_event_",WW=[],zW=[],KW=["env","createRequestTask","login"],JP="__batch_event__",YW="__native_batch_event__",QW=e=>e==="pv"?e:"default",yc=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=QW(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&&Oi(a))throw new bh(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let l=[];if(Oi(a))l.push(...Object.keys(a));else if(FP(a)){if(i.length>0)throw new bh(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);l.push(a)}else throw new bh(`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=Oi(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={}}},tP=!1;Eh=[],im=Symbol.for("Jolibox.invokeResolverInstance"),ZW=new Map;globalThis[im]||(globalThis[im]=ZW);ez={get resolveMap(){return globalThis[im]}};dc=Symbol.for("Jolibox.subscribeInstance");an={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){an.trigger=e},onDoExit(e){an.exit=e},onDoBackPress(e){an.backPress=e}},$P=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new CW("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=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";an.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>Cc(void 0,null,function*(){let o=yield an.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});pm={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=HP(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:$P,doExit:r};globalThis.joliboxJSCore=Lr({},n)}if(typeof window!="undefined"&&window.JoliAndroidSDKBridge){let e=window.JoliAndroidSDKBridge,t=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";an.trigger(),e.onDocumentReady(JSON.stringify({path:i}))},r=i=>Cc(void 0,null,function*(){let o=yield an.exit();e.doExit(JSON.stringify({uuid:i,shouldInterrupt:o}))});pm={onDocumentReady:t,invoke(i,o,a){e.invoke(JSON.stringify({event:i,paramsString:o,callbackId:a}))},doExit:r,publish(i,o,a){let s=HP(o,"joliboxJSCore");e.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)},doBackPress(i){return Cc(this,null,function*(){let o=yield an.backPress();e.doBackPress(JSON.stringify({uuid:i,shouldInterrupt:o}))})}};let n={onDocumentReady:t,env:$P,doExit:r};globalThis.joliboxJSCore=Lr({},n)}VP=pm;if(!VP&&VW())throw new xW("No joliboxJScore is found, native bridge not found.");oz=Lr({},VP),WP=iz(oz),{invokeHandler:nP}=WP,{invokeNative:Ah,onNative:az,offNative:sz,subscribeHandler:lz}=WP;globalThis.joliboxJSBridge={callHandler:nP,invokeHandler:nP,subscribeHandler:lz};pz=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(e)try{e(...r)}catch(i){console.error("[JoliboxSDK] Callback error:",i)}},kc=class{constructor(t){this.context=t,cz(this,"canIUseHelper",void 0),this.context=t;let{canIUseNative:r}=$W(()=>this.context.getContextInfo().deviceInfo.nativeSDKVersionCode||1e6,()=>this.context.getContextInfo().deviceInfo.platform||"h5");this.canIUseHelper=r}loadAdsAsync(t){return v(this,null,function*(){try{let{errNo:r,errMsg:n}=yield Ah("loadAdsAsync",{params:{providers:t.providers}});return r!==0||n.length>0?{code:"FAILURE",message:n||"Failed to load ads"}:{code:"SUCCESS",message:"Ads loaded successfully"}}catch(r){return{code:"FAILURE",message:`Failed to load ads: ${r instanceof Error?r.message:String(r)}`}}})}canIUse(){return Ch()&&this.canIUseHelper("loadAdsAsync")&&this.canIUseHelper("showAdAsync")}showAdAsync(t){return v(this,null,function*(){try{let r=yield Ah("showAdAsync",{params:{providers:t.providers}});if(r.errNo!==0)return{code:"FAILURE",message:r.errMsg||"Failed to show ad"};let n=r.data.UUID;if(t.callbacks){let i=t.timeout!==void 0?t.timeout:-1,o=null,a=()=>{sz("onAdsStateChange",s),o&&(clearTimeout(o),o=null)},s=l=>{var c;if(l.UUID!==n)return;let d=(c=t.callbacks)==null?void 0:c[l.event];d&&pz(d,l.data),["onAdClosed","onAdError","onAdDismissed"].includes(l.event)&&a()};az("onAdsStateChange",s),i>0&&(o=setTimeout(()=>{a(),console.warn(`[JoliboxSDK] Event listener for ad ${n} auto-cleaned after ${i}ms timeout`)},i))}return{code:"SUCCESS",message:"Ad shown successfully"}}catch(r){return{code:"FAILURE",message:`Failed to show ad: ${r instanceof Error?r.message:String(r)}`}}})}isAdsReadySync(t){try{let{errNo:r,data:n}=Ah("isAdsReadySync",{params:{providers:t.providers}});return r!==0||!n?(console.warn("[Jolibox SDK]isAdsReadySync returned an error or no data"),!1):!0}catch(r){return console.warn("[Jolibox SDK]isAdsReadySync invocation failed:",r),!1}}};om=class{get isAdsReady(){return this._isAdsReady}constructor(t,r){Or(this,"providers",void 0),Or(this,"helper",void 0),Or(this,"adsContext",null),Or(this,"_isAdsReady",!1),Or(this,"init",()=>v(this,null,function*(){this.helper.canIUse()&&((yield this.helper.loadAdsAsync({providers:this.providers})).code==="SUCCESS"?this._isAdsReady=!0:this._isAdsReady=!1)})),Or(this,"destroy",n=>{var i,o;this._isAdsReady=!1,(o=(i=this.adsContext)==null?void 0:i.adBreakDone)==null||o.call(i,n),n!=="ignored"&&(this.adsContext=null)}),Or(this,"reinit",n=>v(this,null,function*(){this.destroy(n),yield this.init()})),Or(this,"requestAds",(n,i)=>v(this,null,function*(){if(this.adsContext){this.destroy("ignored");return}this.adsContext=n,i&&i.length>0&&(this.providers=i);try{this.isAdsReady?this.showAd():yield this.reinit("frequencyCapped")}catch(o){this.destroy("notReady")}})),Or(this,"showAd",()=>{if(!this.adsContext){this.destroy("error");return}let n=!1,i=!1;this.adsContext.beforeReward(()=>v(this,null,function*(){var o,a;(a=(o=this.adsContext)==null?void 0:o.beforeAd)==null||a.call(o);let s=c=>{var d,u,p;i||(i=!0,c==="dismissed"&&((d=this.adsContext)==null||d.adDismissed()),(p=(u=this.adsContext)==null?void 0:u.afterAd)==null||p.call(u),this.reinit(c))},l={onAdShow:()=>{},onAdError:()=>{s("error")},onAdRewarded:()=>{var c;n=!0,(c=this.adsContext)==null||c.adViewed()},onAdDismissed:()=>{s(n?"viewed":"dismissed")},onAdClosed:()=>{s(n?"viewed":"dismissed")}};(yield this.helper.showAdAsync({providers:this.providers,callbacks:l})).code!=="SUCCESS"&&this.reinit("noAdPreloaded")}))}),this.providers=r,this.helper=new kc(t),this.init()}};am=class{get isAdsReady(){return this._isAdsReady}constructor(t,r){var n=this;Nr(this,"providers",void 0),Nr(this,"helper",void 0),Nr(this,"adsContext",null),Nr(this,"_isAdsReady",!1),Nr(this,"init",()=>v(this,null,function*(){this.helper.canIUse()&&((yield this.helper.loadAdsAsync({providers:this.providers})).code==="SUCCESS"?this._isAdsReady=!0:this._isAdsReady=!1)})),Nr(this,"destroy",function(i){var o,a;let s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n._isAdsReady=!1,s&&((a=(o=n.adsContext)==null?void 0:o.onEnd)==null||a.call(o,i),i!=="ignored"&&(n.adsContext=null))}),Nr(this,"reinit",function(o){return v(this,arguments,function*(i){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;n.destroy(i,a),yield n.init()})}),Nr(this,"requestAds",(i,o)=>v(this,null,function*(){if(this.adsContext){this.destroy("ignored");return}this.adsContext=i,o&&o.length>0&&(this.providers=o);try{this.isAdsReady?yield this.showAd():yield this.reinit("frequencyCapped")}catch(a){this.destroy("notReady")}})),Nr(this,"showAd",()=>v(this,null,function*(){var i,o;if(!this.adsContext){this.destroy("error");return}let a=!1;(o=(i=this.adsContext).beforeAd)==null||o.call(i);let s=c=>{var d,u;a||(a=!0,(u=(d=this.adsContext)==null?void 0:d.afterAd)==null||u.call(d),this.reinit(c))},l={onAdShow:()=>{},onAdError:()=>{s("error")},onAdDismissed:()=>{s("dismissed")},onAdClosed:()=>{s("viewed")}};(yield this.helper.showAdAsync({providers:this.providers,callbacks:l})).code!=="SUCCESS"&&this.reinit("noAdPreloaded")})),this.providers=r,this.helper=new kc(t),this.init()}};sm=class{constructor(t,r){ua(this,"name","INTERNAL_NATIVE"),ua(this,"context",void 0),ua(this,"rewardAdManager",void 0),ua(this,"interstitialManager",void 0),ua(this,"initProviders",void 0),this.context=t,this.initProviders=r.providers;let n=this.getConfigsByTypes(["REWARD","REWARD_INTERSTITIAL"],r.providers),i=this.getConfigsByTypes(["INTERSTITIAL"],r.providers);n.length>0&&(this.rewardAdManager=new om(this.context,n)),i.length>0&&(this.interstitialManager=new am(this.context,i))}getConfigsByTypes(t,r,n){let i=[];return(n?n.map(o=>r.find(a=>a.provider===o.provider)).filter(o=>!!o):r).forEach(o=>{t.forEach(a=>{let s="";a==="REWARD"&&(s=o.params.adUnitId.reward),a==="REWARD_INTERSTITIAL"&&(s=o.params.adUnitId.rewardInterstitial),a==="INTERSTITIAL"&&(s=o.params.adUnitId.interstitial),s&&i.push({provider:o.provider,params:{placementId:s,adsType:a,extra:o.params.extra}})})}),i}init(){return v(this,null,function*(){})}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:"reward",breakStatus:"noAdPreloaded"});return}let a=this.getConfigsByTypes(["REWARD","REWARD_INTERSTITIAL"],this.initProviders,r.params);this.rewardAdManager.requestAds({beforeAd:t.beforeAd,afterAd:t.afterAd,adDismissed:t.adDismissed,adViewed:t.adViewed,beforeReward:t.beforeReward,adBreakDone:s=>{var l;(l=t.adBreakDone)==null||l.call(t,{breakName:t.name,breakType:t.type,breakFormat:"reward",breakStatus:s})}},a);break}default:{let a=t;if(!this.interstitialManager){(o=t.adBreakDone)==null||o.call(t,{breakName:a.name,breakType:t.type,breakFormat:"interstitial",breakStatus:"noAdPreloaded"});return}let s=this.getConfigsByTypes(["INTERSTITIAL"],this.initProviders,r.params);this.interstitialManager.requestAds({beforeAd:a.beforeAd,afterAd:a.afterAd,onEnd:l=>{var c;(c=t.adBreakDone)==null||c.call(t,{breakName:a.name,breakType:t.type,breakFormat:"interstitial",breakStatus:l})}},s);break}}}};Di=class{constructor(t){if(Vt(this,"context",void 0),Vt(this,"contextInfo",void 0),Vt(this,"providers",{}),Vt(this,"channelPolicy",void 0),Vt(this,"adsActionDetection",void 0),Vt(this,"requestContext",void 0),Vt(this,"adsRequest",void 0),Vt(this,"initialized",!1),Vt(this,"adsIsShowing",!1),Vt(this,"lastAdBreak",void 0),Vt(this,"initializedTimeStamp",Date.now()),t)this.context=t,this.channelPolicy=new Nh(this.context),this.adsActionDetection=new Oh(this.context),this.contextInfo=this.context.getContextInfo(),this.adsRequest=new Kh(t),this.requestContext=new Ec(t);else throw new Error("JoliboxAdsForGame requires a configuration object")}init(t){return v(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){let n=r.filter(s=>s.isNative),i=r.filter(s=>!s.isNative),o={provider:"INTERNAL_NATIVE",params:{providers:n}},a=i.concat([o]);for(let s of a)switch(s.provider){case"GOOGLE_GPT":{let l=new Wh(this.context,s.params);yield l.init(),this.providers[s.provider]=l;break}case"ADSENSE":case"ADSENSE_ADMOB":{let l=new Dh(this.context,s.params);yield l.init(),this.providers[s.provider]=l;break}case"OKSPIN":{let l=new Gh(this.context,s.params);yield l.init(),this.providers.OKSPIN=l;break}case"APPSROCKETS":{let l=new Hh(this.context,s.params);yield l.init(),this.providers.APPSROCKETS=l;break}case"ADSENSE_BANNER_AS_AFG":{let l=new Jh(this.context,s.params);yield l.init(),this.providers.ADSENSE_BANNER_AS_AFG=l;break}case"INTERNAL_NATIVE":{let l=new sm(this.context,s.params);yield l.init(),this.providers.INTERNAL_NATIVE=l;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 v(this,null,function*(){var r,n,i,o,a,s,l,c,d,u,p,f,h,g,b,y;let _=Date.now();if(_-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&&_-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=_,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 I=yield this.adsRequest.getAFGAdsInfo(t.type),E=I==null?void 0:I.data,T=I==null?void 0:I.code;if(T==="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 k,C,G,ce;(k=t.beforeAd)==null||k.call(t),(C=t.adViewed)==null||C.call(t),(G=t.afterAd)==null||G.call(t),(ce=t.adBreakDone)==null||ce.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(!E||T!=="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{if(E.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 k=!0,C=null,G=new Rh(this.context);this.adsActionDetection.adBreakIsShowing=!0;let ce=E.filter(D=>D.isNative).sort((D,J)=>D.seq-J.seq),N=E.filter(D=>!D.isNative).sort((D,J)=>D.seq-J.seq),R=[{seq:(h=(f=ce[0])==null?void 0:f.seq)!=null?h:0,provider:"INTERNAL_NATIVE",params:ce}].concat(N);for(R=R.sort((D,J)=>D.seq-J.seq).map((D,J)=>q$(aP({},D),{seq:J}));R.length>0;){let D=R.shift(),J=this.providers[D.provider];if(J){let[re,Mt]=yield G.callAdBreakAndContinue(J,t,D,Bc=>{var Gc;this.adsIsShowing=Bc,(Gc=this.context.eventEmitter)==null||Gc.emit("isAdShowing",Bc)});k=re,C=Mt}else k=!0,C={breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"};if(!k)break}k&&C&&((g=t.adBreakDone)==null||g.call(t,C))}}catch(I){(b=t.adBreakDone)==null||b.call(t,{breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}finally{this.adsIsShowing=!1,(y=this.context.eventEmitter)==null||y.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.")}},hoe=ot`
870
870
  ${Fe}
871
871
  position: fixed;
872
872
  left: 0;
@@ -911,4 +911,4 @@ If multiple caches share the same key they might "fight" for each other's style
911
911
  cursor: pointer;
912
912
  }
913
913
  }
914
- `});function KT(){let e=new Map,t,r;return{registerRewardHandler(i,o){e.set(i,o)},handleReward(i,...o){return v(this,null,function*(){return yield i.reduce((s,l)=>v(this,null,function*(){let c=yield s;if(c===!0)return!0;zT&&console.log(`handleReward ${l}`);let d=e.get(l),u=d?yield d(...o):c;return zT&&console.log(`handleReward ${l} ${u}`),u}),Promise.resolve(!1))})},registerRewardsFetcher(i){return v(this,null,function*(){t=(...o)=>v(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),["ADS"]}})})},registerRewardFrequencyConfigFetcher(i){return v(this,null,function*(){r=(...o)=>v(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),{joliCoinUseAndCharge:Cr,loginGuide:xr}}})})},getRewardsTypes(...i){return v(this,null,function*(){return t?yield t(...i):["ADS"]})},getRewardFrequencyConfig(...i){return v(this,null,function*(){return r?yield r(...i):{joliCoinUseAndCharge:Cr,loginGuide:xr}})}}}var zT,YT=x(()=>{"use strict";J();Be();zT=I.testMode});var pm,fm,Oc,QT=x(()=>{"use strict";O();pm=class{constructor(t){this.httpClient=t}execute(t,r){return v(this,null,function*(){let n=(r==null?void 0:r.method)||"POST",i=(r==null?void 0:r.body)||{};return n==="GET"?yield this.httpClient.get(t,i):yield this.httpClient.post(t,i)})}extractCacheableData(t){var r,n,i;return{unlockOptions:((r=t.data)==null?void 0:r.unlockOptions)||[],joliCoin:((n=t.extra)==null?void 0:n.joliCoin)||{balance:0,enableAutoDeduct:!1},joliGem:((i=t.extra)==null?void 0:i.joliGem)||{balance:0,enableAutoDeduct:!1}}}mergeData(t,r){return{code:"SUCCESS",message:"success",data:{unlockOptions:t.unlockOptions},extra:{joliCoin:t.joliCoin||{balance:0,enableAutoDeduct:!1},joliGem:t.joliGem||{balance:0,enableAutoDeduct:!1}}}}processCachedData(t){return{code:"SUCCESS",message:"success from cache",data:{unlockOptions:t.unlockOptions},extra:{joliCoin:t.joliCoin,joliGem:t.joliGem}}}},fm=class{constructor(t){this.httpClient=t}execute(t,r){return v(this,null,function*(){let n=(r==null?void 0:r.method)||"GET",i=(r==null?void 0:r.body)||{};return n==="GET"?yield this.httpClient.get(t,i):yield this.httpClient.post(t,i)})}extractCacheableData(t){let r=t.data;return T({joliCoinUseAndCharge:r==null?void 0:r.joliCoinUseAndCharge,loginGuide:r==null?void 0:r.loginGuide},r)}processCachedData(t){return{code:"SUCCESS",message:"success from cache",data:t}}},Oc=class{constructor(t){this.unlockOptionsService=new Mt(new pm(t),{duration:30*60*1e3,timeout:1e3,keyGenerator:r=>r,consistencyChecker:(r,n)=>r.unlockOptions.length!==n.unlockOptions.length?!1:r.unlockOptions.every((i,o)=>{var s,l;let a=n.unlockOptions[o];return i.type===a.type&&((s=i.joliGemChoice)==null?void 0:s.joliGemQuantity)===((l=a.joliGemChoice)==null?void 0:l.joliGemQuantity)})}),this.globalConfigService=new Mt(new fm(t),{duration:60*60*1e3,timeout:1e3,keyGenerator:r=>r})}getUnlockOptions(){return v(this,arguments,function*(t={}){return yield this.unlockOptionsService.request("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",body:t,method:"POST"})})}getGlobalConfig(){return v(this,null,function*(){return yield this.globalConfigService.request("/api/fe-configs/web-common/global-config",{endpoint:"/api/fe-configs/web-common/global-config",method:"GET"})})}refreshUnlockOptions(){return v(this,arguments,function*(t={}){return yield this.unlockOptionsService.forceRequest("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",body:t,method:"POST"})})}refreshGlobalConfig(){return v(this,null,function*(){return yield this.globalConfigService.forceRequest("/api/fe-configs/web-common/global-config",{endpoint:"/api/fe-configs/web-common/global-config",method:"GET"})})}warmupCache(){return v(this,null,function*(){yield Promise.all([this.unlockOptionsService.warmupCache("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",method:"POST"}),this.globalConfigService.warmupCache("/api/fe-configs/web-common/global-config",{endpoint:"/api/fe-configs/web-common/global-config",method:"GET"})])})}clearAllCache(){this.unlockOptionsService.clearCache(),this.globalConfigService.clearCache()}getCacheStats(){return{unlockOptions:this.unlockOptionsService.getCacheStats(),globalConfig:this.globalConfigService.getCacheStats()}}clearExpiredCache(){this.unlockOptionsService.clearExpiredCache(),this.globalConfigService.clearExpiredCache()}}});function mm(e){return hm||(hm=new Oc(e)),hm}var _z,wz,Sz,hm,gm,vm,ym,bm=x(()=>{"use strict";QT();Be();O();_z=()=>(e,t)=>{let r={SUBSCRIPTION:4,JOLI_GEM:3,JOLI_GEM_ONLY:3,JOLI_COIN:2,JOLI_COIN_ONLY:2,ADS:1};return r[t]-r[e]},wz=["openJolicoinGuide",{method:"getABTest",platforms:["android"],nativeVersionCode:1050100},"userTrackAsync",{method:"openMiniapp",nativeVersionCode:1050100}],Sz=e=>{if(!e.length)return["ADS"];if(e.includes("JOLI_GEM")){if(e.length===1)return["JOLI_GEM_ONLY"];if(e.includes("SUBSCRIPTION")&&e.length===2)return["SUBSCRIPTION","JOLI_GEM_ONLY"]}if(e.includes("JOLI_COIN")){if(e.length===1)return["JOLI_COIN_ONLY"];if(e.includes("SUBSCRIPTION")&&e.length===2)return["SUBSCRIPTION","JOLI_COIN_ONLY"]}return e.sort(_z())},hm=null;gm=e=>{e.registerRewardsFetcher(t=>v(void 0,null,function*(){var i,o,a,s,l;let r=["ADS"],n=mm(t);try{let c=yield n.getUnlockOptions({});if(c.code!=="SUCCESS")return r;q.emit(Gl,{options:((i=c.data)==null?void 0:i.unlockOptions)||[],userJoliCoin:((o=c.extra)==null?void 0:o.joliCoin)||{balance:0,enableAutoDeduct:!1},userGem:((a=c.extra)==null?void 0:a.joliGem)||{balance:0,enableAutoDeduct:!1}});let d=((l=(s=c.data)==null?void 0:s.unlockOptions)==null?void 0:l.map(u=>u.type))||Array.from(r);return Sz(d)}catch(c){return console.error("getRewardOptions error (cached):",c),r}}))},vm=e=>{e.registerRewardFrequencyConfigFetcher(t=>v(void 0,null,function*(){var n,i,o,a;let r=mm(t);try{let s=yield r.getGlobalConfig();return q.emit($t,{joliCoinUseAndCharge:((n=s.data)==null?void 0:n.joliCoinUseAndCharge)||Cr,loginGuide:((i=s.data)==null?void 0:i.loginGuide)||xr}),s.data&&_e.emit("onGlobalConfigChanged",{globalConfig:s.data}),{joliCoinUseAndCharge:((o=s.data)==null?void 0:o.joliCoinUseAndCharge)||Cr,loginGuide:((a=s.data)==null?void 0:a.loginGuide)||xr}}catch(s){return console.error("getGlobalConfig error (cached):",s),q.emit($t,{joliCoinUseAndCharge:Cr,loginGuide:xr}),_e.emit("onGlobalConfigChanged",{globalConfig:{joliCoinUseAndCharge:Cr,loginGuide:xr,supportedHostMethods:wz}}),{joliCoinUseAndCharge:Cr,loginGuide:xr}}}))},ym=e=>v(void 0,null,function*(){yield mm(e).warmupCache(),console.log("Reward cache warmed up")})});var _m=x(()=>{"use strict";bm();bm()});var XT,ZT=x(()=>{"use strict";XT=e=>t=>v(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 Ne,qi,Ct=x(()=>{"use strict";Be();sr();Be();Ne=Ge(q,Gl),qi=(e,t)=>{var n;let r=(n=e.options)==null?void 0:n.some(i=>i.type==="SUBSCRIPTION");return console.log("typeof extraCheck",typeof t,t==null?void 0:t()),r&&(!t||(t==null?void 0:t()))}});var Nc,wm=x(()=>{"use strict";Nc={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 gt,sn=x(()=>{"use strict";O();gt=W()});function eR(e){return Sm||(Sm=new Em(e)),Sm}var Im,Em,Sm,Am,Ln,Ui=x(()=>{"use strict";O();Im=class{constructor(t){this.httpClient=t}execute(t,r){return v(this,null,function*(){let n=(r==null?void 0:r.method)||"GET",i=(r==null?void 0:r.query)||{};return n==="GET"?yield this.httpClient.get(t,{query:i}):yield this.httpClient.post(t,{query:i})})}extractCacheableData(t){var r;return{balance:((r=t.data)==null?void 0:r.balance)||0,timestamp:Date.now()}}processCachedData(t){return{code:"SUCCESS",message:"success from cache",data:{balance:t.balance}}}},Em=class{constructor(t){this.balanceService=new Mt(new Im(t),{duration:20*60*1e3,timeout:1e3,keyGenerator:(r,n)=>{let i=n!=null&&n.query?JSON.stringify(n.query):"";return`${r}:${i}`}})}getBalance(t="JOLI_COIN"){return v(this,null,function*(){return(yield this.balanceService.request("/api/joli-coin/balance",{endpoint:"/api/joli-coin/balance",query:{type:t},method:"GET"})).data})}refreshBalance(t="JOLI_COIN"){return v(this,null,function*(){return(yield this.balanceService.forceRequest("/api/joli-coin/balance",{endpoint:"/api/joli-coin/balance",query:{type:t},method:"GET"})).data})}warmupBalance(t="JOLI_COIN"){return v(this,null,function*(){yield this.balanceService.warmupCache("/api/joli-coin/balance",{endpoint:"/api/joli-coin/balance",query:{type:t},method:"GET"})})}clearBalanceCache(){this.balanceService.clearCache()}getBalanceCacheStats(){return this.balanceService.getCacheStats()}clearExpiredCache(){this.balanceService.clearExpiredCache()}},Sm=null;Am=(e,t="JOLI_COIN")=>v(void 0,null,function*(){return yield eR(e).getBalance(t)}),Ln=(e,t="JOLI_COIN")=>v(void 0,null,function*(){let n=yield eR(e).refreshBalance(t);return console.log(`Balance cache refreshed for type: ${t}`),n})});var tR=x(()=>{"use strict";Ui()});function Pm(e){return km||(km=new xm(e)),km}var Cm,xm,km,Tm,qn,Dc,Mi=x(()=>{"use strict";O();Cm=class{constructor(t){this.httpClient=t}execute(t,r){return v(this,null,function*(){let n=(r==null?void 0:r.method)||"GET",i=(r==null?void 0:r.query)||{};return n==="GET"?yield this.httpClient.get(t,{query:i}):yield this.httpClient.post(t,{query:i})})}extractCacheableData(t){var r;return{balance:((r=t.data)==null?void 0:r.balance)||0,timestamp:Date.now()}}processCachedData(t){return{code:"SUCCESS",message:"success from cache",data:{balance:t.balance}}}},xm=class{constructor(t){this.gemBalanceService=new Mt(new Cm(t),{duration:20*60*1e3,timeout:1e3,keyGenerator:(r,n)=>{let i=n!=null&&n.query?JSON.stringify(n.query):"";return`${r}:${i}`}})}getGemBalance(t="GEM"){return v(this,null,function*(){return(yield this.gemBalanceService.request("/api/joli-gem/balance",{endpoint:"/api/joli-gem/balance",query:{type:t},method:"GET"})).data})}refreshGemBalance(t="GEM"){return v(this,null,function*(){return(yield this.gemBalanceService.forceRequest("/api/joli-gem/balance",{endpoint:"/api/joli-gem/balance",query:{type:t},method:"GET"})).data})}warmupGemBalance(t="GEM"){return v(this,null,function*(){yield this.gemBalanceService.warmupCache("/api/joli-gem/balance",{endpoint:"/api/joli-gem/balance",query:{type:t},method:"GET"})})}clearGemBalanceCache(){this.gemBalanceService.clearCache()}getGemBalanceCacheStats(){return this.gemBalanceService.getCacheStats()}clearExpiredCache(){this.gemBalanceService.clearExpiredCache()}},km=null;Tm=(e,t="GEM")=>v(void 0,null,function*(){return yield Pm(e).getGemBalance(t)}),qn=(e,t="GEM")=>v(void 0,null,function*(){let n=yield Pm(e).refreshGemBalance(t);return console.log(`Gem balance cache refreshed for type: ${t}`),n}),Dc=(e,t="GEM")=>v(void 0,null,function*(){yield Pm(e).warmupGemBalance(t),console.log(`Gem balance cache warmed up for type: ${t}`)})});var rR=x(()=>{"use strict";Mi()});var Lt,Un=x(()=>{"use strict";tR();rR();Lt={JOLI_COIN:{fetchBalance:Am,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:Tm,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 ya,qr,Rm=x(()=>{"use strict";sn();Ct();sr();Be();Be();Un();ya=(e,t,r)=>{let{showUnlockWithCurrencyModal:n}=r;gt.registerCommand(`Rewards.${e}.useJolicoin`,()=>v(void 0,null,function*(){let i=yield Ne.getData(),o=Lt[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"}}))},qr=(e,t)=>r=>v(void 0,null,function*(){let n=Ge(q,Cn);return q.emit(Hl,e,{enableAutoDeduct:r.enableAutoDeduct,userCurrency:r.userCurrency,quantity:r.quantity,currency:r.currency,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).useModalResult})});var ba,Ur,nR=x(()=>{"use strict";sn();Ct();Be();sr();Be();Un();Mi();Ui();ba=(e,t,r)=>{let{httpClient:n,initiateAndAwaitPayment:i}=r;gt.registerCommand(`Rewards.${e}.usePayment`,()=>v(void 0,null,function*(){var p;let o=yield Ne.getData(),a=Lt[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();if(Ne.updateData({[u]:d}),console.log("-----unlockOptions payment-----",o,d,l,t),!a.isEnough(o,d)){let f=yield i({userCurrency:d,currencyQuantity:l,currency:t});return t==="JOLI_GEM"?qn(n):Ln(n),{result:f==="SUCCESS"?"SUCCESS":"FAILED"}}return{result:"CONTINUE"}}))},Ur=(e,t)=>r=>v(void 0,null,function*(){let n=Ge(q,Ht);return q.emit(Jl,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 Om,Mr,iR=x(()=>{"use strict";J();sn();sr();Be();Be();O();Ct();Un();Om=(e,t,r)=>{let{showUnloginModal:n,httpClient:i}=r;gt.registerCommand(`Rewards.${e}.useUnloginModal`,()=>v(void 0,null,function*(){var s,l,c;let o=(s=I.hostUserInfo)==null?void 0:s.isLogin,a=yield Ne.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 Oa(3e3));let f=Lt[t],h=yield f.fetchBalance(i),g=f.getQuantity(a),b=f.getCurrentUser(a),y=f.createUpdatedUser((c=h==null?void 0:h.balance)!=null?c:0,b.enableAutoDeduct),_=f.getUpdateKey();if(Ne.updateData({[_]:y}),y.balance>=g)return{result:"SUCCESS"}}}return{result:"CONTINUE"}}))},Mr=(e,t)=>r=>v(void 0,null,function*(){let n=Ge(q,kr);return q.emit($l,e,{confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText,currency:r}),yield n.getFreshData()})});var Mn=x(()=>{"use strict";Rm();nR();iR()});var Ez,Lc,Nm=x(()=>{"use strict";J();O();wm();Mn();sn();Ui();Un();Ct();Ez=(e,t,r,{handlers:{handleUnlockSuccess:n,handleUnlockFailed:i,unlockOptionsHandler:o,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:s,showUnloginModal:l,hasSubscription:c}})=>{ba(e,"JOLI_COIN",{httpClient:t,initiateAndAwaitPayment:a}),ya(e,"JOLI_COIN",{showUnlockWithCurrencyModal:s});let d=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return u=>v(void 0,null,function*(){var p,f,h,g;try{let b=yield o.getData();if(qi(b,c)){let E=Lt.JOLI_COIN,P=yield E.fetchBalance(t),C=E.getCurrentUser(b),k=E.createUpdatedUser((p=P==null?void 0:P.balance)!=null?p:0,C.enableAutoDeduct);if(!E.isEnough(b,k))return i==null||i(u),!1}else{let E=!0;for(let P of d){let C=yield gt.executeCommand(P);if(E=E&&C.result!=="FAILED",C.result!=="CONTINUE")break}if(!E)return i==null||i(u),!1}let _=Nc[r],S=yield t.post(_.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${Gn()}-${I.mpType}-${Date.now()}`,gameInfo:{gameId:I.mpId}}});if(console.log("-----unlockWithCurrency request result-----",S),S.code=="SUCCESS"){try{(h=u.adBreakDone)==null||h.call(u,{breakType:u.type,breakName:"name"in u&&(f=u.name)!=null?f:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in u&&((g=u.adViewed)==null||g.call(u)),Ln(t)}catch(E){console.error("-----unlockWithJolicoin adBreakDone error-----",E)}return n==null||n({quantity:S.data.quantity,balance:S.data.balance}),!0}return i==null||i(u),!1}catch(b){if(console.info("JolicoinRewardHandler error:",b),b instanceof Error&&b.message=="CANCEL")throw b;return i==null||i(u),!1}finally{o.clearCache()}})},Lc=(e,t,r)=>Ez(e,t,"JOLI_COIN",r)});var oR,aR=x(()=>{"use strict";Ct();Nm();Mn();oR=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=qr("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),a=Ur("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),s=Mr("ADS-JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return Lc("ADS-JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Ne,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var sR,lR=x(()=>{"use strict";Nm();Ct();Mn();sR=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=c=>{var d;r==null||r(),(d=c.adBreakDone)==null||d.call(c,{breakType:c.type,breakFormat:c.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},o=qr("JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),a=Ur("JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),s=Mr("JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return Lc("JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Ne,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var qc,Dm=x(()=>{"use strict";J();O();wm();Mn();Rm();sn();Mi();Un();Ct();qc=(e,t,{handlers:{handleUnlockSuccess:r,handleUnlockFailed:n,unlockOptionsHandler:i,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:a,showUnloginModal:s,hasSubscription:l}})=>{Om(e,"JOLI_GEM",{httpClient:t,showUnloginModal:s}),ba(e,"JOLI_GEM",{httpClient:t,initiateAndAwaitPayment:o}),ya(e,"JOLI_GEM",{showUnlockWithCurrencyModal:a});let c=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return d=>v(void 0,null,function*(){var u,p,f,h;try{let g=yield i.getData(),b=qi(g,l);if(console.log("[GemHandler] supportSubscription",b,g),b){let S=Lt.JOLI_GEM,E=yield S.fetchBalance(t),P=S.getCurrentUser(g),C=S.createUpdatedUser((u=E==null?void 0:E.balance)!=null?u:0,P.enableAutoDeduct);if(!S.isEnough(g,C))return n==null||n(d),!1}else{let S=!0;for(let E of c){let P=yield gt.executeCommand(E);if(console.log("[GemHandler] command result",P,E),S=S&&P.result!=="FAILED",P.result!=="CONTINUE")break}if(!S)return n==null||n(d),!1}let y=Nc.GEM,_=yield t.post(y.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${Gn()}-${I.mpType}-${Date.now()}`,gameInfo:{gameId:I.mpId}}});if(console.log("-----unlockWithGem request result-----",_),_.code=="SUCCESS"){try{(f=d.adBreakDone)==null||f.call(d,{breakType:d.type,breakName:"name"in d&&(p=d.name)!=null?p:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in d&&((h=d.adViewed)==null||h.call(d)),qn(t)}catch(S){console.error("-----unlockWithGem adBreakDone error-----",S)}return r==null||r({quantity:_.data.quantity,balance:_.data.balance}),!0}return n==null||n(d),!1}catch(g){if(console.info("GemRewardHandler error:",g),g instanceof Error&&g.message=="CANCEL")throw g;return n==null||n(d),!1}finally{i.clearCache()}})}});var cR,uR=x(()=>{"use strict";Ct();Dm();Mn();cR=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=qr("ADS-JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),a=Ur("ADS-JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),s=Mr("ADS-JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return qc("ADS-JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Ne,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var dR,pR=x(()=>{"use strict";Dm();Ct();Mn();dR=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=c=>{var d;r==null||r(),(d=c.adBreakDone)==null||d.call(c,{breakType:c.type,breakFormat:c.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},o=qr("JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),a=Ur("JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),s=Mr("JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return qc("JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Ne,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var fR,hR,Lm=x(()=>{"use strict";Un();sn();Ct();sr();Be();Be();fR=e=>{let{showSubscriptionModal:t}=e;gt.registerCommand("Rewards.subscription",()=>v(void 0,null,function*(){var s,l;let r=yield Ne.getData(),n=(l=(s=r==null?void 0:r.options)==null?void 0:s.find(c=>c.type==="JOLI_GEM"))==null?void 0:l.type,i=Lt[n?"JOLI_GEM":"JOLI_COIN"],o=i.getCurrentUser(r);return i.isEnough(r,o)?{result:"FAILED"}:{result:(yield t())==="SUCCESS"?"SUCCESS":"FAILED"}}))},hR=e=>()=>v(void 0,null,function*(){let t=Ge(q,xn);return q.emit(Vl,e),(yield t.getFreshData()).result})});var mR=x(()=>{"use strict";Lm()});var gR,vR=x(()=>{"use strict";sn();mR();J();Ct();Ui();Mi();gR=(e,t,{handlers:{handleSubSuccess:r,handleSubFailed:n,unlockOptionsHandler:i,showSubscriptionModal:o,hasSubscription:a}})=>{fR({showSubscriptionModal:o});let s=["Rewards.subscription"];return l=>v(void 0,null,function*(){var c,d,u,p,f,h;try{let g=yield i.getData();if(!qi(g,a))return!1;let y=!0;for(let _ of s){let S=yield gt.executeCommand(_);if(y=y&&S.result!=="FAILED",S.result!=="CONTINUE")break}if(Ln(t),qn(t),console.log("-----unlockWithSubscription result-----",y),y){try{(d=l.adBreakDone)==null||d.call(l,{breakType:l.type,breakName:"name"in l&&(c=l.name)!=null?c:"",breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"viewed"}),"adViewed"in l&&((u=l.adViewed)==null||u.call(l)),(h=(f=I).onEnvConfigChanged)==null||h.call(f,{hostUserInfo:B(T({},(p=I.hostUserInfo)!=null?p:{isLogin:!1}),{isSubUser:!0})})}catch(_){console.error("-----unlockWithSubscription adBreakDone error-----",_)}return r==null||r(),!0}return n==null||n(l),!1}catch(g){if(console.info("SubscriptionRewardHandler error:",g),g instanceof Error&&g.message=="CANCEL")throw g;return n==null||n(l),!1}finally{}})}});var yR,bR=x(()=>{"use strict";Ct();vR();Lm();yR=(e,{onSubSuccess:t,onSubFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=hR("SUBSCRIPTION");return gR("SUBSCRIPTION",e,{handlers:{handleSubSuccess:t,handleSubFailed:i,unlockOptionsHandler:Ne,showSubscriptionModal:o,hasSubscription:n}})}});var qt,_R=x(()=>{"use strict";YT();_m();ZT();aR();lR();uR();pR();bR();Ui();Mi();qt=KT();gm(qt);vm(qt)});var Uc,Az,dr,kz,_a,Cz,wR,SR,xz,Pz,qm,Tz,Rz,Oz,IR=x(()=>{"use strict";O();Je();ar();IP();WT();Tt();J();yt();ue();_R();Uu();_m();Uc=W(),Az=()=>{let{data:e}=F("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},dr={get:(e,t)=>ne(e,T({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>ne(e,T({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},kz={httpClient:dr,checkNetwork:Az,track:j,eventEmitter:is,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,c;return{hostAppId:(t=(e=I.hostInfo)==null?void 0:e.aid)!=null?t:"1",deviceId:(r=I.deviceInfo.did)!=null?r:"",adId:(n=I.deviceInfo.adId)!=null?n:"",sessionId:(i=I.sessionId)!=null?i:"",userId:(a=(o=I.hostUserInfo)==null?void 0:o.uid)!=null?a:"",objectType:"GAME",objectId:I.mpId,testAdsMode:I.testAdsMode,channel:(s=I.joliSource)!=null?s:"",deviceBrand:I.deviceInfo.brand,deviceModel:I.deviceInfo.model,osType:I.platform==="android"?"ANDROID":I.platform==="ios"?"IOS":"PC",runtimeType:"APP",platform:1e3,joliSource:(l=I.joliSource)!=null?l:"",deviceInfo:{platform:I.platform,nativeSDKVersionCode:(c=I.sdkInfo.nativeSDKVersionCode)!=null?c:0}}}},_a=new Ac(kz);qt.getRewardFrequencyConfig(dr).then(e=>{console.log("getRewardFrequencyConfig",e)});qt.registerRewardHandler("ADS",XT(_a));qt.registerRewardHandler("JOLI_COIN",oR(dr,{onUnlockSuccess:e=>{wR(e),j("jolicoin_unlock_success",{quantity:e.quantity})},onUnlockFailed:()=>{console.log("onUnlockFailed")},hasSubscription:()=>je("invokeSubscriptionPanelSync")}));qt.registerRewardHandler("JOLI_COIN_ONLY",sR(dr,{onUnlockSuccess:e=>{wR(e),j("jolicoin_unlock_success",{quantity:e.quantity,isOnly:!0})},onUnlockFailed:()=>{console.log("onUnlockFailed")},hasSubscription:()=>je("invokeSubscriptionPanelSync")}));qt.registerRewardHandler("JOLI_GEM",cR(dr,{onUnlockSuccess:e=>{SR(e),j("gem_unlock_success",{quantity:e.quantity})},hasSubscription:()=>je("invokeSubscriptionPanelSync")}));qt.registerRewardHandler("JOLI_GEM_ONLY",dR(dr,{onUnlockSuccess:e=>{SR(e),j("gem_unlock_success",{quantity:e.quantity,isOnly:!0})},hasSubscription:()=>je("invokeSubscriptionPanelSync")}));Cz=()=>{j("subscription_unlock_success",{})};qt.registerRewardHandler("SUBSCRIPTION",yR(dr,{onSubSuccess:Cz.bind(void 0),hasSubscription:()=>je("invokeSubscriptionPanelSync")}));wR=e=>{let{quantity:t}=e,r=`{slot-coin} ${t} {slot-i18n-jolicoin.coinUsed}`;Ar(r,{customStyle:{mark:{marginRight:"8px"},base:{with:"auto"}},i18nParams:{text:"Jolicoin Used"}})};ym(dr);Dc(dr);SR=e=>{let{quantity:t}=e,r=`{slot-correct} ${t*-1} {slot-gem}`;Ar(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"}}})},xz=K("adInit",{implement:e=>{_a.init(e)}}),Pz=K("adConfig",{implement:e=>{_a.adConfig(e)}}),qm=!1,Tz=e=>{var t,r,n;(r=e.adBreakDone)==null||r.call(e,{breakType:e.type,breakName:"name"in e&&(t=e.name)!=null?t:"",breakFormat:e.type==="reward"?"reward":"interstitial",breakStatus:"viewed"}),"adViewed"in e&&((n=e.adViewed)==null||n.call(e))},Rz=K("adBreak",{implement:e=>{var r;if((r=I.hostUserInfo)==null?void 0:r.isSubUser){Tz(e);return}if(e.type==="reward"){if(qm)return;qm=!0,qt.getRewardsTypes(dr).then(n=>{qt.handleReward(n,e).catch(i=>{var o;console.info("handleReward failed in native",i),(o=e.adBreakDone)==null||o.call(e,{breakType:e.type,breakFormat:e.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}).finally(()=>{qm=!1})})}else _a.adBreak(e)}}),Oz=K("adUnit",{implement:e=>{_a.adUnit(e)}});Uc.registerCommand("AdsSDK.init",xz);Uc.registerCommand("AdsSDK.adConfig",Pz);Uc.registerCommand("AdsSDK.adBreak",Rz);Uc.registerCommand("AdsSDK.adUnit",Oz);M("AdsSDK.init",{version:"1.0.0"});M("AdsSDK.adConfig",{version:"1.0.0"});M("AdsSDK.adBreak",{version:"1.0.0"});M("AdsSDK.adUnit",{version:"1.0.0"})});var wa,Nz,Dz,Lz,qz,Uz,ER=x(()=>{"use strict";O();ue();Je();J();wa=W(),Nz=K("openSchemaSync",{paramsSchema:A.tuple(A.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${I.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=F("openSchemaSync",{schema:t});if(r.errNo!==0)throw new Wt(r.errMsg,r.errNo)}}),Dz=K("openPageSync",{paramsSchema:A.tuple(A.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=F("openPageSync",{url:e});if(t!==0||!n)throw new Wt(r,t);return{webviewId:n.webviewId}}}),Lz=K("closePageSync",{paramsSchema:A.tuple(A.number()),implement:e=>{let{errNo:t,errMsg:r}=F("closePageSync",{webviewId:e});if(t!==0)throw new Wt(r,t)}}),qz=K("interceptSystemExitSync",{paramsSchema:A.tuple(A.boolean()),implement:e=>{_e.emit("onInterceptSystemExit",{intercept:e}),_e.emit("onInterceptBackPress",{intercept:e})}}),Uz=K("navigateToNativePage",{paramsSchema:A.tuple(A.enum("openHistory","openDiscover","openDiscover","openGame","openDrama","openTopup","openFeed","openRewards"),A.object()),implement:(e,t)=>{F("callHostMethodAsync",{method:e,params:T({},t)})}});wa.registerCommand("RouterSDK.openSchema",Nz);wa.registerCommand("RouterSDK.openPage",Dz);wa.registerCommand("RouterSDK.closePage",Lz);wa.registerCommand("RouterSDK.interceptSystemExit",qz);wa.registerCommand("RouterSDK.navigateToNativePage",Uz);M("router.openSchema",{version:"1.1.10"});M("router.openPage",{version:"1.1.10"});M("router.closePage",{version:"1.1.10"});M("router.interceptSystemExit",{version:"1.1.18"});M("router.navigateToNativePage",{version:"1.1.19"})});function jz(e){iu("cpLoadProgressEvent",{progress:e},I.webviewId,!0)}var kR,Mz,Mc,Um,AR,Fz,Bz,CR=x(()=>{"use strict";O();Je();ue();J();Tt();kR=W(),Mz=K("onLoadFinished",{implement:()=>{iu("cpLoadFinishEvent",{},I.webviewId,!0),j("loadFinished",{duration:performance.now()})}}),Mc=null,Um=!1,AR=0,Fz=200;Bz=K("onLoadProgress",{paramsSchema:A.tuple(A.number()),implement:e=>{Mc=e,Um||(Um=!0,requestAnimationFrame(function t(){let r=Date.now();r-AR>=Fz?(Mc!==null&&(jz(Mc),AR=r,Mc=null),Um=!1):requestAnimationFrame(t)}))}});kR.registerCommand("RuntimeSDK.loadFinishedEvent",Mz);kR.registerCommand("RuntimeSDK.loadProgressEvent",Bz)});var Gz,Jz,Hz,xR=x(()=>{"use strict";O();Je();J();Gz=W(),Jz="isNativeSupport",Hz=K(Jz,{paramsSchema:A.tuple(A.object({version:A.string()})),implement:e=>{let t=I.sdkInfo.nativeSDKVersionCode,{version:r}=e;return r?{code:"SUCCESS",data:Cg(qu(t!=null?t:0),r,">=")}:{code:"FAILURE",message:"[Jolibox SDK] api or versionCode is required",data:!1}}});Gz.registerCommand("API.isNativeSupport",Hz);M("isNativeSupport",{version:"1.1.46"})});var TR=m(Mm=>{"use strict";Je();ue();O();O();J();var PR=W(),$z=oe("callHostMethod",{paramsSchema:A.tuple(A.object({method:A.string(),params:A.object().optional().default({})})),implement:r=>v(Mm,[r],function*({method:e,params:t}){if(!je(e))throw new Wt("Method not supported",10001);let{errNo:n,errMsg:i,data:o}=yield F("callHostMethodAsync",{method:e,params:T({},t)});if(n!==0)throw new Wt(i,n);let l=o,{callHostMethodId:a}=l,s=Qe(l,["callHostMethodId"]);return T({},s)})});PR.registerCommand("API.callHostMethod",$z);M("callHostMethod",{version:"1.1.49"});var Vz=oe("userTrackAsync",{paramsSchema:A.tuple(A.object({event:A.string(),eventType:A.number(),params:A.object().optional().default({})})),implement:n=>v(Mm,[n],function*({event:e,eventType:t,params:r}){if(!je("userTrackAsync"))throw new Wt("Method not supported",10001);let{errNo:i,errMsg:o}=yield F("trackAsync",{event:e,eventType:t,data:T({},r),webviewId:I.webviewId});if(i!==0)throw new Wt(o,i)})});PR.registerCommand("API.track",Vz);M("track",{version:"1.1.53"})});var OR=m(Fi=>{"use strict";O();Je();rh();jr();dh();var Sa=W(),RR=Xl(),Wz=oe("purchaseGem",{paramsSchema:A.tuple(A.object({productId:A.string()})),implement:e=>v(Fi,null,function*(){var r,n;let t=yield RR.purchase(e.productId);if(t.code!=="SUCCESS")throw Xe({code:-1,msg:"[JoliboxSDK]: purchase gem failed: "+t.message});return{totalAmount:(n=(r=t.data)==null?void 0:r.totalAmount)!=null?n:""}})}),zz=oe("getGemProducts",{paramsSchema:A.tuple(),implement:()=>v(Fi,null,function*(){var t,r;let e=(r=(t=yield RR.getProductsInfoWithBalance())==null?void 0:t.paymentChoices)!=null?r:[];return console.info("choices",e),{products:e.map(n=>{var i;return{productId:n.productId,totalAmountStr:(i=n.totalAmountStr)!=null?i:"",quantity:n.quantity}})}})}),Kz=oe("getSubscriptionPlans",{paramsSchema:A.tuple(),implement:()=>v(Fi,null,function*(){let e=yield Nn.getSubInfo();if(console.log("[PaymentAPI] getSubscriptionPlans result",e),!e)throw Xe({code:-1,msg:"[JoliboxSDK]: get subscription plans failed"});return{plans:e}})}),Yz=oe("flushSubInfoCache",{paramsSchema:A.tuple(),implement:()=>v(Fi,null,function*(){yield Nn.updateAllNativePriceCache()})}),Qz=oe("subscribe",{paramsSchema:A.tuple(A.object({productId:A.string()})),implement:e=>v(Fi,null,function*(){var a;let t=yield Nn.getTierByProductId(e.productId);if(!t)throw Xe({code:-1,msg:"[JoliboxSDK]: product not found"});let{basePlanId:r,appStoreProductId:n,nativeProductId:i}=t,o=yield Nn.subscribe({basePlanId:r,nativeProductId:i,appStoreProductId:n});return{result:o.result,subPlanId:o.subPlanId,errMsg:(a=o.message)!=null?a:""}})});Sa.registerCommand("PaymentSDK.purchaseGem",Wz);Sa.registerCommand("PaymentSDK.getGemProducts",zz);Sa.registerCommand("PaymentSDK.getSubscriptionPlans",Kz);Sa.registerCommand("PaymentSDK.subscribe",Qz);Sa.registerCommand("PaymentSDK.flushSubInfoCache",Yz);M("payment.purchaseGem",{version:"1.2.9"});M("payment.getGemProducts",{version:"1.2.9"});M("payment.getSubscriptionPlans",{version:"1.2.9"});M("payment.subscribe",{version:"1.2.9"});M("payment.flushSubInfoCache",{version:"1.2.9"})});var NR=m(Fm=>{"use strict";O();Je();J();jr();ue();var Xz=W(),Zz=Bn(reportError),e6=oe("getCoinDetails",{paramsSchema:A.tuple(A.function().optional()),implement:e=>v(Fm,null,function*(){try{if(I.mpType!=="miniApp")return reportError(Xe({code:-1,msg:"[JoliboxSDK]: rewards info not supported in games. Only supported in mini apps."})),{code:"FAILURE",message:"[JoliboxSDK]: rewards info not supported in games. Only supported in mini apps."};if(!je("requestCoinDetailsSync"))return reportError(Xe({code:-1,msg:"[JoliboxSDK]: rewards info not supported in this platform."})),{code:"FAILURE",message:"[JoliboxSDK]: rewards info not supported in this platform. lower than 1.7.1"};let r=e?Zz(e):(()=>{console.log("default update function called")}).bind(Fm),{errNo:n,errMsg:i,data:o}=F("requestCoinDetailsSync");if(n!==0)throw Xe({code:n!=null?n:-1,msg:i});return console.log("=====> sync data",o,n),F("requestCoinDetailsAsync").then(a=>{a.errNo==0&&a.data&&(r(a.data),console.log("=====> res.data",a.data))}),{code:"SUCCESS",message:"Successfully retrieved coin details",data:o}}catch(t){return{code:"FAILURE",message:"[JoliboxSDK]: Failed to get coin details: "+t.message}}})});Xz.registerCommand("RewardsSDK.getCoinDetails",e6);M("rewards.getCoinDetails",{version:"1.3.2"})});var t6={};var $ce,Kce,tue,rue,nue,DR=x(()=>{"use strict";_x();$ce=se(wx());xx();eo();Px();Kce=se(Tx());jl();IR();ER();CR();xR();tue=se(TR()),rue=se(OR()),nue=se(NR())});var LR=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[LR])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[LR]=!0;v(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(yx(),vx)),Promise.resolve().then(()=>(DR(),t6)),Promise.resolve().then(()=>(Tt(),fv))]);e()});
914
+ `});function KP(){let e=new Map,t,r;return{registerRewardHandler(i,o){e.set(i,o)},handleReward(i,...o){return v(this,null,function*(){return yield i.reduce((s,l)=>v(this,null,function*(){let c=yield s;if(c===!0)return!0;zP&&console.log(`handleReward ${l}`);let d=e.get(l),u=d?yield d(...o):c;return zP&&console.log(`handleReward ${l} ${u}`),u}),Promise.resolve(!1))})},registerRewardsFetcher(i){return v(this,null,function*(){t=(...o)=>v(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),["ADS"]}})})},registerRewardFrequencyConfigFetcher(i){return v(this,null,function*(){r=(...o)=>v(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),{joliCoinUseAndCharge:kr,loginGuide:xr}}})})},getRewardsTypes(...i){return v(this,null,function*(){return t?yield t(...i):["ADS"]})},getRewardFrequencyConfig(...i){return v(this,null,function*(){return r?yield r(...i):{joliCoinUseAndCharge:kr,loginGuide:xr}})}}}var zP,YP=x(()=>{"use strict";H();Be();zP=S.testMode});var hm,mm,Dc,QP=x(()=>{"use strict";O();hm=class{constructor(t){this.httpClient=t}execute(t,r){return v(this,null,function*(){let n=(r==null?void 0:r.method)||"POST",i=(r==null?void 0:r.body)||{};return n==="GET"?yield this.httpClient.get(t,i):yield this.httpClient.post(t,i)})}extractCacheableData(t){var r,n,i;return{unlockOptions:((r=t.data)==null?void 0:r.unlockOptions)||[],joliCoin:((n=t.extra)==null?void 0:n.joliCoin)||{balance:0,enableAutoDeduct:!1},joliGem:((i=t.extra)==null?void 0:i.joliGem)||{balance:0,enableAutoDeduct:!1}}}mergeData(t,r){return{code:"SUCCESS",message:"success",data:{unlockOptions:t.unlockOptions},extra:{joliCoin:t.joliCoin||{balance:0,enableAutoDeduct:!1},joliGem:t.joliGem||{balance:0,enableAutoDeduct:!1}}}}processCachedData(t){return{code:"SUCCESS",message:"success from cache",data:{unlockOptions:t.unlockOptions},extra:{joliCoin:t.joliCoin,joliGem:t.joliGem}}}},mm=class{constructor(t){this.httpClient=t}execute(t,r){return v(this,null,function*(){let n=(r==null?void 0:r.method)||"GET",i=(r==null?void 0:r.body)||{};return n==="GET"?yield this.httpClient.get(t,i):yield this.httpClient.post(t,i)})}extractCacheableData(t){let r=t.data;return P({joliCoinUseAndCharge:r==null?void 0:r.joliCoinUseAndCharge,loginGuide:r==null?void 0:r.loginGuide},r)}processCachedData(t){return{code:"SUCCESS",message:"success from cache",data:t}}},Dc=class{constructor(t){this.unlockOptionsService=new Ft(new hm(t),{duration:30*60*1e3,timeout:1e3,keyGenerator:r=>r,consistencyChecker:(r,n)=>r.unlockOptions.length!==n.unlockOptions.length?!1:r.unlockOptions.every((i,o)=>{var s,l;let a=n.unlockOptions[o];return i.type===a.type&&((s=i.joliGemChoice)==null?void 0:s.joliGemQuantity)===((l=a.joliGemChoice)==null?void 0:l.joliGemQuantity)})}),this.globalConfigService=new Ft(new mm(t),{duration:60*60*1e3,timeout:1e3,keyGenerator:r=>r})}getUnlockOptions(){return v(this,arguments,function*(t={}){return yield this.unlockOptionsService.request("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",body:t,method:"POST"})})}getGlobalConfig(){return v(this,null,function*(){return yield this.globalConfigService.request("/api/fe-configs/web-common/global-config",{endpoint:"/api/fe-configs/web-common/global-config",method:"GET"})})}refreshUnlockOptions(){return v(this,arguments,function*(t={}){return yield this.unlockOptionsService.forceRequest("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",body:t,method:"POST"})})}refreshGlobalConfig(){return v(this,null,function*(){return yield this.globalConfigService.forceRequest("/api/fe-configs/web-common/global-config",{endpoint:"/api/fe-configs/web-common/global-config",method:"GET"})})}warmupCache(){return v(this,null,function*(){yield Promise.all([this.unlockOptionsService.warmupCache("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",method:"POST"}),this.globalConfigService.warmupCache("/api/fe-configs/web-common/global-config",{endpoint:"/api/fe-configs/web-common/global-config",method:"GET"})])})}clearAllCache(){this.unlockOptionsService.clearCache(),this.globalConfigService.clearCache()}getCacheStats(){return{unlockOptions:this.unlockOptionsService.getCacheStats(),globalConfig:this.globalConfigService.getCacheStats()}}clearExpiredCache(){this.unlockOptionsService.clearExpiredCache(),this.globalConfigService.clearExpiredCache()}}});function vm(e){return gm||(gm=new Dc(e)),gm}var wz,Sz,Iz,gm,ym,bm,_m,wm=x(()=>{"use strict";QP();Be();O();wz=()=>(e,t)=>{let r={SUBSCRIPTION:4,JOLI_GEM:3,JOLI_GEM_ONLY:3,JOLI_COIN:2,JOLI_COIN_ONLY:2,ADS:1};return r[t]-r[e]},Sz=["openJolicoinGuide",{method:"getABTest",platforms:["android"],nativeVersionCode:1050100},"userTrackAsync",{method:"openMiniapp",nativeVersionCode:1050100}],Iz=e=>{if(!e.length)return["ADS"];if(e.includes("JOLI_GEM")){if(e.length===1)return["JOLI_GEM_ONLY"];if(e.includes("SUBSCRIPTION")&&e.length===2)return["SUBSCRIPTION","JOLI_GEM_ONLY"]}if(e.includes("JOLI_COIN")){if(e.length===1)return["JOLI_COIN_ONLY"];if(e.includes("SUBSCRIPTION")&&e.length===2)return["SUBSCRIPTION","JOLI_COIN_ONLY"]}return e.sort(wz())},gm=null;ym=e=>{e.registerRewardsFetcher(t=>v(void 0,null,function*(){var i,o,a,s,l;let r=["ADS"],n=vm(t);try{let c=yield n.getUnlockOptions({});if(c.code!=="SUCCESS")return r;M.emit($l,{options:((i=c.data)==null?void 0:i.unlockOptions)||[],userJoliCoin:((o=c.extra)==null?void 0:o.joliCoin)||{balance:0,enableAutoDeduct:!1},userGem:((a=c.extra)==null?void 0:a.joliGem)||{balance:0,enableAutoDeduct:!1}});let d=((l=(s=c.data)==null?void 0:s.unlockOptions)==null?void 0:l.map(u=>u.type))||Array.from(r);return Iz(d)}catch(c){return console.error("getRewardOptions error (cached):",c),r}}))},bm=e=>{e.registerRewardFrequencyConfigFetcher(t=>v(void 0,null,function*(){var n,i,o,a;let r=vm(t);try{let s=yield r.getGlobalConfig();return M.emit($t,{joliCoinUseAndCharge:((n=s.data)==null?void 0:n.joliCoinUseAndCharge)||kr,loginGuide:((i=s.data)==null?void 0:i.loginGuide)||xr}),s.data&&_e.emit("onGlobalConfigChanged",{globalConfig:s.data}),{joliCoinUseAndCharge:((o=s.data)==null?void 0:o.joliCoinUseAndCharge)||kr,loginGuide:((a=s.data)==null?void 0:a.loginGuide)||xr}}catch(s){return console.error("getGlobalConfig error (cached):",s),M.emit($t,{joliCoinUseAndCharge:kr,loginGuide:xr}),_e.emit("onGlobalConfigChanged",{globalConfig:{joliCoinUseAndCharge:kr,loginGuide:xr,supportedHostMethods:Sz}}),{joliCoinUseAndCharge:kr,loginGuide:xr}}}))},_m=e=>v(void 0,null,function*(){yield vm(e).warmupCache(),console.log("Reward cache warmed up")})});var Sm=x(()=>{"use strict";wm();wm()});var XP,ZP=x(()=>{"use strict";XP=e=>t=>v(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 Ne,Mi,Tt=x(()=>{"use strict";Be();sr();Be();Ne=Ge(M,$l),Mi=(e,t)=>{var n;let r=(n=e.options)==null?void 0:n.some(i=>i.type==="SUBSCRIPTION");return console.log("typeof extraCheck",typeof t,t==null?void 0:t()),r&&(!t||(t==null?void 0:t()))}});var Lc,Im=x(()=>{"use strict";Lc={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 vt,sn=x(()=>{"use strict";O();vt=W()});function eR(e){return Em||(Em=new Cm(e)),Em}var Am,Cm,Em,km,Ln,Fi=x(()=>{"use strict";O();Am=class{constructor(t){this.httpClient=t}execute(t,r){return v(this,null,function*(){let n=(r==null?void 0:r.method)||"GET",i=(r==null?void 0:r.query)||{};return n==="GET"?yield this.httpClient.get(t,{query:i}):yield this.httpClient.post(t,{query:i})})}extractCacheableData(t){var r;return{balance:((r=t.data)==null?void 0:r.balance)||0,timestamp:Date.now()}}processCachedData(t){return{code:"SUCCESS",message:"success from cache",data:{balance:t.balance}}}},Cm=class{constructor(t){this.balanceService=new Ft(new Am(t),{duration:20*60*1e3,timeout:1e3,keyGenerator:(r,n)=>{let i=n!=null&&n.query?JSON.stringify(n.query):"";return`${r}:${i}`}})}getBalance(t="JOLI_COIN"){return v(this,null,function*(){return(yield this.balanceService.request("/api/joli-coin/balance",{endpoint:"/api/joli-coin/balance",query:{type:t},method:"GET"})).data})}refreshBalance(t="JOLI_COIN"){return v(this,null,function*(){return(yield this.balanceService.forceRequest("/api/joli-coin/balance",{endpoint:"/api/joli-coin/balance",query:{type:t},method:"GET"})).data})}warmupBalance(t="JOLI_COIN"){return v(this,null,function*(){yield this.balanceService.warmupCache("/api/joli-coin/balance",{endpoint:"/api/joli-coin/balance",query:{type:t},method:"GET"})})}clearBalanceCache(){this.balanceService.clearCache()}getBalanceCacheStats(){return this.balanceService.getCacheStats()}clearExpiredCache(){this.balanceService.clearExpiredCache()}},Em=null;km=(e,t="JOLI_COIN")=>v(void 0,null,function*(){return yield eR(e).getBalance(t)}),Ln=(e,t="JOLI_COIN")=>v(void 0,null,function*(){let n=yield eR(e).refreshBalance(t);return console.log(`Balance cache refreshed for type: ${t}`),n})});var tR=x(()=>{"use strict";Fi()});function Rm(e){return xm||(xm=new Pm(e)),xm}var Tm,Pm,xm,Om,qn,qc,ji=x(()=>{"use strict";O();Tm=class{constructor(t){this.httpClient=t}execute(t,r){return v(this,null,function*(){let n=(r==null?void 0:r.method)||"GET",i=(r==null?void 0:r.query)||{};return n==="GET"?yield this.httpClient.get(t,{query:i}):yield this.httpClient.post(t,{query:i})})}extractCacheableData(t){var r;return{balance:((r=t.data)==null?void 0:r.balance)||0,timestamp:Date.now()}}processCachedData(t){return{code:"SUCCESS",message:"success from cache",data:{balance:t.balance}}}},Pm=class{constructor(t){this.gemBalanceService=new Ft(new Tm(t),{duration:20*60*1e3,timeout:1e3,keyGenerator:(r,n)=>{let i=n!=null&&n.query?JSON.stringify(n.query):"";return`${r}:${i}`}})}getGemBalance(t="GEM"){return v(this,null,function*(){return(yield this.gemBalanceService.request("/api/joli-gem/balance",{endpoint:"/api/joli-gem/balance",query:{type:t},method:"GET"})).data})}refreshGemBalance(t="GEM"){return v(this,null,function*(){return(yield this.gemBalanceService.forceRequest("/api/joli-gem/balance",{endpoint:"/api/joli-gem/balance",query:{type:t},method:"GET"})).data})}warmupGemBalance(t="GEM"){return v(this,null,function*(){yield this.gemBalanceService.warmupCache("/api/joli-gem/balance",{endpoint:"/api/joli-gem/balance",query:{type:t},method:"GET"})})}clearGemBalanceCache(){this.gemBalanceService.clearCache()}getGemBalanceCacheStats(){return this.gemBalanceService.getCacheStats()}clearExpiredCache(){this.gemBalanceService.clearExpiredCache()}},xm=null;Om=(e,t="GEM")=>v(void 0,null,function*(){return yield Rm(e).getGemBalance(t)}),qn=(e,t="GEM")=>v(void 0,null,function*(){let n=yield Rm(e).refreshGemBalance(t);return console.log(`Gem balance cache refreshed for type: ${t}`),n}),qc=(e,t="GEM")=>v(void 0,null,function*(){yield Rm(e).warmupGemBalance(t),console.log(`Gem balance cache warmed up for type: ${t}`)})});var rR=x(()=>{"use strict";ji()});var qt,Un=x(()=>{"use strict";tR();rR();qt={JOLI_COIN:{fetchBalance:km,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:Om,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 wa,qr,Nm=x(()=>{"use strict";sn();Tt();sr();Be();Be();Un();wa=(e,t,r)=>{let{showUnlockWithCurrencyModal:n}=r;vt.registerCommand(`Rewards.${e}.useJolicoin`,()=>v(void 0,null,function*(){let i=yield Ne.getData(),o=qt[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"}}))},qr=(e,t)=>r=>v(void 0,null,function*(){let n=Ge(M,kn);return M.emit(Wl,e,{enableAutoDeduct:r.enableAutoDeduct,userCurrency:r.userCurrency,quantity:r.quantity,currency:r.currency,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).useModalResult})});var Sa,Ur,nR=x(()=>{"use strict";sn();Tt();Be();sr();Be();Un();ji();Fi();Sa=(e,t,r)=>{let{httpClient:n,initiateAndAwaitPayment:i}=r;vt.registerCommand(`Rewards.${e}.usePayment`,()=>v(void 0,null,function*(){var p;let o=yield Ne.getData(),a=qt[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();if(Ne.updateData({[u]:d}),console.log("-----unlockOptions payment-----",o,d,l,t),!a.isEnough(o,d)){let f=yield i({userCurrency:d,currencyQuantity:l,currency:t});return t==="JOLI_GEM"?qn(n):Ln(n),{result:f==="SUCCESS"?"SUCCESS":"FAILED"}}return{result:"CONTINUE"}}))},Ur=(e,t)=>r=>v(void 0,null,function*(){let n=Ge(M,Ht);return M.emit(Vl,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 Dm,Mr,iR=x(()=>{"use strict";H();sn();sr();Be();Be();O();Tt();Un();Dm=(e,t,r)=>{let{showUnloginModal:n,httpClient:i}=r;vt.registerCommand(`Rewards.${e}.useUnloginModal`,()=>v(void 0,null,function*(){var s,l,c;let o=(s=S.hostUserInfo)==null?void 0:s.isLogin,a=yield Ne.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 La(3e3));let f=qt[t],h=yield f.fetchBalance(i),g=f.getQuantity(a),b=f.getCurrentUser(a),y=f.createUpdatedUser((c=h==null?void 0:h.balance)!=null?c:0,b.enableAutoDeduct),_=f.getUpdateKey();if(Ne.updateData({[_]:y}),y.balance>=g)return{result:"SUCCESS"}}}return{result:"CONTINUE"}}))},Mr=(e,t)=>r=>v(void 0,null,function*(){let n=Ge(M,Cr);return M.emit(zl,e,{confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText,currency:r}),yield n.getFreshData()})});var Mn=x(()=>{"use strict";Nm();nR();iR()});var Az,Uc,Lm=x(()=>{"use strict";H();O();Im();Mn();sn();Fi();Un();Tt();Az=(e,t,r,{handlers:{handleUnlockSuccess:n,handleUnlockFailed:i,unlockOptionsHandler:o,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:s,showUnloginModal:l,hasSubscription:c}})=>{Sa(e,"JOLI_COIN",{httpClient:t,initiateAndAwaitPayment:a}),wa(e,"JOLI_COIN",{showUnlockWithCurrencyModal:s});let d=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return u=>v(void 0,null,function*(){var p,f,h,g;try{let b=yield o.getData();if(Mi(b,c)){let E=qt.JOLI_COIN,T=yield E.fetchBalance(t),k=E.getCurrentUser(b),C=E.createUpdatedUser((p=T==null?void 0:T.balance)!=null?p:0,k.enableAutoDeduct);if(!E.isEnough(b,C))return i==null||i(u),!1}else{let E=!0;for(let T of d){let k=yield vt.executeCommand(T);if(E=E&&k.result!=="FAILED",k.result!=="CONTINUE")break}if(!E)return i==null||i(u),!1}let _=Lc[r],I=yield t.post(_.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${Gn()}-${S.mpType}-${Date.now()}`,gameInfo:{gameId:S.mpId}}});if(console.log("-----unlockWithCurrency request result-----",I),I.code=="SUCCESS"){try{(h=u.adBreakDone)==null||h.call(u,{breakType:u.type,breakName:"name"in u&&(f=u.name)!=null?f:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in u&&((g=u.adViewed)==null||g.call(u)),Ln(t)}catch(E){console.error("-----unlockWithJolicoin adBreakDone error-----",E)}return n==null||n({quantity:I.data.quantity,balance:I.data.balance}),!0}return i==null||i(u),!1}catch(b){if(console.info("JolicoinRewardHandler error:",b),b instanceof Error&&b.message=="CANCEL")throw b;return i==null||i(u),!1}finally{o.clearCache()}})},Uc=(e,t,r)=>Az(e,t,"JOLI_COIN",r)});var oR,aR=x(()=>{"use strict";Tt();Lm();Mn();oR=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=qr("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),a=Ur("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),s=Mr("ADS-JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return Uc("ADS-JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Ne,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var sR,lR=x(()=>{"use strict";Lm();Tt();Mn();sR=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=c=>{var d;r==null||r(),(d=c.adBreakDone)==null||d.call(c,{breakType:c.type,breakFormat:c.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},o=qr("JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),a=Ur("JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),s=Mr("JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return Uc("JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Ne,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var Mc,qm=x(()=>{"use strict";H();O();Im();Mn();Nm();sn();ji();Un();Tt();Mc=(e,t,{handlers:{handleUnlockSuccess:r,handleUnlockFailed:n,unlockOptionsHandler:i,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:a,showUnloginModal:s,hasSubscription:l}})=>{Dm(e,"JOLI_GEM",{httpClient:t,showUnloginModal:s}),Sa(e,"JOLI_GEM",{httpClient:t,initiateAndAwaitPayment:o}),wa(e,"JOLI_GEM",{showUnlockWithCurrencyModal:a});let c=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return d=>v(void 0,null,function*(){var u,p,f,h;try{let g=yield i.getData(),b=Mi(g,l);if(console.log("[GemHandler] supportSubscription",b,g),b){let I=qt.JOLI_GEM,E=yield I.fetchBalance(t),T=I.getCurrentUser(g),k=I.createUpdatedUser((u=E==null?void 0:E.balance)!=null?u:0,T.enableAutoDeduct);if(!I.isEnough(g,k))return n==null||n(d),!1}else{let I=!0;for(let E of c){let T=yield vt.executeCommand(E);if(console.log("[GemHandler] command result",T,E),I=I&&T.result!=="FAILED",T.result!=="CONTINUE")break}if(!I)return n==null||n(d),!1}let y=Lc.GEM,_=yield t.post(y.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${Gn()}-${S.mpType}-${Date.now()}`,gameInfo:{gameId:S.mpId}}});if(console.log("-----unlockWithGem request result-----",_),_.code=="SUCCESS"){try{(f=d.adBreakDone)==null||f.call(d,{breakType:d.type,breakName:"name"in d&&(p=d.name)!=null?p:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in d&&((h=d.adViewed)==null||h.call(d)),qn(t)}catch(I){console.error("-----unlockWithGem adBreakDone error-----",I)}return r==null||r({quantity:_.data.quantity,balance:_.data.balance}),!0}return n==null||n(d),!1}catch(g){if(console.info("GemRewardHandler error:",g),g instanceof Error&&g.message=="CANCEL")throw g;return n==null||n(d),!1}finally{i.clearCache()}})}});var cR,uR=x(()=>{"use strict";Tt();qm();Mn();cR=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=qr("ADS-JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),a=Ur("ADS-JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),s=Mr("ADS-JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return Mc("ADS-JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Ne,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var dR,pR=x(()=>{"use strict";qm();Tt();Mn();dR=(e,{onUnlockSuccess:t,onUnlockFailed:r,hasSubscription:n})=>{let i=c=>{var d;r==null||r(),(d=c.adBreakDone)==null||d.call(c,{breakType:c.type,breakFormat:c.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},o=qr("JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),a=Ur("JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),s=Mr("JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return Mc("JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:Ne,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:o,showUnloginModal:s,hasSubscription:n}})}});var fR,hR,Um=x(()=>{"use strict";Un();sn();Tt();sr();Be();Be();fR=e=>{let{showSubscriptionModal:t}=e;vt.registerCommand("Rewards.subscription",()=>v(void 0,null,function*(){var s,l;let r=yield Ne.getData(),n=(l=(s=r==null?void 0:r.options)==null?void 0:s.find(c=>c.type==="JOLI_GEM"))==null?void 0:l.type,i=qt[n?"JOLI_GEM":"JOLI_COIN"],o=i.getCurrentUser(r);return i.isEnough(r,o)?{result:"FAILED"}:{result:(yield t())==="SUCCESS"?"SUCCESS":"FAILED"}}))},hR=e=>()=>v(void 0,null,function*(){let t=Ge(M,xn);return M.emit(Kl,e),(yield t.getFreshData()).result})});var mR=x(()=>{"use strict";Um()});var gR,vR=x(()=>{"use strict";sn();mR();H();Tt();Fi();ji();gR=(e,t,{handlers:{handleSubSuccess:r,handleSubFailed:n,unlockOptionsHandler:i,showSubscriptionModal:o,hasSubscription:a}})=>{fR({showSubscriptionModal:o});let s=["Rewards.subscription"];return l=>v(void 0,null,function*(){var c,d,u,p,f,h;try{let g=yield i.getData();if(!Mi(g,a))return!1;let y=!0;for(let _ of s){let I=yield vt.executeCommand(_);if(y=y&&I.result!=="FAILED",I.result!=="CONTINUE")break}if(Ln(t),qn(t),console.log("-----unlockWithSubscription result-----",y),y){try{(d=l.adBreakDone)==null||d.call(l,{breakType:l.type,breakName:"name"in l&&(c=l.name)!=null?c:"",breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"viewed"}),"adViewed"in l&&((u=l.adViewed)==null||u.call(l)),(h=(f=S).onEnvConfigChanged)==null||h.call(f,{hostUserInfo:B(P({},(p=S.hostUserInfo)!=null?p:{isLogin:!1}),{isSubUser:!0})})}catch(_){console.error("-----unlockWithSubscription adBreakDone error-----",_)}return r==null||r(),!0}return n==null||n(l),!1}catch(g){if(console.info("SubscriptionRewardHandler error:",g),g instanceof Error&&g.message=="CANCEL")throw g;return n==null||n(l),!1}finally{}})}});var yR,bR=x(()=>{"use strict";Tt();vR();Um();yR=(e,{onSubSuccess:t,onSubFailed:r,hasSubscription:n})=>{let i=()=>{r==null||r()},o=hR("SUBSCRIPTION");return gR("SUBSCRIPTION",e,{handlers:{handleSubSuccess:t,handleSubFailed:i,unlockOptionsHandler:Ne,showSubscriptionModal:o,hasSubscription:n}})}});var Ut,_R=x(()=>{"use strict";YP();Sm();ZP();aR();lR();uR();pR();bR();Fi();ji();Ut=KP();ym(Ut);bm(Ut)});var Fc,Cz,dr,kz,Ia,xz,wR,SR,Tz,Pz,Mm,Rz,Oz,Nz,IR=x(()=>{"use strict";O();He();ar();ET();fm();bt();H();dt();ue();_R();ss();Sm();Fc=W(),Cz=()=>{let{data:e}=F("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},dr={get:(e,t)=>z(e,P({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>z(e,P({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},kz={httpClient:dr,checkNetwork:Cz,track:j,eventEmitter:$n,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,c;return{hostAppId:(t=(e=S.hostInfo)==null?void 0:e.aid)!=null?t:"1",deviceId:(r=S.deviceInfo.did)!=null?r:"",adId:(n=S.deviceInfo.adId)!=null?n:"",sessionId:(i=S.sessionId)!=null?i:"",userId:(a=(o=S.hostUserInfo)==null?void 0:o.uid)!=null?a:"",objectType:"GAME",objectId:S.mpId,testAdsMode:S.testAdsMode,channel:(s=S.joliSource)!=null?s:"",deviceBrand:S.deviceInfo.brand,deviceModel:S.deviceInfo.model,osType:S.platform==="android"?"ANDROID":S.platform==="ios"?"IOS":"PC",runtimeType:"APP",platform:1e3,joliSource:(l=S.joliSource)!=null?l:"",deviceInfo:{platform:S.platform,nativeSDKVersionCode:(c=S.sdkInfo.nativeSDKVersionCode)!=null?c:0}}}},Ia=new Di(kz);Ut.getRewardFrequencyConfig(dr).then(e=>{console.log("getRewardFrequencyConfig",e)});Ut.registerRewardHandler("ADS",XP(Ia));Ut.registerRewardHandler("JOLI_COIN",oR(dr,{onUnlockSuccess:e=>{wR(e),j("jolicoin_unlock_success",{quantity:e.quantity})},onUnlockFailed:()=>{console.log("onUnlockFailed")},hasSubscription:()=>je("invokeSubscriptionPanelSync")}));Ut.registerRewardHandler("JOLI_COIN_ONLY",sR(dr,{onUnlockSuccess:e=>{wR(e),j("jolicoin_unlock_success",{quantity:e.quantity,isOnly:!0})},onUnlockFailed:()=>{console.log("onUnlockFailed")},hasSubscription:()=>je("invokeSubscriptionPanelSync")}));Ut.registerRewardHandler("JOLI_GEM",cR(dr,{onUnlockSuccess:e=>{SR(e),j("gem_unlock_success",{quantity:e.quantity})},hasSubscription:()=>je("invokeSubscriptionPanelSync")}));Ut.registerRewardHandler("JOLI_GEM_ONLY",dR(dr,{onUnlockSuccess:e=>{SR(e),j("gem_unlock_success",{quantity:e.quantity,isOnly:!0})},hasSubscription:()=>je("invokeSubscriptionPanelSync")}));xz=()=>{j("subscription_unlock_success",{})};Ut.registerRewardHandler("SUBSCRIPTION",yR(dr,{onSubSuccess:xz.bind(void 0),hasSubscription:()=>je("invokeSubscriptionPanelSync")}));wR=e=>{let{quantity:t}=e,r=`{slot-coin} ${t} {slot-i18n-jolicoin.coinUsed}`;Ar(r,{customStyle:{mark:{marginRight:"8px"},base:{with:"auto"}},i18nParams:{text:"Jolicoin Used"}})};_m(dr);qc(dr);SR=e=>{let{quantity:t}=e,r=`{slot-correct} ${t*-1} {slot-gem}`;Ar(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"}}})},Tz=Y("adInit",{implement:e=>{Ia.init(e)}}),Pz=Y("adConfig",{implement:e=>{Ia.adConfig(e)}}),Mm=!1,Rz=e=>{var t,r,n;(r=e.adBreakDone)==null||r.call(e,{breakType:e.type,breakName:"name"in e&&(t=e.name)!=null?t:"",breakFormat:e.type==="reward"?"reward":"interstitial",breakStatus:"viewed"}),"adViewed"in e&&((n=e.adViewed)==null||n.call(e))},Oz=Y("adBreak",{implement:e=>{var r;if((r=S.hostUserInfo)==null?void 0:r.isSubUser){Rz(e);return}if(e.type==="reward"){if(Mm)return;Mm=!0,Ut.getRewardsTypes(dr).then(n=>{Ut.handleReward(n,e).catch(i=>{var o;console.info("handleReward failed in native",i),(o=e.adBreakDone)==null||o.call(e,{breakType:e.type,breakFormat:e.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}).finally(()=>{Mm=!1})})}else Ia.adBreak(e)}}),Nz=Y("adUnit",{implement:e=>{Ia.adUnit(e)}});Fc.registerCommand("AdsSDK.init",Tz);Fc.registerCommand("AdsSDK.adConfig",Pz);Fc.registerCommand("AdsSDK.adBreak",Oz);Fc.registerCommand("AdsSDK.adUnit",Nz);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 Ea,Dz,Lz,qz,Uz,Mz,ER=x(()=>{"use strict";O();ue();He();H();Ea=W(),Dz=Y("openSchemaSync",{paramsSchema:A.tuple(A.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${S.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=F("openSchemaSync",{schema:t});if(r.errNo!==0)throw new Wt(r.errMsg,r.errNo)}}),Lz=Y("openPageSync",{paramsSchema:A.tuple(A.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=F("openPageSync",{url:e});if(t!==0||!n)throw new Wt(r,t);return{webviewId:n.webviewId}}}),qz=Y("closePageSync",{paramsSchema:A.tuple(A.number()),implement:e=>{let{errNo:t,errMsg:r}=F("closePageSync",{webviewId:e});if(t!==0)throw new Wt(r,t)}}),Uz=Y("interceptSystemExitSync",{paramsSchema:A.tuple(A.boolean()),implement:e=>{_e.emit("onInterceptSystemExit",{intercept:e}),_e.emit("onInterceptBackPress",{intercept:e})}}),Mz=Y("navigateToNativePage",{paramsSchema:A.tuple(A.enum("openHistory","openDiscover","openDiscover","openGame","openDrama","openTopup","openFeed","openRewards"),A.object()),implement:(e,t)=>{F("callHostMethodAsync",{method:e,params:P({},t)})}});Ea.registerCommand("RouterSDK.openSchema",Dz);Ea.registerCommand("RouterSDK.openPage",Lz);Ea.registerCommand("RouterSDK.closePage",qz);Ea.registerCommand("RouterSDK.interceptSystemExit",Uz);Ea.registerCommand("RouterSDK.navigateToNativePage",Mz);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 Bz(e){au("cpLoadProgressEvent",{progress:e},S.webviewId,!0)}var CR,Fz,jc,Fm,AR,jz,Gz,kR=x(()=>{"use strict";O();He();ue();H();bt();CR=W(),Fz=Y("onLoadFinished",{implement:()=>{au("cpLoadFinishEvent",{},S.webviewId,!0),j("loadFinished",{duration:performance.now()})}}),jc=null,Fm=!1,AR=0,jz=200;Gz=Y("onLoadProgress",{paramsSchema:A.tuple(A.number()),implement:e=>{jc=e,Fm||(Fm=!0,requestAnimationFrame(function t(){let r=Date.now();r-AR>=jz?(jc!==null&&(Bz(jc),AR=r,jc=null),Fm=!1):requestAnimationFrame(t)}))}});CR.registerCommand("RuntimeSDK.loadFinishedEvent",Fz);CR.registerCommand("RuntimeSDK.loadProgressEvent",Gz)});var Jz,Hz,$z,xR=x(()=>{"use strict";O();He();H();Jz=W(),Hz="isNativeSupport",$z=Y(Hz,{paramsSchema:A.tuple(A.object({version:A.string()})),implement:e=>{let t=S.sdkInfo.nativeSDKVersionCode,{version:r}=e;return r?{code:"SUCCESS",data:xg(Mu(t!=null?t:0),r,">=")}:{code:"FAILURE",message:"[Jolibox SDK] api or versionCode is required",data:!1}}});Jz.registerCommand("API.isNativeSupport",$z);L("isNativeSupport",{version:"1.1.46"})});var PR=m(jm=>{"use strict";He();ue();O();O();H();var TR=W(),Vz=ie("callHostMethod",{paramsSchema:A.tuple(A.object({method:A.string(),params:A.object().optional().default({})})),implement:r=>v(jm,[r],function*({method:e,params:t}){if(!je(e))throw new Wt("Method not supported",10001);let{errNo:n,errMsg:i,data:o}=yield F("callHostMethodAsync",{method:e,params:P({},t)});if(n!==0)throw new Wt(i,n);let l=o,{callHostMethodId:a}=l,s=Xe(l,["callHostMethodId"]);return P({},s)})});TR.registerCommand("API.callHostMethod",Vz);L("callHostMethod",{version:"1.1.49"});var Wz=ie("userTrackAsync",{paramsSchema:A.tuple(A.object({event:A.string(),eventType:A.number(),params:A.object().optional().default({})})),implement:n=>v(jm,[n],function*({event:e,eventType:t,params:r}){if(!je("userTrackAsync"))throw new Wt("Method not supported",10001);let{errNo:i,errMsg:o}=yield F("trackAsync",{event:e,eventType:t,data:P({},r),webviewId:S.webviewId});if(i!==0)throw new Wt(o,i)})});TR.registerCommand("API.track",Wz);L("track",{version:"1.1.53"})});var OR=m(Bi=>{"use strict";O();He();nh();jr();ph();var Aa=W(),RR=tc(),zz=ie("purchaseGem",{paramsSchema:A.tuple(A.object({productId:A.string()})),implement:e=>v(Bi,null,function*(){var r,n;let t=yield RR.purchase(e.productId);if(t.code!=="SUCCESS")throw Je({code:-1,msg:"[JoliboxSDK]: purchase gem failed: "+t.message});return{totalAmount:(n=(r=t.data)==null?void 0:r.totalAmount)!=null?n:""}})}),Kz=ie("getGemProducts",{paramsSchema:A.tuple(),implement:()=>v(Bi,null,function*(){var t,r;let e=(r=(t=yield RR.getProductsInfoWithBalance())==null?void 0:t.paymentChoices)!=null?r:[];return console.info("choices",e),{products:e.map(n=>{var i;return{productId:n.productId,totalAmountStr:(i=n.totalAmountStr)!=null?i:"",quantity:n.quantity}})}})}),Yz=ie("getSubscriptionPlans",{paramsSchema:A.tuple(),implement:()=>v(Bi,null,function*(){let e=yield Nn.getSubInfo();if(console.log("[PaymentAPI] getSubscriptionPlans result",e),!e)throw Je({code:-1,msg:"[JoliboxSDK]: get subscription plans failed"});return{plans:e}})}),Qz=ie("flushSubInfoCache",{paramsSchema:A.tuple(),implement:()=>v(Bi,null,function*(){yield Nn.updateAllNativePriceCache()})}),Xz=ie("subscribe",{paramsSchema:A.tuple(A.object({productId:A.string()})),implement:e=>v(Bi,null,function*(){var a;let t=yield Nn.getTierByProductId(e.productId);if(!t)throw Je({code:-1,msg:"[JoliboxSDK]: product not found"});let{basePlanId:r,appStoreProductId:n,nativeProductId:i}=t,o=yield Nn.subscribe({basePlanId:r,nativeProductId:i,appStoreProductId:n});return{result:o.result,subPlanId:o.subPlanId,errMsg:(a=o.message)!=null?a:""}})});Aa.registerCommand("PaymentSDK.purchaseGem",zz);Aa.registerCommand("PaymentSDK.getGemProducts",Kz);Aa.registerCommand("PaymentSDK.getSubscriptionPlans",Yz);Aa.registerCommand("PaymentSDK.subscribe",Xz);Aa.registerCommand("PaymentSDK.flushSubInfoCache",Qz);L("payment.purchaseGem",{version:"1.2.9"});L("payment.getGemProducts",{version:"1.2.9"});L("payment.getSubscriptionPlans",{version:"1.2.9"});L("payment.subscribe",{version:"1.2.9"});L("payment.flushSubInfoCache",{version:"1.2.9"})});var DR=m(Gi=>{"use strict";O();He();H();jr();ue();ss();bt();fm();dt();var Zz=()=>{let{data:e}=F("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},e6={get:(e,t)=>z(e,P({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>z(e,P({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},t6={httpClient:e6,checkNetwork:Zz,track:j,eventEmitter:$n,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,c;return{hostAppId:(t=(e=S.hostInfo)==null?void 0:e.aid)!=null?t:"1",deviceId:(r=S.deviceInfo.did)!=null?r:"",adId:(n=S.deviceInfo.adId)!=null?n:"",sessionId:(i=S.sessionId)!=null?i:"",userId:(a=(o=S.hostUserInfo)==null?void 0:o.uid)!=null?a:"",objectType:"TASK",objectId:S.mpId,testAdsMode:S.testAdsMode,channel:(s=S.joliSource)!=null?s:"",deviceBrand:S.deviceInfo.brand,deviceModel:S.deviceInfo.model,osType:S.platform==="android"?"ANDROID":S.platform==="ios"?"IOS":"PC",runtimeType:"APP",platform:1e3,joliSource:(l=S.joliSource)!=null?l:"",deviceInfo:{platform:S.platform,nativeSDKVersionCode:(c=S.sdkInfo.nativeSDKVersionCode)!=null?c:0}}}},NR=W(),r6=Bn(reportError),n6=ie("getCoinDetails",{paramsSchema:A.tuple(A.function().optional()),implement:e=>v(Gi,null,function*(){try{if(S.mpType!=="miniApp")return reportError(Je({code:-1,msg:"[JoliboxSDK]: rewards info not supported in games. Only supported in mini apps."})),{code:"FAILURE",message:"[JoliboxSDK]: rewards info not supported in games. Only supported in mini apps."};if(!je("requestCoinDetailsSync"))return reportError(Je({code:-1,msg:"[JoliboxSDK]: rewards info not supported in this platform."})),{code:"FAILURE",message:"[JoliboxSDK]: rewards info not supported in this platform. lower than 1.7.1"};let r=e?r6(e):(()=>{console.log("default update function called")}).bind(Gi),{errNo:n,errMsg:i,data:o}=F("requestCoinDetailsSync");if(n!==0)throw Je({code:n!=null?n:-1,msg:i});return console.log("=====> sync data",o,n),F("requestCoinDetailsAsync").then(a=>{a.errNo==0&&a.data&&(r(a.data),console.log("=====> res.data",a.data))}),{code:"SUCCESS",message:"Successfully retrieved coin details",data:o}}catch(t){return{code:"FAILURE",message:"[JoliboxSDK]: Failed to get coin details: "+t.message}}})});NR.registerCommand("RewardsSDK.getCoinDetails",n6);L("rewards.getCoinDetails",{version:"1.3.2"});var i6=ie("createRewardsAdsManager",{implement:()=>v(Gi,null,function*(){try{let e=new Di(t6);if(S.mpType!=="miniApp")throw Je({code:-1,msg:"[JoliboxSDK]: createRewardsAdsManager not supported in games. Only supported in mini apps."});return{code:"SUCCESS",message:"Successfully created RewardsAdsManager",data:{init:()=>v(Gi,null,function*(){yield e.init(),e.adConfig({preloadAdBreaks:"on",sound:"off",onReady:()=>{}})}),showAd:t=>v(Gi,null,function*(){e.adBreak({type:"reward",beforeReward:r=>{var n;r(),(n=t.onAdLoaded)==null||n.call(t)},adDismissed:()=>{var r;(r=t.onAdDismissed)==null||r.call(t)},adViewed:()=>{},adBreakDone:r=>{var o,a;let n=r.breakStatus,i=n==="frequencyCapped"||n==="other"||n==="error"||n==="noAdPreloaded";n==="viewed"&&(console.log("-----> complete watch ads"),wt.reporter({event:"COMPLETE_WATCH_ADS"}),(o=t.onAdRewarded)==null||o.call(t)),i&&(console.log("-----> no ad preloaded or error occurred",n),(a=t.onAdError)==null||a.call(t,new Error("No ad preloaded or error occurred: "+n)))}})})}}}catch(e){return{code:"FAILURE",message:"[JoliboxSDK]: Failed to create RewardsAdsManager"}}})});NR.registerCommand("Rewards.createRewardsAdsManager",i6);L("rewards.createRewardsAdsManager",{version:"1.3.4"})});var o6={};var eue,iue,uue,due,pue,LR=x(()=>{"use strict";wx();eue=se(Sx());Tx();no();Px();iue=se(Rx());Jl();IR();ER();kR();xR();uue=se(PR()),due=se(OR()),pue=se(DR())});var qR=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[qR])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[qR]=!0;v(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(bx(),yx)),Promise.resolve().then(()=>(LR(),o6)),Promise.resolve().then(()=>(bt(),hv))]);e()});