@jolibox/implement 1.2.4 → 1.2.5

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.
Files changed (40) hide show
  1. package/.rush/temp/package-deps_build.json +24 -18
  2. package/dist/common/cache/__tests__/request-cache-service.test.d.ts +1 -0
  3. package/dist/common/cache/request-cache-service.d.ts +111 -0
  4. package/dist/common/report/base-tracker.d.ts +2 -1
  5. package/dist/common/rewards/cached-fetch-reward.d.ts +46 -0
  6. package/dist/common/rewards/cached-reward-service.d.ts +24 -0
  7. package/dist/common/rewards/fetch-reward.d.ts +2 -3
  8. package/dist/common/rewards/index.d.ts +2 -0
  9. package/dist/common/rewards/registers/utils/coins/jolicoin/cached-fetch-balance.d.ts +34 -0
  10. package/dist/common/rewards/registers/utils/coins/jolicoin/fetch-balance.d.ts +2 -1
  11. package/dist/common/rewards/registers/utils/coins/joligem/cached-fetch-gem-balance.d.ts +34 -0
  12. package/dist/common/rewards/registers/utils/coins/joligem/fetch-gem-balance.d.ts +2 -1
  13. package/dist/index.js +9 -9
  14. package/dist/index.native.js +33 -33
  15. package/dist/native/payment/payment-service.d.ts +36 -30
  16. package/implement.build.log +2 -2
  17. package/package.json +5 -5
  18. package/src/common/cache/__tests__/request-cache-service.test.ts +686 -0
  19. package/src/common/cache/request-cache-service.ts +393 -0
  20. package/src/common/report/base-tracker.ts +2 -2
  21. package/src/common/rewards/cached-fetch-reward.ts +241 -0
  22. package/src/common/rewards/cached-reward-service.ts +255 -0
  23. package/src/common/rewards/fetch-reward.ts +17 -93
  24. package/src/common/rewards/index.ts +3 -0
  25. package/src/common/rewards/registers/utils/coins/commands/use-payment.ts +8 -0
  26. package/src/common/rewards/registers/utils/coins/jolicoin/cached-fetch-balance.ts +177 -0
  27. package/src/common/rewards/registers/utils/coins/jolicoin/fetch-balance.ts +13 -1
  28. package/src/common/rewards/registers/utils/coins/jolicoin/jolicoin-handler.ts +2 -0
  29. package/src/common/rewards/registers/utils/coins/joligem/cached-fetch-gem-balance.ts +181 -0
  30. package/src/common/rewards/registers/utils/coins/joligem/fetch-gem-balance.ts +13 -1
  31. package/src/common/rewards/registers/utils/coins/joligem/gem-handler.ts +2 -0
  32. package/src/h5/api/ads.ts +5 -0
  33. package/src/h5/api/storage.ts +2 -2
  34. package/src/h5/http/index.ts +2 -2
  35. package/src/h5/report/event-tracker.ts +2 -2
  36. package/src/native/api/ads.ts +7 -1
  37. package/src/native/api/payment.ts +4 -4
  38. package/src/native/payment/__tests__/payment-service-simple.test.ts +97 -31
  39. package/src/native/payment/payment-service.ts +224 -210
  40. package/src/native/rewards/ui/payment-modal.ts +14 -7
@@ -1,6 +1,6 @@
1
- var NC=Object.create;var Lo=Object.defineProperty,DC=Object.defineProperties,LC=Object.getOwnPropertyDescriptor,MC=Object.getOwnPropertyDescriptors,qC=Object.getOwnPropertyNames,Do=Object.getOwnPropertySymbols,UC=Object.getPrototypeOf,Pl=Object.prototype.hasOwnProperty,Rf=Object.prototype.propertyIsEnumerable;var Pf=(e,t,r)=>t in e?Lo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,C=(e,t)=>{for(var r in t||(t={}))Pl.call(t,r)&&Pf(e,r,t[r]);if(Do)for(var r of Do(t))Rf.call(t,r)&&Pf(e,r,t[r]);return e},F=(e,t)=>DC(e,MC(t));var je=(e,t)=>{var r={};for(var n in e)Pl.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Do)for(var n of Do(e))t.indexOf(n)<0&&Rf.call(e,n)&&(r[n]=e[n]);return r};var S=(e,t)=>()=>(e&&(t=e(e=0)),t);var m=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Nf=(e,t)=>{for(var r in t)Lo(e,r,{get:t[r],enumerable:!0})},FC=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of qC(t))!Pl.call(e,i)&&i!==r&&Lo(e,i,{get:()=>t[i],enumerable:!(n=LC(t,i))||n.enumerable});return e};var ne=(e,t,r)=>(r=e!=null?NC(UC(e)):{},FC(t||!e||!e.__esModule?Lo(r,"default",{value:e,enumerable:!0}):r,e));var w=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});function VC(e){return!!(e!=null&&e.__nativeBuffers__)}function Ul(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!VC(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=$C(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function zC(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:WC(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function XC(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function $f(e){return typeof e=="string"}function ln(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Lf(e){return typeof e=="number"&&!isNaN(e)}function eT(e){return typeof e=="undefined"}function tT(e){return eT(e)||e===null}function Wf(e){return typeof e=="function"}function rT(e){return ln(e)&&Wf(e.then)}function zf(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function ni(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function cT(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 mT(){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 _T(e){return new Promise(t=>Kf(e)(t))}function Kf(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function bT(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new ai(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function IT(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)ET(e[n],t[n])}function ET(e,t){if($f(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(Wf(t)){try{if(e instanceof t)return}catch(r){}if(!tT(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 Wl(e,t){if(jl.config[e]){Jo.warn(`[can i use] ${e} already registered`);return}jl.config[e]=zt({},t)}function Uf(e,t){return`[${e}]:${t}`}function OT(e,t){Ff||(Dl=new qo({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Ll=new qo({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Ml=new qo({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),t("onJoliboxEnterBackground",()=>{Dl.flush(),Ll.flush(),Ml.flush()}),Ff=!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:v}=f,y=(a=(o=u.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";Dl.report({status:y,method:n(s,l),errNo:`${p}`,errMsg:u,isForeground:d,duration:Date.now()-c}),c&&h&&v&&(Ll.report({status:y,method:s,isForeground:d,duration:Number((h-c).toFixed(3))}),Ml.report({status:y,method:s,isForeground:d,duration:Number((Date.now()-v).toFixed(3))}))}function n(i,o){return(i==="callHostMethod"||i==="callHostMethodSync")&&o!=null&&o.method?`${i}-${o.method}`:i}return r}function DT(e,t){let r=0,n=!0,i=NT.resolveMap,o=OT(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,ql.forEach(l=>Fo(this,[l],function*({method:c,args:d,resolve:u}){let p=yield s(c,d);u(p)})),ql.length=0});let a=(l,c)=>{let d=i.get(Number(l));if(!d)return;let u=Ul(c);d(u),i.delete(Number(l))},s=(l,c)=>{var d,u;let p=Date.now(),f=`${n}`;r+=1;let h=new ZC;if(i.set(r,h.resolve),!n&&ST.includes(l))return new Promise(x=>{ql.push({method:l,args:c,resolve:x})});let v=BC(zt({},{method:l,startTime:p,args:c,isForeground:f}),{invokeType:"js-bridge"}),y=!PT&&AT.includes(l),g=zC(c,y),b=y?g:JSON.stringify(g),k;if(l.endsWith("Sync")||xT.includes(l)?k=(d=e.call)==null?void 0:d.call(e,l,g,r):typeof b=="string"?k=e.invoke(l,b,r):k=(u=e.call)==null?void 0:u.call(e,l,b,r),k){try{typeof k=="string"&&(k=JSON.parse(k)),k=Ul(k)}catch(x){Jo.error(x)}return i.delete(r),k.errorCode&&(k.errorCode=Uf(l,k.errorCode)),o(zt(zt({},v),k)),k}return l.endsWith("Sync")&&i.delete(r),h.promise.then(x=>(x.errorCode&&(x.errorCode=Uf(l,x.errorCode)),o(zt(zt({},v),x)),x))};return{invokeNative:s,applyNative:(l,c)=>{let d=s(l,c);return rT(d)?d.then(u=>jf(l,u)):jf(l,d)},invokeHandler:a}}function jf(e,t){if(!ln(t)){Jo.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=HC(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new aT(n,i,o,a);return s}function LT(e){if(globalThis[Mo])return globalThis[Mo];let t=new Bl,r=new Bl,n=new qo({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[Mo]={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=Ul(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===Qf){l.forEach(c=>{let[d,u]=c;try{r.emit(d.slice(oi.length),u,a)}catch(p){}});return}if(i.startsWith(oi)){r.emit(i.slice(oi.length),l,a);return}t.emit(i,l,a)}},globalThis[Mo]}function MT(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(`${oi}${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(Qf,d,p)}catch(p){}}),n=void 0,t.clear()}));let c=t.get(s);c||(c=[],t.set(s,c)),c.push([`${oi}${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(CT,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 qT(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=LT(e),{invokeNative:a,invokeHandler:s,applyNative:l}=DT(e,r),{publish:c,emitNative:d}=MT(e);return{invokeHandler:s,subscribeHandler:t,applyNative:l,invokeNative:a,onNative:r,offNative:n,emitNative:d,publish:c,subscribe:i,unsubscribe:o}}function Xf(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var jC,JC,GC,Uo,Gf,Bf,Df,zt,BC,HC,Fo,$C,WC,Hf,KC,YC,Vf,QC,ZC,nT,iT,jo,oT,aT,sT,Rl,Jo,Mf,lT,Fl,uT,jl,dT,pT,fT,sn,hT,cV,Jl,se,gT,vT,ii,ai,Bl,Hl,yT,Nl,wT,uV,Vl,qf,dV,Yf,kT,oi,AT,ST,xT,Qf,CT,TT,qo,Ff,Dl,Ll,Ml,ql,PT,$l,RT,NT,Mo,zl,ht,Zf,em,UT,tm,Jf,_e,j,tt,pV,FT,rm,Kl,fV,mV,be=S(()=>{"use strict";jC=Object.defineProperty,JC=Object.defineProperties,GC=Object.getOwnPropertyDescriptors,Uo=Object.getOwnPropertySymbols,Gf=Object.prototype.hasOwnProperty,Bf=Object.prototype.propertyIsEnumerable,Df=(e,t,r)=>t in e?jC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,zt=(e,t)=>{for(var r in t||(t={}))Gf.call(t,r)&&Df(e,r,t[r]);if(Uo)for(var r of Uo(t))Bf.call(t,r)&&Df(e,r,t[r]);return e},BC=(e,t)=>JC(e,GC(t)),HC=(e,t)=>{var r={};for(var n in e)Gf.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Uo)for(var n of Uo(e))t.indexOf(n)<0&&Bf.call(e,n)&&(r[n]=e[n]);return r},Fo=(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())});$C=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};WC=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)};Hf=Object.defineProperty,KC=Object.getOwnPropertyDescriptor,YC=(e,t)=>{for(var r in t)Hf(e,r,{get:t[r],enumerable:!0})},Vf=(e,t,r,n)=>{for(var i=n>1?void 0:n?KC(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&&Hf(t,r,i),i},QC=(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}ZC=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))}})}};nT=(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))(nT||{}),iT=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}},jo=class extends iT{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},oT=class extends jo{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},aT=class extends jo{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},sT=class extends jo{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},Rl=class extends jo{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};Jo={log:ni("log"),warn:ni("warn"),info:ni("info"),error:ni("error"),debug:ni("debug")};Object.assign(globalThis,{logger:Jo});Mf=Symbol.for("Jolibox.canIUseMap"),lT={};globalThis[Mf]||(globalThis[Mf]=lT);Fl=Symbol.for("Jolibox.canIUseMap.native"),uT={};globalThis[Fl]||(globalThis[Fl]=uT);jl={get config(){return globalThis[Fl]}},dT=(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))(dT||{}),pT=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(pT||{}),fT=(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))(fT||{});mT();sn=typeof window=="undefined",hT=()=>!sn&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),cV={isiOS:!sn&&(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:!sn&&navigator.userAgent.includes("Android"),isMac:!sn&&navigator.userAgent.includes("Mac"),isFacebook:!sn&&navigator.userAgent.includes("FB_IAB"),isPC:!sn&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},Jl=class Gl{constructor(t){this.element=t,this.next=Gl.Undefined,this.prev=Gl.Undefined}};Jl.Undefined=new Jl(void 0);se=Jl,gT=class{constructor(){this._first=se.Undefined,this._last=se.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===se.Undefined}clear(){let e=this._first;for(;e!==se.Undefined;){let t=e.next;e.prev=se.Undefined,e.next=se.Undefined,e=t}this._first=se.Undefined,this._last=se.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new se(e);if(this._first===se.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==se.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==se.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==se.Undefined&&e.next!==se.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===se.Undefined&&e.next===se.Undefined?(this._first=se.Undefined,this._last=se.Undefined):e.next===se.Undefined?(this._last=this._last.prev,this._last.next=se.Undefined):e.prev===se.Undefined&&(this._first=this._first.next,this._first.prev=se.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==se.Undefined;)yield e.element,e=e.next}},vT=0,ii=class{constructor(e){this.value=e,this.id=vT++}},ai=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 ii&&(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 ii(t);return this._listeners?this._listeners instanceof ii?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 ii)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 ii?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Bl=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 ai,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 gT,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)}},Hl={};YC(Hl,{None:()=>yT,filter:()=>bT,once:()=>Kf,toPromise:()=>_T});yT=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Nl=Symbol.for("Jolibox.hostEmitter"),wT=()=>{let e=new Bl;return globalThis[Nl]||(globalThis[Nl]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Nl]},uV=wT();Vl=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new ai,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 IT(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}};Vl=Vf([zf],Vl);qf=class{constructor(){this._onWillExecuteCommand=new ai,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new ai,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Vl,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=XC(3e4)),this._starActivation}executeCommand(e,...t){return QC(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Hl.toPromise(Hl.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}}};qf=Vf([zf],qf);dV=Symbol.for("Jolibox.commands");Wl("requestPaymentSync",{version:1e6,properties:{paymentBody:{appStoreProductId:102e4}}});Wl("requestProductDetailsAsync",{version:102e4});Wl("loginSync",{version:1e6,properties:{skipLogin:102e4,triggerFrom:102e4}});Yf=(e,t)=>{function r(i){var o;let[a,...s]=i.split(":");if(!a)return!1;let l=jl.config[a];if(!l)return!1;let c=(o=t==null?void 0:t())!=null?o:"";if(l.platforms&&!l.platforms.includes(c))return!1;let d=l.version;if(typeof d!="number")return!1;let u=e();return typeof u!="number"||u<d?!1:s.length===0?!0:n(l,s,u)||n(l.properties,s,u)}function n(i,o,a){if(!i)return!1;let s=cT(i,o);if(!s)return!1;if(ln(s)){let l=s.version;return Lf(l)?typeof a=="number"&&a>=l:!0}return Lf(s)?typeof a=="number"&&a>=s:s===!0}return{canIUseNative:r}};kT=()=>hT(),oi="custom_event_",AT=[],ST=[],xT=["env","createRequestTask","login"],Qf="__batch_event__",CT="__native_batch_event__",TT=e=>e==="pv"?e:"default",qo=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=TT(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&&ln(a))throw new Rl(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let l=[];if(ln(a))l.push(...Object.keys(a));else if($f(a)){if(i.length>0)throw new Rl(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);l.push(a)}else throw new Rl(`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=ln(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={}}},Ff=!1;ql=[],PT=!1,$l=Symbol.for("Jolibox.invokeResolverInstance"),RT=new Map;globalThis[$l]||(globalThis[$l]=RT);NT={get resolveMap(){return globalThis[$l]}};Mo=Symbol.for("Jolibox.subscribeInstance");ht={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){ht.trigger=e},onDoExit(e){ht.exit=e},onDoBackPress(e){ht.backPress=e}},Zf=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new oT("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="")=>{ht.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>Fo(void 0,null,function*(){let o=yield ht.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});zl={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=Xf(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:Zf,doExit:r};globalThis.joliboxJSCore=zt({},n)}if(typeof window!="undefined"&&window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(o="")=>{ht.trigger(),t.onDocumentReady(JSON.stringify({path:o}))},n=o=>Fo(void 0,null,function*(){let a=yield ht.exit();t.doExit(JSON.stringify({uuid:o,shouldInterrupt:a}))});zl={onDocumentReady:r,invoke(o,a,s){t.invoke(JSON.stringify({event:o,paramsString:a,callbackId:s}))},doExit:n,publish(o,a,s){let l=Xf(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 Fo(this,null,function*(){let a=yield ht.backPress();t.doBackPress(JSON.stringify({uuid:o,shouldInterrupt:a}))})}};let i={onDocumentReady:r,env:Zf,doExit:n};globalThis.joliboxJSCore=zt({},i)}em=zl;if(!em&&kT())throw new sT("No joliboxJScore is found, native bridge not found.");UT=zt({},em),tm=qT(UT),{invokeHandler:Jf}=tm,{applyNative:_e,invokeNative:j,onNative:tt,offNative:pV,subscribeHandler:FT,publish:rm,emitNative:Kl,subscribe:fV,unsubscribe:mV}=tm;globalThis.joliboxJSBridge={callHandler:Jf,invokeHandler:Jf,subscribeHandler:FT}});function $T(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function lm(e){return new Promise(t=>setTimeout(t,e))}function di(e){return typeof e=="string"}function Ur(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function cm(e){return typeof e=="object"&&Array.isArray(e)}function um(e){return typeof e=="number"&&!isNaN(e)}function gr(e){return e===!0||e===!1}function dm(e){return typeof e=="undefined"}function nc(e){return dm(e)||e===null}function WT(e){return typeof e=="function"}function pm(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function fm(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:om(l)&&om(s)?i[a]=n(BT({},s),l):Array.isArray(l)&&Array.isArray(s)?i[a]=[...s,...l]:i[a]=l}return i}return n(e,t)}function om(e){return e&&typeof e=="object"&&e.constructor===Object}function mm(e,t){if(Array.isArray(e))return e.concat(t)}function pi(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 KT(e,t){return(...r)=>t(e,...r)}function Bo(e){return t=>KT(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(i){e(new Pt(`${i}`))}})}function si(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function wm(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 cc(){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 t1(e,t,r){let n=window.location.hostname,i=n.split("."),o=r?t:e;if(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(n))return`${o}.jolibox.com`;if(i.length>=2){let a=i.slice(-2).join(".");if(a==="jolibox.com"||a==="pico-game.com"||a==="joyslite.com")return`${o}.${a}`}return`${o}.jolibox.com`}function uc(e){return t1("api","stg-api",e)}function Fr(e){return`https://${uc(e)}`}function o1(e){return new Promise(t=>Am(e)(t))}function Am(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function a1(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new ui(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function l1(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)c1(e[n],t[n])}function c1(e,t){if(di(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(WT(t)){try{if(e instanceof t)return}catch(r){}if(!nc(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 u1(){return typeof globalThis!="undefined"?globalThis[Sm]:void 0}function d1(e){typeof globalThis!="undefined"&&(globalThis[Sm]=e)}function Y(e=!1){let t=u1();if(!e&&t)return t;let r=new Go,n=new tc,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 d1(i),i}var rc,jT,nm,JT,GT,im,BT,HT,sm,VT,Ot,zT,ic,fi,oc,hm,Pt,gm,vm,ym,_m,bm,mi,ac,Rt,Ql,YT,sc,am,QT,G,lc,XT,cn,li,hi,ZT,e1,Im,Em,km,Xl,le,r1,n1,ci,ui,Nt,ec,i1,Yl,s1,ie,Go,tc,Sm,R=S(()=>{"use strict";rc=Object.defineProperty,jT=Object.getOwnPropertyDescriptor,nm=Object.getOwnPropertySymbols,JT=Object.prototype.hasOwnProperty,GT=Object.prototype.propertyIsEnumerable,im=(e,t,r)=>t in e?rc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,BT=(e,t)=>{for(var r in t||(t={}))JT.call(t,r)&&im(e,r,t[r]);if(nm)for(var r of nm(t))GT.call(t,r)&&im(e,r,t[r]);return e},HT=(e,t)=>{for(var r in t)rc(e,r,{get:t[r],enumerable:!0})},sm=(e,t,r,n)=>{for(var i=n>1?void 0:n?jT(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&&rc(t,r,i),i},VT=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new t};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let r=new Event("abort");this.signal.dispatchEvent(r)};let t=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(t.prototype,"aborted",{get:function(){return this._aborted}}),t.prototype.addEventListener=function(r,n){this._eventListeners[r]||(this._eventListeners[r]=[]),this._eventListeners[r].push(n)},t.prototype.removeEventListener=function(r,n){if(!this._eventListeners[r])return;let i=this._eventListeners[r].indexOf(n);i!==-1&&this._eventListeners[r].splice(i,1)},t.prototype.dispatchEvent=function(r){if(this._eventListeners[r.type])for(let n of this._eventListeners[r.type])n.call(this,r)},window.AbortController=e,window.AbortSignal=t}Ot=class{constructor(){this.state="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.state==="pending"&&(this.state="fulfilled",e(r))},this.reject=r=>{this.state==="pending"&&(this.state="rejected",t(r))}})}};zT=(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))(zT||{}),ic=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}},fi=class extends ic{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},oc=class extends ic{constructor(){super(...arguments),this.kind="USER_ERROR"}},hm=class extends oc{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},Pt=class extends oc{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))}},gm=class extends oc{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))}},vm=class extends fi{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},ym=class extends fi{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))}},_m=class extends fi{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_METHOD_ERROR"}},bm=class extends fi{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},mi=class extends ic{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}}},ac=class extends fi{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};Rt={log:si("log"),warn:si("warn"),info:si("info"),error:si("error"),debug:si("debug")};Object.assign(globalThis,{logger:Rt});Ql=Symbol.for("Jolibox.canIUseMap"),YT={};globalThis[Ql]||(globalThis[Ql]=YT);sc={get config(){return globalThis[Ql]}},am=Symbol.for("Jolibox.canIUseMap.native"),QT={};globalThis[am]||(globalThis[am]=QT);G=(e=>(e[e.Other=0]="Other",e[e.Route=1]="Route",e[e.Click=2]="Click",e[e.View=3]="View",e[e.Expose=4]="Expose",e[e.Swipe=5]="Swipe",e[e.Input=6]="Input",e[e.Select=7]="Select",e[e.SwitchOn=8]="SwitchOn",e[e.SwitchOff=9]="SwitchOff",e[e.Submit=10]="Submit",e[e.Scroll=11]="Scroll",e[e.Hide=12]="Hide",e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(G||{}),lc=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(lc||{}),XT=(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))(XT||{}),cn=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});cc();li=typeof window=="undefined",hi={isiOS:!li&&(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:!li&&navigator.userAgent.includes("Android"),isMac:!li&&navigator.userAgent.includes("Mac"),isFacebook:!li&&navigator.userAgent.includes("FB_IAB"),isPC:!li&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},ZT="device_id",e1="advertising_id",Im=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,cn()),window.__joliboxLocalStorage__.getItem(e)),Em=()=>new URLSearchParams(window.location.search).get("deviceId")||Im(ZT),km=()=>new URLSearchParams(window.location.search).get("advertisingId")||Im(e1);Xl=class Zl{constructor(t){this.element=t,this.next=Zl.Undefined,this.prev=Zl.Undefined}};Xl.Undefined=new Xl(void 0);le=Xl,r1=class{constructor(){this._first=le.Undefined,this._last=le.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===le.Undefined}clear(){let e=this._first;for(;e!==le.Undefined;){let t=e.next;e.prev=le.Undefined,e.next=le.Undefined,e=t}this._first=le.Undefined,this._last=le.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new le(e);if(this._first===le.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==le.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==le.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==le.Undefined&&e.next!==le.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===le.Undefined&&e.next===le.Undefined?(this._first=le.Undefined,this._last=le.Undefined):e.next===le.Undefined?(this._last=this._last.prev,this._last.next=le.Undefined):e.prev===le.Undefined&&(this._first=this._first.next,this._first.prev=le.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==le.Undefined;)yield e.element,e=e.next}},n1=0,ci=class{constructor(e){this.value=e,this.id=n1++}},ui=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 ci&&(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 ci(t);return this._listeners?this._listeners instanceof ci?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 ci)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 ci?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Nt=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t,r=!0){var n;let i=(n=this.listeners.get(e))!=null?n:new ui,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 r1,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)}},ec={};HT(ec,{None:()=>i1,filter:()=>a1,once:()=>Am,toPromise:()=>o1});i1=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Yl=Symbol.for("Jolibox.hostEmitter"),s1=()=>{let e=new Nt;return globalThis[Yl]||(globalThis[Yl]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Yl]},ie=s1();Go=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new ui,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 l1(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}};Go=sm([pm],Go);tc=class{constructor(){this._onWillExecuteCommand=new ui,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new ui,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Go,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=$T(3e4)),this._starActivation}executeCommand(e,...t){return VT(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),ec.toPromise(ec.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}}};tc=sm([pm],tc);Sm=Symbol.for("Jolibox.commands")});function xe(e,t={}){dc.emit("ERROR_REPORT",{error:e,options:t})}var dc,jr,gt=S(()=>{"use strict";R();R();dc=new Nt,jr=new Nt;xe.debounce=pi(xe,50,{leading:!0})});var pc,p1,xm,Cm,Tm=S(()=>{"use strict";R();gt();pc=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{}}},p1=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},xm=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:pc(o),payloadJson:pc(a),signature:pc(s)}}else throw"joli_source is missing"}catch(r){return xe(new vm(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},Cm=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],i=p1(e),o=r[2];return`${n}.${i}.${o}`}return t}});var f1,fc,Om=S(()=>{"use strict";R();f1="1.2.4",fc=()=>f1});function hc(e,t){return(document==null?void 0:document.head.querySelector(`meta[name="${e}"][content="${t}"]`))!==null}var m1,Pm,mc,Rm,ce,h1,E,B=S(()=>{"use strict";R();Tm();Om();R();m1={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:Em(),adId:km(),pixelRatio:window.devicePixelRatio||1,platform:hi.isAndroid?"android":hi.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:fc()},schema:window.location.href,platform:hi.isAndroid?"android":hi.isiOS?"ios":"h5"},mc=(Pm=globalThis.joliboxJSCore)==null?void 0:Pm.env,ce=Object.assign({},(Rm=mc==null?void 0:mc())!=null?Rm:m1);h1=()=>{var f,h,v,y,g,b,k,x,P,T,A;let{payloadJson:e,headerJson:t,signature:r}=ce.schema.length?xm(ce.schema):{},n=`${ce.deviceInfo.did}-${new Date().getTime()}`,o=new URL(ce.schema.length?ce.schema:window.location.href).searchParams,a=(v=(h=(f=o.get("mpId"))!=null?f:o.get("appId"))!=null?h:o.get("gameId"))!=null?v:"",s=(b=(g=(y=ce.clientSessionId)!=null?y:e==null?void 0:e.sessionId)!=null?g:o.get("sessionId"))!=null?b:n,l=!!((x=(k=e==null?void 0:e.testAdsMode)!=null?k:e==null?void 0:e.__testAdsMode)!=null?x:o.get("testAdsMode")==="true"),c=(A=(T=(P=e==null?void 0:e.joliboxEnv)!=null?P:e==null?void 0:e.__joliboxEnv)!=null?T:o.get("joliboxEnv"))!=null?A:"production",d=c==="staging",u=t==null?void 0:t.channel,p=e==null?void 0:e.__shouldInterupt;return{get startTime(){var O;return(O=performance.timeOrigin)!=null?O:performance.timing.navigationStart},get testMode(){return d},get testAdsMode(){return l},get joliboxEnv(){return c},get joliSource(){var O;return(O=o.get("joliSource"))!=null?O:null},get mpId(){var O;return(O=a!=null?a:e==null?void 0:e.id)!=null?O:""},get mpVersion(){var O;return(O=t==null?void 0:t.ver)!=null?O:fc()},get mpType(){var O,J;return(J=(O=t==null?void 0:t.__mpType)!=null?O:e==null?void 0:e.__mpType)!=null?J:"game"},get platform(){var O;return((O=ce.platform)!=null?O:ce.deviceInfo.platform).toLowerCase()},get deviceInfo(){return ce.deviceInfo},get sdkInfo(){return ce.sdkInfo},get hostInfo(){return ce.hostInfo},get hostUserInfo(){return ce.hostUserInfo},get sessionId(){var O,J;return(J=(O=ce.clientSessionId)!=null?O:s)!=null?J:n},get channel(){return u},get webviewId(){var O;return(O=ce.webviewId)!=null?O:-1},get shouldInterupt(){return p},get from(){return e==null?void 0:e.__from},get baseApiHost(){return uc(d)},get adId(){var O;return(O=ce.deviceInfo.adId)!=null?O:ce.deviceInfo.did},get language(){return ce.deviceInfo.lang},get sdkEnvironment(){return hc("dlightek","jolibox")?"dlightek":o.get("huaweiQuick")==="true"?"huaweiQuick":hc("gamedistribution","jolibox")?"gamedistribution":hc("funmax","jolibox")?"funmax":"jolibox"},get viewport(){var M,Re,Ne;let O=(M=ce.deviceInfo.pixelRatio)!=null?M:1,J=(Re=ce.deviceInfo.statusBarHeight)!=null?Re:e==null?void 0:e.__androidStatusBarHeight,Ke=(Ne=ce.deviceInfo.navigationBarHeight)!=null?Ne:e==null?void 0:e.__androidNavigationBarHeight;return{statusBarHeight:J!==void 0?J/O:20,navigationBarHeight:Ke!==void 0?Ke/O:10}},get abTests(){var O,J;return(J=(O=ce.abValues)==null?void 0:O.split(","))!=null?J:[]},get mpInfo(){var O;return(O=ce.mpInfo)!=null?O:{mpName:"unknown"}},onEnvConfigChanged:O=>{fm(ce,O,mm)},encodeJoliSourceQuery:O=>{var J,Ke;return t&&r?Cm(C(C({},e),O),(J=o.get("joliSource"))!=null?J:""):(Ke=o.get("joliSource"))!=null?Ke:""},setDoExitDirectly:()=>{p=!1}}},E=h1()});var gc,Dm,g1,v1,Nm,y1,Lm=S(()=>{"use strict";R();gt();B();R();gc=!1,Dm=(e,t)=>e==null?!1:t in e,g1=e=>Dm(e,"kind"),v1=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},Nm=(e,t={},r)=>{var o,a,s;let n={user_id:(a=(o=E.hostUserInfo)==null?void 0:o.uid)!=null?a:"",device_id:(s=E.deviceInfo.did)!=null?s:"",timestamp:Date.now(),tag:v1(e.name)},i=F(C({},n),{env:t.environment,isFromUser:r});r?jr.emit("GLOBAL_USER_ERROR",e,i):jr.emit("GLOBAL_ERROR",e,i)},y1=e=>Dm(e,"kind")&&e.kind==="USER_ERROR";dc.on("ERROR_REPORT",({error:e,options:t})=>{if(gc)return;gc=!0;let r=g1(e)&&e.raw?e.raw:e;try{let n=y1(e);Nm(e,t,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new ac(`${i}, origin error: ${r.message}`);Rt.error(o),Nm(new ac(o.message),{environment:t.environment},!1)}finally{gc=!1}})});var Dt,vc,Jr=S(()=>{"use strict";gt();R();gt();Dt=(e,t)=>{var r,n;return new mi((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},vc=e=>new hm(e)});var Mm=S(()=>{"use strict";Lm();Jr();R();be();jr.on("GLOBAL_ERROR",(e,t)=>{var n;let r={message:e.message,stack:(n=e.stack)!=null?n:"",errorType:e.name,source:0};j("trackAsync",{event:"reportJsError",data:r})});jr.on("GLOBAL_USER_ERROR",(e,t)=>{Rt.log("UserError",e,t)})});var yc=S(()=>{"use strict"});function qm(e,t){let r=(n,i,o)=>{let c=i!=null?i:{},{eventType:a}=c,s=je(c,["eventType"]),l=F(C({tag:n,eventType:o!=null?o:a!=null?a:G.Other},t),{extra:C({},s)});n=="globalJsError"?xe(new bm(JSON.stringify(l))):e("systemLog",l,E.webviewId)};return r.debounce=pi(r,500,{leading:!0}),r}function Um(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=pi(t,500,{leading:!0}),t}var Fm=S(()=>{"use strict";R();R();gt();B()});function jm(e,t){let r=qm(e,t),n=Um(r);return{track:r,trackPerformance:n}}var Jm=S(()=>{"use strict";Fm()});var Gm=S(()=>{"use strict";B();R();R()});var Bm=S(()=>{"use strict";Jm();yc();Gm()});var Ho,Hm=S(()=>{"use strict";Ho=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 Vo(e,t,r){var l,c,d;let n=new Map,i=(l=r==null?void 0:r.baseUrl)!=null?l:Fr(E.testMode),o=(c=r==null?void 0:r.type)!=null?c:"public",a=(d=r==null?void 0:r.defaultHeaders)!=null?d:{};return tt("onRequestTaskStateChange",u=>{if(typeof u.requestTaskId!="string")return;let p=n.get(u.requestTaskId);if(p)if(u.state==="success"){let f=u,{requestTaskId:v,state:y}=f,g=je(f,["requestTaskId","state"]);u.statusCode===200?p.resolve(g):p.reject(g),n.delete(v)}else if(u.state==="fail"){let h=u,{requestTaskId:v,state:y}=h,g=je(h,["requestTaskId","state"]);p.reject(g),n.delete(v)}else Rt.warn("onRequestTaskStateChange unknown event",u)}),ie.on("onLoginComplete",({isLogin:u,token:p})=>{o!=="public"&&u&&p&&(a["X-JOLI-TOKEN"]=p)}),(f,...h)=>w(this,[f,...h],function*(u,p={}){let v=Date.now(),y=_1(u,F(C({},p),{baseUrl:i})),{method:g="GET",responseType:b="text",dataType:k="json",timeout:x,enableCache:P=!1,appendHostCookie:T=!0}=p,A=Object.assign({"content-type":"application/json"},a,p.header),O={url:y,method:g,header:A,enableCache:P,responseType:b,appendHostCookie:T};if(g=="POST"||g=="PUT"){let Ne=w1(p.data,A["content-type"]);O.data=Ne}x&&Object.assign(O,{timeout:x});let{data:{requestTaskId:J}}=j(e,O);if(typeof J!="string")throw Dt({code:-1,msg:"requestTaskId is not a string"});let{resolve:Ke,reject:M,promise:Re}=new Ot;n.set(J,{resolve:Ke,reject:M});try{let Ne=yield Re,{data:qr}=Ne;return k==="json"&&typeof qr=="string"&&(qr=b1(qr)),{url:y,timeout:x,method:g,response:F(C({},Ne),{data:qr})}}catch(Ne){let qr=Ne;if(Ur(qr)){let{errMsg:Ol,prefetchDetail:aV,isPrefetch:sV,errNo:RC}=qr;di(Ol)&&xe(Dt({code:-1,msg:Ol},{errNo:RC,errMsg:Ol}))}throw Ne}})}function b1(e){try{return JSON.parse(e.trim())}catch(t){return e}}function w1(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 _1,_c=S(()=>{"use strict";R();be();gt();Jr();B();_1=(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 bc,Vm,te,vt=S(()=>{"use strict";_c();B();R();bc={};(Vm=E.hostUserInfo)!=null&&Vm.token&&(bc["x-joli-token"]=E.hostUserInfo.token);E.joliSource&&(bc["x-joli-source"]=E.joliSource);te=Vo("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:Fr(E.testMode),defaultHeaders:bc})});function $m(e){let t=sc.config[e];return t||(t={},sc.config[e]=t),(r,n)=>{if(t[r]){Rt.warn(`[can i use] ${r} already registered`);return}t[r]=C({},n)}}var Wm=S(()=>{"use strict";R()});function wc(e){zm=e}function $o(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>$o(t)):Object.keys(e).reduce((t,r)=>(t[r]=$o(e[r]),t),{})}function Kt(e){return typeof e=="number"}function Ic(e){let t=Ec(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function Ec(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var zm,we,Wo,zo,Ko,Yo,un,Qo,Xo,Zo,ea,ta,ra,na,ia,oa,aa,sa,la,kc=S(()=>{"use strict";zm=!1;we=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(zm)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 ${Ic(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return $o(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:$o(this._default)}optional(){return this._optional=!0,this}};Wo=class extends we{validate(t){return this._optional&&t===void 0?!0:Kt(t)?Kt(this._min)&&t<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):Kt(this._max)&&t>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):Kt(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}},zo=class extends we{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},Ko=class extends we{validate(t){if(this._optional&&t===void 0)return!0;if(typeof t!="string")return this.fail({expect:"string",actual:t});if(Kt(this._maxLength)&&t.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if(Kt(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}},Yo=class extends we{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},un=class extends we{validate(t){return!0}},Qo=class extends we{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},Xo=class extends we{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},Zo=class extends we{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},ea=class extends we{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 ${Ic(t)}`)}return!0}},ta=class extends we{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(Kt(this._minItems)&&r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if(Kt(this._maxItems)&&r.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if(Kt(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}},ra=class extends we{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(Ec(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}},na=class extends we{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(Ec(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}},ia=class extends we{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:Ic(this.value),actual:r}):!0}},oa=class extends we{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}},aa=class extends we{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}},sa=class extends we{validate(t){return t===void 0&&this._optional||t instanceof ArrayBuffer?!0:this.fail({expect:"arraybuffer",actual:t})}},la=class extends we{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 Ac(e,t,r="param"){if(e.errors=[],e.path=r,wc(!0),!e.validate(t)){let n=e.errors.join(`
3
- `);throw e.errors.length=0,wc(!1),new TypeError(n)}}var I,Sc=S(()=>{"use strict";kc();kc();I={object(e){return new na(e)},array(e){return new ta(e)},tuple(...e){return new aa(...e)},literal(e){return new ia(e)},or(...e){return new oa(...e)},symbol(){return new Yo},record(e){return new ra(e)},function(){return new Zo},boolean(){return new zo},string(){return new Ko},number(){return new Wo},undefined(){return new Qo},null(){return new Xo},unknown(){return new un},any(){return new un},as(){return new un},arraybuffer(){return new sa},enum(...e){return new ea(...e)},typedarray(e){return new la(e)}}});var ca,Km,Ym=S(()=>{"use strict";R();gt();Sc();Jr();ca=1,Km=e=>{function t(n,i){return(...o)=>{var u,p,f,h;let a=Date.now(),s={method:n,trace_id:ca};ca+=1;let l="SUCCESS",c=`${n}:ok`,d=0;try{if(i.paramsSchema)try{Ac(i.paramsSchema,o,"params")}catch(b){throw vc(`${n}:fail ${b.message}`)}let v=i.implement(...o),y=v,g=`${n}:ok`;if(v&&"code"in v){let{code:b,data:k,message:x}=v;l=b,y=k,g=x}return{code:l,message:g,data:y}}catch(v){let y=v;d=(p=(u=y.code)!=null?u:y.errNo)!=null?p:2e3,l="FAILURE";let g=(h=(f=y.message)!=null?f:y.errMsg)!=null?h:`${v}`;return c=`${n}:${l} ${g.replace(/^\S+:(fail|cancel)\s?/,"")}`,xe(new mi(c,d)),{code:l,message:c}}finally{let v=Date.now()-a}}}function r(n,i){return(...o)=>w(this,null,function*(){var p,f,h,v;let a=cm(o)?o:[o],s=Date.now(),l={method:n,trace_id:ca};ca+=1;let c=`${n}:ok`,d="SUCCESS",u={code:d,message:c};try{if(i.paramsSchema)try{Ac(i.paramsSchema,a,"params")}catch(b){throw vc(b.message)}let g=yield i.implement(...a);if(g&&"code"in g){let{code:b,data:k,message:x}=g;d=b,c=x,g=k}return Object.assign(u,{code:d,message:c,data:g}),u}catch(y){let g=y,b=(f=(p=g.code)!=null?p:g.errNo)!=null?f:2e3;d="FAILURE";let k=(v=(h=g.message)!=null?h:g.errMsg)!=null?v:`${y}`,x=`${n}:${d} ${k.replace(/^\S+:(fail|cancel)\s?/,"")}`;return Object.assign(u,{code:d,message:x}),xe(new mi(x,b)),u}finally{let y=Date.now()-s}})}return{createAPI:r,createSyncAPI:t}}});function xc(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 Qm=S(()=>{"use strict"});var ue,H,L,Xm,Ye=S(()=>{"use strict";Wm();yt();Ym();Sc();be();B();Qm();({createAPI:ue,createSyncAPI:H}=Km(U)),L=$m("native"),{canIUseNative:Xm}=Yf(()=>E.sdkInfo.nativeSDKVersionCode,()=>E.platform)});function Zm(e){let t=Object.prototype.toString.call(e).split(" ")[1].split("]")[0].toLocaleLowerCase();return t==="array"&&(t="object"),x1.includes(t)?t:""}function eh(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 th(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 ua,E1,k1,A1,S1,U$,F$,x1,gi,da,pa=S(()=>{"use strict";Ye();be();R();vt();B();ua=Y(),E1=ue("getLocalStorage",{paramsSchema:I.tuple(I.string()),implement(e){return w(this,null,function*(){let{response:t}=yield te(`/api/games/user-storage/${E.mpId}`,{method:"GET",responseType:"json",appendHostCookie:!0,query:{key:e}}),{data:{code:r,message:n,data:i}}=yield t;if(r==="SUCCESS")return{code:r,message:n,data:i==null?void 0:i.value};try{let{data:{data:o,dataType:a}}=yield _e("getLocalStorageAsync",{key:e}),s=eh(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}}})}});ua.registerCommand("StorageSDK.getItem",E1);L("storage.getItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});k1=ue("setStorage",{paramsSchema:I.tuple(I.string(),I.or(I.string(),I.boolean(),I.number())),implement(e,t){return w(this,null,function*(){let r=E.mpId,n=typeof t=="string"?t:String(t),{response:i}=yield te(`/api/games/user-storage/${r}`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e,value:n}}),{data:{code:o,message:a}}=i,s=Zm(t),l=th(t,s);return yield _e("setLocalStorageAsync",{key:e,data:l,dataType:s}),o=="SUCCESS"?{code:o,message:a}:{code:o,message:`${a}. fallback to native`}})}});ua.registerCommand("StorageSDK.setItem",k1);L("storage.setItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});A1=ue("removeStorage",{paramsSchema:I.tuple(I.string()),implement(e){return w(this,null,function*(){let t=E.mpId,{response:r}=yield te(`/api/games/user-storage/${t}/remove`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e}}),{data:{code:n,message:i}}=r;return yield _e("removeLocalStorageAsync",{key:e}),n==="SUCCESS"?{code:n,message:i}:{code:n,message:"[Jolibox SDK] remove item succ"}})}});ua.registerCommand("StorageSDK.removeItem",A1);L("storage.removeItem",{version:"1.0.0",properties:{key:"1.0.0"}});S1=ue("clearStorage",{implement(){return w(this,null,function*(){let e=E.mpId,{response:t}=yield te(`/api/games/user-storage/${e}/clear`,{method:"POST",appendHostCookie:!0});_e("clearLocalStorageAsync");let{data:{code:r,message:n}}=t;return r==="SUCCESS"?{code:r,message:n}:{code:r,message:`${n}.fallback to native`}})}});ua.registerCommand("StorageSDK.clear",S1);L("storage.clear",{version:"1.0.0"});U$=ue("getStorageInfo",{implement(){return w(this,null,function*(){let{data:e}=yield _e("getStorageInfoAsync");return e})}});L("getStorageInfo",{version:"1.0.0",success:{keys:"1.0.0",currentSize:"1.0.0",limitSize:"1.0.0"}});F$=H("getStorageInfoSync",{implement(){return j("getStorageInfoSync")}}),x1=["string","number","boolean","object",""];gi=ue("getGlobalStorage",{paramsSchema:I.tuple(I.string()),implement(e){return w(this,null,function*(){try{let{data:{data:t,dataType:r}}=yield _e("getGlobalStorageAsync",{key:e});return{code:"SUCCESS",message:"success",data:eh(t,r)}}catch(t){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get global storage failed",data:null}}})}}),da=ue("setGlobalStorage",{paramsSchema:I.tuple(I.string(),I.or(I.string(),I.boolean(),I.number(),I.array())),implement(e,t){return w(this,null,function*(){try{let r=Zm(t),n=th(t,r);return yield _e("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 rh,fa,nh=S(()=>{"use strict";B();Hm();R();vt();be();pa();rh="REPORT_FIRST_OPEN_GAME",fa=class extends Ho{constructor(t,r,n){super(r,n),this.gameId=E.mpId,this.sessionId=E.sessionId,this.track=t,this.taskUrl=Fr(E.testMode)+"/api/base/app-event"}reporter(t){return w(this,null,function*(){let{event:r,params:n,extraParams:i}=t,o={eventType:r,gameInfo:C({gameId:this.gameId,sessionId:this.sessionId},n)};i&&Object.assign(o,i),yield E.platform==="android"?te("/api/base/app-event",{method:"POST",data:o}):_e("trackAppEventAsync",{url:this.taskUrl,body:JSON.stringify(o)})})}reportToNative(t){return w(this,null,function*(){let{event:r,params:n}=t;yield _e("userTrackAsync",{event:r,params:C({},n),gameId:this.gameId})})}tracker(t,r=null){this.track(t,r)}start(t){super.start(t),this.tryReportOpenGamePlus()}tryReportOpenGamePlus(){gi(rh).then(t=>{gr(t.data)&&t.data&&this.tracker("OpenGame_2Plus"),da(rh,!0)})}}});var lh={};Nf(lh,{nativeTaskEmitter:()=>yi,taskTracker:()=>It,track:()=>U,trackPerformance:()=>ah});var C1,ih,oh,U,ah,sh,yi,It,yt=S(()=>{"use strict";Mm();R();yc();Bm();B();nh();be();C1=(e,t,r)=>{var c,d,u,p,f,h,v;let n=t,i=Ur(n.extra)?n.extra:di(n.extra)?JSON.parse(n.extra):{},{mpName:o,mpVersion:a}=(c=E.mpInfo)!=null?c:{},s=C(C(F(C({},i),{mp_id:(d=n.mp_id)!=null?d:"",mp_version:(u=n.mp_version)!=null?u:"",session_id:E.sessionId,user_id:(f=(p=E.hostUserInfo)==null?void 0:p.uid)!=null?f:""}),o?{mp_name:o}:{}),a?{mp_info_version:a}:{}),l=(h=n.eventType)!=null?h:G.Other;j("trackAsync",{event:(v=t.tag)!=null?v:e,data:s,webviewId:r,eventType:l})},{track:U,trackPerformance:ah}=jm(C1,{type:lc.AppSDK,platform:"native",jssdk_version:(oh=(ih=E.sdkInfo)==null?void 0:ih.jssdkVersion)!=null?oh:"1.0.0",mp_id:E.mpId,mp_version:E.mpVersion}),sh=Y();sh.registerCommand("ReportSDK.traceSystemTimeline",({event:e,duration:t,extra:r})=>{ah(e,t,r)});sh.registerCommand("ReportSDK.traceSystem",({event:e,info:t})=>{U(e,t)});yi=new Nt,It=new fa(U,yi)});function ch(){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 dT=Object.create;var Go=Object.defineProperty,pT=Object.defineProperties,fT=Object.getOwnPropertyDescriptor,hT=Object.getOwnPropertyDescriptors,mT=Object.getOwnPropertyNames,jo=Object.getOwnPropertySymbols,gT=Object.getPrototypeOf,Jl=Object.prototype.hasOwnProperty,uh=Object.prototype.propertyIsEnumerable;var ch=(e,t,r)=>t in e?Go(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,x=(e,t)=>{for(var r in t||(t={}))Jl.call(t,r)&&ch(e,r,t[r]);if(jo)for(var r of jo(t))uh.call(t,r)&&ch(e,r,t[r]);return e},F=(e,t)=>pT(e,hT(t));var je=(e,t)=>{var r={};for(var n in e)Jl.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&jo)for(var n of jo(e))t.indexOf(n)<0&&uh.call(e,n)&&(r[n]=e[n]);return r};var A=(e,t)=>()=>(e&&(t=e(e=0)),t);var m=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),dh=(e,t)=>{for(var r in t)Go(e,r,{get:t[r],enumerable:!0})},vT=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of mT(t))!Jl.call(e,i)&&i!==r&&Go(e,i,{get:()=>t[i],enumerable:!(n=fT(t,i))||n.enumerable});return e};var ie=(e,t,r)=>(r=e!=null?dT(gT(e)):{},vT(t||!e||!e.__esModule?Go(r,"default",{value:e,enumerable:!0}):r,e));var y=(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 ET(e){return!!(e!=null&&e.__nativeBuffers__)}function Yl(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!ET(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=ST(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function AT(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:kT(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function RT(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Sh(e){return typeof e=="string"}function dn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function fh(e){return typeof e=="number"&&!isNaN(e)}function PT(e){return typeof e=="undefined"}function NT(e){return PT(e)||e===null}function kh(e){return typeof e=="function"}function DT(e){return dn(e)&&kh(e.then)}function Ah(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function oi(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function GT(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 VT(){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 QT(e){return new Promise(t=>Ch(e)(t))}function Ch(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function XT(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new li(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function eR(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)tR(e[n],t[n])}function tR(e,t){if(Sh(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(kh(t)){try{if(e instanceof t)return}catch(r){}if(!NT(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 oc(e,t){if(Xl.config[e]){Wo.warn(`[can i use] ${e} already registered`);return}Xl.config[e]=Qt({},t)}function gh(e,t){return`[${e}]:${t}`}function lR(e,t){vh||(Vl=new Jo({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Wl=new Jo({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),zl=new Jo({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),t("onJoliboxEnterBackground",()=>{Vl.flush(),Wl.flush(),zl.flush()}),vh=!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:v}=f,_=(a=(o=u.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";Vl.report({status:_,method:n(s,l),errNo:`${p}`,errMsg:u,isForeground:d,duration:Date.now()-c}),c&&h&&v&&(Wl.report({status:_,method:s,isForeground:d,duration:Number((h-c).toFixed(3))}),zl.report({status:_,method:s,isForeground:d,duration:Number((Date.now()-v).toFixed(3))}))}function n(i,o){return(i==="callHostMethod"||i==="callHostMethodSync")&&o!=null&&o.method?`${i}-${o.method}`:i}return r}function pR(e,t){let r=0,n=!0,i=dR.resolveMap,o=lR(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,Kl.forEach(l=>$o(this,[l],function*({method:c,args:d,resolve:u}){let p=yield s(c,d);u(p)})),Kl.length=0});let a=(l,c)=>{let d=i.get(Number(l));if(!d)return;let u=Yl(c);d(u),i.delete(Number(l))},s=(l,c)=>{var d,u;let p=Date.now(),f=`${n}`;r+=1;let h=new OT;if(i.set(r,h.resolve),!n&&iR.includes(l))return new Promise(C=>{Kl.push({method:l,args:c,resolve:C})});let v=wT(Qt({},{method:l,startTime:p,args:c,isForeground:f}),{invokeType:"js-bridge"}),_=!cR&&nR.includes(l),g=AT(c,_),w=_?g:JSON.stringify(g),S;if(l.endsWith("Sync")||oR.includes(l)?S=(d=e.call)==null?void 0:d.call(e,l,g,r):typeof w=="string"?S=e.invoke(l,w,r):S=(u=e.call)==null?void 0:u.call(e,l,w,r),S){try{typeof S=="string"&&(S=JSON.parse(S)),S=Yl(S)}catch(C){Wo.error(C)}return i.delete(r),S.errorCode&&(S.errorCode=gh(l,S.errorCode)),o(Qt(Qt({},v),S)),S}return l.endsWith("Sync")&&i.delete(r),h.promise.then(C=>(C.errorCode&&(C.errorCode=gh(l,C.errorCode)),o(Qt(Qt({},v),C)),C))};return{invokeNative:s,applyNative:(l,c)=>{let d=s(l,c);return DT(d)?d.then(u=>yh(l,u)):yh(l,d)},invokeHandler:a}}function yh(e,t){if(!dn(t)){Wo.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=IT(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new UT(n,i,o,a);return s}function fR(e){if(globalThis[Bo])return globalThis[Bo];let t=new tc,r=new tc,n=new Jo({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[Bo]={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=Yl(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===Th){l.forEach(c=>{let[d,u]=c;try{r.emit(d.slice(si.length),u,a)}catch(p){}});return}if(i.startsWith(si)){r.emit(i.slice(si.length),l,a);return}t.emit(i,l,a)}},globalThis[Bo]}function hR(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(`${si}${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(Th,d,p)}catch(p){}}),n=void 0,t.clear()}));let c=t.get(s);c||(c=[],t.set(s,c)),c.push([`${si}${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(aR,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 mR(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=fR(e),{invokeNative:a,invokeHandler:s,applyNative:l}=pR(e,r),{publish:c,emitNative:d}=hR(e);return{invokeHandler:s,subscribeHandler:t,applyNative:l,invokeNative:a,onNative:r,offNative:n,emitNative:d,publish:c,subscribe:i,unsubscribe:o}}function Rh(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var yT,_T,bT,Ho,bh,wh,ph,Qt,wT,IT,$o,ST,kT,Ih,CT,xT,Eh,TT,OT,qT,LT,Vo,MT,UT,FT,Hl,Wo,hh,jT,Ql,BT,Xl,JT,HT,$T,un,WT,J$,Zl,se,zT,KT,ai,li,tc,rc,YT,$l,ZT,H$,nc,mh,$$,xh,rR,si,nR,iR,oR,Th,aR,sR,Jo,vh,Vl,Wl,zl,Kl,cR,ic,uR,dR,Bo,ac,mt,Oh,Ph,gR,Nh,_h,_e,j,tt,V$,vR,Dh,sc,W$,z$,be=A(()=>{"use strict";yT=Object.defineProperty,_T=Object.defineProperties,bT=Object.getOwnPropertyDescriptors,Ho=Object.getOwnPropertySymbols,bh=Object.prototype.hasOwnProperty,wh=Object.prototype.propertyIsEnumerable,ph=(e,t,r)=>t in e?yT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Qt=(e,t)=>{for(var r in t||(t={}))bh.call(t,r)&&ph(e,r,t[r]);if(Ho)for(var r of Ho(t))wh.call(t,r)&&ph(e,r,t[r]);return e},wT=(e,t)=>_T(e,bT(t)),IT=(e,t)=>{var r={};for(var n in e)bh.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ho)for(var n of Ho(e))t.indexOf(n)<0&&wh.call(e,n)&&(r[n]=e[n]);return r},$o=(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())});ST=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};kT=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)};Ih=Object.defineProperty,CT=Object.getOwnPropertyDescriptor,xT=(e,t)=>{for(var r in t)Ih(e,r,{get:t[r],enumerable:!0})},Eh=(e,t,r,n)=>{for(var i=n>1?void 0:n?CT(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&&Ih(t,r,i),i},TT=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new t};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let r=new Event("abort");this.signal.dispatchEvent(r)};let t=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(t.prototype,"aborted",{get:function(){return this._aborted}}),t.prototype.addEventListener=function(r,n){this._eventListeners[r]||(this._eventListeners[r]=[]),this._eventListeners[r].push(n)},t.prototype.removeEventListener=function(r,n){if(!this._eventListeners[r])return;let i=this._eventListeners[r].indexOf(n);i!==-1&&this._eventListeners[r].splice(i,1)},t.prototype.dispatchEvent=function(r){if(this._eventListeners[r.type])for(let n of this._eventListeners[r.type])n.call(this,r)},window.AbortController=e,window.AbortSignal=t}OT=class{constructor(){this.state="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.state==="pending"&&(this.state="fulfilled",e(r))},this.reject=r=>{this.state==="pending"&&(this.state="rejected",t(r))}})}};qT=(e=>(e[e.DEVELOPER_FILE_NOT_FOUND=0]="DEVELOPER_FILE_NOT_FOUND",e[e.INTERNAL_IOS_CAN_NOT_FOUND_PKG=1]="INTERNAL_IOS_CAN_NOT_FOUND_PKG",e[e.USER_IOS_LOAD_TIMEOUT=2]="USER_IOS_LOAD_TIMEOUT",e[e.INTERNAL_IOS_PKG_LOAD_ERROR=3]="INTERNAL_IOS_PKG_LOAD_ERROR",e[e.INTERNAL_IOS_PKG_PARSE_FAIL=4]="INTERNAL_IOS_PKG_PARSE_FAIL",e[e.USER_IOS_GET_EMPTY_DATA=5]="USER_IOS_GET_EMPTY_DATA",e[e.USER_ANDROID_GET_PKG_FAIL=6]="USER_ANDROID_GET_PKG_FAIL",e[e.DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE=7]="DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE",e))(qT||{}),LT=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}},Vo=class extends LT{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},MT=class extends Vo{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},UT=class extends Vo{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},FT=class extends Vo{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},Hl=class extends Vo{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};Wo={log:oi("log"),warn:oi("warn"),info:oi("info"),error:oi("error"),debug:oi("debug")};Object.assign(globalThis,{logger:Wo});hh=Symbol.for("Jolibox.canIUseMap"),jT={};globalThis[hh]||(globalThis[hh]=jT);Ql=Symbol.for("Jolibox.canIUseMap.native"),BT={};globalThis[Ql]||(globalThis[Ql]=BT);Xl={get config(){return globalThis[Ql]}},JT=(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))(JT||{}),HT=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(HT||{}),$T=(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))($T||{});VT();un=typeof window=="undefined",WT=()=>!un&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),J$={isiOS:!un&&(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:!un&&navigator.userAgent.includes("Android"),isMac:!un&&navigator.userAgent.includes("Mac"),isFacebook:!un&&navigator.userAgent.includes("FB_IAB"),isPC:!un&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},Zl=class ec{constructor(t){this.element=t,this.next=ec.Undefined,this.prev=ec.Undefined}};Zl.Undefined=new Zl(void 0);se=Zl,zT=class{constructor(){this._first=se.Undefined,this._last=se.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===se.Undefined}clear(){let e=this._first;for(;e!==se.Undefined;){let t=e.next;e.prev=se.Undefined,e.next=se.Undefined,e=t}this._first=se.Undefined,this._last=se.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new se(e);if(this._first===se.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==se.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==se.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==se.Undefined&&e.next!==se.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===se.Undefined&&e.next===se.Undefined?(this._first=se.Undefined,this._last=se.Undefined):e.next===se.Undefined?(this._last=this._last.prev,this._last.next=se.Undefined):e.prev===se.Undefined&&(this._first=this._first.next,this._first.prev=se.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==se.Undefined;)yield e.element,e=e.next}},KT=0,ai=class{constructor(e){this.value=e,this.id=KT++}},li=class{constructor(e){this.options=e,this._size=0}dispose(e){var t,r;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof ai&&(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 ai(t);return this._listeners?this._listeners instanceof ai?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 ai)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 ai?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},tc=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t,r=!0){var n;let i=(n=this.listeners.get(e))!=null?n:new li,o=l=>t(...l.args),a=i.event(o);this.listerHandlerMap.set(t,{handler:o,dispose:a}),this.listeners.set(e,i);let s=this.cachedEventQueue.get(e);if(s&&r)for(let l of s)t(...l.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,t){let r=this.listerHandlerMap.get(t);r&&(r.dispose(),this.listerHandlerMap.delete(t))}emit(e,...t){let r=this.listeners.get(e),n=this.cachedEventQueue.get(e);n||(n=new zT,this.cachedEventQueue.set(e,n)),n.push({args:t}),r&&r.fire({event:e,args:t})}once(e,t){let r=(...n)=>{t(...n),this.off(e,r)};this.on(e,r,!1)}},rc={};xT(rc,{None:()=>YT,filter:()=>XT,once:()=>Ch,toPromise:()=>QT});YT=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});$l=Symbol.for("Jolibox.hostEmitter"),ZT=()=>{let e=new tc;return globalThis[$l]||(globalThis[$l]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[$l]},H$=ZT();nc=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new li,this.onDidRegisterCommand=this._onDidRegisterCommand.event,console.log("[Jolibox SDK] command registry")}registerCommand(e){if(!e)throw new Error("invalid command");if(e.metadata&&Array.isArray(e.metadata.args)){let r=[];for(let i of e.metadata.args)r.push(i.constraint);let n=e.handler;e.handler=function(...i){return eR(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}};nc=Eh([Ah],nc);mh=class{constructor(){this._onWillExecuteCommand=new li,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new li,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new nc,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=RT(3e4)),this._starActivation}executeCommand(e,...t){return TT(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),rc.toPromise(rc.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}}};mh=Eh([Ah],mh);$$=Symbol.for("Jolibox.commands");oc("requestPaymentSync",{version:1e6,properties:{paymentBody:{appStoreProductId:102e4}}});oc("requestProductDetailsAsync",{version:102e4});oc("loginSync",{version:1e6,properties:{skipLogin:102e4,triggerFrom:102e4}});xh=(e,t)=>{function r(i){var o;let[a,...s]=i.split(":");if(!a)return!1;let l=Xl.config[a];if(!l)return!1;let c=(o=t==null?void 0:t())!=null?o:"";if(l.platforms&&!l.platforms.includes(c))return!1;let d=l.version;if(typeof d!="number")return!1;let u=e();return typeof u!="number"||u<d?!1:s.length===0?!0:n(l,s,u)||n(l.properties,s,u)}function n(i,o,a){if(!i)return!1;let s=GT(i,o);if(!s)return!1;if(dn(s)){let l=s.version;return fh(l)?typeof a=="number"&&a>=l:!0}return fh(s)?typeof a=="number"&&a>=s:s===!0}return{canIUseNative:r}};rR=()=>WT(),si="custom_event_",nR=[],iR=[],oR=["env","createRequestTask","login"],Th="__batch_event__",aR="__native_batch_event__",sR=e=>e==="pv"?e:"default",Jo=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=sR(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&&dn(a))throw new Hl(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let l=[];if(dn(a))l.push(...Object.keys(a));else if(Sh(a)){if(i.length>0)throw new Hl(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);l.push(a)}else throw new Hl(`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=dn(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={}}},vh=!1;Kl=[],cR=!1,ic=Symbol.for("Jolibox.invokeResolverInstance"),uR=new Map;globalThis[ic]||(globalThis[ic]=uR);dR={get resolveMap(){return globalThis[ic]}};Bo=Symbol.for("Jolibox.subscribeInstance");mt={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){mt.trigger=e},onDoExit(e){mt.exit=e},onDoBackPress(e){mt.backPress=e}},Oh=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new MT("native env failed"));else{let{data:r}=JSON.parse(t);return r!=null?r:void 0}};if(typeof window!="undefined"&&window.webkit){let e=window.webkit.messageHandlers,t=(i="")=>{mt.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>$o(void 0,null,function*(){let o=yield mt.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});ac={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=Rh(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:Oh,doExit:r};globalThis.joliboxJSCore=Qt({},n)}if(typeof window!="undefined"&&window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(o="")=>{mt.trigger(),t.onDocumentReady(JSON.stringify({path:o}))},n=o=>$o(void 0,null,function*(){let a=yield mt.exit();t.doExit(JSON.stringify({uuid:o,shouldInterrupt:a}))});ac={onDocumentReady:r,invoke(o,a,s){t.invoke(JSON.stringify({event:o,paramsString:a,callbackId:s}))},doExit:n,publish(o,a,s){let l=Rh(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 $o(this,null,function*(){let a=yield mt.backPress();t.doBackPress(JSON.stringify({uuid:o,shouldInterrupt:a}))})}};let i={onDocumentReady:r,env:Oh,doExit:n};globalThis.joliboxJSCore=Qt({},i)}Ph=ac;if(!Ph&&rR())throw new FT("No joliboxJScore is found, native bridge not found.");gR=Qt({},Ph),Nh=mR(gR),{invokeHandler:_h}=Nh,{applyNative:_e,invokeNative:j,onNative:tt,offNative:V$,subscribeHandler:vR,publish:Dh,emitNative:sc,subscribe:W$,unsubscribe:z$}=Nh;globalThis.joliboxJSBridge={callHandler:_h,invokeHandler:_h,subscribeHandler:vR}});function SR(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function jh(e){return new Promise(t=>setTimeout(t,e))}function fi(e){return typeof e=="string"}function Jr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Gh(e){return typeof e=="object"&&Array.isArray(e)}function Bh(e){return typeof e=="number"&&!isNaN(e)}function Ir(e){return e===!0||e===!1}function Jh(e){return typeof e=="undefined"}function mc(e){return Jh(e)||e===null}function kR(e){return typeof e=="function"}function Hh(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function $h(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:Mh(l)&&Mh(s)?i[a]=n(wR({},s),l):Array.isArray(l)&&Array.isArray(s)?i[a]=[...s,...l]:i[a]=l}return i}return n(e,t)}function Mh(e){return e&&typeof e=="object"&&e.constructor===Object}function Vh(e,t){if(Array.isArray(e))return e.concat(t)}function hi(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 CR(e,t){return(...r)=>t(e,...r)}function Ko(e){return t=>CR(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(i){e(new Pt(`${i}`))}})}function ci(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function Zh(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 wc(){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 NR(e,t,r){let n=window.location.hostname,i=n.split("."),o=r?t:e;if(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(n))return`${o}.jolibox.com`;if(i.length>=2){let a=i.slice(-2).join(".");if(a==="jolibox.com"||a==="pico-game.com"||a==="joyslite.com")return`${o}.${a}`}return`${o}.jolibox.com`}function Ic(e){return NR("app","stg-app",e)}function fn(e){return`https://${Ic(e)}`}function MR(e){return new Promise(t=>nm(e)(t))}function nm(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function UR(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new pi(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function jR(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)GR(e[n],t[n])}function GR(e,t){if(fi(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(kR(t)){try{if(e instanceof t)return}catch(r){}if(!mc(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 BR(){return typeof globalThis!="undefined"?globalThis[im]:void 0}function JR(e){typeof globalThis!="undefined"&&(globalThis[im]=e)}function Y(e=!1){let t=BR();if(!e&&t)return t;let r=new zo,n=new fc,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 JR(i),i}var hc,yR,qh,_R,bR,Lh,wR,IR,Fh,ER,Ot,AR,gc,mi,vc,Wh,Pt,zh,Kh,Yh,Qh,Xh,gi,yc,Nt,cc,xR,_c,Uh,TR,B,bc,RR,pn,ui,yi,OR,PR,em,tm,rm,uc,le,DR,qR,di,pi,Dt,pc,LR,lc,FR,te,zo,fc,im,P=A(()=>{"use strict";hc=Object.defineProperty,yR=Object.getOwnPropertyDescriptor,qh=Object.getOwnPropertySymbols,_R=Object.prototype.hasOwnProperty,bR=Object.prototype.propertyIsEnumerable,Lh=(e,t,r)=>t in e?hc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,wR=(e,t)=>{for(var r in t||(t={}))_R.call(t,r)&&Lh(e,r,t[r]);if(qh)for(var r of qh(t))bR.call(t,r)&&Lh(e,r,t[r]);return e},IR=(e,t)=>{for(var r in t)hc(e,r,{get:t[r],enumerable:!0})},Fh=(e,t,r,n)=>{for(var i=n>1?void 0:n?yR(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&&hc(t,r,i),i},ER=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new t};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let r=new Event("abort");this.signal.dispatchEvent(r)};let t=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(t.prototype,"aborted",{get:function(){return this._aborted}}),t.prototype.addEventListener=function(r,n){this._eventListeners[r]||(this._eventListeners[r]=[]),this._eventListeners[r].push(n)},t.prototype.removeEventListener=function(r,n){if(!this._eventListeners[r])return;let i=this._eventListeners[r].indexOf(n);i!==-1&&this._eventListeners[r].splice(i,1)},t.prototype.dispatchEvent=function(r){if(this._eventListeners[r.type])for(let n of this._eventListeners[r.type])n.call(this,r)},window.AbortController=e,window.AbortSignal=t}Ot=class{constructor(){this.state="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.state==="pending"&&(this.state="fulfilled",e(r))},this.reject=r=>{this.state==="pending"&&(this.state="rejected",t(r))}})}};AR=(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))(AR||{}),gc=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}},mi=class extends gc{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},vc=class extends gc{constructor(){super(...arguments),this.kind="USER_ERROR"}},Wh=class extends vc{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},Pt=class extends vc{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))}},zh=class extends vc{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))}},Kh=class extends mi{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},Yh=class extends mi{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))}},Qh=class extends mi{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_METHOD_ERROR"}},Xh=class extends mi{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},gi=class extends gc{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}}},yc=class extends mi{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};Nt={log:ci("log"),warn:ci("warn"),info:ci("info"),error:ci("error"),debug:ci("debug")};Object.assign(globalThis,{logger:Nt});cc=Symbol.for("Jolibox.canIUseMap"),xR={};globalThis[cc]||(globalThis[cc]=xR);_c={get config(){return globalThis[cc]}},Uh=Symbol.for("Jolibox.canIUseMap.native"),TR={};globalThis[Uh]||(globalThis[Uh]=TR);B=(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))(B||{}),bc=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(bc||{}),RR=(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))(RR||{}),pn=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});wc();ui=typeof window=="undefined",yi={isiOS:!ui&&(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:!ui&&navigator.userAgent.includes("Android"),isMac:!ui&&navigator.userAgent.includes("Mac"),isFacebook:!ui&&navigator.userAgent.includes("FB_IAB"),isPC:!ui&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},OR="device_id",PR="advertising_id",em=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,pn()),window.__joliboxLocalStorage__.getItem(e)),tm=()=>new URLSearchParams(window.location.search).get("deviceId")||em(OR),rm=()=>new URLSearchParams(window.location.search).get("advertisingId")||em(PR);uc=class dc{constructor(t){this.element=t,this.next=dc.Undefined,this.prev=dc.Undefined}};uc.Undefined=new uc(void 0);le=uc,DR=class{constructor(){this._first=le.Undefined,this._last=le.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===le.Undefined}clear(){let e=this._first;for(;e!==le.Undefined;){let t=e.next;e.prev=le.Undefined,e.next=le.Undefined,e=t}this._first=le.Undefined,this._last=le.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new le(e);if(this._first===le.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==le.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==le.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==le.Undefined&&e.next!==le.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===le.Undefined&&e.next===le.Undefined?(this._first=le.Undefined,this._last=le.Undefined):e.next===le.Undefined?(this._last=this._last.prev,this._last.next=le.Undefined):e.prev===le.Undefined&&(this._first=this._first.next,this._first.prev=le.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==le.Undefined;)yield e.element,e=e.next}},qR=0,di=class{constructor(e){this.value=e,this.id=qR++}},pi=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 di&&(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 di(t);return this._listeners?this._listeners instanceof di?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 di)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 di?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Dt=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 pi,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 DR,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)}},pc={};IR(pc,{None:()=>LR,filter:()=>UR,once:()=>nm,toPromise:()=>MR});LR=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});lc=Symbol.for("Jolibox.hostEmitter"),FR=()=>{let e=new Dt;return globalThis[lc]||(globalThis[lc]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[lc]},te=FR();zo=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new pi,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 jR(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}};zo=Fh([Hh],zo);fc=class{constructor(){this._onWillExecuteCommand=new pi,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new pi,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new zo,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=SR(3e4)),this._starActivation}executeCommand(e,...t){return ER(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),pc.toPromise(pc.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}}};fc=Fh([Hh],fc);im=Symbol.for("Jolibox.commands")});function Ce(e,t={}){Ec.emit("ERROR_REPORT",{error:e,options:t})}var Ec,Hr,gt=A(()=>{"use strict";P();P();Ec=new Dt,Hr=new Dt;Ce.debounce=hi(Ce,50,{leading:!0})});var Sc,HR,om,am,sm=A(()=>{"use strict";P();gt();Sc=e=>{let t=e.replace(/-/g,"+").replace(/_/g,"/"),r=t.length%4===0?"":"=".repeat(4-t.length%4),n=atob(t+r);try{return JSON.parse(n)}catch(i){return{}}},HR=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},om=e=>{var t;try{let i=(t=new URL(e).searchParams.get("joliSource"))==null?void 0:t.split(".");if(i!=null&&i.length){let[o,a,s]=i;return{headerJson:Sc(o),payloadJson:Sc(a),signature:Sc(s)}}else throw"joli_source is missing"}catch(r){return Ce(new Kh(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},am=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],i=HR(e),o=r[2];return`${n}.${i}.${o}`}return t}});var $R,kc,lm=A(()=>{"use strict";P();$R="1.2.5",kc=()=>$R});function Cc(e,t){return(document==null?void 0:document.head.querySelector(`meta[name="${e}"][content="${t}"]`))!==null}var VR,cm,Ac,um,ce,WR,E,J=A(()=>{"use strict";P();sm();lm();P();VR={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:tm(),adId:rm(),pixelRatio:window.devicePixelRatio||1,platform:yi.isAndroid?"android":yi.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:kc()},schema:window.location.href,platform:yi.isAndroid?"android":yi.isiOS?"ios":"h5"},Ac=(cm=globalThis.joliboxJSCore)==null?void 0:cm.env,ce=Object.assign({},(um=Ac==null?void 0:Ac())!=null?um:VR);WR=()=>{var f,h,v,_,g,w,S,C,O,T,k;let{payloadJson:e,headerJson:t,signature:r}=ce.schema.length?om(ce.schema):{},n=`${ce.deviceInfo.did}-${new Date().getTime()}`,o=new URL(ce.schema.length?ce.schema:window.location.href).searchParams,a=(v=(h=(f=o.get("mpId"))!=null?f:o.get("appId"))!=null?h:o.get("gameId"))!=null?v:"",s=(w=(g=(_=ce.clientSessionId)!=null?_:e==null?void 0:e.sessionId)!=null?g:o.get("sessionId"))!=null?w:n,l=!!((C=(S=e==null?void 0:e.testAdsMode)!=null?S:e==null?void 0:e.__testAdsMode)!=null?C:o.get("testAdsMode")==="true"),c=(k=(T=(O=e==null?void 0:e.joliboxEnv)!=null?O:e==null?void 0:e.__joliboxEnv)!=null?T:o.get("joliboxEnv"))!=null?k:"production",d=c==="staging",u=t==null?void 0:t.channel,p=e==null?void 0:e.__shouldInterupt;return{get startTime(){var R;return(R=performance.timeOrigin)!=null?R:performance.timing.navigationStart},get testMode(){return d},get testAdsMode(){return l},get joliboxEnv(){return c},get joliSource(){var R;return(R=o.get("joliSource"))!=null?R:null},get mpId(){var R;return(R=a!=null?a:e==null?void 0:e.id)!=null?R:""},get mpVersion(){var R;return(R=t==null?void 0:t.ver)!=null?R:kc()},get mpType(){var R,G;return(G=(R=t==null?void 0:t.__mpType)!=null?R:e==null?void 0:e.__mpType)!=null?G:"game"},get platform(){var R;return((R=ce.platform)!=null?R:ce.deviceInfo.platform).toLowerCase()},get deviceInfo(){return ce.deviceInfo},get sdkInfo(){return ce.sdkInfo},get hostInfo(){return ce.hostInfo},get hostUserInfo(){return ce.hostUserInfo},get sessionId(){var R,G;return(G=(R=ce.clientSessionId)!=null?R:s)!=null?G:n},get channel(){return u},get webviewId(){var R;return(R=ce.webviewId)!=null?R:-1},get shouldInterupt(){return p},get from(){return e==null?void 0:e.__from},get baseApiHost(){return Ic(d)},get adId(){var R;return(R=ce.deviceInfo.adId)!=null?R:ce.deviceInfo.did},get language(){return ce.deviceInfo.lang},get sdkEnvironment(){return Cc("dlightek","jolibox")?"dlightek":o.get("huaweiQuick")==="true"?"huaweiQuick":Cc("gamedistribution","jolibox")?"gamedistribution":Cc("funmax","jolibox")?"funmax":"jolibox"},get viewport(){var M,Pe,Ne;let R=(M=ce.deviceInfo.pixelRatio)!=null?M:1,G=(Pe=ce.deviceInfo.statusBarHeight)!=null?Pe:e==null?void 0:e.__androidStatusBarHeight,Ke=(Ne=ce.deviceInfo.navigationBarHeight)!=null?Ne:e==null?void 0:e.__androidNavigationBarHeight;return{statusBarHeight:G!==void 0?G/R:20,navigationBarHeight:Ke!==void 0?Ke/R:10}},get abTests(){var R,G;return(G=(R=ce.abValues)==null?void 0:R.split(","))!=null?G:[]},get mpInfo(){var R;return(R=ce.mpInfo)!=null?R:{mpName:"unknown"}},onEnvConfigChanged:R=>{$h(ce,R,Vh)},encodeJoliSourceQuery:R=>{var G,Ke;return t&&r?am(x(x({},e),R),(G=o.get("joliSource"))!=null?G:""):(Ke=o.get("joliSource"))!=null?Ke:""},setDoExitDirectly:()=>{p=!1}}},E=WR()});var xc,pm,zR,KR,dm,YR,fm=A(()=>{"use strict";P();gt();J();P();xc=!1,pm=(e,t)=>e==null?!1:t in e,zR=e=>pm(e,"kind"),KR=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},dm=(e,t={},r)=>{var o,a,s;let n={user_id:(a=(o=E.hostUserInfo)==null?void 0:o.uid)!=null?a:"",device_id:(s=E.deviceInfo.did)!=null?s:"",timestamp:Date.now(),tag:KR(e.name)},i=F(x({},n),{env:t.environment,isFromUser:r});r?Hr.emit("GLOBAL_USER_ERROR",e,i):Hr.emit("GLOBAL_ERROR",e,i)},YR=e=>pm(e,"kind")&&e.kind==="USER_ERROR";Ec.on("ERROR_REPORT",({error:e,options:t})=>{if(xc)return;xc=!0;let r=zR(e)&&e.raw?e.raw:e;try{let n=YR(e);dm(e,t,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new yc(`${i}, origin error: ${r.message}`);Nt.error(o),dm(new yc(o.message),{environment:t.environment},!1)}finally{xc=!1}})});var qt,Tc,$r=A(()=>{"use strict";gt();P();gt();qt=(e,t)=>{var r,n;return new gi((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},Tc=e=>new Wh(e)});var hm=A(()=>{"use strict";fm();$r();P();be();Hr.on("GLOBAL_ERROR",(e,t)=>{var n;let r={message:e.message,stack:(n=e.stack)!=null?n:"",errorType:e.name,source:0};j("trackAsync",{event:"reportJsError",data:r})});Hr.on("GLOBAL_USER_ERROR",(e,t)=>{Nt.log("UserError",e,t)})});var Rc=A(()=>{"use strict"});function mm(e,t){let r=(n,i,o)=>{let c=i!=null?i:{},{eventType:a}=c,s=je(c,["eventType"]),l=F(x({tag:n,eventType:o!=null?o:a!=null?a:B.Other},t),{extra:x({},s)});n=="globalJsError"?Ce(new Xh(JSON.stringify(l))):e("systemLog",l,E.webviewId)};return r.debounce=hi(r,500,{leading:!0}),r}function gm(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=hi(t,500,{leading:!0}),t}var vm=A(()=>{"use strict";P();P();gt();J()});function ym(e,t){let r=mm(e,t),n=gm(r);return{track:r,trackPerformance:n}}var _m=A(()=>{"use strict";vm()});var bm=A(()=>{"use strict";J();P();P()});var wm=A(()=>{"use strict";_m();Rc();bm()});var Yo,Im=A(()=>{"use strict";Yo=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 Qo(e,t,r){var l,c,d;let n=new Map,i=(l=r==null?void 0:r.baseUrl)!=null?l:fn(E.testMode),o=(c=r==null?void 0:r.type)!=null?c:"public",a=(d=r==null?void 0:r.defaultHeaders)!=null?d:{};return tt("onRequestTaskStateChange",u=>{if(typeof u.requestTaskId!="string")return;let p=n.get(u.requestTaskId);if(p)if(u.state==="success"){let f=u,{requestTaskId:v,state:_}=f,g=je(f,["requestTaskId","state"]);u.statusCode===200?p.resolve(g):p.reject(g),n.delete(v)}else if(u.state==="fail"){let h=u,{requestTaskId:v,state:_}=h,g=je(h,["requestTaskId","state"]);p.reject(g),n.delete(v)}else Nt.warn("onRequestTaskStateChange unknown event",u)}),te.on("onLoginComplete",({isLogin:u,token:p})=>{o!=="public"&&u&&p&&(a["X-JOLI-TOKEN"]=p)}),(f,...h)=>y(this,[f,...h],function*(u,p={}){let v=Date.now(),_=QR(u,F(x({},p),{baseUrl:i})),{method:g="GET",responseType:w="text",dataType:S="json",timeout:C,enableCache:O=!1,appendHostCookie:T=!0}=p,k=Object.assign({"content-type":"application/json"},a,p.header),R={url:_,method:g,header:k,enableCache:O,responseType:w,appendHostCookie:T};if(g=="POST"||g=="PUT"){let Ne=ZR(p.data,k["content-type"]);R.data=Ne}C&&Object.assign(R,{timeout:C});let{data:{requestTaskId:G}}=j(e,R);if(typeof G!="string")throw qt({code:-1,msg:"requestTaskId is not a string"});let{resolve:Ke,reject:M,promise:Pe}=new Ot;n.set(G,{resolve:Ke,reject:M});try{let Ne=yield Pe,{data:Br}=Ne;return S==="json"&&typeof Br=="string"&&(Br=XR(Br)),{url:_,timeout:C,method:g,response:F(x({},Ne),{data:Br})}}catch(Ne){let Br=Ne;if(Jr(Br)){let{errMsg:Bl,prefetchDetail:j$,isPrefetch:G$,errNo:uT}=Br;fi(Bl)&&Ce(qt({code:-1,msg:Bl},{errNo:uT,errMsg:Bl}))}throw Ne}})}function XR(e){try{return JSON.parse(e.trim())}catch(t){return e}}function ZR(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 QR,Oc=A(()=>{"use strict";P();be();gt();$r();J();QR=(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 Pc,Em,re,vt=A(()=>{"use strict";Oc();J();P();Pc={};(Em=E.hostUserInfo)!=null&&Em.token&&(Pc["x-joli-token"]=E.hostUserInfo.token);E.joliSource&&(Pc["x-joli-source"]=E.joliSource);re=Qo("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:fn(E.testMode),defaultHeaders:Pc})});function Sm(e){let t=_c.config[e];return t||(t={},_c.config[e]=t),(r,n)=>{if(t[r]){Nt.warn(`[can i use] ${r} already registered`);return}t[r]=x({},n)}}var km=A(()=>{"use strict";P()});function Nc(e){Am=e}function Xo(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>Xo(t)):Object.keys(e).reduce((t,r)=>(t[r]=Xo(e[r]),t),{})}function Xt(e){return typeof e=="number"}function Dc(e){let t=qc(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function qc(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var Am,we,Zo,ea,ta,ra,hn,na,ia,oa,aa,sa,la,ca,ua,da,pa,fa,ha,Lc=A(()=>{"use strict";Am=!1;we=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(Am)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 ${Dc(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return Xo(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:Xo(this._default)}optional(){return this._optional=!0,this}};Zo=class extends we{validate(t){return this._optional&&t===void 0?!0:Xt(t)?Xt(this._min)&&t<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):Xt(this._max)&&t>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):Xt(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}},ea=class extends we{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},ta=class extends we{validate(t){if(this._optional&&t===void 0)return!0;if(typeof t!="string")return this.fail({expect:"string",actual:t});if(Xt(this._maxLength)&&t.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if(Xt(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}},ra=class extends we{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},hn=class extends we{validate(t){return!0}},na=class extends we{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},ia=class extends we{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},oa=class extends we{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},aa=class extends we{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 ${Dc(t)}`)}return!0}},sa=class extends we{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(Xt(this._minItems)&&r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if(Xt(this._maxItems)&&r.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if(Xt(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}},la=class extends we{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(qc(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}},ca=class extends we{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(qc(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}},ua=class extends we{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:Dc(this.value),actual:r}):!0}},da=class extends we{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}},pa=class extends we{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}},fa=class extends we{validate(t){return t===void 0&&this._optional||t instanceof ArrayBuffer?!0:this.fail({expect:"arraybuffer",actual:t})}},ha=class extends we{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 Mc(e,t,r="param"){if(e.errors=[],e.path=r,Nc(!0),!e.validate(t)){let n=e.errors.join(`
3
+ `);throw e.errors.length=0,Nc(!1),new TypeError(n)}}var I,Uc=A(()=>{"use strict";Lc();Lc();I={object(e){return new ca(e)},array(e){return new sa(e)},tuple(...e){return new pa(...e)},literal(e){return new ua(e)},or(...e){return new da(...e)},symbol(){return new ra},record(e){return new la(e)},function(){return new oa},boolean(){return new ea},string(){return new ta},number(){return new Zo},undefined(){return new na},null(){return new ia},unknown(){return new hn},any(){return new hn},as(){return new hn},arraybuffer(){return new fa},enum(...e){return new aa(...e)},typedarray(e){return new ha(e)}}});var ma,Cm,xm=A(()=>{"use strict";P();gt();Uc();$r();ma=1,Cm=e=>{function t(n,i){return(...o)=>{var u,p,f,h;let a=Date.now(),s={method:n,trace_id:ma};ma+=1;let l="SUCCESS",c=`${n}:ok`,d=0;try{if(i.paramsSchema)try{Mc(i.paramsSchema,o,"params")}catch(w){throw Tc(`${n}:fail ${w.message}`)}let v=i.implement(...o),_=v,g=`${n}:ok`;if(v&&"code"in v){let{code:w,data:S,message:C}=v;l=w,_=S,g=C}return{code:l,message:g,data:_}}catch(v){let _=v;d=(p=(u=_.code)!=null?u:_.errNo)!=null?p:2e3,l="FAILURE";let g=(h=(f=_.message)!=null?f:_.errMsg)!=null?h:`${v}`;return c=`${n}:${l} ${g.replace(/^\S+:(fail|cancel)\s?/,"")}`,Ce(new gi(c,d)),{code:l,message:c}}finally{let v=Date.now()-a}}}function r(n,i){return(...o)=>y(this,null,function*(){var p,f,h,v;let a=Gh(o)?o:[o],s=Date.now(),l={method:n,trace_id:ma};ma+=1;let c=`${n}:ok`,d="SUCCESS",u={code:d,message:c};try{if(i.paramsSchema)try{Mc(i.paramsSchema,a,"params")}catch(w){throw Tc(w.message)}let g=yield i.implement(...a);if(g&&"code"in g){let{code:w,data:S,message:C}=g;d=w,c=C,g=S}return Object.assign(u,{code:d,message:c,data:g}),u}catch(_){let g=_,w=(f=(p=g.code)!=null?p:g.errNo)!=null?f:2e3;d="FAILURE";let S=(v=(h=g.message)!=null?h:g.errMsg)!=null?v:`${_}`,C=`${n}:${d} ${S.replace(/^\S+:(fail|cancel)\s?/,"")}`;return Object.assign(u,{code:d,message:C}),Ce(new gi(C,w)),u}finally{let _=Date.now()-s}})}return{createAPI:r,createSyncAPI:t}}});function Fc(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 Tm=A(()=>{"use strict"});var ue,H,q,Rm,Ye=A(()=>{"use strict";km();yt();xm();Uc();be();J();Tm();({createAPI:ue,createSyncAPI:H}=Cm(U)),q=Sm("native"),{canIUseNative:Rm}=xh(()=>E.sdkInfo.nativeSDKVersionCode,()=>E.platform)});function Om(e){let t=Object.prototype.toString.call(e).split(" ")[1].split("]")[0].toLocaleLowerCase();return t==="array"&&(t="object"),oO.includes(t)?t:""}function Pm(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 Nm(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 ga,tO,rO,nO,iO,_W,bW,oO,_i,va,ya=A(()=>{"use strict";Ye();be();P();vt();J();ga=Y(),tO=ue("getLocalStorage",{paramsSchema:I.tuple(I.string()),implement(e){return y(this,null,function*(){let{response:t}=yield re(`/api/games/user-storage/${E.mpId}`,{method:"GET",responseType:"json",appendHostCookie:!0,query:{key:e}}),{data:{code:r,message:n,data:i}}=yield t;if(r==="SUCCESS")return{code:r,message:n,data:i==null?void 0:i.value};try{let{data:{data:o,dataType:a}}=yield _e("getLocalStorageAsync",{key:e}),s=Pm(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}}})}});ga.registerCommand("StorageSDK.getItem",tO);q("storage.getItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});rO=ue("setStorage",{paramsSchema:I.tuple(I.string(),I.or(I.string(),I.boolean(),I.number())),implement(e,t){return y(this,null,function*(){let r=E.mpId,n=typeof t=="string"?t:String(t),{response:i}=yield re(`/api/games/user-storage/${r}`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e,value:n}}),{data:{code:o,message:a}}=i,s=Om(t),l=Nm(t,s);return yield _e("setLocalStorageAsync",{key:e,data:l,dataType:s}),o=="SUCCESS"?{code:o,message:a}:{code:o,message:`${a}. fallback to native`}})}});ga.registerCommand("StorageSDK.setItem",rO);q("storage.setItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});nO=ue("removeStorage",{paramsSchema:I.tuple(I.string()),implement(e){return y(this,null,function*(){let t=E.mpId,{response:r}=yield re(`/api/games/user-storage/${t}/remove`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e}}),{data:{code:n,message:i}}=r;return yield _e("removeLocalStorageAsync",{key:e}),n==="SUCCESS"?{code:n,message:i}:{code:n,message:"[Jolibox SDK] remove item succ"}})}});ga.registerCommand("StorageSDK.removeItem",nO);q("storage.removeItem",{version:"1.0.0",properties:{key:"1.0.0"}});iO=ue("clearStorage",{implement(){return y(this,null,function*(){let e=E.mpId,{response:t}=yield re(`/api/games/user-storage/${e}/clear`,{method:"POST",appendHostCookie:!0});_e("clearLocalStorageAsync");let{data:{code:r,message:n}}=t;return r==="SUCCESS"?{code:r,message:n}:{code:r,message:`${n}.fallback to native`}})}});ga.registerCommand("StorageSDK.clear",iO);q("storage.clear",{version:"1.0.0"});_W=ue("getStorageInfo",{implement(){return y(this,null,function*(){let{data:e}=yield _e("getStorageInfoAsync");return e})}});q("getStorageInfo",{version:"1.0.0",success:{keys:"1.0.0",currentSize:"1.0.0",limitSize:"1.0.0"}});bW=H("getStorageInfoSync",{implement(){return j("getStorageInfoSync")}}),oO=["string","number","boolean","object",""];_i=ue("getGlobalStorage",{paramsSchema:I.tuple(I.string()),implement(e){return y(this,null,function*(){try{let{data:{data:t,dataType:r}}=yield _e("getGlobalStorageAsync",{key:e});return{code:"SUCCESS",message:"success",data:Pm(t,r)}}catch(t){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get global storage failed",data:null}}})}}),va=ue("setGlobalStorage",{paramsSchema:I.tuple(I.string(),I.or(I.string(),I.boolean(),I.number(),I.array())),implement(e,t){return y(this,null,function*(){try{let r=Om(t),n=Nm(t,r);return yield _e("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 Dm,_a,qm=A(()=>{"use strict";J();Im();P();vt();be();ya();Dm="REPORT_FIRST_OPEN_GAME",_a=class extends Yo{constructor(t,r,n){super(r,n),this.gameId=E.mpId,this.sessionId=E.sessionId,this.track=t,this.taskUrl=fn(E.testMode)+"/api/base/app-event"}reporter(t){return y(this,null,function*(){let{event:r,params:n,extraParams:i}=t,o={eventType:r,gameInfo:x({gameId:this.gameId,sessionId:this.sessionId},n)};i&&Object.assign(o,i),yield E.platform==="android"?re("/api/base/app-event",{method:"POST",data:o}):_e("trackAppEventAsync",{url:this.taskUrl,body:JSON.stringify(o)})})}reportToNative(t){return y(this,null,function*(){let{event:r,params:n}=t;yield _e("userTrackAsync",{event:r,params:x({},n),gameId:this.gameId})})}tracker(t,r=null){this.track(t,r)}start(t){super.start(t),this.tryReportOpenGamePlus()}tryReportOpenGamePlus(){_i(Dm).then(t=>{Ir(t.data)&&t.data&&this.tracker("OpenGame_2Plus"),va(Dm,!0)})}}});var jm={};dh(jm,{nativeTaskEmitter:()=>bi,taskTracker:()=>It,track:()=>U,trackPerformance:()=>Um});var aO,Lm,Mm,U,Um,Fm,bi,It,yt=A(()=>{"use strict";hm();P();Rc();wm();J();qm();be();aO=(e,t,r)=>{var c,d,u,p,f,h,v;let n=t,i=Jr(n.extra)?n.extra:fi(n.extra)?JSON.parse(n.extra):{},{mpName:o,mpVersion:a}=(c=E.mpInfo)!=null?c:{},s=x(x(F(x({},i),{mp_id:(d=n.mp_id)!=null?d:"",mp_version:(u=n.mp_version)!=null?u:"",session_id:E.sessionId,user_id:(f=(p=E.hostUserInfo)==null?void 0:p.uid)!=null?f:""}),o?{mp_name:o}:{}),a?{mp_info_version:a}:{}),l=(h=n.eventType)!=null?h:B.Other;j("trackAsync",{event:(v=t.tag)!=null?v:e,data:s,webviewId:r,eventType:l})},{track:U,trackPerformance:Um}=ym(aO,{type:bc.AppSDK,platform:"native",jssdk_version:(Mm=(Lm=E.sdkInfo)==null?void 0:Lm.jssdkVersion)!=null?Mm:"1.0.0",mp_id:E.mpId,mp_version:E.mpVersion}),Fm=Y();Fm.registerCommand("ReportSDK.traceSystemTimeline",({event:e,duration:t,extra:r})=>{Um(e,t,r)});Fm.registerCommand("ReportSDK.traceSystem",({event:e,info:t})=>{U(e,t)});bi=new Dt,It=new _a(U,bi)});function Gm(){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}},aa=class extends we{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}=E.viewport;document.documentElement.style.setProperty("--status-bar-height",`${s}px`),document.documentElement.style.setProperty("--navigation-bar-height",`${l}px`)},o=()=>{function s(c){return w(this,null,function*(){let d=c instanceof URL?c.href:c,u=new Promise((p,f)=>{let 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 uh=S(()=>{"use strict";B()});var dh=S(()=>{"use strict"});var ph=S(()=>{"use strict";R();cc()});var fh=S(()=>{"use strict";B()});var ma,Cc=S(()=>{"use strict";dh();ph();B();fh();R();ma=new Nt});function Yt(e,t){for(var r in t)e[r]=t[r];return e}function Dc(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Je(e,t,r){var n,i,o,a={};for(o in t)o=="key"?n=t[o]:o=="ref"?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?ya.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 ga(e,a,n,i,null)}function ga(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?++vh:i,__i:-1,__u:0};return i==null&&N.vnode!=null&&N.vnode(o),o}function De(e){return e.children}function ct(e,t){this.props=e,this.context=t}function dn(e,t){if(t==null)return e.__?dn(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"?dn(e):null}function Eh(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 Eh(e)}}function Pc(e){(!e.__d&&(e.__d=!0)&&Gr.push(e)&&!va.__r++||mh!==N.debounceRendering)&&((mh=N.debounceRendering)||yh)(va)}function va(){for(var e,t,r,n,i,o,a,s=1;Gr.length;)Gr.length>s&&Gr.sort(_h),e=Gr.shift(),s=Gr.length,e.__d&&(r=void 0,i=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=Yt({},n)).__v=n.__v+1,N.vnode&&N.vnode(r),Lc(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?dn(n):i,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,Sh(o,r,a),r.__e!=i&&Eh(r)));va.__r=0}function kh(e,t,r,n,i,o,a,s,l,c,d){var u,p,f,h,v,y,g=n&&n.__k||Ih,b=t.length;for(l=O1(r,t,g,l,b),u=0;u<b;u++)(f=r.__k[u])!=null&&(p=f.__i===-1?_i:g[f.__i]||_i,f.__i=u,y=Lc(e,f,p,i,o,a,s,l,c,d),h=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&Mc(p.ref,null,f),d.push(f.ref,f.__c||h,f)),v==null&&h!=null&&(v=h),4&f.__u||p.__k===f.__k?l=Ah(f,l,e):typeof f.type=="function"&&y!==void 0?l=y:h&&(l=h.nextSibling),f.__u&=-7);return r.__e=v,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?ga(null,a,null,null,null):bi(a)?ga(De,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?ga(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=P1(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=dn(s)),Ch(s,s));return n}function Ah(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=Ah(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=dn(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function wi(e,t){return t=t||[],e==null||typeof e=="boolean"||(bi(e)?e.some(function(r){wi(r,t)}):t.push(e)),t}function P1(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 hh(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||T1.test(t)?r:r+"px"}function ha(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||hh(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||hh(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(bh,"$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=Nc,e.addEventListener(t,o?Oc:Tc,o)):e.removeEventListener(t,o?Oc:Tc,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 gh(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=Nc++;else if(t.u<r.t)return;return r(N.event?N.event(t):t)}}}function Lc(e,t,r,n,i,o,a,s,l,c){var d,u,p,f,h,v,y,g,b,k,x,P,T,A,O,J,Ke,M=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(l=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=N.__b)&&d(t);e:if(typeof M=="function")try{if(g=t.props,b="prototype"in M&&M.prototype.render,k=(d=M.contextType)&&n[d.__c],x=d?k?k.props.value:d.__:n,r.__c?y=(u=t.__c=r.__c).__=u.__E:(b?t.__c=u=new M(g,x):(t.__c=u=new ct(g,x),u.constructor=M,u.render=N1),k&&k.sub(u),u.props=g,u.state||(u.state={}),u.context=x,u.__n=n,p=u.__d=!0,u.__h=[],u._sb=[]),b&&u.__s==null&&(u.__s=u.state),b&&M.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Yt({},u.__s)),Yt(u.__s,M.getDerivedStateFromProps(g,u.__s))),f=u.props,h=u.state,u.__v=t,p)b&&M.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),b&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(b&&M.getDerivedStateFromProps==null&&g!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(g,x),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(g,u.__s,x)===!1||t.__v==r.__v)){for(t.__v!=r.__v&&(u.props=g,u.state=u.__s,u.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(Re){Re&&(Re.__=t)}),P=0;P<u._sb.length;P++)u.__h.push(u._sb[P]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(g,u.__s,x),b&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,h,v)})}if(u.context=x,u.props=g,u.__P=e,u.__e=!1,T=N.__r,A=0,b){for(u.state=u.__s,u.__d=!1,T&&T(t),d=u.render(u.props,u.state,u.context),O=0;O<u._sb.length;O++)u.__h.push(u._sb[O]);u._sb=[]}else do u.__d=!1,T&&T(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++A<25);u.state=u.__s,u.getChildContext!=null&&(n=Yt(Yt({},n),u.getChildContext())),b&&!p&&u.getSnapshotBeforeUpdate!=null&&(v=u.getSnapshotBeforeUpdate(f,h)),J=d,d!=null&&d.type===De&&d.key==null&&(J=xh(d.props.children)),s=kh(e,bi(J)?J:[J],t,r,n,i,o,a,s,l,c),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),y&&(u.__E=u.__=null)}catch(Re){if(t.__v=null,l||o!=null)if(Re.then){for(t.__u|=l?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;o[o.indexOf(s)]=null,t.__e=s}else for(Ke=o.length;Ke--;)Dc(o[Ke]);else t.__e=r.__e,t.__k=r.__k;N.__e(Re,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=R1(r.__e,t,r,n,i,o,a,l,c);return(d=N.diffed)&&d(t),128&t.__u?void 0:s}function Sh(e,t,r){for(var n=0;n<r.length;n++)Mc(r[n],r[++n],r[++n]);N.__c&&N.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){N.__e(o,i.__v)}})}function xh(e){return typeof e!="object"||e==null?e:bi(e)?e.map(xh):Yt({},e)}function R1(e,t,r,n,i,o,a,s,l){var c,d,u,p,f,h,v,y=r.props,g=t.props,b=t.type;if(b=="svg"?i="http://www.w3.org/2000/svg":b=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(c=0;c<o.length;c++)if((f=o[c])&&"setAttribute"in f==!!b&&(b?f.localName==b:f.nodeType==3)){e=f,o[c]=null;break}}if(e==null){if(b==null)return document.createTextNode(g);e=document.createElementNS(i,b,g.is&&g),s&&(N.__m&&N.__m(t,o),s=!1),o=null}if(b===null)y===g||s&&e.data===g||(e.data=g);else{if(o=o&&ya.call(e.childNodes),y=r.props||_i,!s&&o!=null)for(y={},c=0;c<e.attributes.length;c++)y[(f=e.attributes[c]).name]=f.value;for(c in y)if(f=y[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=f;else if(!(c in g)){if(c=="value"&&"defaultValue"in g||c=="checked"&&"defaultChecked"in g)continue;ha(e,c,null,f,i)}}for(c in g)f=g[c],c=="children"?p=f:c=="dangerouslySetInnerHTML"?d=f:c=="value"?h=f:c=="checked"?v=f:s&&typeof f!="function"||y[c]===f||ha(e,c,f,y[c],i);if(d)s||u&&(d.__html===u.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),kh(t.type==="template"?e.content:e,bi(p)?p:[p],t,r,n,b=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&dn(r,0),s,l),o!=null)for(c=o.length;c--;)Dc(o[c]);s||(c="value",b=="progress"&&h==null?e.removeAttribute("value"):h!==void 0&&(h!==e[c]||b=="progress"&&!h||b=="option"&&h!==y[c])&&ha(e,c,h,y[c],i),c="checked",v!==void 0&&v!==e[c]&&ha(e,c,v,y[c],i))}return e}function Mc(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(i){N.__e(i,r)}}function Ch(e,t,r){var n,i;if(N.unmount&&N.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Mc(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){N.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&Ch(n[i],t,r||typeof e.type!="function");r||Dc(e.__e),e.__c=e.__=e.__e=void 0}function N1(e,t,r){return this.constructor(e,r)}function vr(e,t,r){var n,i,o,a;t==document&&(t=document.documentElement),N.__&&N.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],Lc(t,e=(!n&&r||t).__k=Je(De,null,[e]),i||_i,_i,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?ya.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),Sh(o,e,a)}function Br(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,Pc(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"+wh++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var ya,N,vh,Rc,Gr,mh,yh,_h,bh,Nc,Tc,Oc,wh,_i,Ih,T1,bi,pn=S(()=>{_i={},Ih=[],T1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,bi=Array.isArray;ya=Ih.slice,N={__e:function(e,t,r,n){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,n||{}),a=i.__d),a)return i.__E=i}catch(s){e=s}throw e}},vh=0,Rc=function(e){return e!=null&&e.constructor==null},ct.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Yt({},this.state),typeof e=="function"&&(e=e(Yt({},r),this.props)),e&&Yt(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),Pc(this))},ct.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Pc(this))},ct.prototype.render=De,Gr=[],yh=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,_h=function(e,t){return e.__v.__b-t.__v.__b},va.__r=0,bh=/(PointerCapture)$|Capture$/i,Nc=0,Tc=gh(!1),Oc=gh(!0),wh=0});var fe=m((xW,Th)=>{"use strict";Th.exports=function(e){try{return!!e()}catch(t){return!0}}});var fn=m((CW,Oh)=>{"use strict";var D1=fe();Oh.exports=!D1(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var Ie=m((TW,Nh)=>{"use strict";var Ph=fn(),Rh=Function.prototype,qc=Rh.call,L1=Ph&&Rh.bind.bind(qc,qc);Nh.exports=Ph?L1:function(e){return function(){return qc.apply(e,arguments)}}});var Qe=m((OW,Dh)=>{"use strict";var M1=Ie();Dh.exports=M1({}.isPrototypeOf)});var me=m((Uc,Lh)=>{"use strict";var Ii=function(e){return e&&e.Math===Math&&e};Lh.exports=Ii(typeof globalThis=="object"&&globalThis)||Ii(typeof window=="object"&&window)||Ii(typeof self=="object"&&self)||Ii(typeof global=="object"&&global)||Ii(typeof Uc=="object"&&Uc)||function(){return this}()||Function("return this")()});var Fc=m((PW,Fh)=>{"use strict";var q1=fn(),Uh=Function.prototype,Mh=Uh.apply,qh=Uh.call;Fh.exports=typeof Reflect=="object"&&Reflect.apply||(q1?qh.bind(Mh):function(){return qh.apply(Mh,arguments)})});var Qt=m((RW,Jh)=>{"use strict";var jh=Ie(),U1=jh({}.toString),F1=jh("".slice);Jh.exports=function(e){return F1(U1(e),8,-1)}});var Ei=m((NW,Gh)=>{"use strict";var j1=Qt(),J1=Ie();Gh.exports=function(e){if(j1(e)==="Function")return J1(e)}});var Le=m((DW,Bh)=>{"use strict";var jc=typeof document=="object"&&document.all;Bh.exports=typeof jc=="undefined"&&jc!==void 0?function(e){return typeof e=="function"||e===jc}:function(e){return typeof e=="function"}});var Xe=m((LW,Hh)=>{"use strict";var G1=fe();Hh.exports=!G1(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var Et=m((MW,Vh)=>{"use strict";var B1=fn(),_a=Function.prototype.call;Vh.exports=B1?_a.bind(_a):function(){return _a.apply(_a,arguments)}});var Jc=m(zh=>{"use strict";var $h={}.propertyIsEnumerable,Wh=Object.getOwnPropertyDescriptor,H1=Wh&&!$h.call({1:2},1);zh.f=H1?function(t){var r=Wh(this,t);return!!r&&r.enumerable}:$h});var ki=m((UW,Kh)=>{"use strict";Kh.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var ba=m((FW,Yh)=>{"use strict";var V1=Ie(),$1=fe(),W1=Qt(),Gc=Object,z1=V1("".split);Yh.exports=$1(function(){return!Gc("z").propertyIsEnumerable(0)})?function(e){return W1(e)==="String"?z1(e,""):Gc(e)}:Gc});var Hr=m((jW,Qh)=>{"use strict";Qh.exports=function(e){return e==null}});var Vr=m((JW,Xh)=>{"use strict";var K1=Hr(),Y1=TypeError;Xh.exports=function(e){if(K1(e))throw new Y1("Can't call method on "+e);return e}});var yr=m((GW,Zh)=>{"use strict";var Q1=ba(),X1=Vr();Zh.exports=function(e){return Q1(X1(e))}});var Ce=m((BW,eg)=>{"use strict";var Z1=Le();eg.exports=function(e){return typeof e=="object"?e!==null:Z1(e)}});var Lt=m((HW,tg)=>{"use strict";tg.exports={}});var mn=m((VW,ng)=>{"use strict";var Bc=Lt(),Hc=me(),eO=Le(),rg=function(e){return eO(e)?e:void 0};ng.exports=function(e,t){return arguments.length<2?rg(Bc[e])||rg(Hc[e]):Bc[e]&&Bc[e][t]||Hc[e]&&Hc[e][t]}});var wa=m(($W,ag)=>{"use strict";var tO=me(),ig=tO.navigator,og=ig&&ig.userAgent;ag.exports=og?String(og):""});var Ea=m((WW,pg)=>{"use strict";var dg=me(),Vc=wa(),sg=dg.process,lg=dg.Deno,cg=sg&&sg.versions||lg&&lg.version,ug=cg&&cg.v8,kt,Ia;ug&&(kt=ug.split("."),Ia=kt[0]>0&&kt[0]<4?1:+(kt[0]+kt[1]));!Ia&&Vc&&(kt=Vc.match(/Edge\/(\d+)/),(!kt||kt[1]>=74)&&(kt=Vc.match(/Chrome\/(\d+)/),kt&&(Ia=+kt[1])));pg.exports=Ia});var $c=m((zW,mg)=>{"use strict";var fg=Ea(),rO=fe(),nO=me(),iO=nO.String;mg.exports=!!Object.getOwnPropertySymbols&&!rO(function(){var e=Symbol("symbol detection");return!iO(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&fg&&fg<41})});var Wc=m((KW,hg)=>{"use strict";var oO=$c();hg.exports=oO&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var zc=m((YW,gg)=>{"use strict";var aO=mn(),sO=Le(),lO=Qe(),cO=Wc(),uO=Object;gg.exports=cO?function(e){return typeof e=="symbol"}:function(e){var t=aO("Symbol");return sO(t)&&lO(t.prototype,uO(e))}});var Ai=m((QW,vg)=>{"use strict";var dO=String;vg.exports=function(e){try{return dO(e)}catch(t){return"Object"}}});var $r=m((XW,yg)=>{"use strict";var pO=Le(),fO=Ai(),mO=TypeError;yg.exports=function(e){if(pO(e))return e;throw new mO(fO(e)+" is not a function")}});var ka=m((ZW,_g)=>{"use strict";var hO=$r(),gO=Hr();_g.exports=function(e,t){var r=e[t];return gO(r)?void 0:hO(r)}});var wg=m((ez,bg)=>{"use strict";var Kc=Et(),Yc=Le(),Qc=Ce(),vO=TypeError;bg.exports=function(e,t){var r,n;if(t==="string"&&Yc(r=e.toString)&&!Qc(n=Kc(r,e))||Yc(r=e.valueOf)&&!Qc(n=Kc(r,e))||t!=="string"&&Yc(r=e.toString)&&!Qc(n=Kc(r,e)))return n;throw new vO("Can't convert object to primitive value")}});var hn=m((tz,Ig)=>{"use strict";Ig.exports=!0});var Ag=m((rz,kg)=>{"use strict";var Eg=me(),yO=Object.defineProperty;kg.exports=function(e,t){try{yO(Eg,e,{value:t,configurable:!0,writable:!0})}catch(r){Eg[e]=t}return t}});var Si=m((nz,Cg)=>{"use strict";var _O=hn(),bO=me(),wO=Ag(),Sg="__core-js_shared__",xg=Cg.exports=bO[Sg]||wO(Sg,{});(xg.versions||(xg.versions=[])).push({version:"3.41.0",mode:_O?"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 Xc=m((iz,Og)=>{"use strict";var Tg=Si();Og.exports=function(e,t){return Tg[e]||(Tg[e]=t||{})}});var gn=m((oz,Pg)=>{"use strict";var IO=Vr(),EO=Object;Pg.exports=function(e){return EO(IO(e))}});var ut=m((az,Rg)=>{"use strict";var kO=Ie(),AO=gn(),SO=kO({}.hasOwnProperty);Rg.exports=Object.hasOwn||function(t,r){return SO(AO(t),r)}});var Aa=m((sz,Ng)=>{"use strict";var xO=Ie(),CO=0,TO=Math.random(),OO=xO(1 .toString);Ng.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+OO(++CO+TO,36)}});var Ge=m((lz,Lg)=>{"use strict";var PO=me(),RO=Xc(),Dg=ut(),NO=Aa(),DO=$c(),LO=Wc(),vn=PO.Symbol,Zc=RO("wks"),MO=LO?vn.for||vn:vn&&vn.withoutSetter||NO;Lg.exports=function(e){return Dg(Zc,e)||(Zc[e]=DO&&Dg(vn,e)?vn[e]:MO("Symbol."+e)),Zc[e]}});var Fg=m((cz,Ug)=>{"use strict";var qO=Et(),Mg=Ce(),qg=zc(),UO=ka(),FO=wg(),jO=Ge(),JO=TypeError,GO=jO("toPrimitive");Ug.exports=function(e,t){if(!Mg(e)||qg(e))return e;var r=UO(e,GO),n;if(r){if(t===void 0&&(t="default"),n=qO(r,e,t),!Mg(n)||qg(n))return n;throw new JO("Can't convert object to primitive value")}return t===void 0&&(t="number"),FO(e,t)}});var eu=m((uz,jg)=>{"use strict";var BO=Fg(),HO=zc();jg.exports=function(e){var t=BO(e,"string");return HO(t)?t:t+""}});var ru=m((dz,Gg)=>{"use strict";var VO=me(),Jg=Ce(),tu=VO.document,$O=Jg(tu)&&Jg(tu.createElement);Gg.exports=function(e){return $O?tu.createElement(e):{}}});var nu=m((pz,Bg)=>{"use strict";var WO=Xe(),zO=fe(),KO=ru();Bg.exports=!WO&&!zO(function(){return Object.defineProperty(KO("div"),"a",{get:function(){return 7}}).a!==7})});var iu=m(Vg=>{"use strict";var YO=Xe(),QO=Et(),XO=Jc(),ZO=ki(),eP=yr(),tP=eu(),rP=ut(),nP=nu(),Hg=Object.getOwnPropertyDescriptor;Vg.f=YO?Hg:function(t,r){if(t=eP(t),r=tP(r),nP)try{return Hg(t,r)}catch(n){}if(rP(t,r))return ZO(!QO(XO.f,t,r),t[r])}});var Wg=m((mz,$g)=>{"use strict";var iP=fe(),oP=Le(),aP=/#|\.prototype\./,xi=function(e,t){var r=lP[sP(e)];return r===uP?!0:r===cP?!1:oP(t)?iP(t):!!t},sP=xi.normalize=function(e){return String(e).replace(aP,".").toLowerCase()},lP=xi.data={},cP=xi.NATIVE="N",uP=xi.POLYFILL="P";$g.exports=xi});var Ci=m((hz,Kg)=>{"use strict";var zg=Ei(),dP=$r(),pP=fn(),fP=zg(zg.bind);Kg.exports=function(e,t){return dP(e),t===void 0?e:pP?fP(e,t):function(){return e.apply(t,arguments)}}});var ou=m((gz,Yg)=>{"use strict";var mP=Xe(),hP=fe();Yg.exports=mP&&hP(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var Xt=m((vz,Qg)=>{"use strict";var gP=Ce(),vP=String,yP=TypeError;Qg.exports=function(e){if(gP(e))return e;throw new yP(vP(e)+" is not an object")}});var Zt=m(Zg=>{"use strict";var _P=Xe(),bP=nu(),wP=ou(),Sa=Xt(),Xg=eu(),IP=TypeError,au=Object.defineProperty,EP=Object.getOwnPropertyDescriptor,su="enumerable",lu="configurable",cu="writable";Zg.f=_P?wP?function(t,r,n){if(Sa(t),r=Xg(r),Sa(n),typeof t=="function"&&r==="prototype"&&"value"in n&&cu in n&&!n[cu]){var i=EP(t,r);i&&i[cu]&&(t[r]=n.value,n={configurable:lu in n?n[lu]:i[lu],enumerable:su in n?n[su]:i[su],writable:!1})}return au(t,r,n)}:au:function(t,r,n){if(Sa(t),r=Xg(r),Sa(n),bP)try{return au(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new IP("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var Wr=m((_z,ev)=>{"use strict";var kP=Xe(),AP=Zt(),SP=ki();ev.exports=kP?function(e,t,r){return AP.f(e,t,SP(1,r))}:function(e,t,r){return e[t]=r,e}});var Z=m((bz,rv)=>{"use strict";var Ti=me(),xP=Fc(),CP=Ei(),TP=Le(),OP=iu().f,PP=Wg(),yn=Lt(),RP=Ci(),_n=Wr(),tv=ut();Si();var NP=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 xP(e,this,arguments)};return t.prototype=e.prototype,t};rv.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o=e.proto,a=n?Ti:i?Ti[r]:Ti[r]&&Ti[r].prototype,s=n?yn:yn[r]||_n(yn,r,{})[r],l=s.prototype,c,d,u,p,f,h,v,y,g;for(p in t)c=PP(n?p:r+(i?".":"#")+p,e.forced),d=!c&&a&&tv(a,p),h=s[p],d&&(e.dontCallGetSet?(g=OP(a,p),v=g&&g.value):v=a[p]),f=d&&v?v:t[p],!(!c&&!o&&typeof h==typeof f)&&(e.bind&&d?y=RP(f,Ti):e.wrap&&d?y=NP(f):o&&TP(f)?y=CP(f):y=f,(e.sham||f&&f.sham||h&&h.sham)&&_n(y,"sham",!0),_n(s,p,y),o&&(u=r+"Prototype",tv(yn,u)||_n(yn,u,{}),_n(yn[u],p,f),e.real&&l&&(c||!l[p])&&_n(l,p,f)))}});var iv=m((wz,nv)=>{"use strict";var DP=Math.ceil,LP=Math.floor;nv.exports=Math.trunc||function(t){var r=+t;return(r>0?LP:DP)(r)}});var Oi=m((Iz,ov)=>{"use strict";var MP=iv();ov.exports=function(e){var t=+e;return t!==t||t===0?0:MP(t)}});var uu=m((Ez,av)=>{"use strict";var qP=Oi(),UP=Math.min;av.exports=function(e){var t=qP(e);return t>0?UP(t,9007199254740991):0}});var bn=m((kz,sv)=>{"use strict";var FP=uu();sv.exports=function(e){return FP(e.length)}});var Pi=m((Az,lv)=>{"use strict";var jP=Qt();lv.exports=Array.isArray||function(t){return jP(t)==="Array"}});var xa=m((Sz,uv)=>{"use strict";var JP=Ge(),GP=JP("toStringTag"),cv={};cv[GP]="z";uv.exports=String(cv)==="[object z]"});var wn=m((xz,dv)=>{"use strict";var BP=xa(),HP=Le(),Ca=Qt(),VP=Ge(),$P=VP("toStringTag"),WP=Object,zP=Ca(function(){return arguments}())==="Arguments",KP=function(e,t){try{return e[t]}catch(r){}};dv.exports=BP?Ca:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=KP(t=WP(e),$P))=="string"?r:zP?Ca(t):(n=Ca(t))==="Object"&&HP(t.callee)?"Arguments":n}});var fv=m((Cz,pv)=>{"use strict";var YP=Ie(),QP=Le(),du=Si(),XP=YP(Function.toString);QP(du.inspectSource)||(du.inspectSource=function(e){return XP(e)});pv.exports=du.inspectSource});var fu=m((Tz,yv)=>{"use strict";var ZP=Ie(),eR=fe(),mv=Le(),tR=wn(),rR=mn(),nR=fv(),hv=function(){},gv=rR("Reflect","construct"),pu=/^\s*(?:class|function)\b/,iR=ZP(pu.exec),oR=!pu.test(hv),Ri=function(t){if(!mv(t))return!1;try{return gv(hv,[],t),!0}catch(r){return!1}},vv=function(t){if(!mv(t))return!1;switch(tR(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return oR||!!iR(pu,nR(t))}catch(r){return!0}};vv.sham=!0;yv.exports=!gv||eR(function(){var e;return Ri(Ri.call)||!Ri(Object)||!Ri(function(){e=!0})||e})?vv:Ri});var Iv=m((Oz,wv)=>{"use strict";var _v=Pi(),aR=fu(),sR=Ce(),lR=Ge(),cR=lR("species"),bv=Array;wv.exports=function(e){var t;return _v(e)&&(t=e.constructor,aR(t)&&(t===bv||_v(t.prototype))?t=void 0:sR(t)&&(t=t[cR],t===null&&(t=void 0))),t===void 0?bv:t}});var mu=m((Pz,Ev)=>{"use strict";var uR=Iv();Ev.exports=function(e,t){return new(uR(e))(t===0?0:t)}});var br=m((Rz,Av)=>{"use strict";var dR=Ci(),pR=Ie(),fR=ba(),mR=gn(),hR=bn(),gR=mu(),kv=pR([].push),_r=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=mR(l),f=fR(p),h=hR(f),v=dR(c,d),y=0,g=u||gR,b=t?g(l,h):r||a?g(l,0):void 0,k,x;h>y;y++)if((s||y in f)&&(k=f[y],x=v(k,y,p),e))if(t)b[y]=x;else if(x)switch(e){case 3:return!0;case 5:return k;case 6:return y;case 2:kv(b,k)}else switch(e){case 4:return!1;case 7:kv(b,k)}return o?-1:n||i?i:b}};Av.exports={forEach:_r(0),map:_r(1),filter:_r(2),some:_r(3),every:_r(4),find:_r(5),findIndex:_r(6),filterReject:_r(7)}});var Ni=m((Nz,Sv)=>{"use strict";var vR=fe(),yR=Ge(),_R=Ea(),bR=yR("species");Sv.exports=function(e){return _R>=51||!vR(function(){var t=[],r=t.constructor={};return r[bR]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var xv=m(()=>{"use strict";var wR=Z(),IR=br().filter,ER=Ni(),kR=ER("filter");wR({target:"Array",proto:!0,forced:!kR},{filter:function(t){return IR(this,t,arguments.length>1?arguments[1]:void 0)}})});var _t=m((Mz,Cv)=>{"use strict";var AR=me(),SR=Lt();Cv.exports=function(e,t){var r=SR[e+"Prototype"],n=r&&r[t];if(n)return n;var i=AR[e],o=i&&i.prototype;return o&&o[t]}});var Ov=m((qz,Tv)=>{"use strict";xv();var xR=_t();Tv.exports=xR("Array","filter")});var Rv=m((Uz,Pv)=>{"use strict";var CR=Qe(),TR=Ov(),hu=Array.prototype;Pv.exports=function(e){var t=e.filter;return e===hu||CR(hu,e)&&t===hu.filter?TR:t}});var Dv=m((Fz,Nv)=>{"use strict";var OR=Rv();Nv.exports=OR});var Mv=m((jz,Lv)=>{Lv.exports=Dv()});var Di=m((Jz,qv)=>{"use strict";var PR=fe();qv.exports=function(e,t){var r=[][e];return!!r&&PR(function(){r.call(null,t||function(){return 1},1)})}});var Uv=m(()=>{"use strict";var RR=Z(),NR=br().every,DR=Di(),LR=DR("every");RR({target:"Array",proto:!0,forced:!LR},{every:function(t){return NR(this,t,arguments.length>1?arguments[1]:void 0)}})});var jv=m((Hz,Fv)=>{"use strict";Uv();var MR=_t();Fv.exports=MR("Array","every")});var Gv=m((Vz,Jv)=>{"use strict";var qR=Qe(),UR=jv(),gu=Array.prototype;Jv.exports=function(e){var t=e.every;return e===gu||qR(gu,e)&&t===gu.every?UR:t}});var Hv=m(($z,Bv)=>{"use strict";var FR=Gv();Bv.exports=FR});var $v=m((Wz,Vv)=>{Vv.exports=Hv()});var zv=m((zz,Wv)=>{"use strict";var jR=br().forEach,JR=Di(),GR=JR("forEach");Wv.exports=GR?[].forEach:function(t){return jR(this,t,arguments.length>1?arguments[1]:void 0)}});var Yv=m(()=>{"use strict";var BR=Z(),Kv=zv();BR({target:"Array",proto:!0,forced:[].forEach!==Kv},{forEach:Kv})});var Xv=m((Qz,Qv)=>{"use strict";Yv();var HR=_t();Qv.exports=HR("Array","forEach")});var ey=m((Xz,Zv)=>{"use strict";var VR=Xv();Zv.exports=VR});var ty=m(()=>{});var ny=m((t6,ry)=>{"use strict";var $R=wn(),WR=ut(),zR=Qe(),KR=ey();ty();var vu=Array.prototype,YR={DOMTokenList:!0,NodeList:!0};ry.exports=function(e){var t=e.forEach;return e===vu||zR(vu,e)&&t===vu.forEach||WR(YR,$R(e))?KR:t}});var oy=m((r6,iy)=>{iy.exports=ny()});var sy=m((n6,ay)=>{"use strict";var QR=TypeError,XR=9007199254740991;ay.exports=function(e){if(e>XR)throw QR("Maximum allowed index exceeded");return e}});var yu=m((i6,ly)=>{"use strict";var ZR=Xe(),eN=Zt(),tN=ki();ly.exports=function(e,t,r){ZR?eN.f(e,t,tN(0,r)):e[t]=r}});var py=m(()=>{"use strict";var rN=Z(),nN=fe(),iN=Pi(),oN=Ce(),aN=gn(),sN=bn(),cy=sy(),uy=yu(),lN=mu(),cN=Ni(),uN=Ge(),dN=Ea(),dy=uN("isConcatSpreadable"),pN=dN>=51||!nN(function(){var e=[];return e[dy]=!1,e.concat()[0]!==e}),fN=function(e){if(!oN(e))return!1;var t=e[dy];return t!==void 0?!!t:iN(e)},mN=!pN||!cN("concat");rN({target:"Array",proto:!0,arity:1,forced:mN},{concat:function(t){var r=aN(this),n=lN(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],fN(c))for(l=sN(c),cy(i+l),a=0;a<l;a++,i++)a in c&&uy(n,i,c[a]);else cy(i+1),uy(n,i++,c);return n.length=i,n}})});var my=m((s6,fy)=>{"use strict";py();var hN=_t();fy.exports=hN("Array","concat")});var gy=m((l6,hy)=>{"use strict";var gN=Qe(),vN=my(),_u=Array.prototype;hy.exports=function(e){var t=e.concat;return e===_u||gN(_u,e)&&t===_u.concat?vN:t}});var yy=m((c6,vy)=>{"use strict";var yN=gy();vy.exports=yN});var by=m((u6,_y)=>{_y.exports=yy()});var wy=m(()=>{"use strict";var _N=Z(),bN=br().some,wN=Di(),IN=wN("some");_N({target:"Array",proto:!0,forced:!IN},{some:function(t){return bN(this,t,arguments.length>1?arguments[1]:void 0)}})});var Ey=m((f6,Iy)=>{"use strict";wy();var EN=_t();Iy.exports=EN("Array","some")});var Ay=m((m6,ky)=>{"use strict";var kN=Qe(),AN=Ey(),bu=Array.prototype;ky.exports=function(e){var t=e.some;return e===bu||kN(bu,e)&&t===bu.some?AN:t}});var xy=m((h6,Sy)=>{"use strict";var SN=Ay();Sy.exports=SN});var Ty=m((g6,Cy)=>{Cy.exports=xy()});var Py=m((v6,Oy)=>{"use strict";var Li=me(),xN=wa(),CN=Qt(),Ta=function(e){return xN.slice(0,e.length)===e};Oy.exports=function(){return Ta("Bun/")?"BUN":Ta("Cloudflare-Workers")?"CLOUDFLARE":Ta("Deno/")?"DENO":Ta("Node.js/")?"NODE":Li.Bun&&typeof Bun.version=="string"?"BUN":Li.Deno&&typeof Deno.version=="object"?"DENO":CN(Li.process)==="process"?"NODE":Li.window&&Li.document?"BROWSER":"REST"}()});var Mi=m((y6,Ry)=>{"use strict";var TN=Ie();Ry.exports=TN([].slice)});var Dy=m((_6,Ny)=>{"use strict";var ON=TypeError;Ny.exports=function(e,t){if(e<t)throw new ON("Not enough arguments");return e}});var wu=m((b6,My)=>{"use strict";var Ly=me(),PN=Fc(),RN=Le(),NN=Py(),DN=wa(),LN=Mi(),MN=Dy(),qN=Ly.Function,UN=/MSIE .\./.test(DN)||NN==="BUN"&&function(){var e=Ly.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();My.exports=function(e,t){var r=t?2:1;return UN?function(n,i){var o=MN(arguments.length,1)>r,a=RN(n)?n:qN(n),s=o?LN(arguments,r):[],l=o?function(){PN(a,this,s)}:a;return t?e(l,i):e(l)}:e}});var Fy=m(()=>{"use strict";var FN=Z(),Uy=me(),jN=wu(),qy=jN(Uy.setInterval,!0);FN({global:!0,bind:!0,forced:Uy.setInterval!==qy},{setInterval:qy})});var Gy=m(()=>{"use strict";var JN=Z(),Jy=me(),GN=wu(),jy=GN(Jy.setTimeout,!0);JN({global:!0,bind:!0,forced:Jy.setTimeout!==jy},{setTimeout:jy})});var By=m(()=>{"use strict";Fy();Gy()});var Vy=m((x6,Hy)=>{"use strict";By();var BN=Lt();Hy.exports=BN.setTimeout});var Wy=m((C6,$y)=>{$y.exports=Vy()});function Ui(e,t){ge.__h&&ge.__h(oe,e,qi||t),qi=0;var r=oe.__H||(oe.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Pa(e){return qi=1,n_(i_,e)}function n_(e,t,r){var n=Ui(zr++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):i_(void 0,t),function(s){var l=n.__N?n.__N[0]:n.__[0],c=n.t(l,s);l!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=oe,!oe.__f)){var i=function(s,l,c){if(!n.__c.__H)return!0;var d=n.__c.__H.__.filter(function(p){return!!p.__c});if(d.every(function(p){return!p.__N}))return!o||o.call(this,s,l,c);var u=n.__c.props!==s;return d.forEach(function(p){if(p.__N){var f=p.__[0];p.__=p.__N,p.__N=void 0,f!==p.__[0]&&(u=!0)}}),o&&o.call(this,s,l,c)||u};oe.__f=!0;var o=oe.shouldComponentUpdate,a=oe.componentWillUpdate;oe.componentWillUpdate=function(s,l,c){if(this.__e){var d=o;o=void 0,i(s,l,c),o=d}a&&a.call(this,s,l,c)},oe.shouldComponentUpdate=i}return n.__N||n.__}function Fi(e,t){var r=Ui(zr++,3);!ge.__s&&ku(r.__H,t)&&(r.__=e,r.u=t,oe.__H.__h.push(r))}function In(e,t){var r=Ui(zr++,4);!ge.__s&&ku(r.__H,t)&&(r.__=e,r.u=t,oe.__h.push(r))}function ji(e){return qi=5,Ji(function(){return{current:e}},[])}function Ji(e,t){var r=Ui(zr++,7);return ku(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function En(e,t){return qi=8,Ji(function(){return e},t)}function kn(e){var t=oe.context[e.__c],r=Ui(zr++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(oe)),t.props.value):e.__}function HN(){for(var e;e=r_.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Oa),e.__H.__h.forEach(Eu),e.__H.__h=[]}catch(t){e.__H.__h=[],ge.__e(t,e.__v)}}function VN(e){var t,r=function(){clearTimeout(n),t_&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);t_&&(t=requestAnimationFrame(r))}function Oa(e){var t=oe,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),oe=t}function Eu(e){var t=oe;e.__c=e.__(),oe=t}function ku(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function i_(e,t){return typeof t=="function"?t(e):t}var zr,oe,Iu,zy,qi,r_,ge,Ky,Yy,Qy,Xy,Zy,e_,t_,Au=S(()=>{pn();qi=0,r_=[],ge=N,Ky=ge.__b,Yy=ge.__r,Qy=ge.diffed,Xy=ge.__c,Zy=ge.unmount,e_=ge.__;ge.__b=function(e){oe=null,Ky&&Ky(e)},ge.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),e_&&e_(e,t)},ge.__r=function(e){Yy&&Yy(e),zr=0;var t=(oe=e.__c).__H;t&&(Iu===oe?(t.__h=[],oe.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Oa),t.__h.forEach(Eu),t.__h=[],zr=0)),Iu=oe},ge.diffed=function(e){Qy&&Qy(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(r_.push(t)!==1&&zy===ge.requestAnimationFrame||((zy=ge.requestAnimationFrame)||VN)(HN)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Iu=oe=null},ge.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Oa),r.__h=r.__h.filter(function(n){return!n.__||Eu(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],ge.__e(n,r.__v)}}),Xy&&Xy(e,t)},ge.unmount=function(e){Zy&&Zy(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Oa(n)}catch(i){t=i}}),r.__H=void 0,t&&ge.__e(t,r.__v))};t_=typeof requestAnimationFrame=="function"});function m_(e,t){for(var r in t)e[r]=t[r];return e}function xu(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 o_(e,t){this.props=e,this.context=t}function Tu(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:xu(this.props,i)}function n(i){return this.shouldComponentUpdate=r,Je(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function Ou(e){function t(r){var n=m_({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=$N,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function h_(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=m_({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return h_(n,t,r)})),e}function g_(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return g_(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 Su(){this.__u=0,this.o=null,this.__b=null}function v_(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ra(){this.i=null,this.l=null}function Pu(e,t,r){return t.__k==null&&(t.textContent=""),vr(e,t),typeof r=="function"&&r(),e?e.__c:null}function eD(){}function tD(){return this.cancelBubble}function rD(){return this.defaultPrevented}var Cu,a_,$N,WN,s_,l_,zN,KN,YN,QN,XN,ZN,c_,y_,nD,u_,d_,p_,Na=S(()=>{pn();pn();Au();Au();Cu=In;(o_.prototype=new ct).isPureReactComponent=!0,o_.prototype.shouldComponentUpdate=function(e,t){return xu(this.props,e)||xu(this.state,t)};a_=N.__b;N.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),a_&&a_(e)};$N=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;WN=N.__e;N.__e=function(e,t,r,n){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),i.__c(e,t)}WN(e,t,r,n)};s_=N.unmount;N.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),s_&&s_(e)},(Su.prototype=new ct).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=v_(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]=g_(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)},Su.prototype.componentWillUnmount=function(){this.o=[]},Su.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]=h_(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&Je(De,null,e.fallback);return i&&(i.__u&=-33),[Je(De,null,t.__a?null:e.children),i]};l_=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]}};(Ra.prototype=new ct).__a=function(e){var t=this,r=v_(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),l_(t,e,n)):i()};r?r(o):o()}},Ra.prototype.render=function(e){this.i=null,this.l=new Map;var t=wi(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},Ra.prototype.componentDidUpdate=Ra.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){l_(e,r,t)})};zN=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,KN=/^(?: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]/,YN=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,QN=/[A-Z0-9]/g,XN=typeof document!="undefined",ZN=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};ct.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ct.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});c_=N.event;N.event=function(e){return c_&&(e=c_(e)),e.persist=eD,e.isPropagationStopped=tD,e.isDefaultPrevented=rD,e.nativeEvent=e};nD={enumerable:!1,configurable:!0,get:function(){return this.class}},u_=N.vnode;N.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,n=t.type,i={},o=n.indexOf("-")===-1;for(var a in r){var s=r[a];if(!(a==="value"&&"defaultValue"in r&&s==null||XN&&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"||ZN(r.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":YN.test(a)&&(a=l):l=a="oninput":o&&KN.test(a)?a=a.replace(QN,"-$&").toLowerCase():s===null&&(s=void 0),l==="oninput"&&i[a=l]&&(a="oninputCapture"),i[a]=s}}n=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=wi(r.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=wi(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",nD)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=zN,u_&&u_(e)};d_=N.__r;N.__r=function(e){d_&&d_(e),y_=e.__c};p_=N.diffed;N.diffed=function(e){p_&&p_(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),y_=null}});var Nu=m(()=>{"use strict";var oD=Z(),Ru=me();oD({global:!0,forced:Ru.globalThis!==Ru},{globalThis:Ru})});var __=m(()=>{"use strict";Nu()});var w_=m((H6,b_)=>{"use strict";Nu();b_.exports=me()});var E_=m((V6,I_)=>{"use strict";var aD=w_();I_.exports=aD});var A_=m(($6,k_)=>{"use strict";var sD=E_();k_.exports=sD});var x_=m((W6,S_)=>{"use strict";__();var lD=A_();S_.exports=lD});var T_=m((z6,C_)=>{"use strict";C_.exports=x_()});var P_=m((K6,O_)=>{O_.exports=T_()});var R_=m(()=>{"use strict";var cD=Z(),uD=Pi();cD({target:"Array",stat:!0},{isArray:uD})});var D_=m((X6,N_)=>{"use strict";R_();var dD=Lt();N_.exports=dD.Array.isArray});var M_=m((Z6,L_)=>{"use strict";var pD=D_();L_.exports=pD});var U_=m((e8,q_)=>{q_.exports=M_()});var j_=m((t8,F_)=>{"use strict";F_.exports=function(){}});var Kr=m((r8,J_)=>{"use strict";J_.exports={}});var Du=m((n8,B_)=>{"use strict";var fD=me(),mD=Le(),G_=fD.WeakMap;B_.exports=mD(G_)&&/native code/.test(String(G_))});var Da=m((i8,V_)=>{"use strict";var hD=Xc(),gD=Aa(),H_=hD("keys");V_.exports=function(e){return H_[e]||(H_[e]=gD(e))}});var Gi=m((o8,$_)=>{"use strict";$_.exports={}});var Qr=m((a8,K_)=>{"use strict";var vD=Du(),z_=me(),yD=Ce(),_D=Wr(),Lu=ut(),Mu=Si(),bD=Da(),wD=Gi(),W_="Object already initialized",qu=z_.TypeError,ID=z_.WeakMap,La,Bi,Ma,ED=function(e){return Ma(e)?Bi(e):La(e,{})},kD=function(e){return function(t){var r;if(!yD(t)||(r=Bi(t)).type!==e)throw new qu("Incompatible receiver, "+e+" required");return r}};vD||Mu.state?(At=Mu.state||(Mu.state=new ID),At.get=At.get,At.has=At.has,At.set=At.set,La=function(e,t){if(At.has(e))throw new qu(W_);return t.facade=e,At.set(e,t),t},Bi=function(e){return At.get(e)||{}},Ma=function(e){return At.has(e)}):(Yr=bD("state"),wD[Yr]=!0,La=function(e,t){if(Lu(e,Yr))throw new qu(W_);return t.facade=e,_D(e,Yr,t),t},Bi=function(e){return Lu(e,Yr)?e[Yr]:{}},Ma=function(e){return Lu(e,Yr)});var At,Yr;K_.exports={set:La,get:Bi,has:Ma,enforce:ED,getterFor:kD}});var ju=m((s8,Q_)=>{"use strict";var Uu=Xe(),AD=ut(),Y_=Function.prototype,SD=Uu&&Object.getOwnPropertyDescriptor,Fu=AD(Y_,"name"),xD=Fu&&(function(){}).name==="something",CD=Fu&&(!Uu||Uu&&SD(Y_,"name").configurable);Q_.exports={EXISTS:Fu,PROPER:xD,CONFIGURABLE:CD}});var Ju=m((l8,X_)=>{"use strict";var TD=Oi(),OD=Math.max,PD=Math.min;X_.exports=function(e,t){var r=TD(e);return r<0?OD(r+t,0):PD(r,t)}});var Gu=m((c8,eb)=>{"use strict";var RD=yr(),ND=Ju(),DD=bn(),Z_=function(e){return function(t,r,n){var i=RD(t),o=DD(i);if(o===0)return!e&&-1;var a=ND(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}};eb.exports={includes:Z_(!0),indexOf:Z_(!1)}});var Hu=m((u8,rb)=>{"use strict";var LD=Ie(),Bu=ut(),MD=yr(),qD=Gu().indexOf,UD=Gi(),tb=LD([].push);rb.exports=function(e,t){var r=MD(e),n=0,i=[],o;for(o in r)!Bu(UD,o)&&Bu(r,o)&&tb(i,o);for(;t.length>n;)Bu(r,o=t[n++])&&(~qD(i,o)||tb(i,o));return i}});var qa=m((d8,nb)=>{"use strict";nb.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Vu=m((p8,ib)=>{"use strict";var FD=Hu(),jD=qa();ib.exports=Object.keys||function(t){return FD(t,jD)}});var ab=m(ob=>{"use strict";var JD=Xe(),GD=ou(),BD=Zt(),HD=Xt(),VD=yr(),$D=Vu();ob.f=JD&&!GD?Object.defineProperties:function(t,r){HD(t);for(var n=VD(r),i=$D(r),o=i.length,a=0,s;o>a;)BD.f(t,s=i[a++],n[s]);return t}});var lb=m((m8,sb)=>{"use strict";var WD=mn();sb.exports=WD("document","documentElement")});var Hi=m((h8,hb)=>{"use strict";var zD=Xt(),KD=ab(),cb=qa(),YD=Gi(),QD=lb(),XD=ru(),ZD=Da(),ub=">",db="<",Wu="prototype",zu="script",fb=ZD("IE_PROTO"),$u=function(){},mb=function(e){return db+zu+ub+e+db+"/"+zu+ub},pb=function(e){e.write(mb("")),e.close();var t=e.parentWindow.Object;return e=null,t},eL=function(){var e=XD("iframe"),t="java"+zu+":",r;return e.style.display="none",QD.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(mb("document.F=Object")),r.close(),r.F},Ua,Fa=function(){try{Ua=new ActiveXObject("htmlfile")}catch(t){}Fa=typeof document!="undefined"?document.domain&&Ua?pb(Ua):eL():pb(Ua);for(var e=cb.length;e--;)delete Fa[Wu][cb[e]];return Fa()};YD[fb]=!0;hb.exports=Object.create||function(t,r){var n;return t!==null?($u[Wu]=zD(t),n=new $u,$u[Wu]=null,n[fb]=t):n=Fa(),r===void 0?n:KD.f(n,r)}});var vb=m((g8,gb)=>{"use strict";var tL=fe();gb.exports=!tL(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Yu=m((v8,_b)=>{"use strict";var rL=ut(),nL=Le(),iL=gn(),oL=Da(),aL=vb(),yb=oL("IE_PROTO"),Ku=Object,sL=Ku.prototype;_b.exports=aL?Ku.getPrototypeOf:function(e){var t=iL(e);if(rL(t,yb))return t[yb];var r=t.constructor;return nL(r)&&t instanceof r?r.prototype:t instanceof Ku?sL:null}});var ja=m((y8,bb)=>{"use strict";var lL=Wr();bb.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:lL(e,t,r),e}});var ed=m((_8,Eb)=>{"use strict";var cL=fe(),uL=Le(),dL=Ce(),pL=Hi(),wb=Yu(),fL=ja(),mL=Ge(),hL=hn(),Zu=mL("iterator"),Ib=!1,er,Qu,Xu;[].keys&&(Xu=[].keys(),"next"in Xu?(Qu=wb(wb(Xu)),Qu!==Object.prototype&&(er=Qu)):Ib=!0);var gL=!dL(er)||cL(function(){var e={};return er[Zu].call(e)!==e});gL?er={}:hL&&(er=pL(er));uL(er[Zu])||fL(er,Zu,function(){return this});Eb.exports={IteratorPrototype:er,BUGGY_SAFARI_ITERATORS:Ib}});var Ab=m((b8,kb)=>{"use strict";var vL=xa(),yL=wn();kb.exports=vL?{}.toString:function(){return"[object "+yL(this)+"]"}});var Vi=m((w8,xb)=>{"use strict";var _L=xa(),bL=Zt().f,wL=Wr(),IL=ut(),EL=Ab(),kL=Ge(),Sb=kL("toStringTag");xb.exports=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(IL(i,Sb)||bL(i,Sb,{configurable:!0,value:t}),n&&!_L&&wL(i,"toString",EL))}});var Tb=m((I8,Cb)=>{"use strict";var AL=ed().IteratorPrototype,SL=Hi(),xL=ki(),CL=Vi(),TL=Kr(),OL=function(){return this};Cb.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=SL(AL,{next:xL(+!n,r)}),CL(e,i,!1,!0),TL[i]=OL,e}});var Pb=m((E8,Ob)=>{"use strict";var PL=Ie(),RL=$r();Ob.exports=function(e,t,r){try{return PL(RL(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var Nb=m((k8,Rb)=>{"use strict";var NL=Ce();Rb.exports=function(e){return NL(e)||e===null}});var Lb=m((A8,Db)=>{"use strict";var DL=Nb(),LL=String,ML=TypeError;Db.exports=function(e){if(DL(e))return e;throw new ML("Can't set "+LL(e)+" as a prototype")}});var qb=m((S8,Mb)=>{"use strict";var qL=Pb(),UL=Ce(),FL=Vr(),jL=Lb();Mb.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=qL(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return FL(i),jL(o),UL(i)&&(e?r(i,o):i.__proto__=o),i}}():void 0)});var Ba=m((x8,Wb)=>{"use strict";var JL=Z(),GL=Et(),Ja=hn(),Vb=ju(),BL=Le(),HL=Tb(),Ub=Yu(),Fb=qb(),VL=Vi(),$L=Wr(),td=ja(),WL=Ge(),jb=Kr(),$b=ed(),zL=Vb.PROPER,KL=Vb.CONFIGURABLE,Jb=$b.IteratorPrototype,Ga=$b.BUGGY_SAFARI_ITERATORS,$i=WL("iterator"),Gb="keys",Wi="values",Bb="entries",Hb=function(){return this};Wb.exports=function(e,t,r,n,i,o,a){HL(r,t,n);var s=function(g){if(g===i&&p)return p;if(!Ga&&g&&g in d)return d[g];switch(g){case Gb:return function(){return new r(this,g)};case Wi:return function(){return new r(this,g)};case Bb:return function(){return new r(this,g)}}return function(){return new r(this)}},l=t+" Iterator",c=!1,d=e.prototype,u=d[$i]||d["@@iterator"]||i&&d[i],p=!Ga&&u||s(i),f=t==="Array"&&d.entries||u,h,v,y;if(f&&(h=Ub(f.call(new e)),h!==Object.prototype&&h.next&&(!Ja&&Ub(h)!==Jb&&(Fb?Fb(h,Jb):BL(h[$i])||td(h,$i,Hb)),VL(h,l,!0,!0),Ja&&(jb[l]=Hb))),zL&&i===Wi&&u&&u.name!==Wi&&(!Ja&&KL?$L(d,"name",Wi):(c=!0,p=function(){return GL(u,this)})),i)if(v={values:s(Wi),keys:o?p:s(Gb),entries:s(Bb)},a)for(y in v)(Ga||c||!(y in d))&&td(d,y,v[y]);else JL({target:t,proto:!0,forced:Ga||c},v);return(!Ja||a)&&d[$i]!==p&&td(d,$i,p,{name:i}),jb[t]=p,v}});var Ha=m((C8,zb)=>{"use strict";zb.exports=function(e,t){return{value:e,done:t}}});var $a=m((T8,Zb)=>{"use strict";var YL=yr(),rd=j_(),Kb=Kr(),Qb=Qr(),QL=Zt().f,XL=Ba(),Va=Ha(),ZL=hn(),eM=Xe(),Xb="Array Iterator",tM=Qb.set,rM=Qb.getterFor(Xb);Zb.exports=XL(Array,"Array",function(e,t){tM(this,{type:Xb,target:YL(e),index:0,kind:t})},function(){var e=rM(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,Va(void 0,!0);switch(e.kind){case"keys":return Va(r,!1);case"values":return Va(t[r],!1)}return Va([r,t[r]],!1)},"values");var Yb=Kb.Arguments=Kb.Array;rd("keys");rd("values");rd("entries");if(!ZL&&eM&&Yb.name!=="values")try{QL(Yb,"name",{value:"values"})}catch(e){}});var nd=m(()=>{});var id=m((R8,ew)=>{"use strict";var nM=fe();ew.exports=!nM(function(){return Object.isExtensible(Object.preventExtensions({}))})});var Wa=m((N8,tw)=>{"use strict";var iM=ja();tw.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:iM(e,n,t[n],r);return e}});var od=m(rw=>{"use strict";var oM=Hu(),aM=qa(),sM=aM.concat("length","prototype");rw.f=Object.getOwnPropertyNames||function(t){return oM(t,sM)}});var aw=m((L8,ow)=>{"use strict";var lM=Qt(),cM=yr(),nw=od().f,uM=Mi(),iw=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],dM=function(e){try{return nw(e)}catch(t){return uM(iw)}};ow.exports.f=function(t){return iw&&lM(t)==="Window"?dM(t):nw(cM(t))}});var lw=m((M8,sw)=>{"use strict";var pM=fe();sw.exports=pM(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var dw=m((q8,uw)=>{"use strict";var fM=fe(),mM=Ce(),hM=Qt(),cw=lw(),za=Object.isExtensible,gM=fM(function(){za(1)});uw.exports=gM||cw?function(t){return!mM(t)||cw&&hM(t)==="ArrayBuffer"?!1:za?za(t):!0}:za});var zi=m((U8,mw)=>{"use strict";var vM=Z(),yM=Ie(),_M=Gi(),bM=Ce(),ad=ut(),wM=Zt().f,pw=od(),IM=aw(),sd=dw(),EM=Aa(),kM=id(),fw=!1,tr=EM("meta"),AM=0,ld=function(e){wM(e,tr,{value:{objectID:"O"+AM++,weakData:{}}})},SM=function(e,t){if(!bM(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!ad(e,tr)){if(!sd(e))return"F";if(!t)return"E";ld(e)}return e[tr].objectID},xM=function(e,t){if(!ad(e,tr)){if(!sd(e))return!0;if(!t)return!1;ld(e)}return e[tr].weakData},CM=function(e){return kM&&fw&&sd(e)&&!ad(e,tr)&&ld(e),e},TM=function(){OM.enable=function(){},fw=!0;var e=pw.f,t=yM([].splice),r={};r[tr]=1,e(r).length&&(pw.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===tr){t(i,o,1);break}return i},vM({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:IM.f}))},OM=mw.exports={enable:TM,fastKey:SM,getWeakData:xM,onFreeze:CM};_M[tr]=!0});var gw=m((F8,hw)=>{"use strict";var PM=Ge(),RM=Kr(),NM=PM("iterator"),DM=Array.prototype;hw.exports=function(e){return e!==void 0&&(RM.Array===e||DM[NM]===e)}});var cd=m((j8,yw)=>{"use strict";var LM=wn(),vw=ka(),MM=Hr(),qM=Kr(),UM=Ge(),FM=UM("iterator");yw.exports=function(e){if(!MM(e))return vw(e,FM)||vw(e,"@@iterator")||qM[LM(e)]}});var bw=m((J8,_w)=>{"use strict";var jM=Et(),JM=$r(),GM=Xt(),BM=Ai(),HM=cd(),VM=TypeError;_w.exports=function(e,t){var r=arguments.length<2?HM(e):t;if(JM(r))return GM(jM(r,e));throw new VM(BM(e)+" is not iterable")}});var Ka=m((G8,Iw)=>{"use strict";var $M=Et(),ww=Xt(),WM=ka();Iw.exports=function(e,t,r){var n,i;ww(e);try{if(n=WM(e,"return"),!n){if(t==="throw")throw r;return r}n=$M(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return ww(n),r}});var Qa=m((B8,Sw)=>{"use strict";var zM=Ci(),KM=Et(),YM=Xt(),QM=Ai(),XM=gw(),ZM=bn(),Ew=Qe(),eq=bw(),tq=cd(),kw=Ka(),rq=TypeError,Ya=function(e,t){this.stopped=e,this.result=t},Aw=Ya.prototype;Sw.exports=function(e,t,r){var n=r&&r.that,i=!!(r&&r.AS_ENTRIES),o=!!(r&&r.IS_RECORD),a=!!(r&&r.IS_ITERATOR),s=!!(r&&r.INTERRUPTED),l=zM(t,n),c,d,u,p,f,h,v,y=function(b){return c&&kw(c,"normal",b),new Ya(!0,b)},g=function(b){return i?(YM(b),s?l(b[0],b[1],y):l(b[0],b[1])):s?l(b,y):l(b)};if(o)c=e.iterator;else if(a)c=e;else{if(d=tq(e),!d)throw new rq(QM(e)+" is not iterable");if(XM(d)){for(u=0,p=ZM(e);p>u;u++)if(f=g(e[u]),f&&Ew(Aw,f))return f;return new Ya(!1)}c=eq(e,d)}for(h=o?e.next:c.next;!(v=KM(h,c)).done;){try{f=g(v.value)}catch(b){kw(c,"throw",b)}if(typeof f=="object"&&f&&Ew(Aw,f))return f}return new Ya(!1)}});var Xa=m((H8,xw)=>{"use strict";var nq=Qe(),iq=TypeError;xw.exports=function(e,t){if(nq(t,e))return e;throw new iq("Incorrect invocation")}});var ud=m((V8,Tw)=>{"use strict";var oq=Z(),aq=me(),sq=zi(),lq=fe(),cq=Wr(),uq=Qa(),dq=Xa(),pq=Le(),fq=Ce(),mq=Hr(),hq=Vi(),gq=Zt().f,vq=br().forEach,yq=Xe(),Cw=Qr(),_q=Cw.set,bq=Cw.getterFor;Tw.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=aq[e],s=a&&a.prototype,l={},c;if(!yq||!pq(a)||!(i||s.forEach&&!lq(function(){new a().entries().next()})))c=r.getConstructor(t,e,n,o),sq.enable();else{c=t(function(p,f){_q(dq(p,d),{type:e,collection:new a}),mq(f)||uq(f,p[o],{that:p,AS_ENTRIES:n})});var d=c.prototype,u=bq(e);vq(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(p){var f=p==="add"||p==="set";p in s&&!(i&&p==="clear")&&cq(d,p,function(h,v){var y=u(this).collection;if(!f&&i&&!fq(h))return p==="get"?void 0:!1;var g=y[p](h===0?0:h,v);return f?this:g})}),i||gq(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return hq(c,e,!1,!0),l[e]=c,oq({global:!0,forced:!0},l),i||r.setStrong(c,e,n),c}});var Mw=m(($8,Lw)=>{"use strict";var wq=Ie(),Ow=Wa(),Za=zi().getWeakData,Iq=Xa(),Eq=Xt(),kq=Hr(),dd=Ce(),Aq=Qa(),Rw=br(),Pw=ut(),Nw=Qr(),Sq=Nw.set,xq=Nw.getterFor,Cq=Rw.find,Tq=Rw.findIndex,Oq=wq([].splice),Pq=0,es=function(e){return e.frozen||(e.frozen=new Dw)},Dw=function(){this.entries=[]},pd=function(e,t){return Cq(e.entries,function(r){return r[0]===t})};Dw.prototype={get:function(e){var t=pd(this,e);if(t)return t[1]},has:function(e){return!!pd(this,e)},set:function(e,t){var r=pd(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=Tq(this.entries,function(r){return r[0]===e});return~t&&Oq(this.entries,t,1),!!~t}};Lw.exports={getConstructor:function(e,t,r,n){var i=e(function(l,c){Iq(l,o),Sq(l,{type:t,id:Pq++,frozen:null}),kq(c)||Aq(c,l[n],{that:l,AS_ENTRIES:r})}),o=i.prototype,a=xq(t),s=function(l,c,d){var u=a(l),p=Za(Eq(c),!0);return p===!0?es(u).set(c,d):p[u.id]=d,l};return Ow(o,{delete:function(l){var c=a(this);if(!dd(l))return!1;var d=Za(l);return d===!0?es(c).delete(l):d&&Pw(d,c.id)&&delete d[c.id]},has:function(c){var d=a(this);if(!dd(c))return!1;var u=Za(c);return u===!0?es(d).has(c):u&&Pw(u,d.id)}}),Ow(o,r?{get:function(c){var d=a(this);if(dd(c)){var u=Za(c);if(u===!0)return es(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 Hw=m(()=>{"use strict";var Rq=id(),qw=me(),is=Ie(),Uw=Wa(),Nq=zi(),Dq=ud(),Fw=Mw(),ts=Ce(),rs=Qr().enforce,Lq=fe(),Mq=Du(),Qi=Object,qq=Array.isArray,ns=Qi.isExtensible,jw=Qi.isFrozen,Uq=Qi.isSealed,Jw=Qi.freeze,Fq=Qi.seal,jq=!qw.ActiveXObject&&"ActiveXObject"in qw,Ki,Gw=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Bw=Dq("WeakMap",Gw,Fw),An=Bw.prototype,os=is(An.set),Jq=function(){return Rq&&Lq(function(){var e=Jw([]);return os(new Bw,e,1),!jw(e)})};Mq&&(jq?(Ki=Fw.getConstructor(Gw,"WeakMap",!0),Nq.enable(),fd=is(An.delete),Yi=is(An.has),md=is(An.get),Uw(An,{delete:function(e){if(ts(e)&&!ns(e)){var t=rs(this);return t.frozen||(t.frozen=new Ki),fd(this,e)||t.frozen.delete(e)}return fd(this,e)},has:function(t){if(ts(t)&&!ns(t)){var r=rs(this);return r.frozen||(r.frozen=new Ki),Yi(this,t)||r.frozen.has(t)}return Yi(this,t)},get:function(t){if(ts(t)&&!ns(t)){var r=rs(this);return r.frozen||(r.frozen=new Ki),Yi(this,t)?md(this,t):r.frozen.get(t)}return md(this,t)},set:function(t,r){if(ts(t)&&!ns(t)){var n=rs(this);n.frozen||(n.frozen=new Ki),Yi(this,t)?os(this,t,r):n.frozen.set(t,r)}else os(this,t,r);return this}})):Jq()&&Uw(An,{set:function(t,r){var n;return qq(t)&&(jw(t)?n=Jw:Uq(t)&&(n=Fq)),os(this,t,r),n&&n(t),this}}));var fd,Yi,md});var Vw=m(()=>{"use strict";Hw()});var Ww=m((Q8,$w)=>{"use strict";$a();nd();Vw();var Gq=Lt();$w.exports=Gq.WeakMap});var Kw=m((X8,zw)=>{"use strict";zw.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 hd=m(()=>{"use strict";$a();var Bq=Kw(),Hq=me(),Vq=Vi(),Yw=Kr();for(as in Bq)Vq(Hq[as],as),Yw[as]=Yw.Array;var as});var Xw=m((tK,Qw)=>{"use strict";var $q=Ww();hd();Qw.exports=$q});var eI=m((rK,Zw)=>{Zw.exports=Xw()});var rI=m(()=>{"use strict";var Wq=Z(),zq=Ei(),Kq=Gu().indexOf,Yq=Di(),gd=zq([].indexOf),tI=!!gd&&1/gd([1],1,-0)<0,Qq=tI||!Yq("indexOf");Wq({target:"Array",proto:!0,forced:Qq},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return tI?gd(this,t,r)||0:Kq(this,t,r)}})});var iI=m((oK,nI)=>{"use strict";rI();var Xq=_t();nI.exports=Xq("Array","indexOf")});var aI=m((aK,oI)=>{"use strict";var Zq=Qe(),eU=iI(),vd=Array.prototype;oI.exports=function(e){var t=e.indexOf;return e===vd||Zq(vd,e)&&t===vd.indexOf?eU:t}});var lI=m((sK,sI)=>{"use strict";var tU=aI();sI.exports=tU});var uI=m((lK,cI)=>{cI.exports=lI()});var dI=m(()=>{"use strict";var rU=Z(),nU=br().map,iU=Ni(),oU=iU("map");rU({target:"Array",proto:!0,forced:!oU},{map:function(t){return nU(this,t,arguments.length>1?arguments[1]:void 0)}})});var fI=m((dK,pI)=>{"use strict";dI();var aU=_t();pI.exports=aU("Array","map")});var hI=m((pK,mI)=>{"use strict";var sU=Qe(),lU=fI(),yd=Array.prototype;mI.exports=function(e){var t=e.map;return e===yd||sU(yd,e)&&t===yd.map?lU:t}});var vI=m((fK,gI)=>{"use strict";var cU=hI();gI.exports=cU});var _I=m((mK,yI)=>{yI.exports=vI()});var bI=m(()=>{"use strict";var uU=Z(),dU=Xe(),pU=Hi();uU({target:"Object",stat:!0,sham:!dU},{create:pU})});var II=m((vK,wI)=>{"use strict";bI();var fU=Lt(),mU=fU.Object;wI.exports=function(t,r){return mU.create(t,r)}});var kI=m((yK,EI)=>{"use strict";var hU=II();EI.exports=hU});var SI=m((_K,AI)=>{AI.exports=kI()});var _d=m((bK,xI)=>{"use strict";var gU=Zt();xI.exports=function(e,t,r){return gU.f(e,t,r)}});var OI=m((wK,TI)=>{"use strict";var vU=mn(),yU=_d(),_U=Ge(),bU=Xe(),CI=_U("species");TI.exports=function(e){var t=vU(e);bU&&t&&!t[CI]&&yU(t,CI,{configurable:!0,get:function(){return this}})}});var qI=m((IK,MI)=>{"use strict";var PI=Hi(),wU=_d(),RI=Wa(),IU=Ci(),EU=Xa(),kU=Hr(),AU=Qa(),SU=Ba(),ss=Ha(),xU=OI(),Xi=Xe(),NI=zi().fastKey,LI=Qr(),DI=LI.set,bd=LI.getterFor;MI.exports={getConstructor:function(e,t,r,n){var i=e(function(c,d){EU(c,o),DI(c,{type:t,index:PI(null),first:null,last:null,size:0}),Xi||(c.size=0),kU(d)||AU(d,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=bd(t),s=function(c,d,u){var p=a(c),f=l(c,d),h,v;return f?f.value=u:(p.last=f={index:v=NI(d,!0),key:d,value:u,previous:h=p.last,next:null,removed:!1},p.first||(p.first=f),h&&(h.next=f),Xi?p.size++:c.size++,v!=="F"&&(p.index[v]=f)),c},l=function(c,d){var u=a(c),p=NI(d),f;if(p!=="F")return u.index[p];for(f=u.first;f;f=f.next)if(f.key===d)return f};return RI(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=PI(null),Xi?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),Xi?u.size--:d.size--}return!!p},forEach:function(d){for(var u=a(this),p=IU(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)}}),RI(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)}}),Xi&&wU(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=bd(t),o=bd(n);SU(e,t,function(a,s){DI(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,ss(void 0,!0)):ss(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},r?"entries":"values",!r,!0),xU(t)}}});var UI=m(()=>{"use strict";var CU=ud(),TU=qI();CU("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},TU)});var FI=m(()=>{"use strict";UI()});var wr=m((xK,jI)=>{"use strict";var OU=Ai(),PU=TypeError;jI.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 PU(OU(e)+" is not a set")}});var GI=m((CK,JI)=>{"use strict";JI.exports=function(e,t){return t===1?function(r,n){return r[e](n)}:function(r,n,i){return r[e](n,i)}}});var Ir=m((TK,HI)=>{"use strict";var RU=mn(),wd=GI(),BI=RU("Set"),NU=BI.prototype;HI.exports={Set:BI,add:wd("add",1),has:wd("has",1),remove:wd("delete",1),proto:NU}});var Er=m((OK,VI)=>{"use strict";var DU=Et();VI.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,o,a;!(o=DU(i,n)).done;)if(a=t(o.value),a!==void 0)return a}});var Sn=m((PK,$I)=>{"use strict";var LU=Er();$I.exports=function(e,t,r){return r?LU(e.keys(),t,!0):e.forEach(t)}});var ls=m((RK,zI)=>{"use strict";var WI=Ir(),MU=Sn(),qU=WI.Set,UU=WI.add;zI.exports=function(e){var t=new qU;return MU(e,function(r){UU(t,r)}),t}});var xn=m((NK,KI)=>{"use strict";KI.exports=function(e){return e.size}});var QI=m((DK,YI)=>{"use strict";YI.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var kr=m((LK,n0)=>{"use strict";var XI=$r(),t0=Xt(),ZI=Et(),FU=Oi(),jU=QI(),e0="Invalid size",JU=RangeError,GU=TypeError,BU=Math.max,r0=function(e,t){this.set=e,this.size=BU(t,0),this.has=XI(e.has),this.keys=XI(e.keys)};r0.prototype={getIterator:function(){return jU(t0(ZI(this.keys,this.set)))},includes:function(e){return ZI(this.has,this.set,e)}};n0.exports=function(e){t0(e);var t=+e.size;if(t!==t)throw new GU(e0);var r=FU(t);if(r<0)throw new JU(e0);return new r0(e,r)}});var s0=m((MK,a0)=>{"use strict";var HU=wr(),o0=Ir(),VU=ls(),$U=xn(),WU=kr(),zU=Sn(),KU=Er(),YU=o0.has,i0=o0.remove;a0.exports=function(t){var r=HU(this),n=WU(t),i=VU(r);return $U(r)<=n.size?zU(r,function(o){n.includes(o)&&i0(i,o)}):KU(n.getIterator(),function(o){YU(r,o)&&i0(i,o)}),i}});var Ar=m((qK,l0)=>{"use strict";l0.exports=function(){return!1}});var c0=m(()=>{"use strict";var QU=Z(),XU=s0(),ZU=Ar(),eF=!ZU("difference",function(e){return e.size===0});QU({target:"Set",proto:!0,real:!0,forced:eF},{difference:XU})});var p0=m((jK,d0)=>{"use strict";var tF=wr(),Id=Ir(),rF=xn(),nF=kr(),iF=Sn(),oF=Er(),aF=Id.Set,u0=Id.add,sF=Id.has;d0.exports=function(t){var r=tF(this),n=nF(t),i=new aF;return rF(r)>n.size?oF(n.getIterator(),function(o){sF(r,o)&&u0(i,o)}):iF(r,function(o){n.includes(o)&&u0(i,o)}),i}});var f0=m(()=>{"use strict";var lF=Z(),cF=fe(),uF=p0(),dF=Ar(),pF=!dF("intersection",function(e){return e.size===2&&e.has(1)&&e.has(2)})||cF(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});lF({target:"Set",proto:!0,real:!0,forced:pF},{intersection:uF})});var h0=m((BK,m0)=>{"use strict";var fF=wr(),mF=Ir().has,hF=xn(),gF=kr(),vF=Sn(),yF=Er(),_F=Ka();m0.exports=function(t){var r=fF(this),n=gF(t);if(hF(r)<=n.size)return vF(r,function(o){if(n.includes(o))return!1},!0)!==!1;var i=n.getIterator();return yF(i,function(o){if(mF(r,o))return _F(i,"normal",!1)})!==!1}});var g0=m(()=>{"use strict";var bF=Z(),wF=h0(),IF=Ar(),EF=!IF("isDisjointFrom",function(e){return!e});bF({target:"Set",proto:!0,real:!0,forced:EF},{isDisjointFrom:wF})});var y0=m(($K,v0)=>{"use strict";var kF=wr(),AF=xn(),SF=Sn(),xF=kr();v0.exports=function(t){var r=kF(this),n=xF(t);return AF(r)>n.size?!1:SF(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var _0=m(()=>{"use strict";var CF=Z(),TF=y0(),OF=Ar(),PF=!OF("isSubsetOf",function(e){return e});CF({target:"Set",proto:!0,real:!0,forced:PF},{isSubsetOf:TF})});var w0=m((KK,b0)=>{"use strict";var RF=wr(),NF=Ir().has,DF=xn(),LF=kr(),MF=Er(),qF=Ka();b0.exports=function(t){var r=RF(this),n=LF(t);if(DF(r)<n.size)return!1;var i=n.getIterator();return MF(i,function(o){if(!NF(r,o))return qF(i,"normal",!1)})!==!1}});var I0=m(()=>{"use strict";var UF=Z(),FF=w0(),jF=Ar(),JF=!jF("isSupersetOf",function(e){return!e});UF({target:"Set",proto:!0,real:!0,forced:JF},{isSupersetOf:FF})});var k0=m((XK,E0)=>{"use strict";var GF=wr(),Ed=Ir(),BF=ls(),HF=kr(),VF=Er(),$F=Ed.add,WF=Ed.has,zF=Ed.remove;E0.exports=function(t){var r=GF(this),n=HF(t).getIterator(),i=BF(r);return VF(n,function(o){WF(r,o)?zF(i,o):$F(i,o)}),i}});var A0=m(()=>{"use strict";var KF=Z(),YF=k0(),QF=Ar();KF({target:"Set",proto:!0,real:!0,forced:!QF("symmetricDifference")},{symmetricDifference:YF})});var x0=m((t7,S0)=>{"use strict";var XF=wr(),ZF=Ir().add,ej=ls(),tj=kr(),rj=Er();S0.exports=function(t){var r=XF(this),n=tj(t).getIterator(),i=ej(r);return rj(n,function(o){ZF(i,o)}),i}});var C0=m(()=>{"use strict";var nj=Z(),ij=x0(),oj=Ar();nj({target:"Set",proto:!0,real:!0,forced:!oj("union")},{union:ij})});var Zi=m((i7,T0)=>{"use strict";var aj=wn(),sj=String;T0.exports=function(e){if(aj(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return sj(e)}});var N0=m((o7,R0)=>{"use strict";var kd=Ie(),lj=Oi(),cj=Zi(),uj=Vr(),dj=kd("".charAt),O0=kd("".charCodeAt),pj=kd("".slice),P0=function(e){return function(t,r){var n=cj(uj(t)),i=lj(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=O0(n,i),a<55296||a>56319||i+1===o||(s=O0(n,i+1))<56320||s>57343?e?dj(n,i):a:e?pj(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};R0.exports={codeAt:P0(!1),charAt:P0(!0)}});var q0=m(()=>{"use strict";var fj=N0().charAt,mj=Zi(),L0=Qr(),hj=Ba(),D0=Ha(),M0="String Iterator",gj=L0.set,vj=L0.getterFor(M0);hj(String,"String",function(e){gj(this,{type:M0,string:mj(e),index:0})},function(){var t=vj(this),r=t.string,n=t.index,i;return n>=r.length?D0(void 0,!0):(i=fj(r,n),t.index+=i.length,D0(i,!1))})});var F0=m((l7,U0)=>{"use strict";$a();nd();FI();c0();f0();g0();_0();I0();A0();C0();q0();var yj=Lt();U0.exports=yj.Set});var J0=m((c7,j0)=>{"use strict";var _j=F0();hd();j0.exports=_j});var B0=m((u7,G0)=>{G0.exports=J0()});var V0=m(H0=>{"use strict";H0.f=Object.getOwnPropertySymbols});var K0=m((p7,z0)=>{"use strict";var $0=Xe(),bj=Ie(),wj=Et(),Ij=fe(),Ad=Vu(),Ej=V0(),kj=Jc(),Aj=gn(),Sj=ba(),Cn=Object.assign,W0=Object.defineProperty,xj=bj([].concat);z0.exports=!Cn||Ij(function(){if($0&&Cn({b:1},Cn(W0({},"a",{enumerable:!0,get:function(){W0(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}),Cn({},e)[r]!==7||Ad(Cn({},t)).join("")!==n})?function(t,r){for(var n=Aj(t),i=arguments.length,o=1,a=Ej.f,s=kj.f;i>o;)for(var l=Sj(arguments[o++]),c=a?xj(Ad(l),a(l)):Ad(l),d=c.length,u=0,p;d>u;)p=c[u++],(!$0||wj(s,l,p))&&(n[p]=l[p]);return n}:Cn});var Q0=m(()=>{"use strict";var Cj=Z(),Y0=K0();Cj({target:"Object",stat:!0,arity:2,forced:Object.assign!==Y0},{assign:Y0})});var Z0=m((h7,X0)=>{"use strict";Q0();var Tj=Lt();X0.exports=Tj.Object.assign});var tE=m((g7,eE)=>{"use strict";var Oj=Z0();eE.exports=Oj});var nE=m((v7,rE)=>{rE.exports=tE()});var Sd=m((y7,iE)=>{"use strict";iE.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 sE=m((_7,aE)=>{"use strict";var Pj=Ie(),Rj=Vr(),Nj=Zi(),Cd=Sd(),oE=Pj("".replace),Dj=RegExp("^["+Cd+"]+"),Lj=RegExp("(^|[^"+Cd+"])["+Cd+"]+$"),xd=function(e){return function(t){var r=Nj(Rj(t));return e&1&&(r=oE(r,Dj,"")),e&2&&(r=oE(r,Lj,"$1")),r}};aE.exports={start:xd(1),end:xd(2),trim:xd(3)}});var dE=m((b7,uE)=>{"use strict";var Mj=ju().PROPER,qj=fe(),lE=Sd(),cE="\u200B\x85\u180E";uE.exports=function(e){return qj(function(){return!!lE[e]()||cE[e]()!==cE||Mj&&lE[e].name!==e})}});var pE=m(()=>{"use strict";var Uj=Z(),Fj=sE().trim,jj=dE();Uj({target:"String",proto:!0,forced:jj("trim")},{trim:function(){return Fj(this)}})});var mE=m((E7,fE)=>{"use strict";pE();var Jj=_t();fE.exports=Jj("String","trim")});var gE=m((k7,hE)=>{"use strict";var Gj=Qe(),Bj=mE(),Td=String.prototype;hE.exports=function(e){var t=e.trim;return typeof e=="string"||e===Td||Gj(Td,e)&&t===Td.trim?Bj:t}});var yE=m((A7,vE)=>{"use strict";var Hj=gE();vE.exports=Hj});var bE=m((S7,_E)=>{_E.exports=yE()});var EE=m(()=>{"use strict";var Vj=Z(),wE=Pi(),$j=fu(),Wj=Ce(),IE=Ju(),zj=bn(),Kj=yr(),Yj=yu(),Qj=Ge(),Xj=Ni(),Zj=Mi(),eJ=Xj("slice"),tJ=Qj("species"),Od=Array,rJ=Math.max;Vj({target:"Array",proto:!0,forced:!eJ},{slice:function(t,r){var n=Kj(this),i=zj(n),o=IE(t,i),a=IE(r===void 0?i:r,i),s,l,c;if(wE(n)&&(s=n.constructor,$j(s)&&(s===Od||wE(s.prototype))?s=void 0:Wj(s)&&(s=s[tJ],s===null&&(s=void 0)),s===Od||s===void 0))return Zj(n,o,a);for(l=new(s===void 0?Od:s)(rJ(a-o,0)),c=0;o<a;o++,c++)o in n&&Yj(l,c,n[o]);return l.length=c,l}})});var AE=m((T7,kE)=>{"use strict";EE();var nJ=_t();kE.exports=nJ("Array","slice")});var xE=m((O7,SE)=>{"use strict";var iJ=Qe(),oJ=AE(),Pd=Array.prototype;SE.exports=function(e){var t=e.slice;return e===Pd||iJ(Pd,e)&&t===Pd.slice?oJ:t}});var TE=m((P7,CE)=>{"use strict";var aJ=xE();CE.exports=aJ});var PE=m((R7,OE)=>{OE.exports=TE()});var Rd=S(()=>{});var NE=m((D7,RE)=>{"use strict";var sJ=Ce(),lJ=Qt(),cJ=Ge(),uJ=cJ("match");RE.exports=function(e){var t;return sJ(e)&&((t=e[uJ])!==void 0?!!t:lJ(e)==="RegExp")}});var LE=m((L7,DE)=>{"use strict";var dJ=NE(),pJ=TypeError;DE.exports=function(e){if(dJ(e))throw new pJ("The method doesn't accept regular expressions");return e}});var qE=m((M7,ME)=>{"use strict";var fJ=Ge(),mJ=fJ("match");ME.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[mJ]=!1,"/./"[e](t)}catch(n){}}return!1}});var jE=m(()=>{"use strict";var hJ=Z(),gJ=Ei(),vJ=iu().f,yJ=uu(),UE=Zi(),_J=LE(),bJ=Vr(),wJ=qE(),IJ=hn(),EJ=gJ("".slice),kJ=Math.min,FE=wJ("startsWith"),AJ=!IJ&&!FE&&!!function(){var e=vJ(String.prototype,"startsWith");return e&&!e.writable}();hJ({target:"String",proto:!0,forced:!AJ&&!FE},{startsWith:function(t){var r=UE(bJ(this));_J(t);var n=yJ(kJ(arguments.length>1?arguments[1]:void 0,r.length)),i=UE(t);return EJ(r,n,n+i.length)===i}})});var GE=m((F7,JE)=>{"use strict";jE();var SJ=_t();JE.exports=SJ("String","startsWith")});var HE=m((j7,BE)=>{"use strict";var xJ=Qe(),CJ=GE(),Nd=String.prototype;BE.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===Nd||xJ(Nd,e)&&t===Nd.startsWith?CJ:t}});var $E=m((J7,VE)=>{"use strict";var TJ=HE();VE.exports=TJ});var zE=m((G7,WE)=>{WE.exports=$E()});var ZE=m((B7,XE)=>{"use strict";var YE=Ie(),OJ=$r(),PJ=Ce(),RJ=ut(),KE=Mi(),NJ=fn(),QE=Function,DJ=YE([].concat),LJ=YE([].join),Dd={},MJ=function(e,t,r){if(!RJ(Dd,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";Dd[t]=QE("C,a","return new C("+LJ(n,",")+")")}return Dd[t](e,r)};XE.exports=NJ?QE.bind:function(t){var r=OJ(this),n=r.prototype,i=KE(arguments,1),o=function(){var s=DJ(i,KE(arguments));return this instanceof o?MJ(r,s.length,s):r.apply(t,s)};return PJ(n)&&(o.prototype=n),o}});var tk=m(()=>{"use strict";var qJ=Z(),ek=ZE();qJ({target:"Function",proto:!0,forced:Function.bind!==ek},{bind:ek})});var nk=m(($7,rk)=>{"use strict";tk();var UJ=_t();rk.exports=UJ("Function","bind")});var ok=m((W7,ik)=>{"use strict";var FJ=Qe(),jJ=nk(),Ld=Function.prototype;ik.exports=function(e){var t=e.bind;return e===Ld||FJ(Ld,e)&&t===Ld.bind?jJ:t}});var sk=m((z7,ak)=>{"use strict";var JJ=ok();ak.exports=JJ});var ck=m((K7,lk)=>{lk.exports=sk()});function xs(e,t){Ee.__h&&Ee.__h(de,e,ao||t),ao=0;var r=de.__H||(de.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Gt(e){return ao=1,GJ(Qk,e)}function GJ(e,t,r){var n=xs(Rn++,2);if(n.t=e,!n.__c&&(n.__=[Qk(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){var d;if(!n.__c.__H)return!0;var u=(0,rp.default)(d=n.__c.__H.__).call(d,function(f){return!!f.__c});if((0,$k.default)(u).call(u,function(f){return!f.__N}))return!o||o.call(this,s,l,c);var p=n.__c.props!==s;return(0,Te.default)(u).call(u,function(f){if(f.__N){var h=f.__[0];f.__=f.__N,f.__N=void 0,h!==f.__[0]&&(p=!0)}}),o&&o.call(this,s,l,c)||p};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 Zr(e,t){var r=xs(Rn++,3);!Ee.__s&&Yk(r.__H,t)&&(r.__=e,r.u=t,de.__H.__h.push(r))}function ro(e){return ao=5,nr(function(){return{current:e}},[])}function nr(e,t){var r=xs(Rn++,7);return Yk(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function bt(e,t){return ao=8,nr(function(){return e},t)}function BJ(e){var t=de.context[e.__c],r=xs(Rn++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(de)),t.props.value):e.__}function HJ(){for(var e;e=Kk.shift();)if(e.__P&&e.__H)try{var t,r;(0,Te.default)(t=e.__H.__h).call(t,fs),(0,Te.default)(r=e.__H.__h).call(r,Hd),e.__H.__h=[]}catch(n){e.__H.__h=[],Ee.__e(n,e.__v)}}function VJ(e){var t,r=function(){clearTimeout(n),vk&&cancelAnimationFrame(t),(0,Jt.default)(e)},n=(0,Jt.default)(r,100);vk&&(t=requestAnimationFrame(r))}function fs(e){var t=de,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),de=t}function Hd(e){var t=de;e.__c=e.__(),de=t}function Yk(e,t){return!e||e.length!==t.length||(0,ws.default)(t).call(t,function(r,n){return r!==e[n]})}function Qk(e,t){return typeof t=="function"?t(e):t}function $J(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Vd(){throw new Error("setTimeout has not been defined")}function $d(){throw new Error("clearTimeout has not been defined")}function Zk(e){if(Mt===Jt.default)return(0,Jt.default)(e,0);if((Mt===Vd||!Mt)&&Jt.default)return Mt=Jt.default,(0,Jt.default)(e,0);try{return Mt(e,0)}catch(t){try{return Mt.call(null,e,0)}catch(r){return Mt.call(this,e,0)}}}function WJ(e){if(qt===clearTimeout)return clearTimeout(e);if((qt===$d||!qt)&&clearTimeout)return qt=clearTimeout,clearTimeout(e);try{return qt(e)}catch(t){try{return qt.call(null,e)}catch(r){return qt.call(this,e)}}}function zJ(){!Tn||!xr||(Tn=!1,xr.length?rr=(0,Ss.default)(xr).call(xr,rr):ms=-1,rr.length&&eA())}function eA(){if(!Tn){var e=Zk(zJ);Tn=!0;for(var t=rr.length;t;){for(xr=rr,rr=[];++ms<t;)xr&&xr[ms].run();ms=-1,t=rr.length}xr=null,Tn=!1,WJ(e)}}function tA(e,t){this.fun=e,this.array=t}function or(){}function QJ(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function XJ(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 rG(e,t){return Me(e,0)^45?(((t<<2^Me(e,0))<<2^Me(e,1))<<2^Me(e,2))<<2^Me(e,3):0}function iA(e){return(0,op.default)(e).call(e)}function nG(e,t){return(e=t.exec(e))?e[0]:e}function Q(e,t,r){return e.replace(t,r)}function Wd(e,t){return(0,ir.default)(e).call(e,t)}function Me(e,t){return e.charCodeAt(t)|0}function so(e,t,r){return(0,ap.default)(e).call(e,t,r)}function Ut(e){return e.length}function up(e){return e.length}function cs(e,t){return t.push(e),e}function iG(e,t){return(0,oo.default)(e).call(e,t).join("")}function Os(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Ts,column:Nn,length:a,return:""}}function eo(e,t){return tG(Os("",null,null,"",null,null,0),e,{length:-e.length},t)}function oG(){return ke}function aG(){return ke=rt>0?Me(Ln,--rt):0,Nn--,ke===10&&(Nn=1,Ts--),ke}function dt(){return ke=rt<oA?Me(Ln,rt++):0,Nn++,ke===10&&(Nn=1,Ts++),ke}function Bt(){return Me(Ln,rt)}function hs(){return rt}function mo(e,t){return so(Ln,e,t)}function lo(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 aA(e){return Ts=Nn=1,oA=Ut(Ln=e),rt=0,[]}function sA(e){return Ln="",e}function gs(e){return iA(mo(rt-1,zd(e===91?e+2:e===40?e+1:e)))}function sG(e){for(;(ke=Bt())&&ke<33;)dt();return lo(e)>2||lo(ke)>3?"":" "}function lG(e,t){for(;--t&&dt()&&!(ke<48||ke>102||ke>57&&ke<65||ke>70&&ke<97););return mo(e,hs()+(t<6&&Bt()==32&&dt()==32))}function zd(e){for(;dt();)switch(ke){case e:return rt;case 34:case 39:e!==34&&e!==39&&zd(ke);break;case 40:e===41&&zd(e);break;case 92:dt();break}return rt}function cG(e,t){for(;dt()&&e+ke!==57&&!(e+ke===84&&Bt()===47););return"/*"+mo(t,rt-1)+"*"+Cs(e===47?e:dt())}function uG(e){for(;!lo(Bt());)dt();return mo(e,rt)}function dG(e){return sA(vs("",null,null,null,[""],e=aA(e),0,[0],e))}function vs(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,h=0,v=1,y=1,g=1,b=0,k="",x=i,P=o,T=n,A=k;y;)switch(h=b,b=dt()){case 40:if(h!=108&&Me(A,u-1)==58){Wd(A+=Q(gs(b),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:A+=gs(b);break;case 9:case 10:case 13:case 32:A+=sG(h);break;case 92:A+=lG(hs()-1,7);continue;case 47:switch(Bt()){case 42:case 47:cs(pG(cG(dt(),hs()),t,r),l);break;default:A+="/"}break;case 123*v:s[c++]=Ut(A)*g;case 125*v:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+d:f>0&&Ut(A)-u&&cs(f>32?_k(A+";",n,r,u-1):_k(Q(A," ","")+";",n,r,u-2),l);break;case 59:A+=";";default:if(cs(T=yk(A,t,r,c,d,i,s,k,x=[],P=[],u),o),b===123)if(d===0)vs(A,t,T,T,x,o,u,s,P);else switch(p===99&&Me(A,3)===110?100:p){case 100:case 109:case 115:vs(e,T,T,n&&cs(yk(e,T,T,0,0,i,s,k,i,x=[],u),P),i,P,u,s,n?x:P);break;default:vs(A,T,T,T,[""],P,0,s,P)}}c=d=f=0,v=g=1,k=A="",u=a;break;case 58:u=1+Ut(A),f=h;default:if(v<1){if(b==123)--v;else if(b==125&&v++==0&&aG()==125)continue}switch(A+=Cs(b),b*v){case 38:g=d>0?1:(A+="\f",-1);break;case 44:s[c++]=(Ut(A)-1)*g,g=1;break;case 64:Bt()===45&&(A+=gs(dt())),p=Bt(),d=u=Ut(k=A+=uG(hs())),b++;break;case 45:h===45&&Ut(A)==2&&(v=0)}}return o}function yk(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=up(p),h=0,v=0,y=0;h<n;++h)for(var g=0,b=so(e,u+1,u=eG(v=a[h])),k=e;g<f;++g)(k=iA(v>0?p[g]+" "+b:Q(b,/&\f/g,p[g])))&&(l[y++]=k);return Os(e,t,r,i===0?lp:s,l,c,d)}function pG(e,t,r){return Os(e,t,r,sp,Cs(oG()),so(e,2,-2),0)}function _k(e,t,r,n){return Os(e,t,r,cp,so(e,0,n),so(e,n+1,-1),n)}function On(e,t){for(var r="",n=up(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function fG(e,t,r,n){switch(e.type){case ZJ:case cp:return e.return=e.return||e.value;case sp:return"";case nA:return e.return=e.value+"{"+On(e.children,n)+"}";case lp:e.value=e.props.join(",")}return Ut(r=On(e.children,n))?e.return=e.value+"{"+r+"}":""}function mG(e){var t=up(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 hG(e){return function(t){t.root||(t=t.return)&&e(t)}}function cA(e,t){switch(rG(e,t)){case 5103:return V+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return V+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return V+e+Es+e+Be+e+e;case 6828:case 4268:return V+e+Be+e+e;case 6165:return V+e+Be+"flex-"+e+e;case 5187:return V+e+Q(e,/(\w+).+(:[^]+)/,V+"box-$1$2"+Be+"flex-$1$2")+e;case 5443:return V+e+Be+"flex-item-"+Q(e,/flex-|-self/,"")+e;case 4675:return V+e+Be+"flex-line-pack"+Q(e,/align-content|flex-|-self/,"")+e;case 5548:return V+e+Be+Q(e,"shrink","negative")+e;case 5292:return V+e+Be+Q(e,"basis","preferred-size")+e;case 6060:return V+"box-"+Q(e,"-grow","")+V+e+Be+Q(e,"grow","positive")+e;case 4554:return V+Q(e,/([^-])(transform)/g,"$1"+V+"$2")+e;case 6187:return Q(Q(Q(e,/(zoom-|grab)/,V+"$1"),/(image-set)/,V+"$1"),e,"")+e;case 5495:case 3959:return Q(e,/(image-set\([^]*)/,V+"$1$`$1");case 4968:return Q(Q(e,/(.+:)(flex-)?(.*)/,V+"box-pack:$3"+Be+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+V+e+e;case 4095:case 3583:case 4068:case 2532:return Q(e,/(.+)-inline(.+)/,V+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ut(e)-1-t>6)switch(Me(e,t+1)){case 109:if(Me(e,t+4)!==45)break;case 102:return Q(e,/(.+:)(.+)-([^]+)/,"$1"+V+"$2-$3$1"+Es+(Me(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Wd(e,"stretch")?cA(Q(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Me(e,t+1)!==115)break;case 6444:switch(Me(e,Ut(e)-3-(~Wd(e,"!important")&&10))){case 107:return Q(e,":",":"+V)+e;case 101:return Q(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+V+(Me(e,14)===45?"inline-":"")+"box$3$1"+V+"$2$3$1"+Be+"$2box$3")+e}break;case 5936:switch(Me(e,t+11)){case 114:return V+e+Be+Q(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return V+e+Be+Q(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return V+e+Be+Q(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return V+e+Be+e+e}return e}function dA(){if(Ik)return us.exports;Ik=1;let e=dA();return us.exports={default:e},us.exports.default=e,us.exports}function co(e,t,r){var n,i="";return(0,Te.default)(n=r.split(" ")).call(n,function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}function TG(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 PG(e){var t=(0,Wk.default)(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function uo(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 Ft={name:i.name,styles:i.styles,next:Ft},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Ft={name:a.name,styles:a.styles,next:Ft},a=a.next;var s=o.styles+";";return s}return DG(e,t,r)}case"function":{if(e!==void 0){var l=Ft,c=r(e);return Ft=l,uo(e,t,c)}break}}var d=r;if(t==null)return d;var u=t[d];return u!==void 0?u:d}function DG(e,t,r){var n="";if((0,io.default)(r))for(var i=0;i<r.length;i++)n+=uo(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]+"}":Ek(s)&&(n+=qd(o)+":"+kk(o,s)+";")}else if((0,io.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)Ek(a[l])&&(n+=qd(o)+":"+kk(o,a[l])+";");else{var c=uo(e,t,a);switch(o){case"animation":case"animationName":{n+=qd(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function Cr(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="";Ft=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=uo(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=uo(r,t,e[s]),n){var l=o;i+=l[s]}Ak.lastIndex=0;for(var c="",d;(d=Ak.exec(i))!==null;)c+="-"+d[1];var u=TG(i)+c;return{name:u,styles:i,next:Ft}}function D(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Cr(t)}function VG(e,t,r){var n=[],i=co(e,n,r);return n.length<2?r:i+t(n)}function _(e,t,r,n,i,o){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var c={type:e,props:l,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--zG,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return N.vnode&&N.vnode(c),c}function ho(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=Gt(e());return Zr(()=>{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 pB(e){if(!e||e==="none")return"";let t=e.match(/^matrix\(([^)]+)\)$/);if(!t)return"";let r=t[1].split(",").map(Number);if(r.length<6)return"";let[n,i]=r,o=-Math.atan2(i,n)*(180/Math.PI),a=Math.round(o);return a===90?"rotateZ(90deg) translateY(-100vw)":a===-90||a===270?"rotateZ(-90deg) translateX(-100vh)":a===180||a===-180?"rotateZ(180deg) translate(-100vw, -100vh)":`rotateZ(${a}deg)`}function IA(e){let t=window.getComputedStyle(document.body).transform,r="";t&&t!=="none"&&(r=pB(t)),e.style.transform=r,e.style.transformOrigin="0 0"}function fB(e){let t=()=>IA(e);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}}function gB(s){var l=s,{elementTag:e="Image",src:t="",children:r,handleExposure:n,className:i,imgStyle:o}=l,a=je(l,["elementTag","src","children","handleExposure","className","imgStyle"]);let c=hB(()=>{t&&n()});return e==="Image"?_("div",{className:i,style:{borderRadius:"8px"},children:Je("img",F(C({},a),{ref:c,src:t!=null?t:"",style:C({display:"block",width:"100%",height:"auto",objectFit:"cover",maxWidth:"100%",maxHeight:"100%",aspectRatio:"1 / 1",borderRadius:"8px"},o||{})}))}):_("div",F(C({},a),{ref:c,className:i,children:r}))}function vB(e,t){if(!e)return null;let r=Array.isArray(t)?t[0]:t,n=Array.isArray(t)?t[1]:0;return Array.isArray(e)?e.map((i,o)=>i&&typeof i=="object"&&"type"in i?Je(i.type,F(C({},i.props),{style:F(C({},i.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0}),key:i.key||o})):i):e&&typeof e=="object"&&"type"in e?Je(e.type,F(C({},e.props),{style:F(C({},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 IB(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 qk(e,t,r){return Rs.call(t,"css")?_(mp,gA(e,t),r):_(e,t,r)}function CB(e,t,r){return Rs.call(t,"css")?_(mp,gA(e,t),r):_(e,t,r)}function Zd({children:e,values:t={},style:r}){let n=e.split(/({{\s*\w+\s*}})/g);return _("div",{style:r,children:n.map((i,o)=>{let a=i.match(/^{{\s*(\w+)\s*}}$/);if(a){let s=a[1];return t[s]!==void 0?_(De,{children:t[s]},o):null}return _(De,{children:i},o)})})}function PB({src:e,alt:t="",width:r=120,height:n=120,top:i="-60px",style:o={}}){let[a,s]=Gt(!1);return a?null:_("div",{style:C({position:"absolute",top:i,left:"50%",transform:"translateX(-50%)",zIndex:10,width:r,height:n},o),children:_("img",{src:e,alt:t,width:r,height:n,style:{display:"block",width:"100%",height:"100%",objectFit:"contain"},onError:()=>s(!0)})})}function DB({children:e,style:t}){return _("div",{style:`${RB.styles} ${t}`,children:[e,_("svg",{style:`${NB.styles} `,width:"18",height:"10",viewBox:"0 0 18 10",children:[_("polygon",{points:"9,10 0,1 18,1",fill:"#ffffff52"}),_("polygon",{points:"9,9 2,1 16,1",fill:"#4F396D"})]})]})}function KB(e,t){return qe(e,0)^45?(((t<<2^qe(e,0))<<2^qe(e,1))<<2^qe(e,2))<<2^qe(e,3):0}function MA(e){return(0,op.default)(e).call(e)}function YB(e,t){return(e=t.exec(e))?e[0]:e}function W(e,t,r){return e.replace(t,r)}function ep(e,t){return(0,ir.default)(e).call(e,t)}function qe(e,t){return e.charCodeAt(t)|0}function po(e,t,r){return(0,ap.default)(e).call(e,t,r)}function jt(e){return e.length}function _p(e){return e.length}function ps(e,t){return t.push(e),e}function QB(e,t){return(0,oo.default)(e).call(e,t).join("")}function Us(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:qs,column:Dn,length:a,return:""}}function to(e,t){return zB(Us("",null,null,"",null,null,0),e,{length:-e.length},t)}function XB(){return Ae}function ZB(){return Ae=nt>0?qe(qn,--nt):0,Dn--,Ae===10&&(Dn=1,qs--),Ae}function pt(){return Ae=nt<qA?qe(qn,nt++):0,Dn++,Ae===10&&(Dn=1,qs++),Ae}function Ht(){return qe(qn,nt)}function ys(){return nt}function go(e,t){return po(qn,e,t)}function fo(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 UA(e){return qs=Dn=1,qA=jt(qn=e),nt=0,[]}function FA(e){return qn="",e}function _s(e){return MA(go(nt-1,tp(e===91?e+2:e===40?e+1:e)))}function e5(e){for(;(Ae=Ht())&&Ae<33;)pt();return fo(e)>2||fo(Ae)>3?"":" "}function t5(e,t){for(;--t&&pt()&&!(Ae<48||Ae>102||Ae>57&&Ae<65||Ae>70&&Ae<97););return go(e,ys()+(t<6&&Ht()==32&&pt()==32))}function tp(e){for(;pt();)switch(Ae){case e:return nt;case 34:case 39:e!==34&&e!==39&&tp(Ae);break;case 40:e===41&&tp(e);break;case 92:pt();break}return nt}function r5(e,t){for(;pt()&&e+Ae!==57&&!(e+Ae===84&&Ht()===47););return"/*"+go(t,nt-1)+"*"+Ms(e===47?e:pt())}function n5(e){for(;!fo(Ht());)pt();return go(e,nt)}function i5(e){return FA(bs("",null,null,null,[""],e=UA(e),0,[0],e))}function bs(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,h=0,v=1,y=1,g=1,b=0,k="",x=i,P=o,T=n,A=k;y;)switch(h=b,b=pt()){case 40:if(h!=108&&qe(A,u-1)==58){ep(A+=W(_s(b),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:A+=_s(b);break;case 9:case 10:case 13:case 32:A+=e5(h);break;case 92:A+=t5(ys()-1,7);continue;case 47:switch(Ht()){case 42:case 47:ps(o5(r5(pt(),ys()),t,r),l);break;default:A+="/"}break;case 123*v:s[c++]=jt(A)*g;case 125*v:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+d:g==-1&&(A=W(A,/\f/g,"")),f>0&&jt(A)-u&&ps(f>32?Fk(A+";",n,r,u-1):Fk(W(A," ","")+";",n,r,u-2),l);break;case 59:A+=";";default:if(ps(T=Uk(A,t,r,c,d,i,s,k,x=[],P=[],u),o),b===123)if(d===0)bs(A,t,T,T,x,o,u,s,P);else switch(p===99&&qe(A,3)===110?100:p){case 100:case 108:case 109:case 115:bs(e,T,T,n&&ps(Uk(e,T,T,0,0,i,s,k,i,x=[],u),P),i,P,u,s,n?x:P);break;default:bs(A,T,T,T,[""],P,0,s,P)}}c=d=f=0,v=g=1,k=A="",u=a;break;case 58:u=1+jt(A),f=h;default:if(v<1){if(b==123)--v;else if(b==125&&v++==0&&ZB()==125)continue}switch(A+=Ms(b),b*v){case 38:g=d>0?1:(A+="\f",-1);break;case 44:s[c++]=(jt(A)-1)*g,g=1;break;case 64:Ht()===45&&(A+=_s(pt())),p=Ht(),d=u=jt(k=A+=n5(ys())),b++;break;case 45:h===45&&jt(A)==2&&(v=0)}}return o}function Uk(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=_p(p),h=0,v=0,y=0;h<n;++h)for(var g=0,b=po(e,u+1,u=WB(v=a[h])),k=e;g<f;++g)(k=MA(v>0?p[g]+" "+b:W(b,/&\f/g,p[g])))&&(l[y++]=k);return Us(e,t,r,i===0?vp:s,l,c,d)}function o5(e,t,r){return Us(e,t,r,DA,Ms(XB()),po(e,2,-2),0)}function Fk(e,t,r,n){return Us(e,t,r,yp,po(e,0,n),po(e,n+1,-1),n)}function Pn(e,t){for(var r="",n=_p(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function a5(e,t,r,n){switch(e.type){case $B:if(e.children.length)break;case VB:case yp:return e.return=e.return||e.value;case DA:return"";case LA:return e.return=e.value+"{"+Pn(e.children,n)+"}";case vp:e.value=e.props.join(",")}return jt(r=Pn(e.children,n))?e.return=e.value+"{"+r+"}":""}function s5(e){var t=_p(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 l5(e){return function(t){t.root||(t=t.return)&&e(t)}}function jA(e,t){switch(KB(e,t)){case 5103:return $+"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 $+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $+e+As+e+He+e+e;case 6828:case 4268:return $+e+He+e+e;case 6165:return $+e+He+"flex-"+e+e;case 5187:return $+e+W(e,/(\w+).+(:[^]+)/,$+"box-$1$2"+He+"flex-$1$2")+e;case 5443:return $+e+He+"flex-item-"+W(e,/flex-|-self/,"")+e;case 4675:return $+e+He+"flex-line-pack"+W(e,/align-content|flex-|-self/,"")+e;case 5548:return $+e+He+W(e,"shrink","negative")+e;case 5292:return $+e+He+W(e,"basis","preferred-size")+e;case 6060:return $+"box-"+W(e,"-grow","")+$+e+He+W(e,"grow","positive")+e;case 4554:return $+W(e,/([^-])(transform)/g,"$1"+$+"$2")+e;case 6187:return W(W(W(e,/(zoom-|grab)/,$+"$1"),/(image-set)/,$+"$1"),e,"")+e;case 5495:case 3959:return W(e,/(image-set\([^]*)/,$+"$1$`$1");case 4968:return W(W(e,/(.+:)(flex-)?(.*)/,$+"box-pack:$3"+He+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$+e+e;case 4095:case 3583:case 4068:case 2532:return W(e,/(.+)-inline(.+)/,$+"$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(jt(e)-1-t>6)switch(qe(e,t+1)){case 109:if(qe(e,t+4)!==45)break;case 102:return W(e,/(.+:)(.+)-([^]+)/,"$1"+$+"$2-$3$1"+As+(qe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ep(e,"stretch")?jA(W(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(qe(e,t+1)!==115)break;case 6444:switch(qe(e,jt(e)-3-(~ep(e,"!important")&&10))){case 107:return W(e,":",":"+$)+e;case 101:return W(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$+(qe(e,14)===45?"inline-":"")+"box$3$1"+$+"$2$3$1"+He+"$2box$3")+e}break;case 5936:switch(qe(e,t+11)){case 114:return $+e+He+W(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $+e+He+W(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $+e+He+W(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $+e+He+e+e}return e}function Jk(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Gd(e,t,r){var n=[],i=co(e,n,r);return n.length<2?r:i+t(n)}function Hk(e){if(e==="top"){let t=0;JA.forEach((r,n)=>{let i=r.querySelector(".toast");i&&(n===0?i.style.top=`max(${Gk}px, env(safe-area-inset-top))`:i.style.top=`calc(max(${Gk}px, env(safe-area-inset-top)) + ${t}px)`,t+=i.offsetHeight+Bk)})}else if(e==="center"){let t=0;GA.forEach(r=>{let n=r.querySelector(".toast");n&&(n.style.top=`calc(50% + ${t}px)`,t+=n.offsetHeight+Bk)})}}function vo(){let e=!1,t=null,r=0,n=new Set,i=a=>w(this,null,function*(){let s=e;if(r++,e=!0,!s)try{let{iframe:l}=yield no.acquire(),c=l.contentDocument;if(c)t=c.createElement("div"),t.id="loading-root",c.body.appendChild(t),vr(_(A5,{}),t);else throw new Error("Iframe document is not available.")}catch(l){console.error("[LoadingManager] Failed to show loading:",l),r=0,e=!1,no.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&&(vr(null,t),(a=t.parentNode)==null||a.removeChild(t),t=null),no.release()))};return{show:i,hide:o,get isLoading(){return e}}}var rp,$k,Te,Ss,ws,Jt,Is,io,np,ir,oo,Wk,zk,ip,op,ap,eY,Bd,Rn,de,Md,uk,ao,Kk,Ee,dk,pk,fk,mk,hk,gk,vk,Xk,ve,Mt,qt,rr,Tn,xr,ms,KJ,Oe,YJ,rA,Be,Es,V,sp,lp,cp,ZJ,nA,eG,Cs,tG,Ts,Nn,oA,rt,ke,Ln,gG,vG,yG,bk,_G,bG,wG,IG,EG,lA,kG,wk,AG,SG,xG,uA,us,Ik,CG,dp,Ps,OG,RG,NG,pA,Ek,qd,kk,Ak,Ft,LG,fA,mA,Sk,Rs,pp,hA,fp,Ns,MG,qG,UG,FG,jG,Kd,Yd,gA,JG,mp,GG,xk,BG,HG,$G,WG,Ud,Ck,Fd,jd,zG,Jd,KG,YG,QG,XG,ZG,e2,t2,Tk,r2,n2,i2,Ok,o2,a2,s2,Pk,l2,c2,u2,Rk,d2,p2,f2,m2,h2,g2,v2,y2,_2,b2,w2,Nk,I2,E2,k2,A2,S2,x2,C2,T2,O2,P2,R2,Dk,N2,D2,L2,M2,q2,U2,F2,j2,J2,G2,B2,H2,V2,$2,W2,z2,K2,Y2,Q2,X2,Z2,eB,tB,rB,nB,iB,oB,aB,sB,lB,cB,uB,vA,yA,_A,Qd,dB,bA,wA,ks,no,Lk,mB,Ds,hB,EA,kA,AA,yB,_B,bB,Xd,wB,SA,xA,Ls,hp,Mn,Mk,Sr,CA,Xr,EB,kB,AB,SB,xB,ds,TA,gp,he,TB,OB,RB,NB,St,LB,MB,OA,PA,RA,NA,Tr,qB,UB,FB,jB,JB,GB,BB,HB,He,As,$,DA,vp,yp,VB,LA,$B,WB,Ms,zB,qs,Dn,qA,nt,Ae,qn,c5,u5,d5,jk,p5,f5,m5,h5,g5,v5,y5,_5,b5,w5,I5,E5,Gk,Bk,JA,GA,Or,Vk,k5,A5,tY,ar=S(()=>{"use strict";pn();rp=ne(Mv(),1),$k=ne($v(),1),Te=ne(oy(),1),Ss=ne(by(),1),ws=ne(Ty(),1),Jt=ne(Wy(),1);Na();Na();Is=ne(P_(),1),io=ne(U_(),1),np=ne(eI(),1),ir=ne(uI(),1),oo=ne(_I(),1),Wk=ne(SI(),1),zk=ne(B0(),1),ip=ne(nE(),1),op=ne(bE(),1),ap=ne(PE(),1);Rd();Rd();eY=ne(zE(),1),Bd=ne(ck(),1),ao=0,Kk=[],Ee=N,dk=Ee.__b,pk=Ee.__r,fk=Ee.diffed,mk=Ee.__c,hk=Ee.unmount,gk=Ee.__;Ee.__b=function(e){de=null,dk&&dk(e)},Ee.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),gk&&gk(e,t)},Ee.__r=function(e){var t,r,n;pk&&pk(e),Rn=0;var i=(de=e.__c).__H;i&&(Md===de?(i.__h=[],de.__h=[],(0,Te.default)(t=i.__).call(t,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,Te.default)(r=i.__h).call(r,fs),(0,Te.default)(n=i.__h).call(n,Hd),i.__h=[],Rn=0)),Md=de},Ee.diffed=function(e){var t;fk&&fk(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(Kk.push(r)!==1&&uk===Ee.requestAnimationFrame||((uk=Ee.requestAnimationFrame)||VJ)(HJ)),(0,Te.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),Md=de=null},Ee.__c=function(e,t){(0,ws.default)(t).call(t,function(r){try{var n,i;(0,Te.default)(n=r.__h).call(n,fs),r.__h=(0,rp.default)(i=r.__h).call(i,function(o){return!o.__||Hd(o)})}catch(o){(0,ws.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],Ee.__e(o,r.__v)}}),mk&&mk(e,t)},Ee.unmount=function(e){var t;hk&&hk(e);var r,n=e.__c;n&&n.__H&&((0,Te.default)(t=n.__H.__).call(t,function(i){try{fs(i)}catch(o){r=o}}),n.__H=void 0,r&&Ee.__e(r,n.__v))};vk=typeof requestAnimationFrame=="function";Xk={exports:{}},ve=Xk.exports={};(function(){try{typeof Jt.default=="function"?Mt=Jt.default:Mt=Vd}catch(e){Mt=Vd}try{typeof clearTimeout=="function"?qt=clearTimeout:qt=$d}catch(e){qt=$d}})();rr=[],Tn=!1,ms=-1;ve.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];rr.push(new tA(e,t)),rr.length===1&&!Tn&&Zk(eA)};tA.prototype.run=function(){this.fun.apply(null,this.array)};ve.title="browser";ve.browser=!0;ve.env={};ve.argv=[];ve.version="";ve.versions={};ve.on=or;ve.addListener=or;ve.once=or;ve.off=or;ve.removeListener=or;ve.removeAllListeners=or;ve.emit=or;ve.prependListener=or;ve.prependOnceListener=or;ve.listeners=function(e){return[]};ve.binding=function(e){throw new Error("process.binding is not supported")};ve.cwd=function(){return"/"};ve.chdir=function(e){throw new Error("process.chdir is not supported")};ve.umask=function(){return 0};KJ=Xk.exports,Oe=$J(KJ),YJ=Is.default||void 0||self;rA=function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){(0,Te.default)(r).call(r,this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(XJ(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=QJ(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){var r;(0,Te.default)(r=this.tags).call(r,function(n){var i;return(i=n.parentNode)==null?void 0:i.removeChild(n)}),this.tags=[],this.ctr=0},e}(),Be="-ms-",Es="-moz-",V="-webkit-",sp="comm",lp="rule",cp="decl",ZJ="@import",nA="@keyframes",eG=Math.abs,Cs=String.fromCharCode,tG=ip.default;Ts=1,Nn=1,oA=0,rt=0,ke=0,Ln="";gG=function(e,t,r){for(var n=0,i=0;n=i,i=Bt(),n===38&&i===12&&(t[r]=1),!lo(i);)dt();return mo(e,rt)},vG=function(e,t){var r=-1,n=44;do switch(lo(n)){case 0:n===38&&Bt()===12&&(t[r]=1),e[r]+=gG(rt-1,t,r);break;case 2:e[r]+=gs(n);break;case 4:if(n===44){e[++r]=Bt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Cs(n)}while(n=dt());return e},yG=function(e,t){return sA(vG(aA(e),t))},bk=new np.default,_G=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&&!bk.get(r))&&!n){bk.set(e,!0);for(var i=[],o=yG(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]}}},bG=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},wG="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",IG=function(e){var t;return e.type==="comm"&&(0,ir.default)(t=e.children).call(t,wG)>-1},EG=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(IG(l))return;break}}(0,Te.default)(i).call(i,function(c){console.error('The pseudo class "'+c+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+c.split("-child")[0]+'-of-type".')})}}}},lA=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},kG=function(e,t){for(var r=e-1;r>=0;r--)if(!lA(t[r]))return!0;return!1},wk=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},AG=function(e,t,r){lA(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."),wk(e)):kG(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),wk(e)))};SG=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case cp:e.return=cA(e.value,e.length);break;case nA:return On([eo(e,{value:Q(e.value,"@","@"+V)})],n);case lp:if(e.length)return iG(e.props,function(i){switch(nG(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return On([eo(e,{props:[Q(i,/:(read-\w+)/,":"+Es+"$1")]})],n);case"::placeholder":return On([eo(e,{props:[Q(i,/:(plac\w+)/,":"+V+"input-$1")]}),eo(e,{props:[Q(i,/:(plac\w+)/,":"+Es+"$1")]}),eo(e,{props:[Q(i,/:(plac\w+)/,Be+"input-$1")]})],n)}return""})}},xG=[SG],uA=function(e){var t=e.key;if(Oe.env.NODE_ENV!=="production"&&!t)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
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,Te.default)(Array.prototype).call(r,function(h){var v=h.getAttribute("data-emotion");(0,ir.default)(v).call(v," ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var n=e.stylisPlugins||xG;if(Oe.env.NODE_ENV!=="production"&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var i={},o,a=[];o=e.container||document.head,(0,Te.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(h){for(var v=h.getAttribute("data-emotion").split(" "),y=1;y<v.length;y++)i[v[y]]=!0;a.push(h)});var s,l=[_G,bG];Oe.env.NODE_ENV!=="production"&&l.push(EG({get compat(){return f.compat}}),AG);{var c,d=[fG,Oe.env.NODE_ENV!=="production"?function(h){h.root||(h.return?c.insert(h.return):h.value&&h.type!==sp&&c.insert(h.value+"{}"))}:hG(function(h){c.insert(h)})],u=mG((0,Ss.default)(l).call(l,n,d)),p=function(h){return On(dG(h),u)};s=function(h,v,y,g){c=y,Oe.env.NODE_ENV!=="production"&&(0,oo.default)(v)!==void 0&&(c={insert:function(b){y.insert(b+(0,oo.default)(v))}}),p(h?h+"{"+v.styles+"}":v.styles),g&&(f.inserted[v.name]=!0)}}var f={key:t,sheet:new rA({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},us={exports:{}};dA();CG=!0;dp=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||CG===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},Ps=function(e,t,r){dp(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)}};OG={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};RG=/[A-Z]|^ms/g,NG=/_EMO_([^_]+?)_([^]*?)_EMO_/g,pA=function(e){return e.charCodeAt(1)===45},Ek=function(e){return e!=null&&typeof e!="boolean"},qd=PG(function(e){return pA(e)?e:e.replace(RG,"-$&").toLowerCase()}),kk=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(NG,function(r,n,i){return Ft={name:n,styles:i,next:Ft},n})}return OG[e]!==1&&!pA(e)&&typeof t=="number"&&t!==0?t+"px":t};Ak=/label:\s*([^\s;{]+)\s*(;|$)/g;LG=function(e){return e()},fA=Cu?Cu:!1,mA=fA||LG,Sk=fA||In,Rs={}.hasOwnProperty,pp=Br(typeof HTMLElement<"u"?uA({key:"css"}):null);Oe.env.NODE_ENV!=="production"&&(pp.displayName="EmotionCacheContext");hA=pp.Provider,fp=function(e){return Ou(function(t,r){var n=kn(pp);return e(t,n,r)})},Ns=Br({});Oe.env.NODE_ENV!=="production"&&(Ns.displayName="EmotionThemeContext");MG=function(e){var t=e.split(".");return t[t.length-1]},qG=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 MG(t[1])},UG=new zk.default(["renderWithHooks","processChild","finishClassComponent","renderToString"]),FG=function(e){return e.replace(/\$/g,"-")},jG=function(e){if(e)for(var t=e.split(`
24
- `),r=0;r<t.length;r++){var n=qG(t[r]);if(n){if(UG.has(n))break;if(/^[A-Z]/.test(n))return FG(n)}}},Kd="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Yd="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",gA=function(e,t){var r,n;if(Oe.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)Rs.call(t,o)&&(i[o]=t[o]);if(i[Kd]=e,Oe.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=jG(new Error().stack);a&&(i[Yd]=a)}return i},JG=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return dp(t,r,n),mA(function(){return Ps(t,r,n)}),null},mp=fp(function(e,t,r){var n,i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[Kd],a=[i],s="";typeof e.className=="string"?s=co(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var l=Cr(a,void 0,kn(Ns));if(Oe.env.NODE_ENV!=="production"&&(0,ir.default)(n=l.name).call(n,"-")===-1){var c=e[Yd];c&&(l=Cr([l,"label:"+c+";"]))}s+=t.key+"-"+l.name;var d={};for(var u in e)Rs.call(e,u)&&u!=="css"&&u!==Kd&&(Oe.env.NODE_ENV==="production"||u!==Yd)&&(d[u]=e[u]);return d.ref=r,d.className=s,Je(De,null,Je(JG,{cache:t,serialized:l,isStringTag:typeof o=="string"}),Je(o,d))});Oe.env.NODE_ENV!=="production"&&(mp.displayName="EmotionCssPropInternal");GG={version:"11.10.5"},xk=!1,BG=fp(function(e,t){Oe.env.NODE_ENV!=="production"&&!xk&&(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?"),xk=!0);var r=e.styles,n=Cr([r],void 0,kn(Ns)),i=ji();return Sk(function(){var o=t.key+"-global",a=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+o+" "+n.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",o),a.hydrate([l])),i.current=[a,s],function(){a.flush()}},[t]),Sk(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(n.next!==void 0&&Ps(t,n.next,!0),a.tags.length){var l=a.tags[a.tags.length-1].nextElementSibling;a.before=l,a.flush()}t.insert("",n,a,!1)},[t,n.name]),null});Oe.env.NODE_ENV!=="production"&&(BG.displayName="EmotionGlobal");HG=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,io.default)(o))a=e(o);else{Oe.env.NODE_ENV!=="production"&&o.styles!==void 0&&o.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),a="";for(var s in o)o[s]&&s&&(a&&(a+=" "),a+=s)}break}default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};$G=function(e){var t=e.cache,r=e.serializedArr;return mA(function(){for(var n=0;n<r.length;n++)Ps(t,r[n],!1)}),null},WG=fp(function(e,t){var r=!1,n=[],i=function(){if(r&&Oe.env.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];var u=Cr(c,t.registered);return n.push(u),dp(t,u,!1),t.key+"-"+u.name},o=function(){if(r&&Oe.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];return VG(t.registered,i,HG(c))},a={css:i,cx:o,theme:kn(Ns)},s=e.children(a);return r=!0,Je(De,null,Je($G,{cache:t,serializedArr:n}),s)});Oe.env.NODE_ENV!=="production"&&(WG.displayName="EmotionClassNames");Oe.env.NODE_ENV!=="production"&&(Ud=!0,Ck=typeof jest<"u"||typeof vi<"u",Ud&&!Ck&&(Fd=typeof Is.default<"u"?Is.default:Ud?window:YJ,jd="__EMOTION_REACT_"+GG.version.split(".")[0]+"__",Fd[jd]&&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."),Fd[jd]=!0));zG=0;Jd={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"}},KG=D`
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}=E.viewport;document.documentElement.style.setProperty("--status-bar-height",`${s}px`),document.documentElement.style.setProperty("--navigation-bar-height",`${l}px`)},o=()=>{function s(c){return y(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 Bm=A(()=>{"use strict";J()});var Jm=A(()=>{"use strict"});var Hm=A(()=>{"use strict";P();wc()});var $m=A(()=>{"use strict";J()});var ba,jc=A(()=>{"use strict";Jm();Hm();J();$m();P();ba=new Dt});function Zt(e,t){for(var r in t)e[r]=t[r];return e}function Vc(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Ge(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?Sa.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 Ia(e,a,n,i,null)}function Ia(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?++Km:i,__i:-1,__u:0};return i==null&&N.vnode!=null&&N.vnode(o),o}function De(e){return e.children}function ct(e,t){this.props=e,this.context=t}function mn(e,t){if(t==null)return e.__?mn(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"?mn(e):null}function tg(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 tg(e)}}function Jc(e){(!e.__d&&(e.__d=!0)&&Vr.push(e)&&!Ea.__r++||Vm!==N.debounceRendering)&&((Vm=N.debounceRendering)||Ym)(Ea)}function Ea(){for(var e,t,r,n,i,o,a,s=1;Vr.length;)Vr.length>s&&Vr.sort(Qm),e=Vr.shift(),s=Vr.length,e.__d&&(r=void 0,i=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=Zt({},n)).__v=n.__v+1,N.vnode&&N.vnode(r),Wc(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?mn(n):i,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,ig(o,r,a),r.__e!=i&&tg(r)));Ea.__r=0}function rg(e,t,r,n,i,o,a,s,l,c,d){var u,p,f,h,v,_,g=n&&n.__k||eg,w=t.length;for(l=lO(r,t,g,l,w),u=0;u<w;u++)(f=r.__k[u])!=null&&(p=f.__i===-1?wi:g[f.__i]||wi,f.__i=u,_=Wc(e,f,p,i,o,a,s,l,c,d),h=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&zc(p.ref,null,f),d.push(f.ref,f.__c||h,f)),v==null&&h!=null&&(v=h),4&f.__u||p.__k===f.__k?l=ng(f,l,e):typeof f.type=="function"&&_!==void 0?l=_:h&&(l=h.nextSibling),f.__u&=-7);return r.__e=v,l}function lO(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?Ia(null,a,null,null,null):Ii(a)?Ia(De,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?Ia(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=cO(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=mn(s)),ag(s,s));return n}function ng(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=ng(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=mn(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Ei(e,t){return t=t||[],e==null||typeof e=="boolean"||(Ii(e)?e.some(function(r){Ei(r,t)}):t.push(e)),t}function cO(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 Wm(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||sO.test(t)?r:r+"px"}function wa(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||Wm(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||Wm(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(Xm,"$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=$c,e.addEventListener(t,o?Bc:Gc,o)):e.removeEventListener(t,o?Bc:Gc,o);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r==null?"":r;break e}catch(a){}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function zm(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=$c++;else if(t.u<r.t)return;return r(N.event?N.event(t):t)}}}function Wc(e,t,r,n,i,o,a,s,l,c){var d,u,p,f,h,v,_,g,w,S,C,O,T,k,R,G,Ke,M=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(l=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=N.__b)&&d(t);e:if(typeof M=="function")try{if(g=t.props,w="prototype"in M&&M.prototype.render,S=(d=M.contextType)&&n[d.__c],C=d?S?S.props.value:d.__:n,r.__c?_=(u=t.__c=r.__c).__=u.__E:(w?t.__c=u=new M(g,C):(t.__c=u=new ct(g,C),u.constructor=M,u.render=dO),S&&S.sub(u),u.props=g,u.state||(u.state={}),u.context=C,u.__n=n,p=u.__d=!0,u.__h=[],u._sb=[]),w&&u.__s==null&&(u.__s=u.state),w&&M.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Zt({},u.__s)),Zt(u.__s,M.getDerivedStateFromProps(g,u.__s))),f=u.props,h=u.state,u.__v=t,p)w&&M.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),w&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(w&&M.getDerivedStateFromProps==null&&g!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(g,C),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(g,u.__s,C)===!1||t.__v==r.__v)){for(t.__v!=r.__v&&(u.props=g,u.state=u.__s,u.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(Pe){Pe&&(Pe.__=t)}),O=0;O<u._sb.length;O++)u.__h.push(u._sb[O]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(g,u.__s,C),w&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,h,v)})}if(u.context=C,u.props=g,u.__P=e,u.__e=!1,T=N.__r,k=0,w){for(u.state=u.__s,u.__d=!1,T&&T(t),d=u.render(u.props,u.state,u.context),R=0;R<u._sb.length;R++)u.__h.push(u._sb[R]);u._sb=[]}else do u.__d=!1,T&&T(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=Zt(Zt({},n),u.getChildContext())),w&&!p&&u.getSnapshotBeforeUpdate!=null&&(v=u.getSnapshotBeforeUpdate(f,h)),G=d,d!=null&&d.type===De&&d.key==null&&(G=og(d.props.children)),s=rg(e,Ii(G)?G:[G],t,r,n,i,o,a,s,l,c),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),_&&(u.__E=u.__=null)}catch(Pe){if(t.__v=null,l||o!=null)if(Pe.then){for(t.__u|=l?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;o[o.indexOf(s)]=null,t.__e=s}else for(Ke=o.length;Ke--;)Vc(o[Ke]);else t.__e=r.__e,t.__k=r.__k;N.__e(Pe,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=uO(r.__e,t,r,n,i,o,a,l,c);return(d=N.diffed)&&d(t),128&t.__u?void 0:s}function ig(e,t,r){for(var n=0;n<r.length;n++)zc(r[n],r[++n],r[++n]);N.__c&&N.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){N.__e(o,i.__v)}})}function og(e){return typeof e!="object"||e==null?e:Ii(e)?e.map(og):Zt({},e)}function uO(e,t,r,n,i,o,a,s,l){var c,d,u,p,f,h,v,_=r.props,g=t.props,w=t.type;if(w=="svg"?i="http://www.w3.org/2000/svg":w=="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==!!w&&(w?f.localName==w:f.nodeType==3)){e=f,o[c]=null;break}}if(e==null){if(w==null)return document.createTextNode(g);e=document.createElementNS(i,w,g.is&&g),s&&(N.__m&&N.__m(t,o),s=!1),o=null}if(w===null)_===g||s&&e.data===g||(e.data=g);else{if(o=o&&Sa.call(e.childNodes),_=r.props||wi,!s&&o!=null)for(_={},c=0;c<e.attributes.length;c++)_[(f=e.attributes[c]).name]=f.value;for(c in _)if(f=_[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=f;else if(!(c in g)){if(c=="value"&&"defaultValue"in g||c=="checked"&&"defaultChecked"in g)continue;wa(e,c,null,f,i)}}for(c in g)f=g[c],c=="children"?p=f:c=="dangerouslySetInnerHTML"?d=f:c=="value"?h=f:c=="checked"?v=f:s&&typeof f!="function"||_[c]===f||wa(e,c,f,_[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=""),rg(t.type==="template"?e.content:e,Ii(p)?p:[p],t,r,n,w=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&mn(r,0),s,l),o!=null)for(c=o.length;c--;)Vc(o[c]);s||(c="value",w=="progress"&&h==null?e.removeAttribute("value"):h!==void 0&&(h!==e[c]||w=="progress"&&!h||w=="option"&&h!==_[c])&&wa(e,c,h,_[c],i),c="checked",v!==void 0&&v!==e[c]&&wa(e,c,v,_[c],i))}return e}function zc(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(i){N.__e(i,r)}}function ag(e,t,r){var n,i;if(N.unmount&&N.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||zc(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){N.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&ag(n[i],t,r||typeof e.type!="function");r||Vc(e.__e),e.__c=e.__=e.__e=void 0}function dO(e,t,r){return this.constructor(e,r)}function Er(e,t,r){var n,i,o,a;t==document&&(t=document.documentElement),N.__&&N.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],Wc(t,e=(!n&&r||t).__k=Ge(De,null,[e]),i||wi,wi,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?Sa.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),ig(o,e,a)}function Wr(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,Jc(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"+Zm++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var Sa,N,Km,Hc,Vr,Vm,Ym,Qm,Xm,$c,Gc,Bc,Zm,wi,eg,sO,Ii,gn=A(()=>{wi={},eg=[],sO=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Ii=Array.isArray;Sa=eg.slice,N={__e:function(e,t,r,n){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,n||{}),a=i.__d),a)return i.__E=i}catch(s){e=s}throw e}},Km=0,Hc=function(e){return e!=null&&e.constructor==null},ct.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Zt({},this.state),typeof e=="function"&&(e=e(Zt({},r),this.props)),e&&Zt(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),Jc(this))},ct.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Jc(this))},ct.prototype.render=De,Vr=[],Ym=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Qm=function(e,t){return e.__v.__b-t.__v.__b},Ea.__r=0,Xm=/(PointerCapture)$|Capture$/i,$c=0,Gc=zm(!1),Bc=zm(!0),Zm=0});var fe=m((lz,sg)=>{"use strict";sg.exports=function(e){try{return!!e()}catch(t){return!0}}});var vn=m((cz,lg)=>{"use strict";var pO=fe();lg.exports=!pO(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var Ie=m((uz,dg)=>{"use strict";var cg=vn(),ug=Function.prototype,Kc=ug.call,fO=cg&&ug.bind.bind(Kc,Kc);dg.exports=cg?fO:function(e){return function(){return Kc.apply(e,arguments)}}});var Qe=m((dz,pg)=>{"use strict";var hO=Ie();pg.exports=hO({}.isPrototypeOf)});var he=m((Yc,fg)=>{"use strict";var Si=function(e){return e&&e.Math===Math&&e};fg.exports=Si(typeof globalThis=="object"&&globalThis)||Si(typeof window=="object"&&window)||Si(typeof self=="object"&&self)||Si(typeof global=="object"&&global)||Si(typeof Yc=="object"&&Yc)||function(){return this}()||Function("return this")()});var Qc=m((pz,vg)=>{"use strict";var mO=vn(),gg=Function.prototype,hg=gg.apply,mg=gg.call;vg.exports=typeof Reflect=="object"&&Reflect.apply||(mO?mg.bind(hg):function(){return mg.apply(hg,arguments)})});var er=m((fz,_g)=>{"use strict";var yg=Ie(),gO=yg({}.toString),vO=yg("".slice);_g.exports=function(e){return vO(gO(e),8,-1)}});var ki=m((hz,bg)=>{"use strict";var yO=er(),_O=Ie();bg.exports=function(e){if(yO(e)==="Function")return _O(e)}});var qe=m((mz,wg)=>{"use strict";var Xc=typeof document=="object"&&document.all;wg.exports=typeof Xc=="undefined"&&Xc!==void 0?function(e){return typeof e=="function"||e===Xc}:function(e){return typeof e=="function"}});var Xe=m((gz,Ig)=>{"use strict";var bO=fe();Ig.exports=!bO(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var Et=m((vz,Eg)=>{"use strict";var wO=vn(),ka=Function.prototype.call;Eg.exports=wO?ka.bind(ka):function(){return ka.apply(ka,arguments)}});var Zc=m(Ag=>{"use strict";var Sg={}.propertyIsEnumerable,kg=Object.getOwnPropertyDescriptor,IO=kg&&!Sg.call({1:2},1);Ag.f=IO?function(t){var r=kg(this,t);return!!r&&r.enumerable}:Sg});var Ai=m((_z,Cg)=>{"use strict";Cg.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var Aa=m((bz,xg)=>{"use strict";var EO=Ie(),SO=fe(),kO=er(),eu=Object,AO=EO("".split);xg.exports=SO(function(){return!eu("z").propertyIsEnumerable(0)})?function(e){return kO(e)==="String"?AO(e,""):eu(e)}:eu});var zr=m((wz,Tg)=>{"use strict";Tg.exports=function(e){return e==null}});var Kr=m((Iz,Rg)=>{"use strict";var CO=zr(),xO=TypeError;Rg.exports=function(e){if(CO(e))throw new xO("Can't call method on "+e);return e}});var Sr=m((Ez,Og)=>{"use strict";var TO=Aa(),RO=Kr();Og.exports=function(e){return TO(RO(e))}});var xe=m((Sz,Pg)=>{"use strict";var OO=qe();Pg.exports=function(e){return typeof e=="object"?e!==null:OO(e)}});var Lt=m((kz,Ng)=>{"use strict";Ng.exports={}});var yn=m((Az,qg)=>{"use strict";var tu=Lt(),ru=he(),PO=qe(),Dg=function(e){return PO(e)?e:void 0};qg.exports=function(e,t){return arguments.length<2?Dg(tu[e])||Dg(ru[e]):tu[e]&&tu[e][t]||ru[e]&&ru[e][t]}});var Ca=m((Cz,Ug)=>{"use strict";var NO=he(),Lg=NO.navigator,Mg=Lg&&Lg.userAgent;Ug.exports=Mg?String(Mg):""});var Ta=m((xz,Hg)=>{"use strict";var Jg=he(),nu=Ca(),Fg=Jg.process,jg=Jg.Deno,Gg=Fg&&Fg.versions||jg&&jg.version,Bg=Gg&&Gg.v8,St,xa;Bg&&(St=Bg.split("."),xa=St[0]>0&&St[0]<4?1:+(St[0]+St[1]));!xa&&nu&&(St=nu.match(/Edge\/(\d+)/),(!St||St[1]>=74)&&(St=nu.match(/Chrome\/(\d+)/),St&&(xa=+St[1])));Hg.exports=xa});var iu=m((Tz,Vg)=>{"use strict";var $g=Ta(),DO=fe(),qO=he(),LO=qO.String;Vg.exports=!!Object.getOwnPropertySymbols&&!DO(function(){var e=Symbol("symbol detection");return!LO(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&$g&&$g<41})});var ou=m((Rz,Wg)=>{"use strict";var MO=iu();Wg.exports=MO&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var au=m((Oz,zg)=>{"use strict";var UO=yn(),FO=qe(),jO=Qe(),GO=ou(),BO=Object;zg.exports=GO?function(e){return typeof e=="symbol"}:function(e){var t=UO("Symbol");return FO(t)&&jO(t.prototype,BO(e))}});var Ci=m((Pz,Kg)=>{"use strict";var JO=String;Kg.exports=function(e){try{return JO(e)}catch(t){return"Object"}}});var Yr=m((Nz,Yg)=>{"use strict";var HO=qe(),$O=Ci(),VO=TypeError;Yg.exports=function(e){if(HO(e))return e;throw new VO($O(e)+" is not a function")}});var Ra=m((Dz,Qg)=>{"use strict";var WO=Yr(),zO=zr();Qg.exports=function(e,t){var r=e[t];return zO(r)?void 0:WO(r)}});var Zg=m((qz,Xg)=>{"use strict";var su=Et(),lu=qe(),cu=xe(),KO=TypeError;Xg.exports=function(e,t){var r,n;if(t==="string"&&lu(r=e.toString)&&!cu(n=su(r,e))||lu(r=e.valueOf)&&!cu(n=su(r,e))||t!=="string"&&lu(r=e.toString)&&!cu(n=su(r,e)))return n;throw new KO("Can't convert object to primitive value")}});var _n=m((Lz,ev)=>{"use strict";ev.exports=!0});var nv=m((Mz,rv)=>{"use strict";var tv=he(),YO=Object.defineProperty;rv.exports=function(e,t){try{YO(tv,e,{value:t,configurable:!0,writable:!0})}catch(r){tv[e]=t}return t}});var xi=m((Uz,av)=>{"use strict";var QO=_n(),XO=he(),ZO=nv(),iv="__core-js_shared__",ov=av.exports=XO[iv]||ZO(iv,{});(ov.versions||(ov.versions=[])).push({version:"3.41.0",mode:QO?"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 uu=m((Fz,lv)=>{"use strict";var sv=xi();lv.exports=function(e,t){return sv[e]||(sv[e]=t||{})}});var bn=m((jz,cv)=>{"use strict";var eP=Kr(),tP=Object;cv.exports=function(e){return tP(eP(e))}});var ut=m((Gz,uv)=>{"use strict";var rP=Ie(),nP=bn(),iP=rP({}.hasOwnProperty);uv.exports=Object.hasOwn||function(t,r){return iP(nP(t),r)}});var Oa=m((Bz,dv)=>{"use strict";var oP=Ie(),aP=0,sP=Math.random(),lP=oP(1 .toString);dv.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+lP(++aP+sP,36)}});var Be=m((Jz,fv)=>{"use strict";var cP=he(),uP=uu(),pv=ut(),dP=Oa(),pP=iu(),fP=ou(),wn=cP.Symbol,du=uP("wks"),hP=fP?wn.for||wn:wn&&wn.withoutSetter||dP;fv.exports=function(e){return pv(du,e)||(du[e]=pP&&pv(wn,e)?wn[e]:hP("Symbol."+e)),du[e]}});var vv=m((Hz,gv)=>{"use strict";var mP=Et(),hv=xe(),mv=au(),gP=Ra(),vP=Zg(),yP=Be(),_P=TypeError,bP=yP("toPrimitive");gv.exports=function(e,t){if(!hv(e)||mv(e))return e;var r=gP(e,bP),n;if(r){if(t===void 0&&(t="default"),n=mP(r,e,t),!hv(n)||mv(n))return n;throw new _P("Can't convert object to primitive value")}return t===void 0&&(t="number"),vP(e,t)}});var pu=m(($z,yv)=>{"use strict";var wP=vv(),IP=au();yv.exports=function(e){var t=wP(e,"string");return IP(t)?t:t+""}});var hu=m((Vz,bv)=>{"use strict";var EP=he(),_v=xe(),fu=EP.document,SP=_v(fu)&&_v(fu.createElement);bv.exports=function(e){return SP?fu.createElement(e):{}}});var mu=m((Wz,wv)=>{"use strict";var kP=Xe(),AP=fe(),CP=hu();wv.exports=!kP&&!AP(function(){return Object.defineProperty(CP("div"),"a",{get:function(){return 7}}).a!==7})});var gu=m(Ev=>{"use strict";var xP=Xe(),TP=Et(),RP=Zc(),OP=Ai(),PP=Sr(),NP=pu(),DP=ut(),qP=mu(),Iv=Object.getOwnPropertyDescriptor;Ev.f=xP?Iv:function(t,r){if(t=PP(t),r=NP(r),qP)try{return Iv(t,r)}catch(n){}if(DP(t,r))return OP(!TP(RP.f,t,r),t[r])}});var kv=m((Kz,Sv)=>{"use strict";var LP=fe(),MP=qe(),UP=/#|\.prototype\./,Ti=function(e,t){var r=jP[FP(e)];return r===BP?!0:r===GP?!1:MP(t)?LP(t):!!t},FP=Ti.normalize=function(e){return String(e).replace(UP,".").toLowerCase()},jP=Ti.data={},GP=Ti.NATIVE="N",BP=Ti.POLYFILL="P";Sv.exports=Ti});var Ri=m((Yz,Cv)=>{"use strict";var Av=ki(),JP=Yr(),HP=vn(),$P=Av(Av.bind);Cv.exports=function(e,t){return JP(e),t===void 0?e:HP?$P(e,t):function(){return e.apply(t,arguments)}}});var vu=m((Qz,xv)=>{"use strict";var VP=Xe(),WP=fe();xv.exports=VP&&WP(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var tr=m((Xz,Tv)=>{"use strict";var zP=xe(),KP=String,YP=TypeError;Tv.exports=function(e){if(zP(e))return e;throw new YP(KP(e)+" is not an object")}});var rr=m(Ov=>{"use strict";var QP=Xe(),XP=mu(),ZP=vu(),Pa=tr(),Rv=pu(),e1=TypeError,yu=Object.defineProperty,t1=Object.getOwnPropertyDescriptor,_u="enumerable",bu="configurable",wu="writable";Ov.f=QP?ZP?function(t,r,n){if(Pa(t),r=Rv(r),Pa(n),typeof t=="function"&&r==="prototype"&&"value"in n&&wu in n&&!n[wu]){var i=t1(t,r);i&&i[wu]&&(t[r]=n.value,n={configurable:bu in n?n[bu]:i[bu],enumerable:_u in n?n[_u]:i[_u],writable:!1})}return yu(t,r,n)}:yu:function(t,r,n){if(Pa(t),r=Rv(r),Pa(n),XP)try{return yu(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new e1("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var Qr=m((e6,Pv)=>{"use strict";var r1=Xe(),n1=rr(),i1=Ai();Pv.exports=r1?function(e,t,r){return n1.f(e,t,i1(1,r))}:function(e,t,r){return e[t]=r,e}});var Z=m((t6,Dv)=>{"use strict";var Oi=he(),o1=Qc(),a1=ki(),s1=qe(),l1=gu().f,c1=kv(),In=Lt(),u1=Ri(),En=Qr(),Nv=ut();xi();var d1=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 o1(e,this,arguments)};return t.prototype=e.prototype,t};Dv.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o=e.proto,a=n?Oi:i?Oi[r]:Oi[r]&&Oi[r].prototype,s=n?In:In[r]||En(In,r,{})[r],l=s.prototype,c,d,u,p,f,h,v,_,g;for(p in t)c=c1(n?p:r+(i?".":"#")+p,e.forced),d=!c&&a&&Nv(a,p),h=s[p],d&&(e.dontCallGetSet?(g=l1(a,p),v=g&&g.value):v=a[p]),f=d&&v?v:t[p],!(!c&&!o&&typeof h==typeof f)&&(e.bind&&d?_=u1(f,Oi):e.wrap&&d?_=d1(f):o&&s1(f)?_=a1(f):_=f,(e.sham||f&&f.sham||h&&h.sham)&&En(_,"sham",!0),En(s,p,_),o&&(u=r+"Prototype",Nv(In,u)||En(In,u,{}),En(In[u],p,f),e.real&&l&&(c||!l[p])&&En(l,p,f)))}});var Lv=m((r6,qv)=>{"use strict";var p1=Math.ceil,f1=Math.floor;qv.exports=Math.trunc||function(t){var r=+t;return(r>0?f1:p1)(r)}});var Pi=m((n6,Mv)=>{"use strict";var h1=Lv();Mv.exports=function(e){var t=+e;return t!==t||t===0?0:h1(t)}});var Iu=m((i6,Uv)=>{"use strict";var m1=Pi(),g1=Math.min;Uv.exports=function(e){var t=m1(e);return t>0?g1(t,9007199254740991):0}});var Sn=m((o6,Fv)=>{"use strict";var v1=Iu();Fv.exports=function(e){return v1(e.length)}});var Ni=m((a6,jv)=>{"use strict";var y1=er();jv.exports=Array.isArray||function(t){return y1(t)==="Array"}});var Na=m((s6,Bv)=>{"use strict";var _1=Be(),b1=_1("toStringTag"),Gv={};Gv[b1]="z";Bv.exports=String(Gv)==="[object z]"});var kn=m((l6,Jv)=>{"use strict";var w1=Na(),I1=qe(),Da=er(),E1=Be(),S1=E1("toStringTag"),k1=Object,A1=Da(function(){return arguments}())==="Arguments",C1=function(e,t){try{return e[t]}catch(r){}};Jv.exports=w1?Da:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=C1(t=k1(e),S1))=="string"?r:A1?Da(t):(n=Da(t))==="Object"&&I1(t.callee)?"Arguments":n}});var $v=m((c6,Hv)=>{"use strict";var x1=Ie(),T1=qe(),Eu=xi(),R1=x1(Function.toString);T1(Eu.inspectSource)||(Eu.inspectSource=function(e){return R1(e)});Hv.exports=Eu.inspectSource});var ku=m((u6,Yv)=>{"use strict";var O1=Ie(),P1=fe(),Vv=qe(),N1=kn(),D1=yn(),q1=$v(),Wv=function(){},zv=D1("Reflect","construct"),Su=/^\s*(?:class|function)\b/,L1=O1(Su.exec),M1=!Su.test(Wv),Di=function(t){if(!Vv(t))return!1;try{return zv(Wv,[],t),!0}catch(r){return!1}},Kv=function(t){if(!Vv(t))return!1;switch(N1(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return M1||!!L1(Su,q1(t))}catch(r){return!0}};Kv.sham=!0;Yv.exports=!zv||P1(function(){var e;return Di(Di.call)||!Di(Object)||!Di(function(){e=!0})||e})?Kv:Di});var ey=m((d6,Zv)=>{"use strict";var Qv=Ni(),U1=ku(),F1=xe(),j1=Be(),G1=j1("species"),Xv=Array;Zv.exports=function(e){var t;return Qv(e)&&(t=e.constructor,U1(t)&&(t===Xv||Qv(t.prototype))?t=void 0:F1(t)&&(t=t[G1],t===null&&(t=void 0))),t===void 0?Xv:t}});var Au=m((p6,ty)=>{"use strict";var B1=ey();ty.exports=function(e,t){return new(B1(e))(t===0?0:t)}});var Ar=m((f6,ny)=>{"use strict";var J1=Ri(),H1=Ie(),$1=Aa(),V1=bn(),W1=Sn(),z1=Au(),ry=H1([].push),kr=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=V1(l),f=$1(p),h=W1(f),v=J1(c,d),_=0,g=u||z1,w=t?g(l,h):r||a?g(l,0):void 0,S,C;h>_;_++)if((s||_ in f)&&(S=f[_],C=v(S,_,p),e))if(t)w[_]=C;else if(C)switch(e){case 3:return!0;case 5:return S;case 6:return _;case 2:ry(w,S)}else switch(e){case 4:return!1;case 7:ry(w,S)}return o?-1:n||i?i:w}};ny.exports={forEach:kr(0),map:kr(1),filter:kr(2),some:kr(3),every:kr(4),find:kr(5),findIndex:kr(6),filterReject:kr(7)}});var qi=m((h6,iy)=>{"use strict";var K1=fe(),Y1=Be(),Q1=Ta(),X1=Y1("species");iy.exports=function(e){return Q1>=51||!K1(function(){var t=[],r=t.constructor={};return r[X1]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var oy=m(()=>{"use strict";var Z1=Z(),eN=Ar().filter,tN=qi(),rN=tN("filter");Z1({target:"Array",proto:!0,forced:!rN},{filter:function(t){return eN(this,t,arguments.length>1?arguments[1]:void 0)}})});var _t=m((v6,ay)=>{"use strict";var nN=he(),iN=Lt();ay.exports=function(e,t){var r=iN[e+"Prototype"],n=r&&r[t];if(n)return n;var i=nN[e],o=i&&i.prototype;return o&&o[t]}});var ly=m((y6,sy)=>{"use strict";oy();var oN=_t();sy.exports=oN("Array","filter")});var uy=m((_6,cy)=>{"use strict";var aN=Qe(),sN=ly(),Cu=Array.prototype;cy.exports=function(e){var t=e.filter;return e===Cu||aN(Cu,e)&&t===Cu.filter?sN:t}});var py=m((b6,dy)=>{"use strict";var lN=uy();dy.exports=lN});var hy=m((w6,fy)=>{fy.exports=py()});var Li=m((I6,my)=>{"use strict";var cN=fe();my.exports=function(e,t){var r=[][e];return!!r&&cN(function(){r.call(null,t||function(){return 1},1)})}});var gy=m(()=>{"use strict";var uN=Z(),dN=Ar().every,pN=Li(),fN=pN("every");uN({target:"Array",proto:!0,forced:!fN},{every:function(t){return dN(this,t,arguments.length>1?arguments[1]:void 0)}})});var yy=m((k6,vy)=>{"use strict";gy();var hN=_t();vy.exports=hN("Array","every")});var by=m((A6,_y)=>{"use strict";var mN=Qe(),gN=yy(),xu=Array.prototype;_y.exports=function(e){var t=e.every;return e===xu||mN(xu,e)&&t===xu.every?gN:t}});var Iy=m((C6,wy)=>{"use strict";var vN=by();wy.exports=vN});var Sy=m((x6,Ey)=>{Ey.exports=Iy()});var Ay=m((T6,ky)=>{"use strict";var yN=Ar().forEach,_N=Li(),bN=_N("forEach");ky.exports=bN?[].forEach:function(t){return yN(this,t,arguments.length>1?arguments[1]:void 0)}});var xy=m(()=>{"use strict";var wN=Z(),Cy=Ay();wN({target:"Array",proto:!0,forced:[].forEach!==Cy},{forEach:Cy})});var Ry=m((P6,Ty)=>{"use strict";xy();var IN=_t();Ty.exports=IN("Array","forEach")});var Py=m((N6,Oy)=>{"use strict";var EN=Ry();Oy.exports=EN});var Ny=m(()=>{});var qy=m((L6,Dy)=>{"use strict";var SN=kn(),kN=ut(),AN=Qe(),CN=Py();Ny();var Tu=Array.prototype,xN={DOMTokenList:!0,NodeList:!0};Dy.exports=function(e){var t=e.forEach;return e===Tu||AN(Tu,e)&&t===Tu.forEach||kN(xN,SN(e))?CN:t}});var My=m((M6,Ly)=>{Ly.exports=qy()});var Fy=m((U6,Uy)=>{"use strict";var TN=TypeError,RN=9007199254740991;Uy.exports=function(e){if(e>RN)throw TN("Maximum allowed index exceeded");return e}});var Ru=m((F6,jy)=>{"use strict";var ON=Xe(),PN=rr(),NN=Ai();jy.exports=function(e,t,r){ON?PN.f(e,t,NN(0,r)):e[t]=r}});var Hy=m(()=>{"use strict";var DN=Z(),qN=fe(),LN=Ni(),MN=xe(),UN=bn(),FN=Sn(),Gy=Fy(),By=Ru(),jN=Au(),GN=qi(),BN=Be(),JN=Ta(),Jy=BN("isConcatSpreadable"),HN=JN>=51||!qN(function(){var e=[];return e[Jy]=!1,e.concat()[0]!==e}),$N=function(e){if(!MN(e))return!1;var t=e[Jy];return t!==void 0?!!t:LN(e)},VN=!HN||!GN("concat");DN({target:"Array",proto:!0,arity:1,forced:VN},{concat:function(t){var r=UN(this),n=jN(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],$N(c))for(l=FN(c),Gy(i+l),a=0;a<l;a++,i++)a in c&&By(n,i,c[a]);else Gy(i+1),By(n,i++,c);return n.length=i,n}})});var Vy=m((B6,$y)=>{"use strict";Hy();var WN=_t();$y.exports=WN("Array","concat")});var zy=m((J6,Wy)=>{"use strict";var zN=Qe(),KN=Vy(),Ou=Array.prototype;Wy.exports=function(e){var t=e.concat;return e===Ou||zN(Ou,e)&&t===Ou.concat?KN:t}});var Yy=m((H6,Ky)=>{"use strict";var YN=zy();Ky.exports=YN});var Xy=m(($6,Qy)=>{Qy.exports=Yy()});var Zy=m(()=>{"use strict";var QN=Z(),XN=Ar().some,ZN=Li(),eD=ZN("some");QN({target:"Array",proto:!0,forced:!eD},{some:function(t){return XN(this,t,arguments.length>1?arguments[1]:void 0)}})});var t_=m((z6,e_)=>{"use strict";Zy();var tD=_t();e_.exports=tD("Array","some")});var n_=m((K6,r_)=>{"use strict";var rD=Qe(),nD=t_(),Pu=Array.prototype;r_.exports=function(e){var t=e.some;return e===Pu||rD(Pu,e)&&t===Pu.some?nD:t}});var o_=m((Y6,i_)=>{"use strict";var iD=n_();i_.exports=iD});var s_=m((Q6,a_)=>{a_.exports=o_()});var c_=m((X6,l_)=>{"use strict";var Mi=he(),oD=Ca(),aD=er(),qa=function(e){return oD.slice(0,e.length)===e};l_.exports=function(){return qa("Bun/")?"BUN":qa("Cloudflare-Workers")?"CLOUDFLARE":qa("Deno/")?"DENO":qa("Node.js/")?"NODE":Mi.Bun&&typeof Bun.version=="string"?"BUN":Mi.Deno&&typeof Deno.version=="object"?"DENO":aD(Mi.process)==="process"?"NODE":Mi.window&&Mi.document?"BROWSER":"REST"}()});var Ui=m((Z6,u_)=>{"use strict";var sD=Ie();u_.exports=sD([].slice)});var p_=m((e8,d_)=>{"use strict";var lD=TypeError;d_.exports=function(e,t){if(e<t)throw new lD("Not enough arguments");return e}});var Nu=m((t8,h_)=>{"use strict";var f_=he(),cD=Qc(),uD=qe(),dD=c_(),pD=Ca(),fD=Ui(),hD=p_(),mD=f_.Function,gD=/MSIE .\./.test(pD)||dD==="BUN"&&function(){var e=f_.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();h_.exports=function(e,t){var r=t?2:1;return gD?function(n,i){var o=hD(arguments.length,1)>r,a=uD(n)?n:mD(n),s=o?fD(arguments,r):[],l=o?function(){cD(a,this,s)}:a;return t?e(l,i):e(l)}:e}});var v_=m(()=>{"use strict";var vD=Z(),g_=he(),yD=Nu(),m_=yD(g_.setInterval,!0);vD({global:!0,bind:!0,forced:g_.setInterval!==m_},{setInterval:m_})});var b_=m(()=>{"use strict";var _D=Z(),__=he(),bD=Nu(),y_=bD(__.setTimeout,!0);_D({global:!0,bind:!0,forced:__.setTimeout!==y_},{setTimeout:y_})});var w_=m(()=>{"use strict";v_();b_()});var E_=m((l8,I_)=>{"use strict";w_();var wD=Lt();I_.exports=wD.setTimeout});var k_=m((c8,S_)=>{S_.exports=E_()});function ji(e,t){ge.__h&&ge.__h(oe,e,Fi||t),Fi=0;var r=oe.__H||(oe.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Ma(e){return Fi=1,q_(L_,e)}function q_(e,t,r){var n=ji(Xr++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):L_(void 0,t),function(s){var l=n.__N?n.__N[0]:n.__[0],c=n.t(l,s);l!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=oe,!oe.__f)){var i=function(s,l,c){if(!n.__c.__H)return!0;var d=n.__c.__H.__.filter(function(p){return!!p.__c});if(d.every(function(p){return!p.__N}))return!o||o.call(this,s,l,c);var u=n.__c.props!==s;return d.forEach(function(p){if(p.__N){var f=p.__[0];p.__=p.__N,p.__N=void 0,f!==p.__[0]&&(u=!0)}}),o&&o.call(this,s,l,c)||u};oe.__f=!0;var o=oe.shouldComponentUpdate,a=oe.componentWillUpdate;oe.componentWillUpdate=function(s,l,c){if(this.__e){var d=o;o=void 0,i(s,l,c),o=d}a&&a.call(this,s,l,c)},oe.shouldComponentUpdate=i}return n.__N||n.__}function Gi(e,t){var r=ji(Xr++,3);!ge.__s&&Lu(r.__H,t)&&(r.__=e,r.u=t,oe.__H.__h.push(r))}function An(e,t){var r=ji(Xr++,4);!ge.__s&&Lu(r.__H,t)&&(r.__=e,r.u=t,oe.__h.push(r))}function Bi(e){return Fi=5,Ji(function(){return{current:e}},[])}function Ji(e,t){var r=ji(Xr++,7);return Lu(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Cn(e,t){return Fi=8,Ji(function(){return e},t)}function xn(e){var t=oe.context[e.__c],r=ji(Xr++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(oe)),t.props.value):e.__}function ID(){for(var e;e=D_.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(La),e.__H.__h.forEach(qu),e.__H.__h=[]}catch(t){e.__H.__h=[],ge.__e(t,e.__v)}}function ED(e){var t,r=function(){clearTimeout(n),N_&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);N_&&(t=requestAnimationFrame(r))}function La(e){var t=oe,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),oe=t}function qu(e){var t=oe;e.__c=e.__(),oe=t}function Lu(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function L_(e,t){return typeof t=="function"?t(e):t}var Xr,oe,Du,A_,Fi,D_,ge,C_,x_,T_,R_,O_,P_,N_,Mu=A(()=>{gn();Fi=0,D_=[],ge=N,C_=ge.__b,x_=ge.__r,T_=ge.diffed,R_=ge.__c,O_=ge.unmount,P_=ge.__;ge.__b=function(e){oe=null,C_&&C_(e)},ge.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),P_&&P_(e,t)},ge.__r=function(e){x_&&x_(e),Xr=0;var t=(oe=e.__c).__H;t&&(Du===oe?(t.__h=[],oe.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(La),t.__h.forEach(qu),t.__h=[],Xr=0)),Du=oe},ge.diffed=function(e){T_&&T_(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(D_.push(t)!==1&&A_===ge.requestAnimationFrame||((A_=ge.requestAnimationFrame)||ED)(ID)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Du=oe=null},ge.__c=function(e,t){t.some(function(r){try{r.__h.forEach(La),r.__h=r.__h.filter(function(n){return!n.__||qu(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],ge.__e(n,r.__v)}}),R_&&R_(e,t)},ge.unmount=function(e){O_&&O_(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{La(n)}catch(i){t=i}}),r.__H=void 0,t&&ge.__e(t,r.__v))};N_=typeof requestAnimationFrame=="function"});function V_(e,t){for(var r in t)e[r]=t[r];return e}function Fu(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 M_(e,t){this.props=e,this.context=t}function Gu(e,t){function r(i){var o=this.props.ref,a=o==i.ref;return!a&&o&&(o.call?o(null):o.current=null),t?!t(this.props,i)||!a:Fu(this.props,i)}function n(i){return this.shouldComponentUpdate=r,Ge(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function Bu(e){function t(r){var n=V_({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=SD,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=V_({},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 z_(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return z_(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 Uu(){this.__u=0,this.o=null,this.__b=null}function K_(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ua(){this.i=null,this.l=null}function Ju(e,t,r){return t.__k==null&&(t.textContent=""),Er(e,t),typeof r=="function"&&r(),e?e.__c:null}function PD(){}function ND(){return this.cancelBubble}function DD(){return this.defaultPrevented}var ju,U_,SD,kD,F_,j_,AD,CD,xD,TD,RD,OD,G_,Y_,qD,B_,J_,H_,Fa=A(()=>{gn();gn();Mu();Mu();ju=An;(M_.prototype=new ct).isPureReactComponent=!0,M_.prototype.shouldComponentUpdate=function(e,t){return Fu(this.props,e)||Fu(this.state,t)};U_=N.__b;N.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),U_&&U_(e)};SD=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;kD=N.__e;N.__e=function(e,t,r,n){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),i.__c(e,t)}kD(e,t,r,n)};F_=N.unmount;N.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),F_&&F_(e)},(Uu.prototype=new ct).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=K_(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]=z_(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)},Uu.prototype.componentWillUnmount=function(){this.o=[]},Uu.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&&Ge(De,null,e.fallback);return i&&(i.__u&=-33),[Ge(De,null,t.__a?null:e.children),i]};j_=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]}};(Ua.prototype=new ct).__a=function(e){var t=this,r=K_(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),j_(t,e,n)):i()};r?r(o):o()}},Ua.prototype.render=function(e){this.i=null,this.l=new Map;var t=Ei(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},Ua.prototype.componentDidUpdate=Ua.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){j_(e,r,t)})};AD=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,CD=/^(?: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]/,xD=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,TD=/[A-Z0-9]/g,RD=typeof document!="undefined",OD=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};ct.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ct.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});G_=N.event;N.event=function(e){return G_&&(e=G_(e)),e.persist=PD,e.isPropagationStopped=ND,e.isDefaultPrevented=DD,e.nativeEvent=e};qD={enumerable:!1,configurable:!0,get:function(){return this.class}},B_=N.vnode;N.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,n=t.type,i={},o=n.indexOf("-")===-1;for(var a in r){var s=r[a];if(!(a==="value"&&"defaultValue"in r&&s==null||RD&&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"||OD(r.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":xD.test(a)&&(a=l):l=a="oninput":o&&CD.test(a)?a=a.replace(TD,"-$&").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=Ei(r.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=Ei(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",qD)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=AD,B_&&B_(e)};J_=N.__r;N.__r=function(e){J_&&J_(e),Y_=e.__c};H_=N.diffed;N.diffed=function(e){H_&&H_(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),Y_=null}});var $u=m(()=>{"use strict";var MD=Z(),Hu=he();MD({global:!0,forced:Hu.globalThis!==Hu},{globalThis:Hu})});var Q_=m(()=>{"use strict";$u()});var Z_=m((k8,X_)=>{"use strict";$u();X_.exports=he()});var tb=m((A8,eb)=>{"use strict";var UD=Z_();eb.exports=UD});var nb=m((C8,rb)=>{"use strict";var FD=tb();rb.exports=FD});var ob=m((x8,ib)=>{"use strict";Q_();var jD=nb();ib.exports=jD});var sb=m((T8,ab)=>{"use strict";ab.exports=ob()});var cb=m((R8,lb)=>{lb.exports=sb()});var ub=m(()=>{"use strict";var GD=Z(),BD=Ni();GD({target:"Array",stat:!0},{isArray:BD})});var pb=m((N8,db)=>{"use strict";ub();var JD=Lt();db.exports=JD.Array.isArray});var hb=m((D8,fb)=>{"use strict";var HD=pb();fb.exports=HD});var gb=m((q8,mb)=>{mb.exports=hb()});var yb=m((L8,vb)=>{"use strict";vb.exports=function(){}});var Zr=m((M8,_b)=>{"use strict";_b.exports={}});var Vu=m((U8,wb)=>{"use strict";var $D=he(),VD=qe(),bb=$D.WeakMap;wb.exports=VD(bb)&&/native code/.test(String(bb))});var ja=m((F8,Eb)=>{"use strict";var WD=uu(),zD=Oa(),Ib=WD("keys");Eb.exports=function(e){return Ib[e]||(Ib[e]=zD(e))}});var Hi=m((j8,Sb)=>{"use strict";Sb.exports={}});var tn=m((G8,Cb)=>{"use strict";var KD=Vu(),Ab=he(),YD=xe(),QD=Qr(),Wu=ut(),zu=xi(),XD=ja(),ZD=Hi(),kb="Object already initialized",Ku=Ab.TypeError,eq=Ab.WeakMap,Ga,$i,Ba,tq=function(e){return Ba(e)?$i(e):Ga(e,{})},rq=function(e){return function(t){var r;if(!YD(t)||(r=$i(t)).type!==e)throw new Ku("Incompatible receiver, "+e+" required");return r}};KD||zu.state?(kt=zu.state||(zu.state=new eq),kt.get=kt.get,kt.has=kt.has,kt.set=kt.set,Ga=function(e,t){if(kt.has(e))throw new Ku(kb);return t.facade=e,kt.set(e,t),t},$i=function(e){return kt.get(e)||{}},Ba=function(e){return kt.has(e)}):(en=XD("state"),ZD[en]=!0,Ga=function(e,t){if(Wu(e,en))throw new Ku(kb);return t.facade=e,QD(e,en,t),t},$i=function(e){return Wu(e,en)?e[en]:{}},Ba=function(e){return Wu(e,en)});var kt,en;Cb.exports={set:Ga,get:$i,has:Ba,enforce:tq,getterFor:rq}});var Xu=m((B8,Tb)=>{"use strict";var Yu=Xe(),nq=ut(),xb=Function.prototype,iq=Yu&&Object.getOwnPropertyDescriptor,Qu=nq(xb,"name"),oq=Qu&&(function(){}).name==="something",aq=Qu&&(!Yu||Yu&&iq(xb,"name").configurable);Tb.exports={EXISTS:Qu,PROPER:oq,CONFIGURABLE:aq}});var Zu=m((J8,Rb)=>{"use strict";var sq=Pi(),lq=Math.max,cq=Math.min;Rb.exports=function(e,t){var r=sq(e);return r<0?lq(r+t,0):cq(r,t)}});var ed=m((H8,Pb)=>{"use strict";var uq=Sr(),dq=Zu(),pq=Sn(),Ob=function(e){return function(t,r,n){var i=uq(t),o=pq(i);if(o===0)return!e&&-1;var a=dq(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}};Pb.exports={includes:Ob(!0),indexOf:Ob(!1)}});var rd=m(($8,Db)=>{"use strict";var fq=Ie(),td=ut(),hq=Sr(),mq=ed().indexOf,gq=Hi(),Nb=fq([].push);Db.exports=function(e,t){var r=hq(e),n=0,i=[],o;for(o in r)!td(gq,o)&&td(r,o)&&Nb(i,o);for(;t.length>n;)td(r,o=t[n++])&&(~mq(i,o)||Nb(i,o));return i}});var Ja=m((V8,qb)=>{"use strict";qb.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var nd=m((W8,Lb)=>{"use strict";var vq=rd(),yq=Ja();Lb.exports=Object.keys||function(t){return vq(t,yq)}});var Ub=m(Mb=>{"use strict";var _q=Xe(),bq=vu(),wq=rr(),Iq=tr(),Eq=Sr(),Sq=nd();Mb.f=_q&&!bq?Object.defineProperties:function(t,r){Iq(t);for(var n=Eq(r),i=Sq(r),o=i.length,a=0,s;o>a;)wq.f(t,s=i[a++],n[s]);return t}});var jb=m((K8,Fb)=>{"use strict";var kq=yn();Fb.exports=kq("document","documentElement")});var Vi=m((Y8,Wb)=>{"use strict";var Aq=tr(),Cq=Ub(),Gb=Ja(),xq=Hi(),Tq=jb(),Rq=hu(),Oq=ja(),Bb=">",Jb="<",od="prototype",ad="script",$b=Oq("IE_PROTO"),id=function(){},Vb=function(e){return Jb+ad+Bb+e+Jb+"/"+ad+Bb},Hb=function(e){e.write(Vb("")),e.close();var t=e.parentWindow.Object;return e=null,t},Pq=function(){var e=Rq("iframe"),t="java"+ad+":",r;return e.style.display="none",Tq.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(Vb("document.F=Object")),r.close(),r.F},Ha,$a=function(){try{Ha=new ActiveXObject("htmlfile")}catch(t){}$a=typeof document!="undefined"?document.domain&&Ha?Hb(Ha):Pq():Hb(Ha);for(var e=Gb.length;e--;)delete $a[od][Gb[e]];return $a()};xq[$b]=!0;Wb.exports=Object.create||function(t,r){var n;return t!==null?(id[od]=Aq(t),n=new id,id[od]=null,n[$b]=t):n=$a(),r===void 0?n:Cq.f(n,r)}});var Kb=m((Q8,zb)=>{"use strict";var Nq=fe();zb.exports=!Nq(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var ld=m((X8,Qb)=>{"use strict";var Dq=ut(),qq=qe(),Lq=bn(),Mq=ja(),Uq=Kb(),Yb=Mq("IE_PROTO"),sd=Object,Fq=sd.prototype;Qb.exports=Uq?sd.getPrototypeOf:function(e){var t=Lq(e);if(Dq(t,Yb))return t[Yb];var r=t.constructor;return qq(r)&&t instanceof r?r.prototype:t instanceof sd?Fq:null}});var Va=m((Z8,Xb)=>{"use strict";var jq=Qr();Xb.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:jq(e,t,r),e}});var pd=m((eK,tw)=>{"use strict";var Gq=fe(),Bq=qe(),Jq=xe(),Hq=Vi(),Zb=ld(),$q=Va(),Vq=Be(),Wq=_n(),dd=Vq("iterator"),ew=!1,nr,cd,ud;[].keys&&(ud=[].keys(),"next"in ud?(cd=Zb(Zb(ud)),cd!==Object.prototype&&(nr=cd)):ew=!0);var zq=!Jq(nr)||Gq(function(){var e={};return nr[dd].call(e)!==e});zq?nr={}:Wq&&(nr=Hq(nr));Bq(nr[dd])||$q(nr,dd,function(){return this});tw.exports={IteratorPrototype:nr,BUGGY_SAFARI_ITERATORS:ew}});var nw=m((tK,rw)=>{"use strict";var Kq=Na(),Yq=kn();rw.exports=Kq?{}.toString:function(){return"[object "+Yq(this)+"]"}});var Wi=m((rK,ow)=>{"use strict";var Qq=Na(),Xq=rr().f,Zq=Qr(),eL=ut(),tL=nw(),rL=Be(),iw=rL("toStringTag");ow.exports=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(eL(i,iw)||Xq(i,iw,{configurable:!0,value:t}),n&&!Qq&&Zq(i,"toString",tL))}});var sw=m((nK,aw)=>{"use strict";var nL=pd().IteratorPrototype,iL=Vi(),oL=Ai(),aL=Wi(),sL=Zr(),lL=function(){return this};aw.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=iL(nL,{next:oL(+!n,r)}),aL(e,i,!1,!0),sL[i]=lL,e}});var cw=m((iK,lw)=>{"use strict";var cL=Ie(),uL=Yr();lw.exports=function(e,t,r){try{return cL(uL(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var dw=m((oK,uw)=>{"use strict";var dL=xe();uw.exports=function(e){return dL(e)||e===null}});var fw=m((aK,pw)=>{"use strict";var pL=dw(),fL=String,hL=TypeError;pw.exports=function(e){if(pL(e))return e;throw new hL("Can't set "+fL(e)+" as a prototype")}});var mw=m((sK,hw)=>{"use strict";var mL=cw(),gL=xe(),vL=Kr(),yL=fw();hw.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=mL(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return vL(i),yL(o),gL(i)&&(e?r(i,o):i.__proto__=o),i}}():void 0)});var Ka=m((lK,kw)=>{"use strict";var _L=Z(),bL=Et(),Wa=_n(),Ew=Xu(),wL=qe(),IL=sw(),gw=ld(),vw=mw(),EL=Wi(),SL=Qr(),fd=Va(),kL=Be(),yw=Zr(),Sw=pd(),AL=Ew.PROPER,CL=Ew.CONFIGURABLE,_w=Sw.IteratorPrototype,za=Sw.BUGGY_SAFARI_ITERATORS,zi=kL("iterator"),bw="keys",Ki="values",ww="entries",Iw=function(){return this};kw.exports=function(e,t,r,n,i,o,a){IL(r,t,n);var s=function(g){if(g===i&&p)return p;if(!za&&g&&g in d)return d[g];switch(g){case bw:return function(){return new r(this,g)};case Ki:return function(){return new r(this,g)};case ww:return function(){return new r(this,g)}}return function(){return new r(this)}},l=t+" Iterator",c=!1,d=e.prototype,u=d[zi]||d["@@iterator"]||i&&d[i],p=!za&&u||s(i),f=t==="Array"&&d.entries||u,h,v,_;if(f&&(h=gw(f.call(new e)),h!==Object.prototype&&h.next&&(!Wa&&gw(h)!==_w&&(vw?vw(h,_w):wL(h[zi])||fd(h,zi,Iw)),EL(h,l,!0,!0),Wa&&(yw[l]=Iw))),AL&&i===Ki&&u&&u.name!==Ki&&(!Wa&&CL?SL(d,"name",Ki):(c=!0,p=function(){return bL(u,this)})),i)if(v={values:s(Ki),keys:o?p:s(bw),entries:s(ww)},a)for(_ in v)(za||c||!(_ in d))&&fd(d,_,v[_]);else _L({target:t,proto:!0,forced:za||c},v);return(!Wa||a)&&d[zi]!==p&&fd(d,zi,p,{name:i}),yw[t]=p,v}});var Ya=m((cK,Aw)=>{"use strict";Aw.exports=function(e,t){return{value:e,done:t}}});var Xa=m((uK,Ow)=>{"use strict";var xL=Sr(),hd=yb(),Cw=Zr(),Tw=tn(),TL=rr().f,RL=Ka(),Qa=Ya(),OL=_n(),PL=Xe(),Rw="Array Iterator",NL=Tw.set,DL=Tw.getterFor(Rw);Ow.exports=RL(Array,"Array",function(e,t){NL(this,{type:Rw,target:xL(e),index:0,kind:t})},function(){var e=DL(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,Qa(void 0,!0);switch(e.kind){case"keys":return Qa(r,!1);case"values":return Qa(t[r],!1)}return Qa([r,t[r]],!1)},"values");var xw=Cw.Arguments=Cw.Array;hd("keys");hd("values");hd("entries");if(!OL&&PL&&xw.name!=="values")try{TL(xw,"name",{value:"values"})}catch(e){}});var md=m(()=>{});var gd=m((fK,Pw)=>{"use strict";var qL=fe();Pw.exports=!qL(function(){return Object.isExtensible(Object.preventExtensions({}))})});var Za=m((hK,Nw)=>{"use strict";var LL=Va();Nw.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:LL(e,n,t[n],r);return e}});var vd=m(Dw=>{"use strict";var ML=rd(),UL=Ja(),FL=UL.concat("length","prototype");Dw.f=Object.getOwnPropertyNames||function(t){return ML(t,FL)}});var Uw=m((gK,Mw)=>{"use strict";var jL=er(),GL=Sr(),qw=vd().f,BL=Ui(),Lw=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],JL=function(e){try{return qw(e)}catch(t){return BL(Lw)}};Mw.exports.f=function(t){return Lw&&jL(t)==="Window"?JL(t):qw(GL(t))}});var jw=m((vK,Fw)=>{"use strict";var HL=fe();Fw.exports=HL(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var Jw=m((yK,Bw)=>{"use strict";var $L=fe(),VL=xe(),WL=er(),Gw=jw(),es=Object.isExtensible,zL=$L(function(){es(1)});Bw.exports=zL||Gw?function(t){return!VL(t)||Gw&&WL(t)==="ArrayBuffer"?!1:es?es(t):!0}:es});var Yi=m((_K,Vw)=>{"use strict";var KL=Z(),YL=Ie(),QL=Hi(),XL=xe(),yd=ut(),ZL=rr().f,Hw=vd(),eM=Uw(),_d=Jw(),tM=Oa(),rM=gd(),$w=!1,ir=tM("meta"),nM=0,bd=function(e){ZL(e,ir,{value:{objectID:"O"+nM++,weakData:{}}})},iM=function(e,t){if(!XL(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!yd(e,ir)){if(!_d(e))return"F";if(!t)return"E";bd(e)}return e[ir].objectID},oM=function(e,t){if(!yd(e,ir)){if(!_d(e))return!0;if(!t)return!1;bd(e)}return e[ir].weakData},aM=function(e){return rM&&$w&&_d(e)&&!yd(e,ir)&&bd(e),e},sM=function(){lM.enable=function(){},$w=!0;var e=Hw.f,t=YL([].splice),r={};r[ir]=1,e(r).length&&(Hw.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===ir){t(i,o,1);break}return i},KL({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:eM.f}))},lM=Vw.exports={enable:sM,fastKey:iM,getWeakData:oM,onFreeze:aM};QL[ir]=!0});var zw=m((bK,Ww)=>{"use strict";var cM=Be(),uM=Zr(),dM=cM("iterator"),pM=Array.prototype;Ww.exports=function(e){return e!==void 0&&(uM.Array===e||pM[dM]===e)}});var wd=m((wK,Yw)=>{"use strict";var fM=kn(),Kw=Ra(),hM=zr(),mM=Zr(),gM=Be(),vM=gM("iterator");Yw.exports=function(e){if(!hM(e))return Kw(e,vM)||Kw(e,"@@iterator")||mM[fM(e)]}});var Xw=m((IK,Qw)=>{"use strict";var yM=Et(),_M=Yr(),bM=tr(),wM=Ci(),IM=wd(),EM=TypeError;Qw.exports=function(e,t){var r=arguments.length<2?IM(e):t;if(_M(r))return bM(yM(r,e));throw new EM(wM(e)+" is not iterable")}});var ts=m((EK,eI)=>{"use strict";var SM=Et(),Zw=tr(),kM=Ra();eI.exports=function(e,t,r){var n,i;Zw(e);try{if(n=kM(e,"return"),!n){if(t==="throw")throw r;return r}n=SM(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return Zw(n),r}});var ns=m((SK,iI)=>{"use strict";var AM=Ri(),CM=Et(),xM=tr(),TM=Ci(),RM=zw(),OM=Sn(),tI=Qe(),PM=Xw(),NM=wd(),rI=ts(),DM=TypeError,rs=function(e,t){this.stopped=e,this.result=t},nI=rs.prototype;iI.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=AM(t,n),c,d,u,p,f,h,v,_=function(w){return c&&rI(c,"normal",w),new rs(!0,w)},g=function(w){return i?(xM(w),s?l(w[0],w[1],_):l(w[0],w[1])):s?l(w,_):l(w)};if(o)c=e.iterator;else if(a)c=e;else{if(d=NM(e),!d)throw new DM(TM(e)+" is not iterable");if(RM(d)){for(u=0,p=OM(e);p>u;u++)if(f=g(e[u]),f&&tI(nI,f))return f;return new rs(!1)}c=PM(e,d)}for(h=o?e.next:c.next;!(v=CM(h,c)).done;){try{f=g(v.value)}catch(w){rI(c,"throw",w)}if(typeof f=="object"&&f&&tI(nI,f))return f}return new rs(!1)}});var is=m((kK,oI)=>{"use strict";var qM=Qe(),LM=TypeError;oI.exports=function(e,t){if(qM(t,e))return e;throw new LM("Incorrect invocation")}});var Id=m((AK,sI)=>{"use strict";var MM=Z(),UM=he(),FM=Yi(),jM=fe(),GM=Qr(),BM=ns(),JM=is(),HM=qe(),$M=xe(),VM=zr(),WM=Wi(),zM=rr().f,KM=Ar().forEach,YM=Xe(),aI=tn(),QM=aI.set,XM=aI.getterFor;sI.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=UM[e],s=a&&a.prototype,l={},c;if(!YM||!HM(a)||!(i||s.forEach&&!jM(function(){new a().entries().next()})))c=r.getConstructor(t,e,n,o),FM.enable();else{c=t(function(p,f){QM(JM(p,d),{type:e,collection:new a}),VM(f)||BM(f,p[o],{that:p,AS_ENTRIES:n})});var d=c.prototype,u=XM(e);KM(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(p){var f=p==="add"||p==="set";p in s&&!(i&&p==="clear")&&GM(d,p,function(h,v){var _=u(this).collection;if(!f&&i&&!$M(h))return p==="get"?void 0:!1;var g=_[p](h===0?0:h,v);return f?this:g})}),i||zM(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return WM(c,e,!1,!0),l[e]=c,MM({global:!0,forced:!0},l),i||r.setStrong(c,e,n),c}});var hI=m((CK,fI)=>{"use strict";var ZM=Ie(),lI=Za(),os=Yi().getWeakData,eU=is(),tU=tr(),rU=zr(),Ed=xe(),nU=ns(),uI=Ar(),cI=ut(),dI=tn(),iU=dI.set,oU=dI.getterFor,aU=uI.find,sU=uI.findIndex,lU=ZM([].splice),cU=0,as=function(e){return e.frozen||(e.frozen=new pI)},pI=function(){this.entries=[]},Sd=function(e,t){return aU(e.entries,function(r){return r[0]===t})};pI.prototype={get:function(e){var t=Sd(this,e);if(t)return t[1]},has:function(e){return!!Sd(this,e)},set:function(e,t){var r=Sd(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=sU(this.entries,function(r){return r[0]===e});return~t&&lU(this.entries,t,1),!!~t}};fI.exports={getConstructor:function(e,t,r,n){var i=e(function(l,c){eU(l,o),iU(l,{type:t,id:cU++,frozen:null}),rU(c)||nU(c,l[n],{that:l,AS_ENTRIES:r})}),o=i.prototype,a=oU(t),s=function(l,c,d){var u=a(l),p=os(tU(c),!0);return p===!0?as(u).set(c,d):p[u.id]=d,l};return lI(o,{delete:function(l){var c=a(this);if(!Ed(l))return!1;var d=os(l);return d===!0?as(c).delete(l):d&&cI(d,c.id)&&delete d[c.id]},has:function(c){var d=a(this);if(!Ed(c))return!1;var u=os(c);return u===!0?as(d).has(c):u&&cI(u,d.id)}}),lI(o,r?{get:function(c){var d=a(this);if(Ed(c)){var u=os(c);if(u===!0)return as(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 II=m(()=>{"use strict";var uU=gd(),mI=he(),us=Ie(),gI=Za(),dU=Yi(),pU=Id(),vI=hI(),ss=xe(),ls=tn().enforce,fU=fe(),hU=Vu(),Zi=Object,mU=Array.isArray,cs=Zi.isExtensible,yI=Zi.isFrozen,gU=Zi.isSealed,_I=Zi.freeze,vU=Zi.seal,yU=!mI.ActiveXObject&&"ActiveXObject"in mI,Qi,bI=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},wI=pU("WeakMap",bI,vI),Tn=wI.prototype,ds=us(Tn.set),_U=function(){return uU&&fU(function(){var e=_I([]);return ds(new wI,e,1),!yI(e)})};hU&&(yU?(Qi=vI.getConstructor(bI,"WeakMap",!0),dU.enable(),kd=us(Tn.delete),Xi=us(Tn.has),Ad=us(Tn.get),gI(Tn,{delete:function(e){if(ss(e)&&!cs(e)){var t=ls(this);return t.frozen||(t.frozen=new Qi),kd(this,e)||t.frozen.delete(e)}return kd(this,e)},has:function(t){if(ss(t)&&!cs(t)){var r=ls(this);return r.frozen||(r.frozen=new Qi),Xi(this,t)||r.frozen.has(t)}return Xi(this,t)},get:function(t){if(ss(t)&&!cs(t)){var r=ls(this);return r.frozen||(r.frozen=new Qi),Xi(this,t)?Ad(this,t):r.frozen.get(t)}return Ad(this,t)},set:function(t,r){if(ss(t)&&!cs(t)){var n=ls(this);n.frozen||(n.frozen=new Qi),Xi(this,t)?ds(this,t,r):n.frozen.set(t,r)}else ds(this,t,r);return this}})):_U()&&gI(Tn,{set:function(t,r){var n;return mU(t)&&(yI(t)?n=_I:gU(t)&&(n=vU)),ds(this,t,r),n&&n(t),this}}));var kd,Xi,Ad});var EI=m(()=>{"use strict";II()});var kI=m((PK,SI)=>{"use strict";Xa();md();EI();var bU=Lt();SI.exports=bU.WeakMap});var CI=m((NK,AI)=>{"use strict";AI.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 Cd=m(()=>{"use strict";Xa();var wU=CI(),IU=he(),EU=Wi(),xI=Zr();for(ps in wU)EU(IU[ps],ps),xI[ps]=xI.Array;var ps});var RI=m((LK,TI)=>{"use strict";var SU=kI();Cd();TI.exports=SU});var PI=m((MK,OI)=>{OI.exports=RI()});var DI=m(()=>{"use strict";var kU=Z(),AU=ki(),CU=ed().indexOf,xU=Li(),xd=AU([].indexOf),NI=!!xd&&1/xd([1],1,-0)<0,TU=NI||!xU("indexOf");kU({target:"Array",proto:!0,forced:TU},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return NI?xd(this,t,r)||0:CU(this,t,r)}})});var LI=m((jK,qI)=>{"use strict";DI();var RU=_t();qI.exports=RU("Array","indexOf")});var UI=m((GK,MI)=>{"use strict";var OU=Qe(),PU=LI(),Td=Array.prototype;MI.exports=function(e){var t=e.indexOf;return e===Td||OU(Td,e)&&t===Td.indexOf?PU:t}});var jI=m((BK,FI)=>{"use strict";var NU=UI();FI.exports=NU});var BI=m((JK,GI)=>{GI.exports=jI()});var JI=m(()=>{"use strict";var DU=Z(),qU=Ar().map,LU=qi(),MU=LU("map");DU({target:"Array",proto:!0,forced:!MU},{map:function(t){return qU(this,t,arguments.length>1?arguments[1]:void 0)}})});var $I=m((VK,HI)=>{"use strict";JI();var UU=_t();HI.exports=UU("Array","map")});var WI=m((WK,VI)=>{"use strict";var FU=Qe(),jU=$I(),Rd=Array.prototype;VI.exports=function(e){var t=e.map;return e===Rd||FU(Rd,e)&&t===Rd.map?jU:t}});var KI=m((zK,zI)=>{"use strict";var GU=WI();zI.exports=GU});var QI=m((KK,YI)=>{YI.exports=KI()});var XI=m(()=>{"use strict";var BU=Z(),JU=Xe(),HU=Vi();BU({target:"Object",stat:!0,sham:!JU},{create:HU})});var e0=m((XK,ZI)=>{"use strict";XI();var $U=Lt(),VU=$U.Object;ZI.exports=function(t,r){return VU.create(t,r)}});var r0=m((ZK,t0)=>{"use strict";var WU=e0();t0.exports=WU});var i0=m((e7,n0)=>{n0.exports=r0()});var Od=m((t7,o0)=>{"use strict";var zU=rr();o0.exports=function(e,t,r){return zU.f(e,t,r)}});var l0=m((r7,s0)=>{"use strict";var KU=yn(),YU=Od(),QU=Be(),XU=Xe(),a0=QU("species");s0.exports=function(e){var t=KU(e);XU&&t&&!t[a0]&&YU(t,a0,{configurable:!0,get:function(){return this}})}});var m0=m((n7,h0)=>{"use strict";var c0=Vi(),ZU=Od(),u0=Za(),eF=Ri(),tF=is(),rF=zr(),nF=ns(),iF=Ka(),fs=Ya(),oF=l0(),eo=Xe(),d0=Yi().fastKey,f0=tn(),p0=f0.set,Pd=f0.getterFor;h0.exports={getConstructor:function(e,t,r,n){var i=e(function(c,d){tF(c,o),p0(c,{type:t,index:c0(null),first:null,last:null,size:0}),eo||(c.size=0),rF(d)||nF(d,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=Pd(t),s=function(c,d,u){var p=a(c),f=l(c,d),h,v;return f?f.value=u:(p.last=f={index:v=d0(d,!0),key:d,value:u,previous:h=p.last,next:null,removed:!1},p.first||(p.first=f),h&&(h.next=f),eo?p.size++:c.size++,v!=="F"&&(p.index[v]=f)),c},l=function(c,d){var u=a(c),p=d0(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=c0(null),eo?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),eo?u.size--:d.size--}return!!p},forEach:function(d){for(var u=a(this),p=eF(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)}}),eo&&ZU(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=Pd(t),o=Pd(n);iF(e,t,function(a,s){p0(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,fs(void 0,!0)):fs(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},r?"entries":"values",!r,!0),oF(t)}}});var g0=m(()=>{"use strict";var aF=Id(),sF=m0();aF("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},sF)});var v0=m(()=>{"use strict";g0()});var Cr=m((l7,y0)=>{"use strict";var lF=Ci(),cF=TypeError;y0.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 cF(lF(e)+" is not a set")}});var b0=m((c7,_0)=>{"use strict";_0.exports=function(e,t){return t===1?function(r,n){return r[e](n)}:function(r,n,i){return r[e](n,i)}}});var xr=m((u7,I0)=>{"use strict";var uF=yn(),Nd=b0(),w0=uF("Set"),dF=w0.prototype;I0.exports={Set:w0,add:Nd("add",1),has:Nd("has",1),remove:Nd("delete",1),proto:dF}});var Tr=m((d7,E0)=>{"use strict";var pF=Et();E0.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,o,a;!(o=pF(i,n)).done;)if(a=t(o.value),a!==void 0)return a}});var Rn=m((p7,S0)=>{"use strict";var fF=Tr();S0.exports=function(e,t,r){return r?fF(e.keys(),t,!0):e.forEach(t)}});var hs=m((f7,A0)=>{"use strict";var k0=xr(),hF=Rn(),mF=k0.Set,gF=k0.add;A0.exports=function(e){var t=new mF;return hF(e,function(r){gF(t,r)}),t}});var On=m((h7,C0)=>{"use strict";C0.exports=function(e){return e.size}});var T0=m((m7,x0)=>{"use strict";x0.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var Rr=m((g7,q0)=>{"use strict";var R0=Yr(),N0=tr(),O0=Et(),vF=Pi(),yF=T0(),P0="Invalid size",_F=RangeError,bF=TypeError,wF=Math.max,D0=function(e,t){this.set=e,this.size=wF(t,0),this.has=R0(e.has),this.keys=R0(e.keys)};D0.prototype={getIterator:function(){return yF(N0(O0(this.keys,this.set)))},includes:function(e){return O0(this.has,this.set,e)}};q0.exports=function(e){N0(e);var t=+e.size;if(t!==t)throw new bF(P0);var r=vF(t);if(r<0)throw new _F(P0);return new D0(e,r)}});var F0=m((v7,U0)=>{"use strict";var IF=Cr(),M0=xr(),EF=hs(),SF=On(),kF=Rr(),AF=Rn(),CF=Tr(),xF=M0.has,L0=M0.remove;U0.exports=function(t){var r=IF(this),n=kF(t),i=EF(r);return SF(r)<=n.size?AF(r,function(o){n.includes(o)&&L0(i,o)}):CF(n.getIterator(),function(o){xF(r,o)&&L0(i,o)}),i}});var Or=m((y7,j0)=>{"use strict";j0.exports=function(){return!1}});var G0=m(()=>{"use strict";var TF=Z(),RF=F0(),OF=Or(),PF=!OF("difference",function(e){return e.size===0});TF({target:"Set",proto:!0,real:!0,forced:PF},{difference:RF})});var H0=m((w7,J0)=>{"use strict";var NF=Cr(),Dd=xr(),DF=On(),qF=Rr(),LF=Rn(),MF=Tr(),UF=Dd.Set,B0=Dd.add,FF=Dd.has;J0.exports=function(t){var r=NF(this),n=qF(t),i=new UF;return DF(r)>n.size?MF(n.getIterator(),function(o){FF(r,o)&&B0(i,o)}):LF(r,function(o){n.includes(o)&&B0(i,o)}),i}});var $0=m(()=>{"use strict";var jF=Z(),GF=fe(),BF=H0(),JF=Or(),HF=!JF("intersection",function(e){return e.size===2&&e.has(1)&&e.has(2)})||GF(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});jF({target:"Set",proto:!0,real:!0,forced:HF},{intersection:BF})});var W0=m((S7,V0)=>{"use strict";var $F=Cr(),VF=xr().has,WF=On(),zF=Rr(),KF=Rn(),YF=Tr(),QF=ts();V0.exports=function(t){var r=$F(this),n=zF(t);if(WF(r)<=n.size)return KF(r,function(o){if(n.includes(o))return!1},!0)!==!1;var i=n.getIterator();return YF(i,function(o){if(VF(r,o))return QF(i,"normal",!1)})!==!1}});var z0=m(()=>{"use strict";var XF=Z(),ZF=W0(),ej=Or(),tj=!ej("isDisjointFrom",function(e){return!e});XF({target:"Set",proto:!0,real:!0,forced:tj},{isDisjointFrom:ZF})});var Y0=m((C7,K0)=>{"use strict";var rj=Cr(),nj=On(),ij=Rn(),oj=Rr();K0.exports=function(t){var r=rj(this),n=oj(t);return nj(r)>n.size?!1:ij(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var Q0=m(()=>{"use strict";var aj=Z(),sj=Y0(),lj=Or(),cj=!lj("isSubsetOf",function(e){return e});aj({target:"Set",proto:!0,real:!0,forced:cj},{isSubsetOf:sj})});var Z0=m((R7,X0)=>{"use strict";var uj=Cr(),dj=xr().has,pj=On(),fj=Rr(),hj=Tr(),mj=ts();X0.exports=function(t){var r=uj(this),n=fj(t);if(pj(r)<n.size)return!1;var i=n.getIterator();return hj(i,function(o){if(!dj(r,o))return mj(i,"normal",!1)})!==!1}});var eE=m(()=>{"use strict";var gj=Z(),vj=Z0(),yj=Or(),_j=!yj("isSupersetOf",function(e){return!e});gj({target:"Set",proto:!0,real:!0,forced:_j},{isSupersetOf:vj})});var rE=m((N7,tE)=>{"use strict";var bj=Cr(),qd=xr(),wj=hs(),Ij=Rr(),Ej=Tr(),Sj=qd.add,kj=qd.has,Aj=qd.remove;tE.exports=function(t){var r=bj(this),n=Ij(t).getIterator(),i=wj(r);return Ej(n,function(o){kj(r,o)?Aj(i,o):Sj(i,o)}),i}});var nE=m(()=>{"use strict";var Cj=Z(),xj=rE(),Tj=Or();Cj({target:"Set",proto:!0,real:!0,forced:!Tj("symmetricDifference")},{symmetricDifference:xj})});var oE=m((L7,iE)=>{"use strict";var Rj=Cr(),Oj=xr().add,Pj=hs(),Nj=Rr(),Dj=Tr();iE.exports=function(t){var r=Rj(this),n=Nj(t).getIterator(),i=Pj(r);return Dj(n,function(o){Oj(i,o)}),i}});var aE=m(()=>{"use strict";var qj=Z(),Lj=oE(),Mj=Or();qj({target:"Set",proto:!0,real:!0,forced:!Mj("union")},{union:Lj})});var to=m((F7,sE)=>{"use strict";var Uj=kn(),Fj=String;sE.exports=function(e){if(Uj(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return Fj(e)}});var dE=m((j7,uE)=>{"use strict";var Ld=Ie(),jj=Pi(),Gj=to(),Bj=Kr(),Jj=Ld("".charAt),lE=Ld("".charCodeAt),Hj=Ld("".slice),cE=function(e){return function(t,r){var n=Gj(Bj(t)),i=jj(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?Jj(n,i):a:e?Hj(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};uE.exports={codeAt:cE(!1),charAt:cE(!0)}});var mE=m(()=>{"use strict";var $j=dE().charAt,Vj=to(),fE=tn(),Wj=Ka(),pE=Ya(),hE="String Iterator",zj=fE.set,Kj=fE.getterFor(hE);Wj(String,"String",function(e){zj(this,{type:hE,string:Vj(e),index:0})},function(){var t=Kj(this),r=t.string,n=t.index,i;return n>=r.length?pE(void 0,!0):(i=$j(r,n),t.index+=i.length,pE(i,!1))})});var vE=m((J7,gE)=>{"use strict";Xa();md();v0();G0();$0();z0();Q0();eE();nE();aE();mE();var Yj=Lt();gE.exports=Yj.Set});var _E=m((H7,yE)=>{"use strict";var Qj=vE();Cd();yE.exports=Qj});var wE=m(($7,bE)=>{bE.exports=_E()});var EE=m(IE=>{"use strict";IE.f=Object.getOwnPropertySymbols});var CE=m((W7,AE)=>{"use strict";var SE=Xe(),Xj=Ie(),Zj=Et(),eG=fe(),Md=nd(),tG=EE(),rG=Zc(),nG=bn(),iG=Aa(),Pn=Object.assign,kE=Object.defineProperty,oG=Xj([].concat);AE.exports=!Pn||eG(function(){if(SE&&Pn({b:1},Pn(kE({},"a",{enumerable:!0,get:function(){kE(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}),Pn({},e)[r]!==7||Md(Pn({},t)).join("")!==n})?function(t,r){for(var n=nG(t),i=arguments.length,o=1,a=tG.f,s=rG.f;i>o;)for(var l=iG(arguments[o++]),c=a?oG(Md(l),a(l)):Md(l),d=c.length,u=0,p;d>u;)p=c[u++],(!SE||Zj(s,l,p))&&(n[p]=l[p]);return n}:Pn});var TE=m(()=>{"use strict";var aG=Z(),xE=CE();aG({target:"Object",stat:!0,arity:2,forced:Object.assign!==xE},{assign:xE})});var OE=m((Y7,RE)=>{"use strict";TE();var sG=Lt();RE.exports=sG.Object.assign});var NE=m((Q7,PE)=>{"use strict";var lG=OE();PE.exports=lG});var qE=m((X7,DE)=>{DE.exports=NE()});var Ud=m((Z7,LE)=>{"use strict";LE.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 FE=m((eY,UE)=>{"use strict";var cG=Ie(),uG=Kr(),dG=to(),jd=Ud(),ME=cG("".replace),pG=RegExp("^["+jd+"]+"),fG=RegExp("(^|[^"+jd+"])["+jd+"]+$"),Fd=function(e){return function(t){var r=dG(uG(t));return e&1&&(r=ME(r,pG,"")),e&2&&(r=ME(r,fG,"$1")),r}};UE.exports={start:Fd(1),end:Fd(2),trim:Fd(3)}});var JE=m((tY,BE)=>{"use strict";var hG=Xu().PROPER,mG=fe(),jE=Ud(),GE="\u200B\x85\u180E";BE.exports=function(e){return mG(function(){return!!jE[e]()||GE[e]()!==GE||hG&&jE[e].name!==e})}});var HE=m(()=>{"use strict";var gG=Z(),vG=FE().trim,yG=JE();gG({target:"String",proto:!0,forced:yG("trim")},{trim:function(){return vG(this)}})});var VE=m((iY,$E)=>{"use strict";HE();var _G=_t();$E.exports=_G("String","trim")});var zE=m((oY,WE)=>{"use strict";var bG=Qe(),wG=VE(),Gd=String.prototype;WE.exports=function(e){var t=e.trim;return typeof e=="string"||e===Gd||bG(Gd,e)&&t===Gd.trim?wG:t}});var YE=m((aY,KE)=>{"use strict";var IG=zE();KE.exports=IG});var XE=m((sY,QE)=>{QE.exports=YE()});var tS=m(()=>{"use strict";var EG=Z(),ZE=Ni(),SG=ku(),kG=xe(),eS=Zu(),AG=Sn(),CG=Sr(),xG=Ru(),TG=Be(),RG=qi(),OG=Ui(),PG=RG("slice"),NG=TG("species"),Bd=Array,DG=Math.max;EG({target:"Array",proto:!0,forced:!PG},{slice:function(t,r){var n=CG(this),i=AG(n),o=eS(t,i),a=eS(r===void 0?i:r,i),s,l,c;if(ZE(n)&&(s=n.constructor,SG(s)&&(s===Bd||ZE(s.prototype))?s=void 0:kG(s)&&(s=s[NG],s===null&&(s=void 0)),s===Bd||s===void 0))return OG(n,o,a);for(l=new(s===void 0?Bd:s)(DG(a-o,0)),c=0;o<a;o++,c++)o in n&&xG(l,c,n[o]);return l.length=c,l}})});var nS=m((uY,rS)=>{"use strict";tS();var qG=_t();rS.exports=qG("Array","slice")});var oS=m((dY,iS)=>{"use strict";var LG=Qe(),MG=nS(),Jd=Array.prototype;iS.exports=function(e){var t=e.slice;return e===Jd||LG(Jd,e)&&t===Jd.slice?MG:t}});var sS=m((pY,aS)=>{"use strict";var UG=oS();aS.exports=UG});var cS=m((fY,lS)=>{lS.exports=sS()});var Hd=A(()=>{});var dS=m((mY,uS)=>{"use strict";var FG=xe(),jG=er(),GG=Be(),BG=GG("match");uS.exports=function(e){var t;return FG(e)&&((t=e[BG])!==void 0?!!t:jG(e)==="RegExp")}});var fS=m((gY,pS)=>{"use strict";var JG=dS(),HG=TypeError;pS.exports=function(e){if(JG(e))throw new HG("The method doesn't accept regular expressions");return e}});var mS=m((vY,hS)=>{"use strict";var $G=Be(),VG=$G("match");hS.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[VG]=!1,"/./"[e](t)}catch(n){}}return!1}});var yS=m(()=>{"use strict";var WG=Z(),zG=ki(),KG=gu().f,YG=Iu(),gS=to(),QG=fS(),XG=Kr(),ZG=mS(),eB=_n(),tB=zG("".slice),rB=Math.min,vS=ZG("startsWith"),nB=!eB&&!vS&&!!function(){var e=KG(String.prototype,"startsWith");return e&&!e.writable}();WG({target:"String",proto:!0,forced:!nB&&!vS},{startsWith:function(t){var r=gS(XG(this));QG(t);var n=YG(rB(arguments.length>1?arguments[1]:void 0,r.length)),i=gS(t);return tB(r,n,n+i.length)===i}})});var bS=m((bY,_S)=>{"use strict";yS();var iB=_t();_S.exports=iB("String","startsWith")});var IS=m((wY,wS)=>{"use strict";var oB=Qe(),aB=bS(),$d=String.prototype;wS.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===$d||oB($d,e)&&t===$d.startsWith?aB:t}});var SS=m((IY,ES)=>{"use strict";var sB=IS();ES.exports=sB});var AS=m((EY,kS)=>{kS.exports=SS()});var OS=m((SY,RS)=>{"use strict";var xS=Ie(),lB=Yr(),cB=xe(),uB=ut(),CS=Ui(),dB=vn(),TS=Function,pB=xS([].concat),fB=xS([].join),Vd={},hB=function(e,t,r){if(!uB(Vd,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";Vd[t]=TS("C,a","return new C("+fB(n,",")+")")}return Vd[t](e,r)};RS.exports=dB?TS.bind:function(t){var r=lB(this),n=r.prototype,i=CS(arguments,1),o=function(){var s=pB(i,CS(arguments));return this instanceof o?hB(r,s.length,s):r.apply(t,s)};return cB(n)&&(o.prototype=n),o}});var NS=m(()=>{"use strict";var mB=Z(),PS=OS();mB({target:"Function",proto:!0,forced:Function.bind!==PS},{bind:PS})});var qS=m((CY,DS)=>{"use strict";NS();var gB=_t();DS.exports=gB("Function","bind")});var MS=m((xY,LS)=>{"use strict";var vB=Qe(),yB=qS(),Wd=Function.prototype;LS.exports=function(e){var t=e.bind;return e===Wd||vB(Wd,e)&&t===Wd.bind?yB:t}});var FS=m((TY,US)=>{"use strict";var _B=MS();US.exports=_B});var GS=m((RY,jS)=>{jS.exports=FS()});function Ns(e,t){Ee.__h&&Ee.__h(de,e,lo||t),lo=0;var r=de.__H||(de.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Jt(e){return lo=1,bB(Tk,e)}function bB(e,t,r){var n=Ns(Ln++,2);if(n.t=e,!n.__c&&(n.__=[Tk(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){var d;if(!n.__c.__H)return!0;var u=(0,hp.default)(d=n.__c.__H.__).call(d,function(f){return!!f.__c});if((0,Sk.default)(u).call(u,function(f){return!f.__N}))return!o||o.call(this,s,l,c);var p=n.__c.props!==s;return(0,Te.default)(u).call(u,function(f){if(f.__N){var h=f.__[0];f.__=f.__N,f.__N=void 0,h!==f.__[0]&&(p=!0)}}),o&&o.call(this,s,l,c)||p};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 nn(e,t){var r=Ns(Ln++,3);!Ee.__s&&xk(r.__H,t)&&(r.__=e,r.u=t,de.__H.__h.push(r))}function io(e){return lo=5,ar(function(){return{current:e}},[])}function ar(e,t){var r=Ns(Ln++,7);return xk(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function bt(e,t){return lo=8,ar(function(){return e},t)}function wB(e){var t=de.context[e.__c],r=Ns(Ln++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(de)),t.props.value):e.__}function IB(){for(var e;e=Ck.shift();)if(e.__P&&e.__H)try{var t,r;(0,Te.default)(t=e.__H.__h).call(t,_s),(0,Te.default)(r=e.__H.__h).call(r,rp),e.__H.__h=[]}catch(n){e.__H.__h=[],Ee.__e(n,e.__v)}}function EB(e){var t,r=function(){clearTimeout(n),KS&&cancelAnimationFrame(t),(0,Bt.default)(e)},n=(0,Bt.default)(r,100);KS&&(t=requestAnimationFrame(r))}function _s(e){var t=de,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),de=t}function rp(e){var t=de;e.__c=e.__(),de=t}function xk(e,t){return!e||e.length!==t.length||(0,Cs.default)(t).call(t,function(r,n){return r!==e[n]})}function Tk(e,t){return typeof t=="function"?t(e):t}function SB(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function np(){throw new Error("setTimeout has not been defined")}function ip(){throw new Error("clearTimeout has not been defined")}function Ok(e){if(Mt===Bt.default)return(0,Bt.default)(e,0);if((Mt===np||!Mt)&&Bt.default)return Mt=Bt.default,(0,Bt.default)(e,0);try{return Mt(e,0)}catch(t){try{return Mt.call(null,e,0)}catch(r){return Mt.call(this,e,0)}}}function kB(e){if(Ut===clearTimeout)return clearTimeout(e);if((Ut===ip||!Ut)&&clearTimeout)return Ut=clearTimeout,clearTimeout(e);try{return Ut(e)}catch(t){try{return Ut.call(null,e)}catch(r){return Ut.call(this,e)}}}function AB(){!Nn||!Nr||(Nn=!1,Nr.length?or=(0,Ps.default)(Nr).call(Nr,or):bs=-1,or.length&&Pk())}function Pk(){if(!Nn){var e=Ok(AB);Nn=!0;for(var t=or.length;t;){for(Nr=or,or=[];++bs<t;)Nr&&Nr[bs].run();bs=-1,t=or.length}Nr=null,Nn=!1,kB(e)}}function Nk(e,t){this.fun=e,this.array=t}function lr(){}function TB(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 RB(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 DB(e,t){return Le(e,0)^45?(((t<<2^Le(e,0))<<2^Le(e,1))<<2^Le(e,2))<<2^Le(e,3):0}function Lk(e){return(0,vp.default)(e).call(e)}function qB(e,t){return(e=t.exec(e))?e[0]:e}function Q(e,t,r){return e.replace(t,r)}function op(e,t){return(0,sr.default)(e).call(e,t)}function Le(e,t){return e.charCodeAt(t)|0}function co(e,t,r){return(0,yp.default)(e).call(e,t,r)}function Ft(e){return e.length}function Ip(e){return e.length}function ms(e,t){return t.push(e),e}function LB(e,t){return(0,so.default)(e).call(e,t).join("")}function Ls(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:qs,column:Mn,length:a,return:""}}function ro(e,t){return NB(Ls("",null,null,"",null,null,0),e,{length:-e.length},t)}function MB(){return Se}function UB(){return Se=rt>0?Le(Fn,--rt):0,Mn--,Se===10&&(Mn=1,qs--),Se}function dt(){return Se=rt<Mk?Le(Fn,rt++):0,Mn++,Se===10&&(Mn=1,qs++),Se}function Ht(){return Le(Fn,rt)}function ws(){return rt}function go(e,t){return co(Fn,e,t)}function uo(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 Uk(e){return qs=Mn=1,Mk=Ft(Fn=e),rt=0,[]}function Fk(e){return Fn="",e}function Is(e){return Lk(go(rt-1,ap(e===91?e+2:e===40?e+1:e)))}function FB(e){for(;(Se=Ht())&&Se<33;)dt();return uo(e)>2||uo(Se)>3?"":" "}function jB(e,t){for(;--t&&dt()&&!(Se<48||Se>102||Se>57&&Se<65||Se>70&&Se<97););return go(e,ws()+(t<6&&Ht()==32&&dt()==32))}function ap(e){for(;dt();)switch(Se){case e:return rt;case 34:case 39:e!==34&&e!==39&&ap(Se);break;case 40:e===41&&ap(e);break;case 92:dt();break}return rt}function GB(e,t){for(;dt()&&e+Se!==57&&!(e+Se===84&&Ht()===47););return"/*"+go(t,rt-1)+"*"+Ds(e===47?e:dt())}function BB(e){for(;!uo(Ht());)dt();return go(e,rt)}function JB(e){return Fk(Es("",null,null,null,[""],e=Uk(e),0,[0],e))}function Es(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,h=0,v=1,_=1,g=1,w=0,S="",C=i,O=o,T=n,k=S;_;)switch(h=w,w=dt()){case 40:if(h!=108&&Le(k,u-1)==58){op(k+=Q(Is(w),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:k+=Is(w);break;case 9:case 10:case 13:case 32:k+=FB(h);break;case 92:k+=jB(ws()-1,7);continue;case 47:switch(Ht()){case 42:case 47:ms(HB(GB(dt(),ws()),t,r),l);break;default:k+="/"}break;case 123*v:s[c++]=Ft(k)*g;case 125*v:case 59:case 0:switch(w){case 0:case 125:_=0;case 59+d:f>0&&Ft(k)-u&&ms(f>32?QS(k+";",n,r,u-1):QS(Q(k," ","")+";",n,r,u-2),l);break;case 59:k+=";";default:if(ms(T=YS(k,t,r,c,d,i,s,S,C=[],O=[],u),o),w===123)if(d===0)Es(k,t,T,T,C,o,u,s,O);else switch(p===99&&Le(k,3)===110?100:p){case 100:case 109:case 115:Es(e,T,T,n&&ms(YS(e,T,T,0,0,i,s,S,i,C=[],u),O),i,O,u,s,n?C:O);break;default:Es(k,T,T,T,[""],O,0,s,O)}}c=d=f=0,v=g=1,S=k="",u=a;break;case 58:u=1+Ft(k),f=h;default:if(v<1){if(w==123)--v;else if(w==125&&v++==0&&UB()==125)continue}switch(k+=Ds(w),w*v){case 38:g=d>0?1:(k+="\f",-1);break;case 44:s[c++]=(Ft(k)-1)*g,g=1;break;case 64:Ht()===45&&(k+=Is(dt())),p=Ht(),d=u=Ft(S=k+=BB(ws())),w++;break;case 45:h===45&&Ft(k)==2&&(v=0)}}return o}function YS(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=Ip(p),h=0,v=0,_=0;h<n;++h)for(var g=0,w=co(e,u+1,u=PB(v=a[h])),S=e;g<f;++g)(S=Lk(v>0?p[g]+" "+w:Q(w,/&\f/g,p[g])))&&(l[_++]=S);return Ls(e,t,r,i===0?bp:s,l,c,d)}function HB(e,t,r){return Ls(e,t,r,_p,Ds(MB()),co(e,2,-2),0)}function QS(e,t,r,n){return Ls(e,t,r,wp,co(e,0,n),co(e,n+1,-1),n)}function Dn(e,t){for(var r="",n=Ip(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function $B(e,t,r,n){switch(e.type){case OB:case wp:return e.return=e.return||e.value;case _p:return"";case qk:return e.return=e.value+"{"+Dn(e.children,n)+"}";case bp:e.value=e.props.join(",")}return Ft(r=Dn(e.children,n))?e.return=e.value+"{"+r+"}":""}function VB(e){var t=Ip(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 WB(e){return function(t){t.root||(t=t.return)&&e(t)}}function Gk(e,t){switch(DB(e,t)){case 5103:return $+"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 $+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return $+e+Ts+e+Je+e+e;case 6828:case 4268:return $+e+Je+e+e;case 6165:return $+e+Je+"flex-"+e+e;case 5187:return $+e+Q(e,/(\w+).+(:[^]+)/,$+"box-$1$2"+Je+"flex-$1$2")+e;case 5443:return $+e+Je+"flex-item-"+Q(e,/flex-|-self/,"")+e;case 4675:return $+e+Je+"flex-line-pack"+Q(e,/align-content|flex-|-self/,"")+e;case 5548:return $+e+Je+Q(e,"shrink","negative")+e;case 5292:return $+e+Je+Q(e,"basis","preferred-size")+e;case 6060:return $+"box-"+Q(e,"-grow","")+$+e+Je+Q(e,"grow","positive")+e;case 4554:return $+Q(e,/([^-])(transform)/g,"$1"+$+"$2")+e;case 6187:return Q(Q(Q(e,/(zoom-|grab)/,$+"$1"),/(image-set)/,$+"$1"),e,"")+e;case 5495:case 3959:return Q(e,/(image-set\([^]*)/,$+"$1$`$1");case 4968:return Q(Q(e,/(.+:)(flex-)?(.*)/,$+"box-pack:$3"+Je+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+$+e+e;case 4095:case 3583:case 4068:case 2532:return Q(e,/(.+)-inline(.+)/,$+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ft(e)-1-t>6)switch(Le(e,t+1)){case 109:if(Le(e,t+4)!==45)break;case 102:return Q(e,/(.+:)(.+)-([^]+)/,"$1"+$+"$2-$3$1"+Ts+(Le(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~op(e,"stretch")?Gk(Q(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Le(e,t+1)!==115)break;case 6444:switch(Le(e,Ft(e)-3-(~op(e,"!important")&&10))){case 107:return Q(e,":",":"+$)+e;case 101:return Q(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+$+(Le(e,14)===45?"inline-":"")+"box$3$1"+$+"$2$3$1"+Je+"$2box$3")+e}break;case 5936:switch(Le(e,t+11)){case 114:return $+e+Je+Q(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $+e+Je+Q(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $+e+Je+Q(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $+e+Je+e+e}return e}function Jk(){if(ek)return gs.exports;ek=1;let e=Jk();return gs.exports={default:e},gs.exports.default=e,gs.exports}function po(e,t,r){var n,i="";return(0,Te.default)(n=r.split(" ")).call(n,function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}function sJ(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 cJ(e){var t=(0,kk.default)(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function fo(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 jt={name:i.name,styles:i.styles,next:jt},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)jt={name:a.name,styles:a.styles,next:jt},a=a.next;var s=o.styles+";";return s}return pJ(e,t,r)}case"function":{if(e!==void 0){var l=jt,c=r(e);return jt=l,fo(e,t,c)}break}}var d=r;if(t==null)return d;var u=t[d];return u!==void 0?u:d}function pJ(e,t,r){var n="";if((0,ao.default)(r))for(var i=0;i<r.length;i++)n+=fo(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]+"}":tk(s)&&(n+=Kd(o)+":"+rk(o,s)+";")}else if((0,ao.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)tk(a[l])&&(n+=Kd(o)+":"+rk(o,a[l])+";");else{var c=fo(e,t,a);switch(o){case"animation":case"animationName":{n+=Kd(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function Dr(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="";jt=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=fo(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=fo(r,t,e[s]),n){var l=o;i+=l[s]}nk.lastIndex=0;for(var c="",d;(d=nk.exec(i))!==null;)c+="-"+d[1];var u=sJ(i)+c;return{name:u,styles:i,next:jt}}function D(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Dr(t)}function EJ(e,t,r){var n=[],i=po(e,n,r);return n.length<2?r:i+t(n)}function b(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:--AJ,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return N.vnode&&N.vnode(c),c}function vo(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=Jt(e());return nn(()=>{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 H2(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 eA(e){let t=window.getComputedStyle(document.body).transform,r="";t&&t!=="none"&&(r=H2(t)),e.style.transform=r,e.style.transformOrigin="0 0"}function $2(e){let t=()=>eA(e);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}}function z2(s){var l=s,{elementTag:e="Image",src:t="",children:r,handleExposure:n,className:i,imgStyle:o}=l,a=je(l,["elementTag","src","children","handleExposure","className","imgStyle"]);let c=W2(()=>{t&&n()});return e==="Image"?b("div",{className:i,style:{borderRadius:"8px"},children:Ge("img",F(x({},a),{ref:c,src:t!=null?t:"",style:x({display:"block",width:"100%",height:"auto",objectFit:"cover",maxWidth:"100%",maxHeight:"100%",aspectRatio:"1 / 1",borderRadius:"8px"},o||{})}))}):b("div",F(x({},a),{ref:c,className:i,children:r}))}function K2(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?Ge(i.type,F(x({},i.props),{style:F(x({},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?Ge(e.type,F(x({},e.props),{style:F(x({},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 e5(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 mk(e,t,r){return Us.call(t,"css")?b(Ap,zk(e,t),r):b(e,t,r)}function a5(e,t,r){return Us.call(t,"css")?b(Ap,zk(e,t),r):b(e,t,r)}function dp({children:e,values:t={},style:r}){let n=e.split(/({{\s*\w+\s*}})/g);return b("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?b(De,{children:t[s]},o):null}return b(De,{children:i},o)})})}function c5({src:e,alt:t="",width:r=120,height:n=120,top:i="-60px",style:o={}}){let[a,s]=Jt(!1);return a?null:b("div",{style:x({position:"absolute",top:i,left:"50%",transform:"translateX(-50%)",zIndex:10,width:r,height:n},o),children:b("img",{src:e,alt:t,width:r,height:n,style:{display:"block",width:"100%",height:"100%",objectFit:"contain"},onError:()=>s(!0)})})}function p5({children:e,style:t}){return b("div",{style:`${u5.styles} ${t}`,children:[e,b("svg",{style:`${d5.styles} `,width:"18",height:"10",viewBox:"0 0 18 10",children:[b("polygon",{points:"9,10 0,1 18,1",fill:"#ffffff52"}),b("polygon",{points:"9,9 2,1 16,1",fill:"#4F396D"})]})]})}function C5(e,t){return Me(e,0)^45?(((t<<2^Me(e,0))<<2^Me(e,1))<<2^Me(e,2))<<2^Me(e,3):0}function hA(e){return(0,vp.default)(e).call(e)}function x5(e,t){return(e=t.exec(e))?e[0]:e}function W(e,t,r){return e.replace(t,r)}function pp(e,t){return(0,sr.default)(e).call(e,t)}function Me(e,t){return e.charCodeAt(t)|0}function ho(e,t,r){return(0,yp.default)(e).call(e,t,r)}function Gt(e){return e.length}function Op(e){return e.length}function ys(e,t){return t.push(e),e}function T5(e,t){return(0,so.default)(e).call(e,t).join("")}function Hs(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Js,column:Un,length:a,return:""}}function no(e,t){return A5(Hs("",null,null,"",null,null,0),e,{length:-e.length},t)}function R5(){return ke}function O5(){return ke=nt>0?Me(Gn,--nt):0,Un--,ke===10&&(Un=1,Js--),ke}function pt(){return ke=nt<mA?Me(Gn,nt++):0,Un++,ke===10&&(Un=1,Js++),ke}function $t(){return Me(Gn,nt)}function Ss(){return nt}function yo(e,t){return ho(Gn,e,t)}function mo(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 gA(e){return Js=Un=1,mA=Gt(Gn=e),nt=0,[]}function vA(e){return Gn="",e}function ks(e){return hA(yo(nt-1,fp(e===91?e+2:e===40?e+1:e)))}function P5(e){for(;(ke=$t())&&ke<33;)pt();return mo(e)>2||mo(ke)>3?"":" "}function N5(e,t){for(;--t&&pt()&&!(ke<48||ke>102||ke>57&&ke<65||ke>70&&ke<97););return yo(e,Ss()+(t<6&&$t()==32&&pt()==32))}function fp(e){for(;pt();)switch(ke){case e:return nt;case 34:case 39:e!==34&&e!==39&&fp(ke);break;case 40:e===41&&fp(e);break;case 92:pt();break}return nt}function D5(e,t){for(;pt()&&e+ke!==57&&!(e+ke===84&&$t()===47););return"/*"+yo(t,nt-1)+"*"+Bs(e===47?e:pt())}function q5(e){for(;!mo($t());)pt();return yo(e,nt)}function L5(e){return vA(As("",null,null,null,[""],e=gA(e),0,[0],e))}function As(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,h=0,v=1,_=1,g=1,w=0,S="",C=i,O=o,T=n,k=S;_;)switch(h=w,w=pt()){case 40:if(h!=108&&Me(k,u-1)==58){pp(k+=W(ks(w),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:k+=ks(w);break;case 9:case 10:case 13:case 32:k+=P5(h);break;case 92:k+=N5(Ss()-1,7);continue;case 47:switch($t()){case 42:case 47:ys(M5(D5(pt(),Ss()),t,r),l);break;default:k+="/"}break;case 123*v:s[c++]=Gt(k)*g;case 125*v:case 59:case 0:switch(w){case 0:case 125:_=0;case 59+d:g==-1&&(k=W(k,/\f/g,"")),f>0&&Gt(k)-u&&ys(f>32?vk(k+";",n,r,u-1):vk(W(k," ","")+";",n,r,u-2),l);break;case 59:k+=";";default:if(ys(T=gk(k,t,r,c,d,i,s,S,C=[],O=[],u),o),w===123)if(d===0)As(k,t,T,T,C,o,u,s,O);else switch(p===99&&Me(k,3)===110?100:p){case 100:case 108:case 109:case 115:As(e,T,T,n&&ys(gk(e,T,T,0,0,i,s,S,i,C=[],u),O),i,O,u,s,n?C:O);break;default:As(k,T,T,T,[""],O,0,s,O)}}c=d=f=0,v=g=1,S=k="",u=a;break;case 58:u=1+Gt(k),f=h;default:if(v<1){if(w==123)--v;else if(w==125&&v++==0&&O5()==125)continue}switch(k+=Bs(w),w*v){case 38:g=d>0?1:(k+="\f",-1);break;case 44:s[c++]=(Gt(k)-1)*g,g=1;break;case 64:$t()===45&&(k+=ks(pt())),p=$t(),d=u=Gt(S=k+=q5(Ss())),w++;break;case 45:h===45&&Gt(k)==2&&(v=0)}}return o}function gk(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=Op(p),h=0,v=0,_=0;h<n;++h)for(var g=0,w=ho(e,u+1,u=k5(v=a[h])),S=e;g<f;++g)(S=hA(v>0?p[g]+" "+w:W(w,/&\f/g,p[g])))&&(l[_++]=S);return Hs(e,t,r,i===0?Tp:s,l,c,d)}function M5(e,t,r){return Hs(e,t,r,pA,Bs(R5()),ho(e,2,-2),0)}function vk(e,t,r,n){return Hs(e,t,r,Rp,ho(e,0,n),ho(e,n+1,-1),n)}function qn(e,t){for(var r="",n=Op(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function U5(e,t,r,n){switch(e.type){case S5:if(e.children.length)break;case E5:case Rp:return e.return=e.return||e.value;case pA:return"";case fA:return e.return=e.value+"{"+qn(e.children,n)+"}";case Tp:e.value=e.props.join(",")}return Gt(r=qn(e.children,n))?e.return=e.value+"{"+r+"}":""}function F5(e){var t=Op(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 j5(e){return function(t){t.root||(t=t.return)&&e(t)}}function yA(e,t){switch(C5(e,t)){case 5103:return V+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return V+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return V+e+Os+e+He+e+e;case 6828:case 4268:return V+e+He+e+e;case 6165:return V+e+He+"flex-"+e+e;case 5187:return V+e+W(e,/(\w+).+(:[^]+)/,V+"box-$1$2"+He+"flex-$1$2")+e;case 5443:return V+e+He+"flex-item-"+W(e,/flex-|-self/,"")+e;case 4675:return V+e+He+"flex-line-pack"+W(e,/align-content|flex-|-self/,"")+e;case 5548:return V+e+He+W(e,"shrink","negative")+e;case 5292:return V+e+He+W(e,"basis","preferred-size")+e;case 6060:return V+"box-"+W(e,"-grow","")+V+e+He+W(e,"grow","positive")+e;case 4554:return V+W(e,/([^-])(transform)/g,"$1"+V+"$2")+e;case 6187:return W(W(W(e,/(zoom-|grab)/,V+"$1"),/(image-set)/,V+"$1"),e,"")+e;case 5495:case 3959:return W(e,/(image-set\([^]*)/,V+"$1$`$1");case 4968:return W(W(e,/(.+:)(flex-)?(.*)/,V+"box-pack:$3"+He+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+V+e+e;case 4095:case 3583:case 4068:case 2532:return W(e,/(.+)-inline(.+)/,V+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Gt(e)-1-t>6)switch(Me(e,t+1)){case 109:if(Me(e,t+4)!==45)break;case 102:return W(e,/(.+:)(.+)-([^]+)/,"$1"+V+"$2-$3$1"+Os+(Me(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~pp(e,"stretch")?yA(W(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Me(e,t+1)!==115)break;case 6444:switch(Me(e,Gt(e)-3-(~pp(e,"!important")&&10))){case 107:return W(e,":",":"+V)+e;case 101:return W(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+V+(Me(e,14)===45?"inline-":"")+"box$3$1"+V+"$2$3$1"+He+"$2box$3")+e}break;case 5936:switch(Me(e,t+11)){case 114:return V+e+He+W(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return V+e+He+W(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return V+e+He+W(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return V+e+He+e+e}return e}function _k(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function ep(e,t,r){var n=[],i=po(e,n,r);return n.length<2?r:i+t(n)}function Ik(e){if(e==="top"){let t=0;_A.forEach((r,n)=>{let i=r.querySelector(".toast");i&&(n===0?i.style.top=`max(${bk}px, env(safe-area-inset-top))`:i.style.top=`calc(max(${bk}px, env(safe-area-inset-top)) + ${t}px)`,t+=i.offsetHeight+wk)})}else if(e==="center"){let t=0;bA.forEach(r=>{let n=r.querySelector(".toast");n&&(n.style.top=`calc(50% + ${t}px)`,t+=n.offsetHeight+wk)})}}function _o(){let e=!1,t=null,r=0,n=new Set,i=a=>y(this,null,function*(){let s=e;if(r++,e=!0,!s)try{let{iframe:l}=yield oo.acquire(),c=l.contentDocument;if(c)t=c.createElement("div"),t.id="loading-root",c.body.appendChild(t),Er(b(n3,{}),t);else throw new Error("Iframe document is not available.")}catch(l){console.error("[LoadingManager] Failed to show loading:",l),r=0,e=!1,oo.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&&(Er(null,t),(a=t.parentNode)==null||a.removeChild(t),t=null),oo.release()))};return{show:i,hide:o,get isLoading(){return e}}}var hp,Sk,Te,Ps,Cs,Bt,xs,ao,mp,sr,so,kk,Ak,gp,vp,yp,qY,tp,Ln,de,zd,BS,lo,Ck,Ee,JS,HS,$S,VS,WS,zS,KS,Rk,ve,Mt,Ut,or,Nn,Nr,bs,CB,Re,xB,Dk,Je,Ts,$,_p,bp,wp,OB,qk,PB,Ds,NB,qs,Mn,Mk,rt,Se,Fn,zB,KB,YB,XS,QB,XB,ZB,eJ,tJ,jk,rJ,ZS,nJ,iJ,oJ,Bk,gs,ek,aJ,Ep,Ms,lJ,uJ,dJ,Hk,tk,Kd,rk,nk,jt,fJ,$k,Vk,ik,Us,Sp,Wk,kp,Fs,hJ,mJ,gJ,vJ,yJ,sp,lp,zk,_J,Ap,bJ,ok,wJ,IJ,SJ,kJ,Yd,ak,Qd,Xd,AJ,Zd,CJ,xJ,TJ,RJ,OJ,PJ,NJ,sk,DJ,qJ,LJ,lk,MJ,UJ,FJ,ck,jJ,GJ,BJ,uk,JJ,HJ,$J,VJ,WJ,zJ,KJ,YJ,QJ,XJ,ZJ,dk,e2,t2,r2,n2,i2,o2,a2,s2,l2,c2,u2,pk,d2,p2,f2,h2,m2,g2,v2,y2,_2,b2,w2,I2,E2,S2,k2,A2,C2,x2,T2,R2,O2,P2,N2,D2,q2,L2,M2,U2,F2,j2,G2,B2,Kk,Yk,Qk,cp,J2,Xk,Zk,Rs,oo,fk,V2,js,W2,tA,rA,nA,Y2,Q2,X2,up,Z2,iA,oA,Gs,Cp,jn,hk,Pr,aA,rn,t5,r5,n5,i5,o5,vs,sA,xp,me,s5,l5,u5,d5,At,f5,h5,lA,cA,uA,dA,qr,m5,g5,v5,y5,_5,b5,w5,I5,He,Os,V,pA,Tp,Rp,E5,fA,S5,k5,Bs,A5,Js,Un,mA,nt,ke,Gn,G5,B5,J5,yk,H5,$5,V5,W5,z5,K5,Y5,Q5,X5,Z5,e3,t3,bk,wk,_A,bA,Lr,Ek,r3,n3,LY,cr=A(()=>{"use strict";gn();hp=ie(hy(),1),Sk=ie(Sy(),1),Te=ie(My(),1),Ps=ie(Xy(),1),Cs=ie(s_(),1),Bt=ie(k_(),1);Fa();Fa();xs=ie(cb(),1),ao=ie(gb(),1),mp=ie(PI(),1),sr=ie(BI(),1),so=ie(QI(),1),kk=ie(i0(),1),Ak=ie(wE(),1),gp=ie(qE(),1),vp=ie(XE(),1),yp=ie(cS(),1);Hd();Hd();qY=ie(AS(),1),tp=ie(GS(),1),lo=0,Ck=[],Ee=N,JS=Ee.__b,HS=Ee.__r,$S=Ee.diffed,VS=Ee.__c,WS=Ee.unmount,zS=Ee.__;Ee.__b=function(e){de=null,JS&&JS(e)},Ee.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),zS&&zS(e,t)},Ee.__r=function(e){var t,r,n;HS&&HS(e),Ln=0;var i=(de=e.__c).__H;i&&(zd===de?(i.__h=[],de.__h=[],(0,Te.default)(t=i.__).call(t,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,Te.default)(r=i.__h).call(r,_s),(0,Te.default)(n=i.__h).call(n,rp),i.__h=[],Ln=0)),zd=de},Ee.diffed=function(e){var t;$S&&$S(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(Ck.push(r)!==1&&BS===Ee.requestAnimationFrame||((BS=Ee.requestAnimationFrame)||EB)(IB)),(0,Te.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),zd=de=null},Ee.__c=function(e,t){(0,Cs.default)(t).call(t,function(r){try{var n,i;(0,Te.default)(n=r.__h).call(n,_s),r.__h=(0,hp.default)(i=r.__h).call(i,function(o){return!o.__||rp(o)})}catch(o){(0,Cs.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],Ee.__e(o,r.__v)}}),VS&&VS(e,t)},Ee.unmount=function(e){var t;WS&&WS(e);var r,n=e.__c;n&&n.__H&&((0,Te.default)(t=n.__H.__).call(t,function(i){try{_s(i)}catch(o){r=o}}),n.__H=void 0,r&&Ee.__e(r,n.__v))};KS=typeof requestAnimationFrame=="function";Rk={exports:{}},ve=Rk.exports={};(function(){try{typeof Bt.default=="function"?Mt=Bt.default:Mt=np}catch(e){Mt=np}try{typeof clearTimeout=="function"?Ut=clearTimeout:Ut=ip}catch(e){Ut=ip}})();or=[],Nn=!1,bs=-1;ve.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];or.push(new Nk(e,t)),or.length===1&&!Nn&&Ok(Pk)};Nk.prototype.run=function(){this.fun.apply(null,this.array)};ve.title="browser";ve.browser=!0;ve.env={};ve.argv=[];ve.version="";ve.versions={};ve.on=lr;ve.addListener=lr;ve.once=lr;ve.off=lr;ve.removeListener=lr;ve.removeAllListeners=lr;ve.emit=lr;ve.prependListener=lr;ve.prependOnceListener=lr;ve.listeners=function(e){return[]};ve.binding=function(e){throw new Error("process.binding is not supported")};ve.cwd=function(){return"/"};ve.chdir=function(e){throw new Error("process.chdir is not supported")};ve.umask=function(){return 0};CB=Rk.exports,Re=SB(CB),xB=xs.default||void 0||self;Dk=function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){(0,Te.default)(r).call(r,this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(RB(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=TB(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){var r;(0,Te.default)(r=this.tags).call(r,function(n){var i;return(i=n.parentNode)==null?void 0:i.removeChild(n)}),this.tags=[],this.ctr=0},e}(),Je="-ms-",Ts="-moz-",$="-webkit-",_p="comm",bp="rule",wp="decl",OB="@import",qk="@keyframes",PB=Math.abs,Ds=String.fromCharCode,NB=gp.default;qs=1,Mn=1,Mk=0,rt=0,Se=0,Fn="";zB=function(e,t,r){for(var n=0,i=0;n=i,i=Ht(),n===38&&i===12&&(t[r]=1),!uo(i);)dt();return go(e,rt)},KB=function(e,t){var r=-1,n=44;do switch(uo(n)){case 0:n===38&&Ht()===12&&(t[r]=1),e[r]+=zB(rt-1,t,r);break;case 2:e[r]+=Is(n);break;case 4:if(n===44){e[++r]=Ht()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Ds(n)}while(n=dt());return e},YB=function(e,t){return Fk(KB(Uk(e),t))},XS=new mp.default,QB=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&&!XS.get(r))&&!n){XS.set(e,!0);for(var i=[],o=YB(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]}}},XB=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},ZB="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",eJ=function(e){var t;return e.type==="comm"&&(0,sr.default)(t=e.children).call(t,ZB)>-1},tJ=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(eJ(l))return;break}}(0,Te.default)(i).call(i,function(c){console.error('The pseudo class "'+c+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+c.split("-child")[0]+'-of-type".')})}}}},jk=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},rJ=function(e,t){for(var r=e-1;r>=0;r--)if(!jk(t[r]))return!0;return!1},ZS=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},nJ=function(e,t,r){jk(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."),ZS(e)):rJ(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),ZS(e)))};iJ=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case wp:e.return=Gk(e.value,e.length);break;case qk:return Dn([ro(e,{value:Q(e.value,"@","@"+$)})],n);case bp:if(e.length)return LB(e.props,function(i){switch(qB(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Dn([ro(e,{props:[Q(i,/:(read-\w+)/,":"+Ts+"$1")]})],n);case"::placeholder":return Dn([ro(e,{props:[Q(i,/:(plac\w+)/,":"+$+"input-$1")]}),ro(e,{props:[Q(i,/:(plac\w+)/,":"+Ts+"$1")]}),ro(e,{props:[Q(i,/:(plac\w+)/,Je+"input-$1")]})],n)}return""})}},oJ=[iJ],Bk=function(e){var t=e.key;if(Re.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,Te.default)(Array.prototype).call(r,function(h){var v=h.getAttribute("data-emotion");(0,sr.default)(v).call(v," ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var n=e.stylisPlugins||oJ;if(Re.env.NODE_ENV!=="production"&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var i={},o,a=[];o=e.container||document.head,(0,Te.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(h){for(var v=h.getAttribute("data-emotion").split(" "),_=1;_<v.length;_++)i[v[_]]=!0;a.push(h)});var s,l=[QB,XB];Re.env.NODE_ENV!=="production"&&l.push(tJ({get compat(){return f.compat}}),nJ);{var c,d=[$B,Re.env.NODE_ENV!=="production"?function(h){h.root||(h.return?c.insert(h.return):h.value&&h.type!==_p&&c.insert(h.value+"{}"))}:WB(function(h){c.insert(h)})],u=VB((0,Ps.default)(l).call(l,n,d)),p=function(h){return Dn(JB(h),u)};s=function(h,v,_,g){c=_,Re.env.NODE_ENV!=="production"&&(0,so.default)(v)!==void 0&&(c={insert:function(w){_.insert(w+(0,so.default)(v))}}),p(h?h+"{"+v.styles+"}":v.styles),g&&(f.inserted[v.name]=!0)}}var f={key:t,sheet:new Dk({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},gs={exports:{}};Jk();aJ=!0;Ep=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||aJ===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},Ms=function(e,t,r){Ep(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)}};lJ={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};uJ=/[A-Z]|^ms/g,dJ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Hk=function(e){return e.charCodeAt(1)===45},tk=function(e){return e!=null&&typeof e!="boolean"},Kd=cJ(function(e){return Hk(e)?e:e.replace(uJ,"-$&").toLowerCase()}),rk=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(dJ,function(r,n,i){return jt={name:n,styles:i,next:jt},n})}return lJ[e]!==1&&!Hk(e)&&typeof t=="number"&&t!==0?t+"px":t};nk=/label:\s*([^\s;{]+)\s*(;|$)/g;fJ=function(e){return e()},$k=ju?ju:!1,Vk=$k||fJ,ik=$k||An,Us={}.hasOwnProperty,Sp=Wr(typeof HTMLElement<"u"?Bk({key:"css"}):null);Re.env.NODE_ENV!=="production"&&(Sp.displayName="EmotionCacheContext");Wk=Sp.Provider,kp=function(e){return Bu(function(t,r){var n=xn(Sp);return e(t,n,r)})},Fs=Wr({});Re.env.NODE_ENV!=="production"&&(Fs.displayName="EmotionThemeContext");hJ=function(e){var t=e.split(".");return t[t.length-1]},mJ=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 hJ(t[1])},gJ=new Ak.default(["renderWithHooks","processChild","finishClassComponent","renderToString"]),vJ=function(e){return e.replace(/\$/g,"-")},yJ=function(e){if(e)for(var t=e.split(`
24
+ `),r=0;r<t.length;r++){var n=mJ(t[r]);if(n){if(gJ.has(n))break;if(/^[A-Z]/.test(n))return vJ(n)}}},sp="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",lp="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",zk=function(e,t){var r,n;if(Re.env.NODE_ENV!=="production"&&typeof t.css=="string"&&(0,sr.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)Us.call(t,o)&&(i[o]=t[o]);if(i[sp]=e,Re.env.NODE_ENV!=="production"&&t.css&&(typeof t.css!="object"||typeof t.css.name!="string"||(0,sr.default)(n=t.css.name).call(n,"-")===-1)){var a=yJ(new Error().stack);a&&(i[lp]=a)}return i},_J=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Ep(t,r,n),Vk(function(){return Ms(t,r,n)}),null},Ap=kp(function(e,t,r){var n,i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[sp],a=[i],s="";typeof e.className=="string"?s=po(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var l=Dr(a,void 0,xn(Fs));if(Re.env.NODE_ENV!=="production"&&(0,sr.default)(n=l.name).call(n,"-")===-1){var c=e[lp];c&&(l=Dr([l,"label:"+c+";"]))}s+=t.key+"-"+l.name;var d={};for(var u in e)Us.call(e,u)&&u!=="css"&&u!==sp&&(Re.env.NODE_ENV==="production"||u!==lp)&&(d[u]=e[u]);return d.ref=r,d.className=s,Ge(De,null,Ge(_J,{cache:t,serialized:l,isStringTag:typeof o=="string"}),Ge(o,d))});Re.env.NODE_ENV!=="production"&&(Ap.displayName="EmotionCssPropInternal");bJ={version:"11.10.5"},ok=!1,wJ=kp(function(e,t){Re.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=Dr([r],void 0,xn(Fs)),i=Bi();return ik(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]),ik(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(n.next!==void 0&&Ms(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});Re.env.NODE_ENV!=="production"&&(wJ.displayName="EmotionGlobal");IJ=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,ao.default)(o))a=e(o);else{Re.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};SJ=function(e){var t=e.cache,r=e.serializedArr;return Vk(function(){for(var n=0;n<r.length;n++)Ms(t,r[n],!1)}),null},kJ=kp(function(e,t){var r=!1,n=[],i=function(){if(r&&Re.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=Dr(c,t.registered);return n.push(u),Ep(t,u,!1),t.key+"-"+u.name},o=function(){if(r&&Re.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 EJ(t.registered,i,IJ(c))},a={css:i,cx:o,theme:xn(Fs)},s=e.children(a);return r=!0,Ge(De,null,Ge(SJ,{cache:t,serializedArr:n}),s)});Re.env.NODE_ENV!=="production"&&(kJ.displayName="EmotionClassNames");Re.env.NODE_ENV!=="production"&&(Yd=!0,ak=typeof jest<"u"||typeof vi<"u",Yd&&!ak&&(Qd=typeof xs.default<"u"?xs.default:Yd?window:xB,Xd="__EMOTION_REACT_"+bJ.version.split(".")[0]+"__",Qd[Xd]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),Qd[Xd]=!0));AJ=0;Zd={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"}},CJ=D`
25
25
  width: 100%;
26
26
  overflow: auto;
27
27
  margin: 0 auto;
28
- `,YG=`
28
+ `,xJ=`
29
29
  @keyframes fadeIn {
30
30
  from { opacity: 0; }
31
31
  to { opacity: 1; }
@@ -69,7 +69,7 @@ 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
- `,QG=({children:e,isOpen:t=!1,preventCloseOnBackdropClick:r=!1,onClose:n,className:i="",placement:o="bottom"},a)=>{let[s,l]=Gt(!1),[c,d]=Gt(null),[u,p]=Gt(!1),f=ro(null),h=ro(null),v=ro(!1);Zr(()=>{if(s&&f.current){let M=f.current.ownerDocument,Re=M.createElement("style");Re.innerHTML=YG,M.head.appendChild(Re);let Ne={overflow:M.body.style.overflow,position:M.body.style.position,width:M.body.style.width};return M.body.style.overflow="hidden",M.body.style.position="fixed",M.body.style.width="100%",()=>{M.head.contains(Re)&&M.head.removeChild(Re),M.body.style.overflow=Ne.overflow,M.body.style.position=Ne.position,M.body.style.width=Ne.width}}},[s]),Zr(()=>{t?!s&&!v.current&&(l(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)})):s&&(v.current=!0,d("leave"),p(!1))},[t]);let y=bt(M=>{M.target===h.current&&(c==="leave"?(d(null),l(!1),v.current=!1,n&&n()):c==="enter"&&(d(null),p(!0)))},[c,n]),g=bt(()=>{s&&!v.current&&(v.current=!0,d("leave"),p(!1))},[s]),b=bt(M=>{r||(M.preventDefault(),M.stopPropagation(),g())},[g]),k=bt(()=>{!v.current&&!s&&(l(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)}))},[s]),x=bt(()=>s&&!v.current,[s]);if(Zr(()=>{if(a){let M={show:k,hide:g,isOpen:x};typeof a=="function"?a(M):a&&(a.current=M)}},[k,g,x,a]),!s)return null;let P=o==="center",T=F(C({},Jd.drawerBackdrop),{alignItems:P?"center":"flex-end",justifyContent:"center",backgroundColor:"transparent",pointerEvents:"none"}),A={position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.6)",pointerEvents:"auto",opacity:c==="enter"||u?1:0,transition:"opacity 0.3s"},O=P?F(C({},Jd.centerDrawer),{pointerEvents:"auto"}):F(C({},Jd.drawer),{height:"auto",pointerEvents:"auto"});s&&!u&&!c&&!P&&(O.transform="translateY(100%)");let J=c?P?c==="leave"?"fadeOut":c==="enter"?"fadeIn":"":`drawer-${c}`:"",Ke=c?`backdrop-${c}`:"";return _("div",{ref:f,style:T,children:[_("div",{style:A,className:Ke,onClick:b}),_("div",{ref:h,style:F(C({},O),{opacity:P&&c===null&&!u?0:1}),className:`${P&&c==="leave"?"fadeOut":J} ${i}`,onAnimationEnd:y,onClick:M=>M.stopPropagation(),children:_("div",{style:KG.styles,children:e})})]})},XG=Ou(QG);ZG={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"},e2={unlockNeeds:"Unlock needs",price:"Price",unlockWithJolicoin:"Unlock with GEM for a better experience",unlockWithJolicoinDescription:"Unlock with GEM automatically",useJolicoin:"Use GEM",balance:"GEM Balance"},t2={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!"},Tk={jolicoin:ZG,joligem:e2,loginGuide:t2},r2={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"},n2={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"},i2={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"},Ok={jolicoin:r2,joligem:n2,loginGuide:i2},o2={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"},a2={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"},s2={instead:"Alihkan dari menonton iklan",introduct:"Gunakan {{coin}} Jolicoin untuk membuka untuk pengalaman yang lebih baik",tips:"Dapatkan {{coin}} gratis",login:"Daftar dan buka dengan Jolicoin",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",rewardTips:"Selamat! Anda telah menerima {{coin}} Jolicoin. Mulai membuka sekarang!"},Pk={jolicoin:o2,joligem:a2,loginGuide:s2},l2={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"},c2={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"},u2={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!"},Rk={jolicoin:l2,joligem:c2,loginGuide:u2},d2={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"},p2={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"},f2={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!"},m2={jolicoin:d2,joligem:p2,loginGuide:f2},h2={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"},g2={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"},v2={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!"},y2={jolicoin:h2,joligem:g2,loginGuide:v2},_2={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"},b2={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"},w2={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!"},Nk={jolicoin:_2,joligem:b2,loginGuide:w2},I2={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"},E2={unlockNeeds:"Necesario desbloquear",price:"Precio",unlockWithJolicoin:"Desbloquea con GEM",unlockWithJolicoinDescription:"Desbloquea autom\xE1ticamente con GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},k2={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!"},A2={jolicoin:I2,joligem:E2,loginGuide:k2},S2={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"},x2={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"},C2={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"},T2={jolicoin:S2,joligem:x2,loginGuide:C2},O2={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"},P2={unlockNeeds:"Necess\xE1rio desbloquear",price:"Pre\xE7o",unlockWithJolicoin:"Desbloqueie com GEM",unlockWithJolicoinDescription:"Desbloqueie automaticamente com GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},R2={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!"},Dk={jolicoin:O2,joligem:P2,loginGuide:R2},N2={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"},D2={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"},L2={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!"},M2={jolicoin:N2,joligem:D2,loginGuide:L2},q2={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"},U2={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"},F2={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"},j2={jolicoin:q2,joligem:U2,loginGuide:F2},J2={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"},G2={unlockNeeds:"Entsperren erforderlich",price:"Preis",unlockWithJolicoin:"Mit GEM entsperren",unlockWithJolicoinDescription:"Automatisch mit GEM entsperren",useJolicoin:"GEM verwenden",balance:"GEM Guthaben"},B2={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!"},H2={jolicoin:J2,joligem:G2,loginGuide:B2},V2={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"},$2={unlockNeeds:"D\xE9verrouillage n\xE9cessaire",price:"Prix",unlockWithJolicoin:"D\xE9verrouillez avec GEM",unlockWithJolicoinDescription:"D\xE9verrouillez automatiquement avec GEM",useJolicoin:"Utiliser GEM",balance:"GEM Solde"},W2={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 !"},z2={jolicoin:V2,joligem:$2,loginGuide:W2},K2={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"},Y2={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"},Q2={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!"},X2={jolicoin:K2,joligem:Y2,loginGuide:Q2},Z2={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"},eB={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"},tB={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!"},rB={jolicoin:Z2,joligem:eB,loginGuide:tB},nB={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"},iB={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"},oB={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!"},aB={jolicoin:nB,joligem:iB,loginGuide:oB},sB={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"},lB={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"},cB={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!"},uB={jolicoin:sB,joligem:lB,loginGuide:cB},vA={en:{translations:Tk},en_GB:{translations:Tk},zh:{translations:Ok},"zh-Hans":{translations:Ok},"zh-Hant":{translations:j2},id:{translations:Pk},in:{translations:Pk},ms:{translations:Rk},my:{translations:Rk},th:{translations:m2},vi:{translations:y2},fil:{translations:Nk},tl:{translations:Nk},es:{translations:A2},ja:{translations:T2},pt:{translations:Dk},pt_PT:{translations:Dk},ko:{translations:M2},de:{translations:H2},fr:{translations:z2},hi:{translations:X2},ru:{translations:rB},bn:{translations:aB},tr:{translations:uB}},yA=Br(void 0),_A=({definition:e,children:t})=>{let r={translations:e};return _(yA.Provider,{value:r,children:t})},Qd=null,dB={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"},bA=e=>{Qd=e},wA=()=>{var e;if(typeof Qd!="function")return console.warn("Language handler is not registered or is not a function. Defaulting to 'en'."),"en";try{let t=Qd();return(e=dB[t])!=null?e:"en"}catch(t){return console.error("Error executing registered language handler:",t),"en"}};ks=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=uA({key:"iframe-css",container:this.persistentIframe.contentDocument.head,prepend:!0}),this.removeGlobalTransformSync&&this.removeGlobalTransformSync(),this.removeGlobalTransformSync=fB(this.persistentIframe);let t=this.persistentIframe.contentDocument;t&&["--status-bar-height","--navigation-bar-height"].forEach(o=>{let a=document.documentElement.style.getPropertyValue(o);a&&t.body.style.setProperty(o,a)}),(i=this.iframeLoadResolver)==null||i.call(this),this.iframeLoadResolver=null},this.persistentIframe.onerror=()=>{console.error("[SingletonIframe] Iframe failed to load.")},this.persistentIframe.src="about:blank")}acquire(){return w(this,null,function*(){if(this.create(),yield this.iframeLoadPromise,!this.persistentIframe||!this.iframeEmotionCache)throw new Error("[SingletonIframe] Iframe or cache not available after load.");return this.referenceCount++,this.persistentIframe.style.display==="none"&&(IA(this.persistentIframe),this.persistentIframe.style.display="block"),{iframe:this.persistentIframe,emotionCache:this.iframeEmotionCache}})}release(){this.referenceCount--,this.referenceCount<=0&&(this.referenceCount=0,this.persistentIframe&&(this.persistentIframe.style.display="none"))}},no=new ks(99999998,"auto"),Lk=new ks(99999999,"none"),mB=({title:e,content:t,noHeader:r,height:n,padding:i="16px",footerButtons:o,onClose:a})=>{let s=ho(),l={container:D`
72
+ `,TJ=({children:e,isOpen:t=!1,preventCloseOnBackdropClick:r=!1,onClose:n,className:i="",placement:o="bottom"},a)=>{let[s,l]=Jt(!1),[c,d]=Jt(null),[u,p]=Jt(!1),f=io(null),h=io(null),v=io(!1);nn(()=>{if(s&&f.current){let M=f.current.ownerDocument,Pe=M.createElement("style");Pe.innerHTML=xJ,M.head.appendChild(Pe);let Ne={overflow:M.body.style.overflow,position:M.body.style.position,width:M.body.style.width};return M.body.style.overflow="hidden",M.body.style.position="fixed",M.body.style.width="100%",()=>{M.head.contains(Pe)&&M.head.removeChild(Pe),M.body.style.overflow=Ne.overflow,M.body.style.position=Ne.position,M.body.style.width=Ne.width}}},[s]),nn(()=>{t?!s&&!v.current&&(l(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)})):s&&(v.current=!0,d("leave"),p(!1))},[t]);let _=bt(M=>{M.target===h.current&&(c==="leave"?(d(null),l(!1),v.current=!1,n&&n()):c==="enter"&&(d(null),p(!0)))},[c,n]),g=bt(()=>{s&&!v.current&&(v.current=!0,d("leave"),p(!1))},[s]),w=bt(M=>{r||(M.preventDefault(),M.stopPropagation(),g())},[g]),S=bt(()=>{!v.current&&!s&&(l(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)}))},[s]),C=bt(()=>s&&!v.current,[s]);if(nn(()=>{if(a){let M={show:S,hide:g,isOpen:C};typeof a=="function"?a(M):a&&(a.current=M)}},[S,g,C,a]),!s)return null;let O=o==="center",T=F(x({},Zd.drawerBackdrop),{alignItems:O?"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"},R=O?F(x({},Zd.centerDrawer),{pointerEvents:"auto"}):F(x({},Zd.drawer),{height:"auto",pointerEvents:"auto"});s&&!u&&!c&&!O&&(R.transform="translateY(100%)");let G=c?O?c==="leave"?"fadeOut":c==="enter"?"fadeIn":"":`drawer-${c}`:"",Ke=c?`backdrop-${c}`:"";return b("div",{ref:f,style:T,children:[b("div",{style:k,className:Ke,onClick:w}),b("div",{ref:h,style:F(x({},R),{opacity:O&&c===null&&!u?0:1}),className:`${O&&c==="leave"?"fadeOut":G} ${i}`,onAnimationEnd:_,onClick:M=>M.stopPropagation(),children:b("div",{style:CJ.styles,children:e})})]})},RJ=Bu(TJ);OJ={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"},PJ={unlockNeeds:"Unlock needs",price:"Price",unlockWithJolicoin:"Unlock with GEM for a better experience",unlockWithJolicoinDescription:"Unlock with GEM automatically",useJolicoin:"Use GEM",balance:"GEM Balance"},NJ={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!"},sk={jolicoin:OJ,joligem:PJ,loginGuide:NJ},DJ={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"},qJ={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"},LJ={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:DJ,joligem:qJ,loginGuide:LJ},MJ={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"},UJ={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"},FJ={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!"},ck={jolicoin:MJ,joligem:UJ,loginGuide:FJ},jJ={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"},GJ={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"},BJ={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:jJ,joligem:GJ,loginGuide:BJ},JJ={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"},HJ={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"},$J={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!"},VJ={jolicoin:JJ,joligem:HJ,loginGuide:$J},WJ={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"},zJ={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"},KJ={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!"},YJ={jolicoin:WJ,joligem:zJ,loginGuide:KJ},QJ={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"},XJ={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"},ZJ={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!"},dk={jolicoin:QJ,joligem:XJ,loginGuide:ZJ},e2={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"},t2={unlockNeeds:"Necesario desbloquear",price:"Precio",unlockWithJolicoin:"Desbloquea con GEM",unlockWithJolicoinDescription:"Desbloquea autom\xE1ticamente con GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},r2={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!"},n2={jolicoin:e2,joligem:t2,loginGuide:r2},i2={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"},o2={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"},a2={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"},s2={jolicoin:i2,joligem:o2,loginGuide:a2},l2={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"},c2={unlockNeeds:"Necess\xE1rio desbloquear",price:"Pre\xE7o",unlockWithJolicoin:"Desbloqueie com GEM",unlockWithJolicoinDescription:"Desbloqueie automaticamente com GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},u2={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!"},pk={jolicoin:l2,joligem:c2,loginGuide:u2},d2={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"},p2={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"},f2={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!"},h2={jolicoin:d2,joligem:p2,loginGuide:f2},m2={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"},g2={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"},v2={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"},y2={jolicoin:m2,joligem:g2,loginGuide:v2},_2={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"},b2={unlockNeeds:"Entsperren erforderlich",price:"Preis",unlockWithJolicoin:"Mit GEM entsperren",unlockWithJolicoinDescription:"Automatisch mit GEM entsperren",useJolicoin:"GEM verwenden",balance:"GEM Guthaben"},w2={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!"},I2={jolicoin:_2,joligem:b2,loginGuide:w2},E2={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"},S2={unlockNeeds:"D\xE9verrouillage n\xE9cessaire",price:"Prix",unlockWithJolicoin:"D\xE9verrouillez avec GEM",unlockWithJolicoinDescription:"D\xE9verrouillez automatiquement avec GEM",useJolicoin:"Utiliser GEM",balance:"GEM Solde"},k2={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 !"},A2={jolicoin:E2,joligem:S2,loginGuide:k2},C2={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"},x2={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"},T2={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!"},R2={jolicoin:C2,joligem:x2,loginGuide:T2},O2={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"},P2={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"},N2={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!"},D2={jolicoin:O2,joligem:P2,loginGuide:N2},q2={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"},L2={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"},M2={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!"},U2={jolicoin:q2,joligem:L2,loginGuide:M2},F2={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"},j2={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"},G2={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!"},B2={jolicoin:F2,joligem:j2,loginGuide:G2},Kk={en:{translations:sk},en_GB:{translations:sk},zh:{translations:lk},"zh-Hans":{translations:lk},"zh-Hant":{translations:y2},id:{translations:ck},in:{translations:ck},ms:{translations:uk},my:{translations:uk},th:{translations:VJ},vi:{translations:YJ},fil:{translations:dk},tl:{translations:dk},es:{translations:n2},ja:{translations:s2},pt:{translations:pk},pt_PT:{translations:pk},ko:{translations:h2},de:{translations:I2},fr:{translations:A2},hi:{translations:R2},ru:{translations:D2},bn:{translations:U2},tr:{translations:B2}},Yk=Wr(void 0),Qk=({definition:e,children:t})=>{let r={translations:e};return b(Yk.Provider,{value:r,children:t})},cp=null,J2={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"},Xk=e=>{cp=e},Zk=()=>{var e;if(typeof cp!="function")return console.warn("Language handler is not registered or is not a function. Defaulting to 'en'."),"en";try{let t=cp();return(e=J2[t])!=null?e:"en"}catch(t){return console.error("Error executing registered language handler:",t),"en"}};Rs=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=Bk({key:"iframe-css",container:this.persistentIframe.contentDocument.head,prepend:!0}),this.removeGlobalTransformSync&&this.removeGlobalTransformSync(),this.removeGlobalTransformSync=$2(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 y(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"&&(eA(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"))}},oo=new Rs(99999998,"auto"),fk=new Rs(99999999,"none"),V2=({title:e,content:t,noHeader:r,height:n,padding:i="16px",footerButtons:o,onClose:a})=>{let s=vo(),l={container:D`
73
73
  display: flex;
74
74
  flex-direction: column;
75
75
  height: 100%;
@@ -102,11 +102,11 @@ If multiple caches share the same key they might "fight" for each other's style
102
102
  border-radius: 4px;
103
103
  border: 1px solid #ddd;
104
104
  cursor: pointer;
105
- `};return _("div",{className:l.container.name,children:[!r&&_("div",{className:l.header.name,children:[_("h3",{children:e}),_("button",{className:l.closeButton.name,onClick:a,children:"\xD7"})]}),_("div",{className:l.content.name,children:t}),o&&o.length>0&&_("div",{className:l.footer.name,children:o.map((c,d)=>_("button",{className:D`
105
+ `};return b("div",{className:l.container.name,children:[!r&&b("div",{className:l.header.name,children:[b("h3",{children:e}),b("button",{className:l.closeButton.name,onClick:a,children:"\xD7"})]}),b("div",{className:l.content.name,children:t}),o&&o.length>0&&b("div",{className:l.footer.name,children:o.map((c,d)=>b("button",{className:D`
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))})]})},Ds=e=>{let t=!1,r=wA(),n=vA[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)),vr(_(hA,{value:a,children:_(_A,{definition:n,children:_(XG,{ref:v=>{},placement:(f=e.placement)!=null?f:"bottom",isOpen:p,onClose:c,preventCloseOnBackdropClick:(h=e.preventCloseOnBackdropClick)!=null?h:!1,backdropColor:e.backdropColor,children:_(mB,F(C({},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))}no.release(),(f=e.onClose)==null||f.call(e)}}function d(){return w(this,null,function*(){let p=yield no.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.")}}},hB=(e,t={threshold:.6})=>{let r=ro(null),n=ro(!1),i=bt(o=>{let[a]=o;a.isIntersecting&&!n.current?(n.current=!0,e()):a.isIntersecting||(n.current=!1)},[e]);return Zr(()=>{if(r.current){let o=new IntersectionObserver(i,t);return o.observe(r.current),()=>{r.current&&o.unobserve(r.current)}}},[i,t]),r};EA=o=>{var a=o,{children:e,fluid:t=!1,className:r="",style:n={}}=a,i=je(a,["children","fluid","className","style"]);let s=C({width:"100%",marginLeft:"auto",marginRight:"auto",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box",maxWidth:t?"100%":void 0},n);return _("div",F(C({className:r,style:s},i),{children:e}))},kA=s=>{var l=s,{children:e,gutter:t=0,justify:r="start",align:n="top",className:i="",style:o={}}=l,a=je(l,["children","gutter","justify","align","className","style"]);let c={start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"},d={top:"flex-start",middle:"center",bottom:"flex-end"},u=C({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?vB(e,t):e;return _("div",F(C({className:i,style:u},a),{children:p}))};AA=u=>{var p=u,{children:e,span:t,offset:r,xs:n,sm:i,md:o,lg:a,xl:s,className:l="",style:c={}}=p,d=je(p,["children","span","offset","xs","sm","md","lg","xl","className","style"]);let f=C({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}%`),_("div",F(C({className:l,style:f},d),{children:e}))},yB=({game:e,layerName:t,orientation:r,routeMode:n,onGameClick:i})=>{var s,l;let o=En(c=>{c.preventDefault(),i==null||i(e)},[i,e]),a=En(()=>{},[e,t]);return _(AA,{span:r==="landscape"?4:8,className:"relative px-[4px] box-border mb-[8px]",style:{marginBottom:r==="landscape"?"8px":"16px",paddingLeft:"8px",paddingRight:"8px"},onClick:o,role:"button",tabIndex:0,children:[_("div",{className:"relative w-full mb-[2px] ion-no-margin",children:_(gB,{src:(l=(s=e.logo)!=null?s:e.cover)!=null?l:"",className:"w-full h-full absolute top-0 left-0 aspect-square rounded-[8px] object-cover",style:{display:"block",objectFit:"cover"},handleExposure:a})}),_("div",{className:"block text-white max-w-full text-[15px] leading-[1.2] overflow-hidden whitespace-nowrap text-ellipsis font-normal break-words",style:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordBreak:"break-word",color:"white",maxWidth:"100%",fontSize:r==="landscape"?"13px":"15px",lineHeight:1.2,fontWeight:"normal",marginTop:"6px",fontFamily:"PingFangSC-Regular"},children:e.name})]},e.gameId)},_B=a=>{var s=a,{list:e,routeMode:t,layerName:r,onGameClick:n,orientation:i}=s,o=je(s,["list","routeMode","layerName","onGameClick","orientation"]);return _(EA,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{maxWidth:i==="landscape"?"100%":"440px",minHeight:"1px"},children:_(kA,{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=>_(yB,{orientation:i,game:l,routeMode:t,layerName:r,onGameClick:n},l.gameId))})})},bB=Tu(_B),Xd=(e=>(e.Dismiss="DISMISS",e.Quit="QUIT",e))(Xd||{}),wB=e=>{let{games:t,title:r,buttons:n,onClose:i}=e,[o,a]=Gt(null),s=bt(u=>{i==null||i({type:u.type===Xd.Quit?"quit":"dismiss"})},[i]),l=bt(u=>{i==null||i({type:"navigate",data:{game:u}})},[i]),c=ho();if(!t.length)return _(De,{});let d=bt(u=>{if(u!==null&&!u.shadowRoot){let p=u.attachShadow({mode:"open"}),f=document.createElement("style");f.textContent=`
109
+ `.name,onClick:u=>{var p;return(p=c.onClick)==null?void 0:p.call(c,u,{hide:a})},children:c.text},d))})]})},js=e=>{let t=!1,r=Zk(),n=Kk[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)),Er(b(Wk,{value:a,children:b(Qk,{definition:n,children:b(RJ,{ref:v=>{},placement:(f=e.placement)!=null?f:"bottom",isOpen:p,onClose:c,preventCloseOnBackdropClick:(h=e.preventCloseOnBackdropClick)!=null?h:!1,backdropColor:e.backdropColor,children:b(V2,F(x({},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))}oo.release(),(f=e.onClose)==null||f.call(e)}}function d(){return y(this,null,function*(){let p=yield oo.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.")}}},W2=(e,t={threshold:.6})=>{let r=io(null),n=io(!1),i=bt(o=>{let[a]=o;a.isIntersecting&&!n.current?(n.current=!0,e()):a.isIntersecting||(n.current=!1)},[e]);return nn(()=>{if(r.current){let o=new IntersectionObserver(i,t);return o.observe(r.current),()=>{r.current&&o.unobserve(r.current)}}},[i,t]),r};tA=o=>{var a=o,{children:e,fluid:t=!1,className:r="",style:n={}}=a,i=je(a,["children","fluid","className","style"]);let s=x({width:"100%",marginLeft:"auto",marginRight:"auto",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box",maxWidth:t?"100%":void 0},n);return b("div",F(x({className:r,style:s},i),{children:e}))},rA=s=>{var l=s,{children:e,gutter:t=0,justify:r="start",align:n="top",className:i="",style:o={}}=l,a=je(l,["children","gutter","justify","align","className","style"]);let c={start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"},d={top:"flex-start",middle:"center",bottom:"flex-end"},u=x({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?K2(e,t):e;return b("div",F(x({className:i,style:u},a),{children:p}))};nA=u=>{var p=u,{children:e,span:t,offset:r,xs:n,sm:i,md:o,lg:a,xl:s,className:l="",style:c={}}=p,d=je(p,["children","span","offset","xs","sm","md","lg","xl","className","style"]);let f=x({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}%`),b("div",F(x({className:l,style:f},d),{children:e}))},Y2=({game:e,layerName:t,orientation:r,routeMode:n,onGameClick:i})=>{var s,l;let o=Cn(c=>{c.preventDefault(),i==null||i(e)},[i,e]),a=Cn(()=>{},[e,t]);return b(nA,{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:[b("div",{className:"relative w-full mb-[2px] ion-no-margin",children:b(z2,{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})}),b("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)},Q2=a=>{var s=a,{list:e,routeMode:t,layerName:r,onGameClick:n,orientation:i}=s,o=je(s,["list","routeMode","layerName","onGameClick","orientation"]);return b(tA,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{maxWidth:i==="landscape"?"100%":"440px",minHeight:"1px"},children:b(rA,{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=>b(Y2,{orientation:i,game:l,routeMode:t,layerName:r,onGameClick:n},l.gameId))})})},X2=Gu(Q2),up=(e=>(e.Dismiss="DISMISS",e.Quit="QUIT",e))(up||{}),Z2=e=>{let{games:t,title:r,buttons:n,onClose:i}=e,[o,a]=Jt(null),s=bt(u=>{i==null||i({type:u.type===up.Quit?"quit":"dismiss"})},[i]),l=bt(u=>{i==null||i({type:"navigate",data:{game:u}})},[i]),c=vo();if(!t.length)return b(De,{});let d=bt(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,7 +228,7 @@ 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 Zr(()=>{if(o){let u=o.getElementById("recommend-panel-content");u&&vr(_("div",{className:"recommend-panel",children:_("div",{className:"container",children:[_("p",{className:"title",children:r}),_("div",{className:"games-container",children:_(bB,{list:t||[],routeMode:"REDIRECT",layerName:"RecommendedGuide",onGameClick:l,orientation:c})}),_("div",{className:"buttons-container",children:(n!=null?n:[]).map((p,f)=>_("div",{className:"button-wrapper",children:_("button",{className:`button ${p.type===Xd.Quit?"quit-button":"action-button"}`,onClick:()=>s(p),children:_("span",{className:"button-text-ellipsis",children:p.text})})},f))})]})}),u)}},[o,t,r,n,s,l]),_("div",{ref:d})},SA=e=>{let t=Ds({title:e.title,content:_(wB,{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},xA="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=",Ls="https://fe-oss.jolibox.com/static/coin/jolicoin.png",hp="https://fe-oss.jolibox.com/static/coin/gem.png";Mn=()=>{let e=BJ(yA);if(!e)throw new Error("useTranslations must be used within a LightIntlProvider");let{translations:t}=e;return{t:(r,n)=>{let i=IB(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}},Mk=({text:e,initialFontSize:t,styles:r})=>_("span",{style:r,children:_("span",{style:{fontSize:`${t}px`,display:"-webkit-box",textAlign:"left",WebkitBoxOrient:"vertical",WebkitLineClamp:2,width:"auto",whiteSpace:"normal",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},children:e})}),Sr={coinInfo:D`
231
+ `;let h=document.createElement("div");h.id="recommend-panel-content",p.appendChild(f),p.appendChild(h),a(p)}},[]);return nn(()=>{if(o){let u=o.getElementById("recommend-panel-content");u&&Er(b("div",{className:"recommend-panel",children:b("div",{className:"container",children:[b("p",{className:"title",children:r}),b("div",{className:"games-container",children:b(X2,{list:t||[],routeMode:"REDIRECT",layerName:"RecommendedGuide",onGameClick:l,orientation:c})}),b("div",{className:"buttons-container",children:(n!=null?n:[]).map((p,f)=>b("div",{className:"button-wrapper",children:b("button",{className:`button ${p.type===up.Quit?"quit-button":"action-button"}`,onClick:()=>s(p),children:b("span",{className:"button-text-ellipsis",children:p.text})})},f))})]})}),u)}},[o,t,r,n,s,l]),b("div",{ref:d})},iA=e=>{let t=js({title:e.title,content:b(Z2,{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},oA="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=",Gs="https://fe-oss.jolibox.com/static/coin/jolicoin.png",Cp="https://fe-oss.jolibox.com/static/coin/gem.png";jn=()=>{let e=wB(Yk);if(!e)throw new Error("useTranslations must be used within a LightIntlProvider");let{translations:t}=e;return{t:(r,n)=>{let i=e5(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}},hk=({text:e,initialFontSize:t,styles:r})=>b("span",{style:r,children:b("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})}),Pr={coinInfo:D`
232
232
  display: flex;
233
233
  width: calc(100% - 40px);
234
234
  max-width: 720px;
@@ -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
- `},CA=({unlockNeedsAmount:e=0,balanceAmount:t=0,coinImage:r=Ls,formatter:n=s=>s>999?"999+":`${s}`,hideNeeds:i=!1,hideBalance:o=!1,currency:a="JOLI_COIN"})=>{let s=n(t),{t:l}=Mn(),c=14,d=nr(()=>a==="JOLI_GEM"?"joligem.balance":"jolicoin.balance",[a]);return _("div",{style:Sr.coinInfo.styles,children:[!i&&_("div",{style:Sr.coinAmount.styles,children:[_(Mk,{text:l("jolicoin.price"),initialFontSize:c,styles:Sr.coinLabelContainer.styles}),_("div",{style:Sr.coinValue.styles,children:[_("img",{src:r,alt:"Jolicoin",style:a==="JOLI_GEM"?Sr.gemIcon.styles:Sr.coinIcon.styles}),_("span",{children:e})]})]}),!o&&_("div",{style:Sr.coinAmountBalance.styles,children:_(Mk,{text:l(d)+":\xA0"+s,initialFontSize:c,styles:Sr.coinValueText.styles})})]})},Xr={card:D`
291
+ `},aA=({unlockNeedsAmount:e=0,balanceAmount:t=0,coinImage:r=Gs,formatter:n=s=>s>999?"999+":`${s}`,hideNeeds:i=!1,hideBalance:o=!1,currency:a="JOLI_COIN"})=>{let s=n(t),{t:l}=jn(),c=14,d=ar(()=>a==="JOLI_GEM"?"joligem.balance":"jolicoin.balance",[a]);return b("div",{style:Pr.coinInfo.styles,children:[!i&&b("div",{style:Pr.coinAmount.styles,children:[b(hk,{text:l("jolicoin.price"),initialFontSize:c,styles:Pr.coinLabelContainer.styles}),b("div",{style:Pr.coinValue.styles,children:[b("img",{src:r,alt:"Jolicoin",style:a==="JOLI_GEM"?Pr.gemIcon.styles:Pr.coinIcon.styles}),b("span",{children:e})]})]}),!o&&b("div",{style:Pr.coinAmountBalance.styles,children:b(hk,{text:l(d)+":\xA0"+s,initialFontSize:c,styles:Pr.coinValueText.styles})})]})},rn={card:D`
292
292
  display: flex;
293
293
  flex-direction: column;
294
294
  align-items: center;
@@ -324,17 +324,17 @@ If multiple caches share the same key they might "fight" for each other's style
324
324
  font-size: 16px;
325
325
  color: #C093FF;
326
326
  font-weight: bold;
327
- `},EB=D`
327
+ `},t5=D`
328
328
  box-sizing: border-box;
329
329
  width: 100%;
330
330
  aspect-ratio: 1/1;
331
- `,kB=D`
331
+ `,r5=D`
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
- `,AB=e=>_("div",{style:EB.styles,children:_("div",{style:kB.styles,children:_("div",{style:`${Xr.card.styles} ${e.option.id===e.selectedId?Xr.selectedCard.styles:""}`,onClick:()=>e.handleSelect(e.option),children:[_("div",{style:Xr.coinContainer.styles,children:[_("img",{src:e.coinImageSrc,alt:"Coin",style:e.currency==="JOLI_GEM"?Xr.gemIcon.styles:Xr.coinIcon.styles}),_("span",{style:Xr.coinValue.styles,children:e.option.coins.toLocaleString()})]}),_("div",{style:Xr.price.styles,children:e.option.price})]})})}),SB=({options:e,selectedId:t,onSelect:r,currency:n,coinImageSrc:i=Ls})=>{let o=ho(),a=s=>{r==null||r(s)};return _(EA,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{padding:"0px"},children:_(kA,{gutter:[10,10],style:{display:"flex","flex-wrap":"wrap"},children:e.map(s=>_(AA,{span:o==="landscape"?4:8,children:_(AB,{currency:n,option:s,selectedId:t,coinImageSrc:i,handleSelect:a})},s.id))})})},xB=Tu(SB);ds={toggleSwitch:D`
337
+ `,n5=e=>b("div",{style:t5.styles,children:b("div",{style:r5.styles,children:b("div",{style:`${rn.card.styles} ${e.option.id===e.selectedId?rn.selectedCard.styles:""}`,onClick:()=>e.handleSelect(e.option),children:[b("div",{style:rn.coinContainer.styles,children:[b("img",{src:e.coinImageSrc,alt:"Coin",style:e.currency==="JOLI_GEM"?rn.gemIcon.styles:rn.coinIcon.styles}),b("span",{style:rn.coinValue.styles,children:e.option.coins.toLocaleString()})]}),b("div",{style:rn.price.styles,children:e.option.price})]})})}),i5=({options:e,selectedId:t,onSelect:r,currency:n,coinImageSrc:i=Gs})=>{let o=vo(),a=s=>{r==null||r(s)};return b(tA,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{padding:"0px"},children:b(rA,{gutter:[10,10],style:{display:"flex","flex-wrap":"wrap"},children:e.map(s=>b(nA,{span:o==="landscape"?4:8,children:b(n5,{currency:n,option:s,selectedId:t,coinImageSrc:i,handleSelect:a})},s.id))})})},o5=Gu(i5);vs={toggleSwitch:D`
338
338
  position: relative;
339
339
  display: inline-block;
340
340
  width: 33px;
@@ -371,7 +371,7 @@ If multiple caches share the same key they might "fight" for each other's style
371
371
  &:before {
372
372
  transform: translateX(18px);
373
373
  }
374
- `},TA=({enableAutoDeduct:e,toggleEnableAutoDeduct:t})=>CB("label",{css:ds.toggleSwitch,children:[qk("input",{css:ds.toggleInput,type:"checkbox",checked:e,onChange:t}),qk("span",{css:[ds.toggleSlider,e&&ds.toggleSliderActive]})]}),gp=()=>_("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[_("g",{"clip-path":"url(#clip0_2716_2719)",children:_("path",{d:"M18.3 6.20997C17.91 5.81997 17.28 5.81997 16.89 6.20997L12 11.09L7.10997 6.19997C6.71997 5.80997 6.08997 5.80997 5.69997 6.19997C5.30997 6.58997 5.30997 7.21997 5.69997 7.60997L10.59 12.5L5.69997 17.39C5.30997 17.78 5.30997 18.41 5.69997 18.8C6.08997 19.19 6.71997 19.19 7.10997 18.8L12 13.91L16.89 18.8C17.28 19.19 17.91 19.19 18.3 18.8C18.69 18.41 18.69 17.78 18.3 17.39L13.41 12.5L18.3 7.60997C18.68 7.22997 18.68 6.58997 18.3 6.20997Z",fill:"#979797"})}),_("defs",{children:_("clipPath",{id:"clip0_2716_2719",children:_("rect",{width:"24",height:"24",fill:"white",transform:"translate(0 0.5)"})})})]}),he={modal:D`
374
+ `},sA=({enableAutoDeduct:e,toggleEnableAutoDeduct:t})=>a5("label",{css:vs.toggleSwitch,children:[mk("input",{css:vs.toggleInput,type:"checkbox",checked:e,onChange:t}),mk("span",{css:[vs.toggleSlider,e&&vs.toggleSliderActive]})]}),xp=()=>b("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[b("g",{"clip-path":"url(#clip0_2716_2719)",children:b("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"})}),b("defs",{children:b("clipPath",{id:"clip0_2716_2719",children:b("rect",{width:"24",height:"24",fill:"white",transform:"translate(0 0.5)"})})})]}),me={modal:D`
375
375
  font-family: PingFangSC-Regular;
376
376
  background-color: #1a1a1a;
377
377
  color: white;
@@ -459,19 +459,19 @@ If multiple caches share the same key they might "fight" for each other's style
459
459
  border-radius: 2px;
460
460
  margin: 0 auto;
461
461
  -webkit-tap-highlight-color: transparent;
462
- `},TB=({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]=Gt(r),u=ho(),{t:p}=Mn(),f=()=>{i(c)},h=nr(()=>n==="JOLI_GEM"?hp:Ls,[n]),v=nr(()=>n==="JOLI_GEM"?"joligem.unlockWithJolicoin":"jolicoin.unlockWithJolicoin",[n]),y=nr(()=>n==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[n]),g=bt(()=>{d(!c),a(!c)},[c]);return _("div",{style:`${he.modal.styles} ${u==="portrait"?"max-width: 440px":"max-width: 75%"}`,children:[_("div",{style:he.header.styles,children:[_(CA,{unlockNeedsAmount:e,balanceAmount:t,coinImage:h,currency:n}),_("button",{style:he.closeButton.styles,onClick:o.bind(null,{type:"CANCEL"}),children:_(gp,{})})]}),_("div",{style:he.content.styles,children:[_("h2",{style:he.title.styles,children:p(v)}),!r&&_("div",{style:he.autoDeductOption.styles,children:[_("span",{style:D`
462
+ `},s5=({unlockNeedsAmount:e=10,balanceAmount:t=999,defaultEnableAutoDeduct:r=!1,currency:n="JOLI_COIN",onConfirm:i,onClose:o,onEnableDeductChanged:a,confirmButtonKey:s,cancelButtonKey:l})=>{let[c,d]=Jt(r),u=vo(),{t:p}=jn(),f=()=>{i(c)},h=ar(()=>n==="JOLI_GEM"?Cp:Gs,[n]),v=ar(()=>n==="JOLI_GEM"?"joligem.unlockWithJolicoin":"jolicoin.unlockWithJolicoin",[n]),_=ar(()=>n==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[n]),g=bt(()=>{d(!c),a(!c)},[c]);return b("div",{style:`${me.modal.styles} ${u==="portrait"?"max-width: 440px":"max-width: 75%"}`,children:[b("div",{style:me.header.styles,children:[b(aA,{unlockNeedsAmount:e,balanceAmount:t,coinImage:h,currency:n}),b("button",{style:me.closeButton.styles,onClick:o.bind(null,{type:"CANCEL"}),children:b(xp,{})})]}),b("div",{style:me.content.styles,children:[b("h2",{style:me.title.styles,children:p(v)}),!r&&b("div",{style:me.autoDeductOption.styles,children:[b("span",{style:D`
463
463
  font-size: 12px;
464
464
  font-weight: 400;
465
465
  line-height: 1.2;
466
466
  color: #979797;
467
- `.styles,children:p(y)}),_(TA,{enableAutoDeduct:c,toggleEnableAutoDeduct:g})]}),_("section",{style:`${he.buttonContainer.styles} ${u==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[_("button",{style:`${he.confirmButton.styles} ${he.buttonFlex.styles}`,onClick:f,children:p(s)}),_("button",{style:`${he.cancelButton.styles} ${he.buttonFlex.styles}`,onClick:o.bind(null,{type:"FAILED"}),children:p(l)})]})]})]})},OB=({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]=Gt(r),{t:f}=Mn(),[h,v]=Gt(()=>{var T,A;return((T=n.find(O=>O.defaultSelected))==null?void 0:T.productId)||((A=n==null?void 0:n[0])==null?void 0:A.productId)}),y=ho(),g=()=>{o(h)},b=bt(T=>{console.log(T),v(T),l(T)},[]),k=bt(()=>{p(!u),s(!u)},[u]),x=nr(()=>i==="JOLI_GEM"?hp:Ls,[i]),P=nr(()=>i==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[i]);return console.log("defaultEnableAutoDeduct",r),_("div",{style:he.modal.styles,children:[_("div",{style:he.header.styles,children:[_(CA,{unlockNeedsAmount:e,balanceAmount:t,coinImage:x,currency:i}),_("button",{style:he.closeButton.styles,onClick:a.bind(null,{type:"CANCEL"}),children:_(gp,{})})]}),_("div",{style:he.content.styles,children:[_("div",{style:D`
467
+ `.styles,children:p(_)}),b(sA,{enableAutoDeduct:c,toggleEnableAutoDeduct:g})]}),b("section",{style:`${me.buttonContainer.styles} ${u==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[b("button",{style:`${me.confirmButton.styles} ${me.buttonFlex.styles}`,onClick:f,children:p(s)}),b("button",{style:`${me.cancelButton.styles} ${me.buttonFlex.styles}`,onClick:o.bind(null,{type:"FAILED"}),children:p(l)})]})]})]})},l5=({unlockNeedsAmount:e=1,balanceAmount:t=0,defaultEnableAutoDeduct:r=!1,paymentChoices:n=[],currency:i="JOLI_COIN",onConfirm:o,onClose:a,onEnableDeductChanged:s,onSelect:l,confirmButtonKey:c,cancelButtonKey:d})=>{let[u,p]=Jt(r),{t:f}=jn(),[h,v]=Jt(()=>{var T,k;return((T=n.find(R=>R.defaultSelected))==null?void 0:T.productId)||((k=n==null?void 0:n[0])==null?void 0:k.productId)}),_=vo(),g=()=>{o(h)},w=bt(T=>{console.log(T),v(T),l(T)},[]),S=bt(()=>{p(!u),s(!u)},[u]),C=ar(()=>i==="JOLI_GEM"?Cp:Gs,[i]),O=ar(()=>i==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[i]);return console.log("defaultEnableAutoDeduct",r),b("div",{style:me.modal.styles,children:[b("div",{style:me.header.styles,children:[b(aA,{unlockNeedsAmount:e,balanceAmount:t,coinImage:C,currency:i}),b("button",{style:me.closeButton.styles,onClick:a.bind(null,{type:"CANCEL"}),children:b(xp,{})})]}),b("div",{style:me.content.styles,children:[b("div",{style:D`
468
468
  padding: 16px 0px;
469
- `.styles,children:_(xB,{options:n.map(T=>({id:T.productId,coins:T.quantity,price:T.totalAmountStr})),coinImageSrc:x,selectedId:h,currency:i,onSelect:T=>b(T.id)})}),!r&&_("div",{style:he.autoDeductOption.styles,children:[_("span",{style:D`
469
+ `.styles,children:b(o5,{options:n.map(T=>({id:T.productId,coins:T.quantity,price:T.totalAmountStr})),coinImageSrc:C,selectedId:h,currency:i,onSelect:T=>w(T.id)})}),!r&&b("div",{style:me.autoDeductOption.styles,children:[b("span",{style:D`
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)}),_(TA,{enableAutoDeduct:u,toggleEnableAutoDeduct:k})]}),_("section",{style:`${he.buttonContainer.styles} ${y==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[_("button",{style:`${he.confirmButton.styles} ${he.buttonFlex.styles}`,onClick:g,children:f(c)}),_("button",{style:`${he.cancelButton.styles} ${he.buttonFlex.styles}`,onClick:a.bind(null,{type:"FAILED"}),children:f(d)})]})]})]})};RB=D`
474
+ `.styles,children:f(O)}),b(sA,{enableAutoDeduct:u,toggleEnableAutoDeduct:S})]}),b("section",{style:`${me.buttonContainer.styles} ${_==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[b("button",{style:`${me.confirmButton.styles} ${me.buttonFlex.styles}`,onClick:g,children:f(c)}),b("button",{style:`${me.cancelButton.styles} ${me.buttonFlex.styles}`,onClick:a.bind(null,{type:"FAILED"}),children:f(d)})]})]})]})};u5=D`
475
475
  display: inline-flex;
476
476
  align-items: center;
477
477
  justify-content: center;
@@ -488,14 +488,14 @@ 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
- `,NB=D`
491
+ `,d5=D`
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
- `;St=F(C({},he),{header:D`
498
+ `;At=F(x({},me),{header:D`
499
499
  display: flex;
500
500
  justify-content: flex-end;
501
501
  align-items: 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
- `}),LB={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()},MB=({currency:e,rewardType:t,rewardValue:r,confirmButtonKey:n,cancelButtonKey:i,onClose:o,onConfirm:a})=>{let s=t==="ADS-JOLI_COIN",{t:l}=Mn(),c=LB[t];return _("div",{style:{paddingTop:"80px"},children:_("section",{style:`${St.modal.styles} width:calc(100% - 40px); position: relative; border-radius: 16px; padding: 0;`,children:[_(PB,{src:c,alt:"\u{1FA99}",width:213,height:125,top:"-80px"}),_("div",{style:St.header.styles,children:_("button",{style:`${St.closeButton.styles} padding-top: 10px; padding-right: 10px;`,onClick:o.bind(null,{type:"CANCEL"}),children:_(gp,{})})}),_("div",{style:St.introduct.styles,children:[s?_("span",{style:St.introductSubTitle.styles,children:l("loginGuide.instead")}):null,_("span",{style:St.introductTitle.styles,children:_(Zd,{children:l("loginGuide.introduct"),values:{coin:_("img",{src:c,alt:"\u{1FA99}",style:{height:"20px",verticalAlign:"text-top",marginRight:"2px"}})}})})]}),_("div",{style:{width:"calc(100% - 40px)",paddingBottom:"16px"},children:_("section",{style:`${St.buttonContainer.styles} flex-direction: column; margin-top: 48px; padding: 0 20px;`,children:[_("div",{style:{position:"relative",display:"inline-block",width:"100%",height:"100%"},children:[_("div",{style:{position:"absolute",top:"-32px",right:"-5px",width:"auto",zIndex:1},children:_(DB,{children:_(Zd,{style:{fontSize:"12px",color:"#FFFFFF",fontWeight:600,lineHeight:"16px",textAlign:"center"},children:l("loginGuide.tips"),values:{coin:_(De,{children:[_("img",{src:c,alt:"\u{1FA99}",style:{height:"16px",verticalAlign:"text-top",marginRight:"2px"}}),r]})}})})}),_("button",{style:`${St.confirmButton.styles} ${St.buttonFlex.styles} padding: 0; line-height: 24px; display: flex; align-items: center; justify-content: center; overflow: hidden;`,onClick:a,children:_("span",{style:"display: flex; align-items: center; justify-content: center; width: 100%; word-break: break-word; height: 48px;",children:l(n)})})]}),_("button",{style:`${St.cancelButton.styles} ${St.buttonFlex.styles} line-height: 24px;`,onClick:o.bind(null,{type:"FAILED"}),children:l(i)})]})})]})})},OA=e=>{let t=Ds({title:"",content:_(TB,{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},PA=e=>{let t=Ds({title:"",content:_(OB,{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},RA=e=>{let t=Ds({title:"",content:_(MB,{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},NA=new Map,Tr=(e,t)=>{NA.set(e,t)};Tr(/^\{slot-checkmark\}/,(e,t)=>{var n,i;let r=(i=(n=t==null?void 0:t.customStyle)==null?void 0:n.mark)!=null?i:{};return _("div",{style:r,children:_("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",style:{height:"24px",verticalAlign:"middle"},children:[_("g",{clipPath:"url(#clip0_2247_16523)",children:_("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM9.29 16.29L5.7 12.7C5.31 12.31 5.31 11.68 5.7 11.29C6.09 10.9 6.72 10.9 7.11 11.29L10 14.17L16.88 7.29C17.27 6.9 17.9 6.9 18.29 7.29C18.68 7.68 18.68 8.31 18.29 8.7L10.7 16.29C10.32 16.68 9.68 16.68 9.29 16.29Z",fill:"white"})}),_("defs",{children:_("clipPath",{id:"clip0_2247_16523",children:_("rect",{width:"24",height:"24",fill:"white"})})})]})})});Tr(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:xA;return _("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});Tr(/^\{slot-gem\}/,(e,t)=>{var i,o,a;let r=(i=t==null?void 0:t.gemImage)!=null?i:hp,n=(a=(o=t==null?void 0:t.customStyle)==null?void 0:o.gem)!=null?a:{width:"28px",height:"28px"};return _("img",{src:r,alt:"\u{1FA99}",style:F(C({},n),{verticalAlign:"middle"})})});qB=/^\{slot-i18n-(.+?)\}/,UB=({i18nKey:e,i18nParams:t,fallbackText:r})=>{let{t:n}=Mn(),i=n(e,t);return _("span",{style:{width:"auto",padding:"0 2px"},children:i||r})};Tr(qB,(e,t)=>{var n;let r=e[1];return r?_(UB,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,fallbackText:`[${r}]`}):(console.warn("No i18n key extracted from slot pattern:",e[0]),_("span",{children:(n=t==null?void 0:t.text)!=null?n:""}))});FB=/^\{slot-i18ntran-(.+?)\}/,jB=({i18nKey:e,i18nParams:t,imgMap:r={},fallbackText:n})=>{let{t:i}=Mn(),o=i(e),a=Object.entries(r).reduce((s,[l,c])=>(s[l]=c(t[l]),s),{});return _(Zd,{children:o||n,values:C(C({},t),a)})},JB={coin:e=>_(De,{children:[_("img",{src:xA,alt:"coin",style:{width:16,height:16,marginRight:2,textAlign:"center"}})," ",e," Jolicoin"]})};Tr(FB,(e,t)=>{var n,i;let r=e[1];return r?_(jB,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,imgMap:(n=t==null?void 0:t.imgMap)!=null?n:JB,fallbackText:`[${r}]`}):_("span",{children:(i=t==null?void 0:t.text)!=null?i:""})});GB="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8yMjk0XzQwODkpIi8+CjxwYXRoIGQ9Ik0xNC4yOTUgMjUuOTIyN0MxNC4yOTUgMjUuOTIyNyAxNy45MTI1IDIxLjY0MzYgMjEuNzc1OSAxOC4wOTg0QzI0Ljc1NzQgMTUuMzYyMSAyOC4yMTUxIDEzLjE0NzQgMjguMjE1MSAxMy4xNDc0TDI3Ljk2OTUgMTEuNDEzOEMyNy45Njk1IDExLjQxMzggMjQuMDk4NyAxMi45NzYzIDIwLjc1NzUgMTUuMTk0N0MxNy4zNjUzIDE3LjQ0NTQgMTQuNTAzMyAyMC4zNTc3IDE0LjUwMzMgMjAuMzU3N0wxMS4xMzkgMTUuNjQyOEw5LjAzOTk2IDE3LjA1MjJMMTQuMjk1IDI1LjkyMjdMMTQuMjk1IDI1LjkyMjdaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzIyOTRfNDA4OSIgeDE9IjExLjczNDEiIHkxPSIzLjE3NTQxIiB4Mj0iMTgiIHkyPSIzNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjOTc1QkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzc4MTdGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=";Tr(/^\{slot-success\}/,(e,t)=>_("img",{src:GB,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));BB="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4xNDIxIDIwQzE1LjY2NSAyMCAyMC4xNDIxIDE1LjUyMjggMjAuMTQyMSAxMEMyMC4xNDIxIDQuNDc3MTUgMTUuNjY1IDEuNzM2OThlLTA3IDEwLjE0MjEgMS43MzY5OGUtMDdDNC42MTkyOSAxLjczNjk4ZS0wNyAwLjE0MjEzNiA0LjQ3NzE1IDAuMTQyMTM1IDEwQzAuMTQyMTM2IDE1LjUyMjggNC42MTkyOSAyMCAxMC4xNDIxIDIwWk02LjUwNTk4IDUuMDQ5OTdDNi4xMTU0NiA0LjY1OTQ1IDUuNDgyMjkgNC42NTk0NSA1LjA5MTc3IDUuMDQ5OTdDNC43MDEyNCA1LjQ0MDUgNC43MDEyNCA2LjA3MzY2IDUuMDkxNzcgNi40NjQxOUw4LjYyNzMgOS45OTk3Mkw1LjA5MTc3IDEzLjUzNTNDNC43MDEyNCAxMy45MjU4IDQuNzAxMjQgMTQuNTU4OSA1LjA5MTc3IDE0Ljk0OTVDNS40ODIyOSAxNS4zNCA2LjExNTQ2IDE1LjM0IDYuNTA1OTggMTQuOTQ5NUwxMC4wNDE1IDExLjQxMzlMMTMuNTc3IDE0Ljk0OTVDMTMuOTY3NiAxNS4zNCAxNC42MDA3IDE1LjM0IDE0Ljk5MTMgMTQuOTQ5NUMxNS4zODE4IDE0LjU1ODkgMTUuMzgxOCAxMy45MjU4IDE0Ljk5MTMgMTMuNTM1M0wxMS40NTU3IDkuOTk5NzJMMTQuOTkxMyA2LjQ2NDE5QzE1LjM4MTggNi4wNzM2NiAxNS4zODE4IDUuNDQwNSAxNC45OTEzIDUuMDQ5OTdDMTQuNjAwNyA0LjY1OTQ1IDEzLjk2NzYgNC42NTk0NSAxMy41NzcgNS4wNDk5N0wxMC4wNDE1IDguNTg1NTFMNi41MDU5OCA1LjA0OTk3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";Tr(/^\{slot-error\}/,(e,t)=>_("img",{src:BB,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));HB="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=";Tr(/^\{slot-correct\}/,(e,t)=>{var i,o;let r=HB,n=(o=(i=t.customStyle)==null?void 0:i.correct)!=null?o:{width:"24px",height:"24px"};return _("img",{src:r,alt:"\u{1FA99}",style:F(C({},n),{verticalAlign:"middle"})})});He="-ms-",As="-moz-",$="-webkit-",DA="comm",vp="rule",yp="decl",VB="@import",LA="@keyframes",$B="@layer",WB=Math.abs,Ms=String.fromCharCode,zB=ip.default;qs=1,Dn=1,qA=0,nt=0,Ae=0,qn="";c5=function(e,t,r){for(var n=0,i=0;n=i,i=Ht(),n===38&&i===12&&(t[r]=1),!fo(i);)pt();return go(e,nt)},u5=function(e,t){var r=-1,n=44;do switch(fo(n)){case 0:n===38&&Ht()===12&&(t[r]=1),e[r]+=c5(nt-1,t,r);break;case 2:e[r]+=_s(n);break;case 4:if(n===44){e[++r]=Ht()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Ms(n)}while(n=pt());return e},d5=function(e,t){return FA(u5(UA(e),t))},jk=new np.default,p5=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&&!jk.get(r))&&!n){jk.set(e,!0);for(var i=[],o=d5(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]}}},f5=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};m5=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case yp:e.return=jA(e.value,e.length);break;case LA:return Pn([to(e,{value:W(e.value,"@","@"+$)})],n);case vp:if(e.length)return QB(e.props,function(i){switch(YB(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Pn([to(e,{props:[W(i,/:(read-\w+)/,":"+As+"$1")]})],n);case"::placeholder":return Pn([to(e,{props:[W(i,/:(plac\w+)/,":"+$+"input-$1")]}),to(e,{props:[W(i,/:(plac\w+)/,":"+As+"$1")]}),to(e,{props:[W(i,/:(plac\w+)/,He+"input-$1")]})],n)}return""})}},h5=[m5],g5=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,Te.default)(Array.prototype).call(r,function(h){var v=h.getAttribute("data-emotion");(0,ir.default)(v).call(v," ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var n=e.stylisPlugins||h5,i={},o,a=[];o=e.container||document.head,(0,Te.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(h){for(var v=h.getAttribute("data-emotion").split(" "),y=1;y<v.length;y++)i[v[y]]=!0;a.push(h)});var s,l=[p5,f5];{var c,d=[a5,l5(function(h){c.insert(h)})],u=s5((0,Ss.default)(l).call(l,n,d)),p=function(h){return Pn(i5(h),u)};s=function(h,v,y,g){c=y,p(h?h+"{"+v.styles+"}":v.styles),g&&(f.inserted[v.name]=!0)}}var f={key:t,sheet:new rA({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};v5=function(e){var t=g5(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=Cr(s,t.registered,void 0);return Ps(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=Cr(s,t.registered),d="animation-"+c.name;return Jk(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=Cr(s,t.registered);Jk(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return Gd(t.registered,r,y5(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){(0,Te.default)(a).call(a,function(s){t.inserted[s]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:(0,Bd.default)(co).call(co,null,t.registered),merge:(0,Bd.default)(Gd).call(Gd,null,t.registered,r)}},y5=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,io.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},_5=v5({key:"css"}),b5=_5.css,w5=(e,t)=>{var a;let r=C({color:"#FFF",display:"inline-block",width:"auto",minWidth:"fit-content",whiteSpace:"nowrap"},(a=t==null?void 0:t.customStyle)==null?void 0:a.span);if(!e.includes("{slot-"))return _("span",{style:r,children:e});let n=[],i=0;for(;i<e.length;){let s=null,l=1/0,c=null;for(let[d,u]of NA.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(_("span",{style:r,children:d}))}n.push(c(s,t)),i=l+s[0].length}else{let d=e.substring(i);n.push(_("span",{style:r,children:d}));break}}let o=b5`
552
+ `}),f5={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()},h5=({currency:e,rewardType:t,rewardValue:r,confirmButtonKey:n,cancelButtonKey:i,onClose:o,onConfirm:a})=>{let s=t==="ADS-JOLI_COIN",{t:l}=jn(),c=f5[t];return b("div",{style:{paddingTop:"80px"},children:b("section",{style:`${At.modal.styles} width:calc(100% - 40px); position: relative; border-radius: 16px; padding: 0;`,children:[b(c5,{src:c,alt:"\u{1FA99}",width:213,height:125,top:"-80px"}),b("div",{style:At.header.styles,children:b("button",{style:`${At.closeButton.styles} padding-top: 10px; padding-right: 10px;`,onClick:o.bind(null,{type:"CANCEL"}),children:b(xp,{})})}),b("div",{style:At.introduct.styles,children:[s?b("span",{style:At.introductSubTitle.styles,children:l("loginGuide.instead")}):null,b("span",{style:At.introductTitle.styles,children:b(dp,{children:l("loginGuide.introduct"),values:{coin:b("img",{src:c,alt:"\u{1FA99}",style:{height:"20px",verticalAlign:"text-top",marginRight:"2px"}})}})})]}),b("div",{style:{width:"calc(100% - 40px)",paddingBottom:"16px"},children:b("section",{style:`${At.buttonContainer.styles} flex-direction: column; margin-top: 48px; padding: 0 20px;`,children:[b("div",{style:{position:"relative",display:"inline-block",width:"100%",height:"100%"},children:[b("div",{style:{position:"absolute",top:"-32px",right:"-5px",width:"auto",zIndex:1},children:b(p5,{children:b(dp,{style:{fontSize:"12px",color:"#FFFFFF",fontWeight:600,lineHeight:"16px",textAlign:"center"},children:l("loginGuide.tips"),values:{coin:b(De,{children:[b("img",{src:c,alt:"\u{1FA99}",style:{height:"16px",verticalAlign:"text-top",marginRight:"2px"}}),r]})}})})}),b("button",{style:`${At.confirmButton.styles} ${At.buttonFlex.styles} padding: 0; line-height: 24px; display: flex; align-items: center; justify-content: center; overflow: hidden;`,onClick:a,children:b("span",{style:"display: flex; align-items: center; justify-content: center; width: 100%; word-break: break-word; height: 48px;",children:l(n)})})]}),b("button",{style:`${At.cancelButton.styles} ${At.buttonFlex.styles} line-height: 24px;`,onClick:o.bind(null,{type:"FAILED"}),children:l(i)})]})})]})})},lA=e=>{let t=js({title:"",content:b(s5,{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},cA=e=>{let t=js({title:"",content:b(l5,{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},uA=e=>{let t=js({title:"",content:b(h5,{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},dA=new Map,qr=(e,t)=>{dA.set(e,t)};qr(/^\{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 b("div",{style:r,children:b("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",style:{height:"24px",verticalAlign:"middle"},children:[b("g",{clipPath:"url(#clip0_2247_16523)",children:b("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"})}),b("defs",{children:b("clipPath",{id:"clip0_2247_16523",children:b("rect",{width:"24",height:"24",fill:"white"})})})]})})});qr(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:oA;return b("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});qr(/^\{slot-gem\}/,(e,t)=>{var i,o,a;let r=(i=t==null?void 0:t.gemImage)!=null?i:Cp,n=(a=(o=t==null?void 0:t.customStyle)==null?void 0:o.gem)!=null?a:{width:"28px",height:"28px"};return b("img",{src:r,alt:"\u{1FA99}",style:F(x({},n),{verticalAlign:"middle"})})});m5=/^\{slot-i18n-(.+?)\}/,g5=({i18nKey:e,i18nParams:t,fallbackText:r})=>{let{t:n}=jn(),i=n(e,t);return b("span",{style:{width:"auto",padding:"0 2px"},children:i||r})};qr(m5,(e,t)=>{var n;let r=e[1];return r?b(g5,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,fallbackText:`[${r}]`}):(console.warn("No i18n key extracted from slot pattern:",e[0]),b("span",{children:(n=t==null?void 0:t.text)!=null?n:""}))});v5=/^\{slot-i18ntran-(.+?)\}/,y5=({i18nKey:e,i18nParams:t,imgMap:r={},fallbackText:n})=>{let{t:i}=jn(),o=i(e),a=Object.entries(r).reduce((s,[l,c])=>(s[l]=c(t[l]),s),{});return b(dp,{children:o||n,values:x(x({},t),a)})},_5={coin:e=>b(De,{children:[b("img",{src:oA,alt:"coin",style:{width:16,height:16,marginRight:2,textAlign:"center"}})," ",e," Jolicoin"]})};qr(v5,(e,t)=>{var n,i;let r=e[1];return r?b(y5,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,imgMap:(n=t==null?void 0:t.imgMap)!=null?n:_5,fallbackText:`[${r}]`}):b("span",{children:(i=t==null?void 0:t.text)!=null?i:""})});b5="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8yMjk0XzQwODkpIi8+CjxwYXRoIGQ9Ik0xNC4yOTUgMjUuOTIyN0MxNC4yOTUgMjUuOTIyNyAxNy45MTI1IDIxLjY0MzYgMjEuNzc1OSAxOC4wOTg0QzI0Ljc1NzQgMTUuMzYyMSAyOC4yMTUxIDEzLjE0NzQgMjguMjE1MSAxMy4xNDc0TDI3Ljk2OTUgMTEuNDEzOEMyNy45Njk1IDExLjQxMzggMjQuMDk4NyAxMi45NzYzIDIwLjc1NzUgMTUuMTk0N0MxNy4zNjUzIDE3LjQ0NTQgMTQuNTAzMyAyMC4zNTc3IDE0LjUwMzMgMjAuMzU3N0wxMS4xMzkgMTUuNjQyOEw5LjAzOTk2IDE3LjA1MjJMMTQuMjk1IDI1LjkyMjdMMTQuMjk1IDI1LjkyMjdaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzIyOTRfNDA4OSIgeDE9IjExLjczNDEiIHkxPSIzLjE3NTQxIiB4Mj0iMTgiIHkyPSIzNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjOTc1QkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzc4MTdGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=";qr(/^\{slot-success\}/,(e,t)=>b("img",{src:b5,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));w5="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4xNDIxIDIwQzE1LjY2NSAyMCAyMC4xNDIxIDE1LjUyMjggMjAuMTQyMSAxMEMyMC4xNDIxIDQuNDc3MTUgMTUuNjY1IDEuNzM2OThlLTA3IDEwLjE0MjEgMS43MzY5OGUtMDdDNC42MTkyOSAxLjczNjk4ZS0wNyAwLjE0MjEzNiA0LjQ3NzE1IDAuMTQyMTM1IDEwQzAuMTQyMTM2IDE1LjUyMjggNC42MTkyOSAyMCAxMC4xNDIxIDIwWk02LjUwNTk4IDUuMDQ5OTdDNi4xMTU0NiA0LjY1OTQ1IDUuNDgyMjkgNC42NTk0NSA1LjA5MTc3IDUuMDQ5OTdDNC43MDEyNCA1LjQ0MDUgNC43MDEyNCA2LjA3MzY2IDUuMDkxNzcgNi40NjQxOUw4LjYyNzMgOS45OTk3Mkw1LjA5MTc3IDEzLjUzNTNDNC43MDEyNCAxMy45MjU4IDQuNzAxMjQgMTQuNTU4OSA1LjA5MTc3IDE0Ljk0OTVDNS40ODIyOSAxNS4zNCA2LjExNTQ2IDE1LjM0IDYuNTA1OTggMTQuOTQ5NUwxMC4wNDE1IDExLjQxMzlMMTMuNTc3IDE0Ljk0OTVDMTMuOTY3NiAxNS4zNCAxNC42MDA3IDE1LjM0IDE0Ljk5MTMgMTQuOTQ5NUMxNS4zODE4IDE0LjU1ODkgMTUuMzgxOCAxMy45MjU4IDE0Ljk5MTMgMTMuNTM1M0wxMS40NTU3IDkuOTk5NzJMMTQuOTkxMyA2LjQ2NDE5QzE1LjM4MTggNi4wNzM2NiAxNS4zODE4IDUuNDQwNSAxNC45OTEzIDUuMDQ5OTdDMTQuNjAwNyA0LjY1OTQ1IDEzLjk2NzYgNC42NTk0NSAxMy41NzcgNS4wNDk5N0wxMC4wNDE1IDguNTg1NTFMNi41MDU5OCA1LjA0OTk3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";qr(/^\{slot-error\}/,(e,t)=>b("img",{src:w5,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));I5="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=";qr(/^\{slot-correct\}/,(e,t)=>{var i,o;let r=I5,n=(o=(i=t.customStyle)==null?void 0:i.correct)!=null?o:{width:"24px",height:"24px"};return b("img",{src:r,alt:"\u{1FA99}",style:F(x({},n),{verticalAlign:"middle"})})});He="-ms-",Os="-moz-",V="-webkit-",pA="comm",Tp="rule",Rp="decl",E5="@import",fA="@keyframes",S5="@layer",k5=Math.abs,Bs=String.fromCharCode,A5=gp.default;Js=1,Un=1,mA=0,nt=0,ke=0,Gn="";G5=function(e,t,r){for(var n=0,i=0;n=i,i=$t(),n===38&&i===12&&(t[r]=1),!mo(i);)pt();return yo(e,nt)},B5=function(e,t){var r=-1,n=44;do switch(mo(n)){case 0:n===38&&$t()===12&&(t[r]=1),e[r]+=G5(nt-1,t,r);break;case 2:e[r]+=ks(n);break;case 4:if(n===44){e[++r]=$t()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Bs(n)}while(n=pt());return e},J5=function(e,t){return vA(B5(gA(e),t))},yk=new mp.default,H5=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&&!yk.get(r))&&!n){yk.set(e,!0);for(var i=[],o=J5(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]}}},$5=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};V5=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Rp:e.return=yA(e.value,e.length);break;case fA:return qn([no(e,{value:W(e.value,"@","@"+V)})],n);case Tp:if(e.length)return T5(e.props,function(i){switch(x5(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return qn([no(e,{props:[W(i,/:(read-\w+)/,":"+Os+"$1")]})],n);case"::placeholder":return qn([no(e,{props:[W(i,/:(plac\w+)/,":"+V+"input-$1")]}),no(e,{props:[W(i,/:(plac\w+)/,":"+Os+"$1")]}),no(e,{props:[W(i,/:(plac\w+)/,He+"input-$1")]})],n)}return""})}},W5=[V5],z5=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,Te.default)(Array.prototype).call(r,function(h){var v=h.getAttribute("data-emotion");(0,sr.default)(v).call(v," ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var n=e.stylisPlugins||W5,i={},o,a=[];o=e.container||document.head,(0,Te.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(h){for(var v=h.getAttribute("data-emotion").split(" "),_=1;_<v.length;_++)i[v[_]]=!0;a.push(h)});var s,l=[H5,$5];{var c,d=[U5,j5(function(h){c.insert(h)})],u=F5((0,Ps.default)(l).call(l,n,d)),p=function(h){return qn(L5(h),u)};s=function(h,v,_,g){c=_,p(h?h+"{"+v.styles+"}":v.styles),g&&(f.inserted[v.name]=!0)}}var f={key:t,sheet:new Dk({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};K5=function(e){var t=z5(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=Dr(s,t.registered,void 0);return Ms(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=Dr(s,t.registered),d="animation-"+c.name;return _k(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=Dr(s,t.registered);_k(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return ep(t.registered,r,Y5(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){(0,Te.default)(a).call(a,function(s){t.inserted[s]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:(0,tp.default)(po).call(po,null,t.registered),merge:(0,tp.default)(ep).call(ep,null,t.registered,r)}},Y5=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,ao.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},Q5=K5({key:"css"}),X5=Q5.css,Z5=(e,t)=>{var a;let r=x({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 b("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 dA.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(b("span",{style:r,children:d}))}n.push(c(s,t)),i=l+s[0].length}else{let d=e.substring(i);n.push(b("span",{style:r,children:d}));break}}let o=X5`
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]:_("div",{className:o,children:n})},I5=({message:e,type:t="info",duration:r=3e3,onClose:n,position:i="top",customStyle:o})=>{let[a,s]=Gt(!0);Zr(()=>{let d=setTimeout(()=>{s(!1),setTimeout(()=>{n==null||n()},300)},r);return()=>clearTimeout(d)},[r,n]);let l=nr(()=>{let d=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10);return Math.max(20,d)},[]),c=D`
563
+ `;return n.length===1?n[0]:b("div",{className:o,children:n})},e3=({message:e,type:t="info",duration:r=3e3,onClose:n,position:i="top",customStyle:o})=>{let[a,s]=Jt(!0);nn(()=>{let d=setTimeout(()=>{s(!1),setTimeout(()=>{n==null||n()},300)},r);return()=>clearTimeout(d)},[r,n]);let l=ar(()=>{let d=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10);return Math.max(20,d)},[]),c=D`
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 _("div",{className:`toast toast-${t}`,style:c.styles,children:e})},E5=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10),Gk=Math.max(20,E5),Bk=12,JA=[],GA=[];Or=(e,t)=>w(void 0,null,function*(){var p;let{iframe:r,emotionCache:n}=yield Lk.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"?JA:GA;s.push(o);let l=w5(e,t),c=wA(),d=vA[c].translations;function u(){i==null||i.body.removeChild(o);let f=s.indexOf(o);f!==-1&&s.splice(f,1),Hk(a),Lk.release()}setTimeout(()=>Hk(a),0),vr(_(hA,{value:n,children:_(_A,{definition:d,children:_(I5,{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)}),Vk={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"}},k5=`
613
+ `;return b("div",{className:`toast toast-${t}`,style:c.styles,children:e})},t3=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10),bk=Math.max(20,t3),wk=12,_A=[],bA=[];Lr=(e,t)=>y(void 0,null,function*(){var p;let{iframe:r,emotionCache:n}=yield fk.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"?_A:bA;s.push(o);let l=Z5(e,t),c=Zk(),d=Kk[c].translations;function u(){i==null||i.body.removeChild(o);let f=s.indexOf(o);f!==-1&&s.splice(f,1),Ik(a),fk.release()}setTimeout(()=>Ik(a),0),Er(b(Wk,{value:n,children:b(Qk,{definition:d,children:b(e3,{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)}),Ek={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"}},r3=`
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
- `,A5=()=>_("div",{style:Vk.container,children:[_("style",{children:k5}),_("div",{style:Vk.spinner})]});tY=vo()});function BA(){return w(this,null,function*(){if(bp)return bp;let t=`${E.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com"}/api/user-retention/exit-recommendations?objectId=${E.mpId}&from=GAME_DETAIL`,{response:{data:r}}=yield te(t);return bp=r,r})}function HA(){return w(this,null,function*(){let e=new Ot;if(E.mpType!=="game")return e.resolve(!1),e.promise;if(wp)return e.resolve(!0),e.promise;let t=yield BA();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:i}=t.data;wp=!0;let o={domain:"GAME",buttons:t.data.buttons.map(s=>`${s.type}-${s.text}`).join(","),list:r.games.map(s=>s.gameId).join(",")};U("RecommendedGuide",C({eventType:G.View},o));let a=SA({games:r.games,title:n,buttons:i,onClose:s=>{var l;switch(wp=!1,s.type){case"quit":U("RecommendedGuide",{eventType:G.Click,type:"QUIT",domain:"GAME"}),e.resolve(!1);break;case"dismiss":U("RecommendedGuide",C({eventType:G.Hide},o)),e.resolve(!0),a.destroy();break;case"navigate":if((l=s.data)!=null&&l.game){let c=s.data.game;S5(c),U("GameItem",{eventType:G.Click,gameId:c.gameId,layerName:"RecommendedGuide",domain:"GAME"}),setTimeout(()=>{e.resolve(!1)},0)}else e.resolve(!0);a.destroy();break;default:U("RecommendedGuide",C({eventType:G.Hide},o)),e.resolve(!0);break}}});return e.promise})}var bp,S5,wp,VA=S(()=>{"use strict";B();be();R();ar();vt();yt();bp=null;BA();S5=e=>{var a;let{data:t}=j("envSync"),r=new URL(t.schema),n=new URLSearchParams(r.search);n.set("gameId",e.gameId),n.set("joliSource",E.encodeJoliSourceQuery({__mpType:"game",__orientation:(a=e.orientation)!=null?a:"VERTICAL"}));let o=`${`https://${e.gameId}.content.jolibox.com/`}index.html?${n.toString()}`;j("openSchemaSync",{schema:o})},wp=!1});function C5(e){let t=C(C({},x5),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:b,containerTransition:k,iframeTransition:x}=p();ae=document.createElement("div"),ae.id="jolibox-modal-overlay",ae.style.cssText=`position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.5); z-index:1000; display:flex; justify-content:center; align-items:flex-end; transition:${b}; opacity:0; visibility:hidden;`,X=document.createElement("div"),X.id="jolibox-modal-container",X.style.cssText=`width:100%; height:${n}; background:white; border-radius:12px 12px 0 0; overflow:hidden; box-shadow:0 -2px 10px rgba(0,0,0,0.2); transform:translateY(100%); transition:${k};`;let P=document.createElement("div");P.id="jolibox-modal-loading",P.style.cssText="position:absolute; top:50%; left:50%; transform:translate(-50%, -50%); width:40px; height:40px; border:4px solid #f3f3f3; border-top:4px solid #3498db; border-radius:50%; animation:spin 1s linear infinite;";let T=document.createElement("style");T.textContent="@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }",document.head.appendChild(T);let A=document.createElement("div");if(A.style.cssText="width:100%; height:100%; display:flex; flex-direction:column; padding-bottom:env(safe-area-inset-bottom, 0); position:relative;",wt=document.createElement("iframe"),wt.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${x};`,wt.src=r,wt.onload=()=>{P.parentNode&&P.parentNode.removeChild(P),wt.style.opacity="1",v(),l==null||l(),ie.emit("onModalIframeLoaded",{url:r})},A.appendChild(wt),A.appendChild(P),X.appendChild(A),i){let O=document.createElement("div");O.style.cssText="position:absolute; top:10px; right:10px; width:30px; height:30px; background:rgba(0,0,0,0.1); border-radius:15px; display:flex; justify-content:center; align-items:center; cursor:pointer; z-index:10;",O.innerHTML="\u2715",O.onclick=g,X.appendChild(O)}ae.appendChild(X),document.body.appendChild(ae),ae.addEventListener("click",function(O){O.target===ae&&g()}),o&&y()}function v(){!ae||!X||u||(ae.style.visibility="visible",a?requestAnimationFrame(()=>{ae&&(ae.style.opacity="1"),X&&(X.style.transform="translateY(0)"),u=!0}):(ae&&(ae.style.opacity="1"),X&&(X.style.transform="translateY(0)"),u=!0),j("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:E.webviewId}))}function y(){if(!X)return;let b=P=>{c=P.touches[0].clientY},k=P=>{if(!u)return;d=P.touches[0].clientY;let T=d-c;T>0&&(X&&(X.style.transition="none",X.style.transform=`translateY(${T}px)`),P.preventDefault())},x=()=>{!u||!X||(X.style.transition=a?"transform 0.3s ease":"none",d-c>80?g():X.style.transform="translateY(0)")};X.addEventListener("touchstart",b),X.addEventListener("touchmove",k),X.addEventListener("touchend",x)}function g(){!ae||!X||!u||(a?(X.style.transform="translateY(100%)",ae.style.opacity="0"):ae.style.visibility="hidden",u=!1,j("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:E.webviewId}),setTimeout(()=>{ae&&(ae.remove(),ae=null,X=null,wt=null,s==null||s(),ie.emit("onModalIframeClosed",{url:r}))},f()))}return h(),{close:g}}function $A(){return window.joliboxUI=F(C({},window.joliboxUI),{createIframeModal:C5}),()=>{window.joliboxUI=void 0,ae&&ae.parentNode&&ae.parentNode.removeChild(ae),X&&X.parentNode&&X.parentNode.removeChild(X),wt&&wt.parentNode&&wt.parentNode.removeChild(wt),ae=null,X=null,wt=null}}var x5,ae,X,wt,WA=S(()=>{"use strict";be();B();R();x5={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},ae=null,X=null,wt=null});var QA={};Nf(QA,{config:()=>F5});function O5(){ma.on("isAdShowing",e=>{Js=e,gr(Js)&&j("updateContainerConfigSync",{displayCapsuleButton:!Js,webviewId:E.webviewId})})}function P5(){ie.on("onInterceptSystemExit",({intercept:e})=>{zA=e})}function R5(){ie.on("onInterceptBackPress",({intercept:e})=>{T5=e}),tt("onBeforeBackPress",({uuid:e,disableExitRecommendDialog:t})=>{var r,n;YA(t),ie.emit("onBackPress",{}),(n=(r=globalThis.joliboxJSCore)==null?void 0:r.doBackPress)==null||n.call(r,e)})}function N5(){ie.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),U("onDocumentReady",{start_timestamp:Bs,timestamp:Date.now()})})}function D5(){tt("onI18nChanged",({language:e})=>{ie.emit("onI18nChanged",{i18n:e})})}function L5(e){E.mpType==="game"&&It.start(e)}function M5(){tt("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&E.onEnvConfigChanged({hostUserInfo:e}),ie.emit("LifecycleEvent.onReady",C({},E.hostUserInfo?E.hostUserInfo:{isLogin:!1})),U("joliboxServiceReady",{start_timestamp:Bs,timestamp:Date.now()}),L5(t),bA(()=>E.language)}),tt("onBeforeExit",({uuid:e,disableExitRecommendDialog:t})=>{var r;YA(t),(r=globalThis.joliboxJSCore)==null||r.doExit(e)})}function q5(){let e=()=>{U("onBeforeExit",{timestamp:Date.now()}),Fs==null||Fs(),js==null||js(),It.close(Date.now()-Bs)},t=()=>Js||zA;ht.onDoExit(()=>w(this,null,function*(){return t()?!0:gr(E.shouldInterupt)?(E.shouldInterupt||e(),E.shouldInterupt):Gs!=null&&Gs.canShowRecommended&&!KA&&(yield HA())?!0:(e(),!1)})),ht.onDoBackPress(()=>w(this,null,function*(){return!!t()}))}function U5(){return w(this,null,function*(){try{let e="/api/fe-configs/js-sdk/basic-meta",{response:{data:t}}=yield te(e);t&&(Gs=t)}catch(e){console.error("fetchMetaConfig error:",e)}})}function F5(){Bs=Date.now(),M5(),O5(),P5(),R5(),q5(),N5(),D5(),U5(),js=$A(),Fs=ch()}var Fs,js,Bs,Js,Gs,zA,T5,KA,YA,XA=S(()=>{"use strict";be();B();R();yt();uh();Cc();VA();vt();ar();WA();Js=!1,Gs=null,zA=!1,T5=!1,KA=!1,YA=e=>{gr(e)&&(KA=e)};ht.onReady(()=>{})});var ZA,j5,J5,G5,B5,eS=S(()=>{"use strict";R();Ye();be();B();ZA=Y(),j5="env",J5="getSystemInfoSync",G5=H(J5,{implement:()=>{var r;let e=j("envSync"),{data:t}=e;return{system:t.deviceInfo.system,platform:t.deviceInfo.platform.toLowerCase(),version:t.sdkInfo.jssdkVersion,pixelRatio:t.deviceInfo.pixelRatio,language:t.deviceInfo.lang,brand:t.deviceInfo.brand,appName:(r=t.hostInfo)==null?void 0:r.appName,SDKVersion:t.sdkInfo.jssdkVersion,viewport:{statusBarHeight:E.viewport.statusBarHeight,navigationBarHeight:E.viewport.navigationBarHeight}}}}),B5=H(j5,{implement:()=>{var t;let e=j("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});ZA.registerCommand("API.getSystemInfoSync",G5);ZA.registerCommand("API.env",B5);L("env",{version:"1.0.0"});L("getSystemInfoSync",{version:"1.0.0",properties:{viewport:"1.0.33"}})});var tS=m(Ip=>{"use strict";R();Ye();gt();be();yt();B();var H5="exitGame",V5="onReady",$5="onJoliboxShow",W5="onJoliboxHide",Hs=Y(),Vs=Bo(xe),z5=ue(H5,{paramsSchema:I.tuple(I.function(),I.boolean().optional().default(!1)),implement:(e,t=!1)=>w(Ip,null,function*(){Vs(e).call(Ip),gr(E.shouldInterupt)&&!E.shouldInterupt&&E.from&&rm("onRetentionResult",{shouldStay:t},E.from,!0),t||E.setDoExitDirectly(),yield _e("exitAppAsync")})}),K5=H($5,{paramsSchema:I.tuple(I.function()),implement(e){let t=Vs(e);tt("onJoliboxEnterForeground",()=>{t.call(this),yi.emit("visible",!0)})}}),Y5=H(W5,{paramsSchema:I.tuple(I.function()),implement(e){let t=Vs(e);tt("onJoliboxEnterBackground",()=>{t.call(this),yi.emit("visible",!1)})}}),Q5=H(V5,{paramsSchema:I.tuple(I.function()),implement(e){let t=Vs(e);ie.on("LifecycleEvent.onReady",r=>{t(r)})}});Hs.registerCommand("LifecycleSDK.exit",z5);Hs.registerCommand("LifecycleSDK.onReady",Q5);Hs.registerCommand("LifecycleSDK.onJoliboxShow",K5);Hs.registerCommand("LifecycleSDK.onJoliboxHide",Y5);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 rS(e){let t={};if(!Ur(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 nS(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 iS(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function oS(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!Ur(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 aS=S(()=>{"use strict";R()});var X5,Z5,Ep,kp,sS,e3,t3,r3,lS=S(()=>{"use strict";Jr();_c();Ye();aS();R();gt();B();X5=15,Z5=Vo("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:E.baseApiHost}),Ep=0,kp=[],sS=Bo(xe),e3=(e,t)=>{let r=e.filter(t),n=e.filter(i=>!t(i));return e.length=0,e.push(...n),r},t3=e=>{let t=new Ot,r=()=>{};return H("request",{paramsSchema:I.tuple(I.object({url:I.string(),method:I.string(),headers:I.object().optional(),data:I.or(I.object(),I.array()).optional(),query:I.object().optional(),dataType:I.string().default("json"),responseType:I.string().default("text"),enableCache:I.boolean().default(!1),appendHostCookie:I.boolean().default(!0),timeout:I.number().default(3e4),success:I.function(),fail:I.function()})),implement(i){let o=()=>w(this,null,function*(){var s,l,c;let a=sS(i.fail);try{if(Ep+=1,t.state!=="pending")return;let{data:d,dataType:u,responseType:p,enableCache:f,appendHostCookie:h}=i,v=rS((s=i.headers)!=null?s:{}),y=nS(i.method),g=iS(i.timeout),b=oS(i.url,y,d),k=sS(i.success),x=Object.assign({},i,{method:y,header:h?void 0:v,data:y==="GET"||y==="HEAD"?void 0:d,enableCache:f,query:(l=i.query)!=null?l:{},dataType:u,responseType:p,appendHostCookie:h});g&&(x.timeout=g);let P=Z5(b,x);{let{response:T}=yield P,{code:A,data:O,message:J}=T;if(O&&typeof O=="object"&&"status"in O&&O.status!==200)throw Dt({code:O.status||-1,msg:`request:fail status ${O.status}`});t.resolve({code:A!=null?A:"SUCCESS",data:O,message:J!=null?J:"request:ok"}),k({code:"SUCCESS",message:"request:ok",data:O})}}catch(d){t.reject(d),a({code:"FAILURE",message:"httpRequst: failed"})}finally{Ep-=1,(c=kp.shift())==null||c()}});return Ep>=X5?(r=()=>{e3(kp,a=>a===o)},kp.push(o)):o(),t.promise}})(e),{abort(){t.reject(Dt({code:-1,msg:"request:fail abort"})),r()}}},r3=Y();r3.registerCommand("HttpSDK.request",t3);L("request",{version:"1.0.0"})});var n3,i3,o3,Ap,cS=S(()=>{"use strict";R();be();Ye();n3=H("showKeyboard",{paramsSchema:I.tuple(I.object({defaultValue:I.string().optional().default(""),multiple:I.boolean().optional().default(!1),maxLength:I.unknown().optional().default(1e5)})),implement(e){var n;let t=Math.floor((n=Number(e.maxLength))!=null?n:1e5),{defaultValue:r}=e;r&&t&&(r=r.slice(0,t)),j("showKeyboardSync",F(C({},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"}});i3=H("updateKeyboard",{paramsSchema:I.tuple(I.object({value:I.string()})),implement(e){j("updateKeyboardSync",e)}});L("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});o3=H("hideKeyboard",{implement(){j("hideKeyboardSync")}});L("keyboard.hideKeyboard",{version:"1.0.0"});Ap=Y();Ap.registerCommand("KeyboardSDK.showKeyboard",n3);Ap.registerCommand("KeyboardSDK.updateKeyboard",i3);Ap.registerCommand("KeyboardSDK.hideKeyboard",o3)});var uS=m($s=>{"use strict";R();Ye();yt();var Sp=Y(),a3=ue("levelFinished",{paramsSchema:I.tuple(I.object({levelId:I.or(I.string(),I.number()),duration:I.number().optional(),rating:I.number().optional(),score:I.number().optional(),variation:I.string().optional()})),implement:e=>w($s,null,function*(){let{levelId:t,duration:r,rating:n,score:i,variation:o}=e,a=[];a.push(It.tracker("LevelFinished",{levelId:t,duration:r,rating:n,score:i,variation:o})),a.push(It.reporter({event:"COMPLETE_GAME_LEVEL",extraParams:{inGameInfo:{levelId:t,duration:r,rating:n,score:i}}})),yield Promise.all(a)})}),s3=ue("gamePlayEnded",{paramsSchema:I.tuple(I.object({duration:I.number().optional(),rating:I.number().optional(),score:I.number(),variation:I.string().optional()})),implement:e=>w($s,null,function*(){let{duration:t,rating:r,score:n,variation:i}=e,o=[];o.push(It.tracker("GamePlayEnded",{duration:t,rating:r,score:n,variation:i})),o.push(It.reporter({event:"GAME_ENDED",extraParams:{inGameInfo:{duration:t,rating:r,score:n}}})),yield Promise.all(o)})}),l3=ue("levelUpgrade",{paramsSchema:I.tuple(I.object({levelId:I.or(I.string(),I.number()),name:I.string().optional()})),implement:r=>w($s,[r],function*({levelId:e,name:t}){let n=[];n.push(It.tracker("LevelUpgrade",{name:t,levelId:e})),n.push(It.reporter({event:"GAME_LEVEL_UP",extraParams:{inGameInfo:{levelId:e,levelName:t}}})),yield Promise.all(n)})});Sp.registerCommand("TaskTrackerSDK.levelFinished",a3);Sp.registerCommand("TaskTrackerSDK.gamePlayEnded",s3);Sp.registerCommand("TaskTrackerSDK.levelUpgrade",l3);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 xp,Cp,Tp,c3,dS,Ws=S(()=>{"use strict";B();be();Ye();R();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"}});xp=new Map;tt("onLoginStateChange",({isLogin:e,token:t,uuid:r,isFirstLogin:n,extra:i})=>{let o=xp.get(r);o&&(o.resolve({isLogin:e,token:t,isFirstLogin:n,extra:i}),xp.delete(r))});Cp=(e,t=!1)=>w(void 0,null,function*(){var u;let{data:{isLogin:r}}=yield _e("checkLoginAsync");if(r)return{isLogin:!0,token:(u=E.hostUserInfo)==null?void 0:u.token};let{skipLogin:n,triggerFrom:i}=e!=null?e:{},o=j("loginSync",{skipLogin:n,triggerFrom:i}),{data:{uuid:a}}=o;if(!a)throw Dt({code:-1,msg:"login failed"});let s=new Ot;xp.set(a,s);let l=yield s.promise;E.onEnvConfigChanged({hostUserInfo:l});let p=l,{extra:c}=p,d=je(p,["extra"]);return ie.emit("onLoginComplete",d),t?l:d}),Tp=ue("login",{paramsSchema:I.tuple(I.object({skipLogin:I.boolean().optional(),triggerFrom:I.string().optional()}).optional()),implement(e){return w(this,null,function*(){return yield Cp(e!=null?e:{})})}}),c3=ue("checkSession",{implement(){return w(this,null,function*(){let{data:{isLogin:e}}=yield _e("checkLoginAsync");return{isLogin:e}})}}),dS=Y();dS.registerCommand("API.login",Tp);dS.registerCommand("API.checkSession",c3)});var pS,fS=S(()=>{"use strict";pS=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 Un(e){return t=>w(this,null,function*(){var l;let{dailyMaxPopUps:r,minInterval:n}=t,i=yield gi(e);if(!i.data)return{canShow:!0,isFirst:!0};let o=mS(i.data),a=pS(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 Fn(e){return()=>w(this,null,function*(){var i;let t=Date.now(),r=yield gi(e),n=mS((i=r.data)!=null?i:"[]");n.push(t),n.sort((o,a)=>a-o).splice(8),yield da(e,JSON.stringify(n))})}var mS,hS,gS,vS,yS,_S,bS,wS,IS,ES,kS,AS,SS,zs=S(()=>{"use strict";pa();fS();mS=e=>{let t;try{t=JSON.parse(e)}catch(r){t=[]}return t};hS=Un("joli_coin_use_modal_frequency"),gS=Un("joli_coin_payment_frequency"),vS=Un("joli_coin_unlogin_modal_frequency"),yS=Un("joli_gem_use_modal_frequency"),_S=Un("joli_gem_payment_frequency"),bS=Un("joli_gem_unlogin_modal_frequency");wS=Fn("joli_coin_use_modal_frequency"),IS=Fn("joli_coin_payment_frequency"),ES=Fn("joli_coin_unlogin_modal_frequency"),kS=Fn("joli_gem_use_modal_frequency"),AS=Fn("joli_gem_payment_frequency"),SS=Fn("joli_gem_unlogin_modal_frequency")});var Op,Ks,Pp=S(()=>{"use strict";vt();Op=Promise.resolve(),Ks=(e,t)=>w(void 0,null,function*(){Op=Op.then(()=>w(void 0,null,function*(){yield te(t,{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield Op})});var Ys,Qs,xt,Xs,en,Pr,sr,Zs,jn,u3,q,Jn,Gn,Ze=S(()=>{"use strict";R();Ys="UNLOCK_OPTIONS_CHANGED",Qs="INVOKE_PAYMENT",xt="ON_PAYMENT_RESULT",Xs="ON_USE_MODAL_EVENT",en="ON_USE_MODAL_RESULT",Pr="ON_USE_MODAL_FREQUENCY",sr="ON_USE_UNLOGIN_MODAL_EVENT",Zs="INVOKE_UNLOGIN_MODAL_EVENT",jn=new Nt,u3=()=>({on:jn.on.bind(jn),off:jn.off.bind(jn),emit:jn.emit.bind(jn)}),q=u3(),Jn={charge:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},useJolicoin:{dailyMaxPopUps:2,minInterval:8*60*60*1e3}},Gn={show:!0,minInterval:8*60*60*1e3}});function it(e,t){let r=null,n=null,i=null,o=()=>{if(i){r=Promise.resolve(i);return}r=new Promise(a=>{n=a})};return o(),e.on(t,(...a)=>{let s=a[0];i=s,n&&(n(s),n=null)}),{getData:()=>(r||o(),r),getCachedData:()=>i,clearCache:()=>{i=null,r=null},getFreshData:()=>(i=null,r=null,o(),r),updateData:a=>{if(i)return i=C(C({},i),a),r=Promise.resolve(i),n&&(n(i),n=null),i}}}var Rr=S(()=>{"use strict"});var TS=m(Rp=>{"use strict";zs();Pp();Ze();Ze();ar();yt();R();Rr();var d3={JOLI_COIN:{frequencyConfigKey:"useJolicoin",trackEvents:{popupShow:"unlock_popup_show",coinUnlock:"coin_unlock_click",adUnlock:"ad_unlock_click"},frequencyChecker:hS,frequencyUpdater:wS,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:yS,frequencyUpdater:kS,apiEndpointAutoDeduct:"/api/joli-gem/user-config"}},xS=vo(),CS=it(q,Pr);CS.getData();q.on(Xs,(e,t)=>w(Rp,null,function*(){let r=t.currency,n=d3[r];if(e.includes("ADS-")){yield xS.show({duration:3e3});let l=yield CS.getData(),{canShow:c,isFirst:d}=yield n.frequencyChecker(l.joliCoinUseAndCharge[n.frequencyConfigKey]);console.log(`${r} modal show by frequency`,c,d),xS.hide();let{balance:u}=t.userCurrency;if(u>=t.quantity&&t.enableAutoDeduct&&!d){q.emit(en,{useModalResult:"CONFIRM"});return}if(!c){q.emit(en,{useModalResult:"FAILED"});return}}U(n.trackEvents.popupShow,{eventType:G.View,targetType:"game",currency:r});let{userCurrency:i,enableAutoDeduct:o,quantity:a}=t,s=OA({data:{enableAutoDeduct:o,userCurrency:i,quantity:a,currency:r},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{U(n.trackEvents.coinUnlock,{targetType:"game",eventType:G.Click,coinConsume:t.quantity,ifAutoUnlock:t.enableAutoDeduct,currency:r}),q.emit(en,{useModalResult:"CONFIRM"}),s.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:l})=>{l==="FAILED"&&U(n.trackEvents.adUnlock,{targetType:"game",eventType:G.Click,currency:r}),q.emit(en,{useModalResult:(l!=null?l:"")==="CANCEL"?"CANCEL":"FAILED"}),s.destroy()}},onEnableDeductChanged:l=>w(Rp,null,function*(){yield Ks(l,n.apiEndpointAutoDeduct)})}});yield n.frequencyUpdater()}))});function OS(){let e=new Map;return{registerPaymentHandler(r,n){e.set(r,n)},invokePayment(r,...n){return w(this,null,function*(){let i=e.get(r);if(!i)return{code:"FAILED",message:`[joliboxSDK]: ${r} payment not supported in this platform`};try{return yield i(...n)}catch(o){return xe(o),{code:"FAILED",message:`[joliboxSDK]: paymenterror ${o}`}}})}}}var PS=S(()=>{"use strict";gt()});var el=S(()=>{"use strict"});var p3,Bn,Nr,f3,tn,Np=S(()=>{"use strict";el();R();B();vt();p3=()=>{let[e,t]=[gm,ym].map(r=>(n,i,o)=>new r(n,i,o));return{createPaymentError:e,createPaymentInternalError:t}},{createPaymentError:Bn,createPaymentInternalError:Nr}=p3(),f3=E.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",tn=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startPayment=t=>w(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw Bn(n,1001);return yield this.pay()});this.cancelOrder=t=>w(this,null,function*(){var n,i;let{response:r}=yield te(`/api/orders/${t}/cancel`,{method:"POST",data:{}});if(r.code!=="SUCCCESS")throw Bn((i=(n=r.message)!=null?n:r.errMsg)!=null?i:"",1003)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",E.deviceInfo.platform),t.set("joliSource",E.encodeJoliSourceQuery(C({},this.generatePaymentContext()))),`${f3}//payment/callback?${t.toString()}`}}get orderId(){return this._orderId}get status(){return this._orderStatus}}});var Dp,NS,DS=S(()=>{"use strict";vt();Np();el();Dp=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=()=>w(this,null,function*(){let r=this.generateCallbackUrl();return console.info("callbackUrl",r),{code:"SUCCESS",message:"jolicoin payment success"}})}placeOrder(r){return w(this,null,function*(){var n,i,o,a;try{let{response:s}=yield te("/api/orders/checkout/joli-coin",{method:"POST",data:{productId:r.productId}});if(s.code!=="SUCCESS")throw Bn((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),Nr((a=JSON.stringify(s))!=null?a:"jolicoin placeorder failed",1002)}})}},NS=()=>{let e=new Map;return t=>w(void 0,null,function*(){let r=e.get(t);return r||(r=new Dp(t),e.set(t,r)),yield r.startPayment({productId:t}),{code:"SUCCESS",message:"jolicoin payment success"}})}});var LS,MS=S(()=>{"use strict";LS={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 Lp,qS,Mp,qp,m3,Up,US=S(()=>{"use strict";vt();Np();el();be();R();B();ar();MS();Lp=new Map;tt("onPaymentStateChange",e=>{console.info("onPaymentStateChange",e);let{orderUUID:t,status:r,totalAmount:n,orderResponse:i}=e,o=Lp.get(t);if(o){if(r==="SUCCESS")Or("{slot-success} {slot-i18n-jolicoin.unlockSuccess}",{position:"center",duration:3e3}),o.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{totalAmount:n}});else{if(r==="FAILED"&&um(i==null?void 0:i.errNo)&&(i==null?void 0:i.errNo)!==0)throw Nr(`jolicoin payment failed: ${i==null?void 0:i.errMsg}`,1002);let a=LS[r];a&&Or(`{slot-error} {slot-i18n-jolicoin.${a}}`,{position:"center",duration:3e3}),o.resolve({code:"FAILED",message:"jolicoin payment failed"})}Lp.delete(t)}});qS=e=>w(void 0,null,function*(){var n,i;let t=new Ot,r;try{let o=yield _e("requestPaymentSync",{paymentBody:{appStoreProductId:e.appStoreProductId,appAccountToken:e.appAccountToken}});if(r=(n=o.data)==null?void 0:n.orderUUID,console.info("---purchaseGem---",o),!r)throw Nr("orderUUID is null",1002);Lp.set(r,t)}catch(o){throw Nr((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),Mp=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=()=>w(this,null,function*(){return yield qS({appStoreProductId:this.appStoreProductId})})}placeOrder(r){return w(this,null,function*(){return{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},qp=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=()=>w(this,null,function*(){return yield qS({appStoreProductId:this.appStoreProductId,appAccountToken:this.appAccountToken})})}placeOrder(r){return w(this,null,function*(){var a;console.log("----start place order for ios----");let{response:n}=yield te("/api/orders/iap-init",{method:"GET",appendHostCookie:!0}),{data:i,code:o}=n!=null?n:{};if(console.log("----iap init----",i,o),i.code!=="SUCCESS")throw Nr("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"}})}},m3={android:Mp,ios:qp},Up=()=>{let e=new Map;return t=>w(void 0,null,function*(){let{productId:r,appStoreProductId:n}=t,i=e.get(r);if(!i){let s=m3[E.platform];if(!s)throw Nr("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 Bn(a,1002);return{code:"SUCCESS",message:"jolicoin payment success"}})}});var rn,Fp=S(()=>{"use strict";PS();DS();US();rn=OS();rn.registerPaymentHandler("JOLI_COIN",NS());rn.registerPaymentHandler("JOLI_COIN_IAP",Up());rn.registerPaymentHandler("JOLI_GEM_IAP",Up())});var h3,yo,lr,jp=S(()=>{"use strict";Fp();R();be();vt();h3={JOLI_COIN:"/api/joli-coin/balance-detail",JOLI_GEM:"/api/joli-gem/balance-detail"},yo=class yo{constructor(){this.productInfoCache={JOLI_COIN:[],JOLI_GEM:[]}}getJolicoinProductsInfo(t){return w(this,null,function*(){var n;if(this.productInfoCache[t].length>0)return this.productInfoCache[t];let r=yield yo.getProductsInfo(h3[t]);return this.productInfoCache[t]=(n=r==null?void 0:r.paymentChoices)!=null?n:[],this.productInfoCache[t]})}purchase(t,r){return w(this,null,function*(){var a;let i=(a=(yield this.getJolicoinProductsInfo(t)).find(s=>s.productId===r))==null?void 0:a.appStoreProductId;if(!i)throw new Error("appStoreProductId not found");return yield rn.invokePayment(t==="JOLI_COIN"?"JOLI_COIN_IAP":"JOLI_GEM_IAP",{productId:r,appStoreProductId:i})})}static mergeResponseData(t,r){Object.keys(r).forEach(n=>{let i=t.paymentChoices.find(o=>o.appStoreProductId===n);i&&(i.totalAmountStr=r[n].price)}),t.paymentChoices=t.paymentChoices.filter(n=>!nc(n.totalAmountStr))}static getProductsInfo(t){return w(this,null,function*(){return Promise.race([this.getProductsInfoInternal(t),new Promise((r,n)=>{setTimeout(()=>{n(new Error("[PaymentService] Request timeout after 3 seconds"))},3e3)})])})}static getProductsInfoInternal(t){return w(this,null,function*(){var a,s,l;let{response:r}=yield te(t,{method:"GET",appendHostCookie:!0,responseType:"json"});if(!((a=r.data)!=null&&a.data))throw new Error("get products info failed");let n=r.data.data,i=this.getPaymentChoicesFromCache(t,n.paymentChoices);if(i)return console.log("[PaymentService] Using cached paymentChoices"),{balance:n.balance,enableAutoDeduct:n.enableAutoDeduct,paymentChoices:i};console.log("[PaymentService] Fetching fresh paymentChoices from native");let{data:o}=yield _e("requestProductDetailsAsync",{appStoreProductIds:(l=(s=n.paymentChoices)==null?void 0:s.filter(c=>typeof c.appStoreProductId=="string").map(c=>c.appStoreProductId))!=null?l:[]});if(o&&(this.mergeResponseData(n,o),this.cachePaymentChoices(t,n.paymentChoices)),n.paymentChoices.length===0)throw new Error("paymentChoices is empty");return n})}static getPaymentChoicesFromCache(t,r){let n=this.paymentChoicesCache.get(t);if(!n)return null;if(Date.now()>n.expiresAt)return this.paymentChoicesCache.delete(t),null;let i=this.extractProductIds(r),o=n.productIds;return this.arraysEqual(i,o)?this.updateChoicesWithServerData(n.choices,r):(console.log("[PaymentService] Server paymentChoices changed, invalidating cache"),this.paymentChoicesCache.delete(t),null)}static cachePaymentChoices(t,r){this.paymentChoicesCache.set(t,{choices:JSON.parse(JSON.stringify(r)),timestamp:Date.now(),expiresAt:Date.now()+this.PAYMENT_CHOICES_CACHE_DURATION,productIds:this.extractProductIds(r)}),console.log(`[PaymentService] Cached ${r.length} payment choices for ${t}`)}static extractProductIds(t){return t.map(r=>r.productId).filter(Boolean).sort()}static arraysEqual(t,r){return t.length!==r.length?!1:t.every((n,i)=>n===r[i])}static updateChoicesWithServerData(t,r){let n=new Map(r.map(i=>[i.productId,i]));return t.map(i=>{let o=n.get(i.productId);return o?F(C({},i),{quantity:o.quantity}):i})}static clearPaymentChoicesCache(t){t?(this.paymentChoicesCache.delete(t),console.log(`[PaymentService] Cleared cache for ${t}`)):(this.paymentChoicesCache.clear(),console.log("[PaymentService] Cleared all payment choices cache"))}static getPaymentChoicesCacheStats(){let t=Date.now(),r=0,n=0;for(let i of this.paymentChoicesCache.values())t>i.expiresAt?n++:r++;return{cacheCount:this.paymentChoicesCache.size,validCount:r,expiredCount:n}}static clearExpiredPaymentChoicesCache(){let t=Date.now();for(let[r,n]of this.paymentChoicesCache)t>n.expiresAt&&this.paymentChoicesCache.delete(r)}};yo.paymentChoicesCache=new Map,yo.PAYMENT_CHOICES_CACHE_DURATION=10*60*1e3;lr=yo});var FS=m(tl=>{"use strict";Ze();ar();B();Ws();R();zs();Fp();ar();Ye();yt();Pp();Rr();jp();var Jp={JOLI_COIN:{frequencyConfigKey:"charge",trackEvents:{modalShow:"coinorder_show",orderClick:"coinorder_click",payEnsure:"order_pay_ensure",payResult:"order_pay_result",adUnlock:"ad_unlock_click"},frequencyChecker:gS,frequencyUpdater:IS,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:_S,frequencyUpdater:AS,apiEndpoint:"/api/joli-gem/balance-detail",apiEndpointAutoDeduct:"/api/joli-gem/user-config",paymentType:"JOLI_GEM_IAP"}},Hn=vo(),g3=it(q,Pr);q.on(Qs,(e,t)=>w(tl,null,function*(){var r,n;try{let i=t.currency,o=Jp[i];if(!Xm("requestPaymentSync:paymentBody:appStoreProductId")){console.info("requestPaymentSync:paymentBody:appStoreProductId not supported"),setTimeout(()=>{q.emit(xt,{paymentResult:"FAILED",currency:i})},0);return}if(e.includes("ADS-")){yield Hn.show({duration:3e3});let l=yield g3.getData(),{canShow:c}=yield o.frequencyChecker(l.joliCoinUseAndCharge[o.frequencyConfigKey]);if(console.log(`${i} payment show by frequency`,c),Hn.hide(),!c){q.emit(xt,{paymentResult:"FAILED",currency:i});return}console.log("show by frequency")}yield Hn.show({duration:3e3});let a=yield lr.getProductsInfo(o.apiEndpoint);if(Hn.hide(),!a){q.emit(xt,{paymentResult:"FAILED",currency:i});return}U(o.trackEvents.modalShow,{targetType:"game",eventType:G.View,currency:i});let s=PA({data:{userCurrency:t.userCurrency,quantity:t.quantity,currency:i,paymentChoices:(n=(r=a.paymentChoices)==null?void 0:r.map(l=>{var c;return F(C({},l),{totalAmountStr:(c=l.totalAmountStr)!=null?c:""})}))!=null?n:[],enableAutoDeduct:a.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:l=>w(tl,null,function*(){var u,p,f,h,v,y,g,b;if(U(o.trackEvents.payEnsure,{targetType:"game",eventType:G.Click,payWay:"app_iap",coinAmount:t.quantity,currency:i,orderPrice:(p=(u=a.paymentChoices.find(k=>k.productId===l))==null?void 0:u.totalAmountStr)!=null?p:""}),!((f=E.hostUserInfo)!=null&&f.isLogin)){let{data:k}=yield Tp({skipLogin:!0});if(!(k!=null&&k.isLogin)){console.log("login failed");return}let x=yield lr.getProductsInfo(o.apiEndpoint);if(((h=x==null?void 0:x.balance)!=null?h:0)>=t.quantity){q.emit(xt,{paymentResult:"SUCCESS",currency:i}),s.destroy();return}}console.log("invokeNativePayment",l);let c=(y=(v=a==null?void 0:a.paymentChoices)==null?void 0:v.find(k=>k.productId===l))==null?void 0:y.appStoreProductId;if(!c){q.emit(xt,{paymentResult:"FAILED",currency:i}),s.destroy();return}yield Hn.show({duration:3e3});let{code:d}=yield rn.invokePayment(o.paymentType,{productId:l,appStoreProductId:c});if(Hn.hide(),U(o.trackEvents.payResult,{eventType:G.Other,targetType:"game",payWay:"app_iap",coinAmount:t.quantity,currency:i,orderPrice:(b=(g=a.paymentChoices.find(k=>k.productId===l))==null?void 0:g.totalAmountStr)!=null?b:"",payResult:d}),console.log("payment result",d),d!=="SUCCESS"){console.info("[JoliboxSDK] payment failed in payment.invokePaymet");return}q.emit(xt,{paymentResult:"SUCCESS",currency:i}),s.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:l})=>{q.emit(xt,{paymentResult:(l!=null?l:"")==="CANCEL"?"CANCEL":"FAILED",currency:i}),U(o.trackEvents.adUnlock,{targetType:"game",eventType:G.Click,currency:i}),s.destroy()}},onEnableDeductChanged:l=>w(tl,null,function*(){yield Ks(l,o.apiEndpointAutoDeduct)})},onSelect:l=>{var c,d;U(o.trackEvents.orderClick,{targetType:"game",eventType:G.Click,coinAmount:t.quantity,currency:i,orderPrice:(d=(c=a.paymentChoices.find(u=>u.productId===l))==null?void 0:c.totalAmountStr)!=null?d:""})}});yield o.frequencyUpdater()}catch(i){console.info("payment failed",i),q.emit(xt,{paymentResult:"FAILED",currency:t.currency})}}));lr.getProductsInfo(Jp.JOLI_COIN.apiEndpoint).catch(e=>{console.error("preload joli coin payment details failed",e)});lr.getProductsInfo(Jp.JOLI_GEM.apiEndpoint).catch(e=>{console.error("preload joli gem payment details failed",e)})});var JS=m(rl=>{"use strict";Ze();Rr();zs();vt();gt();R();Ws();ar();yt();var v3={JOLI_COIN:{frequencyChecker:vS,frequencyUpdater:ES,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:bS,frequencyUpdater:SS,trackEvents:{modalExpose:"GemLoginGuideModal",clickConfirm:"GemLoginGuideModal",clickConfirmLogin:"GemLoginGuideModal",modalHide:"GemLoginGuideModal",clickClose:"GemLoginGuideModal",clickWatchAds:"GemLoginGuideModal"},toastMessage:{i18nKey:"{slot-i18ntran-loginGuide.gemRewardTips}",usedText:"Gem Used"}}},jS=it(q,Pr);jS.getData();q.on(Zs,(e,t)=>w(rl,null,function*(){var r;try{let n=t.currency,i=v3[n];if(e.includes("ADS-")){let s=yield jS.getData();if(console.log(`${n} unlogin guide config`,s.loginGuide),!s.loginGuide.show){q.emit(sr,{result:"NOT_SUPPORT"});return}let{canShow:l}=yield i.frequencyChecker(s.loginGuide);if(console.log(`${n} canShowUseModal`,l),!l){q.emit(sr,{result:"FAILED"});return}}let{firstLogin:o}=(r=yield y3())!=null?r:{};if(!(o!=null&&o.reward)){console.log("[JoliboxSDK] unlogin modal reward is empty"),q.emit(sr,{result:"NOT_SUPPORT"});return}U(i.trackEvents.modalExpose,{eventType:G.Expose,currency:n},G.Expose);let a=RA({data:{rewardType:e,rewardValue:o.reward.rewardValue,currency:t.currency},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>w(rl,null,function*(){var d,u,p,f;U(i.trackEvents.clickConfirm,{type:"click_confirm",eventType:G.Click,currency:n},G.Click);let{isLogin:s,extra:l,isFirstLogin:c}=yield Cp({},!0);if(!s){console.log("login failed");return}if(U(i.trackEvents.clickConfirmLogin,{type:"click_confirm_login",isFirstLogin:c,eventType:G.Click,currency:n},G.Click),c&&((d=l==null?void 0:l.firstLogin)!=null&&d.reward)){let{rewardValue:h}=l.firstLogin.reward;Or(i.toastMessage.i18nKey,{i18nParams:{text:i.toastMessage.usedText,coin:h},position:"top",duration:3e3})}q.emit(sr,{result:"SUCCESS",rewards:{claimedRewardValue:(f=(p=(u=l==null?void 0:l.firstLogin)==null?void 0:u.reward)==null?void 0:p.rewardValue)!=null?f:0,isFirstLogin:c!=null?c:!1,currency:t.currency}}),a.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:s})=>{U(i.trackEvents.modalHide,{eventType:G.Hide,currency:n},G.Hide);let l=s==="CANCEL"?"click_close":"click_watch_ads",c=s==="CANCEL"?i.trackEvents.clickClose:i.trackEvents.clickWatchAds;U(c,{type:l,eventType:G.Click,currency:n},G.Click),q.emit(sr,{result:"FAILED"}),a.destroy()}}}});yield i.frequencyUpdater()}catch(n){xe(new _m(n)),q.emit(sr,{result:"FAILED"})}}));var y3=()=>w(rl,null,function*(){var t;let{response:e}=yield te("/api/base/global-config",{method:"GET",appendHostCookie:!0,responseType:"json"});return(t=e.data)==null?void 0:t.data})});var oZ,aZ,sZ,GS=S(()=>{"use strict";oZ=ne(TS()),aZ=ne(FS()),sZ=ne(JS())});function O3(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function P3(e){return typeof e=="string"}function R3(e){return typeof e=="undefined"}function N3(e){return R3(e)||e===null}function D3(e){return typeof e=="function"}function yx(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 _o(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function al(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 J3(e){let t=e.location?al(e.location,zS):null,r=e.target?al(e.target,zS):null;return al(x3(S3({},e),{location:t,target:r}),F3)}function G3(e){let t=e.events.map(n=>J3(n)),r=al(e.device,j3);return[e.protocolVersion,t,r,e.project]}function B3(){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 z3(e){return new Promise(t=>Ix(e)(t))}function Ix(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 K3(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new ko(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 Q3(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)X3(e[n],t[n])}function X3(e,t){if(P3(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(D3(t)){try{if(e instanceof t)return}catch(r){}if(!N3(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function ot(e,t,r){return(t=Z3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Z3(e){var t=eH(e,"string");return typeof t=="symbol"?t:t+""}function eH(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 nl(e,t,r){return(t=tH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function tH(e){var t=rH(e,"string");return typeof t=="symbol"?t:t+""}function rH(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 il(e,t,r){return(t=nH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function nH(e){var t=iH(e,"string");return typeof t=="symbol"?t:t+""}function iH(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cr(e,t,r){return(t=oH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function oH(e){var t=aH(e,"string");return typeof t=="symbol"?t:t+""}function aH(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 sH(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 lH(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 mH(e,t){return Ue(e,0)^45?(((t<<2^Ue(e,0))<<2^Ue(e,1))<<2^Ue(e,2))<<2^Ue(e,3):0}function Ax(e){return e.trim()}function hH(e,t){return(e=t.exec(e))?e[0]:e}function K(e,t,r){return e.replace(t,r)}function rf(e,t){return e.indexOf(t)}function Ue(e,t){return e.charCodeAt(t)|0}function Ao(e,t,r){return e.slice(t,r)}function Vt(e){return e.length}function _f(e){return e.length}function ol(e,t){return t.push(e),e}function gH(e,t){return e.map(t).join("")}function wl(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:bl,column:Yn,length:a,return:""}}function wo(e,t){return fH(wl("",null,null,"",null,null,0),e,{length:-e.length},t)}function vH(){return Se}function yH(){return Se=lt>0?Ue(Qn,--lt):0,Yn--,Se===10&&(Yn=1,bl--),Se}function mt(){return Se=lt<Sx?Ue(Qn,lt++):0,Yn++,Se===10&&(Yn=1,bl++),Se}function $t(){return Ue(Qn,lt)}function sl(){return lt}function xo(e,t){return Ao(Qn,e,t)}function So(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 xx(e){return bl=Yn=1,Sx=Vt(Qn=e),lt=0,[]}function Cx(e){return Qn="",e}function ll(e){return Ax(xo(lt-1,nf(e===91?e+2:e===40?e+1:e)))}function _H(e){for(;(Se=$t())&&Se<33;)mt();return So(e)>2||So(Se)>3?"":" "}function bH(e,t){for(;--t&&mt()&&!(Se<48||Se>102||Se>57&&Se<65||Se>70&&Se<97););return xo(e,sl()+(t<6&&$t()==32&&mt()==32))}function nf(e){for(;mt();)switch(Se){case e:return lt;case 34:case 39:e!==34&&e!==39&&nf(Se);break;case 40:e===41&&nf(e);break;case 92:mt();break}return lt}function wH(e,t){for(;mt()&&e+Se!==57&&!(e+Se===84&&$t()===47););return"/*"+xo(t,lt-1)+"*"+_l(e===47?e:mt())}function IH(e){for(;!So($t());)mt();return xo(e,lt)}function EH(e){return Cx(cl("",null,null,null,[""],e=xx(e),0,[0],e))}function cl(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,h=0,v=1,y=1,g=1,b=0,k="",x=i,P=o,T=n,A=k;y;)switch(h=b,b=mt()){case 40:if(h!=108&&Ue(A,u-1)==58){rf(A+=K(ll(b),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:A+=ll(b);break;case 9:case 10:case 13:case 32:A+=_H(h);break;case 92:A+=bH(sl()-1,7);continue;case 47:switch($t()){case 42:case 47:ol(kH(wH(mt(),sl()),t,r),l);break;default:A+="/"}break;case 123*v:s[c++]=Vt(A)*g;case 125*v:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+d:g==-1&&(A=K(A,/\f/g,"")),f>0&&Vt(A)-u&&ol(f>32?XS(A+";",n,r,u-1):XS(K(A," ","")+";",n,r,u-2),l);break;case 59:A+=";";default:if(ol(T=QS(A,t,r,c,d,i,s,k,x=[],P=[],u),o),b===123)if(d===0)cl(A,t,T,T,x,o,u,s,P);else switch(p===99&&Ue(A,3)===110?100:p){case 100:case 108:case 109:case 115:cl(e,T,T,n&&ol(QS(e,T,T,0,0,i,s,k,i,x=[],u),P),i,P,u,s,n?x:P);break;default:cl(A,T,T,T,[""],P,0,s,P)}}c=d=f=0,v=g=1,k=A="",u=a;break;case 58:u=1+Vt(A),f=h;default:if(v<1){if(b==123)--v;else if(b==125&&v++==0&&yH()==125)continue}switch(A+=_l(b),b*v){case 38:g=d>0?1:(A+="\f",-1);break;case 44:s[c++]=(Vt(A)-1)*g,g=1;break;case 64:$t()===45&&(A+=ll(mt())),p=$t(),d=u=Vt(k=A+=IH(sl())),b++;break;case 45:h===45&&Vt(A)==2&&(v=0)}}return o}function QS(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,v=0,y=0;h<n;++h)for(var g=0,b=Ao(e,u+1,u=pH(v=a[h])),k=e;g<f;++g)(k=Ax(v>0?p[g]+" "+b:K(b,/&\f/g,p[g])))&&(l[y++]=k);return wl(e,t,r,i===0?vf:s,l,c,d)}function kH(e,t,r){return wl(e,t,r,Ex,_l(vH()),Ao(e,2,-2),0)}function XS(e,t,r,n){return wl(e,t,r,yf,Ao(e,0,n),Ao(e,n+1,-1),n)}function Kn(e,t){for(var r="",n=_f(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function AH(e,t,r,n){switch(e.type){case dH:if(e.children.length)break;case uH:case yf:return e.return=e.return||e.value;case Ex:return"";case kx:return e.return=e.value+"{"+Kn(e.children,n)+"}";case vf:e.value=e.props.join(",")}return Vt(r=Kn(e.children,n))?e.return=e.value+"{"+r+"}":""}function SH(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 xH(e){return function(t){t.root||(t=t.return)&&e(t)}}function CH(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function Tx(e,t){switch(mH(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+fl+e+$e+e+e;case 6828:case 4268:return z+e+$e+e+e;case 6165:return z+e+$e+"flex-"+e+e;case 5187:return z+e+K(e,/(\w+).+(:[^]+)/,z+"box-$1$2"+$e+"flex-$1$2")+e;case 5443:return z+e+$e+"flex-item-"+K(e,/flex-|-self/,"")+e;case 4675:return z+e+$e+"flex-line-pack"+K(e,/align-content|flex-|-self/,"")+e;case 5548:return z+e+$e+K(e,"shrink","negative")+e;case 5292:return z+e+$e+K(e,"basis","preferred-size")+e;case 6060:return z+"box-"+K(e,"-grow","")+z+e+$e+K(e,"grow","positive")+e;case 4554:return z+K(e,/([^-])(transform)/g,"$1"+z+"$2")+e;case 6187:return K(K(K(e,/(zoom-|grab)/,z+"$1"),/(image-set)/,z+"$1"),e,"")+e;case 5495:case 3959:return K(e,/(image-set\([^]*)/,z+"$1$`$1");case 4968:return K(K(e,/(.+:)(flex-)?(.*)/,z+"box-pack:$3"+$e+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+z+e+e;case 4095:case 3583:case 4068:case 2532:return K(e,/(.+)-inline(.+)/,z+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Vt(e)-1-t>6)switch(Ue(e,t+1)){case 109:if(Ue(e,t+4)!==45)break;case 102:return K(e,/(.+:)(.+)-([^]+)/,"$1"+z+"$2-$3$1"+fl+(Ue(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~rf(e,"stretch")?Tx(K(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ue(e,t+1)!==115)break;case 6444:switch(Ue(e,Vt(e)-3-(~rf(e,"!important")&&10))){case 107:return K(e,":",":"+z)+e;case 101:return K(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(Ue(e,14)===45?"inline-":"")+"box$3$1"+z+"$2$3$1"+$e+"$2box$3")+e}break;case 5936:switch(Ue(e,t+11)){case 114:return z+e+$e+K(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+$e+K(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+$e+K(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+e+$e+e+e}return e}function qH(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 ml(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 Dr={name:i.name,styles:i.styles,next:Dr},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Dr={name:a.name,styles:a.styles,next:Dr},a=a.next;var s=o.styles+";";return s}return JH(e,t,r)}}var l=r;if(t==null)return l;var c=t[l];return c!==void 0?c:l}function JH(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=ml(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]+"}":ex(s)&&(n+=Bp(o)+":"+tx(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++)ex(a[l])&&(n+=Bp(o)+":"+tx(o,a[l])+";");else{var c=ml(e,t,a);switch(o){case"animation":case"animationName":{n+=Bp(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function Hp(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="";Dr=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=ml(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=ml(r,t,e[s]),n){var l=o;i+=l[s]}rx.lastIndex=0;for(var c="",d;(d=rx.exec(i))!==null;)c+="-"+d[1];var u=qH(i)+c;return{name:u,styles:i,next:Dr}}function Px(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}function nx(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function ix(e,t,r){var n=[],i=Px(e,n,r);return n.length<2?r:i+t(n)}function WH(e,t){Pe.__h&&Pe.__h(ft,e,ax||t),ax=0;var r=ft.__H||(ft.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Nx(e,t){var r=WH(of++,7);return YH(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function zH(){for(var e;e=Rx.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ul),e.__H.__h.forEach(af),e.__H.__h=[]}catch(t){e.__H.__h=[],Pe.__e(t,e.__v)}}function KH(e){var t,r=function(){clearTimeout(n),fx&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);fx&&(t=requestAnimationFrame(r))}function ul(e){var t=ft,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ft=t}function af(e){var t=ft;e.__c=e.__(),ft=t}function YH(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Il(){if(Lr>1)Lr--;else{for(var e,t=!1;Io!==void 0;){var r=Io;for(Io=void 0,sf++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&Lx(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(sf=0,Lr--,t)throw e}}function st(e){if(Lr>0)return e();Lr++;try{return e()}finally{Il()}}function Dx(e){if(ee!==void 0){var t=e.n;if(t===void 0||t.t!==ee)return t={i:0,S:e,p:ee.s,n:void 0,t:ee,e:void 0,x:void 0,r:t},ee.s!==void 0&&(ee.s.n=t),ee.s=t,e.n=t,32&ee.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=ee.s,t.n=void 0,ee.s.n=t,ee.s=t),t}}function Fe(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function re(e){return new Fe(e)}function Lx(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 Mx(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 qx(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 Zn(e){Fe.call(this,void 0),this.x=e,this.s=void 0,this.g=hl-1,this.f=4}function Eo(e){return new Zn(e)}function Ux(e){var t=e.u;if(e.u=void 0,typeof t=="function"){Lr++;var r=ee;ee=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,bf(e),n}finally{ee=r,Il()}}}function bf(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Ux(e)}function XH(e){if(ee!==this)throw new Error("Out-of-order effect");qx(this),ee=e,this.f&=-2,8&this.f&&bf(this),Il()}function Co(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function To(e){var t=new Co(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function ei(e,t){N[e]=t.bind(null,N[e]||function(){})}function gl(e){$p&&$p(),$p=e&&e.S()}function Jx(e){var t=this,r=e.data,n=Gx(r);n.value=r;var i=Nx(function(){for(var s=t,l=t.__v;l=l.__;)if(l.__c){l.__c.__$f|=4;break}var c=Eo(function(){var f=n.value.value;return f===0?0:f===!0?"":f||""}),d=Eo(function(){return!Array.isArray(c.value)&&!Rc(c.value)}),u=To(function(){if(this.N=Bx,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 ZH(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=re(r);return{o:function(a,s){o.value=a,n=s},d:To(function(){this.N=Bx;var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function Gx(e){return Nx(function(){return re(e)},[])}function t4(){st(function(){for(var e;e=jx.shift();)Fx.call(e)})}function Bx(){jx.push(this)===1&&(N.requestAnimationFrame||e4)(t4)}function r4(e,t){let r=ji(e);In(()=>{r.current=e},[e]),Fi(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function ye(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:--n4,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return N.vnode&&N.vnode(c),c}function ur(e,t,r){return(t=h4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h4(e){var t=g4(e,"string");return typeof t=="symbol"?t:t+""}function g4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dr(e,t,r){return(t=b4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b4(e){var t=w4(e,"string");return typeof t=="symbol"?t:t+""}function w4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ve(e,t,r){return(t=I4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I4(e){var t=E4(e,"string");return typeof t=="symbol"?t:t+""}function E4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function at(e,t,r){return(t=k4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function k4(e){var t=A4(e,"string");return typeof t=="symbol"?t:t+""}function A4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nn(e,t,r){return(t=S4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S4(e){var t=x4(e,"string");return typeof t=="symbol"?t:t+""}function x4(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 Wp(e,t,r){return(t=C4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function C4(e){var t=T4(e,"string");return typeof t=="symbol"?t:t+""}function T4(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 et(e,t,r){return(t=O4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O4(e){var t=P4(e,"string");return typeof t=="symbol"?t:t+""}function P4(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=R4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function R4(e){var t=N4(e,"string");return typeof t=="symbol"?t:t+""}function N4(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 _3,pl,mx,hx,BS,b3,w3,gx,I3,E3,HS,k3,A3,VS,S3,x3,C3,vx,T3,L3,M3,$S,q3,WS,U3,_x,bx,wx,zS,F3,j3,Wn,KS,zp,pe,H3,V3,bo,ko,$3,Yp,W3,Gp,Y3,Qp,YS,Vn,Xp,Zp,ef,tf,cH,$e,fl,z,Ex,vf,yf,uH,kx,dH,pH,_l,fH,bl,Yn,Sx,lt,Se,Qn,TH,OH,PH,ZS,RH,NH,DH,LH,MH,UH,FH,jH,Ox,ex,Bp,tx,rx,Dr,GH,BH,HH,VH,$H,Xn,of,ft,Vp,ox,ax,Rx,Pe,sx,lx,cx,ux,dx,px,fx,QH,ee,Io,Lr,sf,hl,Fx,$p,jx,e4,We,n4,i4,pr,lf,cf,dl,o4,a4,s4,l4,c4,u4,d4,p4,f4,m4,uf,zn,$n,v4,y4,_4,df,Hx,pf,ff,mf,hf,vl,gf,yl,uZ,Vx=S(()=>{"use strict";pn();Na();_3=Object.defineProperty,pl=Object.getOwnPropertySymbols,mx=Object.prototype.hasOwnProperty,hx=Object.prototype.propertyIsEnumerable,BS=(e,t,r)=>t in e?_3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,b3=(e,t)=>{for(var r in t||(t={}))mx.call(t,r)&&BS(e,r,t[r]);if(pl)for(var r of pl(t))hx.call(t,r)&&BS(e,r,t[r]);return e},w3=(e,t)=>{var r={};for(var n in e)mx.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&pl)for(var n of pl(e))t.indexOf(n)<0&&hx.call(e,n)&&(r[n]=e[n]);return r},gx=Object.defineProperty,I3=Object.defineProperties,E3=Object.getOwnPropertyDescriptors,HS=Object.getOwnPropertySymbols,k3=Object.prototype.hasOwnProperty,A3=Object.prototype.propertyIsEnumerable,VS=(e,t,r)=>t in e?gx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,S3=(e,t)=>{for(var r in t||(t={}))k3.call(t,r)&&VS(e,r,t[r]);if(HS)for(var r of HS(t))A3.call(t,r)&&VS(e,r,t[r]);return e},x3=(e,t)=>I3(e,E3(t)),C3=(e,t)=>{for(var r in t)gx(e,r,{get:t[r],enumerable:!0})},vx=(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},T3=(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}L3=(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))(L3||{});M3={log:_o("log"),warn:_o("warn"),info:_o("info"),error:_o("error"),debug:_o("debug")};Object.assign(globalThis,{logger:M3});$S=Symbol.for("Jolibox.canIUseMap"),q3={};globalThis[$S]||(globalThis[$S]=q3);WS=Symbol.for("Jolibox.canIUseMap.native"),U3={};globalThis[WS]||(globalThis[WS]=U3);_x=(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))(_x||{}),bx=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(bx||{}),wx=(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))(wx||{}),zS=["name","params"],F3=["name","type","location","target","extra","timestamp","userId"],j3=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];B3();Wn=typeof window=="undefined",KS=()=>!Wn&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK");!Wn&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),!Wn&&navigator.userAgent.includes("Android"),!Wn&&navigator.userAgent.includes("Mac"),!Wn&&navigator.userAgent.includes("FB_IAB"),!Wn&&!navigator.userAgent.includes("iPhone")&&navigator.userAgent.includes("Android");zp=class Kp{constructor(t){this.element=t,this.next=Kp.Undefined,this.prev=Kp.Undefined}};zp.Undefined=new zp(void 0);pe=zp,H3=class{constructor(){this._first=pe.Undefined,this._last=pe.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===pe.Undefined}clear(){let e=this._first;for(;e!==pe.Undefined;){let t=e.next;e.prev=pe.Undefined,e.next=pe.Undefined,e=t}this._first=pe.Undefined,this._last=pe.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new pe(e);if(this._first===pe.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!==pe.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==pe.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==pe.Undefined&&e.next!==pe.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===pe.Undefined&&e.next===pe.Undefined?(this._first=pe.Undefined,this._last=pe.Undefined):e.next===pe.Undefined?(this._last=this._last.prev,this._last.next=pe.Undefined):e.prev===pe.Undefined&&(this._first=this._first.next,this._first.prev=pe.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==pe.Undefined;)yield e.element,e=e.next}},V3=0,bo=class{constructor(e){this.value=e,this.id=V3++}},ko=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 bo&&(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 bo(e);return this._listeners?this._listeners instanceof bo?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 bo)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 bo?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},$3=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 ko,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 H3,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)}},Yp={};C3(Yp,{None:()=>W3,filter:()=>K3,once:()=>Ix,toPromise:()=>z3});W3=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Gp=Symbol.for("Jolibox.hostEmitter"),Y3=()=>{let e=new $3;return globalThis[Gp]||(globalThis[Gp]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Gp]};Y3();Qp=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new ko,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 Q3(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}};Qp=vx([yx],Qp);YS=class{constructor(){this._onWillExecuteCommand=new ko,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new ko,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Qp,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=O3(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 T3(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),Yp.toPromise(Yp.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{}}};YS=vx([yx],YS);Vn=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")},Xp=class{constructor(t){ot(this,"context",void 0),ot(this,"continueCallback",void 0),ot(this,"adIsShowingCallback",void 0),ot(this,"isBeforeAdCalled",!1),ot(this,"isBeforeRewardCalled",!1),ot(this,"isAdDismissedCalled",!1),ot(this,"isAdViewedCalled",!1),ot(this,"isAfterAdCalled",!1),ot(this,"currentProvider",void 0),ot(this,"currentClientParams",void 0),ot(this,"adsHasResponse",!1),ot(this,"videoChecker",window.document.createElement("video")),ot(this,"contextInfo",void 0),ot(this,"wrapShowAdFn",r=>()=>{var n,i,o;this.adsHasResponse=!0;let a=!1;this.videoChecker.play().catch(()=>{a=!1}),a=!this.videoChecker.paused,this.videoChecker.pause(),this.context.track("CallShowAdFn",Object.assign({},{userEvent:a},this.paramsToTrack)),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_BEFORE_REWARD",b3({userEvent:a},this.paramsToTrack)),KS()&&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=Vn(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=Vn(t);a==null||a(),((r=this.currentClientParams)==null?void 0:r.type)!=="reward"&&((n=this.adIsShowingCallback)==null||n.call(this,!0),KS()&&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=Vn(t);r==null||r()}}}wrapAdViewed(t){return()=>{if(this.adsHasResponse=!0,!this.isAdViewedCalled){this.isAdViewedCalled=!0;let r=Vn(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=Vn(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=Vn(t);p==null||p(r),(c=this.adIsShowingCallback)==null||c.call(this,!1),(d=this.continueCallback)==null||d.call(this,[!1,r]);break}default:{(u=this.continueCallback)==null||u.call(this,[!0,r]);break}}}}callAdBreakAndContinue(t,r,n,i){return w(this,null,function*(){return this.currentProvider=t,this.currentClientParams=r,this.adsHasResponse=!1,new Promise(o=>{this.continueCallback=o,this.adIsShowingCallback=i;let a;switch(r.type){case"preroll":{a={type:r.type,adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}case"reward":{a={name:r.name,type:r.type,beforeAd:this.wrapBeforeAd(r.beforeAd),beforeReward:this.wrapBeforeReward(r.beforeReward),adDismissed:this.wrapAdDismissed(r.adDismissed),adViewed:this.wrapAdViewed(r.adViewed),afterAd:this.wrapAfterAd(r.afterAd),adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}default:{a={name:r.name,type:r.type,beforeAd:this.wrapBeforeAd(r.beforeAd),afterAd:this.wrapAfterAd(r.afterAd),adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}}window.setTimeout(()=>{var s,l,c,d,u,p,f;this.adsHasResponse||(this.context.track("CallAdBreakTimeout",{type:r.type,provider:(l=(s=this.currentProvider)==null?void 0:s.name)!=null?l:null}),this.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")})})}};Zp=class{constructor(t){nl(this,"context",void 0),nl(this,"adBreakIsShowing",!1),nl(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),nl(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()})}};ef=class{constructor(t){il(this,"configs",null),il(this,"firstRun",!0),il(this,"context",void 0),il(this,"contextInfo",void 0),this.context=t,this.contextInfo=this.context.getContextInfo(),this.init()}init(){return w(this,null,function*(){try{this.configs=yield this.context.httpClient.get("/api/fe-configs/js-sdk/ads-channel-config",{})}catch(t){}})}shouldBypassCallingInterstitial(){var t,r;let n;if(!this.configs)this.init(),n=!this.firstRun;else{let i=(t=this.contextInfo.channel)!=null?t:"",o=this.configs[i],a=(r=o==null?void 0:o.interstitialRate)!=null?r:1;n=Math.random()<a}return this.firstRun=!1,n}};tf=class{constructor(t,r){cr(this,"name","ADSENSE"),cr(this,"context",void 0),cr(this,"contextInfo",void 0),cr(this,"configured",!1),cr(this,"initParams",void 0),cr(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),cr(this,"adConfig",n=>{let i=n,{onReady:o}=i,a=w3(i,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),cr(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),cr(this,"adUnit",n=>w(this,null,function*(){var i,o,a,s;if(this.context.track("CallAdUnit",{adFormat:(o=(i=n.adFormat)==null?void 0:i.toString())!=null?o:null,fullWidthResponsive:(a=n.fullWidthResponsive)!=null?a:null}),document.querySelector("#jolibox-ads")){console.warn("Ad unit already set, skipping");return}let{el:l,slot:c,adFormat:d,fullWidthResponsive:u,style:p}=n,f;if(!l)throw new Error("targeting element is required");if(typeof l=="string"?f=document.querySelector(l):f=l,!f)throw new Error("targeting element not found");let h=c;if(h||(h=this.initParams.unitId),!h)throw new Error("slot is required");let v=typeof d=="object"&&Array.isArray(d)?d.join(", "):d,y=document.createElement("ins");if(y.className="adsbygoogle",y.id="jolibox-ads",y.style.display="block",y.setAttribute("data-ad-client",this.initParams.clientId),y.setAttribute("data-ad-slot",h),v&&y.setAttribute("data-ad-format",v),u&&y.setAttribute("data-full-width-responsive",u),p&&y.setAttribute("style",p),(s=this.contextInfo.testAdsMode)!=null?s:!1){let g=document.createElement("div");g.style.position="absolute",g.style.top="0",g.style.left="0",g.style.width="100%",g.style.height="100%",g.style.display="flex",g.style.justifyContent="center",g.style.alignItems="center",g.style.backgroundColor="rgba(0, 0, 0, 0.5)",g.style.color="white",g.innerHTML="Test Ad",y.style.position="relative",f.appendChild(y),y.appendChild(g)}else f.appendChild(y),new MutationObserver(g=>{g.forEach(b=>{if(b.type==="attributes"&&b.attributeName==="data-ad-status"){let k=y.getAttribute("data-ad-status");this.context.track("AdSenseUnitStatusChanged",{status:k!=null?k:"null"})}})}).observe(y,{attributes:!0,attributeFilter:["data-ad-status"]}),this.push({})})),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,window.adsbygoogle=window.adsbygoogle||[]}init(){return w(this,null,function*(){var t;if(this.context.track("CallAdsInit",{provider:this.name}),typeof window=="undefined")return;let r="google-adsense",n=(t=this.contextInfo.testAdsMode)!=null?t:!1;if(!document.getElementById(r)&&this.initParams.clientId){let i=document.createElement("script");i.id=r,i.async=!0,i.crossOrigin="anonymous",i.src=`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${this.initParams.clientId}`,n&&i.setAttribute("data-adbreak-test","on"),this.initParams.channelId&&i.setAttribute("data-ad-channel",this.initParams.channelId),this.initParams.admobInterstitialSlot&&i.setAttribute("data-admob-interstitial-slot",this.initParams.admobInterstitialSlot),this.initParams.admobRewardedSlot&&i.setAttribute("data-admob-rewarded-slot",this.initParams.admobRewardedSlot),this.initParams.admobOnly&&i.setAttribute("data-admob-ads-only","on"),document.head.appendChild(i),this.context.track("LoadAdsenseCompleted",null)}})}};cH=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(lH(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=sH(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var n;return(n=r.parentNode)==null?void 0:n.removeChild(r)}),this.tags=[],this.ctr=0},e}(),$e="-ms-",fl="-moz-",z="-webkit-",Ex="comm",vf="rule",yf="decl",uH="@import",kx="@keyframes",dH="@layer",pH=Math.abs,_l=String.fromCharCode,fH=Object.assign;bl=1,Yn=1,Sx=0,lt=0,Se=0,Qn="";TH=function(e,t,r){for(var n=0,i=0;n=i,i=$t(),n===38&&i===12&&(t[r]=1),!So(i);)mt();return xo(e,lt)},OH=function(e,t){var r=-1,n=44;do switch(So(n)){case 0:n===38&&$t()===12&&(t[r]=1),e[r]+=TH(lt-1,t,r);break;case 2:e[r]+=ll(n);break;case 4:if(n===44){e[++r]=$t()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=_l(n)}while(n=mt());return e},PH=function(e,t){return Cx(OH(xx(e),t))},ZS=new WeakMap,RH=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!ZS.get(r))&&!n){ZS.set(e,!0);for(var i=[],o=PH(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]}}},NH=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};DH=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case yf:e.return=Tx(e.value,e.length);break;case kx:return Kn([wo(e,{value:K(e.value,"@","@"+z)})],n);case vf:if(e.length)return gH(e.props,function(i){switch(hH(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Kn([wo(e,{props:[K(i,/:(read-\w+)/,":"+fl+"$1")]})],n);case"::placeholder":return Kn([wo(e,{props:[K(i,/:(plac\w+)/,":"+z+"input-$1")]}),wo(e,{props:[K(i,/:(plac\w+)/,":"+fl+"$1")]}),wo(e,{props:[K(i,/:(plac\w+)/,$e+"input-$1")]})],n)}return""})}},LH=[DH],MH=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 v=h.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var n=e.stylisPlugins||LH,i={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(h){for(var v=h.getAttribute("data-emotion").split(" "),y=1;y<v.length;y++)i[v[y]]=!0;a.push(h)});var s,l=[RH,NH];{var c,d=[AH,xH(function(h){c.insert(h)})],u=SH(l.concat(n,d)),p=function(h){return Kn(EH(h),u)};s=function(h,v,y,g){c=y,p(h?h+"{"+v.styles+"}":v.styles),g&&(f.inserted[v.name]=!0)}}var f={key:t,sheet:new cH({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};UH={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},FH=/[A-Z]|^ms/g,jH=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ox=function(e){return e.charCodeAt(1)===45},ex=function(e){return e!=null&&typeof e!="boolean"},Bp=CH(function(e){return Ox(e)?e:e.replace(FH,"-$&").toLowerCase()}),tx=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(jH,function(r,n,i){return Dr={name:n,styles:i,next:Dr},n})}return UH[e]!==1&&!Ox(e)&&typeof t=="number"&&t!==0?t+"px":t};rx=/label:\s*([^\s;{]+)\s*(;|$)/g;GH=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},BH=function(e,t,r){GH(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)}};HH=function(e){var t=MH(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=Hp(s,t.registered,void 0);return BH(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=Hp(s,t.registered),d="animation-"+c.name;return nx(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=Hp(s,t.registered);nx(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return ix(t.registered,r,VH(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:Px.bind(null,t.registered),merge:ix.bind(null,t.registered,r)}},VH=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},$H=HH({key:"css"}),Xn=$H.css,ax=0,Rx=[],Pe=N,sx=Pe.__b,lx=Pe.__r,cx=Pe.diffed,ux=Pe.__c,dx=Pe.unmount,px=Pe.__;Pe.__b=function(e){ft=null,sx&&sx(e)},Pe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),px&&px(e,t)},Pe.__r=function(e){lx&&lx(e),of=0;var t=(ft=e.__c).__H;t&&(Vp===ft?(t.__h=[],ft.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(ul),t.__h.forEach(af),t.__h=[],of=0)),Vp=ft},Pe.diffed=function(e){cx&&cx(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Rx.push(t)!==1&&ox===Pe.requestAnimationFrame||((ox=Pe.requestAnimationFrame)||KH)(zH)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Vp=ft=null},Pe.__c=function(e,t){t.some(function(r){try{r.__h.forEach(ul),r.__h=r.__h.filter(function(n){return!n.__||af(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Pe.__e(n,r.__v)}}),ux&&ux(e,t)},Pe.unmount=function(e){dx&&dx(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{ul(n)}catch(i){t=i}}),r.__H=void 0,t&&Pe.__e(t,r.__v))};fx=typeof requestAnimationFrame=="function";QH=Symbol.for("preact-signals");ee=void 0,Io=void 0,Lr=0,sf=0,hl=0;Fe.prototype.brand=QH;Fe.prototype.h=function(){return!0};Fe.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};Fe.prototype.U=function(e){if(this.t!==void 0){var t=e.e,r=e.x;t!==void 0&&(t.x=r,e.e=void 0),r!==void 0&&(r.e=t,e.x=void 0),e===this.t&&(this.t=r)}};Fe.prototype.subscribe=function(e){var t=this;return To(function(){var r=t.value,n=ee;ee=void 0;try{e(r)}finally{ee=n}})};Fe.prototype.valueOf=function(){return this.value};Fe.prototype.toString=function(){return this.value+""};Fe.prototype.toJSON=function(){return this.value};Fe.prototype.peek=function(){var e=ee;ee=void 0;try{return this.value}finally{ee=e}};Object.defineProperty(Fe.prototype,"value",{get:function(){var e=Dx(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(sf>100)throw new Error("Cycle detected");this.v=e,this.i++,hl++,Lr++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Il()}}}});(Zn.prototype=new Fe).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===hl))return!0;if(this.g=hl,this.f|=1,this.i>0&&!Lx(this))return this.f&=-2,!0;var e=ee;try{Mx(this),ee=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return ee=e,qx(this),this.f&=-2,!0};Zn.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Fe.prototype.S.call(this,e)};Zn.prototype.U=function(e){if(this.t!==void 0&&(Fe.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};Zn.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(Zn.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Dx(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});Co.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()}};Co.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Ux(this),Mx(this),Lr++;var e=ee;return ee=this,XH.bind(this,e)};Co.prototype.N=function(){2&this.f||(this.f|=2,this.o=Io,Io=this)};Co.prototype.d=function(){this.f|=8,1&this.f||bf(this)};jx=[];To(function(){Fx=this.N})();Jx.displayName="_st";Object.defineProperties(Fe.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Jx},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});ei("__b",function(e,t){if(typeof t.type=="string"){var r,n=t.props;for(var i in n)if(i!=="children"){var o=n[i];o instanceof Fe&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});ei("__r",function(e,t){gl();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return To(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),gl(r),e(t)});ei("__e",function(e,t,r,n){gl(),e(t,r,n)});ei("diffed",function(e,t){gl();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=ZH(r,l,d,i),o[l]=c):c.o(d,i)}}}e(t)});ei("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)});ei("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});ct.prototype.shouldComponentUpdate=function(e,t){var r=this.__$u,n=r&&r.s!==void 0;for(var i in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var o=2&this.__$f;if(!(n||o||4&this.__$f)||1&this.__$f)return!0}else if(!(n||4&this.__$f)||3&this.__$f)return!0;for(var a in e)if(a!=="__source"&&e[a]!==this.props[a])return!0;for(var s in this.props)if(!(s in e))return!0;return!1};e4=function(e){queueMicrotask(function(){queueMicrotask(e)})};We=Xn`
622
+ `,n3=()=>b("div",{style:Ek.container,children:[b("style",{children:r3}),b("div",{style:Ek.spinner})]});LY=_o()});function wA(){return y(this,null,function*(){if(Pp)return Pp;let t=`${E.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com"}/api/user-retention/exit-recommendations?objectId=${E.mpId}&from=GAME_DETAIL`,{response:{data:r}}=yield re(t);return Pp=r,r})}function IA(){return y(this,null,function*(){let e=new Ot;if(E.mpType!=="game")return e.resolve(!1),e.promise;if(Np)return e.resolve(!0),e.promise;let t=yield wA();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:i}=t.data;Np=!0;let o={domain:"GAME",buttons:t.data.buttons.map(s=>`${s.type}-${s.text}`).join(","),list:r.games.map(s=>s.gameId).join(",")};U("RecommendedGuide",x({eventType:B.View},o));let a=iA({games:r.games,title:n,buttons:i,onClose:s=>{var l;switch(Np=!1,s.type){case"quit":U("RecommendedGuide",{eventType:B.Click,type:"QUIT",domain:"GAME"}),e.resolve(!1);break;case"dismiss":U("RecommendedGuide",x({eventType:B.Hide},o)),e.resolve(!0),a.destroy();break;case"navigate":if((l=s.data)!=null&&l.game){let c=s.data.game;i3(c),U("GameItem",{eventType:B.Click,gameId:c.gameId,layerName:"RecommendedGuide",domain:"GAME"}),setTimeout(()=>{e.resolve(!1)},0)}else e.resolve(!0);a.destroy();break;default:U("RecommendedGuide",x({eventType:B.Hide},o)),e.resolve(!0);break}}});return e.promise})}var Pp,i3,Np,EA=A(()=>{"use strict";J();be();P();cr();vt();yt();Pp=null;wA();i3=e=>{var a;let{data:t}=j("envSync"),r=new URL(t.schema),n=new URLSearchParams(r.search);n.set("gameId",e.gameId),n.set("joliSource",E.encodeJoliSourceQuery({__mpType:"game",__orientation:(a=e.orientation)!=null?a:"VERTICAL"}));let o=`${`https://${e.gameId}.content.jolibox.com/`}index.html?${n.toString()}`;j("openSchemaSync",{schema:o})},Np=!1});function a3(e){let t=x(x({},o3),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:w,containerTransition:S,iframeTransition:C}=p();ae=document.createElement("div"),ae.id="jolibox-modal-overlay",ae.style.cssText=`position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.5); z-index:1000; display:flex; justify-content:center; align-items:flex-end; transition:${w}; opacity:0; visibility:hidden;`,X=document.createElement("div"),X.id="jolibox-modal-container",X.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 O=document.createElement("div");O.id="jolibox-modal-loading",O.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 T=document.createElement("style");T.textContent="@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }",document.head.appendChild(T);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;",wt=document.createElement("iframe"),wt.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${C};`,wt.src=r,wt.onload=()=>{O.parentNode&&O.parentNode.removeChild(O),wt.style.opacity="1",v(),l==null||l(),te.emit("onModalIframeLoaded",{url:r})},k.appendChild(wt),k.appendChild(O),X.appendChild(k),i){let R=document.createElement("div");R.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;",R.innerHTML="\u2715",R.onclick=g,X.appendChild(R)}ae.appendChild(X),document.body.appendChild(ae),ae.addEventListener("click",function(R){R.target===ae&&g()}),o&&_()}function v(){!ae||!X||u||(ae.style.visibility="visible",a?requestAnimationFrame(()=>{ae&&(ae.style.opacity="1"),X&&(X.style.transform="translateY(0)"),u=!0}):(ae&&(ae.style.opacity="1"),X&&(X.style.transform="translateY(0)"),u=!0),j("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:E.webviewId}))}function _(){if(!X)return;let w=O=>{c=O.touches[0].clientY},S=O=>{if(!u)return;d=O.touches[0].clientY;let T=d-c;T>0&&(X&&(X.style.transition="none",X.style.transform=`translateY(${T}px)`),O.preventDefault())},C=()=>{!u||!X||(X.style.transition=a?"transform 0.3s ease":"none",d-c>80?g():X.style.transform="translateY(0)")};X.addEventListener("touchstart",w),X.addEventListener("touchmove",S),X.addEventListener("touchend",C)}function g(){!ae||!X||!u||(a?(X.style.transform="translateY(100%)",ae.style.opacity="0"):ae.style.visibility="hidden",u=!1,j("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:E.webviewId}),setTimeout(()=>{ae&&(ae.remove(),ae=null,X=null,wt=null,s==null||s(),te.emit("onModalIframeClosed",{url:r}))},f()))}return h(),{close:g}}function SA(){return window.joliboxUI=F(x({},window.joliboxUI),{createIframeModal:a3}),()=>{window.joliboxUI=void 0,ae&&ae.parentNode&&ae.parentNode.removeChild(ae),X&&X.parentNode&&X.parentNode.removeChild(X),wt&&wt.parentNode&&wt.parentNode.removeChild(wt),ae=null,X=null,wt=null}}var o3,ae,X,wt,kA=A(()=>{"use strict";be();J();P();o3={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},ae=null,X=null,wt=null});var TA={};dh(TA,{config:()=>v3});function l3(){ba.on("isAdShowing",e=>{Ws=e,Ir(Ws)&&j("updateContainerConfigSync",{displayCapsuleButton:!Ws,webviewId:E.webviewId})})}function c3(){te.on("onInterceptSystemExit",({intercept:e})=>{AA=e})}function u3(){te.on("onInterceptBackPress",({intercept:e})=>{s3=e}),tt("onBeforeBackPress",({uuid:e,disableExitRecommendDialog:t})=>{var r,n;xA(t),te.emit("onBackPress",{}),(n=(r=globalThis.joliboxJSCore)==null?void 0:r.doBackPress)==null||n.call(r,e)})}function d3(){te.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),U("onDocumentReady",{start_timestamp:Ks,timestamp:Date.now()})})}function p3(){tt("onI18nChanged",({language:e})=>{te.emit("onI18nChanged",{i18n:e})})}function f3(e){E.mpType==="game"&&It.start(e)}function h3(){tt("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&E.onEnvConfigChanged({hostUserInfo:e}),te.emit("LifecycleEvent.onReady",x({},E.hostUserInfo?E.hostUserInfo:{isLogin:!1})),U("joliboxServiceReady",{start_timestamp:Ks,timestamp:Date.now()}),f3(t),Xk(()=>E.language)}),tt("onBeforeExit",({uuid:e,disableExitRecommendDialog:t})=>{var r;xA(t),(r=globalThis.joliboxJSCore)==null||r.doExit(e)})}function m3(){let e=()=>{U("onBeforeExit",{timestamp:Date.now()}),$s==null||$s(),Vs==null||Vs(),It.close(Date.now()-Ks)},t=()=>Ws||AA;mt.onDoExit(()=>y(this,null,function*(){return t()?!0:Ir(E.shouldInterupt)?(E.shouldInterupt||e(),E.shouldInterupt):zs!=null&&zs.canShowRecommended&&!CA&&(yield IA())?!0:(e(),!1)})),mt.onDoBackPress(()=>y(this,null,function*(){return!!t()}))}function g3(){return y(this,null,function*(){try{let e="/api/fe-configs/js-sdk/basic-meta",{response:{data:t}}=yield re(e);t&&(zs=t)}catch(e){console.error("fetchMetaConfig error:",e)}})}function v3(){Ks=Date.now(),h3(),l3(),c3(),u3(),m3(),d3(),p3(),g3(),Vs=SA(),$s=Gm()}var $s,Vs,Ks,Ws,zs,AA,s3,CA,xA,RA=A(()=>{"use strict";be();J();P();yt();Bm();jc();EA();vt();cr();kA();Ws=!1,zs=null,AA=!1,s3=!1,CA=!1,xA=e=>{Ir(e)&&(CA=e)};mt.onReady(()=>{})});var OA,y3,_3,b3,w3,PA=A(()=>{"use strict";P();Ye();be();J();OA=Y(),y3="env",_3="getSystemInfoSync",b3=H(_3,{implement:()=>{var r;let e=j("envSync"),{data:t}=e;return{system:t.deviceInfo.system,platform:t.deviceInfo.platform.toLowerCase(),version:t.sdkInfo.jssdkVersion,pixelRatio:t.deviceInfo.pixelRatio,language:t.deviceInfo.lang,brand:t.deviceInfo.brand,appName:(r=t.hostInfo)==null?void 0:r.appName,SDKVersion:t.sdkInfo.jssdkVersion,viewport:{statusBarHeight:E.viewport.statusBarHeight,navigationBarHeight:E.viewport.navigationBarHeight}}}}),w3=H(y3,{implement:()=>{var t;let e=j("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});OA.registerCommand("API.getSystemInfoSync",b3);OA.registerCommand("API.env",w3);q("env",{version:"1.0.0"});q("getSystemInfoSync",{version:"1.0.0",properties:{viewport:"1.0.33"}})});var NA=m(Dp=>{"use strict";P();Ye();gt();be();yt();J();var I3="exitGame",E3="onReady",S3="onJoliboxShow",k3="onJoliboxHide",Ys=Y(),Qs=Ko(Ce),A3=ue(I3,{paramsSchema:I.tuple(I.function(),I.boolean().optional().default(!1)),implement:(e,t=!1)=>y(Dp,null,function*(){Qs(e).call(Dp),Ir(E.shouldInterupt)&&!E.shouldInterupt&&E.from&&Dh("onRetentionResult",{shouldStay:t},E.from,!0),t||E.setDoExitDirectly(),yield _e("exitAppAsync")})}),C3=H(S3,{paramsSchema:I.tuple(I.function()),implement(e){let t=Qs(e);tt("onJoliboxEnterForeground",()=>{t.call(this),bi.emit("visible",!0)})}}),x3=H(k3,{paramsSchema:I.tuple(I.function()),implement(e){let t=Qs(e);tt("onJoliboxEnterBackground",()=>{t.call(this),bi.emit("visible",!1)})}}),T3=H(E3,{paramsSchema:I.tuple(I.function()),implement(e){let t=Qs(e);te.on("LifecycleEvent.onReady",r=>{t(r)})}});Ys.registerCommand("LifecycleSDK.exit",A3);Ys.registerCommand("LifecycleSDK.onReady",T3);Ys.registerCommand("LifecycleSDK.onJoliboxShow",C3);Ys.registerCommand("LifecycleSDK.onJoliboxHide",x3);q("lifeCycle.exit",{version:"1.0.0"});q("lifeCycle.onReady",{version:"1.0.0"});q("lifeCycle.onJoliboxShow",{version:"1.0.0"});q("lifeCycle.onJoliboxHide",{version:"1.0.0"})});function DA(e){let t={};if(!Jr(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 qA(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 LA(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function MA(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!Jr(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 UA=A(()=>{"use strict";P()});var R3,O3,qp,Lp,FA,P3,N3,D3,jA=A(()=>{"use strict";$r();Oc();Ye();UA();P();gt();J();R3=15,O3=Qo("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:E.baseApiHost}),qp=0,Lp=[],FA=Ko(Ce),P3=(e,t)=>{let r=e.filter(t),n=e.filter(i=>!t(i));return e.length=0,e.push(...n),r},N3=e=>{let t=new Ot,r=()=>{};return H("request",{paramsSchema:I.tuple(I.object({url:I.string(),method:I.string(),headers:I.object().optional(),data:I.or(I.object(),I.array()).optional(),query:I.object().optional(),dataType:I.string().default("json"),responseType:I.string().default("text"),enableCache:I.boolean().default(!1),appendHostCookie:I.boolean().default(!0),timeout:I.number().default(3e4),success:I.function(),fail:I.function()})),implement(i){let o=()=>y(this,null,function*(){var s,l,c;let a=FA(i.fail);try{if(qp+=1,t.state!=="pending")return;let{data:d,dataType:u,responseType:p,enableCache:f,appendHostCookie:h}=i,v=DA((s=i.headers)!=null?s:{}),_=qA(i.method),g=LA(i.timeout),w=MA(i.url,_,d),S=FA(i.success),C=Object.assign({},i,{method:_,header:h?void 0:v,data:_==="GET"||_==="HEAD"?void 0:d,enableCache:f,query:(l=i.query)!=null?l:{},dataType:u,responseType:p,appendHostCookie:h});g&&(C.timeout=g);let O=O3(w,C);{let{response:T}=yield O,{code:k,data:R,message:G}=T;if(R&&typeof R=="object"&&"status"in R&&R.status!==200)throw qt({code:R.status||-1,msg:`request:fail status ${R.status}`});t.resolve({code:k!=null?k:"SUCCESS",data:R,message:G!=null?G:"request:ok"}),S({code:"SUCCESS",message:"request:ok",data:R})}}catch(d){t.reject(d),a({code:"FAILURE",message:"httpRequst: failed"})}finally{qp-=1,(c=Lp.shift())==null||c()}});return qp>=R3?(r=()=>{P3(Lp,a=>a===o)},Lp.push(o)):o(),t.promise}})(e),{abort(){t.reject(qt({code:-1,msg:"request:fail abort"})),r()}}},D3=Y();D3.registerCommand("HttpSDK.request",N3);q("request",{version:"1.0.0"})});var q3,L3,M3,Mp,GA=A(()=>{"use strict";P();be();Ye();q3=H("showKeyboard",{paramsSchema:I.tuple(I.object({defaultValue:I.string().optional().default(""),multiple:I.boolean().optional().default(!1),maxLength:I.unknown().optional().default(1e5)})),implement(e){var n;let t=Math.floor((n=Number(e.maxLength))!=null?n:1e5),{defaultValue:r}=e;r&&t&&(r=r.slice(0,t)),j("showKeyboardSync",F(x({},e),{defaultValue:r,maxLength:t}))}});q("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"}});L3=H("updateKeyboard",{paramsSchema:I.tuple(I.object({value:I.string()})),implement(e){j("updateKeyboardSync",e)}});q("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});M3=H("hideKeyboard",{implement(){j("hideKeyboardSync")}});q("keyboard.hideKeyboard",{version:"1.0.0"});Mp=Y();Mp.registerCommand("KeyboardSDK.showKeyboard",q3);Mp.registerCommand("KeyboardSDK.updateKeyboard",L3);Mp.registerCommand("KeyboardSDK.hideKeyboard",M3)});var BA=m(Xs=>{"use strict";P();Ye();yt();var Up=Y(),U3=ue("levelFinished",{paramsSchema:I.tuple(I.object({levelId:I.or(I.string(),I.number()),duration:I.number().optional(),rating:I.number().optional(),score:I.number().optional(),variation:I.string().optional()})),implement:e=>y(Xs,null,function*(){let{levelId:t,duration:r,rating:n,score:i,variation:o}=e,a=[];a.push(It.tracker("LevelFinished",{levelId:t,duration:r,rating:n,score:i,variation:o})),a.push(It.reporter({event:"COMPLETE_GAME_LEVEL",extraParams:{inGameInfo:{levelId:t,duration:r,rating:n,score:i}}})),yield Promise.all(a)})}),F3=ue("gamePlayEnded",{paramsSchema:I.tuple(I.object({duration:I.number().optional(),rating:I.number().optional(),score:I.number(),variation:I.string().optional()})),implement:e=>y(Xs,null,function*(){let{duration:t,rating:r,score:n,variation:i}=e,o=[];o.push(It.tracker("GamePlayEnded",{duration:t,rating:r,score:n,variation:i})),o.push(It.reporter({event:"GAME_ENDED",extraParams:{inGameInfo:{duration:t,rating:r,score:n}}})),yield Promise.all(o)})}),j3=ue("levelUpgrade",{paramsSchema:I.tuple(I.object({levelId:I.or(I.string(),I.number()),name:I.string().optional()})),implement:r=>y(Xs,[r],function*({levelId:e,name:t}){let n=[];n.push(It.tracker("LevelUpgrade",{name:t,levelId:e})),n.push(It.reporter({event:"GAME_LEVEL_UP",extraParams:{inGameInfo:{levelId:e,levelName:t}}})),yield Promise.all(n)})});Up.registerCommand("TaskTrackerSDK.levelFinished",U3);Up.registerCommand("TaskTrackerSDK.gamePlayEnded",F3);Up.registerCommand("TaskTrackerSDK.levelUpgrade",j3);q("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"}}});q("TaskTrackerSDK.onGamePlayEnded",{version:"1.1.25",properties:{params:{duration:"1.1.25",rating:"1.1.25",score:"1.1.25",variation:"1.1.50"}}});q("TaskTrackerSDK.onLevelUpgrade",{version:"1.1.25",properties:{params:{levelId:"1.1.25",name:"1.1.25"}}})});var Fp,jp,Gp,G3,JA,Zs=A(()=>{"use strict";J();be();Ye();P();$r();q("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"}});q("checkSession",{version:"1.0.0",success:{errMsg:"1.0.0"}});Fp=new Map;tt("onLoginStateChange",({isLogin:e,token:t,uuid:r,isFirstLogin:n,extra:i})=>{let o=Fp.get(r);o&&(o.resolve({isLogin:e,token:t,isFirstLogin:n,extra:i}),Fp.delete(r))});jp=(e,t=!1)=>y(void 0,null,function*(){var u;let{data:{isLogin:r}}=yield _e("checkLoginAsync");if(r)return{isLogin:!0,token:(u=E.hostUserInfo)==null?void 0:u.token};let{skipLogin:n,triggerFrom:i}=e!=null?e:{},o=j("loginSync",{skipLogin:n,triggerFrom:i}),{data:{uuid:a}}=o;if(!a)throw qt({code:-1,msg:"login failed"});let s=new Ot;Fp.set(a,s);let l=yield s.promise;E.onEnvConfigChanged({hostUserInfo:l});let p=l,{extra:c}=p,d=je(p,["extra"]);return te.emit("onLoginComplete",d),t?l:d}),Gp=ue("login",{paramsSchema:I.tuple(I.object({skipLogin:I.boolean().optional(),triggerFrom:I.string().optional()}).optional()),implement(e){return y(this,null,function*(){return yield jp(e!=null?e:{})})}}),G3=ue("checkSession",{implement(){return y(this,null,function*(){let{data:{isLogin:e}}=yield _e("checkLoginAsync");return{isLogin:e}})}}),JA=Y();JA.registerCommand("API.login",Gp);JA.registerCommand("API.checkSession",G3)});var HA,$A=A(()=>{"use strict";HA=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 Bn(e){return t=>y(this,null,function*(){var l;let{dailyMaxPopUps:r,minInterval:n}=t,i=yield _i(e);if(!i.data)return{canShow:!0,isFirst:!0};let o=VA(i.data),a=HA(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 Jn(e){return()=>y(this,null,function*(){var i;let t=Date.now(),r=yield _i(e),n=VA((i=r.data)!=null?i:"[]");n.push(t),n.sort((o,a)=>a-o).splice(8),yield va(e,JSON.stringify(n))})}var VA,WA,zA,KA,YA,QA,XA,ZA,eC,tC,rC,nC,iC,el=A(()=>{"use strict";ya();$A();VA=e=>{let t;try{t=JSON.parse(e)}catch(r){t=[]}return t};WA=Bn("joli_coin_use_modal_frequency"),zA=Bn("joli_coin_payment_frequency"),KA=Bn("joli_coin_unlogin_modal_frequency"),YA=Bn("joli_gem_use_modal_frequency"),QA=Bn("joli_gem_payment_frequency"),XA=Bn("joli_gem_unlogin_modal_frequency");ZA=Jn("joli_coin_use_modal_frequency"),eC=Jn("joli_coin_payment_frequency"),tC=Jn("joli_coin_unlogin_modal_frequency"),rC=Jn("joli_gem_use_modal_frequency"),nC=Jn("joli_gem_payment_frequency"),iC=Jn("joli_gem_unlogin_modal_frequency")});var Bp,tl,Jp=A(()=>{"use strict";vt();Bp=Promise.resolve(),tl=(e,t)=>y(void 0,null,function*(){Bp=Bp.then(()=>y(void 0,null,function*(){yield re(t,{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield Bp})});var rl,nl,Ct,il,on,ur,dr,ol,Hn,B3,L,pr,fr,Ze=A(()=>{"use strict";P();rl="UNLOCK_OPTIONS_CHANGED",nl="INVOKE_PAYMENT",Ct="ON_PAYMENT_RESULT",il="ON_USE_MODAL_EVENT",on="ON_USE_MODAL_RESULT",ur="ON_USE_MODAL_FREQUENCY",dr="ON_USE_UNLOGIN_MODAL_EVENT",ol="INVOKE_UNLOGIN_MODAL_EVENT",Hn=new Dt,B3=()=>({on:Hn.on.bind(Hn),off:Hn.off.bind(Hn),emit:Hn.emit.bind(Hn)}),L=B3(),pr={charge:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},useJolicoin:{dailyMaxPopUps:2,minInterval:8*60*60*1e3}},fr={show:!0,minInterval:8*60*60*1e3}});function it(e,t){let r=null,n=null,i=null,o=()=>{if(i){r=Promise.resolve(i);return}r=new Promise(a=>{n=a})};return o(),e.on(t,(...a)=>{let s=a[0];i=s,n&&(n(s),n=null)}),{getData:()=>(r||o(),r),getCachedData:()=>i,clearCache:()=>{i=null,r=null},getFreshData:()=>(i=null,r=null,o(),r),updateData:a=>{if(i)return i=x(x({},i),a),r=Promise.resolve(i),n&&(n(i),n=null),i}}}var Mr=A(()=>{"use strict"});var sC=m(Hp=>{"use strict";el();Jp();Ze();Ze();cr();yt();P();Mr();var J3={JOLI_COIN:{frequencyConfigKey:"useJolicoin",trackEvents:{popupShow:"unlock_popup_show",coinUnlock:"coin_unlock_click",adUnlock:"ad_unlock_click"},frequencyChecker:WA,frequencyUpdater:ZA,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:YA,frequencyUpdater:rC,apiEndpointAutoDeduct:"/api/joli-gem/user-config"}},oC=_o(),aC=it(L,ur);aC.getData();L.on(il,(e,t)=>y(Hp,null,function*(){let r=t.currency,n=J3[r];if(e.includes("ADS-")){yield oC.show({duration:3e3});let l=yield aC.getData(),{canShow:c,isFirst:d}=yield n.frequencyChecker(l.joliCoinUseAndCharge[n.frequencyConfigKey]);console.log(`${r} modal show by frequency`,c,d),oC.hide();let{balance:u}=t.userCurrency;if(u>=t.quantity&&t.enableAutoDeduct&&!d){L.emit(on,{useModalResult:"CONFIRM"});return}if(!c){L.emit(on,{useModalResult:"FAILED"});return}}U(n.trackEvents.popupShow,{eventType:B.View,targetType:"game",currency:r});let{userCurrency:i,enableAutoDeduct:o,quantity:a}=t,s=lA({data:{enableAutoDeduct:o,userCurrency:i,quantity:a,currency:r},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{U(n.trackEvents.coinUnlock,{targetType:"game",eventType:B.Click,coinConsume:t.quantity,ifAutoUnlock:t.enableAutoDeduct,currency:r}),L.emit(on,{useModalResult:"CONFIRM"}),s.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:l})=>{l==="FAILED"&&U(n.trackEvents.adUnlock,{targetType:"game",eventType:B.Click,currency:r}),L.emit(on,{useModalResult:(l!=null?l:"")==="CANCEL"?"CANCEL":"FAILED"}),s.destroy()}},onEnableDeductChanged:l=>y(Hp,null,function*(){yield tl(l,n.apiEndpointAutoDeduct)})}});yield n.frequencyUpdater()}))});function lC(){let e=new Map;return{registerPaymentHandler(r,n){e.set(r,n)},invokePayment(r,...n){return y(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 Ce(o),{code:"FAILED",message:`[joliboxSDK]: paymenterror ${o}`}}})}}}var cC=A(()=>{"use strict";gt()});var al=A(()=>{"use strict"});var H3,$n,Ur,$3,an,$p=A(()=>{"use strict";al();P();J();vt();H3=()=>{let[e,t]=[zh,Yh].map(r=>(n,i,o)=>new r(n,i,o));return{createPaymentError:e,createPaymentInternalError:t}},{createPaymentError:$n,createPaymentInternalError:Ur}=H3(),$3=E.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",an=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startPayment=t=>y(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw $n(n,1001);return yield this.pay()});this.cancelOrder=t=>y(this,null,function*(){var n,i;let{response:r}=yield re(`/api/orders/${t}/cancel`,{method:"POST",data:{}});if(r.code!=="SUCCCESS")throw $n((i=(n=r.message)!=null?n:r.errMsg)!=null?i:"",1003)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",E.deviceInfo.platform),t.set("joliSource",E.encodeJoliSourceQuery(x({},this.generatePaymentContext()))),`${$3}//payment/callback?${t.toString()}`}}get orderId(){return this._orderId}get status(){return this._orderStatus}}});var Vp,dC,pC=A(()=>{"use strict";vt();$p();al();Vp=class extends an{constructor(r){super();this.productId=r;this.generatePaymentContext=()=>({type:"JOLI_COIN_ORDER_CONTEXT",state:"TO_VALIDATE",productId:this.productId,orderId:this.orderId});this.pay=()=>y(this,null,function*(){let r=this.generateCallbackUrl();return console.info("callbackUrl",r),{code:"SUCCESS",message:"jolicoin payment success"}})}placeOrder(r){return y(this,null,function*(){var n,i,o,a;try{let{response:s}=yield re("/api/orders/checkout/joli-coin",{method:"POST",data:{productId:r.productId}});if(s.code!=="SUCCESS")throw $n((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),Ur((a=JSON.stringify(s))!=null?a:"jolicoin placeorder failed",1002)}})}},dC=()=>{let e=new Map;return t=>y(void 0,null,function*(){let r=e.get(t);return r||(r=new Vp(t),e.set(t,r)),yield r.startPayment({productId:t}),{code:"SUCCESS",message:"jolicoin payment success"}})}});var fC,hC=A(()=>{"use strict";fC={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 Wp,mC,zp,Kp,V3,Yp,gC=A(()=>{"use strict";vt();$p();al();be();P();J();cr();hC();Wp=new Map;tt("onPaymentStateChange",e=>{console.info("onPaymentStateChange",e);let{orderUUID:t,status:r,totalAmount:n,orderResponse:i}=e,o=Wp.get(t);if(o){if(r==="SUCCESS")Lr("{slot-success} {slot-i18n-jolicoin.unlockSuccess}",{position:"center",duration:3e3}),o.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{totalAmount:n}});else{if(r==="FAILED"&&Bh(i==null?void 0:i.errNo)&&(i==null?void 0:i.errNo)!==0)throw Ur(`jolicoin payment failed: ${i==null?void 0:i.errMsg}`,1002);let a=fC[r];a&&Lr(`{slot-error} {slot-i18n-jolicoin.${a}}`,{position:"center",duration:3e3}),o.resolve({code:"FAILED",message:"jolicoin payment failed"})}Wp.delete(t)}});mC=e=>y(void 0,null,function*(){var n,i;let t=new Ot,r;try{let o=yield _e("requestPaymentSync",{paymentBody:{appStoreProductId:e.appStoreProductId,appAccountToken:e.appAccountToken}});if(r=(n=o.data)==null?void 0:n.orderUUID,console.info("---purchaseGem---",o),!r)throw Ur("orderUUID is null",1002);Wp.set(r,t)}catch(o){throw Ur((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),zp=class extends an{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=()=>y(this,null,function*(){return yield mC({appStoreProductId:this.appStoreProductId})})}placeOrder(r){return y(this,null,function*(){return{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},Kp=class extends an{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=()=>y(this,null,function*(){return yield mC({appStoreProductId:this.appStoreProductId,appAccountToken:this.appAccountToken})})}placeOrder(r){return y(this,null,function*(){var a;console.log("----start place order for ios----");let{response:n}=yield re("/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 Ur("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"}})}},V3={android:zp,ios:Kp},Yp=()=>{let e=new Map;return t=>y(void 0,null,function*(){let{productId:r,appStoreProductId:n}=t,i=e.get(r);if(!i){let s=V3[E.platform];if(!s)throw Ur("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 $n(a,1002);return{code:"SUCCESS",message:"jolicoin payment success"}})}});var sn,Qp=A(()=>{"use strict";cC();pC();gC();sn=lC();sn.registerPaymentHandler("JOLI_COIN",dC());sn.registerPaymentHandler("JOLI_COIN_IAP",Yp());sn.registerPaymentHandler("JOLI_GEM_IAP",Yp())});var xt,bo=A(()=>{"use strict";xt=class{constructor(t,r={}){this.requestAdapter=t;this.cache=new Map;this.pendingRequests=new Map;this.requestSequence=0;this.cacheSequences=new Map;this.config=x({duration:10*60*1e3,timeout:3e3,keyGenerator:(n,i)=>n,consistencyChecker:()=>!0},r)}request(t,r){return y(this,null,function*(){let n=this.config.keyGenerator(t,r),i=this.pendingRequests.get(n);if(i)return console.log(`[RequestCacheService] Reusing pending request for ${t}`),i;let o=this.requestInternal(t,r),a=this.createTimeoutPromise(),s=Promise.race([o,a]).catch(l=>y(this,null,function*(){if(l.message.includes("timeout")){let c=this.getValidCachedData(n);if(c)return console.warn(`[RequestCacheService] Request timeout, falling back to cache for ${t}`),this.requestAdapter.processCachedData?this.requestAdapter.processCachedData(c):c}throw l}));this.pendingRequests.set(n,s),o.then(l=>{console.log(`[RequestCacheService] Background request completed successfully for ${t}`)}).catch(l=>{console.warn(`[RequestCacheService] Background request failed for ${t}:`,l)});try{return yield s}finally{this.pendingRequests.delete(n)}})}requestInternal(t,r){return y(this,null,function*(){var l,c,d,u;let n=this.config.keyGenerator(t,r),i=++this.requestSequence,o=this.getValidCachedData(n);if(console.log("[RequestCacheService] requestInternal start",t,"cached:",o),o){if(this.requestAdapter.extractRealTimeData&&this.requestAdapter.mergeData)try{let p=yield this.requestAdapter.execute(t,r),f=this.requestAdapter.extractRealTimeData(p),h=(c=(l=this.requestAdapter).extractCacheableData)==null?void 0:c.call(l,p);return h&&!this.config.consistencyChecker(o,h)?(console.log(`[RequestCacheService] Cache invalidated due to data change for ${t}`),this.setCachedDataWithSequence(n,h,i),p):this.requestAdapter.mergeData(o,f)}catch(p){return console.warn(`[RequestCacheService] Failed to fetch real-time data, using cache only for ${t}:`,p),this.requestAdapter.processCachedData?this.requestAdapter.processCachedData(o):o}return console.log(`[RequestCacheService] use cache for ${t}`),this.requestAdapter.processCachedData?this.requestAdapter.processCachedData(o):o}console.log(`[RequestCacheService] Cache miss, fetching fresh data for ${t} (sequence: ${i})`);let a=yield this.requestAdapter.execute(t,r),s=(u=(d=this.requestAdapter).extractCacheableData)==null?void 0:u.call(d,a);return s&&this.setCachedDataWithSequence(n,s,i),a})}createTimeoutPromise(){return new Promise((t,r)=>{setTimeout(()=>{r(new Error(`[RequestCacheService] Request timeout after ${this.config.timeout/1e3} seconds`))},this.config.timeout)})}getValidCachedData(t){let r=this.cache.get(t);return r?Date.now()>r.expiresAt?(this.cache.delete(t),null):r.data:null}setCachedDataWithSequence(t,r,n,i){let o=this.cache.get(t);if(o&&o.sequence>n){console.log(`[RequestCacheService] Ignoring stale cache update for ${t} (current: ${o.sequence}, incoming: ${n})`);return}let a=Date.now();this.cache.set(t,{data:JSON.parse(JSON.stringify(r)),timestamp:a,expiresAt:a+this.config.duration,key:t,sequence:n,metadata:i}),this.cacheSequences.set(t,n),console.log(`[RequestCacheService] Updated cache for ${t} with sequence ${n}`)}refreshCache(t,r){return y(this,null,function*(){let n=this.config.keyGenerator(t,r);return this.cache.delete(n),this.request(t,r)})}forceRequest(t,r){return y(this,null,function*(){var s,l;let n=this.config.keyGenerator(t,r),i=++this.requestSequence;console.log(`[RequestCacheService] Force request for ${t} (sequence: ${i})`);let o=yield this.requestAdapter.execute(t,r),a=(l=(s=this.requestAdapter).extractCacheableData)==null?void 0:l.call(s,o);return a&&(this.setCachedDataWithSequence(n,a,i),console.log(`[RequestCacheService] Force updated cache for ${t}`)),o})}warmupCache(t,r){return y(this,null,function*(){let n=this.config.keyGenerator(t,r);if(this.pendingRequests.has(n)){console.log(`[RequestCacheService] Skipping warmup for ${t} - request in progress`);return}if(this.hasValidCache(n)){console.log(`[RequestCacheService] Skipping warmup for ${t} - valid cache exists`);return}try{console.log(`[RequestCacheService] Warming up cache for ${t}`),yield this.forceRequest(t,r)}catch(i){console.warn(`[RequestCacheService] Cache warmup failed for ${t}:`,i)}})}clearCache(t){t?(this.cache.delete(t),this.cacheSequences.delete(t),this.pendingRequests.delete(t),console.log(`[RequestCacheService] Cleared cache for ${t}`)):(this.cache.clear(),this.cacheSequences.clear(),this.pendingRequests.clear(),this.requestSequence=0,console.log("[RequestCacheService] Cleared all cache"))}clearExpiredCache(){let t=Date.now();for(let[r,n]of this.cache)t>n.expiresAt&&(this.cache.delete(r),this.cacheSequences.delete(r));console.log("[RequestCacheService] Cleared expired cache entries")}getCacheStats(){let t=Date.now(),r=0,n=0;for(let i of this.cache.values())t>i.expiresAt?n++:r++;return{cacheCount:this.cache.size,validCount:r,expiredCount:n,pendingRequestCount:this.pendingRequests.size}}getCacheKeys(){return Array.from(this.cache.keys())}hasValidCache(t){let r=this.cache.get(t);return r?Date.now()<=r.expiresAt:!1}getPendingRequestKeys(){return Array.from(this.pendingRequests.keys())}hasPendingRequest(t){return this.pendingRequests.has(t)}getCacheSequence(t){return this.cacheSequences.get(t)}}});function W3(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=>!mc(r.totalAmountStr))}var Vt,Xp,Wt,cl,Zp,ef,sl,ll,vC,ul,tf=A(()=>{"use strict";Qp();P();be();vt();bo();Vt=class Vt{execute(t,r){return y(this,null,function*(){var a,s,l;let{response:n}=yield re(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&&W3(i,c)}if(i.paymentChoices.length===0)throw new Error("paymentChoices is empty");return i})}getNativePriceData(t){return y(this,null,function*(){let r=t.sort().join(","),n=Vt.nativePriceCache.get(r),i=Vt.nativePriceCacheTimestamp.get(r)||0;if(n&&Date.now()-i<Vt.NATIVE_PRICE_CACHE_DURATION)return console.log("[PaymentService] Using cached native price data"),n;console.log("[PaymentService] Fetching fresh native price data");try{let{data:o}=yield _e("requestProductDetailsAsync",{appStoreProductIds:t});return o&&(Vt.nativePriceCache.set(r,o),Vt.nativePriceCacheTimestamp.set(r,Date.now())),o}catch(o){throw console.warn("[PaymentService] Failed to fetch native product details:",o),o}})}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")}};Vt.nativePriceCache=new Map,Vt.NATIVE_PRICE_CACHE_DURATION=30*60*1e3,Vt.nativePriceCacheTimestamp=new Map;Xp=Vt,Wt=class Wt extends xt{constructor(r,n){super(new Xp,{duration:10*60*1e3,timeout:1e3});this.apiEndpoint=r;this.paymentType=n}getProductsInfo(){return y(this,null,function*(){let r=Wt.failureCounters.get(this.apiEndpoint)||0;if(r>=Wt.MAX_FAILURE_COUNT)throw new Error(`getProductsInfo has failed more than ${Wt.MAX_FAILURE_COUNT} times for ${this.apiEndpoint}`);try{let n=yield this.request(this.apiEndpoint);return Wt.failureCounters.delete(this.apiEndpoint),n}catch(n){let i=r+1;throw Wt.failureCounters.set(this.apiEndpoint,i),console.warn(`[PaymentService] getProductsInfo failed (${i}/${Wt.MAX_FAILURE_COUNT+1}) for ${this.apiEndpoint}:`,n),n}})}purchase(r){return y(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 sn.invokePayment(this.paymentType==="JOLI_COIN"?"JOLI_COIN_IAP":"JOLI_GEM_IAP",{productId:r,appStoreProductId:i})})}getProductsInfoWithBalance(){return y(this,null,function*(){return this.request(this.apiEndpoint)})}refreshProductsInfo(){return y(this,null,function*(){return this.forceRequest(this.apiEndpoint)})}static resetFailureCounters(){this.failureCounters.clear()}static getFailureCount(r){return this.failureCounters.get(r)||0}};Wt.failureCounters=new Map,Wt.MAX_FAILURE_COUNT=2;cl=Wt,Zp=class extends cl{constructor(){super("/api/joli-coin/balance-detail","JOLI_COIN")}},ef=class extends cl{constructor(){super("/api/joli-gem/balance-detail","JOLI_GEM")}},sl=null,ll=null,vC=()=>sl||(sl=new Zp,sl),ul=()=>ll||(ll=new ef,ll)});var bC=m(dl=>{"use strict";Ze();cr();J();Zs();P();el();Qp();cr();Ye();yt();Jp();Mr();tf();var z3={JOLI_COIN:{frequencyConfigKey:"charge",trackEvents:{modalShow:"coinorder_show",orderClick:"coinorder_click",payEnsure:"order_pay_ensure",payResult:"order_pay_result",adUnlock:"ad_unlock_click"},frequencyChecker:zA,frequencyUpdater:eC,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:QA,frequencyUpdater:nC,apiEndpoint:"/api/joli-gem/balance-detail",apiEndpointAutoDeduct:"/api/joli-gem/user-config",paymentType:"JOLI_GEM_IAP"}},Vn=_o(),yC=vC(),_C=ul(),K3=it(L,ur);L.on(nl,(e,t)=>y(dl,null,function*(){var r,n;try{let i=t.currency,o=z3[i];if(!Rm("requestPaymentSync:paymentBody:appStoreProductId")){console.info("requestPaymentSync:paymentBody:appStoreProductId not supported"),setTimeout(()=>{L.emit(Ct,{paymentResult:"FAILED",currency:i})},0);return}if(e.includes("ADS-")){yield Vn.show({duration:3e3});let c=yield K3.getData(),{canShow:d}=yield o.frequencyChecker(c.joliCoinUseAndCharge[o.frequencyConfigKey]);if(console.log(`${i} payment show by frequency`,d),Vn.hide(),!d){L.emit(Ct,{paymentResult:"FAILED",currency:i});return}console.log("show by frequency")}yield Vn.show({duration:3e3});let a=i==="JOLI_COIN"?yC:_C,s=yield a.getProductsInfo();if(Vn.hide(),!s){L.emit(Ct,{paymentResult:"FAILED",currency:i});return}U(o.trackEvents.modalShow,{targetType:"game",eventType:B.View,currency:i});let l=cA({data:{userCurrency:t.userCurrency,quantity:t.quantity,currency:i,paymentChoices:(n=(r=s.paymentChoices)==null?void 0:r.map(c=>{var d;return F(x({},c),{totalAmountStr:(d=c.totalAmountStr)!=null?d:""})}))!=null?n:[],enableAutoDeduct:t.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:c=>y(dl,null,function*(){var p,f,h,v,_,g,w,S;if(U(o.trackEvents.payEnsure,{targetType:"game",eventType:B.Click,payWay:"app_iap",coinAmount:t.quantity,currency:i,orderPrice:(f=(p=s.paymentChoices.find(C=>C.productId===c))==null?void 0:p.totalAmountStr)!=null?f:""}),!((h=E.hostUserInfo)!=null&&h.isLogin)){let{data:C}=yield Gp({skipLogin:!0});if(!(C!=null&&C.isLogin)){console.log("login failed");return}let O=yield a.refreshProductsInfo();if(((v=O==null?void 0:O.balance)!=null?v:0)>=t.quantity){L.emit(Ct,{paymentResult:"SUCCESS",currency:i}),l.destroy();return}}console.log("invokeNativePayment",c);let d=(g=(_=s==null?void 0:s.paymentChoices)==null?void 0:_.find(C=>C.productId===c))==null?void 0:g.appStoreProductId;if(!d){L.emit(Ct,{paymentResult:"FAILED",currency:i}),l.destroy();return}yield Vn.show({duration:3e3});let{code:u}=yield sn.invokePayment(o.paymentType,{productId:c,appStoreProductId:d});if(Vn.hide(),U(o.trackEvents.payResult,{eventType:B.Other,targetType:"game",payWay:"app_iap",coinAmount:t.quantity,currency:i,orderPrice:(S=(w=s.paymentChoices.find(C=>C.productId===c))==null?void 0:w.totalAmountStr)!=null?S:"",payResult:u}),console.log("payment result",u),u!=="SUCCESS"){console.info("[JoliboxSDK] payment failed in payment.invokePaymet");return}L.emit(Ct,{paymentResult:"SUCCESS",currency:i}),l.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:c})=>{L.emit(Ct,{paymentResult:(c!=null?c:"")==="CANCEL"?"CANCEL":"FAILED",currency:i}),U(o.trackEvents.adUnlock,{targetType:"game",eventType:B.Click,currency:i}),l.destroy()}},onEnableDeductChanged:c=>y(dl,null,function*(){yield tl(c,o.apiEndpointAutoDeduct)})},onSelect:c=>{var d,u;U(o.trackEvents.orderClick,{targetType:"game",eventType:B.Click,coinAmount:t.quantity,currency:i,orderPrice:(u=(d=s.paymentChoices.find(p=>p.productId===c))==null?void 0:d.totalAmountStr)!=null?u:""})}});yield o.frequencyUpdater()}catch(i){console.info("payment failed",i),L.emit(Ct,{paymentResult:"FAILED",currency:t.currency})}}));yC.getProductsInfo().catch(e=>{console.error("preload joli coin payment details failed",e)});_C.getProductsInfo().catch(e=>{console.error("preload joli gem payment details failed",e)})});var IC=m(pl=>{"use strict";Ze();Mr();el();vt();gt();P();Zs();cr();yt();var Y3={JOLI_COIN:{frequencyChecker:KA,frequencyUpdater:tC,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:XA,frequencyUpdater:iC,trackEvents:{modalExpose:"GemLoginGuideModal",clickConfirm:"GemLoginGuideModal",clickConfirmLogin:"GemLoginGuideModal",modalHide:"GemLoginGuideModal",clickClose:"GemLoginGuideModal",clickWatchAds:"GemLoginGuideModal"},toastMessage:{i18nKey:"{slot-i18ntran-loginGuide.gemRewardTips}",usedText:"Gem Used"}}},wC=it(L,ur);wC.getData();L.on(ol,(e,t)=>y(pl,null,function*(){var r;try{let n=t.currency,i=Y3[n];if(e.includes("ADS-")){let s=yield wC.getData();if(console.log(`${n} unlogin guide config`,s.loginGuide),!s.loginGuide.show){L.emit(dr,{result:"NOT_SUPPORT"});return}let{canShow:l}=yield i.frequencyChecker(s.loginGuide);if(console.log(`${n} canShowUseModal`,l),!l){L.emit(dr,{result:"FAILED"});return}}let{firstLogin:o}=(r=yield Q3())!=null?r:{};if(!(o!=null&&o.reward)){console.log("[JoliboxSDK] unlogin modal reward is empty"),L.emit(dr,{result:"NOT_SUPPORT"});return}U(i.trackEvents.modalExpose,{eventType:B.Expose,currency:n},B.Expose);let a=uA({data:{rewardType:e,rewardValue:o.reward.rewardValue,currency:t.currency},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>y(pl,null,function*(){var d,u,p,f;U(i.trackEvents.clickConfirm,{type:"click_confirm",eventType:B.Click,currency:n},B.Click);let{isLogin:s,extra:l,isFirstLogin:c}=yield jp({},!0);if(!s){console.log("login failed");return}if(U(i.trackEvents.clickConfirmLogin,{type:"click_confirm_login",isFirstLogin:c,eventType:B.Click,currency:n},B.Click),c&&((d=l==null?void 0:l.firstLogin)!=null&&d.reward)){let{rewardValue:h}=l.firstLogin.reward;Lr(i.toastMessage.i18nKey,{i18nParams:{text:i.toastMessage.usedText,coin:h},position:"top",duration:3e3})}L.emit(dr,{result:"SUCCESS",rewards:{claimedRewardValue:(f=(p=(u=l==null?void 0:l.firstLogin)==null?void 0:u.reward)==null?void 0:p.rewardValue)!=null?f:0,isFirstLogin:c!=null?c:!1,currency:t.currency}}),a.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:s})=>{U(i.trackEvents.modalHide,{eventType:B.Hide,currency:n},B.Hide);let l=s==="CANCEL"?"click_close":"click_watch_ads",c=s==="CANCEL"?i.trackEvents.clickClose:i.trackEvents.clickWatchAds;U(c,{type:l,eventType:B.Click,currency:n},B.Click),L.emit(dr,{result:"FAILED"}),a.destroy()}}}});yield i.frequencyUpdater()}catch(n){Ce(new Qh(n)),L.emit(dr,{result:"FAILED"})}}));var Q3=()=>y(pl,null,function*(){var t;let{response:e}=yield re("/api/base/global-config",{method:"GET",appendHostCookie:!0,responseType:"json"});return(t=e.data)==null?void 0:t.data})});var HZ,$Z,VZ,EC=A(()=>{"use strict";HZ=ie(sC()),$Z=ie(bC()),VZ=ie(IC())});function cH(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function uH(e){return typeof e=="string"}function dH(e){return typeof e=="undefined"}function pH(e){return dH(e)||e===null}function fH(e){return typeof e=="function"}function ZC(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 wo(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function gl(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 bH(e){let t=e.location?gl(e.location,TC):null,r=e.target?gl(e.target,TC):null;return gl(aH(oH({},e),{location:t,target:r}),yH)}function wH(e){let t=e.events.map(n=>bH(n)),r=gl(e.device,_H);return[e.protocolVersion,t,r,e.project]}function IH(){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 CH(e){return new Promise(t=>nx(e)(t))}function nx(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 xH(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new Ao(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 RH(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)OH(e[n],t[n])}function OH(e,t){if(uH(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(fH(t)){try{if(e instanceof t)return}catch(r){}if(!pH(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function ot(e,t,r){return(t=PH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function PH(e){var t=NH(e,"string");return typeof t=="symbol"?t:t+""}function NH(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 fl(e,t,r){return(t=DH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DH(e){var t=qH(e,"string");return typeof t=="symbol"?t:t+""}function qH(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 hl(e,t,r){return(t=LH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function LH(e){var t=MH(e,"string");return typeof t=="symbol"?t:t+""}function MH(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 hr(e,t,r){return(t=UH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function UH(e){var t=FH(e,"string");return typeof t=="symbol"?t:t+""}function FH(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 jH(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 GH(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 WH(e,t){return Ue(e,0)^45?(((t<<2^Ue(e,0))<<2^Ue(e,1))<<2^Ue(e,2))<<2^Ue(e,3):0}function ax(e){return e.trim()}function zH(e,t){return(e=t.exec(e))?e[0]:e}function K(e,t,r){return e.replace(t,r)}function vf(e,t){return e.indexOf(t)}function Ue(e,t){return e.charCodeAt(t)|0}function Co(e,t,r){return e.slice(t,r)}function zt(e){return e.length}function Nf(e){return e.length}function ml(e,t){return t.push(e),e}function KH(e,t){return e.map(t).join("")}function Ol(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Rl,column:Xn,length:a,return:""}}function Eo(e,t){return VH(Ol("",null,null,"",null,null,0),e,{length:-e.length},t)}function YH(){return Ae}function QH(){return Ae=lt>0?Ue(Zn,--lt):0,Xn--,Ae===10&&(Xn=1,Rl--),Ae}function ht(){return Ae=lt<sx?Ue(Zn,lt++):0,Xn++,Ae===10&&(Xn=1,Rl++),Ae}function Kt(){return Ue(Zn,lt)}function vl(){return lt}function To(e,t){return Co(Zn,e,t)}function xo(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 lx(e){return Rl=Xn=1,sx=zt(Zn=e),lt=0,[]}function cx(e){return Zn="",e}function yl(e){return ax(To(lt-1,yf(e===91?e+2:e===40?e+1:e)))}function XH(e){for(;(Ae=Kt())&&Ae<33;)ht();return xo(e)>2||xo(Ae)>3?"":" "}function ZH(e,t){for(;--t&&ht()&&!(Ae<48||Ae>102||Ae>57&&Ae<65||Ae>70&&Ae<97););return To(e,vl()+(t<6&&Kt()==32&&ht()==32))}function yf(e){for(;ht();)switch(Ae){case e:return lt;case 34:case 39:e!==34&&e!==39&&yf(Ae);break;case 40:e===41&&yf(e);break;case 92:ht();break}return lt}function e4(e,t){for(;ht()&&e+Ae!==57&&!(e+Ae===84&&Kt()===47););return"/*"+To(t,lt-1)+"*"+Tl(e===47?e:ht())}function t4(e){for(;!xo(Kt());)ht();return To(e,lt)}function r4(e){return cx(_l("",null,null,null,[""],e=lx(e),0,[0],e))}function _l(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,h=0,v=1,_=1,g=1,w=0,S="",C=i,O=o,T=n,k=S;_;)switch(h=w,w=ht()){case 40:if(h!=108&&Ue(k,u-1)==58){vf(k+=K(yl(w),"&","&\f"),"&\f")!=-1&&(g=-1);break}case 34:case 39:case 91:k+=yl(w);break;case 9:case 10:case 13:case 32:k+=XH(h);break;case 92:k+=ZH(vl()-1,7);continue;case 47:switch(Kt()){case 42:case 47:ml(n4(e4(ht(),vl()),t,r),l);break;default:k+="/"}break;case 123*v:s[c++]=zt(k)*g;case 125*v:case 59:case 0:switch(w){case 0:case 125:_=0;case 59+d:g==-1&&(k=K(k,/\f/g,"")),f>0&&zt(k)-u&&ml(f>32?NC(k+";",n,r,u-1):NC(K(k," ","")+";",n,r,u-2),l);break;case 59:k+=";";default:if(ml(T=PC(k,t,r,c,d,i,s,S,C=[],O=[],u),o),w===123)if(d===0)_l(k,t,T,T,C,o,u,s,O);else switch(p===99&&Ue(k,3)===110?100:p){case 100:case 108:case 109:case 115:_l(e,T,T,n&&ml(PC(e,T,T,0,0,i,s,S,i,C=[],u),O),i,O,u,s,n?C:O);break;default:_l(k,T,T,T,[""],O,0,s,O)}}c=d=f=0,v=g=1,S=k="",u=a;break;case 58:u=1+zt(k),f=h;default:if(v<1){if(w==123)--v;else if(w==125&&v++==0&&QH()==125)continue}switch(k+=Tl(w),w*v){case 38:g=d>0?1:(k+="\f",-1);break;case 44:s[c++]=(zt(k)-1)*g,g=1;break;case 64:Kt()===45&&(k+=yl(ht())),p=Kt(),d=u=zt(S=k+=t4(vl())),w++;break;case 45:h===45&&zt(k)==2&&(v=0)}}return o}function PC(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=Nf(p),h=0,v=0,_=0;h<n;++h)for(var g=0,w=Co(e,u+1,u=$H(v=a[h])),S=e;g<f;++g)(S=ax(v>0?p[g]+" "+w:K(w,/&\f/g,p[g])))&&(l[_++]=S);return Ol(e,t,r,i===0?Of:s,l,c,d)}function n4(e,t,r){return Ol(e,t,r,ix,Tl(YH()),Co(e,2,-2),0)}function NC(e,t,r,n){return Ol(e,t,r,Pf,Co(e,0,n),Co(e,n+1,-1),n)}function Qn(e,t){for(var r="",n=Nf(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function i4(e,t,r,n){switch(e.type){case HH:if(e.children.length)break;case JH:case Pf:return e.return=e.return||e.value;case ix:return"";case ox:return e.return=e.value+"{"+Qn(e.children,n)+"}";case Of:e.value=e.props.join(",")}return zt(r=Qn(e.children,n))?e.return=e.value+"{"+r+"}":""}function o4(e){var t=Nf(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 a4(e){return function(t){t.root||(t=t.return)&&e(t)}}function s4(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function ux(e,t){switch(WH(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+El+e+Ve+e+e;case 6828:case 4268:return z+e+Ve+e+e;case 6165:return z+e+Ve+"flex-"+e+e;case 5187:return z+e+K(e,/(\w+).+(:[^]+)/,z+"box-$1$2"+Ve+"flex-$1$2")+e;case 5443:return z+e+Ve+"flex-item-"+K(e,/flex-|-self/,"")+e;case 4675:return z+e+Ve+"flex-line-pack"+K(e,/align-content|flex-|-self/,"")+e;case 5548:return z+e+Ve+K(e,"shrink","negative")+e;case 5292:return z+e+Ve+K(e,"basis","preferred-size")+e;case 6060:return z+"box-"+K(e,"-grow","")+z+e+Ve+K(e,"grow","positive")+e;case 4554:return z+K(e,/([^-])(transform)/g,"$1"+z+"$2")+e;case 6187:return K(K(K(e,/(zoom-|grab)/,z+"$1"),/(image-set)/,z+"$1"),e,"")+e;case 5495:case 3959:return K(e,/(image-set\([^]*)/,z+"$1$`$1");case 4968:return K(K(e,/(.+:)(flex-)?(.*)/,z+"box-pack:$3"+Ve+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+z+e+e;case 4095:case 3583:case 4068:case 2532:return K(e,/(.+)-inline(.+)/,z+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(zt(e)-1-t>6)switch(Ue(e,t+1)){case 109:if(Ue(e,t+4)!==45)break;case 102:return K(e,/(.+:)(.+)-([^]+)/,"$1"+z+"$2-$3$1"+El+(Ue(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~vf(e,"stretch")?ux(K(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ue(e,t+1)!==115)break;case 6444:switch(Ue(e,zt(e)-3-(~vf(e,"!important")&&10))){case 107:return K(e,":",":"+z)+e;case 101:return K(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(Ue(e,14)===45?"inline-":"")+"box$3$1"+z+"$2$3$1"+Ve+"$2box$3")+e}break;case 5936:switch(Ue(e,t+11)){case 114:return z+e+Ve+K(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+Ve+K(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+Ve+K(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+e+Ve+e+e}return e}function g4(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 Sl(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 Fr={name:i.name,styles:i.styles,next:Fr},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Fr={name:a.name,styles:a.styles,next:Fr},a=a.next;var s=o.styles+";";return s}return b4(e,t,r)}}var l=r;if(t==null)return l;var c=t[l];return c!==void 0?c:l}function b4(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Sl(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]+"}":qC(s)&&(n+=nf(o)+":"+LC(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++)qC(a[l])&&(n+=nf(o)+":"+LC(o,a[l])+";");else{var c=Sl(e,t,a);switch(o){case"animation":case"animationName":{n+=nf(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function of(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="";Fr=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=Sl(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Sl(r,t,e[s]),n){var l=o;i+=l[s]}MC.lastIndex=0;for(var c="",d;(d=MC.exec(i))!==null;)c+="-"+d[1];var u=g4(i)+c;return{name:u,styles:i,next:Fr}}function px(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}function UC(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function FC(e,t,r){var n=[],i=px(e,n,r);return n.length<2?r:i+t(n)}function A4(e,t){Oe.__h&&Oe.__h(ft,e,GC||t),GC=0;var r=ft.__H||(ft.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function hx(e,t){var r=A4(_f++,7);return T4(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function C4(){for(var e;e=fx.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(bl),e.__H.__h.forEach(bf),e.__H.__h=[]}catch(t){e.__H.__h=[],Oe.__e(t,e.__v)}}function x4(e){var t,r=function(){clearTimeout(n),zC&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);zC&&(t=requestAnimationFrame(r))}function bl(e){var t=ft,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ft=t}function bf(e){var t=ft;e.__c=e.__(),ft=t}function T4(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Pl(){if(jr>1)jr--;else{for(var e,t=!1;So!==void 0;){var r=So;for(So=void 0,wf++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&gx(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(wf=0,jr--,t)throw e}}function st(e){if(jr>0)return e();jr++;try{return e()}finally{Pl()}}function mx(e){if(ee!==void 0){var t=e.n;if(t===void 0||t.t!==ee)return t={i:0,S:e,p:ee.s,n:void 0,t:ee,e:void 0,x:void 0,r:t},ee.s!==void 0&&(ee.s.n=t),ee.s=t,e.n=t,32&ee.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=ee.s,t.n=void 0,ee.s.n=t,ee.s=t),t}}function Fe(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function ne(e){return new Fe(e)}function gx(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 vx(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 yx(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 ti(e){Fe.call(this,void 0),this.x=e,this.s=void 0,this.g=kl-1,this.f=4}function ko(e){return new ti(e)}function _x(e){var t=e.u;if(e.u=void 0,typeof t=="function"){jr++;var r=ee;ee=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,Df(e),n}finally{ee=r,Pl()}}}function Df(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,_x(e)}function O4(e){if(ee!==this)throw new Error("Out-of-order effect");yx(this),ee=e,this.f&=-2,8&this.f&&Df(this),Pl()}function Ro(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function Oo(e){var t=new Ro(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function ri(e,t){N[e]=t.bind(null,N[e]||function(){})}function Al(e){sf&&sf(),sf=e&&e.S()}function Ix(e){var t=this,r=e.data,n=Ex(r);n.value=r;var i=hx(function(){for(var s=t,l=t.__v;l=l.__;)if(l.__c){l.__c.__$f|=4;break}var c=ko(function(){var f=n.value.value;return f===0?0:f===!0?"":f||""}),d=ko(function(){return!Array.isArray(c.value)&&!Hc(c.value)}),u=Oo(function(){if(this.N=Sx,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 P4(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=ne(r);return{o:function(a,s){o.value=a,n=s},d:Oo(function(){this.N=Sx;var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function Ex(e){return hx(function(){return ne(e)},[])}function D4(){st(function(){for(var e;e=wx.shift();)bx.call(e)})}function Sx(){wx.push(this)===1&&(N.requestAnimationFrame||N4)(D4)}function q4(e,t){let r=Bi(e);An(()=>{r.current=e},[e]),Gi(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function ye(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:--L4,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return N.vnode&&N.vnode(c),c}function mr(e,t,r){return(t=z4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function z4(e){var t=K4(e,"string");return typeof t=="symbol"?t:t+""}function K4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function gr(e,t,r){return(t=Z4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Z4(e){var t=e$(e,"string");return typeof t=="symbol"?t:t+""}function e$(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 $e(e,t,r){return(t=t$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t$(e){var t=r$(e,"string");return typeof t=="symbol"?t:t+""}function r$(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function at(e,t,r){return(t=n$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n$(e){var t=i$(e,"string");return typeof t=="symbol"?t:t+""}function i$(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 ln(e,t,r){return(t=o$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o$(e){var t=a$(e,"string");return typeof t=="symbol"?t:t+""}function a$(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 lf(e,t,r){return(t=s$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s$(e){var t=l$(e,"string");return typeof t=="symbol"?t:t+""}function l$(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 et(e,t,r){return(t=c$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c$(e){var t=u$(e,"string");return typeof t=="symbol"?t:t+""}function u$(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 Tt(e,t,r){return(t=d$(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function d$(e){var t=p$(e,"string");return typeof t=="symbol"?t:t+""}function p$(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 X3,Il,KC,YC,SC,Z3,eH,QC,tH,rH,kC,nH,iH,AC,oH,aH,sH,XC,lH,hH,mH,CC,gH,xC,vH,ex,tx,rx,TC,yH,_H,Kn,RC,cf,pe,EH,SH,Io,Ao,kH,df,AH,rf,TH,pf,OC,Wn,ff,hf,mf,gf,BH,Ve,El,z,ix,Of,Pf,JH,ox,HH,$H,Tl,VH,Rl,Xn,sx,lt,Ae,Zn,l4,c4,u4,DC,d4,p4,f4,h4,m4,v4,y4,_4,dx,qC,nf,LC,MC,Fr,w4,I4,E4,S4,k4,ei,_f,ft,af,jC,GC,fx,Oe,BC,JC,HC,$C,VC,WC,zC,R4,ee,So,jr,wf,kl,bx,sf,wx,N4,We,L4,M4,vr,If,Ef,wl,U4,F4,j4,G4,B4,J4,H4,$4,V4,W4,Sf,Yn,zn,Y4,Q4,X4,kf,kx,Af,Cf,xf,Tf,Cl,Rf,xl,KZ,Ax=A(()=>{"use strict";gn();Fa();X3=Object.defineProperty,Il=Object.getOwnPropertySymbols,KC=Object.prototype.hasOwnProperty,YC=Object.prototype.propertyIsEnumerable,SC=(e,t,r)=>t in e?X3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Z3=(e,t)=>{for(var r in t||(t={}))KC.call(t,r)&&SC(e,r,t[r]);if(Il)for(var r of Il(t))YC.call(t,r)&&SC(e,r,t[r]);return e},eH=(e,t)=>{var r={};for(var n in e)KC.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Il)for(var n of Il(e))t.indexOf(n)<0&&YC.call(e,n)&&(r[n]=e[n]);return r},QC=Object.defineProperty,tH=Object.defineProperties,rH=Object.getOwnPropertyDescriptors,kC=Object.getOwnPropertySymbols,nH=Object.prototype.hasOwnProperty,iH=Object.prototype.propertyIsEnumerable,AC=(e,t,r)=>t in e?QC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,oH=(e,t)=>{for(var r in t||(t={}))nH.call(t,r)&&AC(e,r,t[r]);if(kC)for(var r of kC(t))iH.call(t,r)&&AC(e,r,t[r]);return e},aH=(e,t)=>tH(e,rH(t)),sH=(e,t)=>{for(var r in t)QC(e,r,{get:t[r],enumerable:!0})},XC=(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},lH=(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}hH=(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))(hH||{});mH={log:wo("log"),warn:wo("warn"),info:wo("info"),error:wo("error"),debug:wo("debug")};Object.assign(globalThis,{logger:mH});CC=Symbol.for("Jolibox.canIUseMap"),gH={};globalThis[CC]||(globalThis[CC]=gH);xC=Symbol.for("Jolibox.canIUseMap.native"),vH={};globalThis[xC]||(globalThis[xC]=vH);ex=(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))(ex||{}),tx=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(tx||{}),rx=(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))(rx||{}),TC=["name","params"],yH=["name","type","location","target","extra","timestamp","userId"],_H=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];IH();Kn=typeof window=="undefined",RC=()=>!Kn&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK");!Kn&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),!Kn&&navigator.userAgent.includes("Android"),!Kn&&navigator.userAgent.includes("Mac"),!Kn&&navigator.userAgent.includes("FB_IAB"),!Kn&&!navigator.userAgent.includes("iPhone")&&navigator.userAgent.includes("Android");cf=class uf{constructor(t){this.element=t,this.next=uf.Undefined,this.prev=uf.Undefined}};cf.Undefined=new cf(void 0);pe=cf,EH=class{constructor(){this._first=pe.Undefined,this._last=pe.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===pe.Undefined}clear(){let e=this._first;for(;e!==pe.Undefined;){let t=e.next;e.prev=pe.Undefined,e.next=pe.Undefined,e=t}this._first=pe.Undefined,this._last=pe.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new pe(e);if(this._first===pe.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!==pe.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==pe.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==pe.Undefined&&e.next!==pe.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===pe.Undefined&&e.next===pe.Undefined?(this._first=pe.Undefined,this._last=pe.Undefined):e.next===pe.Undefined?(this._last=this._last.prev,this._last.next=pe.Undefined):e.prev===pe.Undefined&&(this._first=this._first.next,this._first.prev=pe.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==pe.Undefined;)yield e.element,e=e.next}},SH=0,Io=class{constructor(e){this.value=e,this.id=SH++}},Ao=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 Io&&(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 Io(e);return this._listeners?this._listeners instanceof Io?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 Io)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 Io?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},kH=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 Ao,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 EH,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)}},df={};sH(df,{None:()=>AH,filter:()=>xH,once:()=>nx,toPromise:()=>CH});AH=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});rf=Symbol.for("Jolibox.hostEmitter"),TH=()=>{let e=new kH;return globalThis[rf]||(globalThis[rf]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[rf]};TH();pf=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Ao,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 RH(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}};pf=XC([ZC],pf);OC=class{constructor(){this._onWillExecuteCommand=new Ao,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Ao,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new pf,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=cH(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 lH(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),df.toPromise(df.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{}}};OC=XC([ZC],OC);Wn=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")},ff=class{constructor(t){ot(this,"context",void 0),ot(this,"continueCallback",void 0),ot(this,"adIsShowingCallback",void 0),ot(this,"isBeforeAdCalled",!1),ot(this,"isBeforeRewardCalled",!1),ot(this,"isAdDismissedCalled",!1),ot(this,"isAdViewedCalled",!1),ot(this,"isAfterAdCalled",!1),ot(this,"currentProvider",void 0),ot(this,"currentClientParams",void 0),ot(this,"adsHasResponse",!1),ot(this,"videoChecker",window.document.createElement("video")),ot(this,"contextInfo",void 0),ot(this,"wrapShowAdFn",r=>()=>{var n,i,o;this.adsHasResponse=!0;let a=!1;this.videoChecker.play().catch(()=>{a=!1}),a=!this.videoChecker.paused,this.videoChecker.pause(),this.context.track("CallShowAdFn",Object.assign({},{userEvent:a},this.paramsToTrack)),this.notifyIframeAdsEvent("JOLIBOX_AD_CALL_BEFORE_REWARD",Z3({userEvent:a},this.paramsToTrack)),RC()&&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=Wn(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=Wn(t);a==null||a(),((r=this.currentClientParams)==null?void 0:r.type)!=="reward"&&((n=this.adIsShowingCallback)==null||n.call(this,!0),RC()&&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=Wn(t);r==null||r()}}}wrapAdViewed(t){return()=>{if(this.adsHasResponse=!0,!this.isAdViewedCalled){this.isAdViewedCalled=!0;let r=Wn(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=Wn(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=Wn(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 y(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")})})}};hf=class{constructor(t){fl(this,"context",void 0),fl(this,"adBreakIsShowing",!1),fl(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),fl(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()})}};mf=class{constructor(t){hl(this,"configs",null),hl(this,"firstRun",!0),hl(this,"context",void 0),hl(this,"contextInfo",void 0),this.context=t,this.contextInfo=this.context.getContextInfo(),this.init()}init(){return y(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}};gf=class{constructor(t,r){hr(this,"name","ADSENSE"),hr(this,"context",void 0),hr(this,"contextInfo",void 0),hr(this,"configured",!1),hr(this,"initParams",void 0),hr(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),hr(this,"adConfig",n=>{let i=n,{onReady:o}=i,a=eH(i,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),hr(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),hr(this,"adUnit",n=>y(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 v=typeof d=="object"&&Array.isArray(d)?d.join(", "):d,_=document.createElement("ins");if(_.className="adsbygoogle",_.id="jolibox-ads",_.style.display="block",_.setAttribute("data-ad-client",this.initParams.clientId),_.setAttribute("data-ad-slot",h),v&&_.setAttribute("data-ad-format",v),u&&_.setAttribute("data-full-width-responsive",u),p&&_.setAttribute("style",p),(s=this.contextInfo.testAdsMode)!=null?s:!1){let g=document.createElement("div");g.style.position="absolute",g.style.top="0",g.style.left="0",g.style.width="100%",g.style.height="100%",g.style.display="flex",g.style.justifyContent="center",g.style.alignItems="center",g.style.backgroundColor="rgba(0, 0, 0, 0.5)",g.style.color="white",g.innerHTML="Test Ad",_.style.position="relative",f.appendChild(_),_.appendChild(g)}else f.appendChild(_),new MutationObserver(g=>{g.forEach(w=>{if(w.type==="attributes"&&w.attributeName==="data-ad-status"){let S=_.getAttribute("data-ad-status");this.context.track("AdSenseUnitStatusChanged",{status:S!=null?S:"null"})}})}).observe(_,{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 y(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)}})}};BH=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(GH(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=jH(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}(),Ve="-ms-",El="-moz-",z="-webkit-",ix="comm",Of="rule",Pf="decl",JH="@import",ox="@keyframes",HH="@layer",$H=Math.abs,Tl=String.fromCharCode,VH=Object.assign;Rl=1,Xn=1,sx=0,lt=0,Ae=0,Zn="";l4=function(e,t,r){for(var n=0,i=0;n=i,i=Kt(),n===38&&i===12&&(t[r]=1),!xo(i);)ht();return To(e,lt)},c4=function(e,t){var r=-1,n=44;do switch(xo(n)){case 0:n===38&&Kt()===12&&(t[r]=1),e[r]+=l4(lt-1,t,r);break;case 2:e[r]+=yl(n);break;case 4:if(n===44){e[++r]=Kt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Tl(n)}while(n=ht());return e},u4=function(e,t){return cx(c4(lx(e),t))},DC=new WeakMap,d4=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&&!DC.get(r))&&!n){DC.set(e,!0);for(var i=[],o=u4(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]}}},p4=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};f4=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Pf:e.return=ux(e.value,e.length);break;case ox:return Qn([Eo(e,{value:K(e.value,"@","@"+z)})],n);case Of:if(e.length)return KH(e.props,function(i){switch(zH(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Qn([Eo(e,{props:[K(i,/:(read-\w+)/,":"+El+"$1")]})],n);case"::placeholder":return Qn([Eo(e,{props:[K(i,/:(plac\w+)/,":"+z+"input-$1")]}),Eo(e,{props:[K(i,/:(plac\w+)/,":"+El+"$1")]}),Eo(e,{props:[K(i,/:(plac\w+)/,Ve+"input-$1")]})],n)}return""})}},h4=[f4],m4=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 v=h.getAttribute("data-emotion");v.indexOf(" ")!==-1&&(document.head.appendChild(h),h.setAttribute("data-s",""))})}var n=e.stylisPlugins||h4,i={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(h){for(var v=h.getAttribute("data-emotion").split(" "),_=1;_<v.length;_++)i[v[_]]=!0;a.push(h)});var s,l=[d4,p4];{var c,d=[i4,a4(function(h){c.insert(h)})],u=o4(l.concat(n,d)),p=function(h){return Qn(r4(h),u)};s=function(h,v,_,g){c=_,p(h?h+"{"+v.styles+"}":v.styles),g&&(f.inserted[v.name]=!0)}}var f={key:t,sheet:new BH({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};v4={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},y4=/[A-Z]|^ms/g,_4=/_EMO_([^_]+?)_([^]*?)_EMO_/g,dx=function(e){return e.charCodeAt(1)===45},qC=function(e){return e!=null&&typeof e!="boolean"},nf=s4(function(e){return dx(e)?e:e.replace(y4,"-$&").toLowerCase()}),LC=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(_4,function(r,n,i){return Fr={name:n,styles:i,next:Fr},n})}return v4[e]!==1&&!dx(e)&&typeof t=="number"&&t!==0?t+"px":t};MC=/label:\s*([^\s;{]+)\s*(;|$)/g;w4=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},I4=function(e,t,r){w4(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)}};E4=function(e){var t=m4(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=of(s,t.registered,void 0);return I4(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=of(s,t.registered),d="animation-"+c.name;return UC(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=of(s,t.registered);UC(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return FC(t.registered,r,S4(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:px.bind(null,t.registered),merge:FC.bind(null,t.registered,r)}},S4=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},k4=E4({key:"css"}),ei=k4.css,GC=0,fx=[],Oe=N,BC=Oe.__b,JC=Oe.__r,HC=Oe.diffed,$C=Oe.__c,VC=Oe.unmount,WC=Oe.__;Oe.__b=function(e){ft=null,BC&&BC(e)},Oe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),WC&&WC(e,t)},Oe.__r=function(e){JC&&JC(e),_f=0;var t=(ft=e.__c).__H;t&&(af===ft?(t.__h=[],ft.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(bl),t.__h.forEach(bf),t.__h=[],_f=0)),af=ft},Oe.diffed=function(e){HC&&HC(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(fx.push(t)!==1&&jC===Oe.requestAnimationFrame||((jC=Oe.requestAnimationFrame)||x4)(C4)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),af=ft=null},Oe.__c=function(e,t){t.some(function(r){try{r.__h.forEach(bl),r.__h=r.__h.filter(function(n){return!n.__||bf(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Oe.__e(n,r.__v)}}),$C&&$C(e,t)},Oe.unmount=function(e){VC&&VC(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{bl(n)}catch(i){t=i}}),r.__H=void 0,t&&Oe.__e(t,r.__v))};zC=typeof requestAnimationFrame=="function";R4=Symbol.for("preact-signals");ee=void 0,So=void 0,jr=0,wf=0,kl=0;Fe.prototype.brand=R4;Fe.prototype.h=function(){return!0};Fe.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};Fe.prototype.U=function(e){if(this.t!==void 0){var t=e.e,r=e.x;t!==void 0&&(t.x=r,e.e=void 0),r!==void 0&&(r.e=t,e.x=void 0),e===this.t&&(this.t=r)}};Fe.prototype.subscribe=function(e){var t=this;return Oo(function(){var r=t.value,n=ee;ee=void 0;try{e(r)}finally{ee=n}})};Fe.prototype.valueOf=function(){return this.value};Fe.prototype.toString=function(){return this.value+""};Fe.prototype.toJSON=function(){return this.value};Fe.prototype.peek=function(){var e=ee;ee=void 0;try{return this.value}finally{ee=e}};Object.defineProperty(Fe.prototype,"value",{get:function(){var e=mx(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(wf>100)throw new Error("Cycle detected");this.v=e,this.i++,kl++,jr++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Pl()}}}});(ti.prototype=new Fe).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===kl))return!0;if(this.g=kl,this.f|=1,this.i>0&&!gx(this))return this.f&=-2,!0;var e=ee;try{vx(this),ee=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return ee=e,yx(this),this.f&=-2,!0};ti.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Fe.prototype.S.call(this,e)};ti.prototype.U=function(e){if(this.t!==void 0&&(Fe.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};ti.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(ti.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=mx(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});Ro.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()}};Ro.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,_x(this),vx(this),jr++;var e=ee;return ee=this,O4.bind(this,e)};Ro.prototype.N=function(){2&this.f||(this.f|=2,this.o=So,So=this)};Ro.prototype.d=function(){this.f|=8,1&this.f||Df(this)};wx=[];Oo(function(){bx=this.N})();Ix.displayName="_st";Object.defineProperties(Fe.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Ix},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});ri("__b",function(e,t){if(typeof t.type=="string"){var r,n=t.props;for(var i in n)if(i!=="children"){var o=n[i];o instanceof Fe&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});ri("__r",function(e,t){Al();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return Oo(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),Al(r),e(t)});ri("__e",function(e,t,r,n){Al(),e(t,r,n)});ri("diffed",function(e,t){Al();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=P4(r,l,d,i),o[l]=c):c.o(d,i)}}}e(t)});ri("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)});ri("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});ct.prototype.shouldComponentUpdate=function(e,t){var r=this.__$u,n=r&&r.s!==void 0;for(var i in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var o=2&this.__$f;if(!(n||o||4&this.__$f)||1&this.__$f)return!0}else if(!(n||4&this.__$f)||3&this.__$f)return!0;for(var a in e)if(a!=="__source"&&e[a]!==this.props[a])return!0;for(var s in this.props)if(!(s in e))return!0;return!1};N4=function(e){queueMicrotask(function(){queueMicrotask(e)})};We=ei`
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
- `;n4=0;i4=Xn`
640
+ `;L4=0;M4=ei`
641
641
  ${We}
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
- `,pr=re(null),lf=re(""),cf=re(""),dl=re(!1),o4=()=>{var e;(e=pr.value)==null||e.call(pr,!1)},a4=()=>{var e;(e=pr.value)==null||e.call(pr,!0)},s4=e=>w(void 0,null,function*(){let{title:t,content:r}=e;return pr.value&&(pr.value(!1),st(()=>{pr.value=null,dl.value=!1})),st(()=>{lf.value=t||"",cf.value=r||"",dl.value=!0}),new Promise(n=>{pr.value=i=>{st(()=>{pr.value=null,dl.value=!1,lf.value="",cf.value=""}),n(i)}})}),l4=()=>dl.value?ye("div",{className:i4,children:ye("div",{className:"card-wrapper",children:[ye("div",{className:"body",children:[ye("div",{className:"title",children:lf.value}),ye("div",{className:"content",children:cf.value})]}),ye("div",{className:"footer",children:[ye("button",{onClick:o4,className:"cancel-btn",children:"Cancel"}),ye("button",{onClick:a4,className:"confirm-btm",children:"Confirm"})]})]})}):null,c4=Xn`
715
+ `,vr=ne(null),If=ne(""),Ef=ne(""),wl=ne(!1),U4=()=>{var e;(e=vr.value)==null||e.call(vr,!1)},F4=()=>{var e;(e=vr.value)==null||e.call(vr,!0)},j4=e=>y(void 0,null,function*(){let{title:t,content:r}=e;return vr.value&&(vr.value(!1),st(()=>{vr.value=null,wl.value=!1})),st(()=>{If.value=t||"",Ef.value=r||"",wl.value=!0}),new Promise(n=>{vr.value=i=>{st(()=>{vr.value=null,wl.value=!1,If.value="",Ef.value=""}),n(i)}})}),G4=()=>wl.value?ye("div",{className:M4,children:ye("div",{className:"card-wrapper",children:[ye("div",{className:"body",children:[ye("div",{className:"title",children:If.value}),ye("div",{className:"content",children:Ef.value})]}),ye("div",{className:"footer",children:[ye("button",{onClick:U4,className:"cancel-btn",children:"Cancel"}),ye("button",{onClick:F4,className:"confirm-btm",children:"Confirm"})]})]})}):null,B4=ei`
716
716
  ${We}
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
- `,u4=()=>{let e=re(!1),t=re(null);return{timerPaused:e,startTimestamp:t,startTimer:()=>{st(()=>{t.value=Date.now(),e.value=!1})}}},d4=e=>{let{countdown:t=0,mode:r,onClose:n,state:i}=e,{startTimestamp:o,timerPaused:a}=i,s=Gx(t);r4(()=>{s.value>0?s.value-=1:st(()=>{a.value=!0,s.value=0})},a.value?null:1e3);let l=Eo(()=>{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=Eo(()=>{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=Eo(()=>r==="interstitial"?!1:!l.value&&!c.value),u=()=>w(void 0,null,function*(){if(a.value=!0,!(yield s4({title:"Are you sure?",content:"You will lose your reward if you dismiss this Ad."}))){a.value=!1;return}n("dismiss"),st(()=>{a.value=!0,s.value=0,o.value=null})}),p=()=>{n("viewed"),st(()=>{a.value=!0,s.value=0,o.value=null})};return ye("div",{className:c4,children:[s.value>0&&r!=="interstitial"&&ye("div",{className:"timer",children:[s.value,"s"]}),ye("button",{onClick:l.value?u:c.value?p:void 0,disabled:d.value,children:ye("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ye("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"})})})]})},p4=()=>{let e=re(),t=re(),r=re(),n=re(),i=re(),o=re(!1),a=re(15),s=re(""),l=re("reward");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,visible:o,countdown:a,src:s,mode:l}},f4=Xn`
748
+ `,J4=()=>{let e=ne(!1),t=ne(null);return{timerPaused:e,startTimestamp:t,startTimer:()=>{st(()=>{t.value=Date.now(),e.value=!1})}}},H4=e=>{let{countdown:t=0,mode:r,onClose:n,state:i}=e,{startTimestamp:o,timerPaused:a}=i,s=Ex(t);q4(()=>{s.value>0?s.value-=1:st(()=>{a.value=!0,s.value=0})},a.value?null:1e3);let l=ko(()=>{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=ko(()=>{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=ko(()=>r==="interstitial"?!1:!l.value&&!c.value),u=()=>y(void 0,null,function*(){if(a.value=!0,!(yield j4({title:"Are you sure?",content:"You will lose your reward if you dismiss this Ad."}))){a.value=!1;return}n("dismiss"),st(()=>{a.value=!0,s.value=0,o.value=null})}),p=()=>{n("viewed"),st(()=>{a.value=!0,s.value=0,o.value=null})};return ye("div",{className:B4,children:[s.value>0&&r!=="interstitial"&&ye("div",{className:"timer",children:[s.value,"s"]}),ye("button",{onClick:l.value?u:c.value?p:void 0,disabled:d.value,children:ye("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ye("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"})})})]})},$4=()=>{let e=ne(),t=ne(),r=ne(),n=ne(),i=ne(),o=ne(!1),a=ne(15),s=ne(""),l=ne("reward");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,visible:o,countdown:a,src:s,mode:l}},V4=ei`
749
749
  ${We}
750
750
  position: fixed;
751
751
  z-index: 2147483647;
@@ -764,7 +764,7 @@ 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
- `,m4=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=Ji(()=>u4(),[]),[p,f]=Pa(!1),h=y=>{var g,b,k,x;s.value=!1,y==="dismiss"?(g=n.value)==null||g.call(n):y==="viewed"&&((b=i.value)==null||b.call(i)),(k=r.value)==null||k.call(r),(x=o.value)==null||x.call(o),f(!1)},v=En(()=>{var y;p||(f(!0),(y=a.value)==null||y.call(a))},[p]);return Fi(()=>{p&&(d.value==="reward"||d.value==="rewarded_insterstitial")&&setTimeout(()=>{u.startTimer()},100)},[p,d.value]),s.value?ye("div",{className:f4,children:[ye(d4,{mode:d.value,onClose:h,countdown:l.value,state:u}),s.value&&ye("iframe",{src:c.value,onLoad:v,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"}),ye(l4,{})]}):null};uf=class{constructor(t,r){ur(this,"name","OKSPIN"),ur(this,"initialized",!1),ur(this,"initCompleter",null),ur(this,"context",void 0),ur(this,"initParams",void 0),ur(this,"adsOverlay",null),ur(this,"adsIsShowing",!1),ur(this,"lastUnDisplayedAdBreak",null),ur(this,"state",p4()),this.context=t,this.initParams=r}init(){return w(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg"),Pu(ye(m4,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay),this.initialized=!0,(t=this.initCompleter)==null||t.call(this)})}adConfig(t){var r;if(this.initialized){(r=t.onReady)==null||r.call(t);return}this.initCompleter=()=>{var n;(n=t.onReady)==null||n.call(t)}}adBreak(t,r){return w(this,null,function*(){var n,i,o,a,s,l,c,d;if(!this.initialized||!this.adsOverlay||!r.params.url){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"});return}if(this.adsIsShowing){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}switch(t.type){case"preroll":{(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(a=t.beforeAd)==null||a.call(t);let u=()=>{var f;this.adsIsShowing=!1,(f=t.afterAd)==null||f.call(t)},p=()=>{var f;this.adsIsShowing=!1,(f=t.adBreakDone)==null||f.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})};st(()=>{this.adsIsShowing=!0,this.state.afterAd.value=u,this.state.adBreakDone.value=p,this.state.src.value=r.params.url,this.state.mode.value="interstitial",this.state.visible.value=!0});break}case"reward":{this.lastUnDisplayedAdBreak&&((l=(s=this.lastUnDisplayedAdBreak).adBreakDone)==null||l.call(s,{breakType:this.lastUnDisplayedAdBreak.type,breakName:this.lastUnDisplayedAdBreak.type==="preroll"?"":this.lastUnDisplayedAdBreak.name,breakFormat:this.lastUnDisplayedAdBreak.type==="reward"?"reward":"interstitial",breakStatus:"ignored"}),this.lastUnDisplayedAdBreak=null),(c=t.beforeAd)==null||c.call(t);let u=()=>{var g;this.adsIsShowing=!1,(g=t.afterAd)==null||g.call(t)},p={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},f=()=>{var g;this.adsIsShowing=!1,p.breakStatus="dismissed",(g=t.adDismissed)==null||g.call(t)},h=()=>{var g;this.adsIsShowing=!1,p.breakStatus="viewed",(g=t.adViewed)==null||g.call(t)},v=()=>{var g;this.adsIsShowing=!1,(g=t.adBreakDone)==null||g.call(t,p)};st(()=>{this.state.afterAd.value=u,this.state.adDismissed.value=f,this.state.adViewed.value=h,this.state.adBreakDone.value=v});let y=()=>{var g;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(g=t.adBreakDone)==null||g.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,st(()=>{var b;this.state.countdown.value=(b=r.params.countdown)!=null?b:15,this.state.src.value=r.params.url,this.state.mode.value="reward",this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,y);break}}})}},zn={};window.addEventListener("message",e=>{e.origin!=="https://ads.appsrockets.com"&&e.origin!=="https://stg-ads.appsrockets.com"||zn[e.data.type]&&zn[e.data.type].forEach(t=>{t(e.data.data)})});$n=(e,t)=>{Fi(()=>(zn[e]||(zn[e]=new Set),zn[e].add(t),()=>{zn[e].delete(t)}),[e,t])},v4=()=>{let e=re(),t=re(),r=re(),n=re(),i=re(),o=re(),a=re(),s=re(!1),l=re("");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,adLinkClicked:o,adError:a,visible:s,src:l}},y4=Xn`
767
+ `,W4=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=Ji(()=>J4(),[]),[p,f]=Ma(!1),h=_=>{var g,w,S,C;s.value=!1,_==="dismiss"?(g=n.value)==null||g.call(n):_==="viewed"&&((w=i.value)==null||w.call(i)),(S=r.value)==null||S.call(r),(C=o.value)==null||C.call(o),f(!1)},v=Cn(()=>{var _;p||(f(!0),(_=a.value)==null||_.call(a))},[p]);return Gi(()=>{p&&(d.value==="reward"||d.value==="rewarded_insterstitial")&&setTimeout(()=>{u.startTimer()},100)},[p,d.value]),s.value?ye("div",{className:V4,children:[ye(H4,{mode:d.value,onClose:h,countdown:l.value,state:u}),s.value&&ye("iframe",{src:c.value,onLoad:v,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"}),ye(G4,{})]}):null};Sf=class{constructor(t,r){mr(this,"name","OKSPIN"),mr(this,"initialized",!1),mr(this,"initCompleter",null),mr(this,"context",void 0),mr(this,"initParams",void 0),mr(this,"adsOverlay",null),mr(this,"adsIsShowing",!1),mr(this,"lastUnDisplayedAdBreak",null),mr(this,"state",$4()),this.context=t,this.initParams=r}init(){return y(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg"),Ju(ye(W4,{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 y(this,null,function*(){var n,i,o,a,s,l,c,d;if(!this.initialized||!this.adsOverlay||!r.params.url){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"});return}if(this.adsIsShowing){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}switch(t.type){case"preroll":{(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(a=t.beforeAd)==null||a.call(t);let u=()=>{var f;this.adsIsShowing=!1,(f=t.afterAd)==null||f.call(t)},p=()=>{var f;this.adsIsShowing=!1,(f=t.adBreakDone)==null||f.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})};st(()=>{this.adsIsShowing=!0,this.state.afterAd.value=u,this.state.adBreakDone.value=p,this.state.src.value=r.params.url,this.state.mode.value="interstitial",this.state.visible.value=!0});break}case"reward":{this.lastUnDisplayedAdBreak&&((l=(s=this.lastUnDisplayedAdBreak).adBreakDone)==null||l.call(s,{breakType:this.lastUnDisplayedAdBreak.type,breakName:this.lastUnDisplayedAdBreak.type==="preroll"?"":this.lastUnDisplayedAdBreak.name,breakFormat:this.lastUnDisplayedAdBreak.type==="reward"?"reward":"interstitial",breakStatus:"ignored"}),this.lastUnDisplayedAdBreak=null),(c=t.beforeAd)==null||c.call(t);let u=()=>{var g;this.adsIsShowing=!1,(g=t.afterAd)==null||g.call(t)},p={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},f=()=>{var g;this.adsIsShowing=!1,p.breakStatus="dismissed",(g=t.adDismissed)==null||g.call(t)},h=()=>{var g;this.adsIsShowing=!1,p.breakStatus="viewed",(g=t.adViewed)==null||g.call(t)},v=()=>{var g;this.adsIsShowing=!1,(g=t.adBreakDone)==null||g.call(t,p)};st(()=>{this.state.afterAd.value=u,this.state.adDismissed.value=f,this.state.adViewed.value=h,this.state.adBreakDone.value=v});let _=()=>{var g;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(g=t.adBreakDone)==null||g.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,st(()=>{var w;this.state.countdown.value=(w=r.params.countdown)!=null?w: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,_);break}}})}},Yn={};window.addEventListener("message",e=>{e.origin!=="https://ads.appsrockets.com"&&e.origin!=="https://stg-ads.appsrockets.com"||Yn[e.data.type]&&Yn[e.data.type].forEach(t=>{t(e.data.data)})});zn=(e,t)=>{Gi(()=>(Yn[e]||(Yn[e]=new Set),Yn[e].add(t),()=>{Yn[e].delete(t)}),[e,t])},Y4=()=>{let e=ne(),t=ne(),r=ne(),n=ne(),i=ne(),o=ne(),a=ne(),s=ne(!1),l=ne("");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,adLinkClicked:o,adError:a,visible:s,src:l}},Q4=ei`
768
768
  ${We}
769
769
  position: fixed;
770
770
  z-index: 2147483647;
@@ -783,7 +783,7 @@ If multiple caches share the same key they might "fight" for each other's style
783
783
  width: 100%;
784
784
  height: 100%;
785
785
  }
786
- `,_4=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adLinkClicked:s,visible:l,src:c}=t,[d,u]=Pa(!1),p=h=>{var v,y,g,b;u(!1),l.value=!1,h==="dismiss"?(v=n.value)==null||v.call(n):h==="viewed"&&((y=i.value)==null||y.call(i)),(g=r.value)==null||g.call(r),(b=o.value)==null||b.call(o)},f=()=>{var h;(h=a.value)==null||h.call(a)};return $n("appsrockets_ad_dismissed",()=>p("dismiss")),$n("appsrockets_ad_rewarded",()=>p("viewed")),$n("appsrockets_ad_completed",()=>p("viewed")),$n("appsrockets_ad_skipped",()=>p("viewed")),$n("appsrockets_ad_clicked",h=>{var v;return(v=s.value)==null?void 0:v.call(s,h)}),$n("appsrockets_ad_loaded",()=>u(!0)),l.value?ye("div",{className:y4,style:{display:d?"flex":"none"},children:l.value&&ye("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};df=class{constructor(t,r){dr(this,"name","APPSROCKETS"),dr(this,"initialized",!1),dr(this,"initCompleter",null),dr(this,"context",void 0),dr(this,"adsOverlay",null),dr(this,"adsIsShowing",!1),dr(this,"lastUnDisplayedAdBreak",null),dr(this,"state",v4()),dr(this,"processUrl",n=>{var i;let o=this.context.getContextInfo(),a=new URL(n),s=new URLSearchParams(a.search);return s.has("joliSource")||s.set("joliSource",o.joliSource),s.get("osType")||s.set("osType",o.osType),s.get("runtimeType")||s.set("runtimeType",o.runtimeType),s.get("mode")||s.set("mode","AFG"),s.get("deviceId")||s.set("deviceId",o.deviceId),s.get("statusBarHeight")||s.set("statusBarHeight",((i=this.context.getWindowInfo().statusBarHeight)!=null?i:0).toString()),a.search=s.toString(),a.toString()}),this.context=t}init(){return w(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg-appsrockets"),Pu(ye(_4,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay),this.initialized=!0,(t=this.initCompleter)==null||t.call(this)})}adConfig(t){var r;if(this.initialized){(r=t.onReady)==null||r.call(t);return}this.initCompleter=()=>{var n;(n=t.onReady)==null||n.call(t)}}adBreak(t,r){var n,i,o,a,s,l,c,d;if(!this.initialized||!this.adsOverlay||!r.params.url){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"});return}if(this.adsIsShowing){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}let u=p=>{var f,h;(h=(f=this.context).handleLinkClicked)==null||h.call(f,p)};switch(t.type){case"preroll":{(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(a=t.beforeAd)==null||a.call(t);let p=()=>{var v;this.adsIsShowing=!1,(v=t.afterAd)==null||v.call(t)},f=()=>{var v;this.adsIsShowing=!1,(v=t.adBreakDone)==null||v.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})},h=()=>{var v;this.adsIsShowing=!1,(v=t.adBreakDone)==null||v.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"noAdPreloaded"})};st(()=>{this.adsIsShowing=!0,this.state.afterAd.value=p,this.state.adBreakDone.value=f,this.state.src.value=this.processUrl(r.params.url),this.state.adLinkClicked.value=u,this.state.adError.value=h,this.state.visible.value=!0});break}case"reward":{this.lastUnDisplayedAdBreak&&((l=(s=this.lastUnDisplayedAdBreak).adBreakDone)==null||l.call(s,{breakType:this.lastUnDisplayedAdBreak.type,breakName:this.lastUnDisplayedAdBreak.type==="preroll"?"":this.lastUnDisplayedAdBreak.name,breakFormat:this.lastUnDisplayedAdBreak.type==="reward"?"reward":"interstitial",breakStatus:"ignored"}),this.lastUnDisplayedAdBreak=null),(c=t.beforeAd)==null||c.call(t);let p=()=>{var k;this.adsIsShowing=!1,(k=t.afterAd)==null||k.call(t)},f={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},h=()=>{var k;this.adsIsShowing=!1,f.breakStatus="dismissed",(k=t.adDismissed)==null||k.call(t)},v=()=>{var k;this.adsIsShowing=!1,f.breakStatus="viewed",(k=t.adViewed)==null||k.call(t)},y=()=>{var k;this.adsIsShowing=!1,(k=t.adBreakDone)==null||k.call(t,f)},g=()=>{this.adsIsShowing=!1,f.breakStatus="noAdPreloaded"};st(()=>{this.state.afterAd.value=p,this.state.adDismissed.value=h,this.state.adViewed.value=v,this.state.adBreakDone.value=y,this.state.adLinkClicked.value=u,this.state.adError.value=g});let b=()=>{var k;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(k=t.adBreakDone)==null||k.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,st(()=>{this.state.src.value=this.processUrl(r.params.url),this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,b);break}}}},Hx=()=>{window.googletag=window.googletag||{cmd:[]},window.googletag.pubadsReady||window.googletag.cmd.push(()=>{window.googletag.enableServices()})};pf=class{constructor(t,r,n){Ve(this,"adUnit",void 0),Ve(this,"project",void 0),Ve(this,"keyValue",void 0),Ve(this,"adsContext",null),Ve(this,"rewardedSlot",null),Ve(this,"rewardedPayload",null),Ve(this,"readyEvent",null),Ve(this,"withCommand",function(){googletag.cmd.push(...arguments)}),Ve(this,"init",()=>{var i;this.rewardedSlot=googletag.defineOutOfPageSlot(this.adUnit,googletag.enums.OutOfPageFormat.REWARDED),this.rewardedSlot&&(this.rewardedSlot.addService(googletag.pubads()),googletag.pubads().addEventListener("rewardedSlotReady",this.handleSlotReady),googletag.pubads().addEventListener("rewardedSlotClosed",this.handleSlotClosed),googletag.pubads().addEventListener("rewardedSlotGranted",this.handleSlotGranted),googletag.pubads().addEventListener("slotRenderEnded",this.handleSlotRenderEnded),this.keyValue&&(Object.keys(this.keyValue).forEach(o=>{var a;(a=this.rewardedSlot)==null||a.setTargeting(o,this.keyValue[o])}),Object.keys(this.keyValue).includes("project")||(i=this.rewardedSlot)==null||i.setTargeting("project",this.project)),googletag.display(this.rewardedSlot))}),Ve(this,"destroy",i=>{var o,a;this.rewardedPayload=null,this.readyEvent=null,googletag.pubads().removeEventListener("rewardedSlotReady",this.handleSlotReady),googletag.pubads().removeEventListener("rewardedSlotClosed",this.handleSlotClosed),googletag.pubads().removeEventListener("rewardedSlotGranted",this.handleSlotGranted),googletag.pubads().removeEventListener("slotRenderEnded",this.handleSlotRenderEnded),this.rewardedSlot&&(googletag.destroySlots([this.rewardedSlot]),this.rewardedSlot=null),(a=(o=this.adsContext)==null?void 0:o.adBreakDone)==null||a.call(o,i),this.adsContext=null}),Ve(this,"reinit",i=>{this.destroy(i),this.init()}),Ve(this,"handleSlotReady",i=>{i.slot===this.rewardedSlot&&(this.readyEvent=i)}),Ve(this,"handleSlotClosed",i=>{var o,a;if(this.adsContext&&i.slot===this.rewardedSlot){let s=this.rewardedPayload?"viewed":"dismissed";s==="viewed"?this.adsContext.adViewed():this.adsContext.adDismissed(),(a=(o=this.adsContext).afterAd)==null||a.call(o),this.withCommand(()=>{this.reinit(s)})}}),Ve(this,"handleSlotGranted",i=>{this.adsContext&&i.slot===this.rewardedSlot&&(this.rewardedPayload=i.payload)}),Ve(this,"handleSlotRenderEnded",i=>{i.slot===this.rewardedSlot&&i.isEmpty&&this.adsContext&&this.withCommand(()=>{this.reinit("frequencyCapped")})}),Ve(this,"requestAds",i=>{this.withCommand(()=>{if(this.adsContext&&this.reinit("ignored"),this.rewardedSlot||this.init(),this.adsContext=i,!this.rewardedSlot){this.reinit("notReady");return}if(this.readyEvent)this.adsContext.beforeReward(()=>{var o,a,s;(a=(o=this.adsContext)==null?void 0:o.beforeAd)==null||a.call(o),(s=this.readyEvent)==null||s.makeRewardedVisible()});else{let o=a=>{a.slot===this.rewardedSlot&&this.adsContext&&(googletag.pubads().removeEventListener("rewardedSlotReady",o),this.readyEvent=a,this.adsContext.beforeReward(()=>{var s,l,c;(l=(s=this.adsContext)==null?void 0:s.beforeAd)==null||l.call(s),(c=this.readyEvent)==null||c.makeRewardedVisible()}))};googletag.pubads().addEventListener("rewardedSlotReady",o),window.setTimeout(()=>{this.readyEvent||(this.reinit("timeout"),googletag.pubads().removeEventListener("rewardedSlotReady",o))},500)}})}),this.adUnit=t,this.project=r,this.keyValue=n,Hx(),this.withCommand(()=>{this.init()})}};ff=class{constructor(t,r,n){var i=this;at(this,"adUnit",void 0),at(this,"project",void 0),at(this,"keyValue",void 0),at(this,"adsContext",null),at(this,"gamingInterstitialSlot",null),at(this,"readyEvent",null),at(this,"isRetrying",!1),at(this,"withCommand",function(){googletag.cmd.push(...arguments)}),at(this,"init",()=>{var o;this.gamingInterstitialSlot=googletag.defineOutOfPageSlot(this.adUnit,googletag.enums.OutOfPageFormat.GAME_MANUAL_INTERSTITIAL),this.gamingInterstitialSlot&&(this.gamingInterstitialSlot.addService(googletag.pubads()),googletag.pubads().addEventListener("gameManualInterstitialSlotReady",this.handleSlotReady),googletag.pubads().addEventListener("gameManualInterstitialSlotClosed",this.handleSlotClosed),this.keyValue&&(Object.keys(this.keyValue).forEach(a=>{var s;(s=this.gamingInterstitialSlot)==null||s.setTargeting(a,this.keyValue[a])}),Object.keys(this.keyValue).includes("project")||(o=this.gamingInterstitialSlot)==null||o.setTargeting("project",this.project)),googletag.display(this.gamingInterstitialSlot))}),at(this,"destroy",function(o){var a,s;(!(arguments.length>1&&arguments[1]!==void 0)||arguments[1])&&((s=(a=i.adsContext)==null?void 0:a.onEnd)==null||s.call(a,o),i.adsContext=null),googletag.pubads().removeEventListener("gameManualInterstitialSlotReady",i.handleSlotReady),googletag.pubads().removeEventListener("gameManualInterstitialSlotClosed",i.handleSlotClosed),i.gamingInterstitialSlot&&(googletag.destroySlots([i.gamingInterstitialSlot]),i.gamingInterstitialSlot=null,i.readyEvent=null)}),at(this,"reinit",function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;i.destroy(o,a),i.init()}),at(this,"handleSlotReady",o=>{this.gamingInterstitialSlot===o.slot&&(this.readyEvent=o)}),at(this,"handleSlotClosed",o=>{var a,s;this.adsContext&&this.gamingInterstitialSlot===o.slot&&((s=(a=this.adsContext).afterAd)==null||s.call(a),this.withCommand(()=>{this.reinit("viewed")}))}),at(this,"requestAds",o=>{this.withCommand(()=>{var a,s,l;if(this.adsContext&&this.reinit("ignored"),this.gamingInterstitialSlot||this.init(),this.adsContext=o,!this.gamingInterstitialSlot){this.reinit("notReady");return}this.readyEvent?((a=o.beforeAd)==null||a.call(o),this.readyEvent.makeGameManualInterstitialVisible()):((l=(s=this.adsContext).onEnd)==null||l.call(s,"frequencyCapped"),this.adsContext=null,this.isRetrying||(this.isRetrying=!0,window.setTimeout(()=>{this.readyEvent||this.withCommand(()=>{this.reinit("frequencyCapped",!1)}),this.isRetrying=!1},31e3)))})}),Hx(),this.adUnit=t,this.project=r,this.keyValue=n,this.withCommand(()=>{this.init()})}};mf=class{constructor(t,r){nn(this,"name","GOOGLE_GPT"),nn(this,"context",void 0),nn(this,"contextInfo",void 0),nn(this,"initParams",void 0),nn(this,"rewardAdManager",void 0),nn(this,"interstitialManager",void 0),nn(this,"insertScript",()=>{let n="jolibox-google-gpt",i=document.getElementById(n);i||(i=window.document.createElement("script"),i.id=n,i.async=!0,i.src="https://securepubads.g.doubleclick.net/tag/js/gpt.js",i.crossOrigin="anonymous",document.head.appendChild(i))}),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,this.insertScript()}init(){return w(this,null,function*(){let t=this.contextInfo.testAdsMode?"/22639388115/rewarded_web_example":this.initParams.rewardedSlot,r=this.contextInfo.testAdsMode?"/6355419/Travel/Europe/France/Paris":this.initParams.interstitialSlot,n=`minigame-${this.contextInfo.runtimeType==="APP"?"app":"h5"}`;t&&(this.rewardAdManager=new pf(t,n,this.initParams.keyValue)),r&&(this.interstitialManager=new ff(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}}}};hf=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";Wp(this,"context",void 0),Wp(this,"placement","GAME"),Wp(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:wx.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:_x.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:bx.WebSDK};return G3(i)}};vl=class{constructor(t){et(this,"context",void 0),et(this,"adsTrackSerializer",void 0),et(this,"contextInfo",void 0),this.context=t,this.contextInfo=t.getContextInfo(),this.adsTrackSerializer=new hf(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}}},gf=class{constructor(t,r){var n=this;et(this,"context",void 0),et(this,"contextInfo",void 0),et(this,"requestContext",void 0),et(this,"pendingAFGAdsInfo",{REWARD:Promise.resolve(null),INTERSTITIAL:Promise.resolve(null)}),et(this,"pendingAFVAdsInfo",Promise.resolve(null)),et(this,"doFetchAdsInfo",i=>w(this,null,function*(){let o=i==="afv"?"AdsAFVSDKRequest":"AdsAFGSDKAdBreak",a=i==="afv"?"REWARD_INTERSTITIAL":i==="reward"?"REWARD":"INTERSTITIAL",s=i==="afv"?void 0:"cached",{data:l,code:c}=yield this.context.httpClient.post("/api/ads/info",{data:{contextData:this.requestContext.getRequestContextData(o),bizParams:this.requestContext.getRequestBizParams(),adsType:a,testAdsMode:this.contextInfo.testAdsMode,name:s}});return c==="SUCCESS"||c==="BYPASS_ADS"?{code:c,data:l}:null})),et(this,"cacheRewardInfo",()=>{this.pendingAFGAdsInfo.REWARD=this.doFetchAdsInfo("reward").catch(()=>null)}),et(this,"cacheInterstitialInfo",i=>{this.pendingAFGAdsInfo.INTERSTITIAL=this.doFetchAdsInfo(i).catch(()=>null)}),et(this,"cacheAFVInfo",()=>{this.pendingAFVAdsInfo=this.doFetchAdsInfo("afv").catch(()=>null)}),et(this,"cacheNextAFGAdsInfo",i=>w(this,null,function*(){i==="reward"?this.cacheRewardInfo():this.cacheInterstitialInfo(i)})),et(this,"getAFGAdsInfo",i=>w(this,null,function*(){let o=yield i==="reward"?this.pendingAFGAdsInfo.REWARD:this.pendingAFGAdsInfo.INTERSTITIAL;return this.cacheNextAFGAdsInfo(i),o})),et(this,"getAFVAdsInfo",function(){return w(this,arguments,function*(){if(!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]){let i=yield n.pendingAFVAdsInfo;return n.cacheAFVInfo(),i}else return n.cacheAFVInfo(),yield n.pendingAFVAdsInfo})}),this.context=t,this.contextInfo=this.context.getContextInfo(),this.requestContext=new vl(t),r!=null&&r.reward&&this.cacheRewardInfo(),r!=null&&r.interstitial&&this.cacheInterstitialInfo("start"),r!=null&&r.afv&&this.cacheAFVInfo()}};yl=class{constructor(t){if(Ct(this,"context",void 0),Ct(this,"contextInfo",void 0),Ct(this,"providers",{}),Ct(this,"channelPolicy",void 0),Ct(this,"adsActionDetection",void 0),Ct(this,"requestContext",void 0),Ct(this,"adsRequest",void 0),Ct(this,"initialized",!1),Ct(this,"adsIsShowing",!1),Ct(this,"lastAdBreak",void 0),Ct(this,"initializedTimeStamp",Date.now()),t)this.context=t,this.channelPolicy=new ef(this.context),this.adsActionDetection=new Zp(this.context),this.contextInfo=this.context.getContextInfo(),this.adsRequest=new gf(t),this.requestContext=new vl(t);else throw new Error("JoliboxAdsForGame requires a configuration object")}init(t){return w(this,null,function*(){window.adsbygoogle=window.adsbygoogle||[];let{data:r}=yield this.context.httpClient.post("/api/ads/init",{data:{contextData:this.requestContext.getRequestContextData("AdsAFGSDKInit"),bizParams:this.requestContext.getRequestBizParams(),testAdsMode:this.contextInfo.testAdsMode}});if((r==null?void 0:r.length)>0)for(let n of r)switch(n.provider){case"GOOGLE_GPT":{let i=new mf(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"ADSENSE":case"ADSENSE_ADMOB":{let i=new tf(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"OKSPIN":{let i=new uf(this.context,n.params);yield i.init(),this.providers.OKSPIN=i;break}case"APPSROCKETS":{let i=new df(this.context,n.params);yield i.init(),this.providers.APPSROCKETS=i;break}}this.adsRequest.cacheInterstitialInfo("start"),this.adsRequest.cacheRewardInfo(),this.initialized=!0})}adConfig(t){this.providers.ADSENSE?this.providers.ADSENSE.adConfig(t):window.adsbygoogle.push(t)}adBreak(t){return w(this,null,function*(){var r,n,i,o,a,s,l,c,d,u,p,f,h,v;let y=Date.now();if(y-this.initializedTimeStamp<3e3){(r=t.adBreakDone)==null||r.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}if(this.lastAdBreak&&y-this.lastAdBreak<500){console.warn("[Jolibox SDK Ads] You can't call adBreak too frequently"),(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}if(this.lastAdBreak=y,this.adsIsShowing){console.warn("[Jolibox SDK Ads] You can't call adBreak while ad is showing"),(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}if(this.initialized||(yield this.init()),t.type!=="reward"&&!this.channelPolicy.shouldBypassCallingInterstitial()){(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"skipInterstitials",breakFormat:"interstitial",breakStatus:"viewed"});return}if(!this.context.checkNetwork()){(a=t.adBreakDone)==null||a.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}try{let g=yield this.adsRequest.getAFGAdsInfo(t.type),b=g==null?void 0:g.data,k=g==null?void 0:g.code;if(k==="BYPASS_ADS"){switch(t.type){case"preroll":{(s=t.adBreakDone)==null||s.call(t,{breakType:t.type,breakFormat:"interstitial",breakStatus:"viewed"});break}case"reward":{t.beforeReward(()=>{var x,P,T,A;(x=t.beforeAd)==null||x.call(t),(P=t.adViewed)==null||P.call(t),(T=t.afterAd)==null||T.call(t),(A=t.adBreakDone)==null||A.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"viewed"})});break}default:{(l=t.beforeAd)==null||l.call(t),(c=t.afterAd)==null||c.call(t),(d=t.adBreakDone)==null||d.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"});break}}return}if(!b||k!=="SUCCESS"){(u=t.adBreakDone)==null||u.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}else{let x=b.sort((O,J)=>O.seq-J.seq);if(x.length===0){(p=t.adBreakDone)==null||p.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}let P=!0,T=null,A=new Xp(this.context);for(this.adsActionDetection.adBreakIsShowing=!0;x.length>0;){let O=x.shift(),J=this.providers[O.provider];if(J){let[Ke,M]=yield A.callAdBreakAndContinue(J,t,O,Re=>{var Ne;this.adsIsShowing=Re,(Ne=this.context.eventEmitter)==null||Ne.emit("isAdShowing",Re)});P=Ke,T=M}else P=!0,T={breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"};if(!P)break}P&&T&&((f=t.adBreakDone)==null||f.call(t,T))}}catch(g){(h=t.adBreakDone)==null||h.call(t,{breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}finally{this.adsIsShowing=!1,(v=this.context.eventEmitter)==null||v.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.")}},uZ=Xn`
786
+ `,X4=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adLinkClicked:s,visible:l,src:c}=t,[d,u]=Ma(!1),p=h=>{var v,_,g,w;u(!1),l.value=!1,h==="dismiss"?(v=n.value)==null||v.call(n):h==="viewed"&&((_=i.value)==null||_.call(i)),(g=r.value)==null||g.call(r),(w=o.value)==null||w.call(o)},f=()=>{var h;(h=a.value)==null||h.call(a)};return zn("appsrockets_ad_dismissed",()=>p("dismiss")),zn("appsrockets_ad_rewarded",()=>p("viewed")),zn("appsrockets_ad_completed",()=>p("viewed")),zn("appsrockets_ad_skipped",()=>p("viewed")),zn("appsrockets_ad_clicked",h=>{var v;return(v=s.value)==null?void 0:v.call(s,h)}),zn("appsrockets_ad_loaded",()=>u(!0)),l.value?ye("div",{className:Q4,style:{display:d?"flex":"none"},children:l.value&&ye("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};kf=class{constructor(t,r){gr(this,"name","APPSROCKETS"),gr(this,"initialized",!1),gr(this,"initCompleter",null),gr(this,"context",void 0),gr(this,"adsOverlay",null),gr(this,"adsIsShowing",!1),gr(this,"lastUnDisplayedAdBreak",null),gr(this,"state",Y4()),gr(this,"processUrl",n=>{var i;let o=this.context.getContextInfo(),a=new URL(n),s=new URLSearchParams(a.search);return s.has("joliSource")||s.set("joliSource",o.joliSource),s.get("osType")||s.set("osType",o.osType),s.get("runtimeType")||s.set("runtimeType",o.runtimeType),s.get("mode")||s.set("mode","AFG"),s.get("deviceId")||s.set("deviceId",o.deviceId),s.get("statusBarHeight")||s.set("statusBarHeight",((i=this.context.getWindowInfo().statusBarHeight)!=null?i:0).toString()),a.search=s.toString(),a.toString()}),this.context=t}init(){return y(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg-appsrockets"),Ju(ye(X4,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay),this.initialized=!0,(t=this.initCompleter)==null||t.call(this)})}adConfig(t){var r;if(this.initialized){(r=t.onReady)==null||r.call(t);return}this.initCompleter=()=>{var n;(n=t.onReady)==null||n.call(t)}}adBreak(t,r){var n,i,o,a,s,l,c,d;if(!this.initialized||!this.adsOverlay||!r.params.url){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"});return}if(this.adsIsShowing){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}let u=p=>{var f,h;(h=(f=this.context).handleLinkClicked)==null||h.call(f,p)};switch(t.type){case"preroll":{(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(a=t.beforeAd)==null||a.call(t);let p=()=>{var v;this.adsIsShowing=!1,(v=t.afterAd)==null||v.call(t)},f=()=>{var v;this.adsIsShowing=!1,(v=t.adBreakDone)==null||v.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})},h=()=>{var v;this.adsIsShowing=!1,(v=t.adBreakDone)==null||v.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"noAdPreloaded"})};st(()=>{this.adsIsShowing=!0,this.state.afterAd.value=p,this.state.adBreakDone.value=f,this.state.src.value=this.processUrl(r.params.url),this.state.adLinkClicked.value=u,this.state.adError.value=h,this.state.visible.value=!0});break}case"reward":{this.lastUnDisplayedAdBreak&&((l=(s=this.lastUnDisplayedAdBreak).adBreakDone)==null||l.call(s,{breakType:this.lastUnDisplayedAdBreak.type,breakName:this.lastUnDisplayedAdBreak.type==="preroll"?"":this.lastUnDisplayedAdBreak.name,breakFormat:this.lastUnDisplayedAdBreak.type==="reward"?"reward":"interstitial",breakStatus:"ignored"}),this.lastUnDisplayedAdBreak=null),(c=t.beforeAd)==null||c.call(t);let p=()=>{var S;this.adsIsShowing=!1,(S=t.afterAd)==null||S.call(t)},f={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},h=()=>{var S;this.adsIsShowing=!1,f.breakStatus="dismissed",(S=t.adDismissed)==null||S.call(t)},v=()=>{var S;this.adsIsShowing=!1,f.breakStatus="viewed",(S=t.adViewed)==null||S.call(t)},_=()=>{var S;this.adsIsShowing=!1,(S=t.adBreakDone)==null||S.call(t,f)},g=()=>{this.adsIsShowing=!1,f.breakStatus="noAdPreloaded"};st(()=>{this.state.afterAd.value=p,this.state.adDismissed.value=h,this.state.adViewed.value=v,this.state.adBreakDone.value=_,this.state.adLinkClicked.value=u,this.state.adError.value=g});let w=()=>{var S;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(S=t.adBreakDone)==null||S.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,st(()=>{this.state.src.value=this.processUrl(r.params.url),this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,w);break}}}},kx=()=>{window.googletag=window.googletag||{cmd:[]},window.googletag.pubadsReady||window.googletag.cmd.push(()=>{window.googletag.enableServices()})};Af=class{constructor(t,r,n){$e(this,"adUnit",void 0),$e(this,"project",void 0),$e(this,"keyValue",void 0),$e(this,"adsContext",null),$e(this,"rewardedSlot",null),$e(this,"rewardedPayload",null),$e(this,"readyEvent",null),$e(this,"withCommand",function(){googletag.cmd.push(...arguments)}),$e(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))}),$e(this,"destroy",i=>{var o,a;this.rewardedPayload=null,this.readyEvent=null,googletag.pubads().removeEventListener("rewardedSlotReady",this.handleSlotReady),googletag.pubads().removeEventListener("rewardedSlotClosed",this.handleSlotClosed),googletag.pubads().removeEventListener("rewardedSlotGranted",this.handleSlotGranted),googletag.pubads().removeEventListener("slotRenderEnded",this.handleSlotRenderEnded),this.rewardedSlot&&(googletag.destroySlots([this.rewardedSlot]),this.rewardedSlot=null),(a=(o=this.adsContext)==null?void 0:o.adBreakDone)==null||a.call(o,i),this.adsContext=null}),$e(this,"reinit",i=>{this.destroy(i),this.init()}),$e(this,"handleSlotReady",i=>{i.slot===this.rewardedSlot&&(this.readyEvent=i)}),$e(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)})}}),$e(this,"handleSlotGranted",i=>{this.adsContext&&i.slot===this.rewardedSlot&&(this.rewardedPayload=i.payload)}),$e(this,"handleSlotRenderEnded",i=>{i.slot===this.rewardedSlot&&i.isEmpty&&this.adsContext&&this.withCommand(()=>{this.reinit("frequencyCapped")})}),$e(this,"requestAds",i=>{this.withCommand(()=>{if(this.adsContext&&this.reinit("ignored"),this.rewardedSlot||this.init(),this.adsContext=i,!this.rewardedSlot){this.reinit("notReady");return}if(this.readyEvent)this.adsContext.beforeReward(()=>{var o,a,s;(a=(o=this.adsContext)==null?void 0:o.beforeAd)==null||a.call(o),(s=this.readyEvent)==null||s.makeRewardedVisible()});else{let o=a=>{a.slot===this.rewardedSlot&&this.adsContext&&(googletag.pubads().removeEventListener("rewardedSlotReady",o),this.readyEvent=a,this.adsContext.beforeReward(()=>{var s,l,c;(l=(s=this.adsContext)==null?void 0:s.beforeAd)==null||l.call(s),(c=this.readyEvent)==null||c.makeRewardedVisible()}))};googletag.pubads().addEventListener("rewardedSlotReady",o),window.setTimeout(()=>{this.readyEvent||(this.reinit("timeout"),googletag.pubads().removeEventListener("rewardedSlotReady",o))},500)}})}),this.adUnit=t,this.project=r,this.keyValue=n,kx(),this.withCommand(()=>{this.init()})}};Cf=class{constructor(t,r,n){var i=this;at(this,"adUnit",void 0),at(this,"project",void 0),at(this,"keyValue",void 0),at(this,"adsContext",null),at(this,"gamingInterstitialSlot",null),at(this,"readyEvent",null),at(this,"isRetrying",!1),at(this,"withCommand",function(){googletag.cmd.push(...arguments)}),at(this,"init",()=>{var o;this.gamingInterstitialSlot=googletag.defineOutOfPageSlot(this.adUnit,googletag.enums.OutOfPageFormat.GAME_MANUAL_INTERSTITIAL),this.gamingInterstitialSlot&&(this.gamingInterstitialSlot.addService(googletag.pubads()),googletag.pubads().addEventListener("gameManualInterstitialSlotReady",this.handleSlotReady),googletag.pubads().addEventListener("gameManualInterstitialSlotClosed",this.handleSlotClosed),this.keyValue&&(Object.keys(this.keyValue).forEach(a=>{var s;(s=this.gamingInterstitialSlot)==null||s.setTargeting(a,this.keyValue[a])}),Object.keys(this.keyValue).includes("project")||(o=this.gamingInterstitialSlot)==null||o.setTargeting("project",this.project)),googletag.display(this.gamingInterstitialSlot))}),at(this,"destroy",function(o){var a,s;(!(arguments.length>1&&arguments[1]!==void 0)||arguments[1])&&((s=(a=i.adsContext)==null?void 0:a.onEnd)==null||s.call(a,o),i.adsContext=null),googletag.pubads().removeEventListener("gameManualInterstitialSlotReady",i.handleSlotReady),googletag.pubads().removeEventListener("gameManualInterstitialSlotClosed",i.handleSlotClosed),i.gamingInterstitialSlot&&(googletag.destroySlots([i.gamingInterstitialSlot]),i.gamingInterstitialSlot=null,i.readyEvent=null)}),at(this,"reinit",function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;i.destroy(o,a),i.init()}),at(this,"handleSlotReady",o=>{this.gamingInterstitialSlot===o.slot&&(this.readyEvent=o)}),at(this,"handleSlotClosed",o=>{var a,s;this.adsContext&&this.gamingInterstitialSlot===o.slot&&((s=(a=this.adsContext).afterAd)==null||s.call(a),this.withCommand(()=>{this.reinit("viewed")}))}),at(this,"requestAds",o=>{this.withCommand(()=>{var a,s,l;if(this.adsContext&&this.reinit("ignored"),this.gamingInterstitialSlot||this.init(),this.adsContext=o,!this.gamingInterstitialSlot){this.reinit("notReady");return}this.readyEvent?((a=o.beforeAd)==null||a.call(o),this.readyEvent.makeGameManualInterstitialVisible()):((l=(s=this.adsContext).onEnd)==null||l.call(s,"frequencyCapped"),this.adsContext=null,this.isRetrying||(this.isRetrying=!0,window.setTimeout(()=>{this.readyEvent||this.withCommand(()=>{this.reinit("frequencyCapped",!1)}),this.isRetrying=!1},31e3)))})}),kx(),this.adUnit=t,this.project=r,this.keyValue=n,this.withCommand(()=>{this.init()})}};xf=class{constructor(t,r){ln(this,"name","GOOGLE_GPT"),ln(this,"context",void 0),ln(this,"contextInfo",void 0),ln(this,"initParams",void 0),ln(this,"rewardAdManager",void 0),ln(this,"interstitialManager",void 0),ln(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 y(this,null,function*(){let t=this.contextInfo.testAdsMode?"/22639388115/rewarded_web_example":this.initParams.rewardedSlot,r=this.contextInfo.testAdsMode?"/6355419/Travel/Europe/France/Paris":this.initParams.interstitialSlot,n=`minigame-${this.contextInfo.runtimeType==="APP"?"app":"h5"}`;t&&(this.rewardAdManager=new Af(t,n,this.initParams.keyValue)),r&&(this.interstitialManager=new Cf(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}}}};Tf=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";lf(this,"context",void 0),lf(this,"placement","GAME"),lf(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:rx.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:ex.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:tx.WebSDK};return wH(i)}};Cl=class{constructor(t){et(this,"context",void 0),et(this,"adsTrackSerializer",void 0),et(this,"contextInfo",void 0),this.context=t,this.contextInfo=t.getContextInfo(),this.adsTrackSerializer=new Tf(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}}},Rf=class{constructor(t,r){var n=this;et(this,"context",void 0),et(this,"contextInfo",void 0),et(this,"requestContext",void 0),et(this,"pendingAFGAdsInfo",{REWARD:Promise.resolve(null),INTERSTITIAL:Promise.resolve(null)}),et(this,"pendingAFVAdsInfo",Promise.resolve(null)),et(this,"doFetchAdsInfo",i=>y(this,null,function*(){let o=i==="afv"?"AdsAFVSDKRequest":"AdsAFGSDKAdBreak",a=i==="afv"?"REWARD_INTERSTITIAL":i==="reward"?"REWARD":"INTERSTITIAL",s=i==="afv"?void 0:"cached",{data:l,code:c}=yield this.context.httpClient.post("/api/ads/info",{data:{contextData:this.requestContext.getRequestContextData(o),bizParams:this.requestContext.getRequestBizParams(),adsType:a,testAdsMode:this.contextInfo.testAdsMode,name:s}});return c==="SUCCESS"||c==="BYPASS_ADS"?{code:c,data:l}:null})),et(this,"cacheRewardInfo",()=>{this.pendingAFGAdsInfo.REWARD=this.doFetchAdsInfo("reward").catch(()=>null)}),et(this,"cacheInterstitialInfo",i=>{this.pendingAFGAdsInfo.INTERSTITIAL=this.doFetchAdsInfo(i).catch(()=>null)}),et(this,"cacheAFVInfo",()=>{this.pendingAFVAdsInfo=this.doFetchAdsInfo("afv").catch(()=>null)}),et(this,"cacheNextAFGAdsInfo",i=>y(this,null,function*(){i==="reward"?this.cacheRewardInfo():this.cacheInterstitialInfo(i)})),et(this,"getAFGAdsInfo",i=>y(this,null,function*(){let o=yield i==="reward"?this.pendingAFGAdsInfo.REWARD:this.pendingAFGAdsInfo.INTERSTITIAL;return this.cacheNextAFGAdsInfo(i),o})),et(this,"getAFVAdsInfo",function(){return y(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 Cl(t),r!=null&&r.reward&&this.cacheRewardInfo(),r!=null&&r.interstitial&&this.cacheInterstitialInfo("start"),r!=null&&r.afv&&this.cacheAFVInfo()}};xl=class{constructor(t){if(Tt(this,"context",void 0),Tt(this,"contextInfo",void 0),Tt(this,"providers",{}),Tt(this,"channelPolicy",void 0),Tt(this,"adsActionDetection",void 0),Tt(this,"requestContext",void 0),Tt(this,"adsRequest",void 0),Tt(this,"initialized",!1),Tt(this,"adsIsShowing",!1),Tt(this,"lastAdBreak",void 0),Tt(this,"initializedTimeStamp",Date.now()),t)this.context=t,this.channelPolicy=new mf(this.context),this.adsActionDetection=new hf(this.context),this.contextInfo=this.context.getContextInfo(),this.adsRequest=new Rf(t),this.requestContext=new Cl(t);else throw new Error("JoliboxAdsForGame requires a configuration object")}init(t){return y(this,null,function*(){window.adsbygoogle=window.adsbygoogle||[];let{data:r}=yield this.context.httpClient.post("/api/ads/init",{data:{contextData:this.requestContext.getRequestContextData("AdsAFGSDKInit"),bizParams:this.requestContext.getRequestBizParams(),testAdsMode:this.contextInfo.testAdsMode}});if((r==null?void 0:r.length)>0)for(let n of r)switch(n.provider){case"GOOGLE_GPT":{let i=new xf(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"ADSENSE":case"ADSENSE_ADMOB":{let i=new gf(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"OKSPIN":{let i=new Sf(this.context,n.params);yield i.init(),this.providers.OKSPIN=i;break}case"APPSROCKETS":{let i=new kf(this.context,n.params);yield i.init(),this.providers.APPSROCKETS=i;break}}this.adsRequest.cacheInterstitialInfo("start"),this.adsRequest.cacheRewardInfo(),this.initialized=!0})}adConfig(t){this.providers.ADSENSE?this.providers.ADSENSE.adConfig(t):window.adsbygoogle.push(t)}adBreak(t){return y(this,null,function*(){var r,n,i,o,a,s,l,c,d,u,p,f,h,v;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 g=yield this.adsRequest.getAFGAdsInfo(t.type),w=g==null?void 0:g.data,S=g==null?void 0:g.code;if(S==="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,O,T,k;(C=t.beforeAd)==null||C.call(t),(O=t.adViewed)==null||O.call(t),(T=t.afterAd)==null||T.call(t),(k=t.adBreakDone)==null||k.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(!w||S!=="SUCCESS"){(u=t.adBreakDone)==null||u.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}else{let C=w.sort((R,G)=>R.seq-G.seq);if(C.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 O=!0,T=null,k=new ff(this.context);for(this.adsActionDetection.adBreakIsShowing=!0;C.length>0;){let R=C.shift(),G=this.providers[R.provider];if(G){let[Ke,M]=yield k.callAdBreakAndContinue(G,t,R,Pe=>{var Ne;this.adsIsShowing=Pe,(Ne=this.context.eventEmitter)==null||Ne.emit("isAdShowing",Pe)});O=Ke,T=M}else O=!0,T={breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"};if(!O)break}O&&T&&((f=t.adBreakDone)==null||f.call(t,T))}}catch(g){(h=t.adBreakDone)==null||h.call(t,{breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}finally{this.adsIsShowing=!1,(v=this.context.eventEmitter)==null||v.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.")}},KZ=ei`
787
787
  ${We}
788
788
  position: fixed;
789
789
  left: 0;
@@ -828,4 +828,4 @@ If multiple caches share the same key they might "fight" for each other's style
828
828
  cursor: pointer;
829
829
  }
830
830
  }
831
- `});function Wx(){let e=new Map,t,r;return{registerRewardHandler(i,o){e.set(i,o)},handleReward(i,...o){return w(this,null,function*(){return yield i.reduce((s,l)=>w(this,null,function*(){let c=yield s;if(c===!0)return!0;$x&&console.log(`handleReward ${l}`);let d=e.get(l),u=d?yield d(...o):c;return $x&&console.log(`handleReward ${l} ${u}`),u}),Promise.resolve(!1))})},registerRewardsFetcher(i){return w(this,null,function*(){t=(...o)=>w(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),["ADS"]}})})},registerRewardFrequencyConfigFetcher(i){return w(this,null,function*(){r=(...o)=>w(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),{joliCoinUseAndCharge:Jn,loginGuide:Gn}}})})},getRewardsTypes(...i){return w(this,null,function*(){return t?yield t(...i):["ADS"]})},getRewardFrequencyConfig(...i){return w(this,null,function*(){return r?yield r(...i):{joliCoinUseAndCharge:Jn,loginGuide:Gn}})}}}var $x,zx=S(()=>{"use strict";B();Ze();$x=E.testMode});var D4,L4,Kx,Yx,Qx=S(()=>{"use strict";Ze();R();D4=()=>(e,t)=>{let r={JOLI_GEM:3,JOLI_GEM_ONLY:3,JOLI_COIN:2,JOLI_COIN_ONLY:2,ADS:1};return r[t]-r[e]},L4=e=>e.length?e.includes("JOLI_GEM")&&e.length<=1?["JOLI_GEM_ONLY"]:e.includes("JOLI_COIN")&&e.length<=1?["JOLI_COIN_ONLY"]:e.sort(D4()):["ADS"],Kx=e=>{e.registerRewardsFetcher(t=>w(void 0,null,function*(){var n,i,o,a,s;let r=["ADS"];try{let l=yield t.post("/api/games/unlock-options",{});if(l.code!=="SUCCESS")return r;console.log("-----res fetch reward-----",l),q.emit(Ys,{options:((n=l.data)==null?void 0:n.unlockOptions)||[],userJoliCoin:((i=l.extra)==null?void 0:i.joliCoin)||{balance:0,enableAutoDeduct:!1},userGem:((o=l.extra)==null?void 0:o.joliGem)||{balance:0,enableAutoDeduct:!1}});let c=((s=(a=l.data)==null?void 0:a.unlockOptions)==null?void 0:s.map(d=>d.type))||Array.from(r);return L4(c)}catch(l){return console.error("getRewardOptions error:",l),r}}))},Yx=e=>{e.registerRewardFrequencyConfigFetcher(t=>w(void 0,null,function*(){var n,i,o,a;let r=yield t.get("/api/fe-configs/web-common/global-config",{});return q.emit(Pr,{joliCoinUseAndCharge:((n=r.data)==null?void 0:n.joliCoinUseAndCharge)||Jn,loginGuide:((i=r.data)==null?void 0:i.loginGuide)||Gn}),r.data&&ie.emit("onGlobalConfigChanged",{globalConfig:r.data}),{joliCoinUseAndCharge:((o=r.data)==null?void 0:o.joliCoinUseAndCharge)||Jn,loginGuide:((a=r.data)==null?void 0:a.loginGuide)||Gn}}))}});var Xx,Zx=S(()=>{"use strict";Xx=e=>t=>w(void 0,null,function*(){try{console.log("trigger @jolibox/ads reward",t),yield e.adBreak(t)}catch(r){console.error("-----createAdsRewardHandler error-----",r)}return!0})});var ze,Mr=S(()=>{"use strict";Ze();Rr();Ze();ze=it(q,Ys)});var El,wf=S(()=>{"use strict";El={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 Wt,ti=S(()=>{"use strict";R();Wt=Y()});var eC,tC=S(()=>{"use strict";eC=e=>w(void 0,null,function*(){return(yield e.get("/api/joli-coin/balance",{query:{type:"JOLI_COIN"}})).data})});var rC,nC=S(()=>{"use strict";rC=e=>w(void 0,null,function*(){return(yield e.get("/api/joli-gem/balance",{query:{type:"GEM"}})).data})});var ri,kl=S(()=>{"use strict";tC();nC();ri={JOLI_COIN:{fetchBalance:eC,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:rC,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 Oo,fr,If=S(()=>{"use strict";ti();Mr();Rr();Ze();Ze();kl();Oo=(e,t,r)=>{let{showUnlockWithCurrencyModal:n}=r;Wt.registerCommand(`Rewards.${e}.useJolicoin`,()=>w(void 0,null,function*(){let i=yield ze.getData(),o=ri[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"}}))},fr=(e,t)=>r=>w(void 0,null,function*(){let n=it(q,en);return q.emit(Xs,e,{enableAutoDeduct:r.enableAutoDeduct,userCurrency:r.userCurrency,quantity:r.quantity,currency:r.currency,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).useModalResult})});var Po,mr,iC=S(()=>{"use strict";ti();Mr();Ze();Rr();Ze();kl();Po=(e,t,r)=>{let{httpClient:n,initiateAndAwaitPayment:i}=r;Wt.registerCommand(`Rewards.${e}.usePayment`,()=>w(void 0,null,function*(){var p;let o=yield ze.getData(),a=ri[t],s=yield a.fetchBalance(n),l=a.getQuantity(o),c=a.getCurrentUser(o),d=a.createUpdatedUser((p=s==null?void 0:s.balance)!=null?p:0,c.enableAutoDeduct),u=a.getUpdateKey();return ze.updateData({[u]:d}),console.log("-----unlockOptions payment-----",o,d,l,t),a.isEnough(o,d)?{result:"CONTINUE"}:{result:(yield i({userCurrency:d,currencyQuantity:l,currency:t}))==="SUCCESS"?"SUCCESS":"FAILED"}}))},mr=(e,t)=>r=>w(void 0,null,function*(){let n=it(q,xt);return q.emit(Qs,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 Ef,hr,oC=S(()=>{"use strict";B();ti();Rr();Ze();Ze();R();Mr();kl();Ef=(e,t,r)=>{let{showUnloginModal:n,httpClient:i}=r;Wt.registerCommand(`Rewards.${e}.useUnloginModal`,()=>w(void 0,null,function*(){var s,l,c;let o=(s=E.hostUserInfo)==null?void 0:s.isLogin,a=yield ze.getData();if(console.log("-----isLogin-----",!!o),!o){let d=yield n(t);if(console.log("-----unloginModalResult-----",d),d.result=="FAILED"||d.result=="CANCEL")return{result:"FAILED"};let{isFirstLogin:u,claimedRewardValue:p}=(l=d.rewards)!=null?l:{};if(d.result=="SUCCESS"){u&&p&&(yield lm(3e3));let f=ri[t],h=yield f.fetchBalance(i),v=f.getQuantity(a),y=f.getCurrentUser(a),g=f.createUpdatedUser((c=h==null?void 0:h.balance)!=null?c:0,y.enableAutoDeduct),b=f.getUpdateKey();if(ze.updateData({[b]:g}),g.balance>=v)return{result:"SUCCESS"}}}return{result:"CONTINUE"}}))},hr=(e,t)=>r=>w(void 0,null,function*(){let n=it(q,sr);return q.emit(Zs,e,{confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText,currency:r}),yield n.getFreshData()})});var on=S(()=>{"use strict";If();iC();oC()});var M4,Al,kf=S(()=>{"use strict";B();R();wf();on();ti();M4=(e,t,r,{handlers:{handleUnlockSuccess:n,handleUnlockFailed:i,unlockOptionsHandler:o,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:s,showUnloginModal:l}})=>{Po(e,"JOLI_COIN",{httpClient:t,initiateAndAwaitPayment:a}),Oo(e,"JOLI_COIN",{showUnlockWithCurrencyModal:s});let c=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return d=>w(void 0,null,function*(){var u,p,f;try{let h=!0;for(let g of c){let b=yield Wt.executeCommand(g);if(h=h&&b.result!=="FAILED",b.result!=="CONTINUE")break}if(!h)return i==null||i(d),!1;let v=El[r],y=yield t.post(v.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${cn()}-${E.mpType}-${Date.now()}`,gameInfo:{gameId:E.mpId}}});if(console.log("-----unlockWithCurrency request result-----",y),y.code=="SUCCESS"){try{(p=d.adBreakDone)==null||p.call(d,{breakType:d.type,breakName:"name"in d&&(u=d.name)!=null?u:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in d&&((f=d.adViewed)==null||f.call(d))}catch(g){console.error("-----unlockWithJolicoin adBreakDone error-----",g)}return n==null||n({quantity:y.data.quantity,balance:y.data.balance}),!0}return i==null||i(d),!1}catch(h){if(console.info("JolicoinRewardHandler error:",h),h instanceof Error&&h.message=="CANCEL")throw h;return i==null||i(d),!1}finally{o.clearCache()}})},Al=(e,t,r)=>M4(e,t,"JOLI_COIN",r)});var aC,sC=S(()=>{"use strict";Mr();kf();on();aC=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=()=>{r==null||r()},i=fr("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),o=mr("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),a=hr("ADS-JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return Al("ADS-JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:ze,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:i,showUnloginModal:a}})}});var lC,cC=S(()=>{"use strict";kf();Mr();on();lC=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=l=>{var c;r==null||r(),(c=l.adBreakDone)==null||c.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},i=fr("JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),o=mr("JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),a=hr("JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return Al("JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:ze,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:i,showUnloginModal:a}})}});var Sl,Af=S(()=>{"use strict";B();R();wf();on();If();ti();Sl=(e,t,{handlers:{handleUnlockSuccess:r,handleUnlockFailed:n,unlockOptionsHandler:i,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:a,showUnloginModal:s}})=>{Ef(e,"JOLI_GEM",{httpClient:t,showUnloginModal:s}),Po(e,"JOLI_GEM",{httpClient:t,initiateAndAwaitPayment:o}),Oo(e,"JOLI_GEM",{showUnlockWithCurrencyModal:a});let l=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return c=>w(void 0,null,function*(){var d,u,p;try{let f=!0;for(let y of l){let g=yield Wt.executeCommand(y);if(f=f&&g.result!=="FAILED",g.result!=="CONTINUE")break}if(!f)return n==null||n(c),!1;let h=El.GEM,v=yield t.post(h.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${cn()}-${E.mpType}-${Date.now()}`,gameInfo:{gameId:E.mpId}}});if(console.log("-----unlockWithGem request result-----",v),v.code=="SUCCESS"){try{(u=c.adBreakDone)==null||u.call(c,{breakType:c.type,breakName:"name"in c&&(d=c.name)!=null?d:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in c&&((p=c.adViewed)==null||p.call(c))}catch(y){console.error("-----unlockWithGem adBreakDone error-----",y)}return r==null||r({quantity:v.data.quantity,balance:v.data.balance}),!0}return n==null||n(c),!1}catch(f){if(console.info("GemRewardHandler error:",f),f instanceof Error&&f.message=="CANCEL")throw f;return n==null||n(c),!1}finally{i.clearCache()}})}});var uC,dC=S(()=>{"use strict";Mr();Af();on();uC=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=()=>{r==null||r()},i=fr("ADS-JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),o=mr("ADS-JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),a=hr("ADS-JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return Sl("ADS-JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:ze,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:i,showUnloginModal:a}})}});var pC,fC=S(()=>{"use strict";Af();Mr();on();pC=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=l=>{var c;r==null||r(),(c=l.adBreakDone)==null||c.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},i=fr("JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),o=mr("JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),a=hr("JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return Sl("JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:ze,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:i,showUnloginModal:a}})}});var Tt,mC=S(()=>{"use strict";zx();Qx();Zx();sC();cC();dC();fC();Tt=Wx();Kx(Tt);Yx(Tt)});var xl,q4,an,U4,Ro,hC,gC,F4,j4,Sf,J4,G4,vC=S(()=>{"use strict";R();Ye();ar();GS();Vx();yt();B();vt();be();mC();Cc();xl=Y(),q4=()=>{let{data:e}=j("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},an={get:(e,t)=>te(e,C({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>te(e,C({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},U4={httpClient:an,checkNetwork:q4,track:U,eventEmitter:ma,getWindowInfo:()=>({width:window.innerWidth*window.devicePixelRatio,height:window.innerHeight*window.devicePixelRatio,statusBarHeight:30}),handleLinkClicked:e=>{window.open(e,"_blank")},getContextInfo:()=>{var e,t,r,n,i,o,a,s,l;return{hostAppId:(t=(e=E.hostInfo)==null?void 0:e.aid)!=null?t:"1",deviceId:(r=E.deviceInfo.did)!=null?r:"",adId:(n=E.deviceInfo.adId)!=null?n:"",sessionId:(i=E.sessionId)!=null?i:"",userId:(a=(o=E.hostUserInfo)==null?void 0:o.uid)!=null?a:"",objectType:"GAME",objectId:E.mpId,testAdsMode:E.testAdsMode,channel:(s=E.joliSource)!=null?s:"",deviceBrand:E.deviceInfo.brand,deviceModel:E.deviceInfo.model,osType:E.platform==="android"?"ANDROID":E.platform==="ios"?"IOS":"PC",runtimeType:"APP",platform:1e3,joliSource:(l=E.joliSource)!=null?l:""}}},Ro=new yl(U4);Tt.getRewardFrequencyConfig(an).then(e=>{console.log("getRewardFrequencyConfig",e)});Tt.registerRewardHandler("ADS",Xx(Ro));Tt.registerRewardHandler("JOLI_COIN",aC(an,{onUnlockSuccess:e=>{hC(e),U("jolicoin_unlock_success",{quantity:e.quantity})},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));Tt.registerRewardHandler("JOLI_COIN_ONLY",lC(an,{onUnlockSuccess:e=>{hC(e),U("jolicoin_unlock_success",{quantity:e.quantity,isOnly:!0})},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));Tt.registerRewardHandler("JOLI_GEM",uC(an,{onUnlockSuccess:e=>{gC(e),U("gem_unlock_success",{quantity:e.quantity})}}));Tt.registerRewardHandler("JOLI_GEM_ONLY",pC(an,{onUnlockSuccess:e=>{gC(e),U("gem_unlock_success",{quantity:e.quantity,isOnly:!0})}}));hC=e=>{let{quantity:t}=e,r=`{slot-coin} ${t} {slot-i18n-jolicoin.coinUsed}`;Or(r,{customStyle:{mark:{marginRight:"8px"},base:{with:"auto"}},i18nParams:{text:"Jolicoin Used"}})},gC=e=>{let{quantity:t}=e,r=`{slot-correct} ${t*-1} {slot-gem}`;Or(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"}}})},F4=H("adInit",{implement:e=>{Ro.init(e)}}),j4=H("adConfig",{implement:e=>{Ro.adConfig(e)}}),Sf=!1,J4=H("adBreak",{implement:e=>{if(e.type==="reward"){if(Sf)return;Sf=!0,Tt.getRewardsTypes(an).then(t=>{Tt.handleReward(t,e).catch(r=>{var n;console.info("handleReward failed in native",r),(n=e.adBreakDone)==null||n.call(e,{breakType:e.type,breakFormat:e.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}).finally(()=>{Sf=!1})})}else Ro.adBreak(e)}}),G4=H("adUnit",{implement:e=>{Ro.adUnit(e)}});xl.registerCommand("AdsSDK.init",F4);xl.registerCommand("AdsSDK.adConfig",j4);xl.registerCommand("AdsSDK.adBreak",J4);xl.registerCommand("AdsSDK.adUnit",G4);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 No,B4,H4,V4,$4,W4,yC=S(()=>{"use strict";R();be();Ye();B();No=Y(),B4=H("openSchemaSync",{paramsSchema:I.tuple(I.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${E.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=j("openSchemaSync",{schema:t});if(r.errNo!==0)throw new Pt(r.errMsg,r.errNo)}}),H4=H("openPageSync",{paramsSchema:I.tuple(I.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=j("openPageSync",{url:e});if(t!==0||!n)throw new Pt(r,t);return{webviewId:n.webviewId}}}),V4=H("closePageSync",{paramsSchema:I.tuple(I.number()),implement:e=>{let{errNo:t,errMsg:r}=j("closePageSync",{webviewId:e});if(t!==0)throw new Pt(r,t)}}),$4=H("interceptSystemExitSync",{paramsSchema:I.tuple(I.boolean()),implement:e=>{ie.emit("onInterceptSystemExit",{intercept:e}),ie.emit("onInterceptBackPress",{intercept:e})}}),W4=H("navigateToNativePage",{paramsSchema:I.tuple(I.enum("openHistory","openDiscover","openDiscover","openGame","openDrama","openTopup","openFeed","openRewards"),I.object()),implement:(e,t)=>{j("callHostMethodAsync",{method:e,params:C({},t)})}});No.registerCommand("RouterSDK.openSchema",B4);No.registerCommand("RouterSDK.openPage",H4);No.registerCommand("RouterSDK.closePage",V4);No.registerCommand("RouterSDK.interceptSystemExit",$4);No.registerCommand("RouterSDK.navigateToNativePage",W4);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 Y4(e){Kl("cpLoadProgressEvent",{progress:e},E.webviewId,!0)}var bC,z4,Cl,xf,_C,K4,Q4,wC=S(()=>{"use strict";R();Ye();be();B();yt();bC=Y(),z4=H("onLoadFinished",{implement:()=>{Kl("cpLoadFinishEvent",{},E.webviewId,!0),U("loadFinished",{duration:performance.now()})}}),Cl=null,xf=!1,_C=0,K4=200;Q4=H("onLoadProgress",{paramsSchema:I.tuple(I.number()),implement:e=>{Cl=e,xf||(xf=!0,requestAnimationFrame(function t(){let r=Date.now();r-_C>=K4?(Cl!==null&&(Y4(Cl),_C=r,Cl=null),xf=!1):requestAnimationFrame(t)}))}});bC.registerCommand("RuntimeSDK.loadFinishedEvent",z4);bC.registerCommand("RuntimeSDK.loadProgressEvent",Q4)});var X4,Z4,eV,IC=S(()=>{"use strict";R();Ye();B();X4=Y(),Z4="isNativeSupport",eV=H(Z4,{paramsSchema:I.tuple(I.object({version:I.string()})),implement:e=>{let t=E.sdkInfo.nativeSDKVersionCode,{version:r}=e;return r?{code:"SUCCESS",data:wm(xc(t!=null?t:0),r,">=")}:{code:"FAILURE",message:"[Jolibox SDK] api or versionCode is required",data:!1}}});X4.registerCommand("API.isNativeSupport",eV);L("isNativeSupport",{version:"1.1.46"})});var SC=m(Tf=>{"use strict";Ye();be();R();R();B();var EC=Y(),Tl=[],Cf=!1,kC=e=>{var n;let t=E.platform,r=(n=E.sdkInfo.nativeSDKVersionCode)!=null?n:0;return e.reduce((i,o)=>{if(typeof o=="string")i.push(o);else{let{method:a,platforms:s,nativeVersionCode:l}=o,c=!0;s&&!s.includes(t)&&(c=!1),l&&l>r&&(c=!1),c&&i.push(a)}return i},[])};ie.on("onGlobalConfigChanged",e=>{var t,r;Tl=kC((r=(t=e.globalConfig)==null?void 0:t.supportedHostMethods)!=null?r:[]),Cf=!0});var AC=()=>new Promise(e=>{if(Cf)e(Tl);else{let t=r=>{var n;Tl=kC((n=r.globalConfig.supportedHostMethods)!=null?n:[]),Cf=!0,ie.off("onGlobalConfigChanged",t),e(Tl)};ie.on("onGlobalConfigChanged",t)}}),tV=ue("callHostMethod",{paramsSchema:I.tuple(I.object({method:I.string(),params:I.object().optional().default({})})),implement:r=>w(Tf,[r],function*({method:e,params:t}){if(!(yield AC()).includes(e))throw new Pt("Method not supported",10001);let{errNo:i,errMsg:o,data:a}=yield j("callHostMethodAsync",{method:e,params:C({},t)});if(i!==0)throw new Pt(o,i);let c=a,{callHostMethodId:s}=c,l=je(c,["callHostMethodId"]);return C({},l)})});EC.registerCommand("API.callHostMethod",tV);L("callHostMethod",{version:"1.1.49"});var rV=ue("userTrackAsync",{paramsSchema:I.tuple(I.object({event:I.string(),eventType:I.number(),params:I.object().optional().default({})})),implement:n=>w(Tf,[n],function*({event:e,eventType:t,params:r}){if(!(yield AC()).includes("userTrackAsync"))throw new Pt("Method not supported",10001);let{errNo:o,errMsg:a}=yield j("trackAsync",{event:e,eventType:t,data:C({},r),webviewId:E.webviewId});if(o!==0)throw new Pt(a,o)})});EC.registerCommand("API.track",rV);L("track",{version:"1.1.53"})});var TC=m(Of=>{"use strict";R();Ye();jp();Jr();var xC=Y(),CC=new lr,nV=ue("purchaseGem",{paramsSchema:I.tuple(I.object({productId:I.string()})),implement:e=>w(Of,null,function*(){var r,n;let t=yield CC.purchase("JOLI_GEM",e.productId);if(t.code!=="SUCCESS"||!((r=t.data)!=null&&r.totalAmount))throw Dt({code:-1,msg:"[JoliboxSDK]: purchase gem failed: "+t.message});return{totalAmount:(n=t.data)==null?void 0:n.totalAmount}})}),iV=ue("getGemProducts",{paramsSchema:I.tuple(),implement:()=>w(Of,null,function*(){let e=yield CC.getJolicoinProductsInfo("JOLI_GEM");return console.info("choices",e),{products:e.map(t=>{var r;return{productId:t.productId,totalAmountStr:(r=t.totalAmountStr)!=null?r:"",quantity:t.quantity}})}})});xC.registerCommand("PaymentSDK.purchaseGem",nV);xC.registerCommand("PaymentSDK.getGemProducts",iV);L("payment.purchaseGem",{version:"1.2.3"});L("payment.getGemProducts",{version:"1.2.3"})});var oV={};var are,ure,gre,vre,OC=S(()=>{"use strict";eS();are=ne(tS());lS();pa();cS();ure=ne(uS());Ws();vC();yC();wC();IC();gre=ne(SC()),vre=ne(TC())});var PC=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[PC])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[PC]=!0;w(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(XA(),QA)),Promise.resolve().then(()=>(OC(),oV)),Promise.resolve().then(()=>(yt(),lh))]);e()});
831
+ `});function xx(){let e=new Map,t,r;return{registerRewardHandler(i,o){e.set(i,o)},handleReward(i,...o){return y(this,null,function*(){return yield i.reduce((s,l)=>y(this,null,function*(){let c=yield s;if(c===!0)return!0;Cx&&console.log(`handleReward ${l}`);let d=e.get(l),u=d?yield d(...o):c;return Cx&&console.log(`handleReward ${l} ${u}`),u}),Promise.resolve(!1))})},registerRewardsFetcher(i){return y(this,null,function*(){t=(...o)=>y(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),["ADS"]}})})},registerRewardFrequencyConfigFetcher(i){return y(this,null,function*(){r=(...o)=>y(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),{joliCoinUseAndCharge:pr,loginGuide:fr}}})})},getRewardsTypes(...i){return y(this,null,function*(){return t?yield t(...i):["ADS"]})},getRewardFrequencyConfig(...i){return y(this,null,function*(){return r?yield r(...i):{joliCoinUseAndCharge:pr,loginGuide:fr}})}}}var Cx,Tx=A(()=>{"use strict";J();Ze();Cx=E.testMode});var qf,Lf,Nl,Rx=A(()=>{"use strict";bo();qf=class{constructor(t){this.httpClient=t}execute(t,r){return y(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;return{unlockOptions:((r=t.data)==null?void 0:r.unlockOptions)||[],joliCoin:t.extra.joliCoin,joliGem:t.extra.joliGem||{balance:0,enableAutoDeduct:!1}}}mergeData(t,r){return{code:"SUCCESS",message:"success",data:{unlockOptions:t.unlockOptions},extra:{joliCoin:t.joliCoin,joliGem:t.joliGem}}}processCachedData(t){return{code:"SUCCESS",message:"success from cache",data:{unlockOptions:t.unlockOptions},extra:{joliCoin:t.joliCoin,joliGem:t.joliGem}}}},Lf=class{constructor(t){this.httpClient=t}execute(t,r){return y(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 x({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}}},Nl=class{constructor(t){this.unlockOptionsService=new xt(new qf(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 xt(new Lf(t),{duration:60*60*1e3,timeout:1e3,keyGenerator:r=>r})}getUnlockOptions(){return y(this,arguments,function*(t={}){return yield this.unlockOptionsService.request("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",body:t,method:"POST"})})}getGlobalConfig(){return y(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 y(this,arguments,function*(t={}){return yield this.unlockOptionsService.forceRequest("/api/games/unlock-options",{endpoint:"/api/games/unlock-options",body:t,method:"POST"})})}refreshGlobalConfig(){return y(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 y(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 Uf(e){return Mf||(Mf=new Nl(e)),Mf}var f$,h$,Mf,Ff,jf,Gf,Bf=A(()=>{"use strict";Rx();Ze();P();f$=()=>(e,t)=>{let r={JOLI_GEM:3,JOLI_GEM_ONLY:3,JOLI_COIN:2,JOLI_COIN_ONLY:2,ADS:1};return r[t]-r[e]},h$=e=>e.length?e.includes("JOLI_GEM")&&e.length<=1?["JOLI_GEM_ONLY"]:e.includes("JOLI_COIN")&&e.length<=1?["JOLI_COIN_ONLY"]:e.sort(f$()):["ADS"],Mf=null;Ff=e=>{e.registerRewardsFetcher(t=>y(void 0,null,function*(){var i,o,a,s,l;let r=["ADS"],n=Uf(t);try{let c=yield n.getUnlockOptions({});if(c.code!=="SUCCESS")return r;L.emit(rl,{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 h$(d)}catch(c){return console.error("getRewardOptions error (cached):",c),r}}))},jf=e=>{e.registerRewardFrequencyConfigFetcher(t=>y(void 0,null,function*(){var n,i,o,a;let r=Uf(t);try{let s=yield r.getGlobalConfig();return L.emit(ur,{joliCoinUseAndCharge:((n=s.data)==null?void 0:n.joliCoinUseAndCharge)||pr,loginGuide:((i=s.data)==null?void 0:i.loginGuide)||fr}),s.data&&te.emit("onGlobalConfigChanged",{globalConfig:s.data}),{joliCoinUseAndCharge:((o=s.data)==null?void 0:o.joliCoinUseAndCharge)||pr,loginGuide:((a=s.data)==null?void 0:a.loginGuide)||fr}}catch(s){return console.error("getGlobalConfig error (cached):",s),L.emit(ur,{joliCoinUseAndCharge:pr,loginGuide:fr}),te.emit("onGlobalConfigChanged",{globalConfig:{joliCoinUseAndCharge:pr,loginGuide:fr}}),{joliCoinUseAndCharge:pr,loginGuide:fr}}}))},Gf=e=>y(void 0,null,function*(){yield Uf(e).warmupCache(),console.log("Reward cache warmed up")})});var Jf=A(()=>{"use strict";Bf();Bf()});var Ox,Px=A(()=>{"use strict";Ox=e=>t=>y(void 0,null,function*(){try{console.log("trigger @jolibox/ads reward",t),yield e.adBreak(t)}catch(r){console.error("-----createAdsRewardHandler error-----",r)}return!0})});var ze,Gr=A(()=>{"use strict";Ze();Mr();Ze();ze=it(L,rl)});var Dl,Hf=A(()=>{"use strict";Dl={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 Yt,ni=A(()=>{"use strict";P();Yt=Y()});function Nx(e){return $f||($f=new Wf(e)),$f}var Vf,Wf,$f,zf,Po,No=A(()=>{"use strict";bo();Vf=class{constructor(t){this.httpClient=t}execute(t,r){return y(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}}}},Wf=class{constructor(t){this.balanceService=new xt(new Vf(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 y(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 y(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 y(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()}},$f=null;zf=(e,t="JOLI_COIN")=>y(void 0,null,function*(){return yield Nx(e).getBalance(t)}),Po=(e,t="JOLI_COIN")=>y(void 0,null,function*(){let n=yield Nx(e).refreshBalance(t);return console.log(`Balance cache refreshed for type: ${t}`),n})});var Dx=A(()=>{"use strict";No()});function Xf(e){return Kf||(Kf=new Qf(e)),Kf}var Yf,Qf,Kf,Zf,Do,ql,qo=A(()=>{"use strict";bo();Yf=class{constructor(t){this.httpClient=t}execute(t,r){return y(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}}}},Qf=class{constructor(t){this.gemBalanceService=new xt(new Yf(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 y(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 y(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 y(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()}},Kf=null;Zf=(e,t="GEM")=>y(void 0,null,function*(){return yield Xf(e).getGemBalance(t)}),Do=(e,t="GEM")=>y(void 0,null,function*(){let n=yield Xf(e).refreshGemBalance(t);return console.log(`Gem balance cache refreshed for type: ${t}`),n}),ql=(e,t="GEM")=>y(void 0,null,function*(){yield Xf(e).warmupGemBalance(t),console.log(`Gem balance cache warmed up for type: ${t}`)})});var qx=A(()=>{"use strict";qo()});var ii,Ll=A(()=>{"use strict";Dx();qx();ii={JOLI_COIN:{fetchBalance:zf,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:Zf,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 Lo,yr,eh=A(()=>{"use strict";ni();Gr();Mr();Ze();Ze();Ll();Lo=(e,t,r)=>{let{showUnlockWithCurrencyModal:n}=r;Yt.registerCommand(`Rewards.${e}.useJolicoin`,()=>y(void 0,null,function*(){let i=yield ze.getData(),o=ii[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"}}))},yr=(e,t)=>r=>y(void 0,null,function*(){let n=it(L,on);return L.emit(il,e,{enableAutoDeduct:r.enableAutoDeduct,userCurrency:r.userCurrency,quantity:r.quantity,currency:r.currency,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).useModalResult})});var Mo,_r,Lx=A(()=>{"use strict";ni();Gr();Ze();Mr();Ze();Ll();qo();No();Mo=(e,t,r)=>{let{httpClient:n,initiateAndAwaitPayment:i}=r;Yt.registerCommand(`Rewards.${e}.usePayment`,()=>y(void 0,null,function*(){var p;let o=yield ze.getData(),a=ii[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(ze.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"?Do(n):Po(n),{result:f==="SUCCESS"?"SUCCESS":"FAILED"}}return{result:"CONTINUE"}}))},_r=(e,t)=>r=>y(void 0,null,function*(){let n=it(L,Ct);return L.emit(nl,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 th,br,Mx=A(()=>{"use strict";J();ni();Mr();Ze();Ze();P();Gr();Ll();th=(e,t,r)=>{let{showUnloginModal:n,httpClient:i}=r;Yt.registerCommand(`Rewards.${e}.useUnloginModal`,()=>y(void 0,null,function*(){var s,l,c;let o=(s=E.hostUserInfo)==null?void 0:s.isLogin,a=yield ze.getData();if(console.log("-----isLogin-----",!!o),!o){let d=yield n(t);if(console.log("-----unloginModalResult-----",d),d.result=="FAILED"||d.result=="CANCEL")return{result:"FAILED"};let{isFirstLogin:u,claimedRewardValue:p}=(l=d.rewards)!=null?l:{};if(d.result=="SUCCESS"){u&&p&&(yield jh(3e3));let f=ii[t],h=yield f.fetchBalance(i),v=f.getQuantity(a),_=f.getCurrentUser(a),g=f.createUpdatedUser((c=h==null?void 0:h.balance)!=null?c:0,_.enableAutoDeduct),w=f.getUpdateKey();if(ze.updateData({[w]:g}),g.balance>=v)return{result:"SUCCESS"}}}return{result:"CONTINUE"}}))},br=(e,t)=>r=>y(void 0,null,function*(){let n=it(L,dr);return L.emit(ol,e,{confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText,currency:r}),yield n.getFreshData()})});var cn=A(()=>{"use strict";eh();Lx();Mx()});var g$,Ml,rh=A(()=>{"use strict";J();P();Hf();cn();ni();No();g$=(e,t,r,{handlers:{handleUnlockSuccess:n,handleUnlockFailed:i,unlockOptionsHandler:o,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:s,showUnloginModal:l}})=>{Mo(e,"JOLI_COIN",{httpClient:t,initiateAndAwaitPayment:a}),Lo(e,"JOLI_COIN",{showUnlockWithCurrencyModal:s});let c=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return d=>y(void 0,null,function*(){var u,p,f;try{let h=!0;for(let g of c){let w=yield Yt.executeCommand(g);if(h=h&&w.result!=="FAILED",w.result!=="CONTINUE")break}if(!h)return i==null||i(d),!1;let v=Dl[r],_=yield t.post(v.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${pn()}-${E.mpType}-${Date.now()}`,gameInfo:{gameId:E.mpId}}});if(console.log("-----unlockWithCurrency request result-----",_),_.code=="SUCCESS"){try{(p=d.adBreakDone)==null||p.call(d,{breakType:d.type,breakName:"name"in d&&(u=d.name)!=null?u:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in d&&((f=d.adViewed)==null||f.call(d)),Po(t)}catch(g){console.error("-----unlockWithJolicoin adBreakDone error-----",g)}return n==null||n({quantity:_.data.quantity,balance:_.data.balance}),!0}return i==null||i(d),!1}catch(h){if(console.info("JolicoinRewardHandler error:",h),h instanceof Error&&h.message=="CANCEL")throw h;return i==null||i(d),!1}finally{o.clearCache()}})},Ml=(e,t,r)=>g$(e,t,"JOLI_COIN",r)});var Ux,Fx=A(()=>{"use strict";Gr();rh();cn();Ux=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=()=>{r==null||r()},i=yr("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),o=_r("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),a=br("ADS-JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return Ml("ADS-JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:ze,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:i,showUnloginModal:a}})}});var jx,Gx=A(()=>{"use strict";rh();Gr();cn();jx=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=l=>{var c;r==null||r(),(c=l.adBreakDone)==null||c.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},i=yr("JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),o=_r("JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),a=br("JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return Ml("JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:ze,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:i,showUnloginModal:a}})}});var Ul,nh=A(()=>{"use strict";J();P();Hf();cn();eh();ni();qo();Ul=(e,t,{handlers:{handleUnlockSuccess:r,handleUnlockFailed:n,unlockOptionsHandler:i,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:a,showUnloginModal:s}})=>{th(e,"JOLI_GEM",{httpClient:t,showUnloginModal:s}),Mo(e,"JOLI_GEM",{httpClient:t,initiateAndAwaitPayment:o}),Lo(e,"JOLI_GEM",{showUnlockWithCurrencyModal:a});let l=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return c=>y(void 0,null,function*(){var d,u,p;try{let f=!0;for(let _ of l){let g=yield Yt.executeCommand(_);if(f=f&&g.result!=="FAILED",g.result!=="CONTINUE")break}if(!f)return n==null||n(c),!1;let h=Dl.GEM,v=yield t.post(h.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${pn()}-${E.mpType}-${Date.now()}`,gameInfo:{gameId:E.mpId}}});if(console.log("-----unlockWithGem request result-----",v),v.code=="SUCCESS"){try{(u=c.adBreakDone)==null||u.call(c,{breakType:c.type,breakName:"name"in c&&(d=c.name)!=null?d:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in c&&((p=c.adViewed)==null||p.call(c)),Do(t)}catch(_){console.error("-----unlockWithGem adBreakDone error-----",_)}return r==null||r({quantity:v.data.quantity,balance:v.data.balance}),!0}return n==null||n(c),!1}catch(f){if(console.info("GemRewardHandler error:",f),f instanceof Error&&f.message=="CANCEL")throw f;return n==null||n(c),!1}finally{i.clearCache()}})}});var Bx,Jx=A(()=>{"use strict";Gr();nh();cn();Bx=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=()=>{r==null||r()},i=yr("ADS-JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),o=_r("ADS-JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),a=br("ADS-JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return Ul("ADS-JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:ze,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:i,showUnloginModal:a}})}});var Hx,$x=A(()=>{"use strict";nh();Gr();cn();Hx=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=l=>{var c;r==null||r(),(c=l.adBreakDone)==null||c.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},i=yr("JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),o=_r("JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),a=br("JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return Ul("JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:ze,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:i,showUnloginModal:a}})}});var Rt,Vx=A(()=>{"use strict";Tx();Jf();Px();Fx();Gx();Jx();$x();No();qo();Rt=xx();Ff(Rt);jf(Rt)});var Fl,v$,wr,y$,Uo,Wx,zx,_$,b$,ih,w$,I$,Kx=A(()=>{"use strict";P();Ye();cr();EC();Ax();yt();J();vt();be();Vx();jc();Jf();Fl=Y(),v$=()=>{let{data:e}=j("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},wr={get:(e,t)=>re(e,x({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>re(e,x({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},y$={httpClient:wr,checkNetwork:v$,track:U,eventEmitter:ba,getWindowInfo:()=>({width:window.innerWidth*window.devicePixelRatio,height:window.innerHeight*window.devicePixelRatio,statusBarHeight:30}),handleLinkClicked:e=>{window.open(e,"_blank")},getContextInfo:()=>{var e,t,r,n,i,o,a,s,l;return{hostAppId:(t=(e=E.hostInfo)==null?void 0:e.aid)!=null?t:"1",deviceId:(r=E.deviceInfo.did)!=null?r:"",adId:(n=E.deviceInfo.adId)!=null?n:"",sessionId:(i=E.sessionId)!=null?i:"",userId:(a=(o=E.hostUserInfo)==null?void 0:o.uid)!=null?a:"",objectType:"GAME",objectId:E.mpId,testAdsMode:E.testAdsMode,channel:(s=E.joliSource)!=null?s:"",deviceBrand:E.deviceInfo.brand,deviceModel:E.deviceInfo.model,osType:E.platform==="android"?"ANDROID":E.platform==="ios"?"IOS":"PC",runtimeType:"APP",platform:1e3,joliSource:(l=E.joliSource)!=null?l:""}}},Uo=new xl(y$);Rt.getRewardFrequencyConfig(wr).then(e=>{console.log("getRewardFrequencyConfig",e)});Rt.registerRewardHandler("ADS",Ox(Uo));Rt.registerRewardHandler("JOLI_COIN",Ux(wr,{onUnlockSuccess:e=>{Wx(e),U("jolicoin_unlock_success",{quantity:e.quantity})},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));Rt.registerRewardHandler("JOLI_COIN_ONLY",jx(wr,{onUnlockSuccess:e=>{Wx(e),U("jolicoin_unlock_success",{quantity:e.quantity,isOnly:!0})},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));Rt.registerRewardHandler("JOLI_GEM",Bx(wr,{onUnlockSuccess:e=>{zx(e),U("gem_unlock_success",{quantity:e.quantity})}}));Rt.registerRewardHandler("JOLI_GEM_ONLY",Hx(wr,{onUnlockSuccess:e=>{zx(e),U("gem_unlock_success",{quantity:e.quantity,isOnly:!0})}}));Wx=e=>{let{quantity:t}=e,r=`{slot-coin} ${t} {slot-i18n-jolicoin.coinUsed}`;Lr(r,{customStyle:{mark:{marginRight:"8px"},base:{with:"auto"}},i18nParams:{text:"Jolicoin Used"}})};Gf(wr);ql(wr);zx=e=>{let{quantity:t}=e,r=`{slot-correct} ${t*-1} {slot-gem}`;Lr(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"}}})},_$=H("adInit",{implement:e=>{Uo.init(e)}}),b$=H("adConfig",{implement:e=>{Uo.adConfig(e)}}),ih=!1,w$=H("adBreak",{implement:e=>{if(e.type==="reward"){if(ih)return;ih=!0,Rt.getRewardsTypes(wr).then(t=>{Rt.handleReward(t,e).catch(r=>{var n;console.info("handleReward failed in native",r),(n=e.adBreakDone)==null||n.call(e,{breakType:e.type,breakFormat:e.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}).finally(()=>{ih=!1})})}else Uo.adBreak(e)}}),I$=H("adUnit",{implement:e=>{Uo.adUnit(e)}});Fl.registerCommand("AdsSDK.init",_$);Fl.registerCommand("AdsSDK.adConfig",b$);Fl.registerCommand("AdsSDK.adBreak",w$);Fl.registerCommand("AdsSDK.adUnit",I$);q("AdsSDK.init",{version:"1.0.0"});q("AdsSDK.adConfig",{version:"1.0.0"});q("AdsSDK.adBreak",{version:"1.0.0"});q("AdsSDK.adUnit",{version:"1.0.0"})});var Fo,E$,S$,k$,A$,C$,Yx=A(()=>{"use strict";P();be();Ye();J();Fo=Y(),E$=H("openSchemaSync",{paramsSchema:I.tuple(I.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${E.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=j("openSchemaSync",{schema:t});if(r.errNo!==0)throw new Pt(r.errMsg,r.errNo)}}),S$=H("openPageSync",{paramsSchema:I.tuple(I.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=j("openPageSync",{url:e});if(t!==0||!n)throw new Pt(r,t);return{webviewId:n.webviewId}}}),k$=H("closePageSync",{paramsSchema:I.tuple(I.number()),implement:e=>{let{errNo:t,errMsg:r}=j("closePageSync",{webviewId:e});if(t!==0)throw new Pt(r,t)}}),A$=H("interceptSystemExitSync",{paramsSchema:I.tuple(I.boolean()),implement:e=>{te.emit("onInterceptSystemExit",{intercept:e}),te.emit("onInterceptBackPress",{intercept:e})}}),C$=H("navigateToNativePage",{paramsSchema:I.tuple(I.enum("openHistory","openDiscover","openDiscover","openGame","openDrama","openTopup","openFeed","openRewards"),I.object()),implement:(e,t)=>{j("callHostMethodAsync",{method:e,params:x({},t)})}});Fo.registerCommand("RouterSDK.openSchema",E$);Fo.registerCommand("RouterSDK.openPage",S$);Fo.registerCommand("RouterSDK.closePage",k$);Fo.registerCommand("RouterSDK.interceptSystemExit",A$);Fo.registerCommand("RouterSDK.navigateToNativePage",C$);q("router.openSchema",{version:"1.1.10"});q("router.openPage",{version:"1.1.10"});q("router.closePage",{version:"1.1.10"});q("router.interceptSystemExit",{version:"1.1.18"});q("router.navigateToNativePage",{version:"1.1.19"})});function R$(e){sc("cpLoadProgressEvent",{progress:e},E.webviewId,!0)}var Xx,x$,jl,oh,Qx,T$,O$,Zx=A(()=>{"use strict";P();Ye();be();J();yt();Xx=Y(),x$=H("onLoadFinished",{implement:()=>{sc("cpLoadFinishEvent",{},E.webviewId,!0),U("loadFinished",{duration:performance.now()})}}),jl=null,oh=!1,Qx=0,T$=200;O$=H("onLoadProgress",{paramsSchema:I.tuple(I.number()),implement:e=>{jl=e,oh||(oh=!0,requestAnimationFrame(function t(){let r=Date.now();r-Qx>=T$?(jl!==null&&(R$(jl),Qx=r,jl=null),oh=!1):requestAnimationFrame(t)}))}});Xx.registerCommand("RuntimeSDK.loadFinishedEvent",x$);Xx.registerCommand("RuntimeSDK.loadProgressEvent",O$)});var P$,N$,D$,eT=A(()=>{"use strict";P();Ye();J();P$=Y(),N$="isNativeSupport",D$=H(N$,{paramsSchema:I.tuple(I.object({version:I.string()})),implement:e=>{let t=E.sdkInfo.nativeSDKVersionCode,{version:r}=e;return r?{code:"SUCCESS",data:Zh(Fc(t!=null?t:0),r,">=")}:{code:"FAILURE",message:"[Jolibox SDK] api or versionCode is required",data:!1}}});P$.registerCommand("API.isNativeSupport",D$);q("isNativeSupport",{version:"1.1.46"})});var iT=m(sh=>{"use strict";Ye();be();P();P();J();var tT=Y(),Gl=[],ah=!1,rT=e=>{var n;let t=E.platform,r=(n=E.sdkInfo.nativeSDKVersionCode)!=null?n:0;return e.reduce((i,o)=>{if(typeof o=="string")i.push(o);else{let{method:a,platforms:s,nativeVersionCode:l}=o,c=!0;s&&!s.includes(t)&&(c=!1),l&&l>r&&(c=!1),c&&i.push(a)}return i},[])};te.on("onGlobalConfigChanged",e=>{var t,r;Gl=rT((r=(t=e.globalConfig)==null?void 0:t.supportedHostMethods)!=null?r:[]),ah=!0});var nT=()=>new Promise(e=>{if(ah)e(Gl);else{let t=r=>{var n;Gl=rT((n=r.globalConfig.supportedHostMethods)!=null?n:[]),ah=!0,te.off("onGlobalConfigChanged",t),e(Gl)};te.on("onGlobalConfigChanged",t)}}),q$=ue("callHostMethod",{paramsSchema:I.tuple(I.object({method:I.string(),params:I.object().optional().default({})})),implement:r=>y(sh,[r],function*({method:e,params:t}){if(!(yield nT()).includes(e))throw new Pt("Method not supported",10001);let{errNo:i,errMsg:o,data:a}=yield j("callHostMethodAsync",{method:e,params:x({},t)});if(i!==0)throw new Pt(o,i);let c=a,{callHostMethodId:s}=c,l=je(c,["callHostMethodId"]);return x({},l)})});tT.registerCommand("API.callHostMethod",q$);q("callHostMethod",{version:"1.1.49"});var L$=ue("userTrackAsync",{paramsSchema:I.tuple(I.object({event:I.string(),eventType:I.number(),params:I.object().optional().default({})})),implement:n=>y(sh,[n],function*({event:e,eventType:t,params:r}){if(!(yield nT()).includes("userTrackAsync"))throw new Pt("Method not supported",10001);let{errNo:o,errMsg:a}=yield j("trackAsync",{event:e,eventType:t,data:x({},r),webviewId:E.webviewId});if(o!==0)throw new Pt(a,o)})});tT.registerCommand("API.track",L$);q("track",{version:"1.1.53"})});var sT=m(lh=>{"use strict";P();Ye();tf();$r();var oT=Y(),aT=ul(),M$=ue("purchaseGem",{paramsSchema:I.tuple(I.object({productId:I.string()})),implement:e=>y(lh,null,function*(){var r,n;let t=yield aT.purchase(e.productId);if(t.code!=="SUCCESS"||!((r=t.data)!=null&&r.totalAmount))throw qt({code:-1,msg:"[JoliboxSDK]: purchase gem failed: "+t.message});return{totalAmount:(n=t.data)==null?void 0:n.totalAmount}})}),U$=ue("getGemProducts",{paramsSchema:I.tuple(),implement:()=>y(lh,null,function*(){var t,r;let e=(r=(t=yield aT.getProductsInfo())==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}})}})});oT.registerCommand("PaymentSDK.purchaseGem",M$);oT.registerCommand("PaymentSDK.getGemProducts",U$);q("payment.purchaseGem",{version:"1.2.3"});q("payment.getGemProducts",{version:"1.2.3"})});var F$={};var One,qne,Gne,Bne,lT=A(()=>{"use strict";PA();One=ie(NA());jA();ya();GA();qne=ie(BA());Zs();Kx();Yx();Zx();eT();Gne=ie(iT()),Bne=ie(sT())});var cT=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[cT])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[cT]=!0;y(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(RA(),TA)),Promise.resolve().then(()=>(lT(),F$)),Promise.resolve().then(()=>(yt(),jm))]);e()});