@jolibox/implement 1.1.56 → 1.2.0-beta.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.rush/temp/package-deps_build.json +34 -27
- package/dist/common/rewards/index.d.ts +2 -0
- package/dist/common/rewards/registers/use-gem-only.d.ts +10 -0
- package/dist/common/rewards/registers/use-gem.d.ts +10 -0
- package/dist/common/rewards/registers/utils/coins/commands/currency-handlers.d.ts +15 -0
- package/dist/common/rewards/registers/utils/coins/commands/index.d.ts +1 -1
- package/dist/common/rewards/registers/utils/coins/commands/use-jolicoin.d.ts +10 -8
- package/dist/common/rewards/registers/utils/coins/commands/use-payment.d.ts +10 -8
- package/dist/common/rewards/registers/utils/coins/commands/use-unlogin.d.ts +6 -8
- package/dist/common/rewards/registers/utils/coins/currency-config.d.ts +8 -0
- package/dist/common/rewards/registers/utils/coins/index.d.ts +2 -18
- package/dist/common/rewards/registers/utils/coins/jolicoin/jolicoin-handler.d.ts +18 -0
- package/dist/common/rewards/registers/utils/coins/joligem/fetch-gem-balance.d.ts +4 -0
- package/dist/common/rewards/registers/utils/coins/joligem/gem-handler.d.ts +19 -0
- package/dist/common/rewards/registers/utils/index.d.ts +3 -1
- package/dist/common/rewards/reward-emitter.d.ts +23 -13
- package/dist/common/rewards/reward-helper.d.ts +3 -1
- package/dist/common/rewards/type.d.ts +10 -1
- package/dist/index.js +25 -25
- package/dist/index.native.js +68 -53
- package/dist/native/api/ads.d.ts +4 -0
- package/dist/native/payment/payment-helper.d.ts +5 -1
- package/dist/native/rewards/check-frequency.d.ts +24 -0
- package/dist/native/rewards/ui/utils.d.ts +1 -1
- package/implement.build.log +2 -2
- package/package.json +5 -5
- package/src/common/rewards/__tests__/can-use-jolicoin.test.ts +265 -9
- package/src/common/rewards/fetch-reward.ts +18 -3
- package/src/common/rewards/index.ts +2 -0
- package/src/common/rewards/registers/use-gem-only.ts +58 -0
- package/src/common/rewards/registers/use-gem.ts +53 -0
- package/src/common/rewards/registers/use-jolicoin-only.ts +4 -4
- package/src/common/rewards/registers/use-jolicoin.ts +4 -4
- package/src/common/rewards/registers/utils/coins/commands/currency-handlers.ts +50 -0
- package/src/common/rewards/registers/utils/coins/commands/index.ts +1 -1
- package/src/common/rewards/registers/utils/coins/commands/use-jolicoin.ts +31 -19
- package/src/common/rewards/registers/utils/coins/commands/use-payment.ts +32 -25
- package/src/common/rewards/registers/utils/coins/commands/use-unlogin.ts +22 -24
- package/src/common/rewards/registers/utils/coins/currency-config.ts +23 -0
- package/src/common/rewards/registers/utils/coins/index.ts +2 -139
- package/src/common/rewards/registers/utils/coins/jolicoin/jolicoin-handler.ts +152 -0
- package/src/common/rewards/registers/utils/coins/joligem/fetch-gem-balance.ts +15 -0
- package/src/common/rewards/registers/utils/coins/joligem/gem-handler.ts +134 -0
- package/src/common/rewards/registers/utils/index.ts +20 -1
- package/src/common/rewards/reward-emitter.ts +23 -13
- package/src/common/rewards/reward-helper.ts +3 -1
- package/src/common/rewards/type.ts +13 -1
- package/src/h5/rewards/index.ts +33 -20
- package/src/native/api/ads.ts +55 -1
- package/src/native/api/call-host-method.ts +36 -1
- package/src/native/bootstrap/index.ts +11 -7
- package/src/native/payment/index.ts +2 -0
- package/src/native/payment/payment-helper.ts +2 -1
- package/src/native/rewards/check-frequency.ts +10 -0
- package/src/native/rewards/ui/payment-modal.ts +115 -34
- package/src/native/rewards/ui/unlogin-modal.ts +182 -87
- package/src/native/rewards/ui/use-modal.ts +129 -68
- package/src/native/rewards/ui/utils.ts +2 -2
- /package/dist/common/rewards/registers/utils/coins/{fetch-balance.d.ts → jolicoin/fetch-balance.d.ts} +0 -0
- /package/src/common/rewards/registers/utils/coins/{fetch-balance.ts → jolicoin/fetch-balance.ts} +0 -0
package/dist/index.native.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var r1=Object.create;var xo=Object.defineProperty,n1=Object.defineProperties,i1=Object.getOwnPropertyDescriptor,o1=Object.getOwnPropertyDescriptors,a1=Object.getOwnPropertyNames,Eo=Object.getOwnPropertySymbols,s1=Object.getPrototypeOf,yl=Object.prototype.hasOwnProperty,gp=Object.prototype.propertyIsEnumerable;var vp=(e,t,r)=>t in e?xo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T=(e,t)=>{for(var r in t||(t={}))yl.call(t,r)&&vp(e,r,t[r]);if(Eo)for(var r of Eo(t))gp.call(t,r)&&vp(e,r,t[r]);return e},B=(e,t)=>n1(e,o1(t));var je=(e,t)=>{var r={};for(var n in e)yl.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Eo)for(var n of Eo(e))t.indexOf(n)<0&&gp.call(e,n)&&(r[n]=e[n]);return r};var k=(e,t)=>()=>(e&&(t=e(e=0)),t);var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),yp=(e,t)=>{for(var r in t)xo(e,r,{get:t[r],enumerable:!0})},l1=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of a1(t))!yl.call(e,i)&&i!==r&&xo(e,i,{get:()=>t[i],enumerable:!(n=i1(t,i))||n.enumerable});return e};var ie=(e,t,r)=>(r=e!=null?r1(s1(e)):{},l1(t||!e||!e.__esModule?xo(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 h1(e){return!!(e!=null&&e.__nativeBuffers__)}function xl(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!h1(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=m1(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function g1(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:v1(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function w1(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Op(e){return typeof e=="string"}function Wr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function bp(e){return typeof e=="number"&&!isNaN(e)}function S1(e){return typeof e=="undefined"}function E1(e){return S1(e)||e===null}function Rp(e){return typeof e=="function"}function x1(e){return Wr(e)&&Rp(e.then)}function Np(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function $n(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function R1(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 F1(){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 J1(e){return new Promise(t=>Dp(e)(t))}function Dp(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function H1(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new zn(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function V1(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)G1(e[n],t[n])}function G1(e,t){if(Op(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(Rp(t)){try{if(e instanceof t)return}catch(r){}if(!E1(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 Dl(e,t){if(Al.config[e]){Oo.warn(`[can i use] ${e} already registered`);return}Al.config[e]=$t({},t)}function Sp(e,t){return`[${e}]:${t}`}function Z1(e,t){Ep||(wl=new Ao({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Il=new Ao({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Sl=new Ao({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),t("onJoliboxEnterBackground",()=>{wl.flush(),Il.flush(),Sl.flush()}),Ep=!0);function r(i){var o,a;let{method:s,args:l,startTime:c,isForeground:d,errMsg:u=`${s}:fail no errMsg`,errNo:f=0,__timing:p={receiveJSInvoke:0,invokeCallback:0}}=i,{receiveJSInvoke:m,invokeCallback:g}=p,_=(a=(o=u.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";wl.report({status:_,method:n(s,l),errNo:`${f}`,errMsg:u,isForeground:d,duration:Date.now()-c}),c&&m&&g&&(Il.report({status:_,method:s,isForeground:d,duration:Number((m-c).toFixed(3))}),Sl.report({status:_,method:s,isForeground:d,duration:Number((Date.now()-g).toFixed(3))}))}function n(i,o){return(i==="callHostMethod"||i==="callHostMethodSync")&&o!=null&&o.method?`${i}-${o.method}`:i}return r}function nT(e,t){let r=0,n=!0,i=rT.resolveMap,o=Z1(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,El.forEach(l=>Co(this,[l],function*({method:c,args:d,resolve:u}){let f=yield s(c,d);u(f)})),El.length=0});let a=(l,c)=>{let d=i.get(Number(l));if(!d)return;let u=xl(c);d(u),i.delete(Number(l))},s=(l,c)=>{var d,u;let f=Date.now(),p=`${n}`;r+=1;let m=new I1;if(i.set(r,m.resolve),!n&&K1.includes(l))return new Promise(A=>{El.push({method:l,args:c,resolve:A})});let g=f1($t({},{method:l,startTime:f,args:c,isForeground:p}),{invokeType:"js-bridge"}),_=!eT&&W1.includes(l),v=g1(c,_),b=_?v:JSON.stringify(v),I;if(l.endsWith("Sync")||Q1.includes(l)?I=(d=e.call)==null?void 0:d.call(e,l,v,r):typeof b=="string"?I=e.invoke(l,b,r):I=(u=e.call)==null?void 0:u.call(e,l,b,r),I){try{typeof I=="string"&&(I=JSON.parse(I)),I=xl(I)}catch(A){Oo.error(A)}return i.delete(r),I.errorCode&&(I.errorCode=Sp(l,I.errorCode)),o($t($t({},g),I)),I}return l.endsWith("Sync")&&i.delete(r),m.promise.then(A=>(A.errorCode&&(A.errorCode=Sp(l,A.errorCode)),o($t($t({},g),A)),A))};return{invokeNative:s,applyNative:(l,c)=>{let d=s(l,c);return x1(d)?d.then(u=>xp(l,u)):xp(l,d)},invokeHandler:a}}function xp(e,t){if(!Wr(t)){Oo.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=p1(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new C1(n,i,o,a);return s}function iT(e){if(globalThis[ko])return globalThis[ko];let t=new Pl,r=new Pl,n=new Ao({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[ko]={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=xl(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===qp){l.forEach(c=>{let[d,u]=c;try{r.emit(d.slice(Gn.length),u,a)}catch(f){}});return}if(i.startsWith(Gn)){r.emit(i.slice(Gn.length),l,a);return}t.emit(i,l,a)}},globalThis[ko]}function oT(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(`${Gn}${o}`,a,d);return}n||(n=Promise.resolve().then(()=>{t.forEach((d,u)=>{try{let f=u!==void 0?u==="*"?"*":[u]:void 0;e.publish(qp,d,f)}catch(f){}}),n=void 0,t.clear()}));let c=t.get(s);c||(c=[],t.set(s,c)),c.push([`${Gn}${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 f=u!==void 0?u==="*"?"*":[u]:void 0;e.publish(Y1,d,f)}catch(f){}}),i=void 0,r.clear()}));let c=r.get(s);c||(c=[],r.set(s,c)),c.push([o,a])}}}function aT(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=iT(e),{invokeNative:a,invokeHandler:s,applyNative:l}=nT(e,r),{publish:c,emitNative:d}=oT(e);return{invokeHandler:s,subscribeHandler:t,applyNative:l,invokeNative:a,onNative:r,offNative:n,emitNative:d,publish:c,subscribe:i,unsubscribe:o}}function Fp(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var c1,u1,d1,To,Ap,Tp,_p,$t,f1,p1,Co,m1,v1,Cp,y1,_1,Pp,b1,I1,k1,A1,Po,T1,C1,P1,_l,Oo,wp,O1,kl,N1,Al,D1,L1,q1,zr,M1,c$,Tl,se,U1,j1,Vn,zn,Pl,Ol,B1,bl,$1,u$,Rl,Ip,d$,Lp,z1,Gn,W1,K1,Q1,qp,Y1,X1,Ao,Ep,wl,Il,Sl,El,eT,Nl,tT,rT,ko,Ll,ht,Mp,Up,sT,jp,kp,ye,j,Ze,f$,lT,Bp,ql,p$,h$,_e=k(()=>{"use strict";c1=Object.defineProperty,u1=Object.defineProperties,d1=Object.getOwnPropertyDescriptors,To=Object.getOwnPropertySymbols,Ap=Object.prototype.hasOwnProperty,Tp=Object.prototype.propertyIsEnumerable,_p=(e,t,r)=>t in e?c1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,$t=(e,t)=>{for(var r in t||(t={}))Ap.call(t,r)&&_p(e,r,t[r]);if(To)for(var r of To(t))Tp.call(t,r)&&_p(e,r,t[r]);return e},f1=(e,t)=>u1(e,d1(t)),p1=(e,t)=>{var r={};for(var n in e)Ap.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&To)for(var n of To(e))t.indexOf(n)<0&&Tp.call(e,n)&&(r[n]=e[n]);return r},Co=(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())});m1=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};v1=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)};Cp=Object.defineProperty,y1=Object.getOwnPropertyDescriptor,_1=(e,t)=>{for(var r in t)Cp(e,r,{get:t[r],enumerable:!0})},Pp=(e,t,r,n)=>{for(var i=n>1?void 0:n?y1(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&&Cp(t,r,i),i},b1=(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}I1=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))}})}};k1=(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))(k1||{}),A1=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}},Po=class extends A1{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},T1=class extends Po{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},C1=class extends Po{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},P1=class extends Po{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},_l=class extends Po{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};Oo={log:$n("log"),warn:$n("warn"),info:$n("info"),error:$n("error"),debug:$n("debug")};Object.assign(globalThis,{logger:Oo});wp=Symbol.for("Jolibox.canIUseMap"),O1={};globalThis[wp]||(globalThis[wp]=O1);kl=Symbol.for("Jolibox.canIUseMap.native"),N1={};globalThis[kl]||(globalThis[kl]=N1);Al={get config(){return globalThis[kl]}},D1=(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))(D1||{}),L1=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(L1||{}),q1=(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))(q1||{});F1();zr=typeof window=="undefined",M1=()=>!zr&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),c$={isiOS:!zr&&(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:!zr&&navigator.userAgent.includes("Android"),isMac:!zr&&navigator.userAgent.includes("Mac"),isFacebook:!zr&&navigator.userAgent.includes("FB_IAB"),isPC:!zr&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},Tl=class Cl{constructor(t){this.element=t,this.next=Cl.Undefined,this.prev=Cl.Undefined}};Tl.Undefined=new Tl(void 0);se=Tl,U1=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}},j1=0,Vn=class{constructor(e){this.value=e,this.id=j1++}},zn=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 Vn&&(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 Vn(t);return this._listeners?this._listeners instanceof Vn?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,f,p;if(!this._disposed){if(this._listeners instanceof Vn)this._listeners.id===c.id&&(this._listeners=void 0,this._size=0,(u=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||u.call(d));else if(this._listeners){let m=this._listeners.indexOf(c);m>=0&&(this._listeners.splice(m,1),this._size--,this._size===0&&((p=(f=this.options)==null?void 0:f.onDidRemoveLastListener)==null||p.call(f)))}}}}),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 Vn?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Pl=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 zn,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 U1,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)}},Ol={};_1(Ol,{None:()=>B1,filter:()=>H1,once:()=>Dp,toPromise:()=>J1});B1=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});bl=Symbol.for("Jolibox.hostEmitter"),$1=()=>{let e=new Pl;return globalThis[bl]||(globalThis[bl]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[bl]},u$=$1();Rl=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new zn,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 V1(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}};Rl=Pp([Np],Rl);Ip=class{constructor(){this._onWillExecuteCommand=new zn,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new zn,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Rl,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=w1(3e4)),this._starActivation}executeCommand(e,...t){return b1(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Ol.toPromise(Ol.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}}};Ip=Pp([Np],Ip);d$=Symbol.for("Jolibox.commands");Dl("requestPaymentSync",{version:1e6,properties:{paymentBody:{appStoreProductId:102e4}}});Dl("requestProductDetailsAsync",{version:102e4});Dl("loginSync",{version:1e6,properties:{skipLogin:102e4,triggerFrom:102e4}});Lp=(e,t)=>{function r(i){var o;let[a,...s]=i.split(":");if(!a)return!1;let l=Al.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=R1(i,o);if(!s)return!1;if(Wr(s)){let l=s.version;return bp(l)?typeof a=="number"&&a>=l:!0}return bp(s)?typeof a=="number"&&a>=s:s===!0}return{canIUseNative:r}};z1=()=>M1(),Gn="custom_event_",W1=[],K1=[],Q1=["env","createRequestTask","login"],qp="__batch_event__",Y1="__native_batch_event__",X1=e=>e==="pv"?e:"default",Ao=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=X1(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&&Wr(a))throw new _l(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let l=[];if(Wr(a))l.push(...Object.keys(a));else if(Op(a)){if(i.length>0)throw new _l(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);l.push(a)}else throw new _l(`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=Wr(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={}}},Ep=!1;El=[],eT=!1,Nl=Symbol.for("Jolibox.invokeResolverInstance"),tT=new Map;globalThis[Nl]||(globalThis[Nl]=tT);rT={get resolveMap(){return globalThis[Nl]}};ko=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}},Mp=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new T1("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=>Co(void 0,null,function*(){let o=yield ht.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});Ll={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=Fp(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:Mp,doExit:r};globalThis.joliboxJSCore=$t({},n)}if(typeof window!="undefined"&&window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(o="")=>{ht.trigger(),t.onDocumentReady(JSON.stringify({path:o}))},n=o=>Co(void 0,null,function*(){let a=yield ht.exit();t.doExit(JSON.stringify({uuid:o,shouldInterrupt:a}))});Ll={onDocumentReady:r,invoke(o,a,s){t.invoke(JSON.stringify({event:o,paramsString:a,callbackId:s}))},doExit:n,publish(o,a,s){let l=Fp(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 Co(this,null,function*(){let a=yield ht.backPress();t.doBackPress(JSON.stringify({uuid:o,shouldInterrupt:a}))})}};let i={onDocumentReady:r,env:Mp,doExit:n};globalThis.joliboxJSCore=$t({},i)}Up=Ll;if(!Up&&z1())throw new P1("No joliboxJScore is found, native bridge not found.");sT=$t({},Up),jp=aT(sT),{invokeHandler:kp}=jp,{applyNative:ye,invokeNative:j,onNative:Ze,offNative:f$,subscribeHandler:lT,publish:Bp,emitNative:ql,subscribe:p$,unsubscribe:h$}=jp;globalThis.joliboxJSBridge={callHandler:kp,invokeHandler:kp,subscribeHandler:lT}});function mT(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function zp(e){return new Promise(t=>setTimeout(t,e))}function Xn(e){return typeof e=="string"}function Tr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Wp(e){return typeof e=="object"&&Array.isArray(e)}function Kp(e){return typeof e=="number"&&!isNaN(e)}function Kr(e){return e===!0||e===!1}function Qp(e){return typeof e=="undefined"}function $l(e){return Qp(e)||e===null}function vT(e){return typeof e=="function"}function Yp(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function Xp(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:$p(l)&&$p(s)?i[a]=n(fT({},s),l):Array.isArray(l)&&Array.isArray(s)?i[a]=[...s,...l]:i[a]=l}return i}return n(e,t)}function $p(e){return e&&typeof e=="object"&&e.constructor===Object}function Zp(e,t){if(Array.isArray(e))return e.concat(t)}function Zn(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 f=s&&!n;if(n&&clearTimeout(n),n=setTimeout(()=>{n=null,l&&!f&&c()},t),f)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 yT(e,t){return(...r)=>t(e,...r)}function No(e){return t=>yT(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(i){e(new lr(`${i}`))}})}function Wn(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function ah(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 Ql(){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 ET(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 Yl(e){return ET("api","stg-api",e)}function Cr(e){return`https://${Yl(e)}`}function TT(e){return new Promise(t=>uh(e)(t))}function uh(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function CT(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new Yn(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function OT(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)RT(e[n],t[n])}function RT(e,t){if(Xn(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(vT(t)){try{if(e instanceof t)return}catch(r){}if(!$l(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 NT(){return typeof globalThis!="undefined"?globalThis[dh]:void 0}function DT(e){typeof globalThis!="undefined"&&(globalThis[dh]=e)}function X(e=!1){let t=NT();if(!e&&t)return t;let r=new Ro,n=new Jl,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 DT(i),i}var Hl,cT,Jp,uT,dT,Hp,fT,pT,Gp,hT,Ct,gT,Vl,ei,Gl,eh,lr,th,rh,nh,ih,oh,ti,zl,Pt,Ml,_T,Wl,Vp,bT,J,Kl,wT,Do,Kn,ri,IT,ST,sh,lh,ch,Ul,le,xT,kT,Qn,Yn,Ot,Bl,AT,Fl,PT,ne,Ro,Jl,dh,N=k(()=>{"use strict";Hl=Object.defineProperty,cT=Object.getOwnPropertyDescriptor,Jp=Object.getOwnPropertySymbols,uT=Object.prototype.hasOwnProperty,dT=Object.prototype.propertyIsEnumerable,Hp=(e,t,r)=>t in e?Hl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,fT=(e,t)=>{for(var r in t||(t={}))uT.call(t,r)&&Hp(e,r,t[r]);if(Jp)for(var r of Jp(t))dT.call(t,r)&&Hp(e,r,t[r]);return e},pT=(e,t)=>{for(var r in t)Hl(e,r,{get:t[r],enumerable:!0})},Gp=(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&&Hl(t,r,i),i},hT=(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}Ct=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))}})}};gT=(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))(gT||{}),Vl=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}},ei=class extends Vl{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},Gl=class extends Vl{constructor(){super(...arguments),this.kind="USER_ERROR"}},eh=class extends Gl{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},lr=class extends Gl{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))}},th=class extends Gl{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))}},rh=class extends ei{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},nh=class extends ei{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))}},ih=class extends ei{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_METHOD_ERROR"}},oh=class extends ei{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},ti=class extends Vl{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}}},zl=class extends ei{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};Pt={log:Wn("log"),warn:Wn("warn"),info:Wn("info"),error:Wn("error"),debug:Wn("debug")};Object.assign(globalThis,{logger:Pt});Ml=Symbol.for("Jolibox.canIUseMap"),_T={};globalThis[Ml]||(globalThis[Ml]=_T);Wl={get config(){return globalThis[Ml]}},Vp=Symbol.for("Jolibox.canIUseMap.native"),bT={};globalThis[Vp]||(globalThis[Vp]=bT);J=(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))(J||{}),Kl=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(Kl||{}),wT=(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))(wT||{}),Do=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});Ql();Kn=typeof window=="undefined",ri={isiOS:!Kn&&(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:!Kn&&navigator.userAgent.includes("Android"),isMac:!Kn&&navigator.userAgent.includes("Mac"),isFacebook:!Kn&&navigator.userAgent.includes("FB_IAB"),isPC:!Kn&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},IT="device_id",ST="advertising_id",sh=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,Do()),window.__joliboxLocalStorage__.getItem(e)),lh=()=>new URLSearchParams(window.location.search).get("deviceId")||sh(IT),ch=()=>new URLSearchParams(window.location.search).get("advertisingId")||sh(ST);Ul=class jl{constructor(t){this.element=t,this.next=jl.Undefined,this.prev=jl.Undefined}};Ul.Undefined=new Ul(void 0);le=Ul,xT=class{constructor(){this._first=le.Undefined,this._last=le.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===le.Undefined}clear(){let e=this._first;for(;e!==le.Undefined;){let t=e.next;e.prev=le.Undefined,e.next=le.Undefined,e=t}this._first=le.Undefined,this._last=le.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new le(e);if(this._first===le.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==le.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==le.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==le.Undefined&&e.next!==le.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===le.Undefined&&e.next===le.Undefined?(this._first=le.Undefined,this._last=le.Undefined):e.next===le.Undefined?(this._last=this._last.prev,this._last.next=le.Undefined):e.prev===le.Undefined&&(this._first=this._first.next,this._first.prev=le.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==le.Undefined;)yield e.element,e=e.next}},kT=0,Qn=class{constructor(e){this.value=e,this.id=kT++}},Yn=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 Qn&&(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 Qn(t);return this._listeners?this._listeners instanceof Qn?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,f,p;if(!this._disposed){if(this._listeners instanceof Qn)this._listeners.id===c.id&&(this._listeners=void 0,this._size=0,(u=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||u.call(d));else if(this._listeners){let m=this._listeners.indexOf(c);m>=0&&(this._listeners.splice(m,1),this._size--,this._size===0&&((p=(f=this.options)==null?void 0:f.onDidRemoveLastListener)==null||p.call(f)))}}}}),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 Qn?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Ot=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 Yn,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 xT,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)}},Bl={};pT(Bl,{None:()=>AT,filter:()=>CT,once:()=>uh,toPromise:()=>TT});AT=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Fl=Symbol.for("Jolibox.hostEmitter"),PT=()=>{let e=new Ot;return globalThis[Fl]||(globalThis[Fl]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Fl]},ne=PT();Ro=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Yn,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 OT(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}};Ro=Gp([Yp],Ro);Jl=class{constructor(){this._onWillExecuteCommand=new Yn,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Yn,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Ro,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=mT(3e4)),this._starActivation}executeCommand(e,...t){return hT(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Bl.toPromise(Bl.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}}};Jl=Gp([Yp],Jl);dh=Symbol.for("Jolibox.commands")});function ke(e,t={}){Xl.emit("ERROR_REPORT",{error:e,options:t})}var Xl,Pr,mt=k(()=>{"use strict";N();N();Xl=new Ot,Pr=new Ot;ke.debounce=Zn(ke,50,{leading:!0})});var Zl,LT,fh,ph,hh=k(()=>{"use strict";N();mt();Zl=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{}}},LT=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},fh=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:Zl(o),payloadJson:Zl(a),signature:Zl(s)}}else throw"joli_source is missing"}catch(r){return ke(new rh(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},ph=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],i=LT(e),o=r[2];return`${n}.${i}.${o}`}return t}});var qT,ec,mh=k(()=>{"use strict";N();qT="1.1.56",ec=()=>qT});function rc(e,t){return(document==null?void 0:document.head.querySelector(`meta[name="${e}"][content="${t}"]`))!==null}var FT,vh,tc,gh,de,MT,S,H=k(()=>{"use strict";N();hh();mh();N();FT={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:lh(),adId:ch(),pixelRatio:window.devicePixelRatio||1,platform:ri.isAndroid?"android":ri.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:ec()},schema:window.location.href,platform:ri.isAndroid?"android":ri.isiOS?"ios":"h5"},tc=(vh=globalThis.joliboxJSCore)==null?void 0:vh.env,de=Object.assign({},(gh=tc==null?void 0:tc())!=null?gh:FT);MT=()=>{var p,m,g,_,v,b,I,A,P,O,x;let{payloadJson:e,headerJson:t,signature:r}=de.schema.length?fh(de.schema):{},n=`${de.deviceInfo.did}-${new Date().getTime()}`,o=new URL(de.schema.length?de.schema:window.location.href).searchParams,a=(g=(m=(p=o.get("mpId"))!=null?p:o.get("appId"))!=null?m:o.get("gameId"))!=null?g:"",s=(b=(v=(_=de.clientSessionId)!=null?_:e==null?void 0:e.sessionId)!=null?v:o.get("sessionId"))!=null?b:n,l=!!((A=(I=e==null?void 0:e.testAdsMode)!=null?I:e==null?void 0:e.__testAdsMode)!=null?A:o.get("testAdsMode")==="true"),c=(x=(O=(P=e==null?void 0:e.joliboxEnv)!=null?P:e==null?void 0:e.__joliboxEnv)!=null?O:o.get("joliboxEnv"))!=null?x:"production",d=c==="staging",u=t==null?void 0:t.channel,f=e==null?void 0:e.__shouldInterupt;return{get startTime(){var C;return(C=performance.timeOrigin)!=null?C:performance.timing.navigationStart},get testMode(){return d},get testAdsMode(){return l},get joliboxEnv(){return c},get joliSource(){var C;return(C=o.get("joliSource"))!=null?C:null},get mpId(){var C;return(C=a!=null?a:e==null?void 0:e.id)!=null?C:""},get mpVersion(){var C;return(C=t==null?void 0:t.ver)!=null?C:ec()},get mpType(){var C,U;return(U=(C=t==null?void 0:t.__mpType)!=null?C:e==null?void 0:e.__mpType)!=null?U:"game"},get platform(){var C;return((C=de.platform)!=null?C:de.deviceInfo.platform).toLowerCase()},get deviceInfo(){return de.deviceInfo},get sdkInfo(){return de.sdkInfo},get hostInfo(){return de.hostInfo},get hostUserInfo(){return de.hostUserInfo},get sessionId(){var C,U;return(U=(C=de.clientSessionId)!=null?C:s)!=null?U:n},get channel(){return u},get webviewId(){var C;return(C=de.webviewId)!=null?C:-1},get shouldInterupt(){return f},get from(){return e==null?void 0:e.__from},get baseApiHost(){return Yl(d)},get adId(){var C;return(C=de.deviceInfo.adId)!=null?C:de.deviceInfo.did},get language(){return de.deviceInfo.lang},get sdkEnvironment(){return rc("dlightek","jolibox")?"dlightek":o.get("huaweiQuick")==="true"?"huaweiQuick":rc("gamedistribution","jolibox")?"gamedistribution":rc("funmax","jolibox")?"funmax":"jolibox"},get viewport(){var q,Re,Ne;let C=(q=de.deviceInfo.pixelRatio)!=null?q:1,U=(Re=de.deviceInfo.statusBarHeight)!=null?Re:e==null?void 0:e.__androidStatusBarHeight,We=(Ne=de.deviceInfo.navigationBarHeight)!=null?Ne:e==null?void 0:e.__androidNavigationBarHeight;return{statusBarHeight:U!==void 0?U/C:20,navigationBarHeight:We!==void 0?We/C:10}},get abTests(){var C,U;return(U=(C=de.abValues)==null?void 0:C.split(","))!=null?U:[]},onEnvConfigChanged:C=>{Xp(de,C,Zp)},encodeJoliSourceQuery:C=>{var U,We;return t&&r?ph(T(T({},e),C),(U=o.get("joliSource"))!=null?U:""):(We=o.get("joliSource"))!=null?We:""},setDoExitDirectly:()=>{f=!1}}},S=MT()});var nc,_h,UT,jT,yh,BT,bh=k(()=>{"use strict";N();mt();H();N();nc=!1,_h=(e,t)=>e==null?!1:t in e,UT=e=>_h(e,"kind"),jT=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},yh=(e,t={},r)=>{var o,a,s;let n={user_id:(a=(o=S.hostUserInfo)==null?void 0:o.uid)!=null?a:"",device_id:(s=S.deviceInfo.did)!=null?s:"",timestamp:Date.now(),tag:jT(e.name)},i=B(T({},n),{env:t.environment,isFromUser:r});r?Pr.emit("GLOBAL_USER_ERROR",e,i):Pr.emit("GLOBAL_ERROR",e,i)},BT=e=>_h(e,"kind")&&e.kind==="USER_ERROR";Xl.on("ERROR_REPORT",({error:e,options:t})=>{if(nc)return;nc=!0;let r=UT(e)&&e.raw?e.raw:e;try{let n=BT(e);yh(e,t,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new zl(`${i}, origin error: ${r.message}`);Pt.error(o),yh(new zl(o.message),{environment:t.environment},!1)}finally{nc=!1}})});var cr,ic,Qr=k(()=>{"use strict";mt();N();mt();cr=(e,t)=>{var r,n;return new ti((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},ic=e=>new eh(e)});var wh=k(()=>{"use strict";bh();Qr();N();_e();Pr.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})});Pr.on("GLOBAL_USER_ERROR",(e,t)=>{Pt.log("UserError",e,t)})});var oc=k(()=>{"use strict"});function Ih(e,t){let r=(n,i,o)=>{let c=i!=null?i:{},{eventType:a}=c,s=je(c,["eventType"]),l=B(T({tag:n,eventType:o!=null?o:a!=null?a:J.Other},t),{extra:T({},s)});n=="globalJsError"?ke(new oh(JSON.stringify(l))):e("systemLog",l,S.webviewId)};return r.debounce=Zn(r,500,{leading:!0}),r}function Sh(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=Zn(t,500,{leading:!0}),t}var Eh=k(()=>{"use strict";N();N();mt();H()});function xh(e,t){let r=Ih(e,t),n=Sh(r);return{track:r,trackPerformance:n}}var kh=k(()=>{"use strict";Eh()});var Ah=k(()=>{"use strict";H();N();N()});var Th=k(()=>{"use strict";kh();oc();Ah()});var Lo,Ch=k(()=>{"use strict";Lo=class{constructor(t,r){this.eventEmitter=t;this.lastReportTime=0;this.visible=!0;this.timer=this.createRAFTimer(t=>{this.reporter({event:"PLAY_GAME",params:{duration:t}}),this.tracker("PlayGame",{duration:t})});this.interval=r!=null?r:5*1e3,t.on("visible",n=>{this.visible=n})}start(t){this.reporter({event:"OPEN_GAME",params:{timestamp:Date.now(),duration:t!=null?t:0}}),this.tracker("OpenGame",{duration:t!=null?t:0}),this.timer.start()}close(t){this.reporter({event:"CLOSE_GAME",params:{timestamp:Date.now(),duration:t}}),this.tracker("CloseGame",{duration:t}),this.timer.stop()}createRAFTimer(t){let r=Date.now(),n,i,o=!1,a=0,s=()=>{if(!o)return;let p=Date.now(),m=p-r;m>=this.interval&&(this.visible&&(a+=Math.min(m,this.interval+1e3),t(a)),r=p),n=requestAnimationFrame(s)},l=()=>{d(),r=Date.now(),i=window.setInterval(()=>{if(!o)return;let p=Date.now();p-r>=this.interval&&(r=p)},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",p=>{o&&(console.log("visible",p),p?c():l())});let f=this.visible;return{start(){o||(o=!0,f?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:Cr(S.testMode),o=(c=r==null?void 0:r.type)!=null?c:"public",a=(d=r==null?void 0:r.defaultHeaders)!=null?d:{};return Ze("onRequestTaskStateChange",u=>{if(typeof u.requestTaskId!="string")return;let f=n.get(u.requestTaskId);if(f)if(u.state==="success"){let p=u,{requestTaskId:g,state:_}=p,v=je(p,["requestTaskId","state"]);u.statusCode===200?f.resolve(v):f.reject(v),n.delete(g)}else if(u.state==="fail"){let m=u,{requestTaskId:g,state:_}=m,v=je(m,["requestTaskId","state"]);f.reject(v),n.delete(g)}else Pt.warn("onRequestTaskStateChange unknown event",u)}),ne.on("onLoginComplete",({isLogin:u,token:f})=>{o!=="public"&&u&&f&&(a["X-JOLI-TOKEN"]=f)}),(p,...m)=>w(this,[p,...m],function*(u,f={}){let g=Date.now(),_=JT(u,B(T({},f),{baseUrl:i})),{method:v="GET",responseType:b="text",dataType:I="json",timeout:A,enableCache:P=!1,appendHostCookie:O=!0}=f,x=Object.assign({"content-type":"application/json"},a,f.header),C={url:_,method:v,header:x,enableCache:P,responseType:b,appendHostCookie:O};if(v=="POST"||v=="PUT"){let Ne=$T(f.data,x["content-type"]);C.data=Ne}A&&Object.assign(C,{timeout:A});let{data:{requestTaskId:U}}=j(e,C);if(typeof U!="string")throw cr({code:-1,msg:"requestTaskId is not a string"});let{resolve:We,reject:q,promise:Re}=new Ct;n.set(U,{resolve:We,reject:q});try{let Ne=yield Re,{data:Ar}=Ne;return I==="json"&&typeof Ar=="string"&&(Ar=HT(Ar)),{url:_,timeout:A,method:v,response:B(T({},Ne),{data:Ar})}}catch(Ne){let Ar=Ne;if(Tr(Ar)){let{errMsg:gl,prefetchDetail:a$,isPrefetch:s$,errNo:t1}=Ar;Xn(gl)&&ke(cr({code:-1,msg:gl},{errNo:t1,errMsg:gl}))}throw Ne}})}function HT(e){try{return JSON.parse(e.trim())}catch(t){return e}}function $T(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 JT,ac=k(()=>{"use strict";N();_e();mt();Qr();H();JT=(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 sc,Ph,te,vt=k(()=>{"use strict";ac();H();N();sc={};(Ph=S.hostUserInfo)!=null&&Ph.token&&(sc["x-joli-token"]=S.hostUserInfo.token);S.joliSource&&(sc["x-joli-source"]=S.joliSource);te=qo("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:Cr(S.testMode),defaultHeaders:sc})});var Fo,Oh=k(()=>{"use strict";H();Ch();N();vt();_e();Fo=class extends Lo{constructor(t,r,n){super(r,n),this.gameId=S.mpId,this.sessionId=S.sessionId,this.track=t,this.taskUrl=Cr(S.testMode)+"/api/base/app-event"}reporter(t){return w(this,null,function*(){let{event:r,params:n,extraParams:i}=t,o={eventType:r,gameInfo:T({gameId:this.gameId,sessionId:this.sessionId},n)};i&&Object.assign(o,i),yield S.platform==="android"?te("/api/base/app-event",{method:"POST",data:o}):ye("trackAppEventAsync",{url:this.taskUrl,body:JSON.stringify(o)})})}reportToNative(t){return w(this,null,function*(){let{event:r,params:n}=t;yield ye("userTrackAsync",{event:r,params:T({},n),gameId:this.gameId})})}tracker(t,r=null){this.track(t,r)}}});var qh={};yp(qh,{nativeTaskEmitter:()=>ni,taskTracker:()=>It,track:()=>M,trackPerformance:()=>Dh});var VT,Rh,Nh,M,Dh,Lh,ni,It,gt=k(()=>{"use strict";wh();N();oc();Th();H();Oh();_e();VT=(e,t,r)=>{var s,l,c,d,u,f;let n=t,i=Tr(n.extra)?n.extra:Xn(n.extra)?JSON.parse(n.extra):{},o=B(T({},i),{mp_id:(s=n.mp_id)!=null?s:"",mp_version:(l=n.mp_version)!=null?l:"",session_id:S.sessionId,user_id:(d=(c=S.hostUserInfo)==null?void 0:c.uid)!=null?d:""}),a=(u=n.eventType)!=null?u:J.Other;j("trackAsync",{event:(f=t.tag)!=null?f:e,data:o,webviewId:r,eventType:a})},{track:M,trackPerformance:Dh}=xh(VT,{type:Kl.AppSDK,platform:"native",jssdk_version:(Nh=(Rh=S.sdkInfo)==null?void 0:Rh.jssdkVersion)!=null?Nh:"1.0.0",mp_id:S.mpId,mp_version:S.mpVersion}),Lh=X();Lh.registerCommand("ReportSDK.traceSystemTimeline",({event:e,duration:t,extra:r})=>{Dh(e,t,r)});Lh.registerCommand("ReportSDK.traceSystem",({event:e,info:t})=>{M(e,t)});ni=new Ot,It=new Fo(M,ni)});function Fh(){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 IC=Object.create;var Do=Object.defineProperty,EC=Object.defineProperties,kC=Object.getOwnPropertyDescriptor,SC=Object.getOwnPropertyDescriptors,AC=Object.getOwnPropertyNames,No=Object.getOwnPropertySymbols,xC=Object.getPrototypeOf,Al=Object.prototype.hasOwnProperty,kf=Object.prototype.propertyIsEnumerable;var Ef=(e,t,r)=>t in e?Do(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T=(e,t)=>{for(var r in t||(t={}))Al.call(t,r)&&Ef(e,r,t[r]);if(No)for(var r of No(t))kf.call(t,r)&&Ef(e,r,t[r]);return e},F=(e,t)=>EC(e,SC(t));var je=(e,t)=>{var r={};for(var n in e)Al.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&No)for(var n of No(e))t.indexOf(n)<0&&kf.call(e,n)&&(r[n]=e[n]);return r};var A=(e,t)=>()=>(e&&(t=e(e=0)),t);var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Sf=(e,t)=>{for(var r in t)Do(e,r,{get:t[r],enumerable:!0})},CC=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of AC(t))!Al.call(e,i)&&i!==r&&Do(e,i,{get:()=>t[i],enumerable:!(n=kC(t,i))||n.enumerable});return e};var ie=(e,t,r)=>(r=e!=null?IC(xC(e)):{},CC(t||!e||!e.__esModule?Do(r,"default",{value:e,enumerable:!0}):r,e));var w=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});function DC(e){return!!(e!=null&&e.__nativeBuffers__)}function Nl(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!DC(e))return e;let t=e.__nativeBuffers__;if(delete e.__nativeBuffers__,t)for(let r=0;r<t.length;r++){let n=t[r];if(n){let i;n.value?i=n.value:n.base64&&(i=LC(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function qC(e={},t=!1){let r=e,n=[];for(let[i,o]of Object.entries(r))if(o!==void 0&&o instanceof ArrayBuffer&&o.byteLength!==void 0){let a=t?{value:o,key:i}:{base64:MC(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function JC(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Uf(e){return typeof e=="string"}function nn(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function xf(e){return typeof e=="number"&&!isNaN(e)}function BC(e){return typeof e=="undefined"}function HC(e){return BC(e)||e===null}function Ff(e){return typeof e=="function"}function VC(e){return nn(e)&&Ff(e.then)}function jf(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function ti(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function XC(e,t,r){let n=e;for(let i of t)if(n&&typeof n=="object")n=n[i];else return r;return n===void 0?r:n}function nT(){if(typeof window=="undefined")return{getItem:()=>null,setItem:()=>{},removeItem:()=>{},clear:()=>{},length:0,key:()=>null};try{if(window.__joliboxLocalStorage__)return window.__joliboxLocalStorage__;let e=Object.getOwnPropertyDescriptor(window,"localStorage");if(e&&e.get){let n=e.get.call(window);return window.__joliboxLocalStorage__=n,n}if(e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(window),"localStorage"),e&&e.get)return e.get.call(window);let t=Window.prototype,r=Object.getOwnPropertyDescriptor(t,"localStorage");if(r&&r.get){let n=r.get.call(window);return window.__joliboxLocalStorage__=n,n}return localStorage}catch(e){return console.warn("Failed to get original localStorage, fallback to default implementation",e),localStorage}}function lT(e){return new Promise(t=>Jf(e)(t))}function Jf(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function cT(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new ii(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function dT(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)pT(e[n],t[n])}function pT(e,t){if(Uf(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(Ff(t)){try{if(e instanceof t)return}catch(r){}if(!HC(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function Gl(e,t){if(Ll.config[e]){jo.warn(`[can i use] ${e} already registered`);return}Ll.config[e]=Wt({},t)}function Of(e,t){return`[${e}]:${t}`}function _T(e,t){Pf||(Tl=new Mo({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Ol=new Mo({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Pl=new Mo({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),t("onJoliboxEnterBackground",()=>{Tl.flush(),Ol.flush(),Pl.flush()}),Pf=!0);function r(i){var o,a;let{method:s,args:l,startTime:c,isForeground:d,errMsg:u=`${s}:fail no errMsg`,errNo:p=0,__timing:f={receiveJSInvoke:0,invokeCallback:0}}=i,{receiveJSInvoke:m,invokeCallback:g}=f,y=(a=(o=u.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";Tl.report({status:y,method:n(s,l),errNo:`${p}`,errMsg:u,isForeground:d,duration:Date.now()-c}),c&&m&&g&&(Ol.report({status:y,method:s,isForeground:d,duration:Number((m-c).toFixed(3))}),Pl.report({status:y,method:s,isForeground:d,duration:Number((Date.now()-g).toFixed(3))}))}function n(i,o){return(i==="callHostMethod"||i==="callHostMethodSync")&&o!=null&&o.method?`${i}-${o.method}`:i}return r}function ET(e,t){let r=0,n=!0,i=IT.resolveMap,o=_T(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,Rl.forEach(l=>Uo(this,[l],function*({method:c,args:d,resolve:u}){let p=yield s(c,d);u(p)})),Rl.length=0});let a=(l,c)=>{let d=i.get(Number(l));if(!d)return;let u=Nl(c);d(u),i.delete(Number(l))},s=(l,c)=>{var d,u;let p=Date.now(),f=`${n}`;r+=1;let m=new GC;if(i.set(r,m.resolve),!n&&mT.includes(l))return new Promise(x=>{Rl.push({method:l,args:c,resolve:x})});let g=RC(Wt({},{method:l,startTime:p,args:c,isForeground:f}),{invokeType:"js-bridge"}),y=!bT&&hT.includes(l),v=qC(c,y),b=y?v:JSON.stringify(v),k;if(l.endsWith("Sync")||vT.includes(l)?k=(d=e.call)==null?void 0:d.call(e,l,v,r):typeof b=="string"?k=e.invoke(l,b,r):k=(u=e.call)==null?void 0:u.call(e,l,b,r),k){try{typeof k=="string"&&(k=JSON.parse(k)),k=Nl(k)}catch(x){jo.error(x)}return i.delete(r),k.errorCode&&(k.errorCode=Of(l,k.errorCode)),o(Wt(Wt({},g),k)),k}return l.endsWith("Sync")&&i.delete(r),m.promise.then(x=>(x.errorCode&&(x.errorCode=Of(l,x.errorCode)),o(Wt(Wt({},g),x)),x))};return{invokeNative:s,applyNative:(l,c)=>{let d=s(l,c);return VC(d)?d.then(u=>Rf(l,u)):Rf(l,d)},invokeHandler:a}}function Rf(e,t){if(!nn(t)){jo.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=NC(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new KC(n,i,o,a);return s}function kT(e){if(globalThis[Lo])return globalThis[Lo];let t=new Ul,r=new Ul,n=new Mo({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[Lo]={onNative:t.on.bind(t),offNative:t.off.bind(t),subscribe:r.on.bind(r),unsubscribe:r.off.bind(r),subscribeHandler(i,o,a){let s=Nl(o),l;if(s.__extra){l=s.params;let{type:c,startTime:d}=s.__extra;n.report({type:c,event:i,duration:Date.now()-d})}else l=s;if(i===Bf){l.forEach(c=>{let[d,u]=c;try{r.emit(d.slice(ni.length),u,a)}catch(p){}});return}if(i.startsWith(ni)){r.emit(i.slice(ni.length),l,a);return}t.emit(i,l,a)}},globalThis[Lo]}function ST(e){let t=new Map,r=new Map,n,i;return{publish:(o,a,s,l)=>{if(l){let d=s!==void 0?s==="*"?"*":[s]:void 0;e.publish(`${ni}${o}`,a,d);return}n||(n=Promise.resolve().then(()=>{t.forEach((d,u)=>{try{let p=u!==void 0?u==="*"?"*":[u]:void 0;e.publish(Bf,d,p)}catch(p){}}),n=void 0,t.clear()}));let c=t.get(s);c||(c=[],t.set(s,c)),c.push([`${ni}${o}`,a])},emitNative:(o,a,s,l)=>{if(l){let d=s!==void 0?s==="*"?"*":[s]:void 0;e.publish(o,a,d),console.log("emitNative",o,a,d);return}i||(i=Promise.resolve().then(()=>{r.forEach((d,u)=>{try{let p=u!==void 0?u==="*"?"*":[u]:void 0;e.publish(gT,d,p)}catch(p){}}),i=void 0,r.clear()}));let c=r.get(s);c||(c=[],r.set(s,c)),c.push([o,a])}}}function AT(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=kT(e),{invokeNative:a,invokeHandler:s,applyNative:l}=ET(e,r),{publish:c,emitNative:d}=ST(e);return{invokeHandler:s,subscribeHandler:t,applyNative:l,invokeNative:a,onNative:r,offNative:n,emitNative:d,publish:c,subscribe:i,unsubscribe:o}}function Hf(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var TC,OC,PC,qo,Df,Lf,Af,Wt,RC,NC,Uo,LC,MC,Mf,UC,FC,qf,jC,GC,$C,WC,Fo,zC,KC,YC,xl,jo,Cf,QC,Dl,ZC,Ll,eT,tT,rT,rn,iT,Q4,Ml,se,oT,aT,ri,ii,Ul,Fl,sT,Cl,uT,X4,jl,Tf,Z4,Gf,fT,ni,hT,mT,vT,Bf,gT,yT,Mo,Pf,Tl,Ol,Pl,Rl,bT,Jl,wT,IT,Lo,Bl,vt,Vf,$f,xT,Wf,Nf,ye,j,et,e9,CT,zf,Hl,t9,r9,_e=A(()=>{"use strict";TC=Object.defineProperty,OC=Object.defineProperties,PC=Object.getOwnPropertyDescriptors,qo=Object.getOwnPropertySymbols,Df=Object.prototype.hasOwnProperty,Lf=Object.prototype.propertyIsEnumerable,Af=(e,t,r)=>t in e?TC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Wt=(e,t)=>{for(var r in t||(t={}))Df.call(t,r)&&Af(e,r,t[r]);if(qo)for(var r of qo(t))Lf.call(t,r)&&Af(e,r,t[r]);return e},RC=(e,t)=>OC(e,PC(t)),NC=(e,t)=>{var r={};for(var n in e)Df.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&qo)for(var n of qo(e))t.indexOf(n)<0&&Lf.call(e,n)&&(r[n]=e[n]);return r},Uo=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});LC=e=>{let t=atob(e),r=t.length,n=new Uint8Array(r);for(let i=0;i<r;i++)n[i]=t.charCodeAt(i);return n.buffer};MC=e=>{let t="",r=new Uint8Array(e),n=r.byteLength;for(let i=0;i<n;i++)t+=String.fromCharCode(r[i]);return btoa(t)};Mf=Object.defineProperty,UC=Object.getOwnPropertyDescriptor,FC=(e,t)=>{for(var r in t)Mf(e,r,{get:t[r],enumerable:!0})},qf=(e,t,r,n)=>{for(var i=n>1?void 0:n?UC(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(n?a(t,r,i):a(i))||i);return n&&i&&Mf(t,r,i),i},jC=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new t};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let r=new Event("abort");this.signal.dispatchEvent(r)};let t=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(t.prototype,"aborted",{get:function(){return this._aborted}}),t.prototype.addEventListener=function(r,n){this._eventListeners[r]||(this._eventListeners[r]=[]),this._eventListeners[r].push(n)},t.prototype.removeEventListener=function(r,n){if(!this._eventListeners[r])return;let i=this._eventListeners[r].indexOf(n);i!==-1&&this._eventListeners[r].splice(i,1)},t.prototype.dispatchEvent=function(r){if(this._eventListeners[r.type])for(let n of this._eventListeners[r.type])n.call(this,r)},window.AbortController=e,window.AbortSignal=t}GC=class{constructor(){this.state="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.state==="pending"&&(this.state="fulfilled",e(r))},this.reject=r=>{this.state==="pending"&&(this.state="rejected",t(r))}})}};$C=(e=>(e[e.DEVELOPER_FILE_NOT_FOUND=0]="DEVELOPER_FILE_NOT_FOUND",e[e.INTERNAL_IOS_CAN_NOT_FOUND_PKG=1]="INTERNAL_IOS_CAN_NOT_FOUND_PKG",e[e.USER_IOS_LOAD_TIMEOUT=2]="USER_IOS_LOAD_TIMEOUT",e[e.INTERNAL_IOS_PKG_LOAD_ERROR=3]="INTERNAL_IOS_PKG_LOAD_ERROR",e[e.INTERNAL_IOS_PKG_PARSE_FAIL=4]="INTERNAL_IOS_PKG_PARSE_FAIL",e[e.USER_IOS_GET_EMPTY_DATA=5]="USER_IOS_GET_EMPTY_DATA",e[e.USER_ANDROID_GET_PKG_FAIL=6]="USER_ANDROID_GET_PKG_FAIL",e[e.DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE=7]="DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE",e))($C||{}),WC=class extends Error{constructor(e){if(typeof e=="string"){super(e),this.priority="P1";return}super(e.message),this.priority="P1",this.stack=e.stack,this.raw=e}},Fo=class extends WC{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},zC=class extends Fo{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},KC=class extends Fo{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},YC=class extends Fo{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},xl=class extends Fo{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};jo={log:ti("log"),warn:ti("warn"),info:ti("info"),error:ti("error"),debug:ti("debug")};Object.assign(globalThis,{logger:jo});Cf=Symbol.for("Jolibox.canIUseMap"),QC={};globalThis[Cf]||(globalThis[Cf]=QC);Dl=Symbol.for("Jolibox.canIUseMap.native"),ZC={};globalThis[Dl]||(globalThis[Dl]=ZC);Ll={get config(){return globalThis[Dl]}},eT=(e=>(e[e.Other=0]="Other",e[e.Route=1]="Route",e[e.Click=2]="Click",e[e.View=3]="View",e[e.Expose=4]="Expose",e[e.Swipe=5]="Swipe",e[e.Input=6]="Input",e[e.Select=7]="Select",e[e.SwitchOn=8]="SwitchOn",e[e.SwitchOff=9]="SwitchOff",e[e.Submit=10]="Submit",e[e.Scroll=11]="Scroll",e[e.Hide=12]="Hide",e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(eT||{}),tT=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(tT||{}),rT=(e=>(e[e.App=0]="App",e[e.H5=1]="H5",e[e.Weapp=2]="Weapp",e[e.Alipay=3]="Alipay",e[e.Gcash=4]="Gcash",e[e.Dana=5]="Dana",e[e.Umma=6]="Umma",e[e.WebSDK=1e3]="WebSDK",e[e.AppSDK=1001]="AppSDK",e[e.Other=9999]="Other",e))(rT||{});nT();rn=typeof window=="undefined",iT=()=>!rn&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),Q4={isiOS:!rn&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),iosVersion:()=>{let e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3]||"0",10)]},isAndroid:!rn&&navigator.userAgent.includes("Android"),isMac:!rn&&navigator.userAgent.includes("Mac"),isFacebook:!rn&&navigator.userAgent.includes("FB_IAB"),isPC:!rn&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},Ml=class ql{constructor(t){this.element=t,this.next=ql.Undefined,this.prev=ql.Undefined}};Ml.Undefined=new Ml(void 0);se=Ml,oT=class{constructor(){this._first=se.Undefined,this._last=se.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===se.Undefined}clear(){let e=this._first;for(;e!==se.Undefined;){let t=e.next;e.prev=se.Undefined,e.next=se.Undefined,e=t}this._first=se.Undefined,this._last=se.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new se(e);if(this._first===se.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==se.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==se.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==se.Undefined&&e.next!==se.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===se.Undefined&&e.next===se.Undefined?(this._first=se.Undefined,this._last=se.Undefined):e.next===se.Undefined?(this._last=this._last.prev,this._last.next=se.Undefined):e.prev===se.Undefined&&(this._first=this._first.next,this._first.prev=se.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==se.Undefined;)yield e.element,e=e.next}},aT=0,ri=class{constructor(e){this.value=e,this.id=aT++}},ii=class{constructor(e){this.options=e,this._size=0}dispose(e){var t,r;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof ri&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(r=(t=this.options)==null?void 0:t.onDidRemoveLastListener)==null||r.call(t))}get event(){var e;return(e=this._event)!=null||(this._event=(t,r)=>{var n,i,o,a,s,l;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};r&&(t=t.bind(r));let c=new ri(t);return this._listeners?this._listeners instanceof ri?this._listeners=[this._listeners,c]:this._listeners.push(c):((i=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||i.call(n,this),this._listeners=c,(a=(o=this.options)==null?void 0:o.onDidFirstListener)==null||a.call(o,this)),(l=(s=this.options)==null?void 0:s.onDidAddListener)==null||l.call(s,this),this._size++,()=>{var d,u,p,f;if(!this._disposed){if(this._listeners instanceof ri)this._listeners.id===c.id&&(this._listeners=void 0,this._size=0,(u=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||u.call(d));else if(this._listeners){let m=this._listeners.indexOf(c);m>=0&&(this._listeners.splice(m,1),this._size--,this._size===0&&((f=(p=this.options)==null?void 0:p.onDidRemoveLastListener)==null||f.call(p)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof ri?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Ul=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t,r=!0){var n;let i=(n=this.listeners.get(e))!=null?n:new ii,o=l=>t(...l.args),a=i.event(o);this.listerHandlerMap.set(t,{handler:o,dispose:a}),this.listeners.set(e,i);let s=this.cachedEventQueue.get(e);if(s&&r)for(let l of s)t(...l.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,t){let r=this.listerHandlerMap.get(t);r&&(r.dispose(),this.listerHandlerMap.delete(t))}emit(e,...t){let r=this.listeners.get(e),n=this.cachedEventQueue.get(e);n||(n=new oT,this.cachedEventQueue.set(e,n)),n.push({args:t}),r&&r.fire({event:e,args:t})}once(e,t){let r=(...n)=>{t(...n),this.off(e,r)};this.on(e,r,!1)}},Fl={};FC(Fl,{None:()=>sT,filter:()=>cT,once:()=>Jf,toPromise:()=>lT});sT=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Cl=Symbol.for("Jolibox.hostEmitter"),uT=()=>{let e=new Ul;return globalThis[Cl]||(globalThis[Cl]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Cl]},X4=uT();jl=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new ii,this.onDidRegisterCommand=this._onDidRegisterCommand.event,console.log("[Jolibox SDK] command registry")}registerCommand(e){if(!e)throw new Error("invalid command");if(e.metadata&&Array.isArray(e.metadata.args)){let r=[];for(let i of e.metadata.args)r.push(i.constraint);let n=e.handler;e.handler=function(...i){return dT(i,r),n(...i)}}let{id:t}=e;this._commands.get(t)&&console.info(`[Jolibox SDK] duplicated command is registered ${t}`),this._commands.set(t,e),this._onDidRegisterCommand.fire(t)}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;for(let t of this._commands.keys()){let r=this.getCommand(t);r&&e.set(t,r)}return e}};jl=qf([jf],jl);Tf=class{constructor(){this._onWillExecuteCommand=new ii,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new ii,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new jl,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=JC(3e4)),this._starActivation}executeCommand(e,...t){return jC(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Fl.toPromise(Fl.filter(this.registry.onDidRegisterCommand,r=>r===e))])]),this._tryExecuteCommand(e,t))})}executeCommandThowErr(e,...t){if(!this.registry.getCommand(e))throw new Error(`command '${e}' not found`);let r=this.registry.getCommand(e);this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),n}_tryExecuteCommand(e,t){let r=this.registry.getCommand(e);if(!r)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}invokeFunction(e,...t){let r=!1;try{return e(...t)}finally{r=!0}}};Tf=qf([jf],Tf);Z4=Symbol.for("Jolibox.commands");Gl("requestPaymentSync",{version:1e6,properties:{paymentBody:{appStoreProductId:102e4}}});Gl("requestProductDetailsAsync",{version:102e4});Gl("loginSync",{version:1e6,properties:{skipLogin:102e4,triggerFrom:102e4}});Gf=(e,t)=>{function r(i){var o;let[a,...s]=i.split(":");if(!a)return!1;let l=Ll.config[a];if(!l)return!1;let c=(o=t==null?void 0:t())!=null?o:"";if(l.platforms&&!l.platforms.includes(c))return!1;let d=l.version;if(typeof d!="number")return!1;let u=e();return typeof u!="number"||u<d?!1:s.length===0?!0:n(l,s,u)||n(l.properties,s,u)}function n(i,o,a){if(!i)return!1;let s=XC(i,o);if(!s)return!1;if(nn(s)){let l=s.version;return xf(l)?typeof a=="number"&&a>=l:!0}return xf(s)?typeof a=="number"&&a>=s:s===!0}return{canIUseNative:r}};fT=()=>iT(),ni="custom_event_",hT=[],mT=[],vT=["env","createRequestTask","login"],Bf="__batch_event__",gT="__native_batch_event__",yT=e=>e==="pv"?e:"default",Mo=class{constructor(e){this.interval=30,this.lastReportTime=0,this.cache={};let{reporter:t,interval:r=30,eventName:n,tagNameOrder:i,metricName:o,type:a}=e;this.reporter=t,this.interval=r,this.eventName=n,this.tagNameOrder=i,this.metricName=o,this.type=yT(a)}report(e){this.type==="pv"?this.addPVPoint(e):this.addPoint(e),this.tryReport(!1)}flush(){this.tryReport(!0)}tryReport(e){if(Object.keys(this.cache).length){if(e){this.reporter(this.processPoints(this.cache)),this.clearPoints();return}this.lastReportTime=this.lastReportTime||Date.now(),Date.now()-this.lastReportTime>=this.interval*1e3&&(this.reporter(this.processPoints(this.cache)),this.clearPoints(),this.lastReportTime=Date.now())}}addPoint(e){let t=(r,n,i,o)=>{let a=n.shift();if(a){let s=o[a];r[s]||(r[s]={}),t(r[s],n,i,o)}else r[i]||(r[i]=[]),r[i].push(o[i])};t(this.cache,[...this.tagNameOrder],this.metricName,e)}addPVPoint(e){let t=(n,i,o,a)=>{let s=i.shift();if(!s&&nn(a))throw new xl(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let l=[];if(nn(a))l.push(...Object.keys(a));else if(Uf(a)){if(i.length>0)throw new xl(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);l.push(a)}else throw new xl(`expected metric value to be a string, but got a(n) ${typeof a}, ${JSON.stringify(r)}`);l.forEach(c=>{n[c]||(n[c]={});let d=nn(a)?a[c]:a;t(n[c],[...i],o,d)})}else n[o]?n[o]++:n[o]=1},r={point:e,metricName:this.metricName,tagNameOrder:this.tagNameOrder};t(this.cache,[...this.tagNameOrder],this.metricName,e)}processPoints(e){return{eventName:this.eventName,tagNameOrder:this.tagNameOrder,metricName:this.metricName,metricAggregateType:this.type==="pv"?"itoa":"arr",data:e}}clearPoints(){this.cache={}}},Pf=!1;Rl=[],bT=!1,Jl=Symbol.for("Jolibox.invokeResolverInstance"),wT=new Map;globalThis[Jl]||(globalThis[Jl]=wT);IT={get resolveMap(){return globalThis[Jl]}};Lo=Symbol.for("Jolibox.subscribeInstance");vt={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){vt.trigger=e},onDoExit(e){vt.exit=e},onDoBackPress(e){vt.backPress=e}},Vf=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new zC("native env failed"));else{let{data:r}=JSON.parse(t);return r!=null?r:void 0}};if(typeof window!="undefined"&&window.webkit){let e=window.webkit.messageHandlers,t=(i="")=>{vt.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>Uo(void 0,null,function*(){let o=yield vt.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});Bl={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=Hf(o,"joliboxJSCore");window.prompt("publish",JSON.stringify({event:i,paramsString:JSON.stringify(s),webviewIds:a}))},call(i,o,a){let s=window.prompt("invoke",JSON.stringify({event:i,paramsString:JSON.stringify(o),callbackId:a}));if(s)return JSON.parse(s)}};let n={onDocumentReady:t,env:Vf,doExit:r};globalThis.joliboxJSCore=Wt({},n)}if(typeof window!="undefined"&&window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(o="")=>{vt.trigger(),t.onDocumentReady(JSON.stringify({path:o}))},n=o=>Uo(void 0,null,function*(){let a=yield vt.exit();t.doExit(JSON.stringify({uuid:o,shouldInterrupt:a}))});Bl={onDocumentReady:r,invoke(o,a,s){t.invoke(JSON.stringify({event:o,paramsString:a,callbackId:s}))},doExit:n,publish(o,a,s){let l=Hf(a,"joliboxJSCore");t.publish(JSON.stringify({event:o,paramsString:JSON.stringify(l),webviewIds:s}))},call(o,a,s){let l=window.prompt("invoke",JSON.stringify({event:o,paramsString:JSON.stringify(a),callbackId:s}));if(l)return JSON.parse(l)},doBackPress(o){return Uo(this,null,function*(){let a=yield vt.backPress();t.doBackPress(JSON.stringify({uuid:o,shouldInterrupt:a}))})}};let i={onDocumentReady:r,env:Vf,doExit:n};globalThis.joliboxJSCore=Wt({},i)}$f=Bl;if(!$f&&fT())throw new YC("No joliboxJScore is found, native bridge not found.");xT=Wt({},$f),Wf=AT(xT),{invokeHandler:Nf}=Wf,{applyNative:ye,invokeNative:j,onNative:et,offNative:e9,subscribeHandler:CT,publish:zf,emitNative:Hl,subscribe:t9,unsubscribe:r9}=Wf;globalThis.joliboxJSBridge={callHandler:Nf,invokeHandler:Nf,subscribeHandler:CT}});function LT(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function eh(e){return new Promise(t=>setTimeout(t,e))}function ci(e){return typeof e=="string"}function Mr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function th(e){return typeof e=="object"&&Array.isArray(e)}function rh(e){return typeof e=="number"&&!isNaN(e)}function on(e){return e===!0||e===!1}function nh(e){return typeof e=="undefined"}function Xl(e){return nh(e)||e===null}function MT(e){return typeof e=="function"}function ih(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function oh(e,t,r){if(typeof r!="function")throw new Error("[Jolibox SDK]Customizer must be a function");function n(i,o){for(let a in o)if(Object.prototype.hasOwnProperty.call(o,a)){let s=i[a],l=o[a],c=r(s,l,a,i,o);c!==void 0?i[a]=c:Qf(l)&&Qf(s)?i[a]=n(RT({},s),l):Array.isArray(l)&&Array.isArray(s)?i[a]=[...s,...l]:i[a]=l}return i}return n(e,t)}function Qf(e){return e&&typeof e=="object"&&e.constructor===Object}function ah(e,t){if(Array.isArray(e))return e.concat(t)}function ui(e,t,r={}){let n=null,i,o,a,{leading:s=!1,trailing:l=!0}=r,c=()=>(a=e.apply(o,i),i=void 0,o=void 0,a),d=function(...u){i=u,o=this;let p=s&&!n;if(n&&clearTimeout(n),n=setTimeout(()=>{n=null,l&&!p&&c()},t),p)return c()};return d.cancel=()=>{n&&clearTimeout(n),n=null,i=o=void 0},d.flush=()=>{if(n)return clearTimeout(n),n=null,c()},d}function UT(e,t){return(...r)=>t(e,...r)}function Go(e){return t=>UT(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(i){e(new Pt(`${i}`))}})}function oi(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function fh(e,t,r){let n=0;if(e!==t){let i=e.split("."),o=t.split("."),a=Math.max(i.length,o.length);for(let s=0;s<a;s++){let l=parseInt(i[s],10)||0,c=parseInt(o[s],10)||0;if(l>c){n=1;break}else if(l<c){n=-1;break}}}if(!r)return n;switch(r){case">":return n>0;case"<":return n<0;case"=":return n===0;case">=":return n>=0;case"<=":return n<=0;default:return!1}}function ic(){if(typeof window=="undefined")return{getItem:()=>null,setItem:()=>{},removeItem:()=>{},clear:()=>{},length:0,key:()=>null};try{if(window.__joliboxLocalStorage__)return window.__joliboxLocalStorage__;let e=Object.getOwnPropertyDescriptor(window,"localStorage");if(e&&e.get){let n=e.get.call(window);return window.__joliboxLocalStorage__=n,n}if(e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(window),"localStorage"),e&&e.get)return e.get.call(window);let t=Window.prototype,r=Object.getOwnPropertyDescriptor(t,"localStorage");if(r&&r.get){let n=r.get.call(window);return window.__joliboxLocalStorage__=n,n}return localStorage}catch(e){return console.warn("Failed to get original localStorage, fallback to default implementation",e),localStorage}}function HT(e,t,r){let n=window.location.hostname,i=n.split("."),o=r?t:e;if(/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(n))return`${o}.jolibox.com`;if(i.length>=2){let a=i.slice(-2).join(".");if(a==="jolibox.com"||a==="pico-game.com"||a==="joyslite.com")return`${o}.${a}`}return`${o}.jolibox.com`}function oc(e){return HT("api","stg-api",e)}function qr(e){return`https://${oc(e)}`}function zT(e){return new Promise(t=>gh(e)(t))}function gh(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function KT(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new li(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function QT(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)XT(e[n],t[n])}function XT(e,t){if(ci(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(MT(t)){try{if(e instanceof t)return}catch(r){}if(!Xl(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function ZT(){return typeof globalThis!="undefined"?globalThis[yh]:void 0}function e1(e){typeof globalThis!="undefined"&&(globalThis[yh]=e)}function X(e=!1){let t=ZT();if(!e&&t)return t;let r=new Jo,n=new Yl,i={registerCommand(o,a,s){r.registerCommand({id:o,handler:a,metadata:s})},executeCommand(o,...a){return n.executeCommand(o,...a)},excuteCommandSync(o,...a){return n.executeCommandThowErr(o,...a)}};return e1(i),i}var Ql,TT,Kf,OT,PT,Yf,RT,NT,Zf,DT,Ot,qT,Zl,di,ec,sh,Pt,lh,ch,uh,dh,ph,pi,tc,Rt,$l,FT,rc,Xf,jT,G,nc,JT,an,ai,fi,GT,BT,hh,mh,vh,Wl,le,VT,$T,si,li,Nt,Kl,WT,Vl,YT,ne,Jo,Yl,yh,R=A(()=>{"use strict";Ql=Object.defineProperty,TT=Object.getOwnPropertyDescriptor,Kf=Object.getOwnPropertySymbols,OT=Object.prototype.hasOwnProperty,PT=Object.prototype.propertyIsEnumerable,Yf=(e,t,r)=>t in e?Ql(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,RT=(e,t)=>{for(var r in t||(t={}))OT.call(t,r)&&Yf(e,r,t[r]);if(Kf)for(var r of Kf(t))PT.call(t,r)&&Yf(e,r,t[r]);return e},NT=(e,t)=>{for(var r in t)Ql(e,r,{get:t[r],enumerable:!0})},Zf=(e,t,r,n)=>{for(var i=n>1?void 0:n?TT(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(n?a(t,r,i):a(i))||i);return n&&i&&Ql(t,r,i),i},DT=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new t};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let r=new Event("abort");this.signal.dispatchEvent(r)};let t=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(t.prototype,"aborted",{get:function(){return this._aborted}}),t.prototype.addEventListener=function(r,n){this._eventListeners[r]||(this._eventListeners[r]=[]),this._eventListeners[r].push(n)},t.prototype.removeEventListener=function(r,n){if(!this._eventListeners[r])return;let i=this._eventListeners[r].indexOf(n);i!==-1&&this._eventListeners[r].splice(i,1)},t.prototype.dispatchEvent=function(r){if(this._eventListeners[r.type])for(let n of this._eventListeners[r.type])n.call(this,r)},window.AbortController=e,window.AbortSignal=t}Ot=class{constructor(){this.state="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.state==="pending"&&(this.state="fulfilled",e(r))},this.reject=r=>{this.state==="pending"&&(this.state="rejected",t(r))}})}};qT=(e=>(e[e.DEVELOPER_FILE_NOT_FOUND=0]="DEVELOPER_FILE_NOT_FOUND",e[e.INTERNAL_IOS_CAN_NOT_FOUND_PKG=1]="INTERNAL_IOS_CAN_NOT_FOUND_PKG",e[e.USER_IOS_LOAD_TIMEOUT=2]="USER_IOS_LOAD_TIMEOUT",e[e.INTERNAL_IOS_PKG_LOAD_ERROR=3]="INTERNAL_IOS_PKG_LOAD_ERROR",e[e.INTERNAL_IOS_PKG_PARSE_FAIL=4]="INTERNAL_IOS_PKG_PARSE_FAIL",e[e.USER_IOS_GET_EMPTY_DATA=5]="USER_IOS_GET_EMPTY_DATA",e[e.USER_ANDROID_GET_PKG_FAIL=6]="USER_ANDROID_GET_PKG_FAIL",e[e.DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE=7]="DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE",e))(qT||{}),Zl=class extends Error{constructor(e){if(typeof e=="string"){super(e),this.priority="P1";return}super(e.message),this.priority="P1",this.stack=e.stack,this.raw=e}},di=class extends Zl{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},ec=class extends Zl{constructor(){super(...arguments),this.kind="USER_ERROR"}},sh=class extends ec{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},Pt=class extends ec{constructor(e,t,r){super(e),this.message=e,this.errNo=t,this.name="USER_CUSTOM_ERROR",this.errMsg=e,r&&(this.extra=Object.assign({},this.extra,r))}},lh=class extends ec{constructor(e,t,r){super(e),this.message=e,this.errNo=t,this.name="USER_PAYMENT_ERROR",this.errMsg=e,r&&(this.extra=Object.assign({},this.extra,r))}},ch=class extends di{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},uh=class extends di{constructor(e,t,r){super(e),this.message=e,this.errNo=t,this.name="INTERNAL_PAYMENT_ERROR",this.priority="P0",this.errMsg=e,r&&(this.extra=Object.assign({},this.extra,r))}},dh=class extends di{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_METHOD_ERROR"}},ph=class extends di{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},pi=class extends Zl{constructor(e,t,r,n,i){super(e),this.message=e,this.code=t,this.kind="API_ERROR",this.name="API_ERROR",r&&(this.errorType=r),n!==void 0&&(this.stack=n),i&&(this.priority=i)}toJSON(){return{message:this.message,stack:this.stack,name:this.name,code:this.code,errorType:this.errorType}}},tc=class extends di{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};Rt={log:oi("log"),warn:oi("warn"),info:oi("info"),error:oi("error"),debug:oi("debug")};Object.assign(globalThis,{logger:Rt});$l=Symbol.for("Jolibox.canIUseMap"),FT={};globalThis[$l]||(globalThis[$l]=FT);rc={get config(){return globalThis[$l]}},Xf=Symbol.for("Jolibox.canIUseMap.native"),jT={};globalThis[Xf]||(globalThis[Xf]=jT);G=(e=>(e[e.Other=0]="Other",e[e.Route=1]="Route",e[e.Click=2]="Click",e[e.View=3]="View",e[e.Expose=4]="Expose",e[e.Swipe=5]="Swipe",e[e.Input=6]="Input",e[e.Select=7]="Select",e[e.SwitchOn=8]="SwitchOn",e[e.SwitchOff=9]="SwitchOff",e[e.Submit=10]="Submit",e[e.Scroll=11]="Scroll",e[e.Hide=12]="Hide",e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(G||{}),nc=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(nc||{}),JT=(e=>(e[e.App=0]="App",e[e.H5=1]="H5",e[e.Weapp=2]="Weapp",e[e.Alipay=3]="Alipay",e[e.Gcash=4]="Gcash",e[e.Dana=5]="Dana",e[e.Umma=6]="Umma",e[e.WebSDK=1e3]="WebSDK",e[e.AppSDK=1001]="AppSDK",e[e.Other=9999]="Other",e))(JT||{}),an=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});ic();ai=typeof window=="undefined",fi={isiOS:!ai&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),iosVersion:()=>{let e=navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/);return[parseInt(e[1],10),parseInt(e[2],10),parseInt(e[3]||"0",10)]},isAndroid:!ai&&navigator.userAgent.includes("Android"),isMac:!ai&&navigator.userAgent.includes("Mac"),isFacebook:!ai&&navigator.userAgent.includes("FB_IAB"),isPC:!ai&&!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},GT="device_id",BT="advertising_id",hh=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,an()),window.__joliboxLocalStorage__.getItem(e)),mh=()=>new URLSearchParams(window.location.search).get("deviceId")||hh(GT),vh=()=>new URLSearchParams(window.location.search).get("advertisingId")||hh(BT);Wl=class zl{constructor(t){this.element=t,this.next=zl.Undefined,this.prev=zl.Undefined}};Wl.Undefined=new Wl(void 0);le=Wl,VT=class{constructor(){this._first=le.Undefined,this._last=le.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===le.Undefined}clear(){let e=this._first;for(;e!==le.Undefined;){let t=e.next;e.prev=le.Undefined,e.next=le.Undefined,e=t}this._first=le.Undefined,this._last=le.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new le(e);if(this._first===le.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==le.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==le.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==le.Undefined&&e.next!==le.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===le.Undefined&&e.next===le.Undefined?(this._first=le.Undefined,this._last=le.Undefined):e.next===le.Undefined?(this._last=this._last.prev,this._last.next=le.Undefined):e.prev===le.Undefined&&(this._first=this._first.next,this._first.prev=le.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==le.Undefined;)yield e.element,e=e.next}},$T=0,si=class{constructor(e){this.value=e,this.id=$T++}},li=class{constructor(e){this.options=e,this._size=0}dispose(e){var t,r;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof si&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(r=(t=this.options)==null?void 0:t.onDidRemoveLastListener)==null||r.call(t))}get event(){var e;return(e=this._event)!=null||(this._event=(t,r)=>{var n,i,o,a,s,l;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};r&&(t=t.bind(r));let c=new si(t);return this._listeners?this._listeners instanceof si?this._listeners=[this._listeners,c]:this._listeners.push(c):((i=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||i.call(n,this),this._listeners=c,(a=(o=this.options)==null?void 0:o.onDidFirstListener)==null||a.call(o,this)),(l=(s=this.options)==null?void 0:s.onDidAddListener)==null||l.call(s,this),this._size++,()=>{var d,u,p,f;if(!this._disposed){if(this._listeners instanceof si)this._listeners.id===c.id&&(this._listeners=void 0,this._size=0,(u=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||u.call(d));else if(this._listeners){let m=this._listeners.indexOf(c);m>=0&&(this._listeners.splice(m,1),this._size--,this._size===0&&((f=(p=this.options)==null?void 0:p.onDidRemoveLastListener)==null||f.call(p)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof si?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Nt=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t,r=!0){var n;let i=(n=this.listeners.get(e))!=null?n:new li,o=l=>t(...l.args),a=i.event(o);this.listerHandlerMap.set(t,{handler:o,dispose:a}),this.listeners.set(e,i);let s=this.cachedEventQueue.get(e);if(s&&r)for(let l of s)t(...l.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,t){let r=this.listerHandlerMap.get(t);r&&(r.dispose(),this.listerHandlerMap.delete(t))}emit(e,...t){let r=this.listeners.get(e),n=this.cachedEventQueue.get(e);n||(n=new VT,this.cachedEventQueue.set(e,n)),n.push({args:t}),r&&r.fire({event:e,args:t})}once(e,t){let r=(...n)=>{t(...n),this.off(e,r)};this.on(e,r,!1)}},Kl={};NT(Kl,{None:()=>WT,filter:()=>KT,once:()=>gh,toPromise:()=>zT});WT=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Vl=Symbol.for("Jolibox.hostEmitter"),YT=()=>{let e=new Nt;return globalThis[Vl]||(globalThis[Vl]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Vl]},ne=YT();Jo=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new li,this.onDidRegisterCommand=this._onDidRegisterCommand.event,console.log("[Jolibox SDK] command registry")}registerCommand(e){if(!e)throw new Error("invalid command");if(e.metadata&&Array.isArray(e.metadata.args)){let r=[];for(let i of e.metadata.args)r.push(i.constraint);let n=e.handler;e.handler=function(...i){return QT(i,r),n(...i)}}let{id:t}=e;this._commands.get(t)&&console.info(`[Jolibox SDK] duplicated command is registered ${t}`),this._commands.set(t,e),this._onDidRegisterCommand.fire(t)}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;for(let t of this._commands.keys()){let r=this.getCommand(t);r&&e.set(t,r)}return e}};Jo=Zf([ih],Jo);Yl=class{constructor(){this._onWillExecuteCommand=new li,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new li,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Jo,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=LT(3e4)),this._starActivation}executeCommand(e,...t){return DT(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Kl.toPromise(Kl.filter(this.registry.onDidRegisterCommand,r=>r===e))])]),this._tryExecuteCommand(e,t))})}executeCommandThowErr(e,...t){if(!this.registry.getCommand(e))throw new Error(`command '${e}' not found`);let r=this.registry.getCommand(e);this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),n}_tryExecuteCommand(e,t){let r=this.registry.getCommand(e);if(!r)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}invokeFunction(e,...t){let r=!1;try{return e(...t)}finally{r=!0}}};Yl=Zf([ih],Yl);yh=Symbol.for("Jolibox.commands")});function xe(e,t={}){ac.emit("ERROR_REPORT",{error:e,options:t})}var ac,Ur,gt=A(()=>{"use strict";R();R();ac=new Nt,Ur=new Nt;xe.debounce=ui(xe,50,{leading:!0})});var sc,t1,_h,bh,wh=A(()=>{"use strict";R();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{}}},t1=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},_h=e=>{var t;try{let i=(t=new URL(e).searchParams.get("joliSource"))==null?void 0:t.split(".");if(i!=null&&i.length){let[o,a,s]=i;return{headerJson:sc(o),payloadJson:sc(a),signature:sc(s)}}else throw"joli_source is missing"}catch(r){return xe(new ch(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},bh=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],i=t1(e),o=r[2];return`${n}.${i}.${o}`}return t}});var r1,lc,Ih=A(()=>{"use strict";R();r1="1.2.0-beta.9",lc=()=>r1});function uc(e,t){return(document==null?void 0:document.head.querySelector(`meta[name="${e}"][content="${t}"]`))!==null}var n1,Eh,cc,kh,de,i1,E,B=A(()=>{"use strict";R();wh();Ih();R();n1={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:mh(),adId:vh(),pixelRatio:window.devicePixelRatio||1,platform:fi.isAndroid?"android":fi.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:lc()},schema:window.location.href,platform:fi.isAndroid?"android":fi.isiOS?"ios":"h5"},cc=(Eh=globalThis.joliboxJSCore)==null?void 0:Eh.env,de=Object.assign({},(kh=cc==null?void 0:cc())!=null?kh:n1);i1=()=>{var f,m,g,y,v,b,k,x,P,C,S;let{payloadJson:e,headerJson:t,signature:r}=de.schema.length?_h(de.schema):{},n=`${de.deviceInfo.did}-${new Date().getTime()}`,o=new URL(de.schema.length?de.schema:window.location.href).searchParams,a=(g=(m=(f=o.get("mpId"))!=null?f:o.get("appId"))!=null?m:o.get("gameId"))!=null?g:"",s=(b=(v=(y=de.clientSessionId)!=null?y:e==null?void 0:e.sessionId)!=null?v:o.get("sessionId"))!=null?b:n,l=!!((x=(k=e==null?void 0:e.testAdsMode)!=null?k:e==null?void 0:e.__testAdsMode)!=null?x:o.get("testAdsMode")==="true"),c=(S=(C=(P=e==null?void 0:e.joliboxEnv)!=null?P:e==null?void 0:e.__joliboxEnv)!=null?C:o.get("joliboxEnv"))!=null?S:"production",d=c==="staging",u=t==null?void 0:t.channel,p=e==null?void 0:e.__shouldInterupt;return{get startTime(){var O;return(O=performance.timeOrigin)!=null?O:performance.timing.navigationStart},get testMode(){return d},get testAdsMode(){return l},get joliboxEnv(){return c},get joliSource(){var O;return(O=o.get("joliSource"))!=null?O:null},get mpId(){var O;return(O=a!=null?a:e==null?void 0:e.id)!=null?O:""},get mpVersion(){var O;return(O=t==null?void 0:t.ver)!=null?O:lc()},get mpType(){var O,J;return(J=(O=t==null?void 0:t.__mpType)!=null?O:e==null?void 0:e.__mpType)!=null?J:"game"},get platform(){var O;return((O=de.platform)!=null?O:de.deviceInfo.platform).toLowerCase()},get deviceInfo(){return de.deviceInfo},get sdkInfo(){return de.sdkInfo},get hostInfo(){return de.hostInfo},get hostUserInfo(){return de.hostUserInfo},get sessionId(){var O,J;return(J=(O=de.clientSessionId)!=null?O:s)!=null?J:n},get channel(){return u},get webviewId(){var O;return(O=de.webviewId)!=null?O:-1},get shouldInterupt(){return p},get from(){return e==null?void 0:e.__from},get baseApiHost(){return oc(d)},get adId(){var O;return(O=de.deviceInfo.adId)!=null?O:de.deviceInfo.did},get language(){return de.deviceInfo.lang},get sdkEnvironment(){return uc("dlightek","jolibox")?"dlightek":o.get("huaweiQuick")==="true"?"huaweiQuick":uc("gamedistribution","jolibox")?"gamedistribution":uc("funmax","jolibox")?"funmax":"jolibox"},get viewport(){var M,Re,Ne;let O=(M=de.deviceInfo.pixelRatio)!=null?M:1,J=(Re=de.deviceInfo.statusBarHeight)!=null?Re:e==null?void 0:e.__androidStatusBarHeight,Ke=(Ne=de.deviceInfo.navigationBarHeight)!=null?Ne:e==null?void 0:e.__androidNavigationBarHeight;return{statusBarHeight:J!==void 0?J/O:20,navigationBarHeight:Ke!==void 0?Ke/O:10}},get abTests(){var O,J;return(J=(O=de.abValues)==null?void 0:O.split(","))!=null?J:[]},onEnvConfigChanged:O=>{oh(de,O,ah)},encodeJoliSourceQuery:O=>{var J,Ke;return t&&r?bh(T(T({},e),O),(J=o.get("joliSource"))!=null?J:""):(Ke=o.get("joliSource"))!=null?Ke:""},setDoExitDirectly:()=>{p=!1}}},E=i1()});var dc,Ah,o1,a1,Sh,s1,xh=A(()=>{"use strict";R();gt();B();R();dc=!1,Ah=(e,t)=>e==null?!1:t in e,o1=e=>Ah(e,"kind"),a1=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},Sh=(e,t={},r)=>{var o,a,s;let n={user_id:(a=(o=E.hostUserInfo)==null?void 0:o.uid)!=null?a:"",device_id:(s=E.deviceInfo.did)!=null?s:"",timestamp:Date.now(),tag:a1(e.name)},i=F(T({},n),{env:t.environment,isFromUser:r});r?Ur.emit("GLOBAL_USER_ERROR",e,i):Ur.emit("GLOBAL_ERROR",e,i)},s1=e=>Ah(e,"kind")&&e.kind==="USER_ERROR";ac.on("ERROR_REPORT",({error:e,options:t})=>{if(dc)return;dc=!0;let r=o1(e)&&e.raw?e.raw:e;try{let n=s1(e);Sh(e,t,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new tc(`${i}, origin error: ${r.message}`);Rt.error(o),Sh(new tc(o.message),{environment:t.environment},!1)}finally{dc=!1}})});var hr,pc,sn=A(()=>{"use strict";gt();R();gt();hr=(e,t)=>{var r,n;return new pi((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},pc=e=>new sh(e)});var Ch=A(()=>{"use strict";xh();sn();R();_e();Ur.on("GLOBAL_ERROR",(e,t)=>{var n;let r={message:e.message,stack:(n=e.stack)!=null?n:"",errorType:e.name,source:0};j("trackAsync",{event:"reportJsError",data:r})});Ur.on("GLOBAL_USER_ERROR",(e,t)=>{Rt.log("UserError",e,t)})});var fc=A(()=>{"use strict"});function Th(e,t){let r=(n,i,o)=>{let c=i!=null?i:{},{eventType:a}=c,s=je(c,["eventType"]),l=F(T({tag:n,eventType:o!=null?o:a!=null?a:G.Other},t),{extra:T({},s)});n=="globalJsError"?xe(new ph(JSON.stringify(l))):e("systemLog",l,E.webviewId)};return r.debounce=ui(r,500,{leading:!0}),r}function Oh(e){let t=(r,n,i)=>{var s;let o=(s=i&&JSON.stringify(i))!=null?s:0,a={speed_value_type:r,total_duration:n};o&&Object.assign(a,{extra:o}),e("joliboxSpeedAnalysis",a)};return t.debounce=ui(t,500,{leading:!0}),t}var Ph=A(()=>{"use strict";R();R();gt();B()});function Rh(e,t){let r=Th(e,t),n=Oh(r);return{track:r,trackPerformance:n}}var Nh=A(()=>{"use strict";Ph()});var Dh=A(()=>{"use strict";B();R();R()});var Lh=A(()=>{"use strict";Nh();fc();Dh()});var Bo,Mh=A(()=>{"use strict";Bo=class{constructor(t,r){this.eventEmitter=t;this.lastReportTime=0;this.visible=!0;this.timer=this.createRAFTimer(t=>{this.reporter({event:"PLAY_GAME",params:{duration:t}}),this.tracker("PlayGame",{duration:t})});this.interval=r!=null?r:5*1e3,t.on("visible",n=>{this.visible=n})}start(t){this.reporter({event:"OPEN_GAME",params:{timestamp:Date.now(),duration:t!=null?t:0}}),this.tracker("OpenGame",{duration:t!=null?t:0}),this.timer.start()}close(t){this.reporter({event:"CLOSE_GAME",params:{timestamp:Date.now(),duration:t}}),this.tracker("CloseGame",{duration:t}),this.timer.stop()}createRAFTimer(t){let r=Date.now(),n,i,o=!1,a=0,s=()=>{if(!o)return;let f=Date.now(),m=f-r;m>=this.interval&&(this.visible&&(a+=Math.min(m,this.interval+1e3),t(a)),r=f),n=requestAnimationFrame(s)},l=()=>{d(),r=Date.now(),i=window.setInterval(()=>{if(!o)return;let f=Date.now();f-r>=this.interval&&(r=f)},this.interval)},c=()=>{u(),r=Date.now(),n=requestAnimationFrame(s)},d=()=>{n&&(cancelAnimationFrame(n),n=0)},u=()=>{i&&(clearInterval(i),i=0)};this.eventEmitter.on("visible",f=>{o&&(console.log("visible",f),f?c():l())});let p=this.visible;return{start(){o||(o=!0,p?c():l())},stop(){o=!1,d(),u()}}}}});function Ho(e,t,r){var l,c,d;let n=new Map,i=(l=r==null?void 0:r.baseUrl)!=null?l:qr(E.testMode),o=(c=r==null?void 0:r.type)!=null?c:"public",a=(d=r==null?void 0:r.defaultHeaders)!=null?d:{};return et("onRequestTaskStateChange",u=>{if(typeof u.requestTaskId!="string")return;let p=n.get(u.requestTaskId);if(p)if(u.state==="success"){let f=u,{requestTaskId:g,state:y}=f,v=je(f,["requestTaskId","state"]);u.statusCode===200?p.resolve(v):p.reject(v),n.delete(g)}else if(u.state==="fail"){let m=u,{requestTaskId:g,state:y}=m,v=je(m,["requestTaskId","state"]);p.reject(v),n.delete(g)}else Rt.warn("onRequestTaskStateChange unknown event",u)}),ne.on("onLoginComplete",({isLogin:u,token:p})=>{o!=="public"&&u&&p&&(a["X-JOLI-TOKEN"]=p)}),(f,...m)=>w(this,[f,...m],function*(u,p={}){let g=Date.now(),y=l1(u,F(T({},p),{baseUrl:i})),{method:v="GET",responseType:b="text",dataType:k="json",timeout:x,enableCache:P=!1,appendHostCookie:C=!0}=p,S=Object.assign({"content-type":"application/json"},a,p.header),O={url:y,method:v,header:S,enableCache:P,responseType:b,appendHostCookie:C};if(v=="POST"||v=="PUT"){let Ne=u1(p.data,S["content-type"]);O.data=Ne}x&&Object.assign(O,{timeout:x});let{data:{requestTaskId:J}}=j(e,O);if(typeof J!="string")throw hr({code:-1,msg:"requestTaskId is not a string"});let{resolve:Ke,reject:M,promise:Re}=new Ot;n.set(J,{resolve:Ke,reject:M});try{let Ne=yield Re,{data:Lr}=Ne;return k==="json"&&typeof Lr=="string"&&(Lr=c1(Lr)),{url:y,timeout:x,method:v,response:F(T({},Ne),{data:Lr})}}catch(Ne){let Lr=Ne;if(Mr(Lr)){let{errMsg:Sl,prefetchDetail:z4,isPrefetch:K4,errNo:wC}=Lr;ci(Sl)&&xe(hr({code:-1,msg:Sl},{errNo:wC,errMsg:Sl}))}throw Ne}})}function c1(e){try{return JSON.parse(e.trim())}catch(t){return e}}function u1(e,t="application/json"){let r=t.toLowerCase();return e===void 0?"":typeof e=="string"||e instanceof ArrayBuffer?e:r.includes("application/x-www-form-urlencoded")||r.includes("application/json")||typeof e=="object"?JSON.stringify(e):String(e)}var l1,hc=A(()=>{"use strict";R();_e();gt();sn();B();l1=(e,t)=>{if(/^https?:\/\//.test(e))return e;let r=t==null?void 0:t.query,i=new URLSearchParams(r).toString();return t!=null&&t.baseUrl?`${t.baseUrl}${e}${i?`?${i}`:""}`:`${e}${i?`?${i}`:""}`}});var mc,qh,te,yt=A(()=>{"use strict";hc();B();R();mc={};(qh=E.hostUserInfo)!=null&&qh.token&&(mc["x-joli-token"]=E.hostUserInfo.token);E.joliSource&&(mc["x-joli-source"]=E.joliSource);te=Ho("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:qr(E.testMode),defaultHeaders:mc})});var Vo,Uh=A(()=>{"use strict";B();Mh();R();yt();_e();Vo=class extends Bo{constructor(t,r,n){super(r,n),this.gameId=E.mpId,this.sessionId=E.sessionId,this.track=t,this.taskUrl=qr(E.testMode)+"/api/base/app-event"}reporter(t){return w(this,null,function*(){let{event:r,params:n,extraParams:i}=t,o={eventType:r,gameInfo:T({gameId:this.gameId,sessionId:this.sessionId},n)};i&&Object.assign(o,i),yield E.platform==="android"?te("/api/base/app-event",{method:"POST",data:o}):ye("trackAppEventAsync",{url:this.taskUrl,body:JSON.stringify(o)})})}reportToNative(t){return w(this,null,function*(){let{event:r,params:n}=t;yield ye("userTrackAsync",{event:r,params:T({},n),gameId:this.gameId})})}tracker(t,r=null){this.track(t,r)}}});var Bh={};Sf(Bh,{nativeTaskEmitter:()=>hi,taskTracker:()=>It,track:()=>U,trackPerformance:()=>Jh});var d1,Fh,jh,U,Jh,Gh,hi,It,tt=A(()=>{"use strict";Ch();R();fc();Lh();B();Uh();_e();d1=(e,t,r)=>{var s,l,c,d,u,p;let n=t,i=Mr(n.extra)?n.extra:ci(n.extra)?JSON.parse(n.extra):{},o=F(T({},i),{mp_id:(s=n.mp_id)!=null?s:"",mp_version:(l=n.mp_version)!=null?l:"",session_id:E.sessionId,user_id:(d=(c=E.hostUserInfo)==null?void 0:c.uid)!=null?d:""}),a=(u=n.eventType)!=null?u:G.Other;j("trackAsync",{event:(p=t.tag)!=null?p:e,data:o,webviewId:r,eventType:a})},{track:U,trackPerformance:Jh}=Rh(d1,{type:nc.AppSDK,platform:"native",jssdk_version:(jh=(Fh=E.sdkInfo)==null?void 0:Fh.jssdkVersion)!=null?jh:"1.0.0",mp_id:E.mpId,mp_version:E.mpVersion}),Gh=X();Gh.registerCommand("ReportSDK.traceSystemTimeline",({event:e,duration:t,extra:r})=>{Jh(e,t,r)});Gh.registerCommand("ReportSDK.traceSystem",({event:e,info:t})=>{U(e,t)});hi=new Nt,It=new Vo(U,hi)});function Hh(){let e=null,t=null,r=window.fetch,n=()=>{t=document.createElement("meta"),t.setAttribute("name","viewport"),t.setAttribute("content","viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"),t.setAttribute("data-jolibox-sdk","viewport-meta"),e=document.createElement("style"),e.setAttribute("data-jolibox-sdk","default-styles");let s=`
|
|
2
2
|
html[data-jolibox-root] {
|
|
3
3
|
height: 100%;
|
|
4
4
|
margin: 0;
|
|
@@ -16,14 +16,14 @@ var r1=Object.create;var xo=Object.defineProperty,n1=Object.defineProperties,i1=
|
|
|
16
16
|
min-height: 100dvh;
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
|
-
`;e.textContent=s;let l=document.head||document.getElementsByTagName("head")[0];l.insertBefore(t,l.firstChild),l.insertBefore(e,l.firstChild),document.documentElement.setAttribute("data-jolibox-root","")},i=()=>{let{statusBarHeight:s,navigationBarHeight:l}=S.viewport;document.documentElement.style.setProperty("--status-bar-height",`${s}px`),document.documentElement.style.setProperty("--navigation-bar-height",`${l}px`)},o=()=>{function s(c){return w(this,null,function*(){let d=c instanceof URL?c.href:c,u=new Promise((f,p)=>{let m=new XMLHttpRequest;m.open("GET",d),m.responseType="arraybuffer",m.addEventListener("load",()=>f(m.response)),m.addEventListener("error",p),m.send()});try{let f=yield u;return new Response(f,{headers:new Headers([["Content-Type","application/wasm"]])}).clone()}catch(f){throw console.error("Failed to load wasm:",f),f}})}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 Mh=k(()=>{"use strict";H()});var Uh=k(()=>{"use strict"});var jh=k(()=>{"use strict";N();Ql()});var Bh=k(()=>{"use strict";H()});var Mo,lc=k(()=>{"use strict";Uh();jh();H();Bh();N();Mo=new Ot});function Vt(e,t){for(var r in t)e[r]=t[r];return e}function hc(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Be(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?Jo.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 jo(e,a,n,i,null)}function jo(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&&R.vnode!=null&&R.vnode(o),o}function De(e){return e.children}function lt(e,t){this.props=e,this.context=t}function Yr(e,t){if(t==null)return e.__?Yr(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"?Yr(e):null}function Yh(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 Yh(e)}}function dc(e){(!e.__d&&(e.__d=!0)&&Or.push(e)&&!Bo.__r++||Jh!==R.debounceRendering)&&((Jh=R.debounceRendering)||Gh)(Bo)}function Bo(){for(var e,t,r,n,i,o,a,s=1;Or.length;)Or.length>s&&Or.sort(zh),e=Or.shift(),s=Or.length,e.__d&&(r=void 0,i=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=Vt({},n)).__v=n.__v+1,R.vnode&&R.vnode(r),mc(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?Yr(n):i,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,em(o,r,a),r.__e!=i&&Yh(r)));Bo.__r=0}function Xh(e,t,r,n,i,o,a,s,l,c,d){var u,f,p,m,g,_,v=n&&n.__k||Qh,b=t.length;for(l=zT(r,t,v,l,b),u=0;u<b;u++)(p=r.__k[u])!=null&&(f=p.__i===-1?ii:v[p.__i]||ii,p.__i=u,_=mc(e,p,f,i,o,a,s,l,c,d),m=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&vc(f.ref,null,p),d.push(p.ref,p.__c||m,p)),g==null&&m!=null&&(g=m),4&p.__u||f.__k===p.__k?l=Zh(p,l,e):typeof p.type=="function"&&_!==void 0?l=_:m&&(l=m.nextSibling),p.__u&=-7);return r.__e=g,l}function zT(e,t,r,n,i){var o,a,s,l,c,d=r.length,u=d,f=0;for(e.__k=new Array(i),o=0;o<i;o++)(a=t[o])!=null&&typeof a!="boolean"&&typeof a!="function"?(l=o+f,(a=e.__k[o]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?jo(null,a,null,null,null):oi(a)?jo(De,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?jo(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=WT(a,r,l,u))!==-1&&(u--,(s=r[c])&&(s.__u|=2)),s==null||s.__v===null?(c==-1&&(i>d?f--:i<d&&f++),typeof a.type!="function"&&(a.__u|=4)):c!=l&&(c==l-1?f--:c==l+1?f++:(c>l?f--:f++,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=Yr(s)),rm(s,s));return n}function Zh(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=Zh(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=Yr(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function ai(e,t){return t=t||[],e==null||typeof e=="boolean"||(oi(e)?e.some(function(r){ai(r,t)}):t.push(e)),t}function WT(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"||GT.test(t)?r:r+"px"}function Uo(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(Wh,"$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=pc,e.addEventListener(t,o?uc:cc,o)):e.removeEventListener(t,o?uc:cc,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 $h(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=pc++;else if(t.u<r.t)return;return r(R.event?R.event(t):t)}}}function mc(e,t,r,n,i,o,a,s,l,c){var d,u,f,p,m,g,_,v,b,I,A,P,O,x,C,U,We,q=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(l=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=R.__b)&&d(t);e:if(typeof q=="function")try{if(v=t.props,b="prototype"in q&&q.prototype.render,I=(d=q.contextType)&&n[d.__c],A=d?I?I.props.value:d.__:n,r.__c?_=(u=t.__c=r.__c).__=u.__E:(b?t.__c=u=new q(v,A):(t.__c=u=new lt(v,A),u.constructor=q,u.render=QT),I&&I.sub(u),u.props=v,u.state||(u.state={}),u.context=A,u.__n=n,f=u.__d=!0,u.__h=[],u._sb=[]),b&&u.__s==null&&(u.__s=u.state),b&&q.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Vt({},u.__s)),Vt(u.__s,q.getDerivedStateFromProps(v,u.__s))),p=u.props,m=u.state,u.__v=t,f)b&&q.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),b&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(b&&q.getDerivedStateFromProps==null&&v!==p&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(v,A),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(v,u.__s,A)===!1||t.__v==r.__v)){for(t.__v!=r.__v&&(u.props=v,u.state=u.__s,u.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(Re){Re&&(Re.__=t)}),P=0;P<u._sb.length;P++)u.__h.push(u._sb[P]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,A),b&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(p,m,g)})}if(u.context=A,u.props=v,u.__P=e,u.__e=!1,O=R.__r,x=0,b){for(u.state=u.__s,u.__d=!1,O&&O(t),d=u.render(u.props,u.state,u.context),C=0;C<u._sb.length;C++)u.__h.push(u._sb[C]);u._sb=[]}else do u.__d=!1,O&&O(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++x<25);u.state=u.__s,u.getChildContext!=null&&(n=Vt(Vt({},n),u.getChildContext())),b&&!f&&u.getSnapshotBeforeUpdate!=null&&(g=u.getSnapshotBeforeUpdate(p,m)),U=d,d!=null&&d.type===De&&d.key==null&&(U=tm(d.props.children)),s=Xh(e,oi(U)?U:[U],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(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(We=o.length;We--;)hc(o[We]);else t.__e=r.__e,t.__k=r.__k;R.__e(Re,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=KT(r.__e,t,r,n,i,o,a,l,c);return(d=R.diffed)&&d(t),128&t.__u?void 0:s}function em(e,t,r){for(var n=0;n<r.length;n++)vc(r[n],r[++n],r[++n]);R.__c&&R.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){R.__e(o,i.__v)}})}function tm(e){return typeof e!="object"||e==null?e:oi(e)?e.map(tm):Vt({},e)}function KT(e,t,r,n,i,o,a,s,l){var c,d,u,f,p,m,g,_=r.props,v=t.props,b=t.type;if(b=="svg"?i="http://www.w3.org/2000/svg":b=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(c=0;c<o.length;c++)if((p=o[c])&&"setAttribute"in p==!!b&&(b?p.localName==b:p.nodeType==3)){e=p,o[c]=null;break}}if(e==null){if(b==null)return document.createTextNode(v);e=document.createElementNS(i,b,v.is&&v),s&&(R.__m&&R.__m(t,o),s=!1),o=null}if(b===null)_===v||s&&e.data===v||(e.data=v);else{if(o=o&&Jo.call(e.childNodes),_=r.props||ii,!s&&o!=null)for(_={},c=0;c<e.attributes.length;c++)_[(p=e.attributes[c]).name]=p.value;for(c in _)if(p=_[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=p;else if(!(c in v)){if(c=="value"&&"defaultValue"in v||c=="checked"&&"defaultChecked"in v)continue;Uo(e,c,null,p,i)}}for(c in v)p=v[c],c=="children"?f=p:c=="dangerouslySetInnerHTML"?d=p:c=="value"?m=p:c=="checked"?g=p:s&&typeof p!="function"||_[c]===p||Uo(e,c,p,_[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=""),Xh(t.type==="template"?e.content:e,oi(f)?f:[f],t,r,n,b=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&Yr(r,0),s,l),o!=null)for(c=o.length;c--;)hc(o[c]);s||(c="value",b=="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[c]||b=="progress"&&!m||b=="option"&&m!==_[c])&&Uo(e,c,m,_[c],i),c="checked",g!==void 0&&g!==e[c]&&Uo(e,c,g,_[c],i))}return e}function vc(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){R.__e(i,r)}}function rm(e,t,r){var n,i;if(R.unmount&&R.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||vc(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){R.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&rm(n[i],t,r||typeof e.type!="function");r||hc(e.__e),e.__c=e.__=e.__e=void 0}function QT(e,t,r){return this.constructor(e,r)}function ur(e,t,r){var n,i,o,a;t==document&&(t=document.documentElement),R.__&&R.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],mc(t,e=(!n&&r||t).__k=Be(De,null,[e]),i||ii,ii,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?Jo.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),em(o,e,a)}function Rr(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,dc(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"+Kh++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var Jo,R,Vh,fc,Or,Jh,Gh,zh,Wh,pc,cc,uc,Kh,ii,Qh,GT,oi,Xr=k(()=>{ii={},Qh=[],GT=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,oi=Array.isArray;Jo=Qh.slice,R={__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,fc=function(e){return e!=null&&e.constructor==null},lt.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Vt({},this.state),typeof e=="function"&&(e=e(Vt({},r),this.props)),e&&Vt(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),dc(this))},lt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),dc(this))},lt.prototype.render=De,Or=[],Gh=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,zh=function(e,t){return e.__v.__b-t.__v.__b},Bo.__r=0,Wh=/(PointerCapture)$|Capture$/i,pc=0,cc=$h(!1),uc=$h(!0),Kh=0});var fe=h((zV,nm)=>{"use strict";nm.exports=function(e){try{return!!e()}catch(t){return!0}}});var Zr=h((WV,im)=>{"use strict";var YT=fe();im.exports=!YT(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var be=h((KV,sm)=>{"use strict";var om=Zr(),am=Function.prototype,gc=am.call,XT=om&&am.bind.bind(gc,gc);sm.exports=om?XT:function(e){return function(){return gc.apply(e,arguments)}}});var Ke=h((QV,lm)=>{"use strict";var ZT=be();lm.exports=ZT({}.isPrototypeOf)});var pe=h((yc,cm)=>{"use strict";var si=function(e){return e&&e.Math===Math&&e};cm.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 _c=h((YV,pm)=>{"use strict";var eC=Zr(),fm=Function.prototype,um=fm.apply,dm=fm.call;pm.exports=typeof Reflect=="object"&&Reflect.apply||(eC?dm.bind(um):function(){return dm.apply(um,arguments)})});var Gt=h((XV,mm)=>{"use strict";var hm=be(),tC=hm({}.toString),rC=hm("".slice);mm.exports=function(e){return rC(tC(e),8,-1)}});var li=h((ZV,vm)=>{"use strict";var nC=Gt(),iC=be();vm.exports=function(e){if(nC(e)==="Function")return iC(e)}});var Le=h((eG,gm)=>{"use strict";var bc=typeof document=="object"&&document.all;gm.exports=typeof bc=="undefined"&&bc!==void 0?function(e){return typeof e=="function"||e===bc}:function(e){return typeof e=="function"}});var Qe=h((tG,ym)=>{"use strict";var oC=fe();ym.exports=!oC(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var St=h((rG,_m)=>{"use strict";var aC=Zr(),Ho=Function.prototype.call;_m.exports=aC?Ho.bind(Ho):function(){return Ho.apply(Ho,arguments)}});var wc=h(Im=>{"use strict";var bm={}.propertyIsEnumerable,wm=Object.getOwnPropertyDescriptor,sC=wm&&!bm.call({1:2},1);Im.f=sC?function(t){var r=wm(this,t);return!!r&&r.enumerable}:bm});var ci=h((iG,Sm)=>{"use strict";Sm.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var $o=h((oG,Em)=>{"use strict";var lC=be(),cC=fe(),uC=Gt(),Ic=Object,dC=lC("".split);Em.exports=cC(function(){return!Ic("z").propertyIsEnumerable(0)})?function(e){return uC(e)==="String"?dC(e,""):Ic(e)}:Ic});var Nr=h((aG,xm)=>{"use strict";xm.exports=function(e){return e==null}});var Dr=h((sG,km)=>{"use strict";var fC=Nr(),pC=TypeError;km.exports=function(e){if(fC(e))throw new pC("Can't call method on "+e);return e}});var dr=h((lG,Am)=>{"use strict";var hC=$o(),mC=Dr();Am.exports=function(e){return hC(mC(e))}});var Ae=h((cG,Tm)=>{"use strict";var vC=Le();Tm.exports=function(e){return typeof e=="object"?e!==null:vC(e)}});var Rt=h((uG,Cm)=>{"use strict";Cm.exports={}});var en=h((dG,Om)=>{"use strict";var Sc=Rt(),Ec=pe(),gC=Le(),Pm=function(e){return gC(e)?e:void 0};Om.exports=function(e,t){return arguments.length<2?Pm(Sc[e])||Pm(Ec[e]):Sc[e]&&Sc[e][t]||Ec[e]&&Ec[e][t]}});var Vo=h((fG,Dm)=>{"use strict";var yC=pe(),Rm=yC.navigator,Nm=Rm&&Rm.userAgent;Dm.exports=Nm?String(Nm):""});var zo=h((pG,jm)=>{"use strict";var Um=pe(),xc=Vo(),Lm=Um.process,qm=Um.Deno,Fm=Lm&&Lm.versions||qm&&qm.version,Mm=Fm&&Fm.v8,Et,Go;Mm&&(Et=Mm.split("."),Go=Et[0]>0&&Et[0]<4?1:+(Et[0]+Et[1]));!Go&&xc&&(Et=xc.match(/Edge\/(\d+)/),(!Et||Et[1]>=74)&&(Et=xc.match(/Chrome\/(\d+)/),Et&&(Go=+Et[1])));jm.exports=Go});var kc=h((hG,Jm)=>{"use strict";var Bm=zo(),_C=fe(),bC=pe(),wC=bC.String;Jm.exports=!!Object.getOwnPropertySymbols&&!_C(function(){var e=Symbol("symbol detection");return!wC(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Bm&&Bm<41})});var Ac=h((mG,Hm)=>{"use strict";var IC=kc();Hm.exports=IC&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Tc=h((vG,$m)=>{"use strict";var SC=en(),EC=Le(),xC=Ke(),kC=Ac(),AC=Object;$m.exports=kC?function(e){return typeof e=="symbol"}:function(e){var t=SC("Symbol");return EC(t)&&xC(t.prototype,AC(e))}});var ui=h((gG,Vm)=>{"use strict";var TC=String;Vm.exports=function(e){try{return TC(e)}catch(t){return"Object"}}});var Lr=h((yG,Gm)=>{"use strict";var CC=Le(),PC=ui(),OC=TypeError;Gm.exports=function(e){if(CC(e))return e;throw new OC(PC(e)+" is not a function")}});var Wo=h((_G,zm)=>{"use strict";var RC=Lr(),NC=Nr();zm.exports=function(e,t){var r=e[t];return NC(r)?void 0:RC(r)}});var Km=h((bG,Wm)=>{"use strict";var Cc=St(),Pc=Le(),Oc=Ae(),DC=TypeError;Wm.exports=function(e,t){var r,n;if(t==="string"&&Pc(r=e.toString)&&!Oc(n=Cc(r,e))||Pc(r=e.valueOf)&&!Oc(n=Cc(r,e))||t!=="string"&&Pc(r=e.toString)&&!Oc(n=Cc(r,e)))return n;throw new DC("Can't convert object to primitive value")}});var tn=h((wG,Qm)=>{"use strict";Qm.exports=!0});var Zm=h((IG,Xm)=>{"use strict";var Ym=pe(),LC=Object.defineProperty;Xm.exports=function(e,t){try{LC(Ym,e,{value:t,configurable:!0,writable:!0})}catch(r){Ym[e]=t}return t}});var di=h((SG,rv)=>{"use strict";var qC=tn(),FC=pe(),MC=Zm(),ev="__core-js_shared__",tv=rv.exports=FC[ev]||MC(ev,{});(tv.versions||(tv.versions=[])).push({version:"3.41.0",mode:qC?"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 Rc=h((EG,iv)=>{"use strict";var nv=di();iv.exports=function(e,t){return nv[e]||(nv[e]=t||{})}});var rn=h((xG,ov)=>{"use strict";var UC=Dr(),jC=Object;ov.exports=function(e){return jC(UC(e))}});var ct=h((kG,av)=>{"use strict";var BC=be(),JC=rn(),HC=BC({}.hasOwnProperty);av.exports=Object.hasOwn||function(t,r){return HC(JC(t),r)}});var Ko=h((AG,sv)=>{"use strict";var $C=be(),VC=0,GC=Math.random(),zC=$C(1 .toString);sv.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+zC(++VC+GC,36)}});var Je=h((TG,cv)=>{"use strict";var WC=pe(),KC=Rc(),lv=ct(),QC=Ko(),YC=kc(),XC=Ac(),nn=WC.Symbol,Nc=KC("wks"),ZC=XC?nn.for||nn:nn&&nn.withoutSetter||QC;cv.exports=function(e){return lv(Nc,e)||(Nc[e]=YC&&lv(nn,e)?nn[e]:ZC("Symbol."+e)),Nc[e]}});var pv=h((CG,fv)=>{"use strict";var eP=St(),uv=Ae(),dv=Tc(),tP=Wo(),rP=Km(),nP=Je(),iP=TypeError,oP=nP("toPrimitive");fv.exports=function(e,t){if(!uv(e)||dv(e))return e;var r=tP(e,oP),n;if(r){if(t===void 0&&(t="default"),n=eP(r,e,t),!uv(n)||dv(n))return n;throw new iP("Can't convert object to primitive value")}return t===void 0&&(t="number"),rP(e,t)}});var Dc=h((PG,hv)=>{"use strict";var aP=pv(),sP=Tc();hv.exports=function(e){var t=aP(e,"string");return sP(t)?t:t+""}});var qc=h((OG,vv)=>{"use strict";var lP=pe(),mv=Ae(),Lc=lP.document,cP=mv(Lc)&&mv(Lc.createElement);vv.exports=function(e){return cP?Lc.createElement(e):{}}});var Fc=h((RG,gv)=>{"use strict";var uP=Qe(),dP=fe(),fP=qc();gv.exports=!uP&&!dP(function(){return Object.defineProperty(fP("div"),"a",{get:function(){return 7}}).a!==7})});var Mc=h(_v=>{"use strict";var pP=Qe(),hP=St(),mP=wc(),vP=ci(),gP=dr(),yP=Dc(),_P=ct(),bP=Fc(),yv=Object.getOwnPropertyDescriptor;_v.f=pP?yv:function(t,r){if(t=gP(t),r=yP(r),bP)try{return yv(t,r)}catch(n){}if(_P(t,r))return vP(!hP(mP.f,t,r),t[r])}});var wv=h((DG,bv)=>{"use strict";var wP=fe(),IP=Le(),SP=/#|\.prototype\./,fi=function(e,t){var r=xP[EP(e)];return r===AP?!0:r===kP?!1:IP(t)?wP(t):!!t},EP=fi.normalize=function(e){return String(e).replace(SP,".").toLowerCase()},xP=fi.data={},kP=fi.NATIVE="N",AP=fi.POLYFILL="P";bv.exports=fi});var pi=h((LG,Sv)=>{"use strict";var Iv=li(),TP=Lr(),CP=Zr(),PP=Iv(Iv.bind);Sv.exports=function(e,t){return TP(e),t===void 0?e:CP?PP(e,t):function(){return e.apply(t,arguments)}}});var Uc=h((qG,Ev)=>{"use strict";var OP=Qe(),RP=fe();Ev.exports=OP&&RP(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var zt=h((FG,xv)=>{"use strict";var NP=Ae(),DP=String,LP=TypeError;xv.exports=function(e){if(NP(e))return e;throw new LP(DP(e)+" is not an object")}});var Wt=h(Av=>{"use strict";var qP=Qe(),FP=Fc(),MP=Uc(),Qo=zt(),kv=Dc(),UP=TypeError,jc=Object.defineProperty,jP=Object.getOwnPropertyDescriptor,Bc="enumerable",Jc="configurable",Hc="writable";Av.f=qP?MP?function(t,r,n){if(Qo(t),r=kv(r),Qo(n),typeof t=="function"&&r==="prototype"&&"value"in n&&Hc in n&&!n[Hc]){var i=jP(t,r);i&&i[Hc]&&(t[r]=n.value,n={configurable:Jc in n?n[Jc]:i[Jc],enumerable:Bc in n?n[Bc]:i[Bc],writable:!1})}return jc(t,r,n)}:jc:function(t,r,n){if(Qo(t),r=kv(r),Qo(n),FP)try{return jc(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new UP("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var qr=h((UG,Tv)=>{"use strict";var BP=Qe(),JP=Wt(),HP=ci();Tv.exports=BP?function(e,t,r){return JP.f(e,t,HP(1,r))}:function(e,t,r){return e[t]=r,e}});var Z=h((jG,Pv)=>{"use strict";var hi=pe(),$P=_c(),VP=li(),GP=Le(),zP=Mc().f,WP=wv(),on=Rt(),KP=pi(),an=qr(),Cv=ct();di();var QP=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 $P(e,this,arguments)};return t.prototype=e.prototype,t};Pv.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o=e.proto,a=n?hi:i?hi[r]:hi[r]&&hi[r].prototype,s=n?on:on[r]||an(on,r,{})[r],l=s.prototype,c,d,u,f,p,m,g,_,v;for(f in t)c=WP(n?f:r+(i?".":"#")+f,e.forced),d=!c&&a&&Cv(a,f),m=s[f],d&&(e.dontCallGetSet?(v=zP(a,f),g=v&&v.value):g=a[f]),p=d&&g?g:t[f],!(!c&&!o&&typeof m==typeof p)&&(e.bind&&d?_=KP(p,hi):e.wrap&&d?_=QP(p):o&&GP(p)?_=VP(p):_=p,(e.sham||p&&p.sham||m&&m.sham)&&an(_,"sham",!0),an(s,f,_),o&&(u=r+"Prototype",Cv(on,u)||an(on,u,{}),an(on[u],f,p),e.real&&l&&(c||!l[f])&&an(l,f,p)))}});var Rv=h((BG,Ov)=>{"use strict";var YP=Math.ceil,XP=Math.floor;Ov.exports=Math.trunc||function(t){var r=+t;return(r>0?XP:YP)(r)}});var mi=h((JG,Nv)=>{"use strict";var ZP=Rv();Nv.exports=function(e){var t=+e;return t!==t||t===0?0:ZP(t)}});var $c=h((HG,Dv)=>{"use strict";var eO=mi(),tO=Math.min;Dv.exports=function(e){var t=eO(e);return t>0?tO(t,9007199254740991):0}});var sn=h(($G,Lv)=>{"use strict";var rO=$c();Lv.exports=function(e){return rO(e.length)}});var gi=h((VG,qv)=>{"use strict";var nO=Gt();qv.exports=Array.isArray||function(t){return nO(t)==="Array"}});var Yo=h((GG,Mv)=>{"use strict";var iO=Je(),oO=iO("toStringTag"),Fv={};Fv[oO]="z";Mv.exports=String(Fv)==="[object z]"});var ln=h((zG,Uv)=>{"use strict";var aO=Yo(),sO=Le(),Xo=Gt(),lO=Je(),cO=lO("toStringTag"),uO=Object,dO=Xo(function(){return arguments}())==="Arguments",fO=function(e,t){try{return e[t]}catch(r){}};Uv.exports=aO?Xo:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=fO(t=uO(e),cO))=="string"?r:dO?Xo(t):(n=Xo(t))==="Object"&&sO(t.callee)?"Arguments":n}});var Bv=h((WG,jv)=>{"use strict";var pO=be(),hO=Le(),Vc=di(),mO=pO(Function.toString);hO(Vc.inspectSource)||(Vc.inspectSource=function(e){return mO(e)});jv.exports=Vc.inspectSource});var zc=h((KG,Gv)=>{"use strict";var vO=be(),gO=fe(),Jv=Le(),yO=ln(),_O=en(),bO=Bv(),Hv=function(){},$v=_O("Reflect","construct"),Gc=/^\s*(?:class|function)\b/,wO=vO(Gc.exec),IO=!Gc.test(Hv),yi=function(t){if(!Jv(t))return!1;try{return $v(Hv,[],t),!0}catch(r){return!1}},Vv=function(t){if(!Jv(t))return!1;switch(yO(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return IO||!!wO(Gc,bO(t))}catch(r){return!0}};Vv.sham=!0;Gv.exports=!$v||gO(function(){var e;return yi(yi.call)||!yi(Object)||!yi(function(){e=!0})||e})?Vv:yi});var Qv=h((QG,Kv)=>{"use strict";var zv=gi(),SO=zc(),EO=Ae(),xO=Je(),kO=xO("species"),Wv=Array;Kv.exports=function(e){var t;return zv(e)&&(t=e.constructor,SO(t)&&(t===Wv||zv(t.prototype))?t=void 0:EO(t)&&(t=t[kO],t===null&&(t=void 0))),t===void 0?Wv:t}});var Wc=h((YG,Yv)=>{"use strict";var AO=Qv();Yv.exports=function(e,t){return new(AO(e))(t===0?0:t)}});var pr=h((XG,Zv)=>{"use strict";var TO=pi(),CO=be(),PO=$o(),OO=rn(),RO=sn(),NO=Wc(),Xv=CO([].push),fr=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 f=OO(l),p=PO(f),m=RO(p),g=TO(c,d),_=0,v=u||NO,b=t?v(l,m):r||a?v(l,0):void 0,I,A;m>_;_++)if((s||_ in p)&&(I=p[_],A=g(I,_,f),e))if(t)b[_]=A;else if(A)switch(e){case 3:return!0;case 5:return I;case 6:return _;case 2:Xv(b,I)}else switch(e){case 4:return!1;case 7:Xv(b,I)}return o?-1:n||i?i:b}};Zv.exports={forEach:fr(0),map:fr(1),filter:fr(2),some:fr(3),every:fr(4),find:fr(5),findIndex:fr(6),filterReject:fr(7)}});var _i=h((ZG,eg)=>{"use strict";var DO=fe(),LO=Je(),qO=zo(),FO=LO("species");eg.exports=function(e){return qO>=51||!DO(function(){var t=[],r=t.constructor={};return r[FO]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var tg=h(()=>{"use strict";var MO=Z(),UO=pr().filter,jO=_i(),BO=jO("filter");MO({target:"Array",proto:!0,forced:!BO},{filter:function(t){return UO(this,t,arguments.length>1?arguments[1]:void 0)}})});var yt=h((rz,rg)=>{"use strict";var JO=pe(),HO=Rt();rg.exports=function(e,t){var r=HO[e+"Prototype"],n=r&&r[t];if(n)return n;var i=JO[e],o=i&&i.prototype;return o&&o[t]}});var ig=h((nz,ng)=>{"use strict";tg();var $O=yt();ng.exports=$O("Array","filter")});var ag=h((iz,og)=>{"use strict";var VO=Ke(),GO=ig(),Kc=Array.prototype;og.exports=function(e){var t=e.filter;return e===Kc||VO(Kc,e)&&t===Kc.filter?GO:t}});var lg=h((oz,sg)=>{"use strict";var zO=ag();sg.exports=zO});var ug=h((az,cg)=>{cg.exports=lg()});var bi=h((sz,dg)=>{"use strict";var WO=fe();dg.exports=function(e,t){var r=[][e];return!!r&&WO(function(){r.call(null,t||function(){return 1},1)})}});var fg=h(()=>{"use strict";var KO=Z(),QO=pr().every,YO=bi(),XO=YO("every");KO({target:"Array",proto:!0,forced:!XO},{every:function(t){return QO(this,t,arguments.length>1?arguments[1]:void 0)}})});var hg=h((uz,pg)=>{"use strict";fg();var ZO=yt();pg.exports=ZO("Array","every")});var vg=h((dz,mg)=>{"use strict";var eR=Ke(),tR=hg(),Qc=Array.prototype;mg.exports=function(e){var t=e.every;return e===Qc||eR(Qc,e)&&t===Qc.every?tR:t}});var yg=h((fz,gg)=>{"use strict";var rR=vg();gg.exports=rR});var bg=h((pz,_g)=>{_g.exports=yg()});var Ig=h((hz,wg)=>{"use strict";var nR=pr().forEach,iR=bi(),oR=iR("forEach");wg.exports=oR?[].forEach:function(t){return nR(this,t,arguments.length>1?arguments[1]:void 0)}});var Eg=h(()=>{"use strict";var aR=Z(),Sg=Ig();aR({target:"Array",proto:!0,forced:[].forEach!==Sg},{forEach:Sg})});var kg=h((gz,xg)=>{"use strict";Eg();var sR=yt();xg.exports=sR("Array","forEach")});var Tg=h((yz,Ag)=>{"use strict";var lR=kg();Ag.exports=lR});var Cg=h(()=>{});var Og=h((wz,Pg)=>{"use strict";var cR=ln(),uR=ct(),dR=Ke(),fR=Tg();Cg();var Yc=Array.prototype,pR={DOMTokenList:!0,NodeList:!0};Pg.exports=function(e){var t=e.forEach;return e===Yc||dR(Yc,e)&&t===Yc.forEach||uR(pR,cR(e))?fR:t}});var Ng=h((Iz,Rg)=>{Rg.exports=Og()});var Lg=h((Sz,Dg)=>{"use strict";var hR=TypeError,mR=9007199254740991;Dg.exports=function(e){if(e>mR)throw hR("Maximum allowed index exceeded");return e}});var Xc=h((Ez,qg)=>{"use strict";var vR=Qe(),gR=Wt(),yR=ci();qg.exports=function(e,t,r){vR?gR.f(e,t,yR(0,r)):e[t]=r}});var jg=h(()=>{"use strict";var _R=Z(),bR=fe(),wR=gi(),IR=Ae(),SR=rn(),ER=sn(),Fg=Lg(),Mg=Xc(),xR=Wc(),kR=_i(),AR=Je(),TR=zo(),Ug=AR("isConcatSpreadable"),CR=TR>=51||!bR(function(){var e=[];return e[Ug]=!1,e.concat()[0]!==e}),PR=function(e){if(!IR(e))return!1;var t=e[Ug];return t!==void 0?!!t:wR(e)},OR=!CR||!kR("concat");_R({target:"Array",proto:!0,arity:1,forced:OR},{concat:function(t){var r=SR(this),n=xR(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],PR(c))for(l=ER(c),Fg(i+l),a=0;a<l;a++,i++)a in c&&Mg(n,i,c[a]);else Fg(i+1),Mg(n,i++,c);return n.length=i,n}})});var Jg=h((Az,Bg)=>{"use strict";jg();var RR=yt();Bg.exports=RR("Array","concat")});var $g=h((Tz,Hg)=>{"use strict";var NR=Ke(),DR=Jg(),Zc=Array.prototype;Hg.exports=function(e){var t=e.concat;return e===Zc||NR(Zc,e)&&t===Zc.concat?DR:t}});var Gg=h((Cz,Vg)=>{"use strict";var LR=$g();Vg.exports=LR});var Wg=h((Pz,zg)=>{zg.exports=Gg()});var Kg=h(()=>{"use strict";var qR=Z(),FR=pr().some,MR=bi(),UR=MR("some");qR({target:"Array",proto:!0,forced:!UR},{some:function(t){return FR(this,t,arguments.length>1?arguments[1]:void 0)}})});var Yg=h((Nz,Qg)=>{"use strict";Kg();var jR=yt();Qg.exports=jR("Array","some")});var Zg=h((Dz,Xg)=>{"use strict";var BR=Ke(),JR=Yg(),eu=Array.prototype;Xg.exports=function(e){var t=e.some;return e===eu||BR(eu,e)&&t===eu.some?JR:t}});var ty=h((Lz,ey)=>{"use strict";var HR=Zg();ey.exports=HR});var ny=h((qz,ry)=>{ry.exports=ty()});var oy=h((Fz,iy)=>{"use strict";var wi=pe(),$R=Vo(),VR=Gt(),Zo=function(e){return $R.slice(0,e.length)===e};iy.exports=function(){return Zo("Bun/")?"BUN":Zo("Cloudflare-Workers")?"CLOUDFLARE":Zo("Deno/")?"DENO":Zo("Node.js/")?"NODE":wi.Bun&&typeof Bun.version=="string"?"BUN":wi.Deno&&typeof Deno.version=="object"?"DENO":VR(wi.process)==="process"?"NODE":wi.window&&wi.document?"BROWSER":"REST"}()});var Ii=h((Mz,ay)=>{"use strict";var GR=be();ay.exports=GR([].slice)});var ly=h((Uz,sy)=>{"use strict";var zR=TypeError;sy.exports=function(e,t){if(e<t)throw new zR("Not enough arguments");return e}});var tu=h((jz,uy)=>{"use strict";var cy=pe(),WR=_c(),KR=Le(),QR=oy(),YR=Vo(),XR=Ii(),ZR=ly(),eN=cy.Function,tN=/MSIE .\./.test(YR)||QR==="BUN"&&function(){var e=cy.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();uy.exports=function(e,t){var r=t?2:1;return tN?function(n,i){var o=ZR(arguments.length,1)>r,a=KR(n)?n:eN(n),s=o?XR(arguments,r):[],l=o?function(){WR(a,this,s)}:a;return t?e(l,i):e(l)}:e}});var py=h(()=>{"use strict";var rN=Z(),fy=pe(),nN=tu(),dy=nN(fy.setInterval,!0);rN({global:!0,bind:!0,forced:fy.setInterval!==dy},{setInterval:dy})});var vy=h(()=>{"use strict";var iN=Z(),my=pe(),oN=tu(),hy=oN(my.setTimeout,!0);iN({global:!0,bind:!0,forced:my.setTimeout!==hy},{setTimeout:hy})});var gy=h(()=>{"use strict";py();vy()});var _y=h((zz,yy)=>{"use strict";gy();var aN=Rt();yy.exports=aN.setTimeout});var wy=h((Wz,by)=>{by.exports=_y()});function Ei(e,t){me.__h&&me.__h(oe,e,Si||t),Si=0;var r=oe.__H||(oe.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function ta(e){return Si=1,Oy(Ry,e)}function Oy(e,t,r){var n=Ei(Fr++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Ry(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(f){return!!f.__c});if(d.every(function(f){return!f.__N}))return!o||o.call(this,s,l,c);var u=n.__c.props!==s;return d.forEach(function(f){if(f.__N){var p=f.__[0];f.__=f.__N,f.__N=void 0,p!==f.__[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 xi(e,t){var r=Ei(Fr++,3);!me.__s&&iu(r.__H,t)&&(r.__=e,r.u=t,oe.__H.__h.push(r))}function cn(e,t){var r=Ei(Fr++,4);!me.__s&&iu(r.__H,t)&&(r.__=e,r.u=t,oe.__h.push(r))}function ki(e){return Si=5,Ai(function(){return{current:e}},[])}function Ai(e,t){var r=Ei(Fr++,7);return iu(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function un(e,t){return Si=8,Ai(function(){return e},t)}function dn(e){var t=oe.context[e.__c],r=Ei(Fr++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(oe)),t.props.value):e.__}function sN(){for(var e;e=Py.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(ea),e.__H.__h.forEach(nu),e.__H.__h=[]}catch(t){e.__H.__h=[],me.__e(t,e.__v)}}function lN(e){var t,r=function(){clearTimeout(n),Cy&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Cy&&(t=requestAnimationFrame(r))}function ea(e){var t=oe,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),oe=t}function nu(e){var t=oe;e.__c=e.__(),oe=t}function iu(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Ry(e,t){return typeof t=="function"?t(e):t}var Fr,oe,ru,Iy,Si,Py,me,Sy,Ey,xy,ky,Ay,Ty,Cy,ou=k(()=>{Xr();Si=0,Py=[],me=R,Sy=me.__b,Ey=me.__r,xy=me.diffed,ky=me.__c,Ay=me.unmount,Ty=me.__;me.__b=function(e){oe=null,Sy&&Sy(e)},me.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ty&&Ty(e,t)},me.__r=function(e){Ey&&Ey(e),Fr=0;var t=(oe=e.__c).__H;t&&(ru===oe?(t.__h=[],oe.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(ea),t.__h.forEach(nu),t.__h=[],Fr=0)),ru=oe},me.diffed=function(e){xy&&xy(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Py.push(t)!==1&&Iy===me.requestAnimationFrame||((Iy=me.requestAnimationFrame)||lN)(sN)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),ru=oe=null},me.__c=function(e,t){t.some(function(r){try{r.__h.forEach(ea),r.__h=r.__h.filter(function(n){return!n.__||nu(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],me.__e(n,r.__v)}}),ky&&ky(e,t)},me.unmount=function(e){Ay&&Ay(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{ea(n)}catch(i){t=i}}),r.__H=void 0,t&&me.__e(t,r.__v))};Cy=typeof requestAnimationFrame=="function"});function Jy(e,t){for(var r in t)e[r]=t[r];return e}function su(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 Ny(e,t){this.props=e,this.context=t}function cu(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:su(this.props,i)}function n(i){return this.shouldComponentUpdate=r,Be(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function uu(e){function t(r){var n=Jy({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=cN,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function Hy(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=Jy({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Hy(n,t,r)})),e}function $y(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return $y(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 au(){this.__u=0,this.o=null,this.__b=null}function Vy(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function ra(){this.i=null,this.l=null}function du(e,t,r){return t.__k==null&&(t.textContent=""),ur(e,t),typeof r=="function"&&r(),e?e.__c:null}function gN(){}function yN(){return this.cancelBubble}function _N(){return this.defaultPrevented}var lu,Dy,cN,uN,Ly,qy,dN,fN,pN,hN,mN,vN,Fy,Gy,bN,My,Uy,jy,na=k(()=>{Xr();Xr();ou();ou();lu=cn;(Ny.prototype=new lt).isPureReactComponent=!0,Ny.prototype.shouldComponentUpdate=function(e,t){return su(this.props,e)||su(this.state,t)};Dy=R.__b;R.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Dy&&Dy(e)};cN=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;uN=R.__e;R.__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)}uN(e,t,r,n)};Ly=R.unmount;R.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Ly&&Ly(e)},(au.prototype=new lt).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=Vy(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]=$y(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)},au.prototype.componentWillUnmount=function(){this.o=[]},au.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]=Hy(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&Be(De,null,e.fallback);return i&&(i.__u&=-33),[Be(De,null,t.__a?null:e.children),i]};qy=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 lt).__a=function(e){var t=this,r=Vy(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),qy(t,e,n)):i()};r?r(o):o()}},ra.prototype.render=function(e){this.i=null,this.l=new Map;var t=ai(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){qy(e,r,t)})};dN=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,fN=/^(?: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]/,pN=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,hN=/[A-Z0-9]/g,mN=typeof document!="undefined",vN=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};lt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(lt.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});Fy=R.event;R.event=function(e){return Fy&&(e=Fy(e)),e.persist=gN,e.isPropagationStopped=yN,e.isDefaultPrevented=_N,e.nativeEvent=e};bN={enumerable:!1,configurable:!0,get:function(){return this.class}},My=R.vnode;R.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||mN&&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"||vN(r.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":pN.test(a)&&(a=l):l=a="oninput":o&&fN.test(a)?a=a.replace(hN,"-$&").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=ai(r.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=ai(r.children).forEach(function(c){c.props.selected=i.multiple?i.defaultValue.indexOf(c.props.value)!=-1:i.defaultValue==c.props.value})),r.class&&!r.className?(i.class=r.class,Object.defineProperty(i,"className",bN)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=dN,My&&My(e)};Uy=R.__r;R.__r=function(e){Uy&&Uy(e),Gy=e.__c};jy=R.diffed;R.diffed=function(e){jy&&jy(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),Gy=null}});var pu=h(()=>{"use strict";var IN=Z(),fu=pe();IN({global:!0,forced:fu.globalThis!==fu},{globalThis:fu})});var zy=h(()=>{"use strict";pu()});var Ky=h((u6,Wy)=>{"use strict";pu();Wy.exports=pe()});var Yy=h((d6,Qy)=>{"use strict";var SN=Ky();Qy.exports=SN});var Zy=h((f6,Xy)=>{"use strict";var EN=Yy();Xy.exports=EN});var t_=h((p6,e_)=>{"use strict";zy();var xN=Zy();e_.exports=xN});var n_=h((h6,r_)=>{"use strict";r_.exports=t_()});var o_=h((m6,i_)=>{i_.exports=n_()});var a_=h(()=>{"use strict";var kN=Z(),AN=gi();kN({target:"Array",stat:!0},{isArray:AN})});var l_=h((y6,s_)=>{"use strict";a_();var TN=Rt();s_.exports=TN.Array.isArray});var u_=h((_6,c_)=>{"use strict";var CN=l_();c_.exports=CN});var f_=h((b6,d_)=>{d_.exports=u_()});var h_=h((w6,p_)=>{"use strict";p_.exports=function(){}});var Mr=h((I6,m_)=>{"use strict";m_.exports={}});var hu=h((S6,g_)=>{"use strict";var PN=pe(),ON=Le(),v_=PN.WeakMap;g_.exports=ON(v_)&&/native code/.test(String(v_))});var ia=h((E6,__)=>{"use strict";var RN=Rc(),NN=Ko(),y_=RN("keys");__.exports=function(e){return y_[e]||(y_[e]=NN(e))}});var Ti=h((x6,b_)=>{"use strict";b_.exports={}});var jr=h((k6,S_)=>{"use strict";var DN=hu(),I_=pe(),LN=Ae(),qN=qr(),mu=ct(),vu=di(),FN=ia(),MN=Ti(),w_="Object already initialized",gu=I_.TypeError,UN=I_.WeakMap,oa,Ci,aa,jN=function(e){return aa(e)?Ci(e):oa(e,{})},BN=function(e){return function(t){var r;if(!LN(t)||(r=Ci(t)).type!==e)throw new gu("Incompatible receiver, "+e+" required");return r}};DN||vu.state?(xt=vu.state||(vu.state=new UN),xt.get=xt.get,xt.has=xt.has,xt.set=xt.set,oa=function(e,t){if(xt.has(e))throw new gu(w_);return t.facade=e,xt.set(e,t),t},Ci=function(e){return xt.get(e)||{}},aa=function(e){return xt.has(e)}):(Ur=FN("state"),MN[Ur]=!0,oa=function(e,t){if(mu(e,Ur))throw new gu(w_);return t.facade=e,qN(e,Ur,t),t},Ci=function(e){return mu(e,Ur)?e[Ur]:{}},aa=function(e){return mu(e,Ur)});var xt,Ur;S_.exports={set:oa,get:Ci,has:aa,enforce:jN,getterFor:BN}});var bu=h((A6,x_)=>{"use strict";var yu=Qe(),JN=ct(),E_=Function.prototype,HN=yu&&Object.getOwnPropertyDescriptor,_u=JN(E_,"name"),$N=_u&&(function(){}).name==="something",VN=_u&&(!yu||yu&&HN(E_,"name").configurable);x_.exports={EXISTS:_u,PROPER:$N,CONFIGURABLE:VN}});var wu=h((T6,k_)=>{"use strict";var GN=mi(),zN=Math.max,WN=Math.min;k_.exports=function(e,t){var r=GN(e);return r<0?zN(r+t,0):WN(r,t)}});var Iu=h((C6,T_)=>{"use strict";var KN=dr(),QN=wu(),YN=sn(),A_=function(e){return function(t,r,n){var i=KN(t),o=YN(i);if(o===0)return!e&&-1;var a=QN(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}};T_.exports={includes:A_(!0),indexOf:A_(!1)}});var Eu=h((P6,P_)=>{"use strict";var XN=be(),Su=ct(),ZN=dr(),eD=Iu().indexOf,tD=Ti(),C_=XN([].push);P_.exports=function(e,t){var r=ZN(e),n=0,i=[],o;for(o in r)!Su(tD,o)&&Su(r,o)&&C_(i,o);for(;t.length>n;)Su(r,o=t[n++])&&(~eD(i,o)||C_(i,o));return i}});var sa=h((O6,O_)=>{"use strict";O_.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var xu=h((R6,R_)=>{"use strict";var rD=Eu(),nD=sa();R_.exports=Object.keys||function(t){return rD(t,nD)}});var D_=h(N_=>{"use strict";var iD=Qe(),oD=Uc(),aD=Wt(),sD=zt(),lD=dr(),cD=xu();N_.f=iD&&!oD?Object.defineProperties:function(t,r){sD(t);for(var n=lD(r),i=cD(r),o=i.length,a=0,s;o>a;)aD.f(t,s=i[a++],n[s]);return t}});var q_=h((D6,L_)=>{"use strict";var uD=en();L_.exports=uD("document","documentElement")});var Pi=h((L6,H_)=>{"use strict";var dD=zt(),fD=D_(),F_=sa(),pD=Ti(),hD=q_(),mD=qc(),vD=ia(),M_=">",U_="<",Au="prototype",Tu="script",B_=vD("IE_PROTO"),ku=function(){},J_=function(e){return U_+Tu+M_+e+U_+"/"+Tu+M_},j_=function(e){e.write(J_("")),e.close();var t=e.parentWindow.Object;return e=null,t},gD=function(){var e=mD("iframe"),t="java"+Tu+":",r;return e.style.display="none",hD.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(J_("document.F=Object")),r.close(),r.F},la,ca=function(){try{la=new ActiveXObject("htmlfile")}catch(t){}ca=typeof document!="undefined"?document.domain&&la?j_(la):gD():j_(la);for(var e=F_.length;e--;)delete ca[Au][F_[e]];return ca()};pD[B_]=!0;H_.exports=Object.create||function(t,r){var n;return t!==null?(ku[Au]=dD(t),n=new ku,ku[Au]=null,n[B_]=t):n=ca(),r===void 0?n:fD.f(n,r)}});var V_=h((q6,$_)=>{"use strict";var yD=fe();$_.exports=!yD(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Pu=h((F6,z_)=>{"use strict";var _D=ct(),bD=Le(),wD=rn(),ID=ia(),SD=V_(),G_=ID("IE_PROTO"),Cu=Object,ED=Cu.prototype;z_.exports=SD?Cu.getPrototypeOf:function(e){var t=wD(e);if(_D(t,G_))return t[G_];var r=t.constructor;return bD(r)&&t instanceof r?r.prototype:t instanceof Cu?ED:null}});var ua=h((M6,W_)=>{"use strict";var xD=qr();W_.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:xD(e,t,r),e}});var Du=h((U6,Y_)=>{"use strict";var kD=fe(),AD=Le(),TD=Ae(),CD=Pi(),K_=Pu(),PD=ua(),OD=Je(),RD=tn(),Nu=OD("iterator"),Q_=!1,Kt,Ou,Ru;[].keys&&(Ru=[].keys(),"next"in Ru?(Ou=K_(K_(Ru)),Ou!==Object.prototype&&(Kt=Ou)):Q_=!0);var ND=!TD(Kt)||kD(function(){var e={};return Kt[Nu].call(e)!==e});ND?Kt={}:RD&&(Kt=CD(Kt));AD(Kt[Nu])||PD(Kt,Nu,function(){return this});Y_.exports={IteratorPrototype:Kt,BUGGY_SAFARI_ITERATORS:Q_}});var Z_=h((j6,X_)=>{"use strict";var DD=Yo(),LD=ln();X_.exports=DD?{}.toString:function(){return"[object "+LD(this)+"]"}});var Oi=h((B6,tb)=>{"use strict";var qD=Yo(),FD=Wt().f,MD=qr(),UD=ct(),jD=Z_(),BD=Je(),eb=BD("toStringTag");tb.exports=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(UD(i,eb)||FD(i,eb,{configurable:!0,value:t}),n&&!qD&&MD(i,"toString",jD))}});var nb=h((J6,rb)=>{"use strict";var JD=Du().IteratorPrototype,HD=Pi(),$D=ci(),VD=Oi(),GD=Mr(),zD=function(){return this};rb.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=HD(JD,{next:$D(+!n,r)}),VD(e,i,!1,!0),GD[i]=zD,e}});var ob=h((H6,ib)=>{"use strict";var WD=be(),KD=Lr();ib.exports=function(e,t,r){try{return WD(KD(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var sb=h(($6,ab)=>{"use strict";var QD=Ae();ab.exports=function(e){return QD(e)||e===null}});var cb=h((V6,lb)=>{"use strict";var YD=sb(),XD=String,ZD=TypeError;lb.exports=function(e){if(YD(e))return e;throw new ZD("Can't set "+XD(e)+" as a prototype")}});var db=h((G6,ub)=>{"use strict";var eL=ob(),tL=Ae(),rL=Dr(),nL=cb();ub.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=eL(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return rL(i),nL(o),tL(i)&&(e?r(i,o):i.__proto__=o),i}}():void 0)});var pa=h((z6,wb)=>{"use strict";var iL=Z(),oL=St(),da=tn(),_b=bu(),aL=Le(),sL=nb(),fb=Pu(),pb=db(),lL=Oi(),cL=qr(),Lu=ua(),uL=Je(),hb=Mr(),bb=Du(),dL=_b.PROPER,fL=_b.CONFIGURABLE,mb=bb.IteratorPrototype,fa=bb.BUGGY_SAFARI_ITERATORS,Ri=uL("iterator"),vb="keys",Ni="values",gb="entries",yb=function(){return this};wb.exports=function(e,t,r,n,i,o,a){sL(r,t,n);var s=function(v){if(v===i&&f)return f;if(!fa&&v&&v in d)return d[v];switch(v){case vb:return function(){return new r(this,v)};case Ni:return function(){return new r(this,v)};case gb:return function(){return new r(this,v)}}return function(){return new r(this)}},l=t+" Iterator",c=!1,d=e.prototype,u=d[Ri]||d["@@iterator"]||i&&d[i],f=!fa&&u||s(i),p=t==="Array"&&d.entries||u,m,g,_;if(p&&(m=fb(p.call(new e)),m!==Object.prototype&&m.next&&(!da&&fb(m)!==mb&&(pb?pb(m,mb):aL(m[Ri])||Lu(m,Ri,yb)),lL(m,l,!0,!0),da&&(hb[l]=yb))),dL&&i===Ni&&u&&u.name!==Ni&&(!da&&fL?cL(d,"name",Ni):(c=!0,f=function(){return oL(u,this)})),i)if(g={values:s(Ni),keys:o?f:s(vb),entries:s(gb)},a)for(_ in g)(fa||c||!(_ in d))&&Lu(d,_,g[_]);else iL({target:t,proto:!0,forced:fa||c},g);return(!da||a)&&d[Ri]!==f&&Lu(d,Ri,f,{name:i}),hb[t]=f,g}});var ha=h((W6,Ib)=>{"use strict";Ib.exports=function(e,t){return{value:e,done:t}}});var va=h((K6,Ab)=>{"use strict";var pL=dr(),qu=h_(),Sb=Mr(),xb=jr(),hL=Wt().f,mL=pa(),ma=ha(),vL=tn(),gL=Qe(),kb="Array Iterator",yL=xb.set,_L=xb.getterFor(kb);Ab.exports=mL(Array,"Array",function(e,t){yL(this,{type:kb,target:pL(e),index:0,kind:t})},function(){var e=_L(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,ma(void 0,!0);switch(e.kind){case"keys":return ma(r,!1);case"values":return ma(t[r],!1)}return ma([r,t[r]],!1)},"values");var Eb=Sb.Arguments=Sb.Array;qu("keys");qu("values");qu("entries");if(!vL&&gL&&Eb.name!=="values")try{hL(Eb,"name",{value:"values"})}catch(e){}});var Fu=h(()=>{});var Mu=h((X6,Tb)=>{"use strict";var bL=fe();Tb.exports=!bL(function(){return Object.isExtensible(Object.preventExtensions({}))})});var ga=h((Z6,Cb)=>{"use strict";var wL=ua();Cb.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:wL(e,n,t[n],r);return e}});var Uu=h(Pb=>{"use strict";var IL=Eu(),SL=sa(),EL=SL.concat("length","prototype");Pb.f=Object.getOwnPropertyNames||function(t){return IL(t,EL)}});var Db=h((tW,Nb)=>{"use strict";var xL=Gt(),kL=dr(),Ob=Uu().f,AL=Ii(),Rb=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],TL=function(e){try{return Ob(e)}catch(t){return AL(Rb)}};Nb.exports.f=function(t){return Rb&&xL(t)==="Window"?TL(t):Ob(kL(t))}});var qb=h((rW,Lb)=>{"use strict";var CL=fe();Lb.exports=CL(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var Ub=h((nW,Mb)=>{"use strict";var PL=fe(),OL=Ae(),RL=Gt(),Fb=qb(),ya=Object.isExtensible,NL=PL(function(){ya(1)});Mb.exports=NL||Fb?function(t){return!OL(t)||Fb&&RL(t)==="ArrayBuffer"?!1:ya?ya(t):!0}:ya});var Di=h((iW,Jb)=>{"use strict";var DL=Z(),LL=be(),qL=Ti(),FL=Ae(),ju=ct(),ML=Wt().f,jb=Uu(),UL=Db(),Bu=Ub(),jL=Ko(),BL=Mu(),Bb=!1,Qt=jL("meta"),JL=0,Ju=function(e){ML(e,Qt,{value:{objectID:"O"+JL++,weakData:{}}})},HL=function(e,t){if(!FL(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!ju(e,Qt)){if(!Bu(e))return"F";if(!t)return"E";Ju(e)}return e[Qt].objectID},$L=function(e,t){if(!ju(e,Qt)){if(!Bu(e))return!0;if(!t)return!1;Ju(e)}return e[Qt].weakData},VL=function(e){return BL&&Bb&&Bu(e)&&!ju(e,Qt)&&Ju(e),e},GL=function(){zL.enable=function(){},Bb=!0;var e=jb.f,t=LL([].splice),r={};r[Qt]=1,e(r).length&&(jb.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===Qt){t(i,o,1);break}return i},DL({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:UL.f}))},zL=Jb.exports={enable:GL,fastKey:HL,getWeakData:$L,onFreeze:VL};qL[Qt]=!0});var $b=h((oW,Hb)=>{"use strict";var WL=Je(),KL=Mr(),QL=WL("iterator"),YL=Array.prototype;Hb.exports=function(e){return e!==void 0&&(KL.Array===e||YL[QL]===e)}});var Hu=h((aW,Gb)=>{"use strict";var XL=ln(),Vb=Wo(),ZL=Nr(),eq=Mr(),tq=Je(),rq=tq("iterator");Gb.exports=function(e){if(!ZL(e))return Vb(e,rq)||Vb(e,"@@iterator")||eq[XL(e)]}});var Wb=h((sW,zb)=>{"use strict";var nq=St(),iq=Lr(),oq=zt(),aq=ui(),sq=Hu(),lq=TypeError;zb.exports=function(e,t){var r=arguments.length<2?sq(e):t;if(iq(r))return oq(nq(r,e));throw new lq(aq(e)+" is not iterable")}});var _a=h((lW,Qb)=>{"use strict";var cq=St(),Kb=zt(),uq=Wo();Qb.exports=function(e,t,r){var n,i;Kb(e);try{if(n=uq(e,"return"),!n){if(t==="throw")throw r;return r}n=cq(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return Kb(n),r}});var wa=h((cW,ew)=>{"use strict";var dq=pi(),fq=St(),pq=zt(),hq=ui(),mq=$b(),vq=sn(),Yb=Ke(),gq=Wb(),yq=Hu(),Xb=_a(),_q=TypeError,ba=function(e,t){this.stopped=e,this.result=t},Zb=ba.prototype;ew.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=dq(t,n),c,d,u,f,p,m,g,_=function(b){return c&&Xb(c,"normal",b),new ba(!0,b)},v=function(b){return i?(pq(b),s?l(b[0],b[1],_):l(b[0],b[1])):s?l(b,_):l(b)};if(o)c=e.iterator;else if(a)c=e;else{if(d=yq(e),!d)throw new _q(hq(e)+" is not iterable");if(mq(d)){for(u=0,f=vq(e);f>u;u++)if(p=v(e[u]),p&&Yb(Zb,p))return p;return new ba(!1)}c=gq(e,d)}for(m=o?e.next:c.next;!(g=fq(m,c)).done;){try{p=v(g.value)}catch(b){Xb(c,"throw",b)}if(typeof p=="object"&&p&&Yb(Zb,p))return p}return new ba(!1)}});var Ia=h((uW,tw)=>{"use strict";var bq=Ke(),wq=TypeError;tw.exports=function(e,t){if(bq(t,e))return e;throw new wq("Incorrect invocation")}});var $u=h((dW,nw)=>{"use strict";var Iq=Z(),Sq=pe(),Eq=Di(),xq=fe(),kq=qr(),Aq=wa(),Tq=Ia(),Cq=Le(),Pq=Ae(),Oq=Nr(),Rq=Oi(),Nq=Wt().f,Dq=pr().forEach,Lq=Qe(),rw=jr(),qq=rw.set,Fq=rw.getterFor;nw.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=Sq[e],s=a&&a.prototype,l={},c;if(!Lq||!Cq(a)||!(i||s.forEach&&!xq(function(){new a().entries().next()})))c=r.getConstructor(t,e,n,o),Eq.enable();else{c=t(function(f,p){qq(Tq(f,d),{type:e,collection:new a}),Oq(p)||Aq(p,f[o],{that:f,AS_ENTRIES:n})});var d=c.prototype,u=Fq(e);Dq(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(f){var p=f==="add"||f==="set";f in s&&!(i&&f==="clear")&&kq(d,f,function(m,g){var _=u(this).collection;if(!p&&i&&!Pq(m))return f==="get"?void 0:!1;var v=_[f](m===0?0:m,g);return p?this:v})}),i||Nq(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return Rq(c,e,!1,!0),l[e]=c,Iq({global:!0,forced:!0},l),i||r.setStrong(c,e,n),c}});var uw=h((fW,cw)=>{"use strict";var Mq=be(),iw=ga(),Sa=Di().getWeakData,Uq=Ia(),jq=zt(),Bq=Nr(),Vu=Ae(),Jq=wa(),aw=pr(),ow=ct(),sw=jr(),Hq=sw.set,$q=sw.getterFor,Vq=aw.find,Gq=aw.findIndex,zq=Mq([].splice),Wq=0,Ea=function(e){return e.frozen||(e.frozen=new lw)},lw=function(){this.entries=[]},Gu=function(e,t){return Vq(e.entries,function(r){return r[0]===t})};lw.prototype={get:function(e){var t=Gu(this,e);if(t)return t[1]},has:function(e){return!!Gu(this,e)},set:function(e,t){var r=Gu(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=Gq(this.entries,function(r){return r[0]===e});return~t&&zq(this.entries,t,1),!!~t}};cw.exports={getConstructor:function(e,t,r,n){var i=e(function(l,c){Uq(l,o),Hq(l,{type:t,id:Wq++,frozen:null}),Bq(c)||Jq(c,l[n],{that:l,AS_ENTRIES:r})}),o=i.prototype,a=$q(t),s=function(l,c,d){var u=a(l),f=Sa(jq(c),!0);return f===!0?Ea(u).set(c,d):f[u.id]=d,l};return iw(o,{delete:function(l){var c=a(this);if(!Vu(l))return!1;var d=Sa(l);return d===!0?Ea(c).delete(l):d&&ow(d,c.id)&&delete d[c.id]},has:function(c){var d=a(this);if(!Vu(c))return!1;var u=Sa(c);return u===!0?Ea(d).has(c):u&&ow(u,d.id)}}),iw(o,r?{get:function(c){var d=a(this);if(Vu(c)){var u=Sa(c);if(u===!0)return Ea(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 yw=h(()=>{"use strict";var Kq=Mu(),dw=pe(),Ta=be(),fw=ga(),Qq=Di(),Yq=$u(),pw=uw(),xa=Ae(),ka=jr().enforce,Xq=fe(),Zq=hu(),Fi=Object,eF=Array.isArray,Aa=Fi.isExtensible,hw=Fi.isFrozen,tF=Fi.isSealed,mw=Fi.freeze,rF=Fi.seal,nF=!dw.ActiveXObject&&"ActiveXObject"in dw,Li,vw=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},gw=Yq("WeakMap",vw,pw),fn=gw.prototype,Ca=Ta(fn.set),iF=function(){return Kq&&Xq(function(){var e=mw([]);return Ca(new gw,e,1),!hw(e)})};Zq&&(nF?(Li=pw.getConstructor(vw,"WeakMap",!0),Qq.enable(),zu=Ta(fn.delete),qi=Ta(fn.has),Wu=Ta(fn.get),fw(fn,{delete:function(e){if(xa(e)&&!Aa(e)){var t=ka(this);return t.frozen||(t.frozen=new Li),zu(this,e)||t.frozen.delete(e)}return zu(this,e)},has:function(t){if(xa(t)&&!Aa(t)){var r=ka(this);return r.frozen||(r.frozen=new Li),qi(this,t)||r.frozen.has(t)}return qi(this,t)},get:function(t){if(xa(t)&&!Aa(t)){var r=ka(this);return r.frozen||(r.frozen=new Li),qi(this,t)?Wu(this,t):r.frozen.get(t)}return Wu(this,t)},set:function(t,r){if(xa(t)&&!Aa(t)){var n=ka(this);n.frozen||(n.frozen=new Li),qi(this,t)?Ca(this,t,r):n.frozen.set(t,r)}else Ca(this,t,r);return this}})):iF()&&fw(fn,{set:function(t,r){var n;return eF(t)&&(hw(t)?n=mw:tF(t)&&(n=rF)),Ca(this,t,r),n&&n(t),this}}));var zu,qi,Wu});var _w=h(()=>{"use strict";yw()});var ww=h((gW,bw)=>{"use strict";va();Fu();_w();var oF=Rt();bw.exports=oF.WeakMap});var Sw=h((yW,Iw)=>{"use strict";Iw.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 Ku=h(()=>{"use strict";va();var aF=Sw(),sF=pe(),lF=Oi(),Ew=Mr();for(Pa in aF)lF(sF[Pa],Pa),Ew[Pa]=Ew.Array;var Pa});var kw=h((wW,xw)=>{"use strict";var cF=ww();Ku();xw.exports=cF});var Tw=h((IW,Aw)=>{Aw.exports=kw()});var Pw=h(()=>{"use strict";var uF=Z(),dF=li(),fF=Iu().indexOf,pF=bi(),Qu=dF([].indexOf),Cw=!!Qu&&1/Qu([1],1,-0)<0,hF=Cw||!pF("indexOf");uF({target:"Array",proto:!0,forced:hF},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return Cw?Qu(this,t,r)||0:fF(this,t,r)}})});var Rw=h((xW,Ow)=>{"use strict";Pw();var mF=yt();Ow.exports=mF("Array","indexOf")});var Dw=h((kW,Nw)=>{"use strict";var vF=Ke(),gF=Rw(),Yu=Array.prototype;Nw.exports=function(e){var t=e.indexOf;return e===Yu||vF(Yu,e)&&t===Yu.indexOf?gF:t}});var qw=h((AW,Lw)=>{"use strict";var yF=Dw();Lw.exports=yF});var Mw=h((TW,Fw)=>{Fw.exports=qw()});var Uw=h(()=>{"use strict";var _F=Z(),bF=pr().map,wF=_i(),IF=wF("map");_F({target:"Array",proto:!0,forced:!IF},{map:function(t){return bF(this,t,arguments.length>1?arguments[1]:void 0)}})});var Bw=h((OW,jw)=>{"use strict";Uw();var SF=yt();jw.exports=SF("Array","map")});var Hw=h((RW,Jw)=>{"use strict";var EF=Ke(),xF=Bw(),Xu=Array.prototype;Jw.exports=function(e){var t=e.map;return e===Xu||EF(Xu,e)&&t===Xu.map?xF:t}});var Vw=h((NW,$w)=>{"use strict";var kF=Hw();$w.exports=kF});var zw=h((DW,Gw)=>{Gw.exports=Vw()});var Ww=h(()=>{"use strict";var AF=Z(),TF=Qe(),CF=Pi();AF({target:"Object",stat:!0,sham:!TF},{create:CF})});var Qw=h((FW,Kw)=>{"use strict";Ww();var PF=Rt(),OF=PF.Object;Kw.exports=function(t,r){return OF.create(t,r)}});var Xw=h((MW,Yw)=>{"use strict";var RF=Qw();Yw.exports=RF});var e0=h((UW,Zw)=>{Zw.exports=Xw()});var Zu=h((jW,t0)=>{"use strict";var NF=Wt();t0.exports=function(e,t,r){return NF.f(e,t,r)}});var i0=h((BW,n0)=>{"use strict";var DF=en(),LF=Zu(),qF=Je(),FF=Qe(),r0=qF("species");n0.exports=function(e){var t=DF(e);FF&&t&&!t[r0]&&LF(t,r0,{configurable:!0,get:function(){return this}})}});var d0=h((JW,u0)=>{"use strict";var o0=Pi(),MF=Zu(),a0=ga(),UF=pi(),jF=Ia(),BF=Nr(),JF=wa(),HF=pa(),Oa=ha(),$F=i0(),Mi=Qe(),s0=Di().fastKey,c0=jr(),l0=c0.set,ed=c0.getterFor;u0.exports={getConstructor:function(e,t,r,n){var i=e(function(c,d){jF(c,o),l0(c,{type:t,index:o0(null),first:null,last:null,size:0}),Mi||(c.size=0),BF(d)||JF(d,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=ed(t),s=function(c,d,u){var f=a(c),p=l(c,d),m,g;return p?p.value=u:(f.last=p={index:g=s0(d,!0),key:d,value:u,previous:m=f.last,next:null,removed:!1},f.first||(f.first=p),m&&(m.next=p),Mi?f.size++:c.size++,g!=="F"&&(f.index[g]=p)),c},l=function(c,d){var u=a(c),f=s0(d),p;if(f!=="F")return u.index[f];for(p=u.first;p;p=p.next)if(p.key===d)return p};return a0(o,{clear:function(){for(var d=this,u=a(d),f=u.first;f;)f.removed=!0,f.previous&&(f.previous=f.previous.next=null),f=f.next;u.first=u.last=null,u.index=o0(null),Mi?u.size=0:d.size=0},delete:function(c){var d=this,u=a(d),f=l(d,c);if(f){var p=f.next,m=f.previous;delete u.index[f.index],f.removed=!0,m&&(m.next=p),p&&(p.previous=m),u.first===f&&(u.first=p),u.last===f&&(u.last=m),Mi?u.size--:d.size--}return!!f},forEach:function(d){for(var u=a(this),f=UF(d,arguments.length>1?arguments[1]:void 0),p;p=p?p.next:u.first;)for(f(p.value,p.key,this);p&&p.removed;)p=p.previous},has:function(d){return!!l(this,d)}}),a0(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)}}),Mi&&MF(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=ed(t),o=ed(n);HF(e,t,function(a,s){l0(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,Oa(void 0,!0)):Oa(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},r?"entries":"values",!r,!0),$F(t)}}});var f0=h(()=>{"use strict";var VF=$u(),GF=d0();VF("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},GF)});var p0=h(()=>{"use strict";f0()});var hr=h((zW,h0)=>{"use strict";var zF=ui(),WF=TypeError;h0.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 WF(zF(e)+" is not a set")}});var v0=h((WW,m0)=>{"use strict";m0.exports=function(e,t){return t===1?function(r,n){return r[e](n)}:function(r,n,i){return r[e](n,i)}}});var mr=h((KW,y0)=>{"use strict";var KF=en(),td=v0(),g0=KF("Set"),QF=g0.prototype;y0.exports={Set:g0,add:td("add",1),has:td("has",1),remove:td("delete",1),proto:QF}});var vr=h((QW,_0)=>{"use strict";var YF=St();_0.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,o,a;!(o=YF(i,n)).done;)if(a=t(o.value),a!==void 0)return a}});var pn=h((YW,b0)=>{"use strict";var XF=vr();b0.exports=function(e,t,r){return r?XF(e.keys(),t,!0):e.forEach(t)}});var Ra=h((XW,I0)=>{"use strict";var w0=mr(),ZF=pn(),eM=w0.Set,tM=w0.add;I0.exports=function(e){var t=new eM;return ZF(e,function(r){tM(t,r)}),t}});var hn=h((ZW,S0)=>{"use strict";S0.exports=function(e){return e.size}});var x0=h((e8,E0)=>{"use strict";E0.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var gr=h((t8,O0)=>{"use strict";var k0=Lr(),C0=zt(),A0=St(),rM=mi(),nM=x0(),T0="Invalid size",iM=RangeError,oM=TypeError,aM=Math.max,P0=function(e,t){this.set=e,this.size=aM(t,0),this.has=k0(e.has),this.keys=k0(e.keys)};P0.prototype={getIterator:function(){return nM(C0(A0(this.keys,this.set)))},includes:function(e){return A0(this.has,this.set,e)}};O0.exports=function(e){C0(e);var t=+e.size;if(t!==t)throw new oM(T0);var r=rM(t);if(r<0)throw new iM(T0);return new P0(e,r)}});var L0=h((r8,D0)=>{"use strict";var sM=hr(),N0=mr(),lM=Ra(),cM=hn(),uM=gr(),dM=pn(),fM=vr(),pM=N0.has,R0=N0.remove;D0.exports=function(t){var r=sM(this),n=uM(t),i=lM(r);return cM(r)<=n.size?dM(r,function(o){n.includes(o)&&R0(i,o)}):fM(n.getIterator(),function(o){pM(r,o)&&R0(i,o)}),i}});var yr=h((n8,q0)=>{"use strict";q0.exports=function(){return!1}});var F0=h(()=>{"use strict";var hM=Z(),mM=L0(),vM=yr(),gM=!vM("difference",function(e){return e.size===0});hM({target:"Set",proto:!0,real:!0,forced:gM},{difference:mM})});var j0=h((a8,U0)=>{"use strict";var yM=hr(),rd=mr(),_M=hn(),bM=gr(),wM=pn(),IM=vr(),SM=rd.Set,M0=rd.add,EM=rd.has;U0.exports=function(t){var r=yM(this),n=bM(t),i=new SM;return _M(r)>n.size?IM(n.getIterator(),function(o){EM(r,o)&&M0(i,o)}):wM(r,function(o){n.includes(o)&&M0(i,o)}),i}});var B0=h(()=>{"use strict";var xM=Z(),kM=fe(),AM=j0(),TM=yr(),CM=!TM("intersection",function(e){return e.size===2&&e.has(1)&&e.has(2)})||kM(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});xM({target:"Set",proto:!0,real:!0,forced:CM},{intersection:AM})});var H0=h((c8,J0)=>{"use strict";var PM=hr(),OM=mr().has,RM=hn(),NM=gr(),DM=pn(),LM=vr(),qM=_a();J0.exports=function(t){var r=PM(this),n=NM(t);if(RM(r)<=n.size)return DM(r,function(o){if(n.includes(o))return!1},!0)!==!1;var i=n.getIterator();return LM(i,function(o){if(OM(r,o))return qM(i,"normal",!1)})!==!1}});var $0=h(()=>{"use strict";var FM=Z(),MM=H0(),UM=yr(),jM=!UM("isDisjointFrom",function(e){return!e});FM({target:"Set",proto:!0,real:!0,forced:jM},{isDisjointFrom:MM})});var G0=h((f8,V0)=>{"use strict";var BM=hr(),JM=hn(),HM=pn(),$M=gr();V0.exports=function(t){var r=BM(this),n=$M(t);return JM(r)>n.size?!1:HM(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var z0=h(()=>{"use strict";var VM=Z(),GM=G0(),zM=yr(),WM=!zM("isSubsetOf",function(e){return e});VM({target:"Set",proto:!0,real:!0,forced:WM},{isSubsetOf:GM})});var K0=h((m8,W0)=>{"use strict";var KM=hr(),QM=mr().has,YM=hn(),XM=gr(),ZM=vr(),eU=_a();W0.exports=function(t){var r=KM(this),n=XM(t);if(YM(r)<n.size)return!1;var i=n.getIterator();return ZM(i,function(o){if(!QM(r,o))return eU(i,"normal",!1)})!==!1}});var Q0=h(()=>{"use strict";var tU=Z(),rU=K0(),nU=yr(),iU=!nU("isSupersetOf",function(e){return!e});tU({target:"Set",proto:!0,real:!0,forced:iU},{isSupersetOf:rU})});var X0=h((y8,Y0)=>{"use strict";var oU=hr(),nd=mr(),aU=Ra(),sU=gr(),lU=vr(),cU=nd.add,uU=nd.has,dU=nd.remove;Y0.exports=function(t){var r=oU(this),n=sU(t).getIterator(),i=aU(r);return lU(n,function(o){uU(r,o)?dU(i,o):cU(i,o)}),i}});var Z0=h(()=>{"use strict";var fU=Z(),pU=X0(),hU=yr();fU({target:"Set",proto:!0,real:!0,forced:!hU("symmetricDifference")},{symmetricDifference:pU})});var tI=h((w8,eI)=>{"use strict";var mU=hr(),vU=mr().add,gU=Ra(),yU=gr(),_U=vr();eI.exports=function(t){var r=mU(this),n=yU(t).getIterator(),i=gU(r);return _U(n,function(o){vU(i,o)}),i}});var rI=h(()=>{"use strict";var bU=Z(),wU=tI(),IU=yr();bU({target:"Set",proto:!0,real:!0,forced:!IU("union")},{union:wU})});var Ui=h((E8,nI)=>{"use strict";var SU=ln(),EU=String;nI.exports=function(e){if(SU(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return EU(e)}});var sI=h((x8,aI)=>{"use strict";var id=be(),xU=mi(),kU=Ui(),AU=Dr(),TU=id("".charAt),iI=id("".charCodeAt),CU=id("".slice),oI=function(e){return function(t,r){var n=kU(AU(t)),i=xU(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=iI(n,i),a<55296||a>56319||i+1===o||(s=iI(n,i+1))<56320||s>57343?e?TU(n,i):a:e?CU(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};aI.exports={codeAt:oI(!1),charAt:oI(!0)}});var dI=h(()=>{"use strict";var PU=sI().charAt,OU=Ui(),cI=jr(),RU=pa(),lI=ha(),uI="String Iterator",NU=cI.set,DU=cI.getterFor(uI);RU(String,"String",function(e){NU(this,{type:uI,string:OU(e),index:0})},function(){var t=DU(this),r=t.string,n=t.index,i;return n>=r.length?lI(void 0,!0):(i=PU(r,n),t.index+=i.length,lI(i,!1))})});var pI=h((T8,fI)=>{"use strict";va();Fu();p0();F0();B0();$0();z0();Q0();Z0();rI();dI();var LU=Rt();fI.exports=LU.Set});var mI=h((C8,hI)=>{"use strict";var qU=pI();Ku();hI.exports=qU});var gI=h((P8,vI)=>{vI.exports=mI()});var _I=h(yI=>{"use strict";yI.f=Object.getOwnPropertySymbols});var SI=h((R8,II)=>{"use strict";var bI=Qe(),FU=be(),MU=St(),UU=fe(),od=xu(),jU=_I(),BU=wc(),JU=rn(),HU=$o(),mn=Object.assign,wI=Object.defineProperty,$U=FU([].concat);II.exports=!mn||UU(function(){if(bI&&mn({b:1},mn(wI({},"a",{enumerable:!0,get:function(){wI(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}),mn({},e)[r]!==7||od(mn({},t)).join("")!==n})?function(t,r){for(var n=JU(t),i=arguments.length,o=1,a=jU.f,s=BU.f;i>o;)for(var l=HU(arguments[o++]),c=a?$U(od(l),a(l)):od(l),d=c.length,u=0,f;d>u;)f=c[u++],(!bI||MU(s,l,f))&&(n[f]=l[f]);return n}:mn});var xI=h(()=>{"use strict";var VU=Z(),EI=SI();VU({target:"Object",stat:!0,arity:2,forced:Object.assign!==EI},{assign:EI})});var AI=h((L8,kI)=>{"use strict";xI();var GU=Rt();kI.exports=GU.Object.assign});var CI=h((q8,TI)=>{"use strict";var zU=AI();TI.exports=zU});var OI=h((F8,PI)=>{PI.exports=CI()});var ad=h((M8,RI)=>{"use strict";RI.exports=`
|
|
20
|
-
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var LI=h((U8,DI)=>{"use strict";var WU=be(),KU=Dr(),QU=Ui(),ld=ad(),NI=WU("".replace),YU=RegExp("^["+ld+"]+"),XU=RegExp("(^|[^"+ld+"])["+ld+"]+$"),sd=function(e){return function(t){var r=QU(KU(t));return e&1&&(r=NI(r,YU,"")),e&2&&(r=NI(r,XU,"$1")),r}};DI.exports={start:sd(1),end:sd(2),trim:sd(3)}});var UI=h((j8,MI)=>{"use strict";var ZU=bu().PROPER,ej=fe(),qI=ad(),FI="\u200B\x85\u180E";MI.exports=function(e){return ej(function(){return!!qI[e]()||FI[e]()!==FI||ZU&&qI[e].name!==e})}});var jI=h(()=>{"use strict";var tj=Z(),rj=LI().trim,nj=UI();tj({target:"String",proto:!0,forced:nj("trim")},{trim:function(){return rj(this)}})});var JI=h((H8,BI)=>{"use strict";jI();var ij=yt();BI.exports=ij("String","trim")});var $I=h(($8,HI)=>{"use strict";var oj=Ke(),aj=JI(),cd=String.prototype;HI.exports=function(e){var t=e.trim;return typeof e=="string"||e===cd||oj(cd,e)&&t===cd.trim?aj:t}});var GI=h((V8,VI)=>{"use strict";var sj=$I();VI.exports=sj});var WI=h((G8,zI)=>{zI.exports=GI()});var YI=h(()=>{"use strict";var lj=Z(),KI=gi(),cj=zc(),uj=Ae(),QI=wu(),dj=sn(),fj=dr(),pj=Xc(),hj=Je(),mj=_i(),vj=Ii(),gj=mj("slice"),yj=hj("species"),ud=Array,_j=Math.max;lj({target:"Array",proto:!0,forced:!gj},{slice:function(t,r){var n=fj(this),i=dj(n),o=QI(t,i),a=QI(r===void 0?i:r,i),s,l,c;if(KI(n)&&(s=n.constructor,cj(s)&&(s===ud||KI(s.prototype))?s=void 0:uj(s)&&(s=s[yj],s===null&&(s=void 0)),s===ud||s===void 0))return vj(n,o,a);for(l=new(s===void 0?ud:s)(_j(a-o,0)),c=0;o<a;o++,c++)o in n&&pj(l,c,n[o]);return l.length=c,l}})});var ZI=h((K8,XI)=>{"use strict";YI();var bj=yt();XI.exports=bj("Array","slice")});var tS=h((Q8,eS)=>{"use strict";var wj=Ke(),Ij=ZI(),dd=Array.prototype;eS.exports=function(e){var t=e.slice;return e===dd||wj(dd,e)&&t===dd.slice?Ij:t}});var nS=h((Y8,rS)=>{"use strict";var Sj=tS();rS.exports=Sj});var oS=h((X8,iS)=>{iS.exports=nS()});var fd=k(()=>{});var sS=h((e7,aS)=>{"use strict";var Ej=Ae(),xj=Gt(),kj=Je(),Aj=kj("match");aS.exports=function(e){var t;return Ej(e)&&((t=e[Aj])!==void 0?!!t:xj(e)==="RegExp")}});var cS=h((t7,lS)=>{"use strict";var Tj=sS(),Cj=TypeError;lS.exports=function(e){if(Tj(e))throw new Cj("The method doesn't accept regular expressions");return e}});var dS=h((r7,uS)=>{"use strict";var Pj=Je(),Oj=Pj("match");uS.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[Oj]=!1,"/./"[e](t)}catch(n){}}return!1}});var hS=h(()=>{"use strict";var Rj=Z(),Nj=li(),Dj=Mc().f,Lj=$c(),fS=Ui(),qj=cS(),Fj=Dr(),Mj=dS(),Uj=tn(),jj=Nj("".slice),Bj=Math.min,pS=Mj("startsWith"),Jj=!Uj&&!pS&&!!function(){var e=Dj(String.prototype,"startsWith");return e&&!e.writable}();Rj({target:"String",proto:!0,forced:!Jj&&!pS},{startsWith:function(t){var r=fS(Fj(this));qj(t);var n=Lj(Bj(arguments.length>1?arguments[1]:void 0,r.length)),i=fS(t);return jj(r,n,n+i.length)===i}})});var vS=h((o7,mS)=>{"use strict";hS();var Hj=yt();mS.exports=Hj("String","startsWith")});var yS=h((a7,gS)=>{"use strict";var $j=Ke(),Vj=vS(),pd=String.prototype;gS.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===pd||$j(pd,e)&&t===pd.startsWith?Vj:t}});var bS=h((s7,_S)=>{"use strict";var Gj=yS();_S.exports=Gj});var IS=h((l7,wS)=>{wS.exports=bS()});var AS=h((c7,kS)=>{"use strict";var ES=be(),zj=Lr(),Wj=Ae(),Kj=ct(),SS=Ii(),Qj=Zr(),xS=Function,Yj=ES([].concat),Xj=ES([].join),hd={},Zj=function(e,t,r){if(!Kj(hd,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";hd[t]=xS("C,a","return new C("+Xj(n,",")+")")}return hd[t](e,r)};kS.exports=Qj?xS.bind:function(t){var r=zj(this),n=r.prototype,i=SS(arguments,1),o=function(){var s=Yj(i,SS(arguments));return this instanceof o?Zj(r,s.length,s):r.apply(t,s)};return Wj(n)&&(o.prototype=n),o}});var CS=h(()=>{"use strict";var e2=Z(),TS=AS();e2({target:"Function",proto:!0,forced:Function.bind!==TS},{bind:TS})});var OS=h((f7,PS)=>{"use strict";CS();var t2=yt();PS.exports=t2("Function","bind")});var NS=h((p7,RS)=>{"use strict";var r2=Ke(),n2=OS(),md=Function.prototype;RS.exports=function(e){var t=e.bind;return e===md||r2(md,e)&&t===md.bind?n2:t}});var LS=h((h7,DS)=>{"use strict";var i2=NS();DS.exports=i2});var FS=h((m7,qS)=>{qS.exports=LS()});function Xa(e,t){we.__h&&we.__h(ce,e,Gi||t),Gi=0;var r=ce.__H||(ce.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Ut(e){return Gi=1,o2(xE,e)}function o2(e,t,r){var n=Xa(bn++,2);if(n.t=e,!n.__c&&(n.__=[xE(void 0,t),function(s){var l=n.__N?n.__N[0]:n.__[0],c=n.t(l,s);l!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=ce,!ce.__f)){var i=function(s,l,c){var d;if(!n.__c.__H)return!0;var u=(0,qd.default)(d=n.__c.__H.__).call(d,function(p){return!!p.__c});if((0,bE.default)(u).call(u,function(p){return!p.__N}))return!o||o.call(this,s,l,c);var f=n.__c.props!==s;return(0,Te.default)(u).call(u,function(p){if(p.__N){var m=p.__[0];p.__=p.__N,p.__N=void 0,m!==p.__[0]&&(f=!0)}}),o&&o.call(this,s,l,c)||f};ce.__f=!0;var o=ce.shouldComponentUpdate,a=ce.componentWillUpdate;ce.componentWillUpdate=function(s,l,c){if(this.__e){var d=o;o=void 0,i(s,l,c),o=d}a&&a.call(this,s,l,c)},ce.shouldComponentUpdate=i}return n.__N||n.__}function Jr(e,t){var r=Xa(bn++,3);!we.__s&&EE(r.__H,t)&&(r.__=e,r.u=t,ce.__H.__h.push(r))}function Ji(e){return Gi=5,Bd(function(){return{current:e}},[])}function Bd(e,t){var r=Xa(bn++,7);return EE(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function _t(e,t){return Gi=8,Bd(function(){return e},t)}function a2(e){var t=ce.context[e.__c],r=Xa(bn++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(ce)),t.props.value):e.__}function s2(){for(var e;e=SE.shift();)if(e.__P&&e.__H)try{var t,r;(0,Te.default)(t=e.__H.__h).call(t,Fa),(0,Te.default)(r=e.__H.__h).call(r,Ed),e.__H.__h=[]}catch(n){e.__H.__h=[],we.__e(n,e.__v)}}function l2(e){var t,r=function(){clearTimeout(n),VS&&cancelAnimationFrame(t),(0,Mt.default)(e)},n=(0,Mt.default)(r,100);VS&&(t=requestAnimationFrame(r))}function Fa(e){var t=ce,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ce=t}function Ed(e){var t=ce;e.__c=e.__(),ce=t}function EE(e,t){return!e||e.length!==t.length||(0,Va.default)(t).call(t,function(r,n){return r!==e[n]})}function xE(e,t){return typeof t=="function"?t(e):t}function c2(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function xd(){throw new Error("setTimeout has not been defined")}function kd(){throw new Error("clearTimeout has not been defined")}function AE(e){if(Nt===Mt.default)return(0,Mt.default)(e,0);if((Nt===xd||!Nt)&&Mt.default)return Nt=Mt.default,(0,Mt.default)(e,0);try{return Nt(e,0)}catch(t){try{return Nt.call(null,e,0)}catch(r){return Nt.call(this,e,0)}}}function u2(e){if(Dt===clearTimeout)return clearTimeout(e);if((Dt===kd||!Dt)&&clearTimeout)return Dt=clearTimeout,clearTimeout(e);try{return Dt(e)}catch(t){try{return Dt.call(null,e)}catch(r){return Dt.call(this,e)}}}function d2(){!gn||!_r||(gn=!1,_r.length?Yt=(0,Ya.default)(_r).call(_r,Yt):Ma=-1,Yt.length&&TE())}function TE(){if(!gn){var e=AE(d2);gn=!0;for(var t=Yt.length;t;){for(_r=Yt,Yt=[];++Ma<t;)_r&&_r[Ma].run();Ma=-1,t=Yt.length}_r=null,gn=!1,u2(e)}}function CE(e,t){this.fun=e,this.array=t}function Zt(){}function h2(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 m2(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 _2(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 RE(e){return(0,Ud.default)(e).call(e)}function b2(e,t){return(e=t.exec(e))?e[0]:e}function Q(e,t,r){return e.replace(t,r)}function Ad(e,t){return(0,Xt.default)(e).call(e,t)}function qe(e,t){return e.charCodeAt(t)|0}function zi(e,t,r){return(0,jd.default)(e).call(e,t,r)}function Lt(e){return e.length}function Vd(e){return e.length}function Na(e,t){return t.push(e),e}function w2(e,t){return(0,Vi.default)(e).call(e,t).join("")}function ts(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:es,column:wn,length:a,return:""}}function ji(e,t){return y2(ts("",null,null,"",null,null,0),e,{length:-e.length},t)}function I2(){return Ie}function S2(){return Ie=et>0?qe(Sn,--et):0,wn--,Ie===10&&(wn=1,es--),Ie}function ut(){return Ie=et<NE?qe(Sn,et++):0,wn++,Ie===10&&(wn=1,es++),Ie}function jt(){return qe(Sn,et)}function Ua(){return et}function Zi(e,t){return zi(Sn,e,t)}function Wi(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 DE(e){return es=wn=1,NE=Lt(Sn=e),et=0,[]}function LE(e){return Sn="",e}function ja(e){return RE(Zi(et-1,Td(e===91?e+2:e===40?e+1:e)))}function E2(e){for(;(Ie=jt())&&Ie<33;)ut();return Wi(e)>2||Wi(Ie)>3?"":" "}function x2(e,t){for(;--t&&ut()&&!(Ie<48||Ie>102||Ie>57&&Ie<65||Ie>70&&Ie<97););return Zi(e,Ua()+(t<6&&jt()==32&&ut()==32))}function Td(e){for(;ut();)switch(Ie){case e:return et;case 34:case 39:e!==34&&e!==39&&Td(Ie);break;case 40:e===41&&Td(e);break;case 92:ut();break}return et}function k2(e,t){for(;ut()&&e+Ie!==57&&!(e+Ie===84&&jt()===47););return"/*"+Zi(t,et-1)+"*"+Za(e===47?e:ut())}function A2(e){for(;!Wi(jt());)ut();return Zi(e,et)}function T2(e){return LE(Ba("",null,null,null,[""],e=DE(e),0,[0],e))}function Ba(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,f=0,p=0,m=0,g=1,_=1,v=1,b=0,I="",A=i,P=o,O=n,x=I;_;)switch(m=b,b=ut()){case 40:if(m!=108&&qe(x,u-1)==58){Ad(x+=Q(ja(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:x+=ja(b);break;case 9:case 10:case 13:case 32:x+=E2(m);break;case 92:x+=x2(Ua()-1,7);continue;case 47:switch(jt()){case 42:case 47:Na(C2(k2(ut(),Ua()),t,r),l);break;default:x+="/"}break;case 123*g:s[c++]=Lt(x)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:_=0;case 59+d:p>0&&Lt(x)-u&&Na(p>32?zS(x+";",n,r,u-1):zS(Q(x," ","")+";",n,r,u-2),l);break;case 59:x+=";";default:if(Na(O=GS(x,t,r,c,d,i,s,I,A=[],P=[],u),o),b===123)if(d===0)Ba(x,t,O,O,A,o,u,s,P);else switch(f===99&&qe(x,3)===110?100:f){case 100:case 109:case 115:Ba(e,O,O,n&&Na(GS(e,O,O,0,0,i,s,I,i,A=[],u),P),i,P,u,s,n?A:P);break;default:Ba(x,O,O,O,[""],P,0,s,P)}}c=d=p=0,g=v=1,I=x="",u=a;break;case 58:u=1+Lt(x),p=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&S2()==125)continue}switch(x+=Za(b),b*g){case 38:v=d>0?1:(x+="\f",-1);break;case 44:s[c++]=(Lt(x)-1)*v,v=1;break;case 64:jt()===45&&(x+=ja(ut())),f=jt(),d=u=Lt(I=x+=A2(Ua())),b++;break;case 45:m===45&&Lt(x)==2&&(g=0)}}return o}function GS(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,f=i===0?o:[""],p=Vd(f),m=0,g=0,_=0;m<n;++m)for(var v=0,b=zi(e,u+1,u=g2(g=a[m])),I=e;v<p;++v)(I=RE(g>0?f[v]+" "+b:Q(b,/&\f/g,f[v])))&&(l[_++]=I);return ts(e,t,r,i===0?Hd:s,l,c,d)}function C2(e,t,r){return ts(e,t,r,Jd,Za(I2()),zi(e,2,-2),0)}function zS(e,t,r,n){return ts(e,t,r,$d,zi(e,0,n),zi(e,n+1,-1),n)}function yn(e,t){for(var r="",n=Vd(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function P2(e,t,r,n){switch(e.type){case v2:case $d:return e.return=e.return||e.value;case Jd:return"";case OE:return e.return=e.value+"{"+yn(e.children,n)+"}";case Hd:e.value=e.props.join(",")}return Lt(r=yn(e.children,n))?e.return=e.value+"{"+r+"}":""}function O2(e){var t=Vd(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 R2(e){return function(t){t.root||(t=t.return)&&e(t)}}function FE(e,t){switch(_2(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+za+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+Q(e,/(\w+).+(:[^]+)/,$+"box-$1$2"+He+"flex-$1$2")+e;case 5443:return $+e+He+"flex-item-"+Q(e,/flex-|-self/,"")+e;case 4675:return $+e+He+"flex-line-pack"+Q(e,/align-content|flex-|-self/,"")+e;case 5548:return $+e+He+Q(e,"shrink","negative")+e;case 5292:return $+e+He+Q(e,"basis","preferred-size")+e;case 6060:return $+"box-"+Q(e,"-grow","")+$+e+He+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"+He+"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(Lt(e)-1-t>6)switch(qe(e,t+1)){case 109:if(qe(e,t+4)!==45)break;case 102:return Q(e,/(.+:)(.+)-([^]+)/,"$1"+$+"$2-$3$1"+za+(qe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ad(e,"stretch")?FE(Q(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(qe(e,t+1)!==115)break;case 6444:switch(qe(e,Lt(e)-3-(~Ad(e,"!important")&&10))){case 107:return Q(e,":",":"+$)+e;case 101:return Q(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+Q(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return $+e+He+Q(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return $+e+He+Q(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return $+e+He+e+e}return e}function UE(){if(QS)return Da.exports;QS=1;let e=UE();return Da.exports={default:e},Da.exports.default=e,Da.exports}function Ki(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 G2(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 W2(e){var t=(0,wE.default)(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function Qi(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 qt={name:i.name,styles:i.styles,next:qt},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)qt={name:a.name,styles:a.styles,next:qt},a=a.next;var s=o.styles+";";return s}return Y2(e,t,r)}case"function":{if(e!==void 0){var l=qt,c=r(e);return qt=l,Qi(e,t,c)}break}}var d=r;if(t==null)return d;var u=t[d];return u!==void 0?u:d}function Y2(e,t,r){var n="";if((0,$i.default)(r))for(var i=0;i<r.length;i++)n+=Qi(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]+"}":YS(s)&&(n+=gd(o)+":"+XS(o,s)+";")}else if((0,$i.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)YS(a[l])&&(n+=gd(o)+":"+XS(o,a[l])+";");else{var c=Qi(e,t,a);switch(o){case"animation":case"animationName":{n+=gd(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function br(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="";qt=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=Qi(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Qi(r,t,e[s]),n){var l=o;i+=l[s]}ZS.lastIndex=0;for(var c="",d;(d=ZS.exec(i))!==null;)c+="-"+d[1];var u=G2(i)+c;return{name:u,styles:i,next:qt}}function D(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return br(t)}function lB(e,t,r){var n=[],i=Ki(e,n,r);return n.length<2?r:i+t(n)}function y(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:--dB,__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 R.vnode&&R.vnode(c),c}function eo(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=Ut(e());return Jr(()=>{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 dJ(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 QE(e){let t=window.getComputedStyle(document.body).transform,r="";t&&t!=="none"&&(r=dJ(t)),e.style.transform=r,e.style.transformOrigin="0 0"}function fJ(e){let t=()=>QE(e);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}}function mJ(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=hJ(()=>{t&&n()});return e==="Image"?y("div",{className:i,style:{borderRadius:"8px"},children:Be("img",B(T({},a),{ref:c,src:t!=null?t:"",style:T({display:"block",width:"100%",height:"auto",objectFit:"cover",maxWidth:"100%",maxHeight:"100%",aspectRatio:"1 / 1",borderRadius:"8px"},o||{})}))}):y("div",B(T({},a),{ref:c,className:i,children:r}))}function vJ(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?Be(i.type,B(T({},i.props),{style:B(T({},i.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0}),key:i.key||o})):i):e&&typeof e=="object"&&"type"in e?Be(e.type,B(T({},e.props),{style:B(T({},e.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0})})):e}function wJ(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 dE(e,t,r){return ns.call(t,"css")?y(Kd,$E(e,t),r):y(e,t,r)}function AJ(e,t,r){return ns.call(t,"css")?y(Kd,$E(e,t),r):y(e,t,r)}function Nd({children:e,values:t={},style:r}){let n=e.split(/({{\s*\w+\s*}})/g);return y("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?y(De,{children:t[s]},o):null}return y(De,{children:i},o)})})}function PJ({src:e,alt:t="",width:r=120,height:n=120,top:i="-60px",style:o={}}){let[a,s]=Ut(!1);return a?null:y("div",{style:T({position:"absolute",top:i,left:"50%",transform:"translateX(-50%)",zIndex:10,width:r,height:n},o),children:y("img",{src:e,alt:t,width:r,height:n,style:{display:"block",width:"100%",height:"100%",objectFit:"contain"},onError:()=>s(!0)})})}function NJ({children:e,style:t}){return y("div",{style:`${OJ.styles} ${t}`,children:[e,y("svg",{style:`${RJ.styles} `,width:"18",height:"10",viewBox:"0 0 18 10",children:[y("polygon",{points:"9,10 0,1 18,1",fill:"#ffffff52"}),y("polygon",{points:"9,9 2,1 16,1",fill:"#4F396D"})]})]})}function zJ(e,t){return Fe(e,0)^45?(((t<<2^Fe(e,0))<<2^Fe(e,1))<<2^Fe(e,2))<<2^Fe(e,3):0}function cx(e){return(0,Ud.default)(e).call(e)}function WJ(e,t){return(e=t.exec(e))?e[0]:e}function G(e,t,r){return e.replace(t,r)}function Dd(e,t){return(0,Xt.default)(e).call(e,t)}function Fe(e,t){return e.charCodeAt(t)|0}function Yi(e,t,r){return(0,jd.default)(e).call(e,t,r)}function Ft(e){return e.length}function Zd(e){return e.length}function qa(e,t){return t.push(e),e}function KJ(e,t){return(0,Vi.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:ss,column:In,length:a,return:""}}function Bi(e,t){return GJ(ls("",null,null,"",null,null,0),e,{length:-e.length},t)}function QJ(){return Se}function YJ(){return Se=tt>0?Fe(kn,--tt):0,In--,Se===10&&(In=1,ss--),Se}function dt(){return Se=tt<ux?Fe(kn,tt++):0,In++,Se===10&&(In=1,ss++),Se}function Bt(){return Fe(kn,tt)}function Ja(){return tt}function ro(e,t){return Yi(kn,e,t)}function Xi(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 dx(e){return ss=In=1,ux=Ft(kn=e),tt=0,[]}function fx(e){return kn="",e}function Ha(e){return cx(ro(tt-1,Ld(e===91?e+2:e===40?e+1:e)))}function XJ(e){for(;(Se=Bt())&&Se<33;)dt();return Xi(e)>2||Xi(Se)>3?"":" "}function ZJ(e,t){for(;--t&&dt()&&!(Se<48||Se>102||Se>57&&Se<65||Se>70&&Se<97););return ro(e,Ja()+(t<6&&Bt()==32&&dt()==32))}function Ld(e){for(;dt();)switch(Se){case e:return tt;case 34:case 39:e!==34&&e!==39&&Ld(Se);break;case 40:e===41&&Ld(e);break;case 92:dt();break}return tt}function e5(e,t){for(;dt()&&e+Se!==57&&!(e+Se===84&&Bt()===47););return"/*"+ro(t,tt-1)+"*"+as(e===47?e:dt())}function t5(e){for(;!Xi(Bt());)dt();return ro(e,tt)}function r5(e){return fx($a("",null,null,null,[""],e=dx(e),0,[0],e))}function $a(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,f=0,p=0,m=0,g=1,_=1,v=1,b=0,I="",A=i,P=o,O=n,x=I;_;)switch(m=b,b=dt()){case 40:if(m!=108&&Fe(x,u-1)==58){Dd(x+=G(Ha(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:x+=Ha(b);break;case 9:case 10:case 13:case 32:x+=XJ(m);break;case 92:x+=ZJ(Ja()-1,7);continue;case 47:switch(Bt()){case 42:case 47:qa(n5(e5(dt(),Ja()),t,r),l);break;default:x+="/"}break;case 123*g:s[c++]=Ft(x)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:_=0;case 59+d:v==-1&&(x=G(x,/\f/g,"")),p>0&&Ft(x)-u&&qa(p>32?pE(x+";",n,r,u-1):pE(G(x," ","")+";",n,r,u-2),l);break;case 59:x+=";";default:if(qa(O=fE(x,t,r,c,d,i,s,I,A=[],P=[],u),o),b===123)if(d===0)$a(x,t,O,O,A,o,u,s,P);else switch(f===99&&Fe(x,3)===110?100:f){case 100:case 108:case 109:case 115:$a(e,O,O,n&&qa(fE(e,O,O,0,0,i,s,I,i,A=[],u),P),i,P,u,s,n?A:P);break;default:$a(x,O,O,O,[""],P,0,s,P)}}c=d=p=0,g=v=1,I=x="",u=a;break;case 58:u=1+Ft(x),p=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&YJ()==125)continue}switch(x+=as(b),b*g){case 38:v=d>0?1:(x+="\f",-1);break;case 44:s[c++]=(Ft(x)-1)*v,v=1;break;case 64:Bt()===45&&(x+=Ha(dt())),f=Bt(),d=u=Ft(I=x+=t5(Ja())),b++;break;case 45:m===45&&Ft(x)==2&&(g=0)}}return o}function fE(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,f=i===0?o:[""],p=Zd(f),m=0,g=0,_=0;m<n;++m)for(var v=0,b=Yi(e,u+1,u=VJ(g=a[m])),I=e;v<p;++v)(I=cx(g>0?f[v]+" "+b:G(b,/&\f/g,f[v])))&&(l[_++]=I);return ls(e,t,r,i===0?Yd:s,l,c,d)}function n5(e,t,r){return ls(e,t,r,sx,as(QJ()),Yi(e,2,-2),0)}function pE(e,t,r,n){return ls(e,t,r,Xd,Yi(e,0,n),Yi(e,n+1,-1),n)}function _n(e,t){for(var r="",n=Zd(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function i5(e,t,r,n){switch(e.type){case $J:if(e.children.length)break;case HJ:case Xd:return e.return=e.return||e.value;case sx:return"";case lx:return e.return=e.value+"{"+_n(e.children,n)+"}";case Yd:e.value=e.props.join(",")}return Ft(r=_n(e.children,n))?e.return=e.value+"{"+r+"}":""}function o5(e){var t=Zd(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 a5(e){return function(t){t.root||(t=t.return)&&e(t)}}function px(e,t){switch(zJ(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+Qa+e+$e+e+e;case 6828:case 4268:return V+e+$e+e+e;case 6165:return V+e+$e+"flex-"+e+e;case 5187:return V+e+G(e,/(\w+).+(:[^]+)/,V+"box-$1$2"+$e+"flex-$1$2")+e;case 5443:return V+e+$e+"flex-item-"+G(e,/flex-|-self/,"")+e;case 4675:return V+e+$e+"flex-line-pack"+G(e,/align-content|flex-|-self/,"")+e;case 5548:return V+e+$e+G(e,"shrink","negative")+e;case 5292:return V+e+$e+G(e,"basis","preferred-size")+e;case 6060:return V+"box-"+G(e,"-grow","")+V+e+$e+G(e,"grow","positive")+e;case 4554:return V+G(e,/([^-])(transform)/g,"$1"+V+"$2")+e;case 6187:return G(G(G(e,/(zoom-|grab)/,V+"$1"),/(image-set)/,V+"$1"),e,"")+e;case 5495:case 3959:return G(e,/(image-set\([^]*)/,V+"$1$`$1");case 4968:return G(G(e,/(.+:)(flex-)?(.*)/,V+"box-pack:$3"+$e+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+V+e+e;case 4095:case 3583:case 4068:case 2532:return G(e,/(.+)-inline(.+)/,V+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ft(e)-1-t>6)switch(Fe(e,t+1)){case 109:if(Fe(e,t+4)!==45)break;case 102:return G(e,/(.+:)(.+)-([^]+)/,"$1"+V+"$2-$3$1"+Qa+(Fe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Dd(e,"stretch")?px(G(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Fe(e,t+1)!==115)break;case 6444:switch(Fe(e,Ft(e)-3-(~Dd(e,"!important")&&10))){case 107:return G(e,":",":"+V)+e;case 101:return G(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+V+(Fe(e,14)===45?"inline-":"")+"box$3$1"+V+"$2$3$1"+$e+"$2box$3")+e}break;case 5936:switch(Fe(e,t+11)){case 114:return V+e+$e+G(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return V+e+$e+G(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return V+e+$e+G(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return V+e+$e+e+e}return e}function mE(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Id(e,t,r){var n=[],i=Ki(e,n,r);return n.length<2?r:i+t(n)}function yE(e){if(e==="top"){let t=0;hx.forEach((r,n)=>{let i=r.querySelector(".toast");i&&(n===0?i.style.top=`max(${vE}px, env(safe-area-inset-top))`:i.style.top=`calc(max(${vE}px, env(safe-area-inset-top)) + ${t}px)`,t+=i.offsetHeight+gE)})}else if(e==="center"){let t=0;mx.forEach(r=>{let n=r.querySelector(".toast");n&&(n.style.top=`calc(50% + ${t}px)`,t+=n.offsetHeight+gE)})}}function no(){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 Hi.acquire(),c=l.contentDocument;if(c)t=c.createElement("div"),t.id="loading-root",c.body.appendChild(t),ur(y(S5,{}),t);else throw new Error("Iframe document is not available.")}catch(l){console.error("[LoadingManager] Failed to show loading:",l),r=0,e=!1,Hi.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&&(ur(null,t),(a=t.parentNode)==null||a.removeChild(t),t=null),Hi.release()))};return{show:i,hide:o,get isLoading(){return e}}}var qd,bE,Te,Ya,Va,Mt,Ga,$i,Fd,Xt,Vi,wE,IE,Md,Ud,jd,b7,Sd,bn,ce,vd,MS,Gi,SE,we,US,jS,BS,JS,HS,$S,VS,kE,ve,Nt,Dt,Yt,gn,_r,Ma,f2,Ce,p2,PE,He,za,$,Jd,Hd,$d,v2,OE,g2,Za,y2,es,wn,NE,et,Ie,Sn,N2,D2,L2,WS,q2,F2,M2,U2,j2,qE,B2,KS,J2,H2,$2,ME,Da,QS,V2,Gd,rs,z2,K2,Q2,jE,YS,gd,XS,ZS,qt,X2,BE,JE,eE,ns,zd,HE,Wd,is,Z2,eB,tB,rB,nB,Cd,Pd,$E,iB,Kd,oB,tE,aB,sB,cB,uB,yd,rE,_d,bd,dB,wd,fB,pB,hB,mB,vB,gB,nE,yB,_B,iE,bB,wB,oE,IB,SB,aE,EB,xB,kB,AB,TB,CB,PB,OB,sE,RB,NB,DB,LB,qB,FB,MB,UB,lE,jB,BB,JB,HB,$B,VB,GB,zB,WB,KB,QB,YB,XB,ZB,eJ,tJ,rJ,nJ,iJ,oJ,aJ,sJ,lJ,cJ,VE,GE,zE,Od,uJ,WE,KE,Wa,Hi,cE,pJ,os,hJ,YE,XE,ZE,gJ,yJ,_J,Rd,bJ,ex,Ka,to,En,uE,Br,tx,vn,IJ,SJ,EJ,xJ,kJ,La,rx,Qd,he,TJ,CJ,OJ,RJ,kt,DJ,LJ,nx,ix,ox,ax,xn,qJ,FJ,MJ,UJ,jJ,BJ,JJ,$e,Qa,V,sx,Yd,Xd,HJ,lx,$J,VJ,as,GJ,ss,In,ux,tt,Se,kn,s5,l5,c5,hE,u5,d5,f5,p5,h5,m5,v5,g5,y5,_5,b5,w5,vE,gE,hx,mx,Hr,_E,I5,S5,w7,er=k(()=>{"use strict";Xr();qd=ie(ug(),1),bE=ie(bg(),1),Te=ie(Ng(),1),Ya=ie(Wg(),1),Va=ie(ny(),1),Mt=ie(wy(),1);na();na();Ga=ie(o_(),1),$i=ie(f_(),1),Fd=ie(Tw(),1),Xt=ie(Mw(),1),Vi=ie(zw(),1),wE=ie(e0(),1),IE=ie(gI(),1),Md=ie(OI(),1),Ud=ie(WI(),1),jd=ie(oS(),1);fd();fd();b7=ie(IS(),1),Sd=ie(FS(),1),Gi=0,SE=[],we=R,US=we.__b,jS=we.__r,BS=we.diffed,JS=we.__c,HS=we.unmount,$S=we.__;we.__b=function(e){ce=null,US&&US(e)},we.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),$S&&$S(e,t)},we.__r=function(e){var t,r,n;jS&&jS(e),bn=0;var i=(ce=e.__c).__H;i&&(vd===ce?(i.__h=[],ce.__h=[],(0,Te.default)(t=i.__).call(t,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,Te.default)(r=i.__h).call(r,Fa),(0,Te.default)(n=i.__h).call(n,Ed),i.__h=[],bn=0)),vd=ce},we.diffed=function(e){var t;BS&&BS(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(SE.push(r)!==1&&MS===we.requestAnimationFrame||((MS=we.requestAnimationFrame)||l2)(s2)),(0,Te.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),vd=ce=null},we.__c=function(e,t){(0,Va.default)(t).call(t,function(r){try{var n,i;(0,Te.default)(n=r.__h).call(n,Fa),r.__h=(0,qd.default)(i=r.__h).call(i,function(o){return!o.__||Ed(o)})}catch(o){(0,Va.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],we.__e(o,r.__v)}}),JS&&JS(e,t)},we.unmount=function(e){var t;HS&&HS(e);var r,n=e.__c;n&&n.__H&&((0,Te.default)(t=n.__H.__).call(t,function(i){try{Fa(i)}catch(o){r=o}}),n.__H=void 0,r&&we.__e(r,n.__v))};VS=typeof requestAnimationFrame=="function";kE={exports:{}},ve=kE.exports={};(function(){try{typeof Mt.default=="function"?Nt=Mt.default:Nt=xd}catch(e){Nt=xd}try{typeof clearTimeout=="function"?Dt=clearTimeout:Dt=kd}catch(e){Dt=kd}})();Yt=[],gn=!1,Ma=-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];Yt.push(new CE(e,t)),Yt.length===1&&!gn&&AE(TE)};CE.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=Zt;ve.addListener=Zt;ve.once=Zt;ve.off=Zt;ve.removeListener=Zt;ve.removeAllListeners=Zt;ve.emit=Zt;ve.prependListener=Zt;ve.prependOnceListener=Zt;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};f2=kE.exports,Ce=c2(f2),p2=Ga.default||void 0||self;PE=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(m2(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=h2(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}(),He="-ms-",za="-moz-",$="-webkit-",Jd="comm",Hd="rule",$d="decl",v2="@import",OE="@keyframes",g2=Math.abs,Za=String.fromCharCode,y2=Md.default;es=1,wn=1,NE=0,et=0,Ie=0,Sn="";N2=function(e,t,r){for(var n=0,i=0;n=i,i=jt(),n===38&&i===12&&(t[r]=1),!Wi(i);)ut();return Zi(e,et)},D2=function(e,t){var r=-1,n=44;do switch(Wi(n)){case 0:n===38&&jt()===12&&(t[r]=1),e[r]+=N2(et-1,t,r);break;case 2:e[r]+=ja(n);break;case 4:if(n===44){e[++r]=jt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Za(n)}while(n=ut());return e},L2=function(e,t){return LE(D2(DE(e),t))},WS=new Fd.default,q2=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&&!WS.get(r))&&!n){WS.set(e,!0);for(var i=[],o=L2(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]}}},F2=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},M2="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",U2=function(e){var t;return e.type==="comm"&&(0,Xt.default)(t=e.children).call(t,M2)>-1},j2=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(U2(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".')})}}}},qE=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},B2=function(e,t){for(var r=e-1;r>=0;r--)if(!qE(t[r]))return!0;return!1},KS=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},J2=function(e,t,r){qE(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."),KS(e)):B2(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),KS(e)))};H2=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case $d:e.return=FE(e.value,e.length);break;case OE:return yn([ji(e,{value:Q(e.value,"@","@"+$)})],n);case Hd:if(e.length)return w2(e.props,function(i){switch(b2(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return yn([ji(e,{props:[Q(i,/:(read-\w+)/,":"+za+"$1")]})],n);case"::placeholder":return yn([ji(e,{props:[Q(i,/:(plac\w+)/,":"+$+"input-$1")]}),ji(e,{props:[Q(i,/:(plac\w+)/,":"+za+"$1")]}),ji(e,{props:[Q(i,/:(plac\w+)/,He+"input-$1")]})],n)}return""})}},$2=[H2],ME=function(e){var t=e.key;if(Ce.env.NODE_ENV!=="production"&&!t)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
|
21
|
-
If multiple caches share the same key they might "fight" for each other's style elements.`);if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,Te.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,
|
|
22
|
-
`),r=0;r<t.length;r++){var n=
|
|
19
|
+
`;e.textContent=s;let l=document.head||document.getElementsByTagName("head")[0];l.insertBefore(t,l.firstChild),l.insertBefore(e,l.firstChild),document.documentElement.setAttribute("data-jolibox-root","")},i=()=>{let{statusBarHeight:s,navigationBarHeight:l}=E.viewport;document.documentElement.style.setProperty("--status-bar-height",`${s}px`),document.documentElement.style.setProperty("--navigation-bar-height",`${l}px`)},o=()=>{function s(c){return w(this,null,function*(){let d=c instanceof URL?c.href:c,u=new Promise((p,f)=>{let m=new XMLHttpRequest;m.open("GET",d),m.responseType="arraybuffer",m.addEventListener("load",()=>p(m.response)),m.addEventListener("error",f),m.send()});try{let p=yield u;return new Response(p,{headers:new Headers([["Content-Type","application/wasm"]])}).clone()}catch(p){throw console.error("Failed to load wasm:",p),p}})}let l=window.fetch;window.fetch=(c,d)=>{let u=c instanceof URL?c.href:c.toString();return u.endsWith(".wasm")?s(u):l(c,d)}},a=()=>{e!=null&&e.parentNode&&(e.parentNode.removeChild(e),e=null),t!=null&&t.parentNode&&(t.parentNode.removeChild(t),t=null),document.documentElement.removeAttribute("data-jolibox-root"),document.documentElement.style.removeProperty("--status-bar-height"),window.fetch=r};return n(),o(),i(),a}var Vh=A(()=>{"use strict";B()});var $h=A(()=>{"use strict"});var Wh=A(()=>{"use strict";R();ic()});var zh=A(()=>{"use strict";B()});var $o,vc=A(()=>{"use strict";$h();Wh();B();zh();R();$o=new Nt});function zt(e,t){for(var r in t)e[r]=t[r];return e}function Ic(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Je(e,t,r){var n,i,o,a={};for(o in t)o=="key"?n=t[o]:o=="ref"?i=t[o]:a[o]=t[o];if(arguments.length>2&&(a.children=arguments.length>3?Yo.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 zo(e,a,n,i,null)}function zo(e,t,r,n,i){var o={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i==null?++Xh:i,__i:-1,__u:0};return i==null&&N.vnode!=null&&N.vnode(o),o}function De(e){return e.children}function ut(e,t){this.props=e,this.context=t}function ln(e,t){if(t==null)return e.__?ln(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?ln(e):null}function im(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return im(e)}}function _c(e){(!e.__d&&(e.__d=!0)&&Fr.push(e)&&!Ko.__r++||Kh!==N.debounceRendering)&&((Kh=N.debounceRendering)||Zh)(Ko)}function Ko(){for(var e,t,r,n,i,o,a,s=1;Fr.length;)Fr.length>s&&Fr.sort(em),e=Fr.shift(),s=Fr.length,e.__d&&(r=void 0,i=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=zt({},n)).__v=n.__v+1,N.vnode&&N.vnode(r),Ec(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?ln(n):i,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,sm(o,r,a),r.__e!=i&&im(r)));Ko.__r=0}function om(e,t,r,n,i,o,a,s,l,c,d){var u,p,f,m,g,y,v=n&&n.__k||nm,b=t.length;for(l=f1(r,t,v,l,b),u=0;u<b;u++)(f=r.__k[u])!=null&&(p=f.__i===-1?mi:v[f.__i]||mi,f.__i=u,y=Ec(e,f,p,i,o,a,s,l,c,d),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&kc(p.ref,null,f),d.push(f.ref,f.__c||m,f)),g==null&&m!=null&&(g=m),4&f.__u||p.__k===f.__k?l=am(f,l,e):typeof f.type=="function"&&y!==void 0?l=y:m&&(l=m.nextSibling),f.__u&=-7);return r.__e=g,l}function f1(e,t,r,n,i){var o,a,s,l,c,d=r.length,u=d,p=0;for(e.__k=new Array(i),o=0;o<i;o++)(a=t[o])!=null&&typeof a!="boolean"&&typeof a!="function"?(l=o+p,(a=e.__k[o]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?zo(null,a,null,null,null):gi(a)?zo(De,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?zo(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,s=null,(c=a.__i=h1(a,r,l,u))!==-1&&(u--,(s=r[c])&&(s.__u|=2)),s==null||s.__v===null?(c==-1&&(i>d?p--:i<d&&p++),typeof a.type!="function"&&(a.__u|=4)):c!=l&&(c==l-1?p--:c==l+1?p++:(c>l?p--:p++,a.__u|=4))):e.__k[o]=null;if(u)for(o=0;o<d;o++)(s=r[o])!=null&&!(2&s.__u)&&(s.__e==n&&(n=ln(s)),cm(s,s));return n}function am(e,t,r){var n,i;if(typeof e.type=="function"){for(n=e.__k,i=0;n&&i<n.length;i++)n[i]&&(n[i].__=e,t=am(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=ln(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function yi(e,t){return t=t||[],e==null||typeof e=="boolean"||(gi(e)?e.some(function(r){yi(r,t)}):t.push(e)),t}function h1(e,t,r,n){var i,o,a=e.key,s=e.type,l=t[r];if(l===null&&e.key==null||l&&a==l.key&&s===l.type&&!(2&l.__u))return r;if(n>(l!=null&&!(2&l.__u)?1:0))for(i=r-1,o=r+1;i>=0||o<t.length;){if(i>=0){if((l=t[i])&&!(2&l.__u)&&a==l.key&&s===l.type)return i;i--}if(o<t.length){if((l=t[o])&&!(2&l.__u)&&a==l.key&&s===l.type)return o;o++}}return-1}function Yh(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||p1.test(t)?r:r+"px"}function Wo(e,t,r,n,i){var o;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||Yh(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||Yh(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(tm,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=r,r?n?r.t=n.t:(r.t=wc,e.addEventListener(t,o?yc:gc,o)):e.removeEventListener(t,o?yc:gc,o);else{if(i=="http://www.w3.org/2000/svg")t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!="width"&&t!="height"&&t!="href"&&t!="list"&&t!="form"&&t!="tabIndex"&&t!="download"&&t!="rowSpan"&&t!="colSpan"&&t!="role"&&t!="popover"&&t in e)try{e[t]=r==null?"":r;break e}catch(a){}typeof r=="function"||(r==null||r===!1&&t[4]!="-"?e.removeAttribute(t):e.setAttribute(t,t=="popover"&&r==1?"":r))}}function Qh(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=wc++;else if(t.u<r.t)return;return r(N.event?N.event(t):t)}}}function Ec(e,t,r,n,i,o,a,s,l,c){var d,u,p,f,m,g,y,v,b,k,x,P,C,S,O,J,Ke,M=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(l=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=N.__b)&&d(t);e:if(typeof M=="function")try{if(v=t.props,b="prototype"in M&&M.prototype.render,k=(d=M.contextType)&&n[d.__c],x=d?k?k.props.value:d.__:n,r.__c?y=(u=t.__c=r.__c).__=u.__E:(b?t.__c=u=new M(v,x):(t.__c=u=new ut(v,x),u.constructor=M,u.render=v1),k&&k.sub(u),u.props=v,u.state||(u.state={}),u.context=x,u.__n=n,p=u.__d=!0,u.__h=[],u._sb=[]),b&&u.__s==null&&(u.__s=u.state),b&&M.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=zt({},u.__s)),zt(u.__s,M.getDerivedStateFromProps(v,u.__s))),f=u.props,m=u.state,u.__v=t,p)b&&M.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),b&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(b&&M.getDerivedStateFromProps==null&&v!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(v,x),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(v,u.__s,x)===!1||t.__v==r.__v)){for(t.__v!=r.__v&&(u.props=v,u.state=u.__s,u.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some(function(Re){Re&&(Re.__=t)}),P=0;P<u._sb.length;P++)u.__h.push(u._sb[P]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,x),b&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,m,g)})}if(u.context=x,u.props=v,u.__P=e,u.__e=!1,C=N.__r,S=0,b){for(u.state=u.__s,u.__d=!1,C&&C(t),d=u.render(u.props,u.state,u.context),O=0;O<u._sb.length;O++)u.__h.push(u._sb[O]);u._sb=[]}else do u.__d=!1,C&&C(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++S<25);u.state=u.__s,u.getChildContext!=null&&(n=zt(zt({},n),u.getChildContext())),b&&!p&&u.getSnapshotBeforeUpdate!=null&&(g=u.getSnapshotBeforeUpdate(f,m)),J=d,d!=null&&d.type===De&&d.key==null&&(J=lm(d.props.children)),s=om(e,gi(J)?J:[J],t,r,n,i,o,a,s,l,c),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),y&&(u.__E=u.__=null)}catch(Re){if(t.__v=null,l||o!=null)if(Re.then){for(t.__u|=l?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;o[o.indexOf(s)]=null,t.__e=s}else for(Ke=o.length;Ke--;)Ic(o[Ke]);else t.__e=r.__e,t.__k=r.__k;N.__e(Re,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=m1(r.__e,t,r,n,i,o,a,l,c);return(d=N.diffed)&&d(t),128&t.__u?void 0:s}function sm(e,t,r){for(var n=0;n<r.length;n++)kc(r[n],r[++n],r[++n]);N.__c&&N.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){N.__e(o,i.__v)}})}function lm(e){return typeof e!="object"||e==null?e:gi(e)?e.map(lm):zt({},e)}function m1(e,t,r,n,i,o,a,s,l){var c,d,u,p,f,m,g,y=r.props,v=t.props,b=t.type;if(b=="svg"?i="http://www.w3.org/2000/svg":b=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(c=0;c<o.length;c++)if((f=o[c])&&"setAttribute"in f==!!b&&(b?f.localName==b:f.nodeType==3)){e=f,o[c]=null;break}}if(e==null){if(b==null)return document.createTextNode(v);e=document.createElementNS(i,b,v.is&&v),s&&(N.__m&&N.__m(t,o),s=!1),o=null}if(b===null)y===v||s&&e.data===v||(e.data=v);else{if(o=o&&Yo.call(e.childNodes),y=r.props||mi,!s&&o!=null)for(y={},c=0;c<e.attributes.length;c++)y[(f=e.attributes[c]).name]=f.value;for(c in y)if(f=y[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=f;else if(!(c in v)){if(c=="value"&&"defaultValue"in v||c=="checked"&&"defaultChecked"in v)continue;Wo(e,c,null,f,i)}}for(c in v)f=v[c],c=="children"?p=f:c=="dangerouslySetInnerHTML"?d=f:c=="value"?m=f:c=="checked"?g=f:s&&typeof f!="function"||y[c]===f||Wo(e,c,f,y[c],i);if(d)s||u&&(d.__html===u.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),om(t.type==="template"?e.content:e,gi(p)?p:[p],t,r,n,b=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&ln(r,0),s,l),o!=null)for(c=o.length;c--;)Ic(o[c]);s||(c="value",b=="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[c]||b=="progress"&&!m||b=="option"&&m!==y[c])&&Wo(e,c,m,y[c],i),c="checked",g!==void 0&&g!==e[c]&&Wo(e,c,g,y[c],i))}return e}function kc(e,t,r){try{if(typeof e=="function"){var n=typeof e.__u=="function";n&&e.__u(),n&&t==null||(e.__u=e(t))}else e.current=t}catch(i){N.__e(i,r)}}function cm(e,t,r){var n,i;if(N.unmount&&N.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||kc(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){N.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&cm(n[i],t,r||typeof e.type!="function");r||Ic(e.__e),e.__c=e.__=e.__e=void 0}function v1(e,t,r){return this.constructor(e,r)}function mr(e,t,r){var n,i,o,a;t==document&&(t=document.documentElement),N.__&&N.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],Ec(t,e=(!n&&r||t).__k=Je(De,null,[e]),i||mi,mi,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?Yo.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),sm(o,e,a)}function jr(e){function t(r){var n,i;return this.getChildContext||(n=new Set,(i={})[t.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&n.forEach(function(a){a.__e=!0,_c(a)})},this.sub=function(o){n.add(o);var a=o.componentWillUnmount;o.componentWillUnmount=function(){n&&n.delete(o),a&&a.call(o)}}),r.children}return t.__c="__cC"+rm++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var Yo,N,Xh,bc,Fr,Kh,Zh,em,tm,wc,gc,yc,rm,mi,nm,p1,gi,cn=A(()=>{mi={},nm=[],p1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,gi=Array.isArray;Yo=nm.slice,N={__e:function(e,t,r,n){for(var i,o,a;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),a=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,n||{}),a=i.__d),a)return i.__E=i}catch(s){e=s}throw e}},Xh=0,bc=function(e){return e!=null&&e.constructor==null},ut.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=zt({},this.state),typeof e=="function"&&(e=e(zt({},r),this.props)),e&&zt(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),_c(this))},ut.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),_c(this))},ut.prototype.render=De,Fr=[],Zh=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,em=function(e,t){return e.__v.__b-t.__v.__b},Ko.__r=0,tm=/(PointerCapture)$|Capture$/i,wc=0,gc=Qh(!1),yc=Qh(!0),rm=0});var pe=h((L$,um)=>{"use strict";um.exports=function(e){try{return!!e()}catch(t){return!0}}});var un=h((M$,dm)=>{"use strict";var g1=pe();dm.exports=!g1(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var be=h((q$,hm)=>{"use strict";var pm=un(),fm=Function.prototype,Sc=fm.call,y1=pm&&fm.bind.bind(Sc,Sc);hm.exports=pm?y1:function(e){return function(){return Sc.apply(e,arguments)}}});var Ye=h((U$,mm)=>{"use strict";var _1=be();mm.exports=_1({}.isPrototypeOf)});var fe=h((Ac,vm)=>{"use strict";var _i=function(e){return e&&e.Math===Math&&e};vm.exports=_i(typeof globalThis=="object"&&globalThis)||_i(typeof window=="object"&&window)||_i(typeof self=="object"&&self)||_i(typeof global=="object"&&global)||_i(typeof Ac=="object"&&Ac)||function(){return this}()||Function("return this")()});var xc=h((F$,bm)=>{"use strict";var b1=un(),_m=Function.prototype,gm=_m.apply,ym=_m.call;bm.exports=typeof Reflect=="object"&&Reflect.apply||(b1?ym.bind(gm):function(){return ym.apply(gm,arguments)})});var Kt=h((j$,Im)=>{"use strict";var wm=be(),w1=wm({}.toString),I1=wm("".slice);Im.exports=function(e){return I1(w1(e),8,-1)}});var bi=h((J$,Em)=>{"use strict";var E1=Kt(),k1=be();Em.exports=function(e){if(E1(e)==="Function")return k1(e)}});var Le=h((G$,km)=>{"use strict";var Cc=typeof document=="object"&&document.all;km.exports=typeof Cc=="undefined"&&Cc!==void 0?function(e){return typeof e=="function"||e===Cc}:function(e){return typeof e=="function"}});var Qe=h((B$,Sm)=>{"use strict";var S1=pe();Sm.exports=!S1(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var Et=h((H$,Am)=>{"use strict";var A1=un(),Qo=Function.prototype.call;Am.exports=A1?Qo.bind(Qo):function(){return Qo.apply(Qo,arguments)}});var Tc=h(Tm=>{"use strict";var xm={}.propertyIsEnumerable,Cm=Object.getOwnPropertyDescriptor,x1=Cm&&!xm.call({1:2},1);Tm.f=x1?function(t){var r=Cm(this,t);return!!r&&r.enumerable}:xm});var wi=h(($$,Om)=>{"use strict";Om.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var Xo=h((W$,Pm)=>{"use strict";var C1=be(),T1=pe(),O1=Kt(),Oc=Object,P1=C1("".split);Pm.exports=T1(function(){return!Oc("z").propertyIsEnumerable(0)})?function(e){return O1(e)==="String"?P1(e,""):Oc(e)}:Oc});var Jr=h((z$,Rm)=>{"use strict";Rm.exports=function(e){return e==null}});var Gr=h((K$,Nm)=>{"use strict";var R1=Jr(),N1=TypeError;Nm.exports=function(e){if(R1(e))throw new N1("Can't call method on "+e);return e}});var vr=h((Y$,Dm)=>{"use strict";var D1=Xo(),L1=Gr();Dm.exports=function(e){return D1(L1(e))}});var Ce=h((Q$,Lm)=>{"use strict";var M1=Le();Lm.exports=function(e){return typeof e=="object"?e!==null:M1(e)}});var Dt=h((X$,Mm)=>{"use strict";Mm.exports={}});var dn=h((Z$,Um)=>{"use strict";var Pc=Dt(),Rc=fe(),q1=Le(),qm=function(e){return q1(e)?e:void 0};Um.exports=function(e,t){return arguments.length<2?qm(Pc[e])||qm(Rc[e]):Pc[e]&&Pc[e][t]||Rc[e]&&Rc[e][t]}});var Zo=h((eW,Jm)=>{"use strict";var U1=fe(),Fm=U1.navigator,jm=Fm&&Fm.userAgent;Jm.exports=jm?String(jm):""});var ta=h((tW,Wm)=>{"use strict";var $m=fe(),Nc=Zo(),Gm=$m.process,Bm=$m.Deno,Hm=Gm&&Gm.versions||Bm&&Bm.version,Vm=Hm&&Hm.v8,kt,ea;Vm&&(kt=Vm.split("."),ea=kt[0]>0&&kt[0]<4?1:+(kt[0]+kt[1]));!ea&&Nc&&(kt=Nc.match(/Edge\/(\d+)/),(!kt||kt[1]>=74)&&(kt=Nc.match(/Chrome\/(\d+)/),kt&&(ea=+kt[1])));Wm.exports=ea});var Dc=h((rW,Km)=>{"use strict";var zm=ta(),F1=pe(),j1=fe(),J1=j1.String;Km.exports=!!Object.getOwnPropertySymbols&&!F1(function(){var e=Symbol("symbol detection");return!J1(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&zm&&zm<41})});var Lc=h((nW,Ym)=>{"use strict";var G1=Dc();Ym.exports=G1&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Mc=h((iW,Qm)=>{"use strict";var B1=dn(),H1=Le(),V1=Ye(),$1=Lc(),W1=Object;Qm.exports=$1?function(e){return typeof e=="symbol"}:function(e){var t=B1("Symbol");return H1(t)&&V1(t.prototype,W1(e))}});var Ii=h((oW,Xm)=>{"use strict";var z1=String;Xm.exports=function(e){try{return z1(e)}catch(t){return"Object"}}});var Br=h((aW,Zm)=>{"use strict";var K1=Le(),Y1=Ii(),Q1=TypeError;Zm.exports=function(e){if(K1(e))return e;throw new Q1(Y1(e)+" is not a function")}});var ra=h((sW,ev)=>{"use strict";var X1=Br(),Z1=Jr();ev.exports=function(e,t){var r=e[t];return Z1(r)?void 0:X1(r)}});var rv=h((lW,tv)=>{"use strict";var qc=Et(),Uc=Le(),Fc=Ce(),eO=TypeError;tv.exports=function(e,t){var r,n;if(t==="string"&&Uc(r=e.toString)&&!Fc(n=qc(r,e))||Uc(r=e.valueOf)&&!Fc(n=qc(r,e))||t!=="string"&&Uc(r=e.toString)&&!Fc(n=qc(r,e)))return n;throw new eO("Can't convert object to primitive value")}});var pn=h((cW,nv)=>{"use strict";nv.exports=!0});var av=h((uW,ov)=>{"use strict";var iv=fe(),tO=Object.defineProperty;ov.exports=function(e,t){try{tO(iv,e,{value:t,configurable:!0,writable:!0})}catch(r){iv[e]=t}return t}});var Ei=h((dW,cv)=>{"use strict";var rO=pn(),nO=fe(),iO=av(),sv="__core-js_shared__",lv=cv.exports=nO[sv]||iO(sv,{});(lv.versions||(lv.versions=[])).push({version:"3.41.0",mode:rO?"pure":"global",copyright:"\xA9 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var jc=h((pW,dv)=>{"use strict";var uv=Ei();dv.exports=function(e,t){return uv[e]||(uv[e]=t||{})}});var fn=h((fW,pv)=>{"use strict";var oO=Gr(),aO=Object;pv.exports=function(e){return aO(oO(e))}});var dt=h((hW,fv)=>{"use strict";var sO=be(),lO=fn(),cO=sO({}.hasOwnProperty);fv.exports=Object.hasOwn||function(t,r){return cO(lO(t),r)}});var na=h((mW,hv)=>{"use strict";var uO=be(),dO=0,pO=Math.random(),fO=uO(1 .toString);hv.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+fO(++dO+pO,36)}});var Ge=h((vW,vv)=>{"use strict";var hO=fe(),mO=jc(),mv=dt(),vO=na(),gO=Dc(),yO=Lc(),hn=hO.Symbol,Jc=mO("wks"),_O=yO?hn.for||hn:hn&&hn.withoutSetter||vO;vv.exports=function(e){return mv(Jc,e)||(Jc[e]=gO&&mv(hn,e)?hn[e]:_O("Symbol."+e)),Jc[e]}});var bv=h((gW,_v)=>{"use strict";var bO=Et(),gv=Ce(),yv=Mc(),wO=ra(),IO=rv(),EO=Ge(),kO=TypeError,SO=EO("toPrimitive");_v.exports=function(e,t){if(!gv(e)||yv(e))return e;var r=wO(e,SO),n;if(r){if(t===void 0&&(t="default"),n=bO(r,e,t),!gv(n)||yv(n))return n;throw new kO("Can't convert object to primitive value")}return t===void 0&&(t="number"),IO(e,t)}});var Gc=h((yW,wv)=>{"use strict";var AO=bv(),xO=Mc();wv.exports=function(e){var t=AO(e,"string");return xO(t)?t:t+""}});var Hc=h((_W,Ev)=>{"use strict";var CO=fe(),Iv=Ce(),Bc=CO.document,TO=Iv(Bc)&&Iv(Bc.createElement);Ev.exports=function(e){return TO?Bc.createElement(e):{}}});var Vc=h((bW,kv)=>{"use strict";var OO=Qe(),PO=pe(),RO=Hc();kv.exports=!OO&&!PO(function(){return Object.defineProperty(RO("div"),"a",{get:function(){return 7}}).a!==7})});var $c=h(Av=>{"use strict";var NO=Qe(),DO=Et(),LO=Tc(),MO=wi(),qO=vr(),UO=Gc(),FO=dt(),jO=Vc(),Sv=Object.getOwnPropertyDescriptor;Av.f=NO?Sv:function(t,r){if(t=qO(t),r=UO(r),jO)try{return Sv(t,r)}catch(n){}if(FO(t,r))return MO(!DO(LO.f,t,r),t[r])}});var Cv=h((IW,xv)=>{"use strict";var JO=pe(),GO=Le(),BO=/#|\.prototype\./,ki=function(e,t){var r=VO[HO(e)];return r===WO?!0:r===$O?!1:GO(t)?JO(t):!!t},HO=ki.normalize=function(e){return String(e).replace(BO,".").toLowerCase()},VO=ki.data={},$O=ki.NATIVE="N",WO=ki.POLYFILL="P";xv.exports=ki});var Si=h((EW,Ov)=>{"use strict";var Tv=bi(),zO=Br(),KO=un(),YO=Tv(Tv.bind);Ov.exports=function(e,t){return zO(e),t===void 0?e:KO?YO(e,t):function(){return e.apply(t,arguments)}}});var Wc=h((kW,Pv)=>{"use strict";var QO=Qe(),XO=pe();Pv.exports=QO&&XO(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var Yt=h((SW,Rv)=>{"use strict";var ZO=Ce(),eP=String,tP=TypeError;Rv.exports=function(e){if(ZO(e))return e;throw new tP(eP(e)+" is not an object")}});var Qt=h(Dv=>{"use strict";var rP=Qe(),nP=Vc(),iP=Wc(),ia=Yt(),Nv=Gc(),oP=TypeError,zc=Object.defineProperty,aP=Object.getOwnPropertyDescriptor,Kc="enumerable",Yc="configurable",Qc="writable";Dv.f=rP?iP?function(t,r,n){if(ia(t),r=Nv(r),ia(n),typeof t=="function"&&r==="prototype"&&"value"in n&&Qc in n&&!n[Qc]){var i=aP(t,r);i&&i[Qc]&&(t[r]=n.value,n={configurable:Yc in n?n[Yc]:i[Yc],enumerable:Kc in n?n[Kc]:i[Kc],writable:!1})}return zc(t,r,n)}:zc:function(t,r,n){if(ia(t),r=Nv(r),ia(n),nP)try{return zc(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new oP("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var Hr=h((xW,Lv)=>{"use strict";var sP=Qe(),lP=Qt(),cP=wi();Lv.exports=sP?function(e,t,r){return lP.f(e,t,cP(1,r))}:function(e,t,r){return e[t]=r,e}});var Z=h((CW,qv)=>{"use strict";var Ai=fe(),uP=xc(),dP=bi(),pP=Le(),fP=$c().f,hP=Cv(),mn=Dt(),mP=Si(),vn=Hr(),Mv=dt();Ei();var vP=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return uP(e,this,arguments)};return t.prototype=e.prototype,t};qv.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o=e.proto,a=n?Ai:i?Ai[r]:Ai[r]&&Ai[r].prototype,s=n?mn:mn[r]||vn(mn,r,{})[r],l=s.prototype,c,d,u,p,f,m,g,y,v;for(p in t)c=hP(n?p:r+(i?".":"#")+p,e.forced),d=!c&&a&&Mv(a,p),m=s[p],d&&(e.dontCallGetSet?(v=fP(a,p),g=v&&v.value):g=a[p]),f=d&&g?g:t[p],!(!c&&!o&&typeof m==typeof f)&&(e.bind&&d?y=mP(f,Ai):e.wrap&&d?y=vP(f):o&&pP(f)?y=dP(f):y=f,(e.sham||f&&f.sham||m&&m.sham)&&vn(y,"sham",!0),vn(s,p,y),o&&(u=r+"Prototype",Mv(mn,u)||vn(mn,u,{}),vn(mn[u],p,f),e.real&&l&&(c||!l[p])&&vn(l,p,f)))}});var Fv=h((TW,Uv)=>{"use strict";var gP=Math.ceil,yP=Math.floor;Uv.exports=Math.trunc||function(t){var r=+t;return(r>0?yP:gP)(r)}});var xi=h((OW,jv)=>{"use strict";var _P=Fv();jv.exports=function(e){var t=+e;return t!==t||t===0?0:_P(t)}});var Xc=h((PW,Jv)=>{"use strict";var bP=xi(),wP=Math.min;Jv.exports=function(e){var t=bP(e);return t>0?wP(t,9007199254740991):0}});var gn=h((RW,Gv)=>{"use strict";var IP=Xc();Gv.exports=function(e){return IP(e.length)}});var Ci=h((NW,Bv)=>{"use strict";var EP=Kt();Bv.exports=Array.isArray||function(t){return EP(t)==="Array"}});var oa=h((DW,Vv)=>{"use strict";var kP=Ge(),SP=kP("toStringTag"),Hv={};Hv[SP]="z";Vv.exports=String(Hv)==="[object z]"});var yn=h((LW,$v)=>{"use strict";var AP=oa(),xP=Le(),aa=Kt(),CP=Ge(),TP=CP("toStringTag"),OP=Object,PP=aa(function(){return arguments}())==="Arguments",RP=function(e,t){try{return e[t]}catch(r){}};$v.exports=AP?aa:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=RP(t=OP(e),TP))=="string"?r:PP?aa(t):(n=aa(t))==="Object"&&xP(t.callee)?"Arguments":n}});var zv=h((MW,Wv)=>{"use strict";var NP=be(),DP=Le(),Zc=Ei(),LP=NP(Function.toString);DP(Zc.inspectSource)||(Zc.inspectSource=function(e){return LP(e)});Wv.exports=Zc.inspectSource});var tu=h((qW,Zv)=>{"use strict";var MP=be(),qP=pe(),Kv=Le(),UP=yn(),FP=dn(),jP=zv(),Yv=function(){},Qv=FP("Reflect","construct"),eu=/^\s*(?:class|function)\b/,JP=MP(eu.exec),GP=!eu.test(Yv),Ti=function(t){if(!Kv(t))return!1;try{return Qv(Yv,[],t),!0}catch(r){return!1}},Xv=function(t){if(!Kv(t))return!1;switch(UP(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return GP||!!JP(eu,jP(t))}catch(r){return!0}};Xv.sham=!0;Zv.exports=!Qv||qP(function(){var e;return Ti(Ti.call)||!Ti(Object)||!Ti(function(){e=!0})||e})?Xv:Ti});var ng=h((UW,rg)=>{"use strict";var eg=Ci(),BP=tu(),HP=Ce(),VP=Ge(),$P=VP("species"),tg=Array;rg.exports=function(e){var t;return eg(e)&&(t=e.constructor,BP(t)&&(t===tg||eg(t.prototype))?t=void 0:HP(t)&&(t=t[$P],t===null&&(t=void 0))),t===void 0?tg:t}});var ru=h((FW,ig)=>{"use strict";var WP=ng();ig.exports=function(e,t){return new(WP(e))(t===0?0:t)}});var yr=h((jW,ag)=>{"use strict";var zP=Si(),KP=be(),YP=Xo(),QP=fn(),XP=gn(),ZP=ru(),og=KP([].push),gr=function(e){var t=e===1,r=e===2,n=e===3,i=e===4,o=e===6,a=e===7,s=e===5||o;return function(l,c,d,u){for(var p=QP(l),f=YP(p),m=XP(f),g=zP(c,d),y=0,v=u||ZP,b=t?v(l,m):r||a?v(l,0):void 0,k,x;m>y;y++)if((s||y in f)&&(k=f[y],x=g(k,y,p),e))if(t)b[y]=x;else if(x)switch(e){case 3:return!0;case 5:return k;case 6:return y;case 2:og(b,k)}else switch(e){case 4:return!1;case 7:og(b,k)}return o?-1:n||i?i:b}};ag.exports={forEach:gr(0),map:gr(1),filter:gr(2),some:gr(3),every:gr(4),find:gr(5),findIndex:gr(6),filterReject:gr(7)}});var Oi=h((JW,sg)=>{"use strict";var eR=pe(),tR=Ge(),rR=ta(),nR=tR("species");sg.exports=function(e){return rR>=51||!eR(function(){var t=[],r=t.constructor={};return r[nR]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var lg=h(()=>{"use strict";var iR=Z(),oR=yr().filter,aR=Oi(),sR=aR("filter");iR({target:"Array",proto:!0,forced:!sR},{filter:function(t){return oR(this,t,arguments.length>1?arguments[1]:void 0)}})});var _t=h((HW,cg)=>{"use strict";var lR=fe(),cR=Dt();cg.exports=function(e,t){var r=cR[e+"Prototype"],n=r&&r[t];if(n)return n;var i=lR[e],o=i&&i.prototype;return o&&o[t]}});var dg=h((VW,ug)=>{"use strict";lg();var uR=_t();ug.exports=uR("Array","filter")});var fg=h(($W,pg)=>{"use strict";var dR=Ye(),pR=dg(),nu=Array.prototype;pg.exports=function(e){var t=e.filter;return e===nu||dR(nu,e)&&t===nu.filter?pR:t}});var mg=h((WW,hg)=>{"use strict";var fR=fg();hg.exports=fR});var gg=h((zW,vg)=>{vg.exports=mg()});var Pi=h((KW,yg)=>{"use strict";var hR=pe();yg.exports=function(e,t){var r=[][e];return!!r&&hR(function(){r.call(null,t||function(){return 1},1)})}});var _g=h(()=>{"use strict";var mR=Z(),vR=yr().every,gR=Pi(),yR=gR("every");mR({target:"Array",proto:!0,forced:!yR},{every:function(t){return vR(this,t,arguments.length>1?arguments[1]:void 0)}})});var wg=h((XW,bg)=>{"use strict";_g();var _R=_t();bg.exports=_R("Array","every")});var Eg=h((ZW,Ig)=>{"use strict";var bR=Ye(),wR=wg(),iu=Array.prototype;Ig.exports=function(e){var t=e.every;return e===iu||bR(iu,e)&&t===iu.every?wR:t}});var Sg=h((ez,kg)=>{"use strict";var IR=Eg();kg.exports=IR});var xg=h((tz,Ag)=>{Ag.exports=Sg()});var Tg=h((rz,Cg)=>{"use strict";var ER=yr().forEach,kR=Pi(),SR=kR("forEach");Cg.exports=SR?[].forEach:function(t){return ER(this,t,arguments.length>1?arguments[1]:void 0)}});var Pg=h(()=>{"use strict";var AR=Z(),Og=Tg();AR({target:"Array",proto:!0,forced:[].forEach!==Og},{forEach:Og})});var Ng=h((oz,Rg)=>{"use strict";Pg();var xR=_t();Rg.exports=xR("Array","forEach")});var Lg=h((az,Dg)=>{"use strict";var CR=Ng();Dg.exports=CR});var Mg=h(()=>{});var Ug=h((cz,qg)=>{"use strict";var TR=yn(),OR=dt(),PR=Ye(),RR=Lg();Mg();var ou=Array.prototype,NR={DOMTokenList:!0,NodeList:!0};qg.exports=function(e){var t=e.forEach;return e===ou||PR(ou,e)&&t===ou.forEach||OR(NR,TR(e))?RR:t}});var jg=h((uz,Fg)=>{Fg.exports=Ug()});var Gg=h((dz,Jg)=>{"use strict";var DR=TypeError,LR=9007199254740991;Jg.exports=function(e){if(e>LR)throw DR("Maximum allowed index exceeded");return e}});var au=h((pz,Bg)=>{"use strict";var MR=Qe(),qR=Qt(),UR=wi();Bg.exports=function(e,t,r){MR?qR.f(e,t,UR(0,r)):e[t]=r}});var Wg=h(()=>{"use strict";var FR=Z(),jR=pe(),JR=Ci(),GR=Ce(),BR=fn(),HR=gn(),Hg=Gg(),Vg=au(),VR=ru(),$R=Oi(),WR=Ge(),zR=ta(),$g=WR("isConcatSpreadable"),KR=zR>=51||!jR(function(){var e=[];return e[$g]=!1,e.concat()[0]!==e}),YR=function(e){if(!GR(e))return!1;var t=e[$g];return t!==void 0?!!t:JR(e)},QR=!KR||!$R("concat");FR({target:"Array",proto:!0,arity:1,forced:QR},{concat:function(t){var r=BR(this),n=VR(r,0),i=0,o,a,s,l,c;for(o=-1,s=arguments.length;o<s;o++)if(c=o===-1?r:arguments[o],YR(c))for(l=HR(c),Hg(i+l),a=0;a<l;a++,i++)a in c&&Vg(n,i,c[a]);else Hg(i+1),Vg(n,i++,c);return n.length=i,n}})});var Kg=h((mz,zg)=>{"use strict";Wg();var XR=_t();zg.exports=XR("Array","concat")});var Qg=h((vz,Yg)=>{"use strict";var ZR=Ye(),eN=Kg(),su=Array.prototype;Yg.exports=function(e){var t=e.concat;return e===su||ZR(su,e)&&t===su.concat?eN:t}});var Zg=h((gz,Xg)=>{"use strict";var tN=Qg();Xg.exports=tN});var ty=h((yz,ey)=>{ey.exports=Zg()});var ry=h(()=>{"use strict";var rN=Z(),nN=yr().some,iN=Pi(),oN=iN("some");rN({target:"Array",proto:!0,forced:!oN},{some:function(t){return nN(this,t,arguments.length>1?arguments[1]:void 0)}})});var iy=h((wz,ny)=>{"use strict";ry();var aN=_t();ny.exports=aN("Array","some")});var ay=h((Iz,oy)=>{"use strict";var sN=Ye(),lN=iy(),lu=Array.prototype;oy.exports=function(e){var t=e.some;return e===lu||sN(lu,e)&&t===lu.some?lN:t}});var ly=h((Ez,sy)=>{"use strict";var cN=ay();sy.exports=cN});var uy=h((kz,cy)=>{cy.exports=ly()});var py=h((Sz,dy)=>{"use strict";var Ri=fe(),uN=Zo(),dN=Kt(),sa=function(e){return uN.slice(0,e.length)===e};dy.exports=function(){return sa("Bun/")?"BUN":sa("Cloudflare-Workers")?"CLOUDFLARE":sa("Deno/")?"DENO":sa("Node.js/")?"NODE":Ri.Bun&&typeof Bun.version=="string"?"BUN":Ri.Deno&&typeof Deno.version=="object"?"DENO":dN(Ri.process)==="process"?"NODE":Ri.window&&Ri.document?"BROWSER":"REST"}()});var Ni=h((Az,fy)=>{"use strict";var pN=be();fy.exports=pN([].slice)});var my=h((xz,hy)=>{"use strict";var fN=TypeError;hy.exports=function(e,t){if(e<t)throw new fN("Not enough arguments");return e}});var cu=h((Cz,gy)=>{"use strict";var vy=fe(),hN=xc(),mN=Le(),vN=py(),gN=Zo(),yN=Ni(),_N=my(),bN=vy.Function,wN=/MSIE .\./.test(gN)||vN==="BUN"&&function(){var e=vy.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();gy.exports=function(e,t){var r=t?2:1;return wN?function(n,i){var o=_N(arguments.length,1)>r,a=mN(n)?n:bN(n),s=o?yN(arguments,r):[],l=o?function(){hN(a,this,s)}:a;return t?e(l,i):e(l)}:e}});var by=h(()=>{"use strict";var IN=Z(),_y=fe(),EN=cu(),yy=EN(_y.setInterval,!0);IN({global:!0,bind:!0,forced:_y.setInterval!==yy},{setInterval:yy})});var Ey=h(()=>{"use strict";var kN=Z(),Iy=fe(),SN=cu(),wy=SN(Iy.setTimeout,!0);kN({global:!0,bind:!0,forced:Iy.setTimeout!==wy},{setTimeout:wy})});var ky=h(()=>{"use strict";by();Ey()});var Ay=h((Lz,Sy)=>{"use strict";ky();var AN=Dt();Sy.exports=AN.setTimeout});var Cy=h((Mz,xy)=>{xy.exports=Ay()});function Li(e,t){me.__h&&me.__h(oe,e,Di||t),Di=0;var r=oe.__H||(oe.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function ca(e){return Di=1,Uy(Fy,e)}function Uy(e,t,r){var n=Li(Vr++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Fy(void 0,t),function(s){var l=n.__N?n.__N[0]:n.__[0],c=n.t(l,s);l!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=oe,!oe.__f)){var i=function(s,l,c){if(!n.__c.__H)return!0;var d=n.__c.__H.__.filter(function(p){return!!p.__c});if(d.every(function(p){return!p.__N}))return!o||o.call(this,s,l,c);var u=n.__c.props!==s;return d.forEach(function(p){if(p.__N){var f=p.__[0];p.__=p.__N,p.__N=void 0,f!==p.__[0]&&(u=!0)}}),o&&o.call(this,s,l,c)||u};oe.__f=!0;var o=oe.shouldComponentUpdate,a=oe.componentWillUpdate;oe.componentWillUpdate=function(s,l,c){if(this.__e){var d=o;o=void 0,i(s,l,c),o=d}a&&a.call(this,s,l,c)},oe.shouldComponentUpdate=i}return n.__N||n.__}function Mi(e,t){var r=Li(Vr++,3);!me.__s&&pu(r.__H,t)&&(r.__=e,r.u=t,oe.__H.__h.push(r))}function _n(e,t){var r=Li(Vr++,4);!me.__s&&pu(r.__H,t)&&(r.__=e,r.u=t,oe.__h.push(r))}function qi(e){return Di=5,Ui(function(){return{current:e}},[])}function Ui(e,t){var r=Li(Vr++,7);return pu(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function bn(e,t){return Di=8,Ui(function(){return e},t)}function wn(e){var t=oe.context[e.__c],r=Li(Vr++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(oe)),t.props.value):e.__}function xN(){for(var e;e=qy.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(la),e.__H.__h.forEach(du),e.__H.__h=[]}catch(t){e.__H.__h=[],me.__e(t,e.__v)}}function CN(e){var t,r=function(){clearTimeout(n),My&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);My&&(t=requestAnimationFrame(r))}function la(e){var t=oe,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),oe=t}function du(e){var t=oe;e.__c=e.__(),oe=t}function pu(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Fy(e,t){return typeof t=="function"?t(e):t}var Vr,oe,uu,Ty,Di,qy,me,Oy,Py,Ry,Ny,Dy,Ly,My,fu=A(()=>{cn();Di=0,qy=[],me=N,Oy=me.__b,Py=me.__r,Ry=me.diffed,Ny=me.__c,Dy=me.unmount,Ly=me.__;me.__b=function(e){oe=null,Oy&&Oy(e)},me.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Ly&&Ly(e,t)},me.__r=function(e){Py&&Py(e),Vr=0;var t=(oe=e.__c).__H;t&&(uu===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(du),t.__h=[],Vr=0)),uu=oe},me.diffed=function(e){Ry&&Ry(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(qy.push(t)!==1&&Ty===me.requestAnimationFrame||((Ty=me.requestAnimationFrame)||CN)(xN)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),uu=oe=null},me.__c=function(e,t){t.some(function(r){try{r.__h.forEach(la),r.__h=r.__h.filter(function(n){return!n.__||du(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],me.__e(n,r.__v)}}),Ny&&Ny(e,t)},me.unmount=function(e){Dy&&Dy(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{la(n)}catch(i){t=i}}),r.__H=void 0,t&&me.__e(t,r.__v))};My=typeof requestAnimationFrame=="function"});function Ky(e,t){for(var r in t)e[r]=t[r];return e}function mu(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var n in t)if(n!=="__source"&&e[n]!==t[n])return!0;return!1}function jy(e,t){this.props=e,this.context=t}function gu(e,t){function r(i){var o=this.props.ref,a=o==i.ref;return!a&&o&&(o.call?o(null):o.current=null),t?!t(this.props,i)||!a:mu(this.props,i)}function n(i){return this.shouldComponentUpdate=r,Je(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function yu(e){function t(r){var n=Ky({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=TN,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function Yy(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(n){typeof n.__c=="function"&&n.__c()}),e.__c.__H=null),(e=Ky({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Yy(n,t,r)})),e}function Qy(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Qy(n,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function hu(){this.__u=0,this.o=null,this.__b=null}function Xy(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function ua(){this.i=null,this.l=null}function _u(e,t,r){return t.__k==null&&(t.textContent=""),mr(e,t),typeof r=="function"&&r(),e?e.__c:null}function qN(){}function UN(){return this.cancelBubble}function FN(){return this.defaultPrevented}var vu,Jy,TN,ON,Gy,By,PN,RN,NN,DN,LN,MN,Hy,Zy,jN,Vy,$y,Wy,da=A(()=>{cn();cn();fu();fu();vu=_n;(jy.prototype=new ut).isPureReactComponent=!0,jy.prototype.shouldComponentUpdate=function(e,t){return mu(this.props,e)||mu(this.state,t)};Jy=N.__b;N.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Jy&&Jy(e)};TN=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;ON=N.__e;N.__e=function(e,t,r,n){if(e.then){for(var i,o=t;o=o.__;)if((i=o.__c)&&i.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),i.__c(e,t)}ON(e,t,r,n)};Gy=N.unmount;N.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Gy&&Gy(e)},(hu.prototype=new ut).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=Xy(n.__v),o=!1,a=function(){o||(o=!0,r.__R=null,i?i(s):s())};r.__R=a;var s=function(){if(!--n.__u){if(n.state.__a){var l=n.state.__a;n.__v.__k[0]=Qy(l,l.__c.__P,l.__c.__O)}var c;for(n.setState({__a:n.__b=null});c=n.o.pop();)c.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},hu.prototype.componentWillUnmount=function(){this.o=[]},hu.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),n=this.__v.__k[0].__c;this.__v.__k[0]=Yy(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&Je(De,null,e.fallback);return i&&(i.__u&=-33),[Je(De,null,t.__a?null:e.children),i]};By=function(e,t,r){if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.i=r=r[2]}};(ua.prototype=new ut).__a=function(e){var t=this,r=Xy(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),By(t,e,n)):i()};r?r(o):o()}},ua.prototype.render=function(e){this.i=null,this.l=new Map;var t=yi(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},ua.prototype.componentDidUpdate=ua.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){By(e,r,t)})};PN=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,RN=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,NN=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,DN=/[A-Z0-9]/g,LN=typeof document!="undefined",MN=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};ut.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(ut.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});Hy=N.event;N.event=function(e){return Hy&&(e=Hy(e)),e.persist=qN,e.isPropagationStopped=UN,e.isDefaultPrevented=FN,e.nativeEvent=e};jN={enumerable:!1,configurable:!0,get:function(){return this.class}},Vy=N.vnode;N.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,n=t.type,i={},o=n.indexOf("-")===-1;for(var a in r){var s=r[a];if(!(a==="value"&&"defaultValue"in r&&s==null||LN&&a==="children"&&n==="noscript"||a==="class"||a==="className")){var l=a.toLowerCase();a==="defaultValue"&&"value"in r&&r.value==null?a="value":a==="download"&&s===!0?s="":l==="translate"&&s==="no"?s=!1:l[0]==="o"&&l[1]==="n"?l==="ondoubleclick"?a="ondblclick":l!=="onchange"||n!=="input"&&n!=="textarea"||MN(r.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":NN.test(a)&&(a=l):l=a="oninput":o&&RN.test(a)?a=a.replace(DN,"-$&").toLowerCase():s===null&&(s=void 0),l==="oninput"&&i[a=l]&&(a="oninputCapture"),i[a]=s}}n=="select"&&i.multiple&&Array.isArray(i.value)&&(i.value=yi(r.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=yi(r.children).forEach(function(c){c.props.selected=i.multiple?i.defaultValue.indexOf(c.props.value)!=-1:i.defaultValue==c.props.value})),r.class&&!r.className?(i.class=r.class,Object.defineProperty(i,"className",jN)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=PN,Vy&&Vy(e)};$y=N.__r;N.__r=function(e){$y&&$y(e),Zy=e.__c};Wy=N.diffed;N.diffed=function(e){Wy&&Wy(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value),Zy=null}});var wu=h(()=>{"use strict";var GN=Z(),bu=fe();GN({global:!0,forced:bu.globalThis!==bu},{globalThis:bu})});var e_=h(()=>{"use strict";wu()});var r_=h((Xz,t_)=>{"use strict";wu();t_.exports=fe()});var i_=h((Zz,n_)=>{"use strict";var BN=r_();n_.exports=BN});var a_=h((e6,o_)=>{"use strict";var HN=i_();o_.exports=HN});var l_=h((t6,s_)=>{"use strict";e_();var VN=a_();s_.exports=VN});var u_=h((r6,c_)=>{"use strict";c_.exports=l_()});var p_=h((n6,d_)=>{d_.exports=u_()});var f_=h(()=>{"use strict";var $N=Z(),WN=Ci();$N({target:"Array",stat:!0},{isArray:WN})});var m_=h((a6,h_)=>{"use strict";f_();var zN=Dt();h_.exports=zN.Array.isArray});var g_=h((s6,v_)=>{"use strict";var KN=m_();v_.exports=KN});var __=h((l6,y_)=>{y_.exports=g_()});var w_=h((c6,b_)=>{"use strict";b_.exports=function(){}});var $r=h((u6,I_)=>{"use strict";I_.exports={}});var Iu=h((d6,k_)=>{"use strict";var YN=fe(),QN=Le(),E_=YN.WeakMap;k_.exports=QN(E_)&&/native code/.test(String(E_))});var pa=h((p6,A_)=>{"use strict";var XN=jc(),ZN=na(),S_=XN("keys");A_.exports=function(e){return S_[e]||(S_[e]=ZN(e))}});var Fi=h((f6,x_)=>{"use strict";x_.exports={}});var zr=h((h6,O_)=>{"use strict";var eD=Iu(),T_=fe(),tD=Ce(),rD=Hr(),Eu=dt(),ku=Ei(),nD=pa(),iD=Fi(),C_="Object already initialized",Su=T_.TypeError,oD=T_.WeakMap,fa,ji,ha,aD=function(e){return ha(e)?ji(e):fa(e,{})},sD=function(e){return function(t){var r;if(!tD(t)||(r=ji(t)).type!==e)throw new Su("Incompatible receiver, "+e+" required");return r}};eD||ku.state?(St=ku.state||(ku.state=new oD),St.get=St.get,St.has=St.has,St.set=St.set,fa=function(e,t){if(St.has(e))throw new Su(C_);return t.facade=e,St.set(e,t),t},ji=function(e){return St.get(e)||{}},ha=function(e){return St.has(e)}):(Wr=nD("state"),iD[Wr]=!0,fa=function(e,t){if(Eu(e,Wr))throw new Su(C_);return t.facade=e,rD(e,Wr,t),t},ji=function(e){return Eu(e,Wr)?e[Wr]:{}},ha=function(e){return Eu(e,Wr)});var St,Wr;O_.exports={set:fa,get:ji,has:ha,enforce:aD,getterFor:sD}});var Cu=h((m6,R_)=>{"use strict";var Au=Qe(),lD=dt(),P_=Function.prototype,cD=Au&&Object.getOwnPropertyDescriptor,xu=lD(P_,"name"),uD=xu&&(function(){}).name==="something",dD=xu&&(!Au||Au&&cD(P_,"name").configurable);R_.exports={EXISTS:xu,PROPER:uD,CONFIGURABLE:dD}});var Tu=h((v6,N_)=>{"use strict";var pD=xi(),fD=Math.max,hD=Math.min;N_.exports=function(e,t){var r=pD(e);return r<0?fD(r+t,0):hD(r,t)}});var Ou=h((g6,L_)=>{"use strict";var mD=vr(),vD=Tu(),gD=gn(),D_=function(e){return function(t,r,n){var i=mD(t),o=gD(i);if(o===0)return!e&&-1;var a=vD(n,o),s;if(e&&r!==r){for(;o>a;)if(s=i[a++],s!==s)return!0}else for(;o>a;a++)if((e||a in i)&&i[a]===r)return e||a||0;return!e&&-1}};L_.exports={includes:D_(!0),indexOf:D_(!1)}});var Ru=h((y6,q_)=>{"use strict";var yD=be(),Pu=dt(),_D=vr(),bD=Ou().indexOf,wD=Fi(),M_=yD([].push);q_.exports=function(e,t){var r=_D(e),n=0,i=[],o;for(o in r)!Pu(wD,o)&&Pu(r,o)&&M_(i,o);for(;t.length>n;)Pu(r,o=t[n++])&&(~bD(i,o)||M_(i,o));return i}});var ma=h((_6,U_)=>{"use strict";U_.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Nu=h((b6,F_)=>{"use strict";var ID=Ru(),ED=ma();F_.exports=Object.keys||function(t){return ID(t,ED)}});var J_=h(j_=>{"use strict";var kD=Qe(),SD=Wc(),AD=Qt(),xD=Yt(),CD=vr(),TD=Nu();j_.f=kD&&!SD?Object.defineProperties:function(t,r){xD(t);for(var n=CD(r),i=TD(r),o=i.length,a=0,s;o>a;)AD.f(t,s=i[a++],n[s]);return t}});var B_=h((I6,G_)=>{"use strict";var OD=dn();G_.exports=OD("document","documentElement")});var Ji=h((E6,Y_)=>{"use strict";var PD=Yt(),RD=J_(),H_=ma(),ND=Fi(),DD=B_(),LD=Hc(),MD=pa(),V_=">",$_="<",Lu="prototype",Mu="script",z_=MD("IE_PROTO"),Du=function(){},K_=function(e){return $_+Mu+V_+e+$_+"/"+Mu+V_},W_=function(e){e.write(K_("")),e.close();var t=e.parentWindow.Object;return e=null,t},qD=function(){var e=LD("iframe"),t="java"+Mu+":",r;return e.style.display="none",DD.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(K_("document.F=Object")),r.close(),r.F},va,ga=function(){try{va=new ActiveXObject("htmlfile")}catch(t){}ga=typeof document!="undefined"?document.domain&&va?W_(va):qD():W_(va);for(var e=H_.length;e--;)delete ga[Lu][H_[e]];return ga()};ND[z_]=!0;Y_.exports=Object.create||function(t,r){var n;return t!==null?(Du[Lu]=PD(t),n=new Du,Du[Lu]=null,n[z_]=t):n=ga(),r===void 0?n:RD.f(n,r)}});var X_=h((k6,Q_)=>{"use strict";var UD=pe();Q_.exports=!UD(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Uu=h((S6,eb)=>{"use strict";var FD=dt(),jD=Le(),JD=fn(),GD=pa(),BD=X_(),Z_=GD("IE_PROTO"),qu=Object,HD=qu.prototype;eb.exports=BD?qu.getPrototypeOf:function(e){var t=JD(e);if(FD(t,Z_))return t[Z_];var r=t.constructor;return jD(r)&&t instanceof r?r.prototype:t instanceof qu?HD:null}});var ya=h((A6,tb)=>{"use strict";var VD=Hr();tb.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:VD(e,t,r),e}});var Gu=h((x6,ib)=>{"use strict";var $D=pe(),WD=Le(),zD=Ce(),KD=Ji(),rb=Uu(),YD=ya(),QD=Ge(),XD=pn(),Ju=QD("iterator"),nb=!1,Xt,Fu,ju;[].keys&&(ju=[].keys(),"next"in ju?(Fu=rb(rb(ju)),Fu!==Object.prototype&&(Xt=Fu)):nb=!0);var ZD=!zD(Xt)||$D(function(){var e={};return Xt[Ju].call(e)!==e});ZD?Xt={}:XD&&(Xt=KD(Xt));WD(Xt[Ju])||YD(Xt,Ju,function(){return this});ib.exports={IteratorPrototype:Xt,BUGGY_SAFARI_ITERATORS:nb}});var ab=h((C6,ob)=>{"use strict";var eL=oa(),tL=yn();ob.exports=eL?{}.toString:function(){return"[object "+tL(this)+"]"}});var Gi=h((T6,lb)=>{"use strict";var rL=oa(),nL=Qt().f,iL=Hr(),oL=dt(),aL=ab(),sL=Ge(),sb=sL("toStringTag");lb.exports=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(oL(i,sb)||nL(i,sb,{configurable:!0,value:t}),n&&!rL&&iL(i,"toString",aL))}});var ub=h((O6,cb)=>{"use strict";var lL=Gu().IteratorPrototype,cL=Ji(),uL=wi(),dL=Gi(),pL=$r(),fL=function(){return this};cb.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=cL(lL,{next:uL(+!n,r)}),dL(e,i,!1,!0),pL[i]=fL,e}});var pb=h((P6,db)=>{"use strict";var hL=be(),mL=Br();db.exports=function(e,t,r){try{return hL(mL(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var hb=h((R6,fb)=>{"use strict";var vL=Ce();fb.exports=function(e){return vL(e)||e===null}});var vb=h((N6,mb)=>{"use strict";var gL=hb(),yL=String,_L=TypeError;mb.exports=function(e){if(gL(e))return e;throw new _L("Can't set "+yL(e)+" as a prototype")}});var yb=h((D6,gb)=>{"use strict";var bL=pb(),wL=Ce(),IL=Gr(),EL=vb();gb.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=bL(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return IL(i),EL(o),wL(i)&&(e?r(i,o):i.__proto__=o),i}}():void 0)});var wa=h((L6,Cb)=>{"use strict";var kL=Z(),SL=Et(),_a=pn(),Ab=Cu(),AL=Le(),xL=ub(),_b=Uu(),bb=yb(),CL=Gi(),TL=Hr(),Bu=ya(),OL=Ge(),wb=$r(),xb=Gu(),PL=Ab.PROPER,RL=Ab.CONFIGURABLE,Ib=xb.IteratorPrototype,ba=xb.BUGGY_SAFARI_ITERATORS,Bi=OL("iterator"),Eb="keys",Hi="values",kb="entries",Sb=function(){return this};Cb.exports=function(e,t,r,n,i,o,a){xL(r,t,n);var s=function(v){if(v===i&&p)return p;if(!ba&&v&&v in d)return d[v];switch(v){case Eb:return function(){return new r(this,v)};case Hi:return function(){return new r(this,v)};case kb:return function(){return new r(this,v)}}return function(){return new r(this)}},l=t+" Iterator",c=!1,d=e.prototype,u=d[Bi]||d["@@iterator"]||i&&d[i],p=!ba&&u||s(i),f=t==="Array"&&d.entries||u,m,g,y;if(f&&(m=_b(f.call(new e)),m!==Object.prototype&&m.next&&(!_a&&_b(m)!==Ib&&(bb?bb(m,Ib):AL(m[Bi])||Bu(m,Bi,Sb)),CL(m,l,!0,!0),_a&&(wb[l]=Sb))),PL&&i===Hi&&u&&u.name!==Hi&&(!_a&&RL?TL(d,"name",Hi):(c=!0,p=function(){return SL(u,this)})),i)if(g={values:s(Hi),keys:o?p:s(Eb),entries:s(kb)},a)for(y in g)(ba||c||!(y in d))&&Bu(d,y,g[y]);else kL({target:t,proto:!0,forced:ba||c},g);return(!_a||a)&&d[Bi]!==p&&Bu(d,Bi,p,{name:i}),wb[t]=p,g}});var Ia=h((M6,Tb)=>{"use strict";Tb.exports=function(e,t){return{value:e,done:t}}});var ka=h((q6,Db)=>{"use strict";var NL=vr(),Hu=w_(),Ob=$r(),Rb=zr(),DL=Qt().f,LL=wa(),Ea=Ia(),ML=pn(),qL=Qe(),Nb="Array Iterator",UL=Rb.set,FL=Rb.getterFor(Nb);Db.exports=LL(Array,"Array",function(e,t){UL(this,{type:Nb,target:NL(e),index:0,kind:t})},function(){var e=FL(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,Ea(void 0,!0);switch(e.kind){case"keys":return Ea(r,!1);case"values":return Ea(t[r],!1)}return Ea([r,t[r]],!1)},"values");var Pb=Ob.Arguments=Ob.Array;Hu("keys");Hu("values");Hu("entries");if(!ML&&qL&&Pb.name!=="values")try{DL(Pb,"name",{value:"values"})}catch(e){}});var Vu=h(()=>{});var $u=h((j6,Lb)=>{"use strict";var jL=pe();Lb.exports=!jL(function(){return Object.isExtensible(Object.preventExtensions({}))})});var Sa=h((J6,Mb)=>{"use strict";var JL=ya();Mb.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:JL(e,n,t[n],r);return e}});var Wu=h(qb=>{"use strict";var GL=Ru(),BL=ma(),HL=BL.concat("length","prototype");qb.f=Object.getOwnPropertyNames||function(t){return GL(t,HL)}});var Jb=h((B6,jb)=>{"use strict";var VL=Kt(),$L=vr(),Ub=Wu().f,WL=Ni(),Fb=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],zL=function(e){try{return Ub(e)}catch(t){return WL(Fb)}};jb.exports.f=function(t){return Fb&&VL(t)==="Window"?zL(t):Ub($L(t))}});var Bb=h((H6,Gb)=>{"use strict";var KL=pe();Gb.exports=KL(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var $b=h((V6,Vb)=>{"use strict";var YL=pe(),QL=Ce(),XL=Kt(),Hb=Bb(),Aa=Object.isExtensible,ZL=YL(function(){Aa(1)});Vb.exports=ZL||Hb?function(t){return!QL(t)||Hb&&XL(t)==="ArrayBuffer"?!1:Aa?Aa(t):!0}:Aa});var Vi=h(($6,Kb)=>{"use strict";var eM=Z(),tM=be(),rM=Fi(),nM=Ce(),zu=dt(),iM=Qt().f,Wb=Wu(),oM=Jb(),Ku=$b(),aM=na(),sM=$u(),zb=!1,Zt=aM("meta"),lM=0,Yu=function(e){iM(e,Zt,{value:{objectID:"O"+lM++,weakData:{}}})},cM=function(e,t){if(!nM(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!zu(e,Zt)){if(!Ku(e))return"F";if(!t)return"E";Yu(e)}return e[Zt].objectID},uM=function(e,t){if(!zu(e,Zt)){if(!Ku(e))return!0;if(!t)return!1;Yu(e)}return e[Zt].weakData},dM=function(e){return sM&&zb&&Ku(e)&&!zu(e,Zt)&&Yu(e),e},pM=function(){fM.enable=function(){},zb=!0;var e=Wb.f,t=tM([].splice),r={};r[Zt]=1,e(r).length&&(Wb.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===Zt){t(i,o,1);break}return i},eM({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:oM.f}))},fM=Kb.exports={enable:pM,fastKey:cM,getWeakData:uM,onFreeze:dM};rM[Zt]=!0});var Qb=h((W6,Yb)=>{"use strict";var hM=Ge(),mM=$r(),vM=hM("iterator"),gM=Array.prototype;Yb.exports=function(e){return e!==void 0&&(mM.Array===e||gM[vM]===e)}});var Qu=h((z6,Zb)=>{"use strict";var yM=yn(),Xb=ra(),_M=Jr(),bM=$r(),wM=Ge(),IM=wM("iterator");Zb.exports=function(e){if(!_M(e))return Xb(e,IM)||Xb(e,"@@iterator")||bM[yM(e)]}});var tw=h((K6,ew)=>{"use strict";var EM=Et(),kM=Br(),SM=Yt(),AM=Ii(),xM=Qu(),CM=TypeError;ew.exports=function(e,t){var r=arguments.length<2?xM(e):t;if(kM(r))return SM(EM(r,e));throw new CM(AM(e)+" is not iterable")}});var xa=h((Y6,nw)=>{"use strict";var TM=Et(),rw=Yt(),OM=ra();nw.exports=function(e,t,r){var n,i;rw(e);try{if(n=OM(e,"return"),!n){if(t==="throw")throw r;return r}n=TM(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return rw(n),r}});var Ta=h((Q6,sw)=>{"use strict";var PM=Si(),RM=Et(),NM=Yt(),DM=Ii(),LM=Qb(),MM=gn(),iw=Ye(),qM=tw(),UM=Qu(),ow=xa(),FM=TypeError,Ca=function(e,t){this.stopped=e,this.result=t},aw=Ca.prototype;sw.exports=function(e,t,r){var n=r&&r.that,i=!!(r&&r.AS_ENTRIES),o=!!(r&&r.IS_RECORD),a=!!(r&&r.IS_ITERATOR),s=!!(r&&r.INTERRUPTED),l=PM(t,n),c,d,u,p,f,m,g,y=function(b){return c&&ow(c,"normal",b),new Ca(!0,b)},v=function(b){return i?(NM(b),s?l(b[0],b[1],y):l(b[0],b[1])):s?l(b,y):l(b)};if(o)c=e.iterator;else if(a)c=e;else{if(d=UM(e),!d)throw new FM(DM(e)+" is not iterable");if(LM(d)){for(u=0,p=MM(e);p>u;u++)if(f=v(e[u]),f&&iw(aw,f))return f;return new Ca(!1)}c=qM(e,d)}for(m=o?e.next:c.next;!(g=RM(m,c)).done;){try{f=v(g.value)}catch(b){ow(c,"throw",b)}if(typeof f=="object"&&f&&iw(aw,f))return f}return new Ca(!1)}});var Oa=h((X6,lw)=>{"use strict";var jM=Ye(),JM=TypeError;lw.exports=function(e,t){if(jM(t,e))return e;throw new JM("Incorrect invocation")}});var Xu=h((Z6,uw)=>{"use strict";var GM=Z(),BM=fe(),HM=Vi(),VM=pe(),$M=Hr(),WM=Ta(),zM=Oa(),KM=Le(),YM=Ce(),QM=Jr(),XM=Gi(),ZM=Qt().f,eq=yr().forEach,tq=Qe(),cw=zr(),rq=cw.set,nq=cw.getterFor;uw.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=BM[e],s=a&&a.prototype,l={},c;if(!tq||!KM(a)||!(i||s.forEach&&!VM(function(){new a().entries().next()})))c=r.getConstructor(t,e,n,o),HM.enable();else{c=t(function(p,f){rq(zM(p,d),{type:e,collection:new a}),QM(f)||WM(f,p[o],{that:p,AS_ENTRIES:n})});var d=c.prototype,u=nq(e);eq(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(p){var f=p==="add"||p==="set";p in s&&!(i&&p==="clear")&&$M(d,p,function(m,g){var y=u(this).collection;if(!f&&i&&!YM(m))return p==="get"?void 0:!1;var v=y[p](m===0?0:m,g);return f?this:v})}),i||ZM(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return XM(c,e,!1,!0),l[e]=c,GM({global:!0,forced:!0},l),i||r.setStrong(c,e,n),c}});var gw=h((e8,vw)=>{"use strict";var iq=be(),dw=Sa(),Pa=Vi().getWeakData,oq=Oa(),aq=Yt(),sq=Jr(),Zu=Ce(),lq=Ta(),fw=yr(),pw=dt(),hw=zr(),cq=hw.set,uq=hw.getterFor,dq=fw.find,pq=fw.findIndex,fq=iq([].splice),hq=0,Ra=function(e){return e.frozen||(e.frozen=new mw)},mw=function(){this.entries=[]},ed=function(e,t){return dq(e.entries,function(r){return r[0]===t})};mw.prototype={get:function(e){var t=ed(this,e);if(t)return t[1]},has:function(e){return!!ed(this,e)},set:function(e,t){var r=ed(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=pq(this.entries,function(r){return r[0]===e});return~t&&fq(this.entries,t,1),!!~t}};vw.exports={getConstructor:function(e,t,r,n){var i=e(function(l,c){oq(l,o),cq(l,{type:t,id:hq++,frozen:null}),sq(c)||lq(c,l[n],{that:l,AS_ENTRIES:r})}),o=i.prototype,a=uq(t),s=function(l,c,d){var u=a(l),p=Pa(aq(c),!0);return p===!0?Ra(u).set(c,d):p[u.id]=d,l};return dw(o,{delete:function(l){var c=a(this);if(!Zu(l))return!1;var d=Pa(l);return d===!0?Ra(c).delete(l):d&&pw(d,c.id)&&delete d[c.id]},has:function(c){var d=a(this);if(!Zu(c))return!1;var u=Pa(c);return u===!0?Ra(d).has(c):u&&pw(u,d.id)}}),dw(o,r?{get:function(c){var d=a(this);if(Zu(c)){var u=Pa(c);if(u===!0)return Ra(d).get(c);if(u)return u[d.id]}},set:function(c,d){return s(this,c,d)}}:{add:function(c){return s(this,c,!0)}}),i}}});var Sw=h(()=>{"use strict";var mq=$u(),yw=fe(),Ma=be(),_w=Sa(),vq=Vi(),gq=Xu(),bw=gw(),Na=Ce(),Da=zr().enforce,yq=pe(),_q=Iu(),zi=Object,bq=Array.isArray,La=zi.isExtensible,ww=zi.isFrozen,wq=zi.isSealed,Iw=zi.freeze,Iq=zi.seal,Eq=!yw.ActiveXObject&&"ActiveXObject"in yw,$i,Ew=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},kw=gq("WeakMap",Ew,bw),In=kw.prototype,qa=Ma(In.set),kq=function(){return mq&&yq(function(){var e=Iw([]);return qa(new kw,e,1),!ww(e)})};_q&&(Eq?($i=bw.getConstructor(Ew,"WeakMap",!0),vq.enable(),td=Ma(In.delete),Wi=Ma(In.has),rd=Ma(In.get),_w(In,{delete:function(e){if(Na(e)&&!La(e)){var t=Da(this);return t.frozen||(t.frozen=new $i),td(this,e)||t.frozen.delete(e)}return td(this,e)},has:function(t){if(Na(t)&&!La(t)){var r=Da(this);return r.frozen||(r.frozen=new $i),Wi(this,t)||r.frozen.has(t)}return Wi(this,t)},get:function(t){if(Na(t)&&!La(t)){var r=Da(this);return r.frozen||(r.frozen=new $i),Wi(this,t)?rd(this,t):r.frozen.get(t)}return rd(this,t)},set:function(t,r){if(Na(t)&&!La(t)){var n=Da(this);n.frozen||(n.frozen=new $i),Wi(this,t)?qa(this,t,r):n.frozen.set(t,r)}else qa(this,t,r);return this}})):kq()&&_w(In,{set:function(t,r){var n;return bq(t)&&(ww(t)?n=Iw:wq(t)&&(n=Iq)),qa(this,t,r),n&&n(t),this}}));var td,Wi,rd});var Aw=h(()=>{"use strict";Sw()});var Cw=h((o8,xw)=>{"use strict";ka();Vu();Aw();var Sq=Dt();xw.exports=Sq.WeakMap});var Ow=h((a8,Tw)=>{"use strict";Tw.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}});var nd=h(()=>{"use strict";ka();var Aq=Ow(),xq=fe(),Cq=Gi(),Pw=$r();for(Ua in Aq)Cq(xq[Ua],Ua),Pw[Ua]=Pw.Array;var Ua});var Nw=h((c8,Rw)=>{"use strict";var Tq=Cw();nd();Rw.exports=Tq});var Lw=h((u8,Dw)=>{Dw.exports=Nw()});var qw=h(()=>{"use strict";var Oq=Z(),Pq=bi(),Rq=Ou().indexOf,Nq=Pi(),id=Pq([].indexOf),Mw=!!id&&1/id([1],1,-0)<0,Dq=Mw||!Nq("indexOf");Oq({target:"Array",proto:!0,forced:Dq},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return Mw?id(this,t,r)||0:Rq(this,t,r)}})});var Fw=h((f8,Uw)=>{"use strict";qw();var Lq=_t();Uw.exports=Lq("Array","indexOf")});var Jw=h((h8,jw)=>{"use strict";var Mq=Ye(),qq=Fw(),od=Array.prototype;jw.exports=function(e){var t=e.indexOf;return e===od||Mq(od,e)&&t===od.indexOf?qq:t}});var Bw=h((m8,Gw)=>{"use strict";var Uq=Jw();Gw.exports=Uq});var Vw=h((v8,Hw)=>{Hw.exports=Bw()});var $w=h(()=>{"use strict";var Fq=Z(),jq=yr().map,Jq=Oi(),Gq=Jq("map");Fq({target:"Array",proto:!0,forced:!Gq},{map:function(t){return jq(this,t,arguments.length>1?arguments[1]:void 0)}})});var zw=h((_8,Ww)=>{"use strict";$w();var Bq=_t();Ww.exports=Bq("Array","map")});var Yw=h((b8,Kw)=>{"use strict";var Hq=Ye(),Vq=zw(),ad=Array.prototype;Kw.exports=function(e){var t=e.map;return e===ad||Hq(ad,e)&&t===ad.map?Vq:t}});var Xw=h((w8,Qw)=>{"use strict";var $q=Yw();Qw.exports=$q});var e0=h((I8,Zw)=>{Zw.exports=Xw()});var t0=h(()=>{"use strict";var Wq=Z(),zq=Qe(),Kq=Ji();Wq({target:"Object",stat:!0,sham:!zq},{create:Kq})});var n0=h((S8,r0)=>{"use strict";t0();var Yq=Dt(),Qq=Yq.Object;r0.exports=function(t,r){return Qq.create(t,r)}});var o0=h((A8,i0)=>{"use strict";var Xq=n0();i0.exports=Xq});var s0=h((x8,a0)=>{a0.exports=o0()});var sd=h((C8,l0)=>{"use strict";var Zq=Qt();l0.exports=function(e,t,r){return Zq.f(e,t,r)}});var d0=h((T8,u0)=>{"use strict";var eU=dn(),tU=sd(),rU=Ge(),nU=Qe(),c0=rU("species");u0.exports=function(e){var t=eU(e);nU&&t&&!t[c0]&&tU(t,c0,{configurable:!0,get:function(){return this}})}});var y0=h((O8,g0)=>{"use strict";var p0=Ji(),iU=sd(),f0=Sa(),oU=Si(),aU=Oa(),sU=Jr(),lU=Ta(),cU=wa(),Fa=Ia(),uU=d0(),Ki=Qe(),h0=Vi().fastKey,v0=zr(),m0=v0.set,ld=v0.getterFor;g0.exports={getConstructor:function(e,t,r,n){var i=e(function(c,d){aU(c,o),m0(c,{type:t,index:p0(null),first:null,last:null,size:0}),Ki||(c.size=0),sU(d)||lU(d,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=ld(t),s=function(c,d,u){var p=a(c),f=l(c,d),m,g;return f?f.value=u:(p.last=f={index:g=h0(d,!0),key:d,value:u,previous:m=p.last,next:null,removed:!1},p.first||(p.first=f),m&&(m.next=f),Ki?p.size++:c.size++,g!=="F"&&(p.index[g]=f)),c},l=function(c,d){var u=a(c),p=h0(d),f;if(p!=="F")return u.index[p];for(f=u.first;f;f=f.next)if(f.key===d)return f};return f0(o,{clear:function(){for(var d=this,u=a(d),p=u.first;p;)p.removed=!0,p.previous&&(p.previous=p.previous.next=null),p=p.next;u.first=u.last=null,u.index=p0(null),Ki?u.size=0:d.size=0},delete:function(c){var d=this,u=a(d),p=l(d,c);if(p){var f=p.next,m=p.previous;delete u.index[p.index],p.removed=!0,m&&(m.next=f),f&&(f.previous=m),u.first===p&&(u.first=f),u.last===p&&(u.last=m),Ki?u.size--:d.size--}return!!p},forEach:function(d){for(var u=a(this),p=oU(d,arguments.length>1?arguments[1]:void 0),f;f=f?f.next:u.first;)for(p(f.value,f.key,this);f&&f.removed;)f=f.previous},has:function(d){return!!l(this,d)}}),f0(o,r?{get:function(d){var u=l(this,d);return u&&u.value},set:function(d,u){return s(this,d===0?0:d,u)}}:{add:function(d){return s(this,d=d===0?0:d,d)}}),Ki&&iU(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=ld(t),o=ld(n);cU(e,t,function(a,s){m0(this,{type:n,target:a,state:i(a),kind:s,last:null})},function(){for(var a=o(this),s=a.kind,l=a.last;l&&l.removed;)l=l.previous;return!a.target||!(a.last=l=l?l.next:a.state.first)?(a.target=null,Fa(void 0,!0)):Fa(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},r?"entries":"values",!r,!0),uU(t)}}});var _0=h(()=>{"use strict";var dU=Xu(),pU=y0();dU("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},pU)});var b0=h(()=>{"use strict";_0()});var _r=h((L8,w0)=>{"use strict";var fU=Ii(),hU=TypeError;w0.exports=function(e){if(typeof e=="object"&&"size"in e&&"has"in e&&"add"in e&&"delete"in e&&"keys"in e)return e;throw new hU(fU(e)+" is not a set")}});var E0=h((M8,I0)=>{"use strict";I0.exports=function(e,t){return t===1?function(r,n){return r[e](n)}:function(r,n,i){return r[e](n,i)}}});var br=h((q8,S0)=>{"use strict";var mU=dn(),cd=E0(),k0=mU("Set"),vU=k0.prototype;S0.exports={Set:k0,add:cd("add",1),has:cd("has",1),remove:cd("delete",1),proto:vU}});var wr=h((U8,A0)=>{"use strict";var gU=Et();A0.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,o,a;!(o=gU(i,n)).done;)if(a=t(o.value),a!==void 0)return a}});var En=h((F8,x0)=>{"use strict";var yU=wr();x0.exports=function(e,t,r){return r?yU(e.keys(),t,!0):e.forEach(t)}});var ja=h((j8,T0)=>{"use strict";var C0=br(),_U=En(),bU=C0.Set,wU=C0.add;T0.exports=function(e){var t=new bU;return _U(e,function(r){wU(t,r)}),t}});var kn=h((J8,O0)=>{"use strict";O0.exports=function(e){return e.size}});var R0=h((G8,P0)=>{"use strict";P0.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var Ir=h((B8,U0)=>{"use strict";var N0=Br(),M0=Yt(),D0=Et(),IU=xi(),EU=R0(),L0="Invalid size",kU=RangeError,SU=TypeError,AU=Math.max,q0=function(e,t){this.set=e,this.size=AU(t,0),this.has=N0(e.has),this.keys=N0(e.keys)};q0.prototype={getIterator:function(){return EU(M0(D0(this.keys,this.set)))},includes:function(e){return D0(this.has,this.set,e)}};U0.exports=function(e){M0(e);var t=+e.size;if(t!==t)throw new SU(L0);var r=IU(t);if(r<0)throw new kU(L0);return new q0(e,r)}});var G0=h((H8,J0)=>{"use strict";var xU=_r(),j0=br(),CU=ja(),TU=kn(),OU=Ir(),PU=En(),RU=wr(),NU=j0.has,F0=j0.remove;J0.exports=function(t){var r=xU(this),n=OU(t),i=CU(r);return TU(r)<=n.size?PU(r,function(o){n.includes(o)&&F0(i,o)}):RU(n.getIterator(),function(o){NU(r,o)&&F0(i,o)}),i}});var Er=h((V8,B0)=>{"use strict";B0.exports=function(){return!1}});var H0=h(()=>{"use strict";var DU=Z(),LU=G0(),MU=Er(),qU=!MU("difference",function(e){return e.size===0});DU({target:"Set",proto:!0,real:!0,forced:qU},{difference:LU})});var W0=h((z8,$0)=>{"use strict";var UU=_r(),ud=br(),FU=kn(),jU=Ir(),JU=En(),GU=wr(),BU=ud.Set,V0=ud.add,HU=ud.has;$0.exports=function(t){var r=UU(this),n=jU(t),i=new BU;return FU(r)>n.size?GU(n.getIterator(),function(o){HU(r,o)&&V0(i,o)}):JU(r,function(o){n.includes(o)&&V0(i,o)}),i}});var z0=h(()=>{"use strict";var VU=Z(),$U=pe(),WU=W0(),zU=Er(),KU=!zU("intersection",function(e){return e.size===2&&e.has(1)&&e.has(2)})||$U(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});VU({target:"Set",proto:!0,real:!0,forced:KU},{intersection:WU})});var Y0=h((Q8,K0)=>{"use strict";var YU=_r(),QU=br().has,XU=kn(),ZU=Ir(),eF=En(),tF=wr(),rF=xa();K0.exports=function(t){var r=YU(this),n=ZU(t);if(XU(r)<=n.size)return eF(r,function(o){if(n.includes(o))return!1},!0)!==!1;var i=n.getIterator();return tF(i,function(o){if(QU(r,o))return rF(i,"normal",!1)})!==!1}});var Q0=h(()=>{"use strict";var nF=Z(),iF=Y0(),oF=Er(),aF=!oF("isDisjointFrom",function(e){return!e});nF({target:"Set",proto:!0,real:!0,forced:aF},{isDisjointFrom:iF})});var Z0=h((eK,X0)=>{"use strict";var sF=_r(),lF=kn(),cF=En(),uF=Ir();X0.exports=function(t){var r=sF(this),n=uF(t);return lF(r)>n.size?!1:cF(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var eI=h(()=>{"use strict";var dF=Z(),pF=Z0(),fF=Er(),hF=!fF("isSubsetOf",function(e){return e});dF({target:"Set",proto:!0,real:!0,forced:hF},{isSubsetOf:pF})});var rI=h((nK,tI)=>{"use strict";var mF=_r(),vF=br().has,gF=kn(),yF=Ir(),_F=wr(),bF=xa();tI.exports=function(t){var r=mF(this),n=yF(t);if(gF(r)<n.size)return!1;var i=n.getIterator();return _F(i,function(o){if(!vF(r,o))return bF(i,"normal",!1)})!==!1}});var nI=h(()=>{"use strict";var wF=Z(),IF=rI(),EF=Er(),kF=!EF("isSupersetOf",function(e){return!e});wF({target:"Set",proto:!0,real:!0,forced:kF},{isSupersetOf:IF})});var oI=h((aK,iI)=>{"use strict";var SF=_r(),dd=br(),AF=ja(),xF=Ir(),CF=wr(),TF=dd.add,OF=dd.has,PF=dd.remove;iI.exports=function(t){var r=SF(this),n=xF(t).getIterator(),i=AF(r);return CF(n,function(o){OF(r,o)?PF(i,o):TF(i,o)}),i}});var aI=h(()=>{"use strict";var RF=Z(),NF=oI(),DF=Er();RF({target:"Set",proto:!0,real:!0,forced:!DF("symmetricDifference")},{symmetricDifference:NF})});var lI=h((cK,sI)=>{"use strict";var LF=_r(),MF=br().add,qF=ja(),UF=Ir(),FF=wr();sI.exports=function(t){var r=LF(this),n=UF(t).getIterator(),i=qF(r);return FF(n,function(o){MF(i,o)}),i}});var cI=h(()=>{"use strict";var jF=Z(),JF=lI(),GF=Er();jF({target:"Set",proto:!0,real:!0,forced:!GF("union")},{union:JF})});var Yi=h((pK,uI)=>{"use strict";var BF=yn(),HF=String;uI.exports=function(e){if(BF(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return HF(e)}});var hI=h((fK,fI)=>{"use strict";var pd=be(),VF=xi(),$F=Yi(),WF=Gr(),zF=pd("".charAt),dI=pd("".charCodeAt),KF=pd("".slice),pI=function(e){return function(t,r){var n=$F(WF(t)),i=VF(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=dI(n,i),a<55296||a>56319||i+1===o||(s=dI(n,i+1))<56320||s>57343?e?zF(n,i):a:e?KF(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};fI.exports={codeAt:pI(!1),charAt:pI(!0)}});var yI=h(()=>{"use strict";var YF=hI().charAt,QF=Yi(),vI=zr(),XF=wa(),mI=Ia(),gI="String Iterator",ZF=vI.set,ej=vI.getterFor(gI);XF(String,"String",function(e){ZF(this,{type:gI,string:QF(e),index:0})},function(){var t=ej(this),r=t.string,n=t.index,i;return n>=r.length?mI(void 0,!0):(i=YF(r,n),t.index+=i.length,mI(i,!1))})});var bI=h((vK,_I)=>{"use strict";ka();Vu();b0();H0();z0();Q0();eI();nI();aI();cI();yI();var tj=Dt();_I.exports=tj.Set});var II=h((gK,wI)=>{"use strict";var rj=bI();nd();wI.exports=rj});var kI=h((yK,EI)=>{EI.exports=II()});var AI=h(SI=>{"use strict";SI.f=Object.getOwnPropertySymbols});var OI=h((bK,TI)=>{"use strict";var xI=Qe(),nj=be(),ij=Et(),oj=pe(),fd=Nu(),aj=AI(),sj=Tc(),lj=fn(),cj=Xo(),Sn=Object.assign,CI=Object.defineProperty,uj=nj([].concat);TI.exports=!Sn||oj(function(){if(xI&&Sn({b:1},Sn(CI({},"a",{enumerable:!0,get:function(){CI(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(i){t[i]=i}),Sn({},e)[r]!==7||fd(Sn({},t)).join("")!==n})?function(t,r){for(var n=lj(t),i=arguments.length,o=1,a=aj.f,s=sj.f;i>o;)for(var l=cj(arguments[o++]),c=a?uj(fd(l),a(l)):fd(l),d=c.length,u=0,p;d>u;)p=c[u++],(!xI||ij(s,l,p))&&(n[p]=l[p]);return n}:Sn});var RI=h(()=>{"use strict";var dj=Z(),PI=OI();dj({target:"Object",stat:!0,arity:2,forced:Object.assign!==PI},{assign:PI})});var DI=h((EK,NI)=>{"use strict";RI();var pj=Dt();NI.exports=pj.Object.assign});var MI=h((kK,LI)=>{"use strict";var fj=DI();LI.exports=fj});var UI=h((SK,qI)=>{qI.exports=MI()});var hd=h((AK,FI)=>{"use strict";FI.exports=`
|
|
20
|
+
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var GI=h((xK,JI)=>{"use strict";var hj=be(),mj=Gr(),vj=Yi(),vd=hd(),jI=hj("".replace),gj=RegExp("^["+vd+"]+"),yj=RegExp("(^|[^"+vd+"])["+vd+"]+$"),md=function(e){return function(t){var r=vj(mj(t));return e&1&&(r=jI(r,gj,"")),e&2&&(r=jI(r,yj,"$1")),r}};JI.exports={start:md(1),end:md(2),trim:md(3)}});var $I=h((CK,VI)=>{"use strict";var _j=Cu().PROPER,bj=pe(),BI=hd(),HI="\u200B\x85\u180E";VI.exports=function(e){return bj(function(){return!!BI[e]()||HI[e]()!==HI||_j&&BI[e].name!==e})}});var WI=h(()=>{"use strict";var wj=Z(),Ij=GI().trim,Ej=$I();wj({target:"String",proto:!0,forced:Ej("trim")},{trim:function(){return Ij(this)}})});var KI=h((PK,zI)=>{"use strict";WI();var kj=_t();zI.exports=kj("String","trim")});var QI=h((RK,YI)=>{"use strict";var Sj=Ye(),Aj=KI(),gd=String.prototype;YI.exports=function(e){var t=e.trim;return typeof e=="string"||e===gd||Sj(gd,e)&&t===gd.trim?Aj:t}});var ZI=h((NK,XI)=>{"use strict";var xj=QI();XI.exports=xj});var tE=h((DK,eE)=>{eE.exports=ZI()});var iE=h(()=>{"use strict";var Cj=Z(),rE=Ci(),Tj=tu(),Oj=Ce(),nE=Tu(),Pj=gn(),Rj=vr(),Nj=au(),Dj=Ge(),Lj=Oi(),Mj=Ni(),qj=Lj("slice"),Uj=Dj("species"),yd=Array,Fj=Math.max;Cj({target:"Array",proto:!0,forced:!qj},{slice:function(t,r){var n=Rj(this),i=Pj(n),o=nE(t,i),a=nE(r===void 0?i:r,i),s,l,c;if(rE(n)&&(s=n.constructor,Tj(s)&&(s===yd||rE(s.prototype))?s=void 0:Oj(s)&&(s=s[Uj],s===null&&(s=void 0)),s===yd||s===void 0))return Mj(n,o,a);for(l=new(s===void 0?yd:s)(Fj(a-o,0)),c=0;o<a;o++,c++)o in n&&Nj(l,c,n[o]);return l.length=c,l}})});var aE=h((qK,oE)=>{"use strict";iE();var jj=_t();oE.exports=jj("Array","slice")});var lE=h((UK,sE)=>{"use strict";var Jj=Ye(),Gj=aE(),_d=Array.prototype;sE.exports=function(e){var t=e.slice;return e===_d||Jj(_d,e)&&t===_d.slice?Gj:t}});var uE=h((FK,cE)=>{"use strict";var Bj=lE();cE.exports=Bj});var pE=h((jK,dE)=>{dE.exports=uE()});var bd=A(()=>{});var hE=h((GK,fE)=>{"use strict";var Hj=Ce(),Vj=Kt(),$j=Ge(),Wj=$j("match");fE.exports=function(e){var t;return Hj(e)&&((t=e[Wj])!==void 0?!!t:Vj(e)==="RegExp")}});var vE=h((BK,mE)=>{"use strict";var zj=hE(),Kj=TypeError;mE.exports=function(e){if(zj(e))throw new Kj("The method doesn't accept regular expressions");return e}});var yE=h((HK,gE)=>{"use strict";var Yj=Ge(),Qj=Yj("match");gE.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[Qj]=!1,"/./"[e](t)}catch(n){}}return!1}});var wE=h(()=>{"use strict";var Xj=Z(),Zj=bi(),eJ=$c().f,tJ=Xc(),_E=Yi(),rJ=vE(),nJ=Gr(),iJ=yE(),oJ=pn(),aJ=Zj("".slice),sJ=Math.min,bE=iJ("startsWith"),lJ=!oJ&&!bE&&!!function(){var e=eJ(String.prototype,"startsWith");return e&&!e.writable}();Xj({target:"String",proto:!0,forced:!lJ&&!bE},{startsWith:function(t){var r=_E(nJ(this));rJ(t);var n=tJ(sJ(arguments.length>1?arguments[1]:void 0,r.length)),i=_E(t);return aJ(r,n,n+i.length)===i}})});var EE=h((WK,IE)=>{"use strict";wE();var cJ=_t();IE.exports=cJ("String","startsWith")});var SE=h((zK,kE)=>{"use strict";var uJ=Ye(),dJ=EE(),wd=String.prototype;kE.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===wd||uJ(wd,e)&&t===wd.startsWith?dJ:t}});var xE=h((KK,AE)=>{"use strict";var pJ=SE();AE.exports=pJ});var TE=h((YK,CE)=>{CE.exports=xE()});var DE=h((QK,NE)=>{"use strict";var PE=be(),fJ=Br(),hJ=Ce(),mJ=dt(),OE=Ni(),vJ=un(),RE=Function,gJ=PE([].concat),yJ=PE([].join),Id={},_J=function(e,t,r){if(!mJ(Id,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";Id[t]=RE("C,a","return new C("+yJ(n,",")+")")}return Id[t](e,r)};NE.exports=vJ?RE.bind:function(t){var r=fJ(this),n=r.prototype,i=OE(arguments,1),o=function(){var s=gJ(i,OE(arguments));return this instanceof o?_J(r,s.length,s):r.apply(t,s)};return hJ(n)&&(o.prototype=n),o}});var ME=h(()=>{"use strict";var bJ=Z(),LE=DE();bJ({target:"Function",proto:!0,forced:Function.bind!==LE},{bind:LE})});var UE=h((e7,qE)=>{"use strict";ME();var wJ=_t();qE.exports=wJ("Function","bind")});var jE=h((t7,FE)=>{"use strict";var IJ=Ye(),EJ=UE(),Ed=Function.prototype;FE.exports=function(e){var t=e.bind;return e===Ed||IJ(Ed,e)&&t===Ed.bind?EJ:t}});var GE=h((r7,JE)=>{"use strict";var kJ=jE();JE.exports=kJ});var HE=h((n7,BE)=>{BE.exports=GE()});function os(e,t){we.__h&&we.__h(ce,e,no||t),no=0;var r=ce.__H||(ce.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Jt(e){return no=1,SJ(Rk,e)}function SJ(e,t,r){var n=os(Tn++,2);if(n.t=e,!n.__c&&(n.__=[Rk(void 0,t),function(s){var l=n.__N?n.__N[0]:n.__[0],c=n.t(l,s);l!==c&&(n.__N=[c,n.__[1]],n.__c.setState({}))}],n.__c=ce,!ce.__f)){var i=function(s,l,c){var d;if(!n.__c.__H)return!0;var u=(0,Hd.default)(d=n.__c.__H.__).call(d,function(f){return!!f.__c});if((0,xk.default)(u).call(u,function(f){return!f.__N}))return!o||o.call(this,s,l,c);var p=n.__c.props!==s;return(0,Te.default)(u).call(u,function(f){if(f.__N){var m=f.__[0];f.__=f.__N,f.__N=void 0,m!==f.__[0]&&(p=!0)}}),o&&o.call(this,s,l,c)||p};ce.__f=!0;var o=ce.shouldComponentUpdate,a=ce.componentWillUpdate;ce.componentWillUpdate=function(s,l,c){if(this.__e){var d=o;o=void 0,i(s,l,c),o=d}a&&a.call(this,s,l,c)},ce.shouldComponentUpdate=i}return n.__N||n.__}function Yr(e,t){var r=os(Tn++,3);!we.__s&&Pk(r.__H,t)&&(r.__=e,r.u=t,ce.__H.__h.push(r))}function Zi(e){return no=5,tr(function(){return{current:e}},[])}function tr(e,t){var r=os(Tn++,7);return Pk(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function bt(e,t){return no=8,tr(function(){return e},t)}function AJ(e){var t=ce.context[e.__c],r=os(Tn++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(ce)),t.props.value):e.__}function xJ(){for(var e;e=Ok.shift();)if(e.__P&&e.__H)try{var t,r;(0,Te.default)(t=e.__H.__h).call(t,Va),(0,Te.default)(r=e.__H.__h).call(r,Rd),e.__H.__h=[]}catch(n){e.__H.__h=[],we.__e(n,e.__v)}}function CJ(e){var t,r=function(){clearTimeout(n),XE&&cancelAnimationFrame(t),(0,jt.default)(e)},n=(0,jt.default)(r,100);XE&&(t=requestAnimationFrame(r))}function Va(e){var t=ce,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ce=t}function Rd(e){var t=ce;e.__c=e.__(),ce=t}function Pk(e,t){return!e||e.length!==t.length||(0,Za.default)(t).call(t,function(r,n){return r!==e[n]})}function Rk(e,t){return typeof t=="function"?t(e):t}function TJ(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Nd(){throw new Error("setTimeout has not been defined")}function Dd(){throw new Error("clearTimeout has not been defined")}function Dk(e){if(Lt===jt.default)return(0,jt.default)(e,0);if((Lt===Nd||!Lt)&&jt.default)return Lt=jt.default,(0,jt.default)(e,0);try{return Lt(e,0)}catch(t){try{return Lt.call(null,e,0)}catch(r){return Lt.call(this,e,0)}}}function OJ(e){if(Mt===clearTimeout)return clearTimeout(e);if((Mt===Dd||!Mt)&&clearTimeout)return Mt=clearTimeout,clearTimeout(e);try{return Mt(e)}catch(t){try{return Mt.call(null,e)}catch(r){return Mt.call(this,e)}}}function PJ(){!An||!Sr||(An=!1,Sr.length?er=(0,is.default)(Sr).call(Sr,er):$a=-1,er.length&&Lk())}function Lk(){if(!An){var e=Dk(PJ);An=!0;for(var t=er.length;t;){for(Sr=er,er=[];++$a<t;)Sr&&Sr[$a].run();$a=-1,t=er.length}Sr=null,An=!1,OJ(e)}}function Mk(e,t){this.fun=e,this.array=t}function nr(){}function DJ(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function LJ(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}function FJ(e,t){return Me(e,0)^45?(((t<<2^Me(e,0))<<2^Me(e,1))<<2^Me(e,2))<<2^Me(e,3):0}function Fk(e){return(0,Wd.default)(e).call(e)}function jJ(e,t){return(e=t.exec(e))?e[0]:e}function Y(e,t,r){return e.replace(t,r)}function Ld(e,t){return(0,rr.default)(e).call(e,t)}function Me(e,t){return e.charCodeAt(t)|0}function io(e,t,r){return(0,zd.default)(e).call(e,t,r)}function qt(e){return e.length}function Xd(e){return e.length}function Ja(e,t){return t.push(e),e}function JJ(e,t){return(0,ro.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:ss,column:On,length:a,return:""}}function Qi(e,t){return UJ(ls("",null,null,"",null,null,0),e,{length:-e.length},t)}function GJ(){return Ie}function BJ(){return Ie=rt>0?Me(Rn,--rt):0,On--,Ie===10&&(On=1,ss--),Ie}function pt(){return Ie=rt<jk?Me(Rn,rt++):0,On++,Ie===10&&(On=1,ss++),Ie}function Gt(){return Me(Rn,rt)}function Wa(){return rt}function uo(e,t){return io(Rn,e,t)}function oo(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Jk(e){return ss=On=1,jk=qt(Rn=e),rt=0,[]}function Gk(e){return Rn="",e}function za(e){return Fk(uo(rt-1,Md(e===91?e+2:e===40?e+1:e)))}function HJ(e){for(;(Ie=Gt())&&Ie<33;)pt();return oo(e)>2||oo(Ie)>3?"":" "}function VJ(e,t){for(;--t&&pt()&&!(Ie<48||Ie>102||Ie>57&&Ie<65||Ie>70&&Ie<97););return uo(e,Wa()+(t<6&&Gt()==32&&pt()==32))}function Md(e){for(;pt();)switch(Ie){case e:return rt;case 34:case 39:e!==34&&e!==39&&Md(Ie);break;case 40:e===41&&Md(e);break;case 92:pt();break}return rt}function $J(e,t){for(;pt()&&e+Ie!==57&&!(e+Ie===84&&Gt()===47););return"/*"+uo(t,rt-1)+"*"+as(e===47?e:pt())}function WJ(e){for(;!oo(Gt());)pt();return uo(e,rt)}function zJ(e){return Gk(Ka("",null,null,null,[""],e=Jk(e),0,[0],e))}function Ka(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,g=1,y=1,v=1,b=0,k="",x=i,P=o,C=n,S=k;y;)switch(m=b,b=pt()){case 40:if(m!=108&&Me(S,u-1)==58){Ld(S+=Y(za(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:S+=za(b);break;case 9:case 10:case 13:case 32:S+=HJ(m);break;case 92:S+=VJ(Wa()-1,7);continue;case 47:switch(Gt()){case 42:case 47:Ja(KJ($J(pt(),Wa()),t,r),l);break;default:S+="/"}break;case 123*g:s[c++]=qt(S)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+d:f>0&&qt(S)-u&&Ja(f>32?ek(S+";",n,r,u-1):ek(Y(S," ","")+";",n,r,u-2),l);break;case 59:S+=";";default:if(Ja(C=ZE(S,t,r,c,d,i,s,k,x=[],P=[],u),o),b===123)if(d===0)Ka(S,t,C,C,x,o,u,s,P);else switch(p===99&&Me(S,3)===110?100:p){case 100:case 109:case 115:Ka(e,C,C,n&&Ja(ZE(e,C,C,0,0,i,s,k,i,x=[],u),P),i,P,u,s,n?x:P);break;default:Ka(S,C,C,C,[""],P,0,s,P)}}c=d=f=0,g=v=1,k=S="",u=a;break;case 58:u=1+qt(S),f=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&BJ()==125)continue}switch(S+=as(b),b*g){case 38:v=d>0?1:(S+="\f",-1);break;case 44:s[c++]=(qt(S)-1)*v,v=1;break;case 64:Gt()===45&&(S+=za(pt())),p=Gt(),d=u=qt(k=S+=WJ(Wa())),b++;break;case 45:m===45&&qt(S)==2&&(g=0)}}return o}function ZE(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=Xd(p),m=0,g=0,y=0;m<n;++m)for(var v=0,b=io(e,u+1,u=qJ(g=a[m])),k=e;v<f;++v)(k=Fk(g>0?p[v]+" "+b:Y(b,/&\f/g,p[v])))&&(l[y++]=k);return ls(e,t,r,i===0?Yd:s,l,c,d)}function KJ(e,t,r){return ls(e,t,r,Kd,as(GJ()),io(e,2,-2),0)}function ek(e,t,r,n){return ls(e,t,r,Qd,io(e,0,n),io(e,n+1,-1),n)}function xn(e,t){for(var r="",n=Xd(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function YJ(e,t,r,n){switch(e.type){case MJ:case Qd:return e.return=e.return||e.value;case Kd:return"";case Uk:return e.return=e.value+"{"+xn(e.children,n)+"}";case Yd:e.value=e.props.join(",")}return qt(r=xn(e.children,n))?e.return=e.value+"{"+r+"}":""}function QJ(e){var t=Xd(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function XJ(e){return function(t){t.root||(t=t.return)&&e(t)}}function Hk(e,t){switch(FJ(e,t)){case 5103:return H+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return H+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return H+e+ts+e+Be+e+e;case 6828:case 4268:return H+e+Be+e+e;case 6165:return H+e+Be+"flex-"+e+e;case 5187:return H+e+Y(e,/(\w+).+(:[^]+)/,H+"box-$1$2"+Be+"flex-$1$2")+e;case 5443:return H+e+Be+"flex-item-"+Y(e,/flex-|-self/,"")+e;case 4675:return H+e+Be+"flex-line-pack"+Y(e,/align-content|flex-|-self/,"")+e;case 5548:return H+e+Be+Y(e,"shrink","negative")+e;case 5292:return H+e+Be+Y(e,"basis","preferred-size")+e;case 6060:return H+"box-"+Y(e,"-grow","")+H+e+Be+Y(e,"grow","positive")+e;case 4554:return H+Y(e,/([^-])(transform)/g,"$1"+H+"$2")+e;case 6187:return Y(Y(Y(e,/(zoom-|grab)/,H+"$1"),/(image-set)/,H+"$1"),e,"")+e;case 5495:case 3959:return Y(e,/(image-set\([^]*)/,H+"$1$`$1");case 4968:return Y(Y(e,/(.+:)(flex-)?(.*)/,H+"box-pack:$3"+Be+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+H+e+e;case 4095:case 3583:case 4068:case 2532:return Y(e,/(.+)-inline(.+)/,H+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(qt(e)-1-t>6)switch(Me(e,t+1)){case 109:if(Me(e,t+4)!==45)break;case 102:return Y(e,/(.+:)(.+)-([^]+)/,"$1"+H+"$2-$3$1"+ts+(Me(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ld(e,"stretch")?Hk(Y(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Me(e,t+1)!==115)break;case 6444:switch(Me(e,qt(e)-3-(~Ld(e,"!important")&&10))){case 107:return Y(e,":",":"+H)+e;case 101:return Y(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+H+(Me(e,14)===45?"inline-":"")+"box$3$1"+H+"$2$3$1"+Be+"$2box$3")+e}break;case 5936:switch(Me(e,t+11)){case 114:return H+e+Be+Y(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return H+e+Be+Y(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return H+e+Be+Y(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return H+e+Be+e+e}return e}function $k(){if(nk)return Ga.exports;nk=1;let e=$k();return Ga.exports={default:e},Ga.exports.default=e,Ga.exports}function ao(e,t,r){var n,i="";return(0,Te.default)(n=r.split(" ")).call(n,function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}function p2(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function h2(e){var t=(0,Ck.default)(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function so(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return Ut={name:i.name,styles:i.styles,next:Ut},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Ut={name:a.name,styles:a.styles,next:Ut},a=a.next;var s=o.styles+";";return s}return g2(e,t,r)}case"function":{if(e!==void 0){var l=Ut,c=r(e);return Ut=l,so(e,t,c)}break}}var d=r;if(t==null)return d;var u=t[d];return u!==void 0?u:d}function g2(e,t,r){var n="";if((0,to.default)(r))for(var i=0;i<r.length;i++)n+=so(e,t,r[i])+";";else for(var o in r){var a=r[o];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=o+"{"+t[s]+"}":ik(s)&&(n+=Sd(o)+":"+ok(o,s)+";")}else if((0,to.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)ik(a[l])&&(n+=Sd(o)+":"+ok(o,a[l])+";");else{var c=so(e,t,a);switch(o){case"animation":case"animationName":{n+=Sd(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function Ar(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";Ut=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=so(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=so(r,t,e[s]),n){var l=o;i+=l[s]}ak.lastIndex=0;for(var c="",d;(d=ak.exec(i))!==null;)c+="-"+d[1];var u=p2(i)+c;return{name:u,styles:i,next:Ut}}function D(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Ar(t)}function C2(e,t,r){var n=[],i=ao(e,n,r);return n.length<2?r:i+t(n)}function _(e,t,r,n,i,o){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var c={type:e,props:l,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--P2,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return N.vnode&&N.vnode(c),c}function po(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=Jt(e());return Yr(()=>{let n=()=>{r(e())};return window.addEventListener("resize",n),"onorientationchange"in window&&window.addEventListener("orientationchange",n),n(),()=>{window.removeEventListener("resize",n),"onorientationchange"in window&&window.removeEventListener("orientationchange",n)}},[]),t}function KG(e){if(!e||e==="none")return"";let t=e.match(/^matrix\(([^)]+)\)$/);if(!t)return"";let r=t[1].split(",").map(Number);if(r.length<6)return"";let[n,i]=r,o=-Math.atan2(i,n)*(180/Math.PI),a=Math.round(o);return a===90?"rotateZ(90deg) translateY(-100vw)":a===-90||a===270?"rotateZ(-90deg) translateX(-100vh)":a===180||a===-180?"rotateZ(180deg) translate(-100vw, -100vh)":`rotateZ(${a}deg)`}function nS(e){let t=window.getComputedStyle(document.body).transform,r="";t&&t!=="none"&&(r=KG(t)),e.style.transform=r,e.style.transformOrigin="0 0"}function YG(e){let t=()=>nS(e);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}}function ZG(s){var l=s,{elementTag:e="Image",src:t="",children:r,handleExposure:n,className:i,imgStyle:o}=l,a=je(l,["elementTag","src","children","handleExposure","className","imgStyle"]);let c=XG(()=>{t&&n()});return e==="Image"?_("div",{className:i,style:{borderRadius:"8px"},children:Je("img",F(T({},a),{ref:c,src:t!=null?t:"",style:T({display:"block",width:"100%",height:"auto",objectFit:"cover",maxWidth:"100%",maxHeight:"100%",aspectRatio:"1 / 1",borderRadius:"8px"},o||{})}))}):_("div",F(T({},a),{ref:c,className:i,children:r}))}function eB(e,t){if(!e)return null;let r=Array.isArray(t)?t[0]:t,n=Array.isArray(t)?t[1]:0;return Array.isArray(e)?e.map((i,o)=>i&&typeof i=="object"&&"type"in i?Je(i.type,F(T({},i.props),{style:F(T({},i.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0}),key:i.key||o})):i):e&&typeof e=="object"&&"type"in e?Je(e.type,F(T({},e.props),{style:F(T({},e.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0})})):e}function oB(e,t){let r=t.split("."),n=e;for(let i of r){if(typeof n!="object"||n===null||!Object.prototype.hasOwnProperty.call(n,i))return;n=n[i]}return n}function yk(e,t,r){return us.call(t,"css")?_(rp,Qk(e,t),r):_(e,t,r)}function dB(e,t,r){return us.call(t,"css")?_(rp,Qk(e,t),r):_(e,t,r)}function Jd({children:e,values:t={},style:r}){let n=e.split(/({{\s*\w+\s*}})/g);return _("div",{style:r,children:n.map((i,o)=>{let a=i.match(/^{{\s*(\w+)\s*}}$/);if(a){let s=a[1];return t[s]!==void 0?_(De,{children:t[s]},o):null}return _(De,{children:i},o)})})}function hB({src:e,alt:t="",width:r=120,height:n=120,top:i="-60px",style:o={}}){let[a,s]=Jt(!1);return a?null:_("div",{style:T({position:"absolute",top:i,left:"50%",transform:"translateX(-50%)",zIndex:10,width:r,height:n},o),children:_("img",{src:e,alt:t,width:r,height:n,style:{display:"block",width:"100%",height:"100%",objectFit:"contain"},onError:()=>s(!0)})})}function gB({children:e,style:t}){return _("div",{style:`${mB.styles} ${t}`,children:[e,_("svg",{style:`${vB.styles} `,width:"18",height:"10",viewBox:"0 0 18 10",children:[_("polygon",{points:"9,10 0,1 18,1",fill:"#ffffff52"}),_("polygon",{points:"9,9 2,1 16,1",fill:"#4F396D"})]})]})}function RB(e,t){return qe(e,0)^45?(((t<<2^qe(e,0))<<2^qe(e,1))<<2^qe(e,2))<<2^qe(e,3):0}function gS(e){return(0,Wd.default)(e).call(e)}function NB(e,t){return(e=t.exec(e))?e[0]:e}function $(e,t,r){return e.replace(t,r)}function Gd(e,t){return(0,rr.default)(e).call(e,t)}function qe(e,t){return e.charCodeAt(t)|0}function lo(e,t,r){return(0,zd.default)(e).call(e,t,r)}function Ft(e){return e.length}function sp(e){return e.length}function Ha(e,t){return t.push(e),e}function DB(e,t){return(0,ro.default)(e).call(e,t).join("")}function vs(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:ms,column:Pn,length:a,return:""}}function Xi(e,t){return PB(vs("",null,null,"",null,null,0),e,{length:-e.length},t)}function LB(){return Ee}function MB(){return Ee=nt>0?qe(Dn,--nt):0,Pn--,Ee===10&&(Pn=1,ms--),Ee}function ft(){return Ee=nt<yS?qe(Dn,nt++):0,Pn++,Ee===10&&(Pn=1,ms++),Ee}function Bt(){return qe(Dn,nt)}function Ya(){return nt}function fo(e,t){return lo(Dn,e,t)}function co(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function _S(e){return ms=Pn=1,yS=Ft(Dn=e),nt=0,[]}function bS(e){return Dn="",e}function Qa(e){return gS(fo(nt-1,Bd(e===91?e+2:e===40?e+1:e)))}function qB(e){for(;(Ee=Bt())&&Ee<33;)ft();return co(e)>2||co(Ee)>3?"":" "}function UB(e,t){for(;--t&&ft()&&!(Ee<48||Ee>102||Ee>57&&Ee<65||Ee>70&&Ee<97););return fo(e,Ya()+(t<6&&Bt()==32&&ft()==32))}function Bd(e){for(;ft();)switch(Ee){case e:return nt;case 34:case 39:e!==34&&e!==39&&Bd(Ee);break;case 40:e===41&&Bd(e);break;case 92:ft();break}return nt}function FB(e,t){for(;ft()&&e+Ee!==57&&!(e+Ee===84&&Bt()===47););return"/*"+fo(t,nt-1)+"*"+hs(e===47?e:ft())}function jB(e){for(;!co(Bt());)ft();return fo(e,nt)}function JB(e){return bS(Xa("",null,null,null,[""],e=_S(e),0,[0],e))}function Xa(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,g=1,y=1,v=1,b=0,k="",x=i,P=o,C=n,S=k;y;)switch(m=b,b=ft()){case 40:if(m!=108&&qe(S,u-1)==58){Gd(S+=$(Qa(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:S+=Qa(b);break;case 9:case 10:case 13:case 32:S+=qB(m);break;case 92:S+=UB(Ya()-1,7);continue;case 47:switch(Bt()){case 42:case 47:Ha(GB(FB(ft(),Ya()),t,r),l);break;default:S+="/"}break;case 123*g:s[c++]=Ft(S)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+d:v==-1&&(S=$(S,/\f/g,"")),f>0&&Ft(S)-u&&Ha(f>32?bk(S+";",n,r,u-1):bk($(S," ","")+";",n,r,u-2),l);break;case 59:S+=";";default:if(Ha(C=_k(S,t,r,c,d,i,s,k,x=[],P=[],u),o),b===123)if(d===0)Xa(S,t,C,C,x,o,u,s,P);else switch(p===99&&qe(S,3)===110?100:p){case 100:case 108:case 109:case 115:Xa(e,C,C,n&&Ha(_k(e,C,C,0,0,i,s,k,i,x=[],u),P),i,P,u,s,n?x:P);break;default:Xa(S,C,C,C,[""],P,0,s,P)}}c=d=f=0,g=v=1,k=S="",u=a;break;case 58:u=1+Ft(S),f=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&MB()==125)continue}switch(S+=hs(b),b*g){case 38:v=d>0?1:(S+="\f",-1);break;case 44:s[c++]=(Ft(S)-1)*v,v=1;break;case 64:Bt()===45&&(S+=Qa(ft())),p=Bt(),d=u=Ft(k=S+=jB(Ya())),b++;break;case 45:m===45&&Ft(S)==2&&(g=0)}}return o}function _k(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=sp(p),m=0,g=0,y=0;m<n;++m)for(var v=0,b=lo(e,u+1,u=OB(g=a[m])),k=e;v<f;++v)(k=gS(g>0?p[v]+" "+b:$(b,/&\f/g,p[v])))&&(l[y++]=k);return vs(e,t,r,i===0?op:s,l,c,d)}function GB(e,t,r){return vs(e,t,r,mS,hs(LB()),lo(e,2,-2),0)}function bk(e,t,r,n){return vs(e,t,r,ap,lo(e,0,n),lo(e,n+1,-1),n)}function Cn(e,t){for(var r="",n=sp(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function BB(e,t,r,n){switch(e.type){case TB:if(e.children.length)break;case CB:case ap:return e.return=e.return||e.value;case mS:return"";case vS:return e.return=e.value+"{"+Cn(e.children,n)+"}";case op:e.value=e.props.join(",")}return Ft(r=Cn(e.children,n))?e.return=e.value+"{"+r+"}":""}function HB(e){var t=sp(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function VB(e){return function(t){t.root||(t=t.return)&&e(t)}}function wS(e,t){switch(RB(e,t)){case 5103:return V+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return V+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return V+e+ns+e+He+e+e;case 6828:case 4268:return V+e+He+e+e;case 6165:return V+e+He+"flex-"+e+e;case 5187:return V+e+$(e,/(\w+).+(:[^]+)/,V+"box-$1$2"+He+"flex-$1$2")+e;case 5443:return V+e+He+"flex-item-"+$(e,/flex-|-self/,"")+e;case 4675:return V+e+He+"flex-line-pack"+$(e,/align-content|flex-|-self/,"")+e;case 5548:return V+e+He+$(e,"shrink","negative")+e;case 5292:return V+e+He+$(e,"basis","preferred-size")+e;case 6060:return V+"box-"+$(e,"-grow","")+V+e+He+$(e,"grow","positive")+e;case 4554:return V+$(e,/([^-])(transform)/g,"$1"+V+"$2")+e;case 6187:return $($($(e,/(zoom-|grab)/,V+"$1"),/(image-set)/,V+"$1"),e,"")+e;case 5495:case 3959:return $(e,/(image-set\([^]*)/,V+"$1$`$1");case 4968:return $($(e,/(.+:)(flex-)?(.*)/,V+"box-pack:$3"+He+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+V+e+e;case 4095:case 3583:case 4068:case 2532:return $(e,/(.+)-inline(.+)/,V+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ft(e)-1-t>6)switch(qe(e,t+1)){case 109:if(qe(e,t+4)!==45)break;case 102:return $(e,/(.+:)(.+)-([^]+)/,"$1"+V+"$2-$3$1"+ns+(qe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Gd(e,"stretch")?wS($(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(qe(e,t+1)!==115)break;case 6444:switch(qe(e,Ft(e)-3-(~Gd(e,"!important")&&10))){case 107:return $(e,":",":"+V)+e;case 101:return $(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+V+(qe(e,14)===45?"inline-":"")+"box$3$1"+V+"$2$3$1"+He+"$2box$3")+e}break;case 5936:switch(qe(e,t+11)){case 114:return V+e+He+$(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return V+e+He+$(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return V+e+He+$(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return V+e+He+e+e}return e}function Ik(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Od(e,t,r){var n=[],i=ao(e,n,r);return n.length<2?r:i+t(n)}function Sk(e){if(e==="top"){let t=0;IS.forEach((r,n)=>{let i=r.querySelector(".toast");i&&(n===0?i.style.top=`max(${Ek}px, env(safe-area-inset-top))`:i.style.top=`calc(max(${Ek}px, env(safe-area-inset-top)) + ${t}px)`,t+=i.offsetHeight+kk)})}else if(e==="center"){let t=0;ES.forEach(r=>{let n=r.querySelector(".toast");n&&(n.style.top=`calc(50% + ${t}px)`,t+=n.offsetHeight+kk)})}}function ho(){let e=!1,t=null,r=0,n=new Set,i=a=>w(this,null,function*(){let s=e;if(r++,e=!0,!s)try{let{iframe:l}=yield eo.acquire(),c=l.contentDocument;if(c)t=c.createElement("div"),t.id="loading-root",c.body.appendChild(t),mr(_(l5,{}),t);else throw new Error("Iframe document is not available.")}catch(l){console.error("[LoadingManager] Failed to show loading:",l),r=0,e=!1,eo.release();return}if(a!=null&&a.duration&&typeof a.duration=="number"){let l=setTimeout(()=>{o(),n.delete(l)},a.duration);n.add(l)}}),o=()=>{var a;e&&(r--,r<=0&&(r=0,e=!1,n.forEach(s=>clearTimeout(s)),n.clear(),t&&(mr(null,t),(a=t.parentNode)==null||a.removeChild(t),t=null),eo.release()))};return{show:i,hide:o,get isLoading(){return e}}}var Hd,xk,Te,is,Za,jt,es,to,Vd,rr,ro,Ck,Tk,$d,Wd,zd,l7,Pd,Tn,ce,kd,VE,no,Ok,we,$E,WE,zE,KE,YE,QE,XE,Nk,ve,Lt,Mt,er,An,Sr,$a,RJ,Oe,NJ,qk,Be,ts,H,Kd,Yd,Qd,MJ,Uk,qJ,as,UJ,ss,On,jk,rt,Ie,Rn,ZJ,e2,t2,tk,r2,n2,i2,o2,a2,Bk,s2,rk,l2,c2,u2,Vk,Ga,nk,d2,Zd,cs,f2,m2,v2,Wk,ik,Sd,ok,ak,Ut,y2,zk,Kk,sk,us,ep,Yk,tp,ds,_2,b2,w2,I2,E2,qd,Ud,Qk,k2,rp,S2,lk,A2,x2,T2,O2,Ad,ck,xd,Cd,P2,Td,R2,N2,D2,L2,M2,q2,U2,uk,F2,j2,J2,dk,G2,B2,H2,pk,V2,$2,W2,fk,z2,K2,Y2,Q2,X2,Z2,eG,tG,rG,nG,iG,hk,oG,aG,sG,lG,cG,uG,dG,pG,fG,hG,mG,mk,vG,gG,yG,_G,bG,wG,IG,EG,kG,SG,AG,xG,CG,TG,OG,PG,RG,NG,DG,LG,MG,qG,UG,FG,jG,JG,GG,BG,HG,VG,$G,WG,Xk,Zk,eS,Fd,zG,tS,rS,rs,eo,vk,QG,ps,XG,iS,oS,aS,tB,rB,nB,jd,iB,sS,lS,fs,np,Nn,gk,kr,cS,Kr,aB,sB,lB,cB,uB,Ba,uS,ip,he,pB,fB,mB,vB,At,yB,_B,dS,pS,fS,hS,xr,bB,wB,IB,EB,kB,SB,AB,xB,He,ns,V,mS,op,ap,CB,vS,TB,OB,hs,PB,ms,Pn,yS,nt,Ee,Dn,$B,WB,zB,wk,KB,YB,QB,XB,ZB,e5,t5,r5,n5,i5,o5,a5,Ek,kk,IS,ES,Cr,Ak,s5,l5,c7,ir=A(()=>{"use strict";cn();Hd=ie(gg(),1),xk=ie(xg(),1),Te=ie(jg(),1),is=ie(ty(),1),Za=ie(uy(),1),jt=ie(Cy(),1);da();da();es=ie(p_(),1),to=ie(__(),1),Vd=ie(Lw(),1),rr=ie(Vw(),1),ro=ie(e0(),1),Ck=ie(s0(),1),Tk=ie(kI(),1),$d=ie(UI(),1),Wd=ie(tE(),1),zd=ie(pE(),1);bd();bd();l7=ie(TE(),1),Pd=ie(HE(),1),no=0,Ok=[],we=N,$E=we.__b,WE=we.__r,zE=we.diffed,KE=we.__c,YE=we.unmount,QE=we.__;we.__b=function(e){ce=null,$E&&$E(e)},we.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),QE&&QE(e,t)},we.__r=function(e){var t,r,n;WE&&WE(e),Tn=0;var i=(ce=e.__c).__H;i&&(kd===ce?(i.__h=[],ce.__h=[],(0,Te.default)(t=i.__).call(t,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,Te.default)(r=i.__h).call(r,Va),(0,Te.default)(n=i.__h).call(n,Rd),i.__h=[],Tn=0)),kd=ce},we.diffed=function(e){var t;zE&&zE(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(Ok.push(r)!==1&&VE===we.requestAnimationFrame||((VE=we.requestAnimationFrame)||CJ)(xJ)),(0,Te.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),kd=ce=null},we.__c=function(e,t){(0,Za.default)(t).call(t,function(r){try{var n,i;(0,Te.default)(n=r.__h).call(n,Va),r.__h=(0,Hd.default)(i=r.__h).call(i,function(o){return!o.__||Rd(o)})}catch(o){(0,Za.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],we.__e(o,r.__v)}}),KE&&KE(e,t)},we.unmount=function(e){var t;YE&&YE(e);var r,n=e.__c;n&&n.__H&&((0,Te.default)(t=n.__H.__).call(t,function(i){try{Va(i)}catch(o){r=o}}),n.__H=void 0,r&&we.__e(r,n.__v))};XE=typeof requestAnimationFrame=="function";Nk={exports:{}},ve=Nk.exports={};(function(){try{typeof jt.default=="function"?Lt=jt.default:Lt=Nd}catch(e){Lt=Nd}try{typeof clearTimeout=="function"?Mt=clearTimeout:Mt=Dd}catch(e){Mt=Dd}})();er=[],An=!1,$a=-1;ve.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];er.push(new Mk(e,t)),er.length===1&&!An&&Dk(Lk)};Mk.prototype.run=function(){this.fun.apply(null,this.array)};ve.title="browser";ve.browser=!0;ve.env={};ve.argv=[];ve.version="";ve.versions={};ve.on=nr;ve.addListener=nr;ve.once=nr;ve.off=nr;ve.removeListener=nr;ve.removeAllListeners=nr;ve.emit=nr;ve.prependListener=nr;ve.prependOnceListener=nr;ve.listeners=function(e){return[]};ve.binding=function(e){throw new Error("process.binding is not supported")};ve.cwd=function(){return"/"};ve.chdir=function(e){throw new Error("process.chdir is not supported")};ve.umask=function(){return 0};RJ=Nk.exports,Oe=TJ(RJ),NJ=es.default||void 0||self;qk=function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){(0,Te.default)(r).call(r,this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(LJ(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=DJ(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){var r;(0,Te.default)(r=this.tags).call(r,function(n){var i;return(i=n.parentNode)==null?void 0:i.removeChild(n)}),this.tags=[],this.ctr=0},e}(),Be="-ms-",ts="-moz-",H="-webkit-",Kd="comm",Yd="rule",Qd="decl",MJ="@import",Uk="@keyframes",qJ=Math.abs,as=String.fromCharCode,UJ=$d.default;ss=1,On=1,jk=0,rt=0,Ie=0,Rn="";ZJ=function(e,t,r){for(var n=0,i=0;n=i,i=Gt(),n===38&&i===12&&(t[r]=1),!oo(i);)pt();return uo(e,rt)},e2=function(e,t){var r=-1,n=44;do switch(oo(n)){case 0:n===38&&Gt()===12&&(t[r]=1),e[r]+=ZJ(rt-1,t,r);break;case 2:e[r]+=za(n);break;case 4:if(n===44){e[++r]=Gt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=as(n)}while(n=pt());return e},t2=function(e,t){return Gk(e2(Jk(e),t))},tk=new Vd.default,r2=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!tk.get(r))&&!n){tk.set(e,!0);for(var i=[],o=t2(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},n2=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},i2="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",o2=function(e){var t;return e.type==="comm"&&(0,rr.default)(t=e.children).call(t,i2)>-1},a2=function(e){return function(t,r,n){if(!(t.type!=="rule"||e.compat)){var i=t.value.match(/(:first|:nth|:nth-last)-child/g);if(i){for(var o=t.parent===n[0],a=o?n[0].children:n,s=a.length-1;s>=0;s--){var l=a[s];if(l.line<t.line)break;if(l.column<t.column){if(o2(l))return;break}}(0,Te.default)(i).call(i,function(c){console.error('The pseudo class "'+c+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+c.split("-child")[0]+'-of-type".')})}}}},Bk=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},s2=function(e,t){for(var r=e-1;r>=0;r--)if(!Bk(t[r]))return!0;return!1},rk=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},l2=function(e,t,r){Bk(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),rk(e)):s2(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),rk(e)))};c2=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Qd:e.return=Hk(e.value,e.length);break;case Uk:return xn([Qi(e,{value:Y(e.value,"@","@"+H)})],n);case Yd:if(e.length)return JJ(e.props,function(i){switch(jJ(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return xn([Qi(e,{props:[Y(i,/:(read-\w+)/,":"+ts+"$1")]})],n);case"::placeholder":return xn([Qi(e,{props:[Y(i,/:(plac\w+)/,":"+H+"input-$1")]}),Qi(e,{props:[Y(i,/:(plac\w+)/,":"+ts+"$1")]}),Qi(e,{props:[Y(i,/:(plac\w+)/,Be+"input-$1")]})],n)}return""})}},u2=[c2],Vk=function(e){var t=e.key;if(Oe.env.NODE_ENV!=="production"&&!t)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
|
|
21
|
+
If multiple caches share the same key they might "fight" for each other's style elements.`);if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,Te.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,rr.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||u2;if(Oe.env.NODE_ENV!=="production"&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var i={},o,a=[];o=e.container||document.head,(0,Te.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),y=1;y<g.length;y++)i[g[y]]=!0;a.push(m)});var s,l=[r2,n2];Oe.env.NODE_ENV!=="production"&&l.push(a2({get compat(){return f.compat}}),l2);{var c,d=[YJ,Oe.env.NODE_ENV!=="production"?function(m){m.root||(m.return?c.insert(m.return):m.value&&m.type!==Kd&&c.insert(m.value+"{}"))}:XJ(function(m){c.insert(m)})],u=QJ((0,is.default)(l).call(l,n,d)),p=function(m){return xn(zJ(m),u)};s=function(m,g,y,v){c=y,Oe.env.NODE_ENV!=="production"&&(0,ro.default)(g)!==void 0&&(c={insert:function(b){y.insert(b+(0,ro.default)(g))}}),p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new qk({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return f.sheet.hydrate(a),f},Ga={exports:{}};$k();d2=!0;Zd=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||d2===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},cs=function(e,t,r){Zd(e,t,r);var n=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next;while(i!==void 0)}};f2={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};m2=/[A-Z]|^ms/g,v2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Wk=function(e){return e.charCodeAt(1)===45},ik=function(e){return e!=null&&typeof e!="boolean"},Sd=h2(function(e){return Wk(e)?e:e.replace(m2,"-$&").toLowerCase()}),ok=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(v2,function(r,n,i){return Ut={name:n,styles:i,next:Ut},n})}return f2[e]!==1&&!Wk(e)&&typeof t=="number"&&t!==0?t+"px":t};ak=/label:\s*([^\s;{]+)\s*(;|$)/g;y2=function(e){return e()},zk=vu?vu:!1,Kk=zk||y2,sk=zk||_n,us={}.hasOwnProperty,ep=jr(typeof HTMLElement<"u"?Vk({key:"css"}):null);Oe.env.NODE_ENV!=="production"&&(ep.displayName="EmotionCacheContext");Yk=ep.Provider,tp=function(e){return yu(function(t,r){var n=wn(ep);return e(t,n,r)})},ds=jr({});Oe.env.NODE_ENV!=="production"&&(ds.displayName="EmotionThemeContext");_2=function(e){var t=e.split(".");return t[t.length-1]},b2=function(e){var t=/^\s+at\s+([A-Za-z0-9$.]+)\s/.exec(e);if(t||(t=/^([A-Za-z0-9$.]+)@/.exec(e),t))return _2(t[1])},w2=new Tk.default(["renderWithHooks","processChild","finishClassComponent","renderToString"]),I2=function(e){return e.replace(/\$/g,"-")},E2=function(e){if(e)for(var t=e.split(`
|
|
22
|
+
`),r=0;r<t.length;r++){var n=b2(t[r]);if(n){if(w2.has(n))break;if(/^[A-Z]/.test(n))return I2(n)}}},qd="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Ud="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",Qk=function(e,t){var r,n;if(Oe.env.NODE_ENV!=="production"&&typeof t.css=="string"&&(0,rr.default)(r=t.css).call(r,":")!==-1)throw new Error("Strings are not allowed as css prop values, please wrap it in a css template literal from '@emotion/react' like this: css`"+t.css+"`");var i={};for(var o in t)us.call(t,o)&&(i[o]=t[o]);if(i[qd]=e,Oe.env.NODE_ENV!=="production"&&t.css&&(typeof t.css!="object"||typeof t.css.name!="string"||(0,rr.default)(n=t.css.name).call(n,"-")===-1)){var a=E2(new Error().stack);a&&(i[Ud]=a)}return i},k2=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return Zd(t,r,n),Kk(function(){return cs(t,r,n)}),null},rp=tp(function(e,t,r){var n,i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[qd],a=[i],s="";typeof e.className=="string"?s=ao(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var l=Ar(a,void 0,wn(ds));if(Oe.env.NODE_ENV!=="production"&&(0,rr.default)(n=l.name).call(n,"-")===-1){var c=e[Ud];c&&(l=Ar([l,"label:"+c+";"]))}s+=t.key+"-"+l.name;var d={};for(var u in e)us.call(e,u)&&u!=="css"&&u!==qd&&(Oe.env.NODE_ENV==="production"||u!==Ud)&&(d[u]=e[u]);return d.ref=r,d.className=s,Je(De,null,Je(k2,{cache:t,serialized:l,isStringTag:typeof o=="string"}),Je(o,d))});Oe.env.NODE_ENV!=="production"&&(rp.displayName="EmotionCssPropInternal");S2={version:"11.10.5"},lk=!1,A2=tp(function(e,t){Oe.env.NODE_ENV!=="production"&&!lk&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),lk=!0);var r=e.styles,n=Ar([r],void 0,wn(ds)),i=qi();return sk(function(){var o=t.key+"-global",a=new t.sheet.constructor({key:o,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,l=document.querySelector('style[data-emotion="'+o+" "+n.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),l!==null&&(s=!0,l.setAttribute("data-emotion",o),a.hydrate([l])),i.current=[a,s],function(){a.flush()}},[t]),sk(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(n.next!==void 0&&cs(t,n.next,!0),a.tags.length){var l=a.tags[a.tags.length-1].nextElementSibling;a.before=l,a.flush()}t.insert("",n,a,!1)},[t,n.name]),null});Oe.env.NODE_ENV!=="production"&&(A2.displayName="EmotionGlobal");x2=function e(t){for(var r=t.length,n=0,i="";n<r;n++){var o=t[n];if(o!=null){var a=void 0;switch(typeof o){case"boolean":break;case"object":{if((0,to.default)(o))a=e(o);else{Oe.env.NODE_ENV!=="production"&&o.styles!==void 0&&o.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),a="";for(var s in o)o[s]&&s&&(a&&(a+=" "),a+=s)}break}default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};T2=function(e){var t=e.cache,r=e.serializedArr;return Kk(function(){for(var n=0;n<r.length;n++)cs(t,r[n],!1)}),null},O2=tp(function(e,t){var r=!1,n=[],i=function(){if(r&&Oe.env.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];var u=Ar(c,t.registered);return n.push(u),Zd(t,u,!1),t.key+"-"+u.name},o=function(){if(r&&Oe.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var l=arguments.length,c=new Array(l),d=0;d<l;d++)c[d]=arguments[d];return C2(t.registered,i,x2(c))},a={css:i,cx:o,theme:wn(ds)},s=e.children(a);return r=!0,Je(De,null,Je(T2,{cache:t,serializedArr:n}),s)});Oe.env.NODE_ENV!=="production"&&(O2.displayName="EmotionClassNames");Oe.env.NODE_ENV!=="production"&&(Ad=!0,ck=typeof jest<"u"||typeof vi<"u",Ad&&!ck&&(xd=typeof es.default<"u"?es.default:Ad?window:NJ,Cd="__EMOTION_REACT_"+S2.version.split(".")[0]+"__",xd[Cd]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),xd[Cd]=!0));P2=0;Td={drawerBackdrop:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"transparent",display:"flex",justifyContent:"center",alignItems:"flex-end",zIndex:1e3,overflow:"hidden",touchAction:"none"},drawer:{backgroundColor:"rgb(26, 26, 26)",borderRadius:"16px 16px 0 0",width:"100%",maxWidth:"100%",overflowY:"auto",position:"relative",boxShadow:"0 2px 10px rgba(0, 0, 0, 0.1)",display:"block",margin:"0 auto"},centerDrawer:{backgroundColor:"transparent",minWidth:"320px",maxWidth:"90vw",maxHeight:"90vh",width:"auto",position:"relative",display:"block",margin:"0 auto",overflowY:"auto"}},R2=D`
|
|
23
23
|
width: 100%;
|
|
24
24
|
overflow: auto;
|
|
25
25
|
margin: 0 auto;
|
|
26
|
-
`,
|
|
26
|
+
`,N2=`
|
|
27
27
|
@keyframes fadeIn {
|
|
28
28
|
from { opacity: 0; }
|
|
29
29
|
to { opacity: 1; }
|
|
@@ -67,7 +67,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
67
67
|
.fadeIn {
|
|
68
68
|
animation: fadeIn 0.3s ease forwards;
|
|
69
69
|
}
|
|
70
|
-
`,hB=({children:e,isOpen:t=!1,preventCloseOnBackdropClick:r=!1,onClose:n,className:i="",placement:o="bottom"},a)=>{let[s,l]=Ut(!1),[c,d]=Ut(null),[u,f]=Ut(!1),p=Ji(null),m=Ji(null),g=Ji(!1);Jr(()=>{if(s&&p.current){let q=p.current.ownerDocument,Re=q.createElement("style");Re.innerHTML=pB,q.head.appendChild(Re);let Ne={overflow:q.body.style.overflow,position:q.body.style.position,width:q.body.style.width};return q.body.style.overflow="hidden",q.body.style.position="fixed",q.body.style.width="100%",()=>{q.head.contains(Re)&&q.head.removeChild(Re),q.body.style.overflow=Ne.overflow,q.body.style.position=Ne.position,q.body.style.width=Ne.width}}},[s]),Jr(()=>{t?!s&&!g.current&&(l(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)})):s&&(g.current=!0,d("leave"),f(!1))},[t]);let _=_t(q=>{q.target===m.current&&(c==="leave"?(d(null),l(!1),g.current=!1,n&&n()):c==="enter"&&(d(null),f(!0)))},[c,n]),v=_t(()=>{s&&!g.current&&(g.current=!0,d("leave"),f(!1))},[s]),b=_t(q=>{r||(q.preventDefault(),q.stopPropagation(),v())},[v]),I=_t(()=>{!g.current&&!s&&(l(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)}))},[s]),A=_t(()=>s&&!g.current,[s]);if(Jr(()=>{if(a){let q={show:I,hide:v,isOpen:A};typeof a=="function"?a(q):a&&(a.current=q)}},[I,v,A,a]),!s)return null;let P=o==="center",O=B(T({},wd.drawerBackdrop),{alignItems:P?"center":"flex-end",justifyContent:"center",backgroundColor:"transparent",pointerEvents:"none"}),x={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"},C=P?B(T({},wd.centerDrawer),{pointerEvents:"auto"}):B(T({},wd.drawer),{height:"auto",pointerEvents:"auto"});s&&!u&&!c&&!P&&(C.transform="translateY(100%)");let U=c?P?c==="leave"?"fadeOut":c==="enter"?"fadeIn":"":`drawer-${c}`:"",We=c?`backdrop-${c}`:"";return y("div",{ref:p,style:O,children:[y("div",{style:x,className:We,onClick:b}),y("div",{ref:m,style:B(T({},C),{opacity:P&&c===null&&!u?0:1}),className:`${P&&c==="leave"?"fadeOut":U} ${i}`,onAnimationEnd:_,onClick:q=>q.stopPropagation(),children:y("div",{style:fB.styles,children:e})})]})},mB=uu(hB);vB={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"},gB={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!"},nE={jolicoin:vB,loginGuide:gB},yB={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"},_B={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\u5DF2\u83B7\u5F97 {{coin}} Jolicoin\uFF01\u7ACB\u5373\u5F00\u59CB\u89E3\u9501\uFF01"},iE={jolicoin:yB,loginGuide:_B},bB={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"},wB={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!"},oE={jolicoin:bB,loginGuide:wB},IB={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"},SB={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!"},aE={jolicoin:IB,loginGuide:SB},EB={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"},xB={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\u0E40\u0E25\u0E22!"},kB={jolicoin:EB,loginGuide:xB},AB={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"},TB={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! B\u1EAFt \u0111\u1EA7u m\u1EDF kh\xF3a ngay!"},CB={jolicoin:AB,loginGuide:TB},PB={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"},OB={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! Nakuha mo na ang {{coin}} Jolicoin! Simulan ang pag-unlock ngayon!"},sE={jolicoin:PB,loginGuide:OB},RB={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"},NB={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. \xA1Comienza a desbloquear ahora!"},DB={jolicoin:RB,loginGuide:NB},LB={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"},qB={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\u4ECA\u3059\u3050\u30A2\u30F3\u30ED\u30C3\u30AF\u3092\u958B\u59CB\u3057\u3066\u304F\u3060\u3055\u3044\uFF01"},FB={jolicoin:LB,loginGuide:qB},MB={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"},UB={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!"},lE={jolicoin:MB,loginGuide:UB},jB={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"},BB={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! \uC9C0\uAE08 \uC7A0\uAE08 \uD574\uC81C\uB97C \uC2DC\uC791\uD558\uC138\uC694!"},JB={jolicoin:jB,loginGuide:BB},HB={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"},$B={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\u5DF2\u7372\u5F97 {{coin}} Jolicoin\uFF01\u7ACB\u5373\u958B\u59CB\u89E3\u9396\uFF01"},VB={jolicoin:HB,loginGuide:$B},GB={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"},zB={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! Starten Sie jetzt die Entsperrung!"},WB={jolicoin:GB,loginGuide:zB},KB={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"},QB={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 ! D\xE9bloquez maintenant !"},YB={jolicoin:KB,loginGuide:QB},XB={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"},ZB={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:"\u092C\u0927\u093E\u0908 \u0939\u094B! \u0906\u092A\u0928\u0947 {{coin}} Jolicoin \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u093F\u092F\u093E \u0939\u0948! \u0905\u092D\u0940 \u0905\u0928\u0932\u0949\u0915 \u0936\u0941\u0930\u0942 \u0915\u0930\u0947\u0902!"},eJ={jolicoin:XB,loginGuide:ZB},tJ={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"},rJ={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 \u0441\u0435\u0439\u0447\u0430\u0441!"},nJ={jolicoin:tJ,loginGuide:rJ},iJ={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"},oJ={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!"},aJ={jolicoin:iJ,loginGuide:oJ},sJ={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"},lJ={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!"},cJ={jolicoin:sJ,loginGuide:lJ},VE={en:{translations:nE},en_GB:{translations:nE},zh:{translations:iE},"zh-Hans":{translations:iE},"zh-Hant":{translations:VB},id:{translations:oE},in:{translations:oE},ms:{translations:aE},my:{translations:aE},th:{translations:kB},vi:{translations:CB},fil:{translations:sE},tl:{translations:sE},es:{translations:DB},ja:{translations:FB},pt:{translations:lE},pt_PT:{translations:lE},ko:{translations:JB},de:{translations:WB},fr:{translations:YB},hi:{translations:eJ},ru:{translations:nJ},bn:{translations:aJ},tr:{translations:cJ}},GE=Rr(void 0),zE=({definition:e,children:t})=>{let r={translations:e};return y(GE.Provider,{value:r,children:t})},Od=null,uJ={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"},WE=e=>{Od=e},KE=()=>{var e;if(typeof Od!="function")return console.warn("Language handler is not registered or is not a function. Defaulting to 'en'."),"en";try{let t=Od();return(e=uJ[t])!=null?e:"en"}catch(t){return console.error("Error executing registered language handler:",t),"en"}};Wa=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=ME({key:"iframe-css",container:this.persistentIframe.contentDocument.head,prepend:!0}),this.removeGlobalTransformSync&&this.removeGlobalTransformSync(),this.removeGlobalTransformSync=fJ(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"&&(QE(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"))}},Hi=new Wa(99999998,"auto"),cE=new Wa(99999999,"none"),pJ=({title:e,content:t,noHeader:r,height:n,padding:i="16px",footerButtons:o,onClose:a})=>{let s=eo(),l={container:D`
|
|
70
|
+
`,D2=({children:e,isOpen:t=!1,preventCloseOnBackdropClick:r=!1,onClose:n,className:i="",placement:o="bottom"},a)=>{let[s,l]=Jt(!1),[c,d]=Jt(null),[u,p]=Jt(!1),f=Zi(null),m=Zi(null),g=Zi(!1);Yr(()=>{if(s&&f.current){let M=f.current.ownerDocument,Re=M.createElement("style");Re.innerHTML=N2,M.head.appendChild(Re);let Ne={overflow:M.body.style.overflow,position:M.body.style.position,width:M.body.style.width};return M.body.style.overflow="hidden",M.body.style.position="fixed",M.body.style.width="100%",()=>{M.head.contains(Re)&&M.head.removeChild(Re),M.body.style.overflow=Ne.overflow,M.body.style.position=Ne.position,M.body.style.width=Ne.width}}},[s]),Yr(()=>{t?!s&&!g.current&&(l(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)})):s&&(g.current=!0,d("leave"),p(!1))},[t]);let y=bt(M=>{M.target===m.current&&(c==="leave"?(d(null),l(!1),g.current=!1,n&&n()):c==="enter"&&(d(null),p(!0)))},[c,n]),v=bt(()=>{s&&!g.current&&(g.current=!0,d("leave"),p(!1))},[s]),b=bt(M=>{r||(M.preventDefault(),M.stopPropagation(),v())},[v]),k=bt(()=>{!g.current&&!s&&(l(!0),requestAnimationFrame(()=>{setTimeout(()=>d("enter"),0)}))},[s]),x=bt(()=>s&&!g.current,[s]);if(Yr(()=>{if(a){let M={show:k,hide:v,isOpen:x};typeof a=="function"?a(M):a&&(a.current=M)}},[k,v,x,a]),!s)return null;let P=o==="center",C=F(T({},Td.drawerBackdrop),{alignItems:P?"center":"flex-end",justifyContent:"center",backgroundColor:"transparent",pointerEvents:"none"}),S={position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.6)",pointerEvents:"auto",opacity:c==="enter"||u?1:0,transition:"opacity 0.3s"},O=P?F(T({},Td.centerDrawer),{pointerEvents:"auto"}):F(T({},Td.drawer),{height:"auto",pointerEvents:"auto"});s&&!u&&!c&&!P&&(O.transform="translateY(100%)");let J=c?P?c==="leave"?"fadeOut":c==="enter"?"fadeIn":"":`drawer-${c}`:"",Ke=c?`backdrop-${c}`:"";return _("div",{ref:f,style:C,children:[_("div",{style:S,className:Ke,onClick:b}),_("div",{ref:m,style:F(T({},O),{opacity:P&&c===null&&!u?0:1}),className:`${P&&c==="leave"?"fadeOut":J} ${i}`,onAnimationEnd:y,onClick:M=>M.stopPropagation(),children:_("div",{style:R2.styles,children:e})})]})},L2=yu(D2);M2={unlockNeeds:"Unlock needs",price:"Price",unlockWithJolicoin:"Unlock with Jolicoin for a better experience",unlockWithJolicoinDescription:"Unlock with Jolicoin automatically",useJolicoin:"Use Jolicoin",payAndUnlock:"Pay and unlock",noWatchAds:"No, watch ads",noThanks:"No thanks",balance:"Balance",coinUsed:"Jolicoin used",unlockSuccess:"Unlock successful",unlockFailed:"Unlock failed",unlockFailedNotLogin:"Please log in to continue",unlockFailedPaying:"Payment is already in progress. Please do not retry",unlockFailedProductIdNotFound:"Product has expired. Please choose another product",unlockFailedProductInvalid:"Failed to retrieve product info. Please retry or choose another product",unlockFailedLaunch:"Unable to start payment. Please try again later",unlockFailedTransaction:"Payment failed. Please try again",unlockFaileVerify:"Order verification failed. If you\u2019ve been charged, please contact support",transactionPending:"Payment confirmation failed. Please contact your payment provider for support"},q2={unlockNeeds:"Unlock needs",price:"Price",unlockWithJolicoin:"Unlock with GEM for a better experience",unlockWithJolicoinDescription:"Unlock with GEM automatically",useJolicoin:"Use GEM",balance:"GEM Balance"},U2={instead:"Instead of watching ads",introduct:"Use {{coin}}Jolicoin to unlock for better experience",tips:"Get {{coin}} for free",login:"Register & Unlock with Jolicoin",noWatchAds:"No, watch ads",noThanks:"No thanks",rewardTips:"Congrats! You have received {{coin}} Jolicoin! Start unlocking now!"},uk={jolicoin:M2,joligem:q2,loginGuide:U2},F2={unlockNeeds:"\u89E3\u9501\u9700\u6C42",price:"\u4EF7\u683C",unlockWithJolicoin:"\u4F7F\u7528 Jolicoin \u89E3\u9501",unlockWithJolicoinDescription:"\u81EA\u52A8\u4F7F\u7528 Jolicoin \u89E3\u9501",useJolicoin:"\u4F7F\u7528 Jolicoin",payAndUnlock:"\u652F\u4ED8\u5E76\u89E3\u9501",noWatchAds:"\u4E0D\u7528\u4E86\uFF0C\u89C2\u770B\u5E7F\u544A",noThanks:"\u4E0D\u7528\u4E86",balance:"\u4F59\u989D",coinUsed:"\u5DF2\u4F7F\u7528\u7684 Jolicoin",unlockSuccess:"\u89E3\u9501\u6210\u529F",unlockFailed:"\u89E3\u9501\u5931\u8D25",unlockFailedNotLogin:"\u8BF7\u767B\u5F55\u540E\u5B8C\u6210\u89E3\u9501",unlockFailedPaying:"\u652F\u4ED8\u6B63\u5728\u8FDB\u884C\u4E2D\uFF0C\u8BF7\u52FF\u91CD\u590D\u64CD\u4F5C",unlockFailedProductIdNotFound:"\u5546\u54C1\u5DF2\u8FC7\u671F\uFF0C\u8BF7\u9009\u62E9\u5176\u4ED6\u5546\u54C1",unlockFailedProductInvalid:"\u83B7\u53D6\u5546\u54C1\u4FE1\u606F\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5\u6216\u9009\u62E9\u5176\u4ED6\u5546\u54C1",unlockFailedLaunch:"\u65E0\u6CD5\u542F\u52A8\u652F\u4ED8\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5",unlockFailedTransaction:"\u652F\u4ED8\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5",unlockFaileVerify:"\u8BA2\u5355\u9A8C\u8BC1\u5931\u8D25\uFF0C\u5982\u5DF2\u6263\u8D39\u8BF7\u8054\u7CFB\u5BA2\u670D",transactionPending:"\u652F\u4ED8\u786E\u8BA4\u5931\u8D25\uFF0C\u8BF7\u8054\u7CFB\u652F\u4ED8\u670D\u52A1\u5546\u83B7\u53D6\u652F\u6301"},j2={unlockNeeds:"\u89E3\u9501\u9700\u6C42",price:"\u4EF7\u683C",unlockWithJolicoin:"\u4F7F\u7528 GEM \u89E3\u9501",unlockWithJolicoinDescription:"\u81EA\u52A8\u4F7F\u7528 GEM \u89E3\u9501",useJolicoin:"\u4F7F\u7528 GEM",balance:"GEM \u4F59\u989D"},J2={instead:"\u89C2\u770B\u5E7F\u544A",introduct:"\u4F7F\u7528 {{coin}} Jolicoin \u89E3\u9501\u4EE5\u83B7\u5F97\u66F4\u597D\u7684\u4F53\u9A8C",tips:"\u514D\u8D39\u83B7\u53D6 {{coin}}",login:"\u6CE8\u518C\u5E76\u89E3\u9501",noWatchAds:"\u4E0D\u7528\u4E86\uFF0C\u89C2\u770B\u5E7F\u544A",noThanks:"\u4E0D\u7528\u4E86",rewardTips:"\u606D\u559C\uFF01\u60A8\u83B7\u5F97\u4E86 {{coin}} Jolicoin\uFF01\u5F00\u59CB\u89E3\u9501\u5427\uFF01"},dk={jolicoin:F2,joligem:j2,loginGuide:J2},G2={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai Jolicoin untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Otomatis mengurangi Jolicoin untuk item digital",useJolicoin:"Gunakan Jolicoin",payAndUnlock:"Bayar dan buka",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",balance:"Saldo",coinUsed:"Jolicoin yang digunakan",unlockSuccess:"Berhasil dibuka",unlockFailed:"Gagal membuka",unlockFailedNotLogin:"Silakan masuk untuk menyelesaikan pembukaan",unlockFailedPaying:"Pembayaran sedang diproses. Mohon jangan ulangi operasi",unlockFailedProductIdNotFound:"Produk telah kedaluwarsa. Silakan pilih produk lain",unlockFailedProductInvalid:"Gagal mendapatkan informasi produk. Silakan coba lagi atau pilih produk lain",unlockFailedLaunch:"Tidak dapat memulai pembayaran. Silakan coba lagi nanti",unlockFailedTransaction:"Pembayaran gagal. Silakan coba lagi",unlockFaileVerify:"Verifikasi pesanan gagal. Jika Anda telah dikenakan biaya, silakan hubungi dukungan",transactionPending:"Konfirmasi pembayaran gagal. Silakan hubungi penyedia pembayaran Anda untuk dukungan"},B2={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai GEM untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Otomatis mengurangi GEM untuk item digital",useJolicoin:"Gunakan GEM",balance:"GEM Saldo"},H2={instead:"Alihkan dari menonton iklan",introduct:"Gunakan {{coin}} Jolicoin untuk membuka untuk pengalaman yang lebih baik",tips:"Dapatkan {{coin}} gratis",login:"Daftar dan buka dengan Jolicoin",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",rewardTips:"Selamat! Anda telah menerima {{coin}} Jolicoin. Mulai membuka sekarang!"},pk={jolicoin:G2,joligem:B2,loginGuide:H2},V2={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai Jolicoin untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Potongan automatik Jolicoin untuk item digital",useJolicoin:"Gunakan Jolicoin",payAndUnlock:"Bayar dan buka",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",balance:"Baki",coinUsed:"Jolicoin yang digunakan",unlockSuccess:"Berjaya dibuka",unlockFailed:"Gagal membuka",unlockFailedNotLogin:"Sila log masuk untuk meneruskan",unlockFailedPaying:"Pembayaran sedang diproses. Sila jangan cuba lagi",unlockFailedProductIdNotFound:"Produk telah tamat tempoh. Sila pilih produk lain",unlockFailedProductInvalid:"Gagal mendapatkan maklumat produk. Sila cuba lagi atau pilih produk lain",unlockFailedLaunch:"Tidak dapat memulakan pembayaran. Sila cuba lagi kemudian",unlockFailedTransaction:"Pembayaran gagal. Sila cuba lagi",unlockFaileVerify:"Pengesahan pesanan gagal. Jika anda telah dikenakan caj, sila hubungi sokongan",transactionPending:"Pengesahan pembayaran gagal. Sila hubungi pembekal pembayaran anda untuk sokongan"},$2={unlockNeeds:"Perlu dibuka",price:"Harga",unlockWithJolicoin:"Pakai GEM untuk pengalaman lebih baik",unlockWithJolicoinDescription:"Otomatis mengurangi GEM untuk item digital",useJolicoin:"Gunakan GEM",balance:"GEM Saldo"},W2={instead:"Alihkan dari menonton iklan",introduct:"Gunakan {{coin}} Jolicoin untuk membuka untuk pengalaman yang lebih baik",tips:"Dapatkan {{coin}} gratis",login:"Daftar dan buka dengan Jolicoin",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",rewardTips:"Selamat! Anda telah menerima {{coin}} Jolicoin. Mulai membuka sekarang!"},fk={jolicoin:V2,joligem:$2,loginGuide:W2},z2={unlockNeeds:"\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",price:"\u0E23\u0E32\u0E04\u0E32",unlockWithJolicoin:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E14\u0E49\u0E27\u0E22 Jolicoin",unlockWithJolicoinDescription:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2D\u0E31\u0E15\u0E42\u0E19\u0E21\u0E31\u0E15\u0E34\u0E14\u0E49\u0E27\u0E22 Jolicoin",useJolicoin:"\u0E43\u0E0A\u0E49 Jolicoin",payAndUnlock:"\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E41\u0E25\u0E30\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",noWatchAds:"\u0E44\u0E21\u0E48 \u0E14\u0E39\u0E42\u0E06\u0E29\u0E13\u0E32",noThanks:"\u0E44\u0E21\u0E48 \u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13",balance:"\u0E22\u0E2D\u0E14\u0E04\u0E07\u0E40\u0E2B\u0E25\u0E37\u0E2D",coinUsed:"Jolicoin \u0E17\u0E35\u0E48\u0E43\u0E0A\u0E49\u0E41\u0E25\u0E49\u0E27",unlockSuccess:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08",unlockFailed:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E44\u0E21\u0E48\u0E2A\u0E33\u0E40\u0E23\u0E47\u0E08",unlockFailedNotLogin:"\u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E02\u0E49\u0E32\u0E2A\u0E39\u0E48\u0E23\u0E30\u0E1A\u0E1A\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E40\u0E2A\u0E23\u0E47\u0E08\u0E2A\u0E34\u0E49\u0E19\u0E01\u0E32\u0E23\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",unlockFailedPaying:"\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E01\u0E33\u0E25\u0E31\u0E07\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E2D\u0E22\u0E39\u0E48 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E2D\u0E22\u0E48\u0E32\u0E17\u0E33\u0E0B\u0E49\u0E33\u0E01\u0E32\u0E23\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23",unlockFailedProductIdNotFound:"\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E2B\u0E21\u0E14\u0E2D\u0E32\u0E22\u0E38\u0E41\u0E25\u0E49\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E2D\u0E37\u0E48\u0E19",unlockFailedProductInvalid:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E14\u0E36\u0E07\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E44\u0E14\u0E49 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E2B\u0E23\u0E37\u0E2D\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2A\u0E34\u0E19\u0E04\u0E49\u0E32\u0E2D\u0E37\u0E48\u0E19",unlockFailedLaunch:"\u0E44\u0E21\u0E48\u0E2A\u0E32\u0E21\u0E32\u0E23\u0E16\u0E40\u0E23\u0E34\u0E48\u0E21\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E44\u0E14\u0E49 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07\u0E43\u0E19\u0E20\u0E32\u0E22\u0E2B\u0E25\u0E31\u0E07",unlockFailedTransaction:"\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E25\u0E49\u0E21\u0E40\u0E2B\u0E25\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E25\u0E2D\u0E07\u0E43\u0E2B\u0E21\u0E48\u0E2D\u0E35\u0E01\u0E04\u0E23\u0E31\u0E49\u0E07",unlockFaileVerify:"\u0E01\u0E32\u0E23\u0E15\u0E23\u0E27\u0E08\u0E2A\u0E2D\u0E1A\u0E04\u0E33\u0E2A\u0E31\u0E48\u0E07\u0E0B\u0E37\u0E49\u0E2D\u0E25\u0E49\u0E21\u0E40\u0E2B\u0E25\u0E27 \u0E2B\u0E32\u0E01\u0E04\u0E38\u0E13\u0E16\u0E39\u0E01\u0E40\u0E23\u0E35\u0E22\u0E01\u0E40\u0E01\u0E47\u0E1A\u0E40\u0E07\u0E34\u0E19\u0E41\u0E25\u0E49\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E15\u0E34\u0E14\u0E15\u0E48\u0E2D\u0E1D\u0E48\u0E32\u0E22\u0E2A\u0E19\u0E31\u0E1A\u0E2A\u0E19\u0E38\u0E19",transactionPending:"\u0E01\u0E32\u0E23\u0E22\u0E37\u0E19\u0E22\u0E31\u0E19\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E25\u0E49\u0E21\u0E40\u0E2B\u0E25\u0E27 \u0E01\u0E23\u0E38\u0E13\u0E32\u0E15\u0E34\u0E14\u0E15\u0E48\u0E2D\u0E1C\u0E39\u0E49\u0E43\u0E2B\u0E49\u0E1A\u0E23\u0E34\u0E01\u0E32\u0E23\u0E0A\u0E33\u0E23\u0E30\u0E40\u0E07\u0E34\u0E19\u0E02\u0E2D\u0E07\u0E04\u0E38\u0E13\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E02\u0E2D\u0E04\u0E27\u0E32\u0E21\u0E0A\u0E48\u0E27\u0E22\u0E40\u0E2B\u0E25\u0E37\u0E2D"},K2={unlockNeeds:"\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04",price:"\u0E23\u0E32\u0E04\u0E32",unlockWithJolicoin:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E14\u0E49\u0E27\u0E22 GEM",unlockWithJolicoinDescription:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2D\u0E31\u0E15\u0E42\u0E19\u0E21\u0E31\u0E15\u0E34\u0E14\u0E49\u0E27\u0E22 GEM",useJolicoin:"\u0E43\u0E0A\u0E49 GEM",balance:"GEM \u0E22\u0E2D\u0E14\u0E04\u0E07\u0E40\u0E2B\u0E25\u0E37\u0E2D"},Y2={instead:"\u0E41\u0E17\u0E19\u0E17\u0E35\u0E48\u0E14\u0E39\u0E42\u0E06\u0E29\u0E13\u0E32",introduct:"\u0E43\u0E0A\u0E49 {{coin}} Jolicoin \u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E1B\u0E23\u0E30\u0E2A\u0E1A\u0E01\u0E32\u0E23\u0E13\u0E4C\u0E17\u0E35\u0E48\u0E14\u0E35\u0E02\u0E36\u0E49\u0E19",tips:"\u0E23\u0E31\u0E1A {{coin}} \u0E1F\u0E23\u0E35",login:"\u0E25\u0E07\u0E17\u0E30\u0E40\u0E1A\u0E35\u0E22\u0E19\u0E41\u0E25\u0E30\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E14\u0E49\u0E27\u0E22 Jolicoin",noWatchAds:"\u0E44\u0E21\u0E48 \u0E14\u0E39\u0E42\u0E06\u0E29\u0E13\u0E32",noThanks:"\u0E44\u0E21\u0E48 \u0E02\u0E2D\u0E1A\u0E04\u0E38\u0E13",rewardTips:"\u0E22\u0E34\u0E19\u0E14\u0E35\u0E14\u0E49\u0E27\u0E22! \u0E04\u0E38\u0E13\u0E44\u0E14\u0E49\u0E23\u0E31\u0E1A {{coin}} Jolicoin. \u0E40\u0E23\u0E34\u0E48\u0E21\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E15\u0E2D\u0E19\u0E19\u0E35\u0E49!"},Q2={jolicoin:z2,joligem:K2,loginGuide:Y2},X2={unlockNeeds:"Y\xEAu c\u1EA7u m\u1EDF kh\xF3a",price:"Gi\xE1",unlockWithJolicoin:"M\u1EDF kh\xF3a b\u1EB1ng Jolicoin",unlockWithJolicoinDescription:"T\u1EF1 \u0111\u1ED9ng m\u1EDF kh\xF3a b\u1EB1ng Jolicoin",useJolicoin:"S\u1EED d\u1EE5ng Jolicoin",payAndUnlock:"Thanh to\xE1n v\xE0 m\u1EDF kh\xF3a",noWatchAds:"Kh\xF4ng, xem qu\u1EA3ng c\xE1o",noThanks:"Kh\xF4ng, c\u1EA3m \u01A1n",balance:"S\u1ED1 d\u01B0",coinUsed:"Jolicoin \u0111\xE3 s\u1EED d\u1EE5ng",unlockSuccess:"M\u1EDF kh\xF3a th\xE0nh c\xF4ng",unlockFailed:"M\u1EDF kh\xF3a th\u1EA5t b\u1EA1i",unlockFailedNotLogin:"Vui l\xF2ng \u0111\u0103ng nh\u1EADp \u0111\u1EC3 ho\xE0n th\xE0nh vi\u1EC7c m\u1EDF kh\xF3a",unlockFailedPaying:"Thanh to\xE1n \u0111ang \u0111\u01B0\u1EE3c x\u1EED l\xFD. Vui l\xF2ng kh\xF4ng l\u1EB7p l\u1EA1i thao t\xE1c",unlockFailedProductIdNotFound:"S\u1EA3n ph\u1EA9m \u0111\xE3 h\u1EBFt h\u1EA1n. Vui l\xF2ng ch\u1ECDn s\u1EA3n ph\u1EA9m kh\xE1c",unlockFailedProductInvalid:"Kh\xF4ng th\u1EC3 l\u1EA5y th\xF4ng tin s\u1EA3n ph\u1EA9m. Vui l\xF2ng th\u1EED l\u1EA1i ho\u1EB7c ch\u1ECDn s\u1EA3n ph\u1EA9m kh\xE1c",unlockFailedLaunch:"Kh\xF4ng th\u1EC3 b\u1EAFt \u0111\u1EA7u thanh to\xE1n. Vui l\xF2ng th\u1EED l\u1EA1i sau",unlockFailedTransaction:"Thanh to\xE1n th\u1EA5t b\u1EA1i. Vui l\xF2ng th\u1EED l\u1EA1i",unlockFaileVerify:"X\xE1c minh \u0111\u01A1n h\xE0ng th\u1EA5t b\u1EA1i. N\u1EBFu b\u1EA1n \u0111\xE3 b\u1ECB t\xEDnh ph\xED, vui l\xF2ng li\xEAn h\u1EC7 h\u1ED7 tr\u1EE3",transactionPending:"X\xE1c nh\u1EADn thanh to\xE1n th\u1EA5t b\u1EA1i. Vui l\xF2ng li\xEAn h\u1EC7 nh\xE0 cung c\u1EA5p thanh to\xE1n c\u1EE7a b\u1EA1n \u0111\u1EC3 \u0111\u01B0\u1EE3c h\u1ED7 tr\u1EE3"},Z2={unlockNeeds:"Y\xEAu c\u1EA7u m\u1EDF kh\xF3a",price:"Gi\xE1",unlockWithJolicoin:"M\u1EDF kh\xF3a b\u1EB1ng GEM",unlockWithJolicoinDescription:"T\u1EF1 \u0111\u1ED9ng m\u1EDF kh\xF3a b\u1EB1ng GEM",useJolicoin:"S\u1EED d\u1EE5ng GEM",balance:"GEM S\u1ED1 d\u01B0"},eG={instead:"Thay th\u1EBF b\u1EB1ng xem qu\u1EA3ng c\xE1o",introduct:"S\u1EED d\u1EE5ng {{coin}} Jolicoin \u0111\u1EC3 m\u1EDF kh\xF3a cho tr\u1EA3i nghi\u1EC7m t\u1ED1t h\u01A1n",tips:"Nh\u1EADn {{coin}} mi\u1EC5n ph\xED",login:"\u0110\u0103ng k\xFD v\xE0 m\u1EDF kh\xF3a v\u1EDBi Jolicoin",noWatchAds:"Kh\xF4ng, xem qu\u1EA3ng c\xE1o",noThanks:"Kh\xF4ng, c\u1EA3m \u01A1n",rewardTips:"Ch\xFAc m\u1EEBng! B\u1EA1n \u0111\xE3 nh\u1EADn \u0111\u01B0\u1EE3c {{coin}} Jolicoin. M\u1EDF kh\xF3a ngay!"},tG={jolicoin:X2,joligem:Z2,loginGuide:eG},rG={unlockNeeds:"Kailangan i-unlock",price:"Presyo",unlockWithJolicoin:"I-unlock gamit ang Jolicoin",unlockWithJolicoinDescription:"Awtomatikong i-unlock gamit ang Jolicoin",useJolicoin:"Gamitin ang Jolicoin",payAndUnlock:"Magbayad at i-unlock",noWatchAds:"Hindi, manood ng ads",noThanks:"Hindi na, salamat",balance:"Balanse",coinUsed:"Ginamit na Jolicoin",unlockSuccess:"Matagumpay na na-unlock",unlockFailed:"Hindi matagumpay ang pag-unlock",unlockFailedNotLogin:"Mangyaring mag-login para makumpleto ang pag-unlock",unlockFailedPaying:"Ang pagbabayad ay nasa proseso na. Huwag ulitin ang operasyon",unlockFailedProductIdNotFound:"Ang produkto ay nag-expire na. Mangyaring pumili ng ibang produkto",unlockFailedProductInvalid:"Hindi makuha ang impormasyon ng produkto. Subukang muli o pumili ng ibang produkto",unlockFailedLaunch:"Hindi maumpisahan ang pagbabayad. Subukang muli sa ibang pagkakataon",unlockFailedTransaction:"Hindi matagumpay ang pagbabayad. Subukang muli",unlockFaileVerify:"Hindi matagumpay ang pag-verify ng order. Kung na-charge ka na, mangyaring makipag-ugnayan sa suporta",transactionPending:"Hindi matagumpay ang kumpirmasyon ng pagbabayad. Mangyaring makipag-ugnayan sa iyong payment provider para sa suporta"},nG={unlockNeeds:"Kailangan i-unlock",price:"Presyo",unlockWithJolicoin:"I-unlock gamit ang GEM",unlockWithJolicoinDescription:"Awtomatikong i-unlock gamit ang GEM",useJolicoin:"Gamitin ang GEM",balance:"GEM Balanse"},iG={instead:"Kung hindi mo na gusto ang mga ad",introduct:"Gamitin ang {{coin}} Jolicoin para i-unlock para sa mas mahusay na karanasan",tips:"Kunin ang {{coin}} para sa libreng",login:"Mag-register at i-unlock gamit ang Jolicoin",noWatchAds:"Hindi, manood ng ads",noThanks:"Hindi na, salamat",rewardTips:"Maligayang pagdating! Nakatanggap ka ng {{coin}} Jolicoin. Simulan ang pag-unlock!"},hk={jolicoin:rG,joligem:nG,loginGuide:iG},oG={unlockNeeds:"Necesario desbloquear",price:"Precio",unlockWithJolicoin:"Desbloquea con Jolicoin",unlockWithJolicoinDescription:"Desbloquea autom\xE1ticamente con Jolicoin",useJolicoin:"Usar Jolicoin",payAndUnlock:"Pagar y desbloquear",noWatchAds:"No, ver anuncios",noThanks:"No, gracias",balance:"Saldo",coinUsed:"Jolicoin usado",unlockSuccess:"Desbloqueo exitoso",unlockFailed:"Error al desbloquear",unlockFailedNotLogin:"Inicia sesi\xF3n para completar el desbloqueo",unlockFailedPaying:"El pago ya est\xE1 en proceso. Por favor, no repita la operaci\xF3n",unlockFailedProductIdNotFound:"El producto ha expirado. Por favor, elija otro producto",unlockFailedProductInvalid:"Error al obtener informaci\xF3n del producto. Int\xE9ntelo de nuevo o elija otro producto",unlockFailedLaunch:"No se puede iniciar el pago. Int\xE9ntelo de nuevo m\xE1s tarde",unlockFailedTransaction:"Error en el pago. Int\xE9ntelo de nuevo",unlockFaileVerify:"Error en la verificaci\xF3n del pedido. Si se le ha cobrado, contacte con soporte",transactionPending:"Error en la confirmaci\xF3n del pago. Contacte con su proveedor de pago para obtener ayuda"},aG={unlockNeeds:"Necesario desbloquear",price:"Precio",unlockWithJolicoin:"Desbloquea con GEM",unlockWithJolicoinDescription:"Desbloquea autom\xE1ticamente con GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},sG={instead:"En lugar de ver anuncios",introduct:"Usa {{coin}} Jolicoin para desbloquear para una mejor experiencia",tips:"Obt\xE9n {{coin}} gratis",login:"Reg\xEDstrate y desbloquea con Jolicoin",noWatchAds:"No, ver anuncios",noThanks:"No, gracias",rewardTips:"\xA1Felicidades! Has recibido {{coin}} Jolicoin. \xA1Empieza a desbloquear!"},lG={jolicoin:oG,joligem:aG,loginGuide:sG},cG={unlockNeeds:"\u30A2\u30F3\u30ED\u30C3\u30AF\u5FC5\u8981",price:"\u4FA1\u683C",unlockWithJolicoin:"Jolicoin\u3067\u30A2\u30F3\u30ED\u30C3\u30AF",unlockWithJolicoinDescription:"Jolicoin\u3067\u81EA\u52D5\u7684\u306B\u30A2\u30F3\u30ED\u30C3\u30AF",useJolicoin:"Jolicoin\u3092\u4F7F\u7528",payAndUnlock:"\u652F\u6255\u3044\u3068\u30A2\u30F3\u30ED\u30C3\u30AF",noWatchAds:"\u3044\u3044\u3048\u3001\u5E83\u544A\u3092\u898B\u308B",noThanks:"\u3044\u3044\u3048\u3001\u7D50\u69CB\u3067\u3059",balance:"\u6B8B\u9AD8",coinUsed:"\u4F7F\u7528\u6E08\u307FJolicoin",unlockSuccess:"\u30A2\u30F3\u30ED\u30C3\u30AF\u6210\u529F",unlockFailed:"\u30A2\u30F3\u30ED\u30C3\u30AF\u5931\u6557",unlockFailedNotLogin:"\u30A2\u30F3\u30ED\u30C3\u30AF\u3092\u5B8C\u4E86\u3059\u308B\u306B\u306F\u30ED\u30B0\u30A4\u30F3\u3057\u3066\u304F\u3060\u3055\u3044",unlockFailedPaying:"\u652F\u6255\u3044\u51E6\u7406\u4E2D\u3067\u3059\u3002\u64CD\u4F5C\u3092\u7E70\u308A\u8FD4\u3055\u306A\u3044\u3067\u304F\u3060\u3055\u3044",unlockFailedProductIdNotFound:"\u5546\u54C1\u306E\u6709\u52B9\u671F\u9650\u304C\u5207\u308C\u3066\u3044\u307E\u3059\u3002\u4ED6\u306E\u5546\u54C1\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",unlockFailedProductInvalid:"\u5546\u54C1\u60C5\u5831\u306E\u53D6\u5F97\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u518D\u8A66\u884C\u3059\u308B\u304B\u3001\u4ED6\u306E\u5546\u54C1\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044",unlockFailedLaunch:"\u652F\u6255\u3044\u3092\u958B\u59CB\u3067\u304D\u307E\u305B\u3093\u3002\u5F8C\u3067\u3082\u3046\u4E00\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044",unlockFailedTransaction:"\u652F\u6255\u3044\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u518D\u8A66\u884C\u3057\u3066\u304F\u3060\u3055\u3044",unlockFaileVerify:"\u6CE8\u6587\u306E\u78BA\u8A8D\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u6599\u91D1\u304C\u8ACB\u6C42\u3055\u308C\u305F\u5834\u5408\u306F\u3001\u30B5\u30DD\u30FC\u30C8\u306B\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044",transactionPending:"\u652F\u6255\u3044\u306E\u78BA\u8A8D\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u652F\u6255\u3044\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306B\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044"},uG={unlockNeeds:"\u30A2\u30F3\u30ED\u30C3\u30AF\u5FC5\u8981",price:"\u4FA1\u683C",unlockWithJolicoin:"GEM\u3067\u30A2\u30F3\u30ED\u30C3\u30AF",unlockWithJolicoinDescription:"GEM\u3067\u81EA\u52D5\u7684\u306B\u30A2\u30F3\u30ED\u30C3\u30AF",useJolicoin:"GEM\u3092\u4F7F\u7528",balance:"GEM\u6B8B\u9AD8"},dG={instead:"\u5E83\u544A\u3092\u898B\u308B\u4EE3\u308F\u308A\u306B",introduct:"{{coin}} Jolicoin\u3092\u4F7F\u7528\u3057\u3066\u3001\u3088\u308A\u826F\u3044\u4F53\u9A13\u306E\u305F\u3081\u306B\u30A2\u30F3\u30ED\u30C3\u30AF\u3057\u307E\u3059",tips:"{{coin}}\u3092\u7121\u6599\u3067\u53D6\u5F97",login:"Jolicoin\u3067\u767B\u9332\u3057\u3066\u30A2\u30F3\u30ED\u30C3\u30AF",noWatchAds:"\u3044\u3044\u3048\u3001\u5E83\u544A\u3092\u898B\u308B",noThanks:"\u3044\u3044\u3048\u3001\u7D50\u69CB\u3067\u3059",rewardTips:"\u304A\u3081\u3067\u3068\u3046\u3054\u3056\u3044\u307E\u3059\uFF01{{coin}} Jolicoin\u3092\u53D7\u3051\u53D6\u308A\u307E\u3057\u305F\uFF01\u30A2\u30F3\u30ED\u30C3\u30AF\u3092\u958B\u59CB\u3057\u307E\u3059\uFF01"},pG={jolicoin:cG,joligem:uG,loginGuide:dG},fG={unlockNeeds:"Necess\xE1rio desbloquear",price:"Pre\xE7o",unlockWithJolicoin:"Desbloqueie com Jolicoin",unlockWithJolicoinDescription:"Deduz Jolicoin automaticamente para itens digitais",useJolicoin:"Usar Jolicoin",payAndUnlock:"Pagar e desbloquear",noWatchAds:"N\xE3o, assistir an\xFAncios",noThanks:"N\xE3o, obrigado",balance:"Saldo",coinUsed:"Jolicoin usado",unlockSuccess:"Desbloqueio bem-sucedido",unlockFailed:"Falha no desbloqueio",unlockFailedNotLogin:"Fa\xE7a login para completar o desbloqueio",unlockFailedPaying:"O pagamento j\xE1 est\xE1 em andamento. Por favor, n\xE3o repita a opera\xE7\xE3o",unlockFailedProductIdNotFound:"O produto expirou. Por favor, escolha outro produto",unlockFailedProductInvalid:"Falha ao recuperar informa\xE7\xF5es do produto. Tente novamente ou escolha outro produto",unlockFailedLaunch:"N\xE3o foi poss\xEDvel iniciar o pagamento. Tente novamente mais tarde",unlockFailedTransaction:"Falha no pagamento. Tente novamente",unlockFaileVerify:"Falha na verifica\xE7\xE3o do pedido. Se voc\xEA foi cobrado, entre em contato com o suporte",transactionPending:"Falha na confirma\xE7\xE3o do pagamento. Entre em contato com seu provedor de pagamento para suporte"},hG={unlockNeeds:"Necess\xE1rio desbloquear",price:"Pre\xE7o",unlockWithJolicoin:"Desbloqueie com GEM",unlockWithJolicoinDescription:"Desbloqueie automaticamente com GEM",useJolicoin:"Usar GEM",balance:"GEM Saldo"},mG={instead:"Em vez de assistir an\xFAncios",introduct:"Use {{coin}} Jolicoin para desbloquear para uma melhor experi\xEAncia",tips:"Obtenha {{coin}} gratuitamente",login:"Registre-se e desbloqueie com Jolicoin",noWatchAds:"N\xE3o, assistir an\xFAncios",noThanks:"N\xE3o, obrigado",rewardTips:"Parab\xE9ns! Voc\xEA recebeu {{coin}} Jolicoin. Comece a desbloquear agora!"},mk={jolicoin:fG,joligem:hG,loginGuide:mG},vG={unlockNeeds:"\uC7A0\uAE08 \uD574\uC81C \uD544\uC694",price:"\uAC00\uACA9",unlockWithJolicoin:"Jolicoin\uC73C\uB85C \uC7A0\uAE08 \uD574\uC81C",unlockWithJolicoinDescription:"Jolicoin\uC73C\uB85C \uC790\uB3D9 \uC7A0\uAE08 \uD574\uC81C",useJolicoin:"Jolicoin \uC0AC\uC6A9",payAndUnlock:"\uACB0\uC81C \uBC0F \uC7A0\uAE08 \uD574\uC81C",noWatchAds:"\uC544\uB2C8\uC694, \uAD11\uACE0 \uC2DC\uCCAD",noThanks:"\uAD1C\uCC2E\uC2B5\uB2C8\uB2E4",balance:"\uC794\uC561",coinUsed:"\uC0AC\uC6A9\uB41C Jolicoin",unlockSuccess:"\uC7A0\uAE08 \uD574\uC81C \uC131\uACF5",unlockFailed:"\uC7A0\uAE08 \uD574\uC81C \uC2E4\uD328",unlockFailedNotLogin:"\uC7A0\uAE08 \uD574\uC81C\uB97C \uC644\uB8CC\uD558\uB824\uBA74 \uB85C\uADF8\uC778\uD558\uC138\uC694",unlockFailedPaying:"\uACB0\uC81C\uAC00 \uC9C4\uD589 \uC911\uC785\uB2C8\uB2E4. \uC791\uC5C5\uC744 \uBC18\uBCF5\uD558\uC9C0 \uB9C8\uC138\uC694",unlockFailedProductIdNotFound:"\uC0C1\uD488\uC774 \uB9CC\uB8CC\uB418\uC5C8\uC2B5\uB2C8\uB2E4. \uB2E4\uB978 \uC0C1\uD488\uC744 \uC120\uD0DD\uD574\uC8FC\uC138\uC694",unlockFailedProductInvalid:"\uC0C1\uD488 \uC815\uBCF4\uB97C \uAC00\uC838\uC624\uB294\uB370 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD558\uAC70\uB098 \uB2E4\uB978 \uC0C1\uD488\uC744 \uC120\uD0DD\uD574\uC8FC\uC138\uC694",unlockFailedLaunch:"\uACB0\uC81C\uB97C \uC2DC\uC791\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB098\uC911\uC5D0 \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",unlockFailedTransaction:"\uACB0\uC81C\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uB2E4\uC2DC \uC2DC\uB3C4\uD574\uC8FC\uC138\uC694",unlockFaileVerify:"\uC8FC\uBB38 \uD655\uC778\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uC694\uAE08\uC774 \uCCAD\uAD6C\uB41C \uACBD\uC6B0 \uACE0\uAC1D \uC9C0\uC6D0\uD300\uC5D0 \uBB38\uC758\uD574\uC8FC\uC138\uC694",transactionPending:"\uACB0\uC81C \uD655\uC778\uC5D0 \uC2E4\uD328\uD588\uC2B5\uB2C8\uB2E4. \uACB0\uC81C \uC11C\uBE44\uC2A4 \uC81C\uACF5\uC5C5\uCCB4\uC5D0 \uBB38\uC758\uD574\uC8FC\uC138\uC694"},gG={unlockNeeds:"\uC7A0\uAE08 \uD574\uC81C \uD544\uC694",price:"\uAC00\uACA9",unlockWithJolicoin:"GEM\uC73C\uB85C \uC7A0\uAE08 \uD574\uC81C",unlockWithJolicoinDescription:"GEM\uC73C\uB85C \uC790\uB3D9 \uC7A0\uAE08 \uD574\uC81C",useJolicoin:"GEM \uC0AC\uC6A9",balance:"GEM \uC794\uC561"},yG={instead:"\uAD11\uACE0 \uC2DC\uCCAD \uB300\uC2E0",introduct:"{{coin}} Jolicoin\uC744 \uC0AC\uC6A9\uD558\uC5EC \uB354 \uB098\uC740 \uACBD\uD5D8\uC744 \uC704\uD574 \uC7A0\uAE08 \uD574\uC81C",tips:"{{coin}}\uC744 \uBB34\uB8CC\uB85C \uBC1B\uC73C\uC138\uC694",login:"Jolicoin\uC73C\uB85C \uB4F1\uB85D \uBC0F \uC7A0\uAE08 \uD574\uC81C",noWatchAds:"\uC544\uB2C8\uC694, \uAD11\uACE0 \uC2DC\uCCAD",noThanks:"\uC544\uB2C8\uC694, \uAC10\uC0AC\uD569\uB2C8\uB2E4",rewardTips:"\uCD95\uD558\uD569\uB2C8\uB2E4! {{coin}} Jolicoin\uC744 \uBC1B\uC558\uC2B5\uB2C8\uB2E4! \uC7A0\uAE08 \uD574\uC81C\uB97C \uC2DC\uC791\uD558\uC138\uC694!"},_G={jolicoin:vG,joligem:gG,loginGuide:yG},bG={unlockNeeds:"\u89E3\u9396\u9700\u6C42",price:"\u50F9\u683C",unlockWithJolicoin:"\u4F7F\u7528 Jolicoin \u89E3\u9396",unlockWithJolicoinDescription:"\u81EA\u52D5\u4F7F\u7528 Jolicoin \u89E3\u9396",useJolicoin:"\u4F7F\u7528 Jolicoin",payAndUnlock:"\u652F\u4ED8\u4E26\u89E3\u9396",noWatchAds:"\u4E0D\uFF0C\u89C0\u770B\u5EE3\u544A",noThanks:"\u4E0D\u7528\u4E86",balance:"\u9918\u984D",coinUsed:"\u5DF2\u4F7F\u7528\u7684 Jolicoin",unlockSuccess:"\u89E3\u9396\u6210\u529F",unlockFailed:"\u89E3\u9396\u5931\u6557",unlockFailedNotLogin:"\u8ACB\u767B\u5165\u5F8C\u5B8C\u6210\u89E3\u9396",unlockFailedPaying:"\u652F\u4ED8\u6B63\u5728\u9032\u884C\u4E2D\uFF0C\u8ACB\u52FF\u91CD\u8907\u64CD\u4F5C",unlockFailedProductIdNotFound:"\u5546\u54C1\u5DF2\u904E\u671F\uFF0C\u8ACB\u9078\u64C7\u5176\u4ED6\u5546\u54C1",unlockFailedProductInvalid:"\u7372\u53D6\u5546\u54C1\u4FE1\u606F\u5931\u6557\uFF0C\u8ACB\u91CD\u8A66\u6216\u9078\u64C7\u5176\u4ED6\u5546\u54C1",unlockFailedLaunch:"\u7121\u6CD5\u555F\u52D5\u652F\u4ED8\uFF0C\u8ACB\u7A0D\u5F8C\u91CD\u8A66",unlockFailedTransaction:"\u652F\u4ED8\u5931\u6557\uFF0C\u8ACB\u91CD\u8A66",unlockFaileVerify:"\u8A02\u55AE\u9A57\u8B49\u5931\u6557\uFF0C\u5982\u5DF2\u6263\u8CBB\u8ACB\u806F\u7E6B\u5BA2\u670D",transactionPending:"\u652F\u4ED8\u78BA\u8A8D\u5931\u6557\uFF0C\u8ACB\u806F\u7E6B\u652F\u4ED8\u670D\u52D9\u5546\u7372\u53D6\u652F\u6301"},wG={unlockNeeds:"\u89E3\u9396\u9700\u6C42",price:"\u50F9\u683C",unlockWithJolicoin:"\u4F7F\u7528 GEM \u89E3\u9396",unlockWithJolicoinDescription:"\u81EA\u52D5\u4F7F\u7528 GEM \u89E3\u9396",useJolicoin:"\u4F7F\u7528 GEM",balance:"GEM \u9918\u984D"},IG={instead:"\u89C0\u770B\u5EE3\u544A",introduct:"\u4F7F\u7528 {{coin}} Jolicoin \u89E3\u9396\u4EE5\u7372\u5F97\u66F4\u597D\u7684\u9AD4\u9A57",tips:"\u514D\u8CBB\u7372\u53D6 {{coin}}",login:"\u8A3B\u518A\u4E26\u89E3\u9396",noWatchAds:"\u4E0D\u7528\u4E86\uFF0C\u89C0\u770B\u5EE3\u544A",noThanks:"\u4E0D\u7528\u4E86",rewardTips:"\u606D\u559C\uFF01\u60A8\u7372\u5F97\u4E86 {{coin}} Jolicoin\uFF01\u958B\u59CB\u89E3\u9396\u5427\uFF01"},EG={jolicoin:bG,joligem:wG,loginGuide:IG},kG={unlockNeeds:"Entsperren erforderlich",price:"Preis",unlockWithJolicoin:"Mit Jolicoin entsperren",unlockWithJolicoinDescription:"Automatisch mit Jolicoin entsperren",useJolicoin:"Jolicoin verwenden",payAndUnlock:"Bezahlen und entsperren",noWatchAds:"Nein, Werbung ansehen",noThanks:"Nein danke",balance:"Guthaben",coinUsed:"Verwendete Jolicoin",unlockSuccess:"Erfolgreich entsperrt",unlockFailed:"Entsperren fehlgeschlagen",unlockFailedNotLogin:"Bitte melden Sie sich an, um die Entsperrung abzuschlie\xDFen",unlockFailedPaying:"Zahlung l\xE4uft bereits. Bitte nicht wiederholen",unlockFailedProductIdNotFound:"Produkt ist abgelaufen. Bitte w\xE4hlen Sie ein anderes Produkt",unlockFailedProductInvalid:"Produktinformationen konnten nicht abgerufen werden. Bitte versuchen Sie es erneut oder w\xE4hlen Sie ein anderes Produkt",unlockFailedLaunch:"Zahlung konnte nicht gestartet werden. Bitte versuchen Sie es sp\xE4ter erneut",unlockFailedTransaction:"Zahlung fehlgeschlagen. Bitte versuchen Sie es erneut",unlockFaileVerify:"Bestellbest\xE4tigung fehlgeschlagen. Falls Ihnen bereits etwas berechnet wurde, kontaktieren Sie bitte den Support",transactionPending:"Zahlungsbest\xE4tigung fehlgeschlagen. Bitte kontaktieren Sie Ihren Zahlungsanbieter f\xFCr Unterst\xFCtzung"},SG={unlockNeeds:"Entsperren erforderlich",price:"Preis",unlockWithJolicoin:"Mit GEM entsperren",unlockWithJolicoinDescription:"Automatisch mit GEM entsperren",useJolicoin:"GEM verwenden",balance:"GEM Guthaben"},AG={instead:"Anstatt Werbung anzusehen",introduct:"Verwenden Sie {{coin}} Jolicoin f\xFCr eine bessere Erfahrung",tips:"Holen Sie sich {{coin}} kostenlos",login:"Registrieren und entsperren mit Jolicoin",noWatchAds:"Nein, Werbung ansehen",noThanks:"Nein danke",rewardTips:"Gl\xFCckwunsch! Sie haben {{coin}} Jolicoin erhalten! Beginnen Sie mit der Entsperrung!"},xG={jolicoin:kG,joligem:SG,loginGuide:AG},CG={unlockNeeds:"D\xE9verrouillage n\xE9cessaire",price:"Prix",unlockWithJolicoin:"D\xE9verrouillez avec Jolicoin",unlockWithJolicoinDescription:"D\xE9verrouillez automatiquement avec Jolicoin",useJolicoin:"Utiliser Jolicoin",payAndUnlock:"Payer et d\xE9verrouiller",noWatchAds:"Non, regarder des publicit\xE9s",noThanks:"Non merci",balance:"Solde",coinUsed:"Jolicoin utilis\xE9",unlockSuccess:"D\xE9verrouillage r\xE9ussi",unlockFailed:"\xC9chec du d\xE9verrouillage",unlockFailedNotLogin:"Connectez-vous pour terminer le d\xE9verrouillage",unlockFailedPaying:"Le paiement est d\xE9j\xE0 en cours. Veuillez ne pas r\xE9p\xE9ter l'op\xE9ration",unlockFailedProductIdNotFound:"Le produit a expir\xE9. Veuillez choisir un autre produit",unlockFailedProductInvalid:"\xC9chec de la r\xE9cup\xE9ration des informations du produit. Veuillez r\xE9essayer ou choisir un autre produit",unlockFailedLaunch:"Impossible de lancer le paiement. Veuillez r\xE9essayer plus tard",unlockFailedTransaction:"\xC9chec du paiement. Veuillez r\xE9essayer",unlockFaileVerify:"\xC9chec de la v\xE9rification de la commande. Si vous avez \xE9t\xE9 factur\xE9, veuillez contacter le support",transactionPending:"\xC9chec de la confirmation du paiement. Veuillez contacter votre fournisseur de paiement pour obtenir de l'aide"},TG={unlockNeeds:"D\xE9verrouillage n\xE9cessaire",price:"Prix",unlockWithJolicoin:"D\xE9verrouillez avec GEM",unlockWithJolicoinDescription:"D\xE9verrouillez automatiquement avec GEM",useJolicoin:"Utiliser GEM",balance:"GEM Solde"},OG={instead:"Au lieu de regarder des publicit\xE9s",introduct:"Utilisez {{coin}} Jolicoin pour d\xE9bloquer pour une meilleure exp\xE9rience",tips:"Obtenez {{coin}} gratuitement",login:"S'inscrire et d\xE9bloquer avec Jolicoin",noWatchAds:"Non, regarder des publicit\xE9s",noThanks:"Non merci",rewardTips:"F\xE9licitations ! Vous avez re\xE7u {{coin}} Jolicoin. Commencez \xE0 d\xE9verrouiller !"},PG={jolicoin:CG,joligem:TG,loginGuide:OG},RG={unlockNeeds:"\u0905\u0928\u0932\u0949\u0915 \u0906\u0935\u0936\u094D\u092F\u0915",price:"\u092E\u0942\u0932\u094D\u092F",unlockWithJolicoin:"Jolicoin \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",unlockWithJolicoinDescription:"\u0938\u094D\u0935\u091A\u093E\u0932\u093F\u0924 \u0930\u0942\u092A \u0938\u0947 Jolicoin \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",useJolicoin:"Jolicoin \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0947\u0902",payAndUnlock:"\u092D\u0941\u0917\u0924\u093E\u0928 \u0914\u0930 \u0905\u0928\u0932\u0949\u0915",noWatchAds:"\u0928\u0939\u0940\u0902, \u0935\u093F\u091C\u094D\u091E\u093E\u092A\u0928 \u0926\u0947\u0916\u0947\u0902",noThanks:"\u0928\u0939\u0940\u0902, \u0927\u0928\u094D\u092F\u0935\u093E\u0926",balance:"\u0936\u0947\u0937 \u0930\u093E\u0936\u093F",coinUsed:"\u0909\u092A\u092F\u094B\u0917 \u0915\u093F\u092F\u093E \u0917\u092F\u093E Jolicoin",unlockSuccess:"\u0905\u0928\u0932\u0949\u0915 \u0938\u092B\u0932",unlockFailed:"\u0905\u0928\u0932\u0949\u0915 \u0935\u093F\u092B\u0932",unlockFailedNotLogin:"\u0905\u0928\u0932\u0949\u0915 \u092A\u0942\u0930\u093E \u0915\u0930\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F \u0932\u0949\u0917\u093F\u0928 \u0915\u0930\u0947\u0902",unlockFailedPaying:"\u092D\u0941\u0917\u0924\u093E\u0928 \u092A\u0939\u0932\u0947 \u0938\u0947 \u0939\u0940 \u092A\u094D\u0930\u0917\u0924\u093F \u092A\u0930 \u0939\u0948\u0964 \u0915\u0943\u092A\u092F\u093E \u0911\u092A\u0930\u0947\u0936\u0928 \u0926\u094B\u0939\u0930\u093E\u090F\u0902 \u0928\u0939\u0940\u0902",unlockFailedProductIdNotFound:"\u0909\u0924\u094D\u092A\u093E\u0926 \u0915\u0940 \u0938\u092E\u092F \u0938\u0940\u092E\u093E \u0938\u092E\u093E\u092A\u094D\u0924 \u0939\u094B \u0917\u0908 \u0939\u0948\u0964 \u0915\u0943\u092A\u092F\u093E \u0926\u0942\u0938\u0930\u093E \u0909\u0924\u094D\u092A\u093E\u0926 \u091A\u0941\u0928\u0947\u0902",unlockFailedProductInvalid:"\u0909\u0924\u094D\u092A\u093E\u0926 \u091C\u093E\u0928\u0915\u093E\u0930\u0940 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u0930\u0928\u0947 \u092E\u0947\u0902 \u0935\u093F\u092B\u0932\u0964 \u0915\u0943\u092A\u092F\u093E \u092A\u0941\u0928\u0903 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902 \u092F\u093E \u0926\u0942\u0938\u0930\u093E \u0909\u0924\u094D\u092A\u093E\u0926 \u091A\u0941\u0928\u0947\u0902",unlockFailedLaunch:"\u092D\u0941\u0917\u0924\u093E\u0928 \u0936\u0941\u0930\u0942 \u0928\u0939\u0940\u0902 \u0915\u093F\u092F\u093E \u091C\u093E \u0938\u0915\u0924\u093E\u0964 \u0915\u0943\u092A\u092F\u093E \u092C\u093E\u0926 \u092E\u0947\u0902 \u092A\u0941\u0928\u0903 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902",unlockFailedTransaction:"\u092D\u0941\u0917\u0924\u093E\u0928 \u0935\u093F\u092B\u0932\u0964 \u0915\u0943\u092A\u092F\u093E \u092A\u0941\u0928\u0903 \u092A\u094D\u0930\u092F\u093E\u0938 \u0915\u0930\u0947\u0902",unlockFaileVerify:"\u0911\u0930\u094D\u0921\u0930 \u0938\u0924\u094D\u092F\u093E\u092A\u0928 \u0935\u093F\u092B\u0932\u0964 \u092F\u0926\u093F \u0906\u092A\u0938\u0947 \u0936\u0941\u0932\u094D\u0915 \u0932\u093F\u092F\u093E \u0917\u092F\u093E \u0939\u0948, \u0924\u094B \u0915\u0943\u092A\u092F\u093E \u0938\u0939\u093E\u092F\u0924\u093E \u0938\u0947 \u0938\u0902\u092A\u0930\u094D\u0915 \u0915\u0930\u0947\u0902",transactionPending:"\u092D\u0941\u0917\u0924\u093E\u0928 \u092A\u0941\u0937\u094D\u091F\u093F\u0915\u0930\u0923 \u0935\u093F\u092B\u0932\u0964 \u0915\u0943\u092A\u092F\u093E \u0938\u0939\u093E\u092F\u0924\u093E \u0915\u0947 \u0932\u093F\u090F \u0905\u092A\u0928\u0947 \u092D\u0941\u0917\u0924\u093E\u0928 \u092A\u094D\u0930\u0926\u093E\u0924\u093E \u0938\u0947 \u0938\u0902\u092A\u0930\u094D\u0915 \u0915\u0930\u0947\u0902"},NG={unlockNeeds:"\u0905\u0928\u0932\u0949\u0915 \u0906\u0935\u0936\u094D\u092F\u0915",price:"\u092E\u0942\u0932\u094D\u092F",unlockWithJolicoin:"GEM \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",unlockWithJolicoinDescription:"\u0938\u094D\u0935\u091A\u093E\u0932\u093F\u0924 \u0930\u0942\u092A \u0938\u0947 GEM \u0938\u0947 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",useJolicoin:"GEM \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0947\u0902",balance:"GEM \u0936\u0947\u0937 \u0930\u093E\u0936\u093F"},DG={instead:"\u0935\u093F\u091C\u094D\u091E\u093E\u092A\u0928 \u0926\u0947\u0916\u0928\u0947 \u0915\u0947 \u092C\u091C\u093E\u092F",introduct:"{{coin}} Jolicoin \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0915\u0947 \u092C\u0947\u0939\u0924\u0930 \u0905\u0928\u0941\u092D\u0935 \u0915\u0947 \u0932\u093F\u090F \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",tips:"{{coin}} \u092E\u0941\u092B\u094D\u0924 \u092E\u0947\u0902 \u092A\u094D\u0930\u093E\u092A\u094D\u0924 \u0915\u0930\u0947\u0902",login:"Jolicoin \u0915\u0947 \u0938\u093E\u0925 \u0930\u091C\u093F\u0938\u094D\u091F\u0930 \u0914\u0930 \u0905\u0928\u0932\u0949\u0915 \u0915\u0930\u0947\u0902",noWatchAds:"\u0928\u0939\u0940\u0902, \u0935\u093F\u091C\u094D\u091E\u093E\u092A\u0928 \u0926\u0947\u0916\u0947\u0902",noThanks:"\u0928\u0939\u0940\u0902, \u0927\u0928\u094D\u092F\u0935\u093E\u0926",rewardTips:"\u0905\u092D\u093F\u0928\u0902\u0926\u0928! \u0906\u092A\u0915\u094B {{coin}} Jolicoin \u092E\u093F\u0932\u093E \u0939\u0948! \u0905\u0928\u0932\u0949\u0915 \u0936\u0941\u0930\u0942 \u0915\u0930\u0947\u0902!"},LG={jolicoin:RG,joligem:NG,loginGuide:DG},MG={unlockNeeds:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430",price:"\u0426\u0435\u043D\u0430",unlockWithJolicoin:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E Jolicoin",unlockWithJolicoinDescription:"\u0410\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E Jolicoin",useJolicoin:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C Jolicoin",payAndUnlock:"\u041E\u043F\u043B\u0430\u0442\u0438\u0442\u044C \u0438 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u0430\u0442\u044C",noWatchAds:"\u041D\u0435\u0442, \u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",noThanks:"\u041D\u0435\u0442, \u0441\u043F\u0430\u0441\u0438\u0431\u043E",balance:"\u0411\u0430\u043B\u0430\u043D\u0441",coinUsed:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u043E Jolicoin",unlockSuccess:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430 \u0443\u0441\u043F\u0435\u0448\u043D\u0430",unlockFailed:"\u041E\u0448\u0438\u0431\u043A\u0430 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0438",unlockFailedNotLogin:"\u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u043E\u0439\u0434\u0438\u0442\u0435, \u0447\u0442\u043E\u0431\u044B \u0437\u0430\u0432\u0435\u0440\u0448\u0438\u0442\u044C \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0443",unlockFailedPaying:"\u041E\u043F\u043B\u0430\u0442\u0430 \u0443\u0436\u0435 \u0432\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u0442\u0441\u044F. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043D\u0435 \u043F\u043E\u0432\u0442\u043E\u0440\u044F\u0439\u0442\u0435 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u044E",unlockFailedProductIdNotFound:"\u0421\u0440\u043E\u043A \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u044F \u0442\u043E\u0432\u0430\u0440\u0430 \u0438\u0441\u0442\u0435\u043A. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u043E\u0439 \u0442\u043E\u0432\u0430\u0440",unlockFailedProductInvalid:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043E \u0442\u043E\u0432\u0430\u0440\u0435. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443 \u0438\u043B\u0438 \u0432\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0440\u0443\u0433\u043E\u0439 \u0442\u043E\u0432\u0430\u0440",unlockFailedLaunch:"\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043D\u0430\u0447\u0430\u0442\u044C \u043E\u043F\u043B\u0430\u0442\u0443. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443 \u043F\u043E\u0437\u0436\u0435",unlockFailedTransaction:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043E\u043F\u043B\u0430\u0442\u044B. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443",unlockFaileVerify:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u0440\u043E\u0432\u0435\u0440\u043A\u0438 \u0437\u0430\u043A\u0430\u0437\u0430. \u0415\u0441\u043B\u0438 \u0441 \u0432\u0430\u0441 \u0431\u044B\u043B\u0430 \u0441\u043F\u0438\u0441\u0430\u043D\u0430 \u043F\u043B\u0430\u0442\u0430, \u043F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044C \u0432 \u0441\u043B\u0443\u0436\u0431\u0443 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u0438",transactionPending:"\u041E\u0448\u0438\u0431\u043A\u0430 \u043F\u043E\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043D\u0438\u044F \u043E\u043F\u043B\u0430\u0442\u044B. \u041F\u043E\u0436\u0430\u043B\u0443\u0439\u0441\u0442\u0430, \u043E\u0431\u0440\u0430\u0442\u0438\u0442\u0435\u0441\u044C \u043A \u0432\u0430\u0448\u0435\u043C\u0443 \u043F\u043B\u0430\u0442\u0435\u0436\u043D\u043E\u043C\u0443 \u043F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440\u0443 \u0437\u0430 \u043F\u043E\u0434\u0434\u0435\u0440\u0436\u043A\u043E\u0439"},qG={unlockNeeds:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430",price:"\u0426\u0435\u043D\u0430",unlockWithJolicoin:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E GEM",unlockWithJolicoinDescription:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0430\u0432\u0442\u043E\u043C\u0430\u0442\u0438\u0447\u0435\u0441\u043A\u0438 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E GEM",useJolicoin:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C GEM",balance:"GEM \u0411\u0430\u043B\u0430\u043D\u0441"},UG={instead:"\u0412\u043C\u0435\u0441\u0442\u043E \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u0440\u0435\u043A\u043B\u0430\u043C\u044B",introduct:"\u0418\u0441\u043F\u043E\u043B\u044C\u0437\u0443\u0439\u0442\u0435 {{coin}} Jolicoin \u0434\u043B\u044F \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0438 \u0434\u043B\u044F \u043B\u0443\u0447\u0448\u0435\u0433\u043E \u043E\u043F\u044B\u0442\u0430",tips:"\u041F\u043E\u043B\u0443\u0447\u0438\u0442\u0435 {{coin}} \u0431\u0435\u0441\u043F\u043B\u0430\u0442\u043D\u043E",login:"\u0417\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u0443\u0439\u0442\u0435\u0441\u044C \u0438 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E Jolicoin",noWatchAds:"\u041D\u0435\u0442, \u0441\u043C\u043E\u0442\u0440\u0435\u0442\u044C \u0440\u0435\u043A\u043B\u0430\u043C\u0443",noThanks:"\u041D\u0435\u0442, \u0441\u043F\u0430\u0441\u0438\u0431\u043E",rewardTips:"\u041F\u043E\u0437\u0434\u0440\u0430\u0432\u043B\u044F\u0435\u043C! \u0412\u044B \u043F\u043E\u043B\u0443\u0447\u0438\u043B\u0438 {{coin}} Jolicoin. \u041D\u0430\u0447\u043D\u0438\u0442\u0435 \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0443!"},FG={jolicoin:MG,joligem:qG,loginGuide:UG},jG={unlockNeeds:"\u0986\u09A8\u09B2\u0995 \u09AA\u09CD\u09B0\u09AF\u09BC\u09CB\u099C\u09A8",price:"\u09AE\u09C2\u09B2\u09CD\u09AF",unlockWithJolicoin:"Jolicoin \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",unlockWithJolicoinDescription:"\u09B8\u09CD\u09AC\u09AF\u09BC\u0982\u0995\u09CD\u09B0\u09BF\u09AF\u09BC\u09AD\u09BE\u09AC\u09C7 Jolicoin \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",useJolicoin:"Jolicoin \u09AC\u09CD\u09AF\u09AC\u09B9\u09BE\u09B0 \u0995\u09B0\u09C1\u09A8",payAndUnlock:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u098F\u09AC\u0982 \u0986\u09A8\u09B2\u0995",noWatchAds:"\u09A8\u09BE, \u09AC\u09BF\u099C\u09CD\u099E\u09BE\u09AA\u09A8 \u09A6\u09C7\u0996\u09C1\u09A8",noThanks:"\u09A8\u09BE, \u09A7\u09A8\u09CD\u09AF\u09AC\u09BE\u09A6",balance:"\u09AC\u09CD\u09AF\u09BE\u09B2\u09C7\u09A8\u09CD\u09B8",coinUsed:"\u09AC\u09CD\u09AF\u09AC\u09B9\u09C3\u09A4 Jolicoin",unlockSuccess:"\u0986\u09A8\u09B2\u0995 \u09B8\u09AB\u09B2",unlockFailed:"\u0986\u09A8\u09B2\u0995 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5",unlockFailedNotLogin:"\u0986\u09A8\u09B2\u0995 \u09B8\u09AE\u09CD\u09AA\u09C2\u09B0\u09CD\u09A3 \u0995\u09B0\u09A4\u09C7 \u09B2\u0997\u0987\u09A8 \u0995\u09B0\u09C1\u09A8",unlockFailedPaying:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u0987\u09A4\u09BF\u09AE\u09A7\u09CD\u09AF\u09C7 \u099A\u09B2\u099B\u09C7\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09AA\u09C1\u09A8\u09B0\u09BE\u09AC\u09C3\u09A4\u09CD\u09A4\u09BF \u0995\u09B0\u09AC\u09C7\u09A8 \u09A8\u09BE",unlockFailedProductIdNotFound:"\u09AA\u09A3\u09CD\u09AF\u09C7\u09B0 \u09AE\u09C7\u09AF\u09BC\u09BE\u09A6 \u09B6\u09C7\u09B7 \u09B9\u09AF\u09BC\u09C7 \u0997\u09C7\u099B\u09C7\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0985\u09A8\u09CD\u09AF \u09AA\u09A3\u09CD\u09AF \u09AC\u09C7\u099B\u09C7 \u09A8\u09BF\u09A8",unlockFailedProductInvalid:"\u09AA\u09A3\u09CD\u09AF\u09C7\u09B0 \u09A4\u09A5\u09CD\u09AF \u09AA\u09C1\u09A8\u09B0\u09C1\u09A6\u09CD\u09A7\u09BE\u09B0 \u0995\u09B0\u09A4\u09C7 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09C1\u09A8 \u09AC\u09BE \u0985\u09A8\u09CD\u09AF \u09AA\u09A3\u09CD\u09AF \u09AC\u09C7\u099B\u09C7 \u09A8\u09BF\u09A8",unlockFailedLaunch:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09B6\u09C1\u09B0\u09C1 \u0995\u09B0\u09A4\u09C7 \u0985\u0995\u09CD\u09B7\u09AE\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09AA\u09B0\u09C7 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09C1\u09A8",unlockFailedTransaction:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u0986\u09AC\u09BE\u09B0 \u099A\u09C7\u09B7\u09CD\u099F\u09BE \u0995\u09B0\u09C1\u09A8",unlockFaileVerify:"\u0985\u09B0\u09CD\u09A1\u09BE\u09B0 \u09AF\u09BE\u099A\u09BE\u0987 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u09AF\u09A6\u09BF \u0986\u09AA\u09A8\u09BE\u0995\u09C7 \u099A\u09BE\u09B0\u09CD\u099C \u0995\u09B0\u09BE \u09B9\u09AF\u09BC\u09C7 \u09A5\u09BE\u0995\u09C7, \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09B8\u09B9\u09BE\u09AF\u09BC\u09A4\u09BE\u09B0 \u09B8\u09BE\u09A5\u09C7 \u09AF\u09CB\u0997\u09BE\u09AF\u09CB\u0997 \u0995\u09B0\u09C1\u09A8",transactionPending:"\u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09A8\u09BF\u09B6\u09CD\u099A\u09BF\u09A4\u0995\u09B0\u09A3 \u09AC\u09CD\u09AF\u09B0\u09CD\u09A5\u0964 \u0985\u09A8\u09C1\u0997\u09CD\u09B0\u09B9 \u0995\u09B0\u09C7 \u09B8\u09B9\u09BE\u09AF\u09BC\u09A4\u09BE\u09B0 \u099C\u09A8\u09CD\u09AF \u0986\u09AA\u09A8\u09BE\u09B0 \u09AA\u09C7\u09AE\u09C7\u09A8\u09CD\u099F \u09AA\u09CD\u09B0\u09A6\u09BE\u09A8\u0995\u09BE\u09B0\u09C0\u09B0 \u09B8\u09BE\u09A5\u09C7 \u09AF\u09CB\u0997\u09BE\u09AF\u09CB\u0997 \u0995\u09B0\u09C1\u09A8"},JG={unlockNeeds:"\u0986\u09A8\u09B2\u0995 \u09AA\u09CD\u09B0\u09AF\u09BC\u09CB\u099C\u09A8",price:"\u09AE\u09C2\u09B2\u09CD\u09AF",unlockWithJolicoin:"GEM \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",unlockWithJolicoinDescription:"\u09B8\u09CD\u09AC\u09AF\u09BC\u0982\u0995\u09CD\u09B0\u09BF\u09AF\u09BC\u09AD\u09BE\u09AC\u09C7 GEM \u09A6\u09BF\u09AF\u09BC\u09C7 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",useJolicoin:"GEM \u09AC\u09CD\u09AF\u09AC\u09B9\u09BE\u09B0 \u0995\u09B0\u09C1\u09A8",balance:"GEM \u09AC\u09CD\u09AF\u09BE\u09B2\u09C7\u09A8\u09CD\u09B8"},GG={instead:"\u09AC\u09BF\u099C\u09CD\u099E\u09BE\u09AA\u09A8 \u09A6\u09C7\u0996\u09A4\u09C7",introduct:"\u0986\u09AA\u09A8\u09BE\u09B0 \u09AD\u09BE\u09B2 \u0985\u09AD\u09BF\u099C\u09CD\u099E\u09A4\u09BE\u09B0 \u099C\u09A8\u09CD\u09AF {{coin}}Jolicoin \u09AC\u09CD\u09AF\u09AC\u09B9\u09BE\u09B0 \u0995\u09B0\u09C1\u09A8",tips:"\u09AB\u09CD\u09B0\u09BF {{coin}} \u09AA\u09C7\u09A4\u09C7",login:"Jolicoin \u09B8\u09BE\u09A5\u09C7 \u09B0\u09C7\u099C\u09BF\u09B8\u09CD\u099F\u09BE\u09B0 \u098F\u09AC\u0982 \u0986\u09A8\u09B2\u0995 \u0995\u09B0\u09C1\u09A8",noWatchAds:"\u09A8\u09BE, \u09AC\u09BF\u099C\u09CD\u099E\u09BE\u09AA\u09A8 \u09A6\u09C7\u0996\u09A4\u09C7",noThanks:"\u09A8\u09BE, \u09A7\u09A8\u09CD\u09AF\u09AC\u09BE\u09A6",rewardTips:"\u0985\u09AD\u09BF\u09A8\u09A8\u09CD\u09A6\u09A8! \u0986\u09AA\u09A8\u09BF {{coin}} Jolicoin \u09AA\u09C7\u09AF\u09BC\u09C7\u099B\u09C7\u09A8! \u0986\u09A8\u09B2\u0995 \u09B6\u09C1\u09B0\u09C1 \u0995\u09B0\u09C1\u09A8!"},BG={jolicoin:jG,joligem:JG,loginGuide:GG},HG={unlockNeeds:"Kilidi a\xE7mak gerekli",price:"Fiyat",unlockWithJolicoin:"Jolicoin ile kilidi a\xE7\u0131n",unlockWithJolicoinDescription:"Jolicoin ile otomatik olarak kilidi a\xE7\u0131n",useJolicoin:"Jolicoin kullan",payAndUnlock:"\xD6de ve kilidi a\xE7",noWatchAds:"Hay\u0131r, reklamlar\u0131 izle",noThanks:"Hay\u0131r, te\u015Fekk\xFCrler",balance:"Bakiye",coinUsed:"Kullan\u0131lan Jolicoin",unlockSuccess:"Kilidi a\xE7ma ba\u015Far\u0131l\u0131",unlockFailed:"Kilidi a\xE7ma ba\u015Far\u0131s\u0131z",unlockFailedNotLogin:"Kilidi a\xE7may\u0131 tamamlamak i\xE7in l\xFCtfen giri\u015F yap\u0131n",unlockFailedPaying:"\xD6deme zaten devam ediyor. L\xFCtfen i\u015Flemi tekrarlamay\u0131n",unlockFailedProductIdNotFound:"\xDCr\xFCn\xFCn s\xFCresi dolmu\u015F. L\xFCtfen ba\u015Fka bir \xFCr\xFCn se\xE7in",unlockFailedProductInvalid:"\xDCr\xFCn bilgileri al\u0131namad\u0131. L\xFCtfen tekrar deneyin veya ba\u015Fka bir \xFCr\xFCn se\xE7in",unlockFailedLaunch:"\xD6deme ba\u015Flat\u0131lamad\u0131. L\xFCtfen daha sonra tekrar deneyin",unlockFailedTransaction:"\xD6deme ba\u015Far\u0131s\u0131z. L\xFCtfen tekrar deneyin",unlockFaileVerify:"Sipari\u015F do\u011Frulamas\u0131 ba\u015Far\u0131s\u0131z. \xDCcretlendirildiyseniz, l\xFCtfen destek ile ileti\u015Fime ge\xE7in",transactionPending:"\xD6deme onay\u0131 ba\u015Far\u0131s\u0131z. L\xFCtfen destek i\xE7in \xF6deme sa\u011Flay\u0131c\u0131n\u0131zla ileti\u015Fime ge\xE7in"},VG={unlockNeeds:"Kilidi a\xE7mak gerekli",price:"Fiyat",unlockWithJolicoin:"GEM ile kilidi a\xE7\u0131n",unlockWithJolicoinDescription:"GEM ile otomatik olarak kilidi a\xE7\u0131n",useJolicoin:"GEM kullan",balance:"GEM Bakiye"},$G={instead:"Reklam izleme yerine",introduct:"{{coin}} Jolicoin kullanarak daha iyi deneyim i\xE7in kilidi a\xE7\u0131n",tips:"{{coin}} almak i\xE7in \xFCcretsiz",login:"Jolicoin ile kay\u0131t ve kilidi a\xE7\u0131n",noWatchAds:"Hay\u0131r, reklamlar\u0131 izle",noThanks:"Hay\u0131r, te\u015Fekk\xFCrler",rewardTips:"Tebrikler! {{coin}} Jolicoin ald\u0131n\u0131z. Kilidi a\xE7maya ba\u015Flay\u0131n!"},WG={jolicoin:HG,joligem:VG,loginGuide:$G},Xk={en:{translations:uk},en_GB:{translations:uk},zh:{translations:dk},"zh-Hans":{translations:dk},"zh-Hant":{translations:EG},id:{translations:pk},in:{translations:pk},ms:{translations:fk},my:{translations:fk},th:{translations:Q2},vi:{translations:tG},fil:{translations:hk},tl:{translations:hk},es:{translations:lG},ja:{translations:pG},pt:{translations:mk},pt_PT:{translations:mk},ko:{translations:_G},de:{translations:xG},fr:{translations:PG},hi:{translations:LG},ru:{translations:FG},bn:{translations:BG},tr:{translations:WG}},Zk=jr(void 0),eS=({definition:e,children:t})=>{let r={translations:e};return _(Zk.Provider,{value:r,children:t})},Fd=null,zG={zh:"zh","zh-CN":"zh","zh-TW":"zh-Hant","zh-Hans":"zh",zh_Hans:"zh","zh-Hant":"zh-Hant",zh_Hant:"zh-Hant",id:"id",in:"id",ms:"ms",my:"ms",th:"th",vi:"vi",fil:"tl",tl:"tl",es:"es",ja:"ja",pt:"pt",pt_PT:"pt","pt-PT":"pt",ko:"ko",de:"de",fr:"fr",hi:"hi",ru:"ru",ar:"ar",tr:"tr"},tS=e=>{Fd=e},rS=()=>{var e;if(typeof Fd!="function")return console.warn("Language handler is not registered or is not a function. Defaulting to 'en'."),"en";try{let t=Fd();return(e=zG[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=Vk({key:"iframe-css",container:this.persistentIframe.contentDocument.head,prepend:!0}),this.removeGlobalTransformSync&&this.removeGlobalTransformSync(),this.removeGlobalTransformSync=YG(this.persistentIframe);let t=this.persistentIframe.contentDocument;t&&["--status-bar-height","--navigation-bar-height"].forEach(o=>{let a=document.documentElement.style.getPropertyValue(o);a&&t.body.style.setProperty(o,a)}),(i=this.iframeLoadResolver)==null||i.call(this),this.iframeLoadResolver=null},this.persistentIframe.onerror=()=>{console.error("[SingletonIframe] Iframe failed to load.")},this.persistentIframe.src="about:blank")}acquire(){return w(this,null,function*(){if(this.create(),yield this.iframeLoadPromise,!this.persistentIframe||!this.iframeEmotionCache)throw new Error("[SingletonIframe] Iframe or cache not available after load.");return this.referenceCount++,this.persistentIframe.style.display==="none"&&(nS(this.persistentIframe),this.persistentIframe.style.display="block"),{iframe:this.persistentIframe,emotionCache:this.iframeEmotionCache}})}release(){this.referenceCount--,this.referenceCount<=0&&(this.referenceCount=0,this.persistentIframe&&(this.persistentIframe.style.display="none"))}},eo=new rs(99999998,"auto"),vk=new rs(99999999,"none"),QG=({title:e,content:t,noHeader:r,height:n,padding:i="16px",footerButtons:o,onClose:a})=>{let s=po(),l={container:D`
|
|
71
71
|
display: flex;
|
|
72
72
|
flex-direction: column;
|
|
73
73
|
height: 100%;
|
|
@@ -100,11 +100,11 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
100
100
|
border-radius: 4px;
|
|
101
101
|
border: 1px solid #ddd;
|
|
102
102
|
cursor: pointer;
|
|
103
|
-
`};return
|
|
103
|
+
`};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`
|
|
104
104
|
${l.button}
|
|
105
105
|
background-color: ${c.variant==="primary"?"#1677ff":"#fff"};
|
|
106
106
|
color: ${c.variant==="primary"?"#fff":"#333"};
|
|
107
|
-
`.name,onClick:u=>{var
|
|
107
|
+
`.name,onClick:u=>{var p;return(p=c.onClick)==null?void 0:p.call(c,u,{hide:a})},children:c.text},d))})]})},ps=e=>{let t=!1,r=rS(),n=Xk[r].translations,i=`drawer-container-${Math.random().toString(36).slice(2,10)}`,o=null,a=null,s=null;function l(p){var f,m;if(!o||!a){console.error("[Modal] Iframe or emotion cache not ready for rendering Drawer.");return}s=o.contentDocument.getElementById(i),s||(s=o.contentDocument.createElement("div"),s.id=i,o.contentDocument.body.appendChild(s)),mr(_(Yk,{value:a,children:_(eS,{definition:n,children:_(L2,{ref:g=>{},placement:(f=e.placement)!=null?f:"bottom",isOpen:p,onClose:c,preventCloseOnBackdropClick:(m=e.preventCloseOnBackdropClick)!=null?m:!1,backdropColor:e.backdropColor,children:_(QG,F(T({},e),{onClose:u}))})})}),s)}function c(){var p,f;if(t){if(t=!1,o==null?void 0:o.contentDocument){let m=o.contentDocument.getElementById(i);m&&((p=m.parentNode)==null||p.removeChild(m))}eo.release(),(f=e.onClose)==null||f.call(e)}}function d(){return w(this,null,function*(){let p=yield eo.acquire();o=p.iframe,a=p.emotionCache,t=!0,l(!0),setTimeout(()=>{var f;(f=e.onOpen)==null||f.call(e)},50)})}function u(){t&&l(!1)}return{show:()=>{t||d()},hide:()=>{t&&u()},isOpen:()=>t,destroy:()=>{t&&u(),o=null,a=null,s=null,console.log("[Modal] Instance destroyed.")}}},XG=(e,t={threshold:.6})=>{let r=Zi(null),n=Zi(!1),i=bt(o=>{let[a]=o;a.isIntersecting&&!n.current?(n.current=!0,e()):a.isIntersecting||(n.current=!1)},[e]);return Yr(()=>{if(r.current){let o=new IntersectionObserver(i,t);return o.observe(r.current),()=>{r.current&&o.unobserve(r.current)}}},[i,t]),r};iS=o=>{var a=o,{children:e,fluid:t=!1,className:r="",style:n={}}=a,i=je(a,["children","fluid","className","style"]);let s=T({width:"100%",marginLeft:"auto",marginRight:"auto",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box",maxWidth:t?"100%":void 0},n);return _("div",F(T({className:r,style:s},i),{children:e}))},oS=s=>{var l=s,{children:e,gutter:t=0,justify:r="start",align:n="top",className:i="",style:o={}}=l,a=je(l,["children","gutter","justify","align","className","style"]);let c={start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"},d={top:"flex-start",middle:"center",bottom:"flex-end"},u=T({display:"flex",flexWrap:"wrap",boxSizing:"border-box",justifyContent:c[r],alignItems:d[n]},o);if(t){let f=Array.isArray(t)?t[0]:t,m=Array.isArray(t)?t[1]:0;f>0&&(u.marginLeft=`-${f/2}px`,u.marginRight=`-${f/2}px`),m>0&&(u.marginTop=`-${m/2}px`,u.marginBottom=`-${m/2}px`)}let p=t?eB(e,t):e;return _("div",F(T({className:i,style:u},a),{children:p}))};aS=u=>{var p=u,{children:e,span:t,offset:r,xs:n,sm:i,md:o,lg:a,xl:s,className:l="",style:c={}}=p,d=je(p,["children","span","offset","xs","sm","md","lg","xl","className","style"]);let f=T({position:"relative",width:"100%",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box"},c);if(t!==void 0){let m=t/24*100;f.flex=`0 0 ${m}%`,f.maxWidth=`${m}%`}return r!==void 0&&(f.marginLeft=`${r/24*100}%`),_("div",F(T({className:l,style:f},d),{children:e}))},tB=({game:e,layerName:t,orientation:r,routeMode:n,onGameClick:i})=>{var s,l;let o=bn(c=>{c.preventDefault(),i==null||i(e)},[i,e]),a=bn(()=>{},[e,t]);return _(aS,{span:r==="landscape"?4:8,className:"relative px-[4px] box-border mb-[8px]",style:{marginBottom:r==="landscape"?"8px":"16px",paddingLeft:"8px",paddingRight:"8px"},onClick:o,role:"button",tabIndex:0,children:[_("div",{className:"relative w-full mb-[2px] ion-no-margin",children:_(ZG,{src:(l=(s=e.logo)!=null?s:e.cover)!=null?l:"",className:"w-full h-full absolute top-0 left-0 aspect-square rounded-[8px] object-cover",style:{display:"block",objectFit:"cover"},handleExposure:a})}),_("div",{className:"block text-white max-w-full text-[15px] leading-[1.2] overflow-hidden whitespace-nowrap text-ellipsis font-normal break-words",style:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordBreak:"break-word",color:"white",maxWidth:"100%",fontSize:r==="landscape"?"13px":"15px",lineHeight:1.2,fontWeight:"normal",marginTop:"6px",fontFamily:"PingFangSC-Regular"},children:e.name})]},e.gameId)},rB=a=>{var s=a,{list:e,routeMode:t,layerName:r,onGameClick:n,orientation:i}=s,o=je(s,["list","routeMode","layerName","onGameClick","orientation"]);return _(iS,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{maxWidth:i==="landscape"?"100%":"440px",minHeight:"1px"},children:_(oS,{gutter:8,style:{display:"flex",flexWrap:i==="landscape"?"nowrap":"wrap",overflowX:i==="landscape"?"auto":"visible",paddingBottom:i==="landscape"?"10px":"0",justifyContent:i==="landscape"?"flex-start":"center"},children:e==null?void 0:e.map(l=>_(tB,{orientation:i,game:l,routeMode:t,layerName:r,onGameClick:n},l.gameId))})})},nB=gu(rB),jd=(e=>(e.Dismiss="DISMISS",e.Quit="QUIT",e))(jd||{}),iB=e=>{let{games:t,title:r,buttons:n,onClose:i}=e,[o,a]=Jt(null),s=bt(u=>{i==null||i({type:u.type===jd.Quit?"quit":"dismiss"})},[i]),l=bt(u=>{i==null||i({type:"navigate",data:{game:u}})},[i]),c=po();if(!t.length)return _(De,{});let d=bt(u=>{if(u!==null&&!u.shadowRoot){let p=u.attachShadow({mode:"open"}),f=document.createElement("style");f.textContent=`
|
|
108
108
|
.recommend-panel {
|
|
109
109
|
display: flex;
|
|
110
110
|
flex-direction: column;
|
|
@@ -226,7 +226,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
226
226
|
background-color: #7817FF;
|
|
227
227
|
color: #fff;
|
|
228
228
|
}
|
|
229
|
-
`;let m=document.createElement("div");m.id="recommend-panel-content",
|
|
229
|
+
`;let m=document.createElement("div");m.id="recommend-panel-content",p.appendChild(f),p.appendChild(m),a(p)}},[]);return Yr(()=>{if(o){let u=o.getElementById("recommend-panel-content");u&&mr(_("div",{className:"recommend-panel",children:_("div",{className:"container",children:[_("p",{className:"title",children:r}),_("div",{className:"games-container",children:_(nB,{list:t||[],routeMode:"REDIRECT",layerName:"RecommendedGuide",onGameClick:l,orientation:c})}),_("div",{className:"buttons-container",children:(n!=null?n:[]).map((p,f)=>_("div",{className:"button-wrapper",children:_("button",{className:`button ${p.type===jd.Quit?"quit-button":"action-button"}`,onClick:()=>s(p),children:_("span",{className:"button-text-ellipsis",children:p.text})})},f))})]})}),u)}},[o,t,r,n,s,l]),_("div",{ref:d})},sS=e=>{let t=ps({title:e.title,content:_(iB,{games:e.games,title:e.title,buttons:e.buttons,onClose:e.onClose}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"450px",onClose:()=>{var r;(r=e.onClose)==null||r.call(e,{type:"back"})},onOpen:e.onOpen});return t.show(),t},lS="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAMAAABg3Am1AAAC+lBMVEUAAABQTlBrQeL6+vufkPrEp/RcV2Pv6e23t7ehnqZVSIOZmaDy6vWRfPWDdvq6neHc29e5trzh4+DHyM2BUeHMteDIp+G2pd50SZV/aqmQkI1jWGyeYLz4+vTMh96RS8Lh2+XIwuGek6NEJn9RSF9QO8fBr+Xl1e2gh7e8e8FvUN1jO8dtbdDIzrr4zPzzxfv2yfrotPyzg/usgPrtufzBjfzyw/vjrvv80vy2hvv7z/zUnvvMl/zyv/vGkfuwgfn+9f7z1/7ep/z53Prtu/fvvf29keD///3u0vzkqfz91vv56vnorf27ifnbu/L54/3ttP3+7/zvt/q8jO+1gOzny/66gv757/zZovyjfvvy5Pr61vqjc/XlvfB0Ru+YZu68f+3+4P/+5/7bnvy6ePvgovr20fnQmvfq0/bImvafaPWDW/XNr/N7ZPPjxPHSj/DLl+7Lnu13WN9WMqHJqf/96/74x/3UtPutefjxy/Ttw/TZqe+re+/Ike2PYeStfd2NWsSVb77Ghv3+2vy8jfvcxfrntPTGhvKkbe7Qo+zSsuqdZdushdq4idl1S7zSmv3ssPvz2Pbu1fGvivCLYu2gdOuWcuqVY9KAVsXyuP7v3v3syP3bvf3Xkv2+oPy7mvzto/vnlvjgsfS7nvPEf/KSU/LbxO9xVu/Vne69l+6FWuyObuvbs+h9TOegfuacWuaoi+XPoeGic9+rct9qP7WrbfzYm/vPi/uTZ/rQiPS4f/TPwPPkpvOrlfOwc++8du2ugemIUunHpei1duGnbuGTa+DGm9+0jNGpcc9UKc20fctXI7rkvv+8sfrlw/nRpvjal/Xv3/TAzvTam/GAkfCsdejdvuSVedyYctxtNtP++f733f7ViP3Ld/rf0PT2vfPhgfNnafLjzezHuunFf+OPRN55P9WkZdKQRdBfMrFBIaxaQ/OExvLq1+pXJ+WBNuCkSdjBmtWGadKkf8mFM8eJT7dpRacnC5bA/Ph9rvOI5vFWXuzCUOJNLJZJYFROAAAALnRSTlMADP78/v4r63ZXPzH+/v37wKB6SP7x4MyhcW5K8evq4NjYi2YZ/e3a1c7IyMWtdH+scgAABvdJREFUSMeFlmVQG1EURrdQqLu7exsChYQSQkOcJI2QEBqXQoQEIi2uxb24lkJx97q7u7u7u890N6nreftr5zv3vju7O2+B3+gyakD/bvxjj64PmT58VBfgP3TpPsYzkM1m19Wxs9nqYsHBoSP/Ge+PSTLwSb1v9EtN7Zec6U8Pm09WL5/z1/xATLiKFHrrSYs0wSVB2nL7wIFIJ6EEt4vf/c/lLWtVmJVXqAK8dPtuQ1Ly9euZsM0HCmzFpfTcbn/ID8IYSBuvYixV6sv8Yltbe1uaqjyUnrnmQCRXzLIgWf+2HVJv/6uKEJHovGjRiVBlXZBWlVSbzFLSd0vvIcV8C0yPX/Ok4JUB8SEiZi06JvTOnY69dzrCCbZ6IouThT1wWFzUZPmTMciSdKXsikhVXq5g7N/byPCXy2WK3VFROlu2NqV9/blijec5S+sf5vXvjVfg/DxFCNb+PZ4yioDi6OjkBHeUpb2iSbbnlyeeO9iHP5j0XbBMzrqqC/XM0p0eTZXFUASOFDAPg8HgNrKo8LX0fAM7P/ZQ9pDx3wbgkD7q9aKsyrb9GEFMDAWs/0WA2yiIO7Z37GGHR+Z47jv9dQzG5bswfZtyS9szOSVGYIo7QnlIsIGnbaanNqbsDm4q2lVkzveXHGshrslKrN0vp1Di4d/LwyHBBra05HQVXr/0iMfgtBEmgVV9uzDhkZj1ikVxjGlLgzuBeZAAcx6BkN1zZ9M5WcGb+bf8oXz3MNITZXiFR1QmzMkxhojZsxEPER8AxiHBBu0XKfIjIHcHYhKfjgKFMbkV0dXhaxv3xoBlHYkXLvA9QajUPe4IBBoBCjaCKEpI/LoQRjH95lDwGTC0WV6q6tz9wQFwGMyJ6Eomu5qQ72GiCQQ0GoFANPopqMEyXPz5mysBoOcRVXlCEZG8lwK3gQdAgt9SMy9eF+LtCXjQgIkEOBZOEEJyv2QNTJxfvOWw0E9/GgFtOCDNldGJcIdgunOe0fD2eAK4r0x/HEkgyzwf/HIE0D9IWbl3XtKJYAIaJCCNTM5H20MwCTv8X9Bsmfb2aESIXI7DyaksasZwoFsYZ11kc4LOxp4AYhLsbSEymDtcGQUEk4GXKXACfyoDc3ccQA3amcLJq0xA2EJl0ake5Cgmkoak0WgZHWTX9EJkhi04CAWOg+HkDOrGsQA1LD+6pXq9FGEqW5jq4RGFRLpB0DrI5HQmEgl+fu4wPBwdjMNhno4D+ML8yCP16yMJSAhmZNzhKDesN4TbTg+PdCbWDYnMiHfPCNkoV7hST4wFVMKUFOez7Zx4LAQtdfnyKOzqRRDeO+M80mkLsVgkbWPZ0RA4DO/K2DEaGCLkFLho2x3aUAtBsOn0wIKFKNTq1ajVi1KWH0x3A++5uYWWXXI6WhjqGqybAQzjOS92CCOq05xREG734gpWLwNRLgOF5elYFFgIeaJElbHOW49DvhwOTJwb+wkZpt+VinU2ge2MNCTR/UShSbXEJYGdi5SggfLeUuu27igHl3JrEmAdyHutJS6IUKc6uJhAdWpXrChdAVJaqk13dlYuQ4WX6BKi3byFh+9WWQNdPPtUFOQ1520djHIws2yx1RIzVoudXcCmKF2JtGSzTlnK2fYYAIBufQPf5GTbSYTt8xaYce5cbKbTBerqfPNipWGNdJ3Eo2nfLFDoEbipQNxw9kb9NoPdPDOxYB8X8IqNdQAN/RqpYUfiIm/NkX3ingAIxtfjftOmy62ac+r5dtCCMLlQSwdlZTQ7Ub9emhjYlCMGIAYs2fQ8wmhsPbP2tjpo/lzTMluQod7C3Ry2fadXWQ1ds28SlDe32PSgtVWcZ1HHm2sCVOZDAjd8CzdoK9GHuyYnruq+BjDTnewb+GatRWuzOLfqbCzviwEp6g6vIGFebAR3lY5n0DiAE5jpVlrRb19NRHPzmXq7qna2Hc8kxYaf8omOSM6ZF8H1Wel7TDJlJvANTJ8N2y3EDbuyjcJdQT4tuae2bj21s2UVVxIhWRuUA+Wp21oPAt/pxeirra7X1D8/Y+QJIxK9QLhS9bZtYbk5Pj52YJ5v2ICZ/NMBUdQnm9Eu1GgPWRjPWlXkNTRESDintmo0ErugVTpfPifJv9cvR5zrpgbXZGJ0VXIcr8loNJ4hEuPq6n24c1ddzPUtWm+F+TkP7eqCla+2OLntaKUUfFn9fCRhiV7RXqsuJtR09cs28v70SzAttOtJeoCosTHenUkrLCuJ9rpUxq65Ftds0XUY8Ed6OIYcf3g8DsfqfSxToYCX1zU86Luh4rGxb0/gb3SXUS3fvn/47uTJk9c+XOt66EbXGt+uI4B/0Ws8icWqPn58wwar7Lwa3qHZPYH/Yj1ywLCh/aZOmDBg5GTgNz4D2CYAK8x+JcUAAAAASUVORK5CYII=",fs="https://fe-oss.jolibox.com/static/coin/jolicoin.png",np="https://fe-oss.jolibox.com/static/coin/gem.png";Nn=()=>{let e=AJ(Zk);if(!e)throw new Error("useTranslations must be used within a LightIntlProvider");let{translations:t}=e;return{t:(r,n)=>{let i=oB(t,r);if(typeof i=="string"){let o=i;if(n)for(let a in n)o=o.replace(new RegExp(`{{${a}}}`,"g"),String(n[a]));return o}return console.warn(`Translation key "${r}" not found or not a string.`),`[${r}]`},translations:t}},gk=({text:e,initialFontSize:t,styles:r})=>_("span",{style:r,children:_("span",{style:{fontSize:`${t}px`,display:"-webkit-box",textAlign:"left",WebkitBoxOrient:"vertical",WebkitLineClamp:2,width:"auto",whiteSpace:"normal",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},children:e})}),kr={coinInfo:D`
|
|
230
230
|
display: flex;
|
|
231
231
|
width: calc(100% - 40px);
|
|
232
232
|
max-width: 720px;
|
|
@@ -264,6 +264,9 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
264
264
|
`,coinIcon:D`
|
|
265
265
|
width: 16px;
|
|
266
266
|
height: 16px;
|
|
267
|
+
`,gemIcon:D`
|
|
268
|
+
width: 25px;
|
|
269
|
+
height: 25px;
|
|
267
270
|
`,autoExpandLabel:D`
|
|
268
271
|
font-weight: 700;
|
|
269
272
|
text-align: center;
|
|
@@ -283,7 +286,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
283
286
|
font-size: 16px;
|
|
284
287
|
font-weight: 600;
|
|
285
288
|
color: #d9d9d9;
|
|
286
|
-
`},
|
|
289
|
+
`},cS=({unlockNeedsAmount:e=0,balanceAmount:t=0,coinImage:r=fs,formatter:n=s=>s>999?"999+":`${s}`,hideNeeds:i=!1,hideBalance:o=!1,currency:a="JOLI_COIN"})=>{let s=n(t),{t:l}=Nn(),c=14,d=tr(()=>a==="JOLI_GEM"?"joligem.balance":"jolicoin.balance",[a]);return _("div",{style:kr.coinInfo.styles,children:[!i&&_("div",{style:kr.coinAmount.styles,children:[_(gk,{text:l("jolicoin.price"),initialFontSize:c,styles:kr.coinLabelContainer.styles}),_("div",{style:kr.coinValue.styles,children:[_("img",{src:r,alt:"Jolicoin",style:a==="JOLI_GEM"?kr.gemIcon.styles:kr.coinIcon.styles}),_("span",{children:e})]})]}),!o&&_("div",{style:kr.coinAmountBalance.styles,children:_(gk,{text:l(d)+":\xA0"+s,initialFontSize:c,styles:kr.coinValueText.styles})})]})},Kr={card:D`
|
|
287
290
|
display: flex;
|
|
288
291
|
flex-direction: column;
|
|
289
292
|
align-items: center;
|
|
@@ -307,6 +310,10 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
307
310
|
width: 21px;
|
|
308
311
|
height: 21px;
|
|
309
312
|
margin-right: 4px;
|
|
313
|
+
`,gemIcon:D`
|
|
314
|
+
width: 25px;
|
|
315
|
+
height: 25px;
|
|
316
|
+
margin-right: 4px;
|
|
310
317
|
`,coinValue:D`
|
|
311
318
|
font-size: 20px;
|
|
312
319
|
font-weight: bold;
|
|
@@ -315,17 +322,17 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
315
322
|
font-size: 16px;
|
|
316
323
|
color: #C093FF;
|
|
317
324
|
font-weight: bold;
|
|
318
|
-
`},
|
|
325
|
+
`},aB=D`
|
|
319
326
|
box-sizing: border-box;
|
|
320
327
|
width: 100%;
|
|
321
328
|
aspect-ratio: 1/1;
|
|
322
|
-
`,
|
|
329
|
+
`,sB=D`
|
|
323
330
|
aspect-ratio: 1/1; // 强制 1:1 的宽高比
|
|
324
331
|
display: flex;
|
|
325
332
|
flex-direction: column;
|
|
326
333
|
justify-content: center;
|
|
327
334
|
-webkit-tap-highlight-color: transparent;
|
|
328
|
-
`,
|
|
335
|
+
`,lB=e=>_("div",{style:aB.styles,children:_("div",{style:sB.styles,children:_("div",{style:`${Kr.card.styles} ${e.option.id===e.selectedId?Kr.selectedCard.styles:""}`,onClick:()=>e.handleSelect(e.option),children:[_("div",{style:Kr.coinContainer.styles,children:[_("img",{src:e.coinImageSrc,alt:"Coin",style:e.currency==="JOLI_GEM"?Kr.gemIcon.styles:Kr.coinIcon.styles}),_("span",{style:Kr.coinValue.styles,children:e.option.coins.toLocaleString()})]}),_("div",{style:Kr.price.styles,children:e.option.price})]})})}),cB=({options:e,selectedId:t,onSelect:r,currency:n,coinImageSrc:i=fs})=>{let o=po(),a=s=>{r==null||r(s)};return _(iS,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{padding:"0px"},children:_(oS,{gutter:[10,10],style:{display:"flex","flex-wrap":"wrap"},children:e.map(s=>_(aS,{span:o==="landscape"?4:8,children:_(lB,{currency:n,option:s,selectedId:t,coinImageSrc:i,handleSelect:a})},s.id))})})},uB=gu(cB);Ba={toggleSwitch:D`
|
|
329
336
|
position: relative;
|
|
330
337
|
display: inline-block;
|
|
331
338
|
width: 33px;
|
|
@@ -362,7 +369,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
362
369
|
&:before {
|
|
363
370
|
transform: translateX(18px);
|
|
364
371
|
}
|
|
365
|
-
`},
|
|
372
|
+
`},uS=({enableAutoDeduct:e,toggleEnableAutoDeduct:t})=>dB("label",{css:Ba.toggleSwitch,children:[yk("input",{css:Ba.toggleInput,type:"checkbox",checked:e,onChange:t}),yk("span",{css:[Ba.toggleSlider,e&&Ba.toggleSliderActive]})]}),ip=()=>_("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[_("g",{"clip-path":"url(#clip0_2716_2719)",children:_("path",{d:"M18.3 6.20997C17.91 5.81997 17.28 5.81997 16.89 6.20997L12 11.09L7.10997 6.19997C6.71997 5.80997 6.08997 5.80997 5.69997 6.19997C5.30997 6.58997 5.30997 7.21997 5.69997 7.60997L10.59 12.5L5.69997 17.39C5.30997 17.78 5.30997 18.41 5.69997 18.8C6.08997 19.19 6.71997 19.19 7.10997 18.8L12 13.91L16.89 18.8C17.28 19.19 17.91 19.19 18.3 18.8C18.69 18.41 18.69 17.78 18.3 17.39L13.41 12.5L18.3 7.60997C18.68 7.22997 18.68 6.58997 18.3 6.20997Z",fill:"#979797"})}),_("defs",{children:_("clipPath",{id:"clip0_2716_2719",children:_("rect",{width:"24",height:"24",fill:"white",transform:"translate(0 0.5)"})})})]}),he={modal:D`
|
|
366
373
|
font-family: PingFangSC-Regular;
|
|
367
374
|
background-color: #1a1a1a;
|
|
368
375
|
color: white;
|
|
@@ -450,19 +457,19 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
450
457
|
border-radius: 2px;
|
|
451
458
|
margin: 0 auto;
|
|
452
459
|
-webkit-tap-highlight-color: transparent;
|
|
453
|
-
`},
|
|
460
|
+
`},pB=({unlockNeedsAmount:e=10,balanceAmount:t=999,defaultEnableAutoDeduct:r=!1,currency:n="JOLI_COIN",onConfirm:i,onClose:o,onEnableDeductChanged:a,confirmButtonKey:s,cancelButtonKey:l})=>{let[c,d]=Jt(r),u=po(),{t:p}=Nn(),f=()=>{i(c)},m=tr(()=>n==="JOLI_GEM"?np:fs,[n]),g=tr(()=>n==="JOLI_GEM"?"joligem.unlockWithJolicoin":"jolicoin.unlockWithJolicoin",[n]),y=tr(()=>n==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[n]),v=bt(()=>{d(!c),a(!c)},[c]);return _("div",{style:`${he.modal.styles} ${u==="portrait"?"max-width: 440px":"max-width: 75%"}`,children:[_("div",{style:he.header.styles,children:[_(cS,{unlockNeedsAmount:e,balanceAmount:t,coinImage:m,currency:n}),_("button",{style:he.closeButton.styles,onClick:o.bind(null,{type:"CANCEL"}),children:_(ip,{})})]}),_("div",{style:he.content.styles,children:[_("h2",{style:he.title.styles,children:p(g)}),!r&&_("div",{style:he.autoDeductOption.styles,children:[_("span",{style:D`
|
|
454
461
|
font-size: 12px;
|
|
455
462
|
font-weight: 400;
|
|
456
463
|
line-height: 1.2;
|
|
457
464
|
color: #979797;
|
|
458
|
-
`.styles,children:
|
|
465
|
+
`.styles,children:p(y)}),_(uS,{enableAutoDeduct:c,toggleEnableAutoDeduct:v})]}),_("section",{style:`${he.buttonContainer.styles} ${u==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[_("button",{style:`${he.confirmButton.styles} ${he.buttonFlex.styles}`,onClick:f,children:p(s)}),_("button",{style:`${he.cancelButton.styles} ${he.buttonFlex.styles}`,onClick:o.bind(null,{type:"FAILED"}),children:p(l)})]})]})]})},fB=({unlockNeedsAmount:e=1,balanceAmount:t=0,defaultEnableAutoDeduct:r=!1,paymentChoices:n=[],currency:i="JOLI_COIN",onConfirm:o,onClose:a,onEnableDeductChanged:s,onSelect:l,confirmButtonKey:c,cancelButtonKey:d})=>{let[u,p]=Jt(r),{t:f}=Nn(),[m,g]=Jt(()=>{var C,S;return((C=n.find(O=>O.defaultSelected))==null?void 0:C.productId)||((S=n==null?void 0:n[0])==null?void 0:S.productId)}),y=po(),v=()=>{o(m)},b=bt(C=>{console.log(C),g(C),l(C)},[]),k=bt(()=>{p(!u),s(!u)},[u]),x=tr(()=>i==="JOLI_GEM"?np:fs,[i]),P=tr(()=>i==="JOLI_GEM"?"joligem.unlockWithJolicoinDescription":"jolicoin.unlockWithJolicoinDescription",[i]);return console.log("defaultEnableAutoDeduct",r),_("div",{style:he.modal.styles,children:[_("div",{style:he.header.styles,children:[_(cS,{unlockNeedsAmount:e,balanceAmount:t,coinImage:x,currency:i}),_("button",{style:he.closeButton.styles,onClick:a.bind(null,{type:"CANCEL"}),children:_(ip,{})})]}),_("div",{style:he.content.styles,children:[_("div",{style:D`
|
|
459
466
|
padding: 16px 0px;
|
|
460
|
-
`.styles,children:
|
|
467
|
+
`.styles,children:_(uB,{options:n.map(C=>({id:C.productId,coins:C.quantity,price:C.totalAmountStr})),coinImageSrc:x,selectedId:m,currency:i,onSelect:C=>b(C.id)})}),!r&&_("div",{style:he.autoDeductOption.styles,children:[_("span",{style:D`
|
|
461
468
|
font-size: 12px;
|
|
462
469
|
font-weight: 400;
|
|
463
470
|
line-height: 1.2;
|
|
464
471
|
color: #979797;
|
|
465
|
-
`.styles,children:f(
|
|
472
|
+
`.styles,children:f(P)}),_(uS,{enableAutoDeduct:u,toggleEnableAutoDeduct:k})]}),_("section",{style:`${he.buttonContainer.styles} ${y==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[_("button",{style:`${he.confirmButton.styles} ${he.buttonFlex.styles}`,onClick:v,children:f(c)}),_("button",{style:`${he.cancelButton.styles} ${he.buttonFlex.styles}`,onClick:a.bind(null,{type:"FAILED"}),children:f(d)})]})]})]})};mB=D`
|
|
466
473
|
display: inline-flex;
|
|
467
474
|
align-items: center;
|
|
468
475
|
justify-content: center;
|
|
@@ -479,14 +486,14 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
479
486
|
white-space: nowrap;
|
|
480
487
|
text-overflow: ellipsis;
|
|
481
488
|
border: 1px solid rgba(255, 255, 255, 0.52);
|
|
482
|
-
`,
|
|
489
|
+
`,vB=D`
|
|
483
490
|
position: absolute;
|
|
484
491
|
left: 20%;
|
|
485
492
|
bottom: -9px;
|
|
486
493
|
transform: translateX(-50%);
|
|
487
494
|
z-index: 2;
|
|
488
495
|
pointer-events: none;
|
|
489
|
-
`;
|
|
496
|
+
`;At=F(T({},he),{header:D`
|
|
490
497
|
display: flex;
|
|
491
498
|
justify-content: flex-end;
|
|
492
499
|
align-items: center;
|
|
@@ -540,7 +547,7 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
540
547
|
border-top: 8px solid #4f396d;
|
|
541
548
|
z-index: 2;
|
|
542
549
|
}
|
|
543
|
-
`}),DJ={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()},LJ=({rewardType:e,rewardValue:t,confirmButtonKey:r,cancelButtonKey:n,onClose:i,onConfirm:o})=>{let a=e==="ADS-JOLI_COIN",{t:s}=En(),l=DJ[e];return y("div",{style:{paddingTop:"80px"},children:y("section",{style:`${kt.modal.styles} width:calc(100% - 40px); position: relative; border-radius: 16px; padding: 0;`,children:[y(PJ,{src:l,alt:"\u{1FA99}",width:213,height:125,top:"-80px"}),y("div",{style:kt.header.styles,children:y("button",{style:`${kt.closeButton.styles} padding-top: 10px; padding-right: 10px;`,onClick:i.bind(null,{type:"CANCEL"}),children:y(Qd,{})})}),y("div",{style:kt.introduct.styles,children:[a?y("span",{style:kt.introductSubTitle.styles,children:s("loginGuide.instead")}):null,y("span",{style:kt.introductTitle.styles,children:y(Nd,{children:s("loginGuide.introduct"),values:{coin:y("img",{src:Ka,alt:"\u{1FA99}",style:{height:"20px",verticalAlign:"text-top",marginRight:"2px"}})}})})]}),y("div",{style:{width:"calc(100% - 40px)",paddingBottom:"16px"},children:y("section",{style:`${kt.buttonContainer.styles} flex-direction: column; margin-top: 48px; padding: 0 20px;`,children:[y("div",{style:{position:"relative",display:"inline-block",width:"100%",height:"100%"},children:[y("div",{style:{position:"absolute",top:"-32px",right:"-5px",width:"auto",zIndex:1},children:y(NJ,{children:y(Nd,{style:{fontSize:"12px",color:"#FFFFFF",fontWeight:600,lineHeight:"16px",textAlign:"center"},children:s("loginGuide.tips"),values:{coin:y(De,{children:[y("img",{src:Ka,alt:"\u{1FA99}",style:{height:"16px",verticalAlign:"text-top",marginRight:"2px"}}),t]})}})})}),y("button",{style:`${kt.confirmButton.styles} ${kt.buttonFlex.styles} padding: 0; line-height: 24px; display: flex; align-items: center; justify-content: center; overflow: hidden;`,onClick:o,children:y("span",{style:"display: flex; align-items: center; justify-content: center; width: 100%; word-break: break-word; height: 48px;",children:s(r)})})]}),y("button",{style:`${kt.cancelButton.styles} ${kt.buttonFlex.styles} line-height: 24px;`,onClick:i.bind(null,{type:"FAILED"}),children:s(n)})]})})]})})},nx=e=>{let t=os({title:"",content:y(TJ,{balanceAmount:e.data.userJolicoin.balance,unlockNeedsAmount:e.data.joliCoinQuantity,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},ix=e=>{let t=os({title:"",content:y(CJ,{balanceAmount:e.data.userJolicoin.balance,unlockNeedsAmount:e.data.joliCoinQuantity,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},ox=e=>{let t=os({title:"",content:y(LJ,{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},ax=new Map,xn=(e,t)=>{ax.set(e,t)};xn(/^\{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 y("div",{style:r,children:y("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",style:{height:"24px",verticalAlign:"middle"},children:[y("g",{clipPath:"url(#clip0_2247_16523)",children:y("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"})}),y("defs",{children:y("clipPath",{id:"clip0_2247_16523",children:y("rect",{width:"24",height:"24",fill:"white"})})})]})})});xn(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:Ka;return y("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});qJ=/^\{slot-i18n-(.+?)\}/,FJ=({i18nKey:e,i18nParams:t,fallbackText:r})=>{let{t:n}=En(),i=n(e,t);return y("span",{children:i||r})};xn(qJ,(e,t)=>{var n;let r=e[1];return r?y(FJ,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,fallbackText:`[${r}]`}):(console.warn("No i18n key extracted from slot pattern:",e[0]),y("span",{children:(n=t==null?void 0:t.text)!=null?n:""}))});MJ=/^\{slot-i18ntran-(.+?)\}/,UJ=({i18nKey:e,i18nParams:t,imgMap:r={},fallbackText:n})=>{let{t:i}=En(),o=i(e),a=Object.entries(r).reduce((s,[l,c])=>(s[l]=c(t[l]),s),{});return y(Nd,{children:o||n,values:T(T({},t),a)})},jJ={coin:e=>y(De,{children:[y("img",{src:Ka,alt:"coin",style:{width:16,height:16,marginRight:2,textAlign:"center"}})," ",e," Jolicoin"]})};xn(MJ,(e,t)=>{var n,i;let r=e[1];return r?y(UJ,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,imgMap:(n=t==null?void 0:t.imgMap)!=null?n:jJ,fallbackText:`[${r}]`}):y("span",{children:(i=t==null?void 0:t.text)!=null?i:""})});BJ="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8yMjk0XzQwODkpIi8+CjxwYXRoIGQ9Ik0xNC4yOTUgMjUuOTIyN0MxNC4yOTUgMjUuOTIyNyAxNy45MTI1IDIxLjY0MzYgMjEuNzc1OSAxOC4wOTg0QzI0Ljc1NzQgMTUuMzYyMSAyOC4yMTUxIDEzLjE0NzQgMjguMjE1MSAxMy4xNDc0TDI3Ljk2OTUgMTEuNDEzOEMyNy45Njk1IDExLjQxMzggMjQuMDk4NyAxMi45NzYzIDIwLjc1NzUgMTUuMTk0N0MxNy4zNjUzIDE3LjQ0NTQgMTQuNTAzMyAyMC4zNTc3IDE0LjUwMzMgMjAuMzU3N0wxMS4xMzkgMTUuNjQyOEw5LjAzOTk2IDE3LjA1MjJMMTQuMjk1IDI1LjkyMjdMMTQuMjk1IDI1LjkyMjdaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzIyOTRfNDA4OSIgeDE9IjExLjczNDEiIHkxPSIzLjE3NTQxIiB4Mj0iMTgiIHkyPSIzNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjOTc1QkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzc4MTdGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=";xn(/^\{slot-success\}/,(e,t)=>y("img",{src:BJ,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));JJ="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4xNDIxIDIwQzE1LjY2NSAyMCAyMC4xNDIxIDE1LjUyMjggMjAuMTQyMSAxMEMyMC4xNDIxIDQuNDc3MTUgMTUuNjY1IDEuNzM2OThlLTA3IDEwLjE0MjEgMS43MzY5OGUtMDdDNC42MTkyOSAxLjczNjk4ZS0wNyAwLjE0MjEzNiA0LjQ3NzE1IDAuMTQyMTM1IDEwQzAuMTQyMTM2IDE1LjUyMjggNC42MTkyOSAyMCAxMC4xNDIxIDIwWk02LjUwNTk4IDUuMDQ5OTdDNi4xMTU0NiA0LjY1OTQ1IDUuNDgyMjkgNC42NTk0NSA1LjA5MTc3IDUuMDQ5OTdDNC43MDEyNCA1LjQ0MDUgNC43MDEyNCA2LjA3MzY2IDUuMDkxNzcgNi40NjQxOUw4LjYyNzMgOS45OTk3Mkw1LjA5MTc3IDEzLjUzNTNDNC43MDEyNCAxMy45MjU4IDQuNzAxMjQgMTQuNTU4OSA1LjA5MTc3IDE0Ljk0OTVDNS40ODIyOSAxNS4zNCA2LjExNTQ2IDE1LjM0IDYuNTA1OTggMTQuOTQ5NUwxMC4wNDE1IDExLjQxMzlMMTMuNTc3IDE0Ljk0OTVDMTMuOTY3NiAxNS4zNCAxNC42MDA3IDE1LjM0IDE0Ljk5MTMgMTQuOTQ5NUMxNS4zODE4IDE0LjU1ODkgMTUuMzgxOCAxMy45MjU4IDE0Ljk5MTMgMTMuNTM1M0wxMS40NTU3IDkuOTk5NzJMMTQuOTkxMyA2LjQ2NDE5QzE1LjM4MTggNi4wNzM2NiAxNS4zODE4IDUuNDQwNSAxNC45OTEzIDUuMDQ5OTdDMTQuNjAwNyA0LjY1OTQ1IDEzLjk2NzYgNC42NTk0NSAxMy41NzcgNS4wNDk5N0wxMC4wNDE1IDguNTg1NTFMNi41MDU5OCA1LjA0OTk3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";xn(/^\{slot-error\}/,(e,t)=>y("img",{src:JJ,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));$e="-ms-",Qa="-moz-",V="-webkit-",sx="comm",Yd="rule",Xd="decl",HJ="@import",lx="@keyframes",$J="@layer",VJ=Math.abs,as=String.fromCharCode,GJ=Md.default;ss=1,In=1,ux=0,tt=0,Se=0,kn="";s5=function(e,t,r){for(var n=0,i=0;n=i,i=Bt(),n===38&&i===12&&(t[r]=1),!Xi(i);)dt();return ro(e,tt)},l5=function(e,t){var r=-1,n=44;do switch(Xi(n)){case 0:n===38&&Bt()===12&&(t[r]=1),e[r]+=s5(tt-1,t,r);break;case 2:e[r]+=Ha(n);break;case 4:if(n===44){e[++r]=Bt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=as(n)}while(n=dt());return e},c5=function(e,t){return fx(l5(dx(e),t))},hE=new Fd.default,u5=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&&!hE.get(r))&&!n){hE.set(e,!0);for(var i=[],o=c5(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]}}},d5=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};f5=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Xd:e.return=px(e.value,e.length);break;case lx:return _n([Bi(e,{value:G(e.value,"@","@"+V)})],n);case Yd:if(e.length)return KJ(e.props,function(i){switch(WJ(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return _n([Bi(e,{props:[G(i,/:(read-\w+)/,":"+Qa+"$1")]})],n);case"::placeholder":return _n([Bi(e,{props:[G(i,/:(plac\w+)/,":"+V+"input-$1")]}),Bi(e,{props:[G(i,/:(plac\w+)/,":"+Qa+"$1")]}),Bi(e,{props:[G(i,/:(plac\w+)/,$e+"input-$1")]})],n)}return""})}},p5=[f5],h5=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,Te.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,Xt.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||p5,i={},o,a=[];o=e.container||document.head,(0,Te.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),_=1;_<g.length;_++)i[g[_]]=!0;a.push(m)});var s,l=[u5,d5];{var c,d=[i5,a5(function(m){c.insert(m)})],u=o5((0,Ya.default)(l).call(l,n,d)),f=function(m){return _n(r5(m),u)};s=function(m,g,_,v){c=_,f(m?m+"{"+g.styles+"}":g.styles),v&&(p.inserted[g.name]=!0)}}var p={key:t,sheet:new PE({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 p.sheet.hydrate(a),p};m5=function(e){var t=h5(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=br(s,t.registered,void 0);return rs(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=br(s,t.registered),d="animation-"+c.name;return mE(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=br(s,t.registered);mE(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return Id(t.registered,r,v5(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,Sd.default)(Ki).call(Ki,null,t.registered),merge:(0,Sd.default)(Id).call(Id,null,t.registered,r)}},v5=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,$i.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},g5=m5({key:"css"}),y5=g5.css,_5=(e,t)=>{if(!e.includes("{slot-"))return e;let r=[],n=0;for(;n<e.length;){let o=null,a=1/0,s=null;for(let[l,c]of ax.entries()){let d=l.source.startsWith("^")?l.source.slice(1):l.source,u=new RegExp(d,"g");u.lastIndex=n;let f=u.exec(e);f&&f.index<a&&(o=f,a=f.index,s=c)}if(o&&s)a>n&&r.push(e.substring(n,a)),r.push(s(o,t)),n=a+o[0].length;else{r.push(e.substring(n));break}}let i=y5`
|
|
550
|
+
`}),yB={JOLI_COIN:"https://fe-oss.jolibox.com/static/rewards/jolicoin-light.png?timestamp="+Date.now(),"ADS-JOLI_COIN":"https://fe-oss.jolibox.com/static/rewards/ads-jolicoin-light.png?timestamp="+Date.now(),JOLI_GEM:"https://fe-oss.jolibox.com/static/rewards/jolicoin-light.png?timestamp="+Date.now(),"ADS-JOLI_GEM":"https://fe-oss.jolibox.com/static/rewards/ads-jolicoin-light.png?timestamp="+Date.now()},_B=({currency:e,rewardType:t,rewardValue:r,confirmButtonKey:n,cancelButtonKey:i,onClose:o,onConfirm:a})=>{let s=t==="ADS-JOLI_COIN",{t:l}=Nn(),c=yB[t];return _("div",{style:{paddingTop:"80px"},children:_("section",{style:`${At.modal.styles} width:calc(100% - 40px); position: relative; border-radius: 16px; padding: 0;`,children:[_(hB,{src:c,alt:"\u{1FA99}",width:213,height:125,top:"-80px"}),_("div",{style:At.header.styles,children:_("button",{style:`${At.closeButton.styles} padding-top: 10px; padding-right: 10px;`,onClick:o.bind(null,{type:"CANCEL"}),children:_(ip,{})})}),_("div",{style:At.introduct.styles,children:[s?_("span",{style:At.introductSubTitle.styles,children:l("loginGuide.instead")}):null,_("span",{style:At.introductTitle.styles,children:_(Jd,{children:l("loginGuide.introduct"),values:{coin:_("img",{src:c,alt:"\u{1FA99}",style:{height:"20px",verticalAlign:"text-top",marginRight:"2px"}})}})})]}),_("div",{style:{width:"calc(100% - 40px)",paddingBottom:"16px"},children:_("section",{style:`${At.buttonContainer.styles} flex-direction: column; margin-top: 48px; padding: 0 20px;`,children:[_("div",{style:{position:"relative",display:"inline-block",width:"100%",height:"100%"},children:[_("div",{style:{position:"absolute",top:"-32px",right:"-5px",width:"auto",zIndex:1},children:_(gB,{children:_(Jd,{style:{fontSize:"12px",color:"#FFFFFF",fontWeight:600,lineHeight:"16px",textAlign:"center"},children:l("loginGuide.tips"),values:{coin:_(De,{children:[_("img",{src:c,alt:"\u{1FA99}",style:{height:"16px",verticalAlign:"text-top",marginRight:"2px"}}),r]})}})})}),_("button",{style:`${At.confirmButton.styles} ${At.buttonFlex.styles} padding: 0; line-height: 24px; display: flex; align-items: center; justify-content: center; overflow: hidden;`,onClick:a,children:_("span",{style:"display: flex; align-items: center; justify-content: center; width: 100%; word-break: break-word; height: 48px;",children:l(n)})})]}),_("button",{style:`${At.cancelButton.styles} ${At.buttonFlex.styles} line-height: 24px;`,onClick:o.bind(null,{type:"FAILED"}),children:l(i)})]})})]})})},dS=e=>{let t=ps({title:"",content:_(pB,{currency:e.data.currency,balanceAmount:e.data.userCurrency.balance,unlockNeedsAmount:e.data.quantity,defaultEnableAutoDeduct:e.data.enableAutoDeduct,confirmButtonKey:e.buttons.confirm.text,cancelButtonKey:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress,onEnableDeductChanged:e.buttons.onEnableDeductChanged}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"316px",onClose:e.buttons.cancel.onPress.bind(null,{type:"CANCEL"})});return t.show(),t},pS=e=>{let t=ps({title:"",content:_(fB,{currency:e.data.currency,balanceAmount:e.data.userCurrency.balance,unlockNeedsAmount:e.data.quantity,defaultEnableAutoDeduct:e.data.enableAutoDeduct,paymentChoices:e.data.paymentChoices,confirmButtonKey:e.buttons.confirm.text,cancelButtonKey:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress,onEnableDeductChanged:e.buttons.onEnableDeductChanged,onSelect:e.onSelect}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"520px",onClose:e.buttons.cancel.onPress.bind(null,{type:"CANCEL"})});return t.show(),t},fS=e=>{let t=ps({title:"",content:_(_B,{currency:e.data.currency,rewardType:e.data.rewardType,rewardValue:e.data.rewardValue,confirmButtonKey:e.buttons.confirm.text,cancelButtonKey:e.buttons.cancel.text,onClose:e.buttons.cancel.onPress,onConfirm:e.buttons.confirm.onPress}),backdropColor:"#1a1a1a",placement:"center",noHeader:!0,padding:"0px",preventCloseOnBackdropClick:!0});return t.show(),t},hS=new Map,xr=(e,t)=>{hS.set(e,t)};xr(/^\{slot-checkmark\}/,(e,t)=>{var n,i;let r=(i=(n=t==null?void 0:t.customStyle)==null?void 0:n.mark)!=null?i:{};return _("div",{style:r,children:_("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",style:{height:"24px",verticalAlign:"middle"},children:[_("g",{clipPath:"url(#clip0_2247_16523)",children:_("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM9.29 16.29L5.7 12.7C5.31 12.31 5.31 11.68 5.7 11.29C6.09 10.9 6.72 10.9 7.11 11.29L10 14.17L16.88 7.29C17.27 6.9 17.9 6.9 18.29 7.29C18.68 7.68 18.68 8.31 18.29 8.7L10.7 16.29C10.32 16.68 9.68 16.68 9.29 16.29Z",fill:"white"})}),_("defs",{children:_("clipPath",{id:"clip0_2247_16523",children:_("rect",{width:"24",height:"24",fill:"white"})})})]})})});xr(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:lS;return _("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});xr(/^\{slot-gem\}/,(e,t)=>{var i,o,a;let r=(i=t==null?void 0:t.gemImage)!=null?i:np,n=(a=(o=t==null?void 0:t.customStyle)==null?void 0:o.gem)!=null?a:{width:"28px",height:"28px"};return _("img",{src:r,alt:"\u{1FA99}",style:F(T({},n),{verticalAlign:"middle"})})});bB=/^\{slot-i18n-(.+?)\}/,wB=({i18nKey:e,i18nParams:t,fallbackText:r})=>{let{t:n}=Nn(),i=n(e,t);return _("span",{style:{width:"auto",padding:"0 2px"},children:i||r})};xr(bB,(e,t)=>{var n;let r=e[1];return r?_(wB,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,fallbackText:`[${r}]`}):(console.warn("No i18n key extracted from slot pattern:",e[0]),_("span",{children:(n=t==null?void 0:t.text)!=null?n:""}))});IB=/^\{slot-i18ntran-(.+?)\}/,EB=({i18nKey:e,i18nParams:t,imgMap:r={},fallbackText:n})=>{let{t:i}=Nn(),o=i(e),a=Object.entries(r).reduce((s,[l,c])=>(s[l]=c(t[l]),s),{});return _(Jd,{children:o||n,values:T(T({},t),a)})},kB={coin:e=>_(De,{children:[_("img",{src:lS,alt:"coin",style:{width:16,height:16,marginRight:2,textAlign:"center"}})," ",e," Jolicoin"]})};xr(IB,(e,t)=>{var n,i;let r=e[1];return r?_(EB,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,imgMap:(n=t==null?void 0:t.imgMap)!=null?n:kB,fallbackText:`[${r}]`}):_("span",{children:(i=t==null?void 0:t.text)!=null?i:""})});SB="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8yMjk0XzQwODkpIi8+CjxwYXRoIGQ9Ik0xNC4yOTUgMjUuOTIyN0MxNC4yOTUgMjUuOTIyNyAxNy45MTI1IDIxLjY0MzYgMjEuNzc1OSAxOC4wOTg0QzI0Ljc1NzQgMTUuMzYyMSAyOC4yMTUxIDEzLjE0NzQgMjguMjE1MSAxMy4xNDc0TDI3Ljk2OTUgMTEuNDEzOEMyNy45Njk1IDExLjQxMzggMjQuMDk4NyAxMi45NzYzIDIwLjc1NzUgMTUuMTk0N0MxNy4zNjUzIDE3LjQ0NTQgMTQuNTAzMyAyMC4zNTc3IDE0LjUwMzMgMjAuMzU3N0wxMS4xMzkgMTUuNjQyOEw5LjAzOTk2IDE3LjA1MjJMMTQuMjk1IDI1LjkyMjdMMTQuMjk1IDI1LjkyMjdaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzIyOTRfNDA4OSIgeDE9IjExLjczNDEiIHkxPSIzLjE3NTQxIiB4Mj0iMTgiIHkyPSIzNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjOTc1QkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzc4MTdGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=";xr(/^\{slot-success\}/,(e,t)=>_("img",{src:SB,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));AB="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4xNDIxIDIwQzE1LjY2NSAyMCAyMC4xNDIxIDE1LjUyMjggMjAuMTQyMSAxMEMyMC4xNDIxIDQuNDc3MTUgMTUuNjY1IDEuNzM2OThlLTA3IDEwLjE0MjEgMS43MzY5OGUtMDdDNC42MTkyOSAxLjczNjk4ZS0wNyAwLjE0MjEzNiA0LjQ3NzE1IDAuMTQyMTM1IDEwQzAuMTQyMTM2IDE1LjUyMjggNC42MTkyOSAyMCAxMC4xNDIxIDIwWk02LjUwNTk4IDUuMDQ5OTdDNi4xMTU0NiA0LjY1OTQ1IDUuNDgyMjkgNC42NTk0NSA1LjA5MTc3IDUuMDQ5OTdDNC43MDEyNCA1LjQ0MDUgNC43MDEyNCA2LjA3MzY2IDUuMDkxNzcgNi40NjQxOUw4LjYyNzMgOS45OTk3Mkw1LjA5MTc3IDEzLjUzNTNDNC43MDEyNCAxMy45MjU4IDQuNzAxMjQgMTQuNTU4OSA1LjA5MTc3IDE0Ljk0OTVDNS40ODIyOSAxNS4zNCA2LjExNTQ2IDE1LjM0IDYuNTA1OTggMTQuOTQ5NUwxMC4wNDE1IDExLjQxMzlMMTMuNTc3IDE0Ljk0OTVDMTMuOTY3NiAxNS4zNCAxNC42MDA3IDE1LjM0IDE0Ljk5MTMgMTQuOTQ5NUMxNS4zODE4IDE0LjU1ODkgMTUuMzgxOCAxMy45MjU4IDE0Ljk5MTMgMTMuNTM1M0wxMS40NTU3IDkuOTk5NzJMMTQuOTkxMyA2LjQ2NDE5QzE1LjM4MTggNi4wNzM2NiAxNS4zODE4IDUuNDQwNSAxNC45OTEzIDUuMDQ5OTdDMTQuNjAwNyA0LjY1OTQ1IDEzLjk2NzYgNC42NTk0NSAxMy41NzcgNS4wNDk5N0wxMC4wNDE1IDguNTg1NTFMNi41MDU5OCA1LjA0OTk3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";xr(/^\{slot-error\}/,(e,t)=>_("img",{src:AB,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));xB="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADEAAAAwCAYAAAC4wJK5AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAMYSURBVHgB7ZfPi1JRFMfvjNO22VbQZlrVbpr+AIPqDxgYiJjVLGYimPUsZpHrFkIuQmoTriLElYggKhGRIgniwoUkSiphimaZv5+dc7jXOZg2My9tnnC/8PA933n3ns+955x7rxBaWlpaWlpaWlogG1wreLO1tXVJ/rcmlkjktM/nu28Yxg+4hsVi8Y18ZxNLIAJIJBIHI1Cv1+sPQQAyisfjDmFxYehQuJTLZQ8CdLvd3khKzkZGWFhjgEql8g6dhsHvcwD8hZl4JSwqBKA4HwwGXzBsAGCgAPAerlGz2UxLe8slNwKsHh0drYPzrX6/b6DfCgCgKJyq1WpI2lsOgEbf4XBsoKMAMDBwGk5mgADy+fwLaW85AKpAsVjsgapAIyaV0Nls9gm3t5LIoWQy+VgC9DgAzgj++v3+e9zejFaFXC1nPJsVhQSUytczAGhGPB7PTWlvemFDh4XL5dqEhPqUy+U+7uzsXOHvTGhcQuv1+geZtLyEGvCMCT3Y399fF6ximdXK4eHhDdmRgasl3gcCgU1hDmTsUKfTyWNz6DNLYOzDgHclu92+Jts3O1gngoTySt9VotGohcPh2+cEoTCEQbkMn/+aUkKp3Xa7rVbiNTGfsBUCVsZnstoZkyBut/uW7Og0EBp9p9O5weLdmFwDoIT6GMDctAo5YAOnv0O/Q96xSry9vb1rp4BQRQkGg3f5d0oqoUul0nNuP29RbELfP2eByGSfBkIOwWwe8BmcnNFIJPKI2y9KCqR1DhByqFAovOQjPvldNBq1sz4WLko0SPKZINvb21clCAHUarX3U0LIUM/Hx8fXZdv/9XBDIJCIM0F2d3cRRLRarc9Y1Ya8tIE9lmrc4OFGT5ytKCwM5G+hBVWy/VWewMYAuB4gD5iUZDu2iwIQEyB/JDsfdXWjDjWNRiPBvp/PGvCPOgsIjjwlNOyR3rLvLAGgNDO0eEXKZDIOaW+5bbTS1GRX54JUKvVQ2lkWQIlAAOKbzAGaCa/Xe4e9XwqRo6FQ6Gk6nXbD4jeXbfRFiDs8r8OTlpaWlpaWltJvJhoeBvCfSkcAAAAASUVORK5CYII=";xr(/^\{slot-correct\}/,(e,t)=>{var i,o;let r=xB,n=(o=(i=t.customStyle)==null?void 0:i.correct)!=null?o:{width:"24px",height:"24px"};return _("img",{src:r,alt:"\u{1FA99}",style:F(T({},n),{verticalAlign:"middle"})})});He="-ms-",ns="-moz-",V="-webkit-",mS="comm",op="rule",ap="decl",CB="@import",vS="@keyframes",TB="@layer",OB=Math.abs,hs=String.fromCharCode,PB=$d.default;ms=1,Pn=1,yS=0,nt=0,Ee=0,Dn="";$B=function(e,t,r){for(var n=0,i=0;n=i,i=Bt(),n===38&&i===12&&(t[r]=1),!co(i);)ft();return fo(e,nt)},WB=function(e,t){var r=-1,n=44;do switch(co(n)){case 0:n===38&&Bt()===12&&(t[r]=1),e[r]+=$B(nt-1,t,r);break;case 2:e[r]+=Qa(n);break;case 4:if(n===44){e[++r]=Bt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=hs(n)}while(n=ft());return e},zB=function(e,t){return bS(WB(_S(e),t))},wk=new Vd.default,KB=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!wk.get(r))&&!n){wk.set(e,!0);for(var i=[],o=zB(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},YB=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};QB=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case ap:e.return=wS(e.value,e.length);break;case vS:return Cn([Xi(e,{value:$(e.value,"@","@"+V)})],n);case op:if(e.length)return DB(e.props,function(i){switch(NB(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Cn([Xi(e,{props:[$(i,/:(read-\w+)/,":"+ns+"$1")]})],n);case"::placeholder":return Cn([Xi(e,{props:[$(i,/:(plac\w+)/,":"+V+"input-$1")]}),Xi(e,{props:[$(i,/:(plac\w+)/,":"+ns+"$1")]}),Xi(e,{props:[$(i,/:(plac\w+)/,He+"input-$1")]})],n)}return""})}},XB=[QB],ZB=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,Te.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,rr.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||XB,i={},o,a=[];o=e.container||document.head,(0,Te.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),y=1;y<g.length;y++)i[g[y]]=!0;a.push(m)});var s,l=[KB,YB];{var c,d=[BB,VB(function(m){c.insert(m)})],u=HB((0,is.default)(l).call(l,n,d)),p=function(m){return Cn(JB(m),u)};s=function(m,g,y,v){c=y,p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new qk({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return f.sheet.hydrate(a),f};e5=function(e){var t=ZB(e);t.sheet.speedy=function(a){this.isSpeedy=a},t.compat=!0;var r=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=Ar(s,t.registered,void 0);return cs(t,c,!1),t.key+"-"+c.name},n=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=Ar(s,t.registered),d="animation-"+c.name;return Ik(t,{name:c.name,styles:"@keyframes "+d+"{"+c.styles+"}"}),d},i=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=Ar(s,t.registered);Ik(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return Od(t.registered,r,t5(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){(0,Te.default)(a).call(a,function(s){t.inserted[s]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:(0,Pd.default)(ao).call(ao,null,t.registered),merge:(0,Pd.default)(Od).call(Od,null,t.registered,r)}},t5=function e(t){for(var r="",n=0;n<t.length;n++){var i=t[n];if(i!=null){var o=void 0;switch(typeof i){case"boolean":break;case"object":{if((0,to.default)(i))o=e(i);else{o="";for(var a in i)i[a]&&a&&(o&&(o+=" "),o+=a)}break}default:o=i}o&&(r&&(r+=" "),r+=o)}}return r},r5=e5({key:"css"}),n5=r5.css,i5=(e,t)=>{var a;let r=T({color:"#FFF",display:"inline-block",width:"auto",minWidth:"fit-content",whiteSpace:"nowrap"},(a=t==null?void 0:t.customStyle)==null?void 0:a.span);if(!e.includes("{slot-"))return _("span",{style:r,children:e});let n=[],i=0;for(;i<e.length;){let s=null,l=1/0,c=null;for(let[d,u]of hS.entries()){let p=d.source.startsWith("^")?d.source.slice(1):d.source,f=new RegExp(p,"g");f.lastIndex=i;let m=f.exec(e);m&&m.index<l&&(s=m,l=m.index,c=u)}if(s&&c){if(l>i){let d=e.substring(i,l);n.push(_("span",{style:r,children:d}))}n.push(c(s,t)),i=l+s[0].length}else{let d=e.substring(i);n.push(_("span",{style:r,children:d}));break}}let o=n5`
|
|
544
551
|
display: 'flex',
|
|
545
552
|
alignItems: 'flex-start',
|
|
546
553
|
gap: '4px',
|
|
@@ -551,12 +558,12 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
551
558
|
fontWeight: 600,
|
|
552
559
|
lineHeight: '18px',
|
|
553
560
|
width: 'max-content'
|
|
554
|
-
`;return
|
|
561
|
+
`;return n.length===1?n[0]:_("div",{className:o,children:n})},o5=({message:e,type:t="info",duration:r=3e3,onClose:n,position:i="top",customStyle:o})=>{let[a,s]=Jt(!0);Yr(()=>{let d=setTimeout(()=>{s(!1),setTimeout(()=>{n==null||n()},300)},r);return()=>clearTimeout(d)},[r,n]);let l=tr(()=>{let d=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10);return Math.max(20,d)},[]),c=D`
|
|
555
562
|
position: fixed;
|
|
556
563
|
left: 50%;
|
|
557
564
|
padding: 10px 16px;
|
|
558
565
|
max-width: min(85vw, 400px);
|
|
559
|
-
min-width: 200px;
|
|
566
|
+
// min-width: 200px;
|
|
560
567
|
width: auto;
|
|
561
568
|
font-family: PingFangSC-Regular;
|
|
562
569
|
background: ${t==="success"?"#4caf50":t==="error"?"#f44336":t==="warning"?"#ff9800":"#2F2F3B"};
|
|
@@ -567,13 +574,16 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
567
574
|
transition: opacity 0.3s, transform 0.3s;
|
|
568
575
|
text-align: center;
|
|
569
576
|
word-wrap: break-word;
|
|
577
|
+
display: flex;
|
|
578
|
+
align-items: center;
|
|
579
|
+
justify-content: center;
|
|
570
580
|
|
|
571
581
|
/* Base styles for hidden state */
|
|
572
582
|
opacity: 0;
|
|
573
583
|
|
|
574
584
|
/* Top position styles */
|
|
575
585
|
${i==="top"&&`
|
|
576
|
-
top: max(${
|
|
586
|
+
top: max(${l}px, env(safe-area-inset-top));
|
|
577
587
|
transform: translate(-50%, -20px);
|
|
578
588
|
`}
|
|
579
589
|
|
|
@@ -584,16 +594,21 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
584
594
|
`}
|
|
585
595
|
|
|
586
596
|
/* Visible state styles */
|
|
587
|
-
${
|
|
597
|
+
${a&&i==="top"&&`
|
|
588
598
|
opacity: 1;
|
|
589
599
|
transform: translate(-50%, 0);
|
|
590
600
|
`}
|
|
591
601
|
|
|
592
|
-
${
|
|
602
|
+
${a&&i==="center"&&`
|
|
593
603
|
opacity: 1;
|
|
594
604
|
transform: translate(-50%, -50%) scale(1);
|
|
595
605
|
`}
|
|
596
|
-
|
|
606
|
+
|
|
607
|
+
${o&&`
|
|
608
|
+
${Object.entries(o).map(([d,u])=>`${d}: ${u};`).join(`
|
|
609
|
+
`)}
|
|
610
|
+
`}
|
|
611
|
+
`;return _("div",{className:`toast toast-${t}`,style:c.styles,children:e})},a5=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10),Ek=Math.max(20,a5),kk=12,IS=[],ES=[];Cr=(e,t)=>w(void 0,null,function*(){var p;let{iframe:r,emotionCache:n}=yield vk.acquire(),i=r.contentDocument;if(!i)return;let o=i.createElement("div");i.body.appendChild(o);let a=(t==null?void 0:t.position)||"top",s=a==="top"?IS:ES;s.push(o);let l=i5(e,t),c=rS(),d=Xk[c].translations;function u(){i==null||i.body.removeChild(o);let f=s.indexOf(o);f!==-1&&s.splice(f,1),Sk(a),vk.release()}setTimeout(()=>Sk(a),0),mr(_(Yk,{value:n,children:_(eS,{definition:d,children:_(o5,{message:l,type:t==null?void 0:t.type,position:a,duration:t==null?void 0:t.duration,onClose:u,customStyle:(p=t==null?void 0:t.customStyle)==null?void 0:p.base})})}),o)}),Ak={container:{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:"transparent",zIndex:"10000"},spinner:{width:"36px",height:"36px",border:"3px solid transparent",borderTopColor:"#A86FF7",borderLeftColor:"#A86FF7",borderRadius:"50%",animation:"spin 1s linear infinite"}},s5=`
|
|
597
612
|
@keyframes spin {
|
|
598
613
|
0% {
|
|
599
614
|
transform: rotate(0deg);
|
|
@@ -602,9 +617,9 @@ If multiple caches share the same key they might "fight" for each other's style
|
|
|
602
617
|
transform: rotate(360deg);
|
|
603
618
|
}
|
|
604
619
|
}
|
|
605
|
-
`,S5=()=>y("div",{style:_E.container,children:[y("style",{children:I5}),y("div",{style:_E.spinner})]});w7=no()});function vx(){return w(this,null,function*(){if(ef)return ef;let t=`${S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com"}/api/user-retention/exit-recommendations?objectId=${S.mpId}&from=GAME_DETAIL`,{response:{data:r}}=yield te(t);return ef=r,r})}function gx(){return w(this,null,function*(){let e=new Ct;if(S.mpType!=="game")return e.resolve(!1),e.promise;if(tf)return e.resolve(!0),e.promise;let t=yield vx();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:i}=t.data;tf=!0;let o={domain:"GAME",buttons:t.data.buttons.map(s=>`${s.type}-${s.text}`).join(","),list:r.games.map(s=>s.gameId).join(",")};M("RecommendedGuide",T({eventType:J.View},o));let a=ex({games:r.games,title:n,buttons:i,onClose:s=>{var l;switch(tf=!1,s.type){case"quit":M("RecommendedGuide",{eventType:J.Click,type:"QUIT",domain:"GAME"}),e.resolve(!1);break;case"dismiss":M("RecommendedGuide",T({eventType:J.Hide},o)),e.resolve(!0),a.destroy();break;case"navigate":if((l=s.data)!=null&&l.game){let c=s.data.game;E5(c),M("GameItem",{eventType:J.Click,gameId:c.gameId,layerName:"RecommendedGuide",domain:"GAME"}),setTimeout(()=>{e.resolve(!1)},0)}else e.resolve(!0);a.destroy();break;default:M("RecommendedGuide",T({eventType:J.Hide},o)),e.resolve(!0);break}}});return e.promise})}var ef,E5,tf,yx=k(()=>{"use strict";H();_e();N();er();vt();gt();ef=null;vx();E5=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",S.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})},tf=!1});function k5(e){let t=T(T({},x5),e),{url:r,height:n,showCloseButton:i,enableDragClose:o,useAnimation:a,onClose:s,onLoad:l}=t,c=0,d=0,u=!1,f=()=>a?{overlayTransition:"opacity 0.3s ease",containerTransition:"transform 0.3s ease",iframeTransition:"opacity 0.3s ease"}:{overlayTransition:"none",containerTransition:"none",iframeTransition:"none"},p=()=>a?300:0;function m(){let{overlayTransition:b,containerTransition:I,iframeTransition:A}=f();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;`,Y=document.createElement("div"),Y.id="jolibox-modal-container",Y.style.cssText=`width:100%; height:${n}; background:white; border-radius:12px 12px 0 0; overflow:hidden; box-shadow:0 -2px 10px rgba(0,0,0,0.2); transform:translateY(100%); transition:${I};`;let 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 O=document.createElement("style");O.textContent="@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }",document.head.appendChild(O);let x=document.createElement("div");if(x.style.cssText="width:100%; height:100%; display:flex; flex-direction:column; padding-bottom:env(safe-area-inset-bottom, 0); position:relative;",bt=document.createElement("iframe"),bt.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${A};`,bt.src=r,bt.onload=()=>{P.parentNode&&P.parentNode.removeChild(P),bt.style.opacity="1",g(),l==null||l(),ne.emit("onModalIframeLoaded",{url:r})},x.appendChild(bt),x.appendChild(P),Y.appendChild(x),i){let C=document.createElement("div");C.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;",C.innerHTML="\u2715",C.onclick=v,Y.appendChild(C)}ae.appendChild(Y),document.body.appendChild(ae),ae.addEventListener("click",function(C){C.target===ae&&v()}),o&&_()}function g(){!ae||!Y||u||(ae.style.visibility="visible",a?requestAnimationFrame(()=>{ae&&(ae.style.opacity="1"),Y&&(Y.style.transform="translateY(0)"),u=!0}):(ae&&(ae.style.opacity="1"),Y&&(Y.style.transform="translateY(0)"),u=!0),j("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:S.webviewId}))}function _(){if(!Y)return;let b=P=>{c=P.touches[0].clientY},I=P=>{if(!u)return;d=P.touches[0].clientY;let O=d-c;O>0&&(Y&&(Y.style.transition="none",Y.style.transform=`translateY(${O}px)`),P.preventDefault())},A=()=>{!u||!Y||(Y.style.transition=a?"transform 0.3s ease":"none",d-c>80?v():Y.style.transform="translateY(0)")};Y.addEventListener("touchstart",b),Y.addEventListener("touchmove",I),Y.addEventListener("touchend",A)}function v(){!ae||!Y||!u||(a?(Y.style.transform="translateY(100%)",ae.style.opacity="0"):ae.style.visibility="hidden",u=!1,j("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:S.webviewId}),setTimeout(()=>{ae&&(ae.remove(),ae=null,Y=null,bt=null,s==null||s(),ne.emit("onModalIframeClosed",{url:r}))},p()))}return m(),{close:v}}function _x(){return window.joliboxUI=B(T({},window.joliboxUI),{createIframeModal:k5}),()=>{window.joliboxUI=void 0,ae&&ae.parentNode&&ae.parentNode.removeChild(ae),Y&&Y.parentNode&&Y.parentNode.removeChild(Y),bt&&bt.parentNode&&bt.parentNode.removeChild(bt),ae=null,Y=null,bt=null}}var x5,ae,Y,bt,bx=k(()=>{"use strict";_e();H();N();x5={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},ae=null,Y=null,bt=null});var Ex={};yp(Ex,{config:()=>F5});function T5(){Mo.on("isAdShowing",e=>{ds=e,Kr(ds)&&j("updateContainerConfigSync",{displayCapsuleButton:!ds,webviewId:S.webviewId})})}function C5(){ne.on("onInterceptSystemExit",({intercept:e})=>{wx=e})}function P5(){ne.on("onInterceptBackPress",({intercept:e})=>{A5=e}),Ze("onBeforeBackPress",({uuid:e,disableExitRecommendDialog:t})=>{var r,n;Sx(t),ne.emit("onBackPress",{}),(n=(r=globalThis.joliboxJSCore)==null?void 0:r.doBackPress)==null||n.call(r,e)})}function O5(){ne.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),M("onDocumentReady",{start_timestamp:ps,timestamp:Date.now()})})}function R5(){Ze("onI18nChanged",({language:e})=>{ne.emit("onI18nChanged",{i18n:e})})}function N5(e){S.mpType==="game"&&It.start(e)}function D5(){Ze("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&S.onEnvConfigChanged({hostUserInfo:e}),ne.emit("LifecycleEvent.onReady",T({},S.hostUserInfo?S.hostUserInfo:{isLogin:!1})),M("joliboxServiceReady",{start_timestamp:ps,timestamp:Date.now()}),N5(t),WE(()=>S.language)}),Ze("onBeforeExit",({uuid:e,disableExitRecommendDialog:t})=>{var r;Sx(t),(r=globalThis.joliboxJSCore)==null||r.doExit(e)})}function L5(){let e=()=>{M("onBeforeExit",{timestamp:Date.now()}),cs==null||cs(),us==null||us(),It.close(Date.now()-ps)},t=()=>ds||wx;ht.onDoExit(()=>w(this,null,function*(){return t()?!0:Kr(S.shouldInterupt)?(S.shouldInterupt||e(),S.shouldInterupt):fs!=null&&fs.canShowRecommended&&!Ix&&(yield gx())?!0:(e(),!1)})),ht.onDoBackPress(()=>w(this,null,function*(){return!!t()}))}function q5(){return w(this,null,function*(){let e=`${S.baseApiHost}/api/fe-configs/js-sdk/basic-meta`,{response:{data:t}}=yield te(e);t&&(fs=t)})}function F5(){ps=Date.now(),D5(),T5(),C5(),P5(),L5(),O5(),R5(),q5(),us=_x(),cs=Fh()}var cs,us,ps,ds,fs,wx,A5,Ix,Sx,xx=k(()=>{"use strict";_e();H();N();gt();Mh();lc();yx();vt();er();bx();ds=!1,fs=null,wx=!1,A5=!1,Ix=!1,Sx=e=>{Kr(e)&&(Ix=e)};ht.onReady(()=>{})});function kx(e){let t=Wl.config[e];return t||(t={},Wl.config[e]=t),(r,n)=>{if(t[r]){Pt.warn(`[can i use] ${r} already registered`);return}t[r]=T({},n)}}var Ax=k(()=>{"use strict";N()});function rf(e){Tx=e}function hs(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>hs(t)):Object.keys(e).reduce((t,r)=>(t[r]=hs(e[r]),t),{})}function tr(e){return typeof e=="number"}function nf(e){let t=of(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function of(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var Tx,Ee,ms,vs,gs,ys,An,_s,bs,ws,Is,Ss,Es,xs,ks,As,Ts,Cs,Ps,af=k(()=>{"use strict";Tx=!1;Ee=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(Tx)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 ${nf(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return hs(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:hs(this._default)}optional(){return this._optional=!0,this}};ms=class extends Ee{validate(t){return this._optional&&t===void 0?!0:tr(t)?tr(this._min)&&t<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):tr(this._max)&&t>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):tr(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}},vs=class extends Ee{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},gs=class extends Ee{validate(t){if(this._optional&&t===void 0)return!0;if(typeof t!="string")return this.fail({expect:"string",actual:t});if(tr(this._maxLength)&&t.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if(tr(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}},ys=class extends Ee{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},An=class extends Ee{validate(t){return!0}},_s=class extends Ee{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},bs=class extends Ee{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},ws=class extends Ee{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},Is=class extends Ee{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 ${nf(t)}`)}return!0}},Ss=class extends Ee{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(tr(this._minItems)&&r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if(tr(this._maxItems)&&r.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if(tr(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}},Es=class extends Ee{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(of(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}},xs=class extends Ee{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(of(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}},ks=class extends Ee{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:nf(this.value),actual:r}):!0}},As=class extends Ee{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(`
|
|
606
|
-
or `);this.errors.push(o)}return n}},
|
|
607
|
-
`);throw e.errors.length=0,rf(!1),new TypeError(n)}}var E,lf=k(()=>{"use strict";af();af();E={object(e){return new xs(e)},array(e){return new Ss(e)},tuple(...e){return new Ts(...e)},literal(e){return new ks(e)},or(...e){return new As(...e)},symbol(){return new ys},record(e){return new Es(e)},function(){return new ws},boolean(){return new vs},string(){return new gs},number(){return new ms},undefined(){return new _s},null(){return new bs},unknown(){return new An},any(){return new An},as(){return new An},arraybuffer(){return new Cs},enum(...e){return new Is(...e)},typedarray(e){return new Ps(e)}}});var Os,Cx,Px=k(()=>{"use strict";N();mt();lf();Qr();Os=1,Cx=e=>{function t(n,i){return(...o)=>{var u,f,p,m;let a=Date.now(),s={method:n,trace_id:Os};Os+=1;let l="SUCCESS",c=`${n}:ok`,d=0;try{if(i.paramsSchema)try{sf(i.paramsSchema,o,"params")}catch(b){throw ic(`${n}:fail ${b.message}`)}let g=i.implement(...o),_=g,v=`${n}:ok`;if(g&&"code"in g){let{code:b,data:I,message:A}=g;l=b,_=I,v=A}return{code:l,message:v,data:_}}catch(g){let _=g;d=(f=(u=_.code)!=null?u:_.errNo)!=null?f:2e3,l="FAILURE";let v=(m=(p=_.message)!=null?p:_.errMsg)!=null?m:`${g}`;return c=`${n}:${l} ${v.replace(/^\S+:(fail|cancel)\s?/,"")}`,ke(new ti(c,d)),{code:l,message:c}}finally{let g=Date.now()-a}}}function r(n,i){return(...o)=>w(this,null,function*(){var f,p,m,g;let a=Wp(o)?o:[o],s=Date.now(),l={method:n,trace_id:Os};Os+=1;let c=`${n}:ok`,d="SUCCESS",u={code:d,message:c};try{if(i.paramsSchema)try{sf(i.paramsSchema,a,"params")}catch(b){throw ic(b.message)}let v=yield i.implement(...a);if(v&&"code"in v){let{code:b,data:I,message:A}=v;d=b,c=A,v=I}return Object.assign(u,{code:d,message:c,data:v}),u}catch(_){let v=_,b=(p=(f=v.code)!=null?f:v.errNo)!=null?p:2e3;d="FAILURE";let I=(g=(m=v.message)!=null?m:v.errMsg)!=null?g:`${_}`,A=`${n}:${d} ${I.replace(/^\S+:(fail|cancel)\s?/,"")}`;return Object.assign(u,{code:d,message:A}),ke(new ti(A,b)),u}finally{let _=Date.now()-s}})}return{createAPI:r,createSyncAPI:t}}});function cf(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 Ox=k(()=>{"use strict"});var Pe,z,L,Rx,rt=k(()=>{"use strict";Ax();gt();Px();lf();_e();H();Ox();({createAPI:Pe,createSyncAPI:z}=Cx(M)),L=kx("native"),{canIUseNative:Rx}=Lp(()=>S.sdkInfo.nativeSDKVersionCode,()=>S.platform)});var Nx,U5,j5,B5,J5,Dx=k(()=>{"use strict";N();rt();_e();H();Nx=X(),U5="env",j5="getSystemInfoSync",B5=z(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:S.viewport.statusBarHeight,navigationBarHeight:S.viewport.navigationBarHeight}}}}),J5=z(U5,{implement:()=>{var t;let e=j("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});Nx.registerCommand("API.getSystemInfoSync",B5);Nx.registerCommand("API.env",J5);L("env",{version:"1.0.0"});L("getSystemInfoSync",{version:"1.0.0",properties:{viewport:"1.0.33"}})});var Lx=h(uf=>{"use strict";N();rt();mt();_e();gt();H();var H5="exitGame",$5="onReady",V5="onJoliboxShow",G5="onJoliboxHide",Rs=X(),Ns=No(ke),z5=Pe(H5,{paramsSchema:E.tuple(E.function(),E.boolean().optional().default(!1)),implement:(e,t=!1)=>w(uf,null,function*(){Ns(e).call(uf),Kr(S.shouldInterupt)&&!S.shouldInterupt&&S.from&&Bp("onRetentionResult",{shouldStay:t},S.from,!0),t||S.setDoExitDirectly(),yield ye("exitAppAsync")})}),W5=z(V5,{paramsSchema:E.tuple(E.function()),implement(e){let t=Ns(e);Ze("onJoliboxEnterForeground",()=>{t.call(this),ni.emit("visible",!0)})}}),K5=z(G5,{paramsSchema:E.tuple(E.function()),implement(e){let t=Ns(e);Ze("onJoliboxEnterBackground",()=>{t.call(this),ni.emit("visible",!1)})}}),Q5=z($5,{paramsSchema:E.tuple(E.function()),implement(e){let t=Ns(e);ne.on("LifecycleEvent.onReady",r=>{t(r)})}});Rs.registerCommand("LifecycleSDK.exit",z5);Rs.registerCommand("LifecycleSDK.onReady",Q5);Rs.registerCommand("LifecycleSDK.onJoliboxShow",W5);Rs.registerCommand("LifecycleSDK.onJoliboxHide",K5);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 qx(e){let t={};if(!Tr(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 Fx(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 Mx(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function Ux(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!Tr(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 jx=k(()=>{"use strict";N()});var Y5,X5,df,ff,Bx,Z5,e3,t3,Jx=k(()=>{"use strict";Qr();ac();rt();jx();N();mt();H();Y5=15,X5=qo("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:S.baseApiHost}),df=0,ff=[],Bx=No(ke),Z5=(e,t)=>{let r=e.filter(t),n=e.filter(i=>!t(i));return e.length=0,e.push(...n),r},e3=e=>{let t=new Ct,r=()=>{};return z("request",{paramsSchema:E.tuple(E.object({url:E.string(),method:E.string(),headers:E.object().optional(),data:E.or(E.object(),E.array()).optional(),query:E.object().optional(),dataType:E.string().default("json"),responseType:E.string().default("text"),enableCache:E.boolean().default(!1),appendHostCookie:E.boolean().default(!0),timeout:E.number().default(3e4),success:E.function(),fail:E.function()})),implement(i){let o=()=>w(this,null,function*(){var s,l,c;let a=Bx(i.fail);try{if(df+=1,t.state!=="pending")return;let{data:d,dataType:u,responseType:f,enableCache:p,appendHostCookie:m}=i,g=qx((s=i.headers)!=null?s:{}),_=Fx(i.method),v=Mx(i.timeout),b=Ux(i.url,_,d),I=Bx(i.success),A=Object.assign({},i,{method:_,header:m?void 0:g,data:_==="GET"||_==="HEAD"?void 0:d,enableCache:p,query:(l=i.query)!=null?l:{},dataType:u,responseType:f,appendHostCookie:m});v&&(A.timeout=v);let P=X5(b,A);{let{response:O}=yield P,{code:x,data:C,message:U}=O;if(C&&typeof C=="object"&&"status"in C&&C.status!==200)throw cr({code:C.status||-1,msg:`request:fail status ${C.status}`});t.resolve({code:x!=null?x:"SUCCESS",data:C,message:U!=null?U:"request:ok"}),I({code:"SUCCESS",message:"request:ok",data:C})}}catch(d){t.reject(d),a({code:"FAILURE",message:"httpRequst: failed"})}finally{df-=1,(c=ff.shift())==null||c()}});return df>=Y5?(r=()=>{Z5(ff,a=>a===o)},ff.push(o)):o(),t.promise}})(e),{abort(){t.reject(cr({code:-1,msg:"request:fail abort"})),r()}}},t3=X();t3.registerCommand("HttpSDK.request",e3);L("request",{version:"1.0.0"})});function Hx(e){let t=Object.prototype.toString.call(e).split(" ")[1].split("]")[0].toLocaleLowerCase();return t==="array"&&(t="object"),a3.includes(t)?t:""}function $x(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 Vx(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 Ds,r3,n3,i3,o3,XK,ZK,a3,pf,Gx,hf=k(()=>{"use strict";rt();_e();N();vt();H();Ds=X(),r3=Pe("getLocalStorage",{paramsSchema:E.tuple(E.string()),implement(e){return w(this,null,function*(){let{response:t}=yield te(`/api/games/user-storage/${S.mpId}`,{method:"GET",responseType:"json",appendHostCookie:!0,query:{key:e}}),{data:{code:r,message:n,data:i}}=yield t;if(r==="SUCCESS")return{code:r,message:n,data:i==null?void 0:i.value};try{let{data:{data:o,dataType:a}}=yield ye("getLocalStorageAsync",{key:e}),s=$x(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}}})}});Ds.registerCommand("StorageSDK.getItem",r3);L("storage.getItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});n3=Pe("setStorage",{paramsSchema:E.tuple(E.string(),E.or(E.string(),E.boolean(),E.number())),implement(e,t){return w(this,null,function*(){let r=S.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=Hx(t),l=Vx(t,s);return yield ye("setLocalStorageAsync",{key:e,data:l,dataType:s}),o=="SUCCESS"?{code:o,message:a}:{code:o,message:`${a}. fallback to native`}})}});Ds.registerCommand("StorageSDK.setItem",n3);L("storage.setItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});i3=Pe("removeStorage",{paramsSchema:E.tuple(E.string()),implement(e){return w(this,null,function*(){let t=S.mpId,{response:r}=yield te(`/api/games/user-storage/${t}/remove`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e}}),{data:{code:n,message:i}}=r;return yield ye("removeLocalStorageAsync",{key:e}),n==="SUCCESS"?{code:n,message:i}:{code:n,message:"[Jolibox SDK] remove item succ"}})}});Ds.registerCommand("StorageSDK.removeItem",i3);L("storage.removeItem",{version:"1.0.0",properties:{key:"1.0.0"}});o3=Pe("clearStorage",{implement(){return w(this,null,function*(){let e=S.mpId,{response:t}=yield te(`/api/games/user-storage/${e}/clear`,{method:"POST",appendHostCookie:!0});ye("clearLocalStorageAsync");let{data:{code:r,message:n}}=t;return r==="SUCCESS"?{code:r,message:n}:{code:r,message:`${n}.fallback to native`}})}});Ds.registerCommand("StorageSDK.clear",o3);L("storage.clear",{version:"1.0.0"});XK=Pe("getStorageInfo",{implement(){return w(this,null,function*(){let{data:e}=yield ye("getStorageInfoAsync");return e})}});L("getStorageInfo",{version:"1.0.0",success:{keys:"1.0.0",currentSize:"1.0.0",limitSize:"1.0.0"}});ZK=z("getStorageInfoSync",{implement(){return j("getStorageInfoSync")}}),a3=["string","number","boolean","object",""];pf=Pe("getGlobalStorage",{paramsSchema:E.tuple(E.string()),implement(e){return w(this,null,function*(){try{let{data:{data:t,dataType:r}}=yield ye("getGlobalStorageAsync",{key:e});return{code:"SUCCESS",message:"success",data:$x(t,r)}}catch(t){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get global storage failed",data:null}}})}}),Gx=Pe("setGlobalStorage",{paramsSchema:E.tuple(E.string(),E.or(E.string(),E.boolean(),E.number(),E.array())),implement(e,t){return w(this,null,function*(){try{let r=Hx(t),n=Vx(t,r);return yield ye("setGlobalStorageAsync",{key:e,data:n,dataType:r}),{code:"SUCCESS",message:"success"}}catch(r){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] set global storage failed"}}})}})});var s3,l3,c3,mf,zx=k(()=>{"use strict";N();_e();rt();s3=z("showKeyboard",{paramsSchema:E.tuple(E.object({defaultValue:E.string().optional().default(""),multiple:E.boolean().optional().default(!1),maxLength:E.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",B(T({},e),{defaultValue:r,maxLength:t}))}});L("keyboard.showKeyboard",{version:"1.0.0",properties:{params:{defaultValue:"1.0.0",multiple:"1.0.0",confirmHold:"1.0.0",confirmType:"1.0.0",maxLength:"1.0.0"}},success:{errMsg:"1.0.0"}});l3=z("updateKeyboard",{paramsSchema:E.tuple(E.object({value:E.string()})),implement(e){j("updateKeyboardSync",e)}});L("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});c3=z("hideKeyboard",{implement(){j("hideKeyboardSync")}});L("keyboard.hideKeyboard",{version:"1.0.0"});mf=X();mf.registerCommand("KeyboardSDK.showKeyboard",s3);mf.registerCommand("KeyboardSDK.updateKeyboard",l3);mf.registerCommand("KeyboardSDK.hideKeyboard",c3)});var Wx=h(Ls=>{"use strict";N();rt();gt();var vf=X(),u3=Pe("levelFinished",{paramsSchema:E.tuple(E.object({levelId:E.or(E.string(),E.number()),duration:E.number().optional(),rating:E.number().optional(),score:E.number().optional(),variation:E.string().optional()})),implement:e=>w(Ls,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)})}),d3=Pe("gamePlayEnded",{paramsSchema:E.tuple(E.object({duration:E.number().optional(),rating:E.number().optional(),score:E.number(),variation:E.string().optional()})),implement:e=>w(Ls,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)})}),f3=Pe("levelUpgrade",{paramsSchema:E.tuple(E.object({levelId:E.or(E.string(),E.number()),name:E.string().optional()})),implement:r=>w(Ls,[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)})});vf.registerCommand("TaskTrackerSDK.levelFinished",u3);vf.registerCommand("TaskTrackerSDK.gamePlayEnded",d3);vf.registerCommand("TaskTrackerSDK.levelUpgrade",f3);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 gf,yf,_f,p3,Kx,qs=k(()=>{"use strict";H();_e();rt();N();Qr();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"}});gf=new Map;Ze("onLoginStateChange",({isLogin:e,token:t,uuid:r,isFirstLogin:n,extra:i})=>{let o=gf.get(r);o&&(o.resolve({isLogin:e,token:t,isFirstLogin:n,extra:i}),gf.delete(r))});yf=(e,t=!1)=>w(void 0,null,function*(){var u;let{data:{isLogin:r}}=yield ye("checkLoginAsync");if(r)return{isLogin:!0,token:(u=S.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 cr({code:-1,msg:"login failed"});let s=new Ct;gf.set(a,s);let l=yield s.promise;S.onEnvConfigChanged({hostUserInfo:l});let f=l,{extra:c}=f,d=je(f,["extra"]);return ne.emit("onLoginComplete",d),t?l:d}),_f=Pe("login",{paramsSchema:E.tuple(E.object({skipLogin:E.boolean().optional(),triggerFrom:E.string().optional()}).optional()),implement(e){return w(this,null,function*(){return yield yf(e!=null?e:{})})}}),p3=Pe("checkSession",{implement(){return w(this,null,function*(){let{data:{isLogin:e}}=yield ye("checkLoginAsync");return{isLogin:e}})}}),Kx=X();Kx.registerCommand("API.login",_f);Kx.registerCommand("API.checkSession",p3)});var Qx,Yx=k(()=>{"use strict";Qx=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 bf(e){return t=>w(this,null,function*(){var l;let{dailyMaxPopUps:r,minInterval:n}=t,i=yield pf(e);if(!i.data)return{canShow:!0,isFirst:!0};let o=Xx(i.data),a=Qx(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 wf(e){return()=>w(this,null,function*(){var i;let t=Date.now(),r=yield pf(e),n=Xx((i=r.data)!=null?i:"[]");n.push(t),n.sort((o,a)=>a-o).splice(8),yield Gx(e,JSON.stringify(n))})}var Xx,Zx,ek,tk,rk,nk,ik,Fs=k(()=>{"use strict";hf();Yx();Xx=e=>{let t;try{t=JSON.parse(e)}catch(r){t=[]}return t};Zx=bf("joli_coin_use_modal_frequency"),ek=bf("joli_coin_payment_frequency"),tk=bf("joli_coin_unlogin_modal_frequency");rk=wf("joli_coin_use_modal_frequency"),nk=wf("joli_coin_payment_frequency"),ik=wf("joli_coin_unlogin_modal_frequency")});var If,Ms,Sf=k(()=>{"use strict";vt();If=Promise.resolve(),Ms=e=>w(void 0,null,function*(){If=If.then(()=>w(void 0,null,function*(){yield te("/api/joli-coin/user-config",{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield If})});var Us,js,At,Bs,$r,wr,rr,Js,Tn,h3,F,Cn,Pn,Ye=k(()=>{"use strict";N();Us="UNLOCK_OPTIONS_CHANGED",js="INVOKE_PAYMENT",At="ON_PAYMENT_RESULT",Bs="ON_USE_MODAL_EVENT",$r="ON_USE_MODAL_RESULT",wr="ON_USE_MODAL_FREQUENCY",rr="ON_USE_UNLOGIN_MODAL_EVENT",Js="INVOKE_UNLOGIN_MODAL_EVENT",Tn=new Ot,h3=()=>({on:Tn.on.bind(Tn),off:Tn.off.bind(Tn),emit:Tn.emit.bind(Tn)}),F=h3(),Cn={charge:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},useJolicoin:{dailyMaxPopUps:2,minInterval:8*60*60*1e3}},Pn={show:!0,minInterval:8*60*60*1e3}});function nt(e,t){let r=null,n=null,i=null,o=()=>{if(i){r=Promise.resolve(i);return}r=new Promise(a=>{n=a})};return o(),e.on(t,(...a)=>{let s=a[0];i=s,n&&(n(s),n=null)}),{getData:()=>(r||o(),r),getCachedData:()=>i,clearCache:()=>{i=null,r=null},getFreshData:()=>(i=null,r=null,o(),r),updateData:a=>{if(i)return i=T(T({},i),a),r=Promise.resolve(i),n&&(n(i),n=null),i}}}var Ir=k(()=>{"use strict"});var sk=h(Ef=>{"use strict";Fs();Sf();Ye();Ye();er();gt();N();Ir();var ok=no(),ak=nt(F,wr);ak.getData();F.on(Bs,(e,t)=>w(Ef,null,function*(){if(e==="ADS-JOLI_COIN"){yield ok.show({duration:3e3});let n=yield ak.getData(),{canShow:i,isFirst:o}=yield Zx(n.joliCoinUseAndCharge.useJolicoin);console.log("use modal show by frequency",i,o),ok.hide();let{balance:a}=t.userJoliCoin;if(a>=t.joliCoinQuantity&&t.enableAutoDeduct&&!o){F.emit($r,{useModalResult:"CONFIRM"});return}if(!i){F.emit($r,{useModalResult:"FAILED"});return}}M("unlock_popup_show",{eventType:J.View,targetType:"game"});let r=nx({data:{enableAutoDeduct:t.enableAutoDeduct,userJolicoin:t.userJoliCoin,joliCoinQuantity:t.joliCoinQuantity},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{M("coin_unlock_click",{targetType:"game",eventType:J.Click,coinConsume:t.joliCoinQuantity,ifAutoUnlock:t.enableAutoDeduct}),F.emit($r,{useModalResult:"CONFIRM"}),r.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:n})=>{n==="FAILED"&&M("ad_unlock_click",{targetType:"game",eventType:J.Click}),F.emit($r,{useModalResult:(n!=null?n:"")==="CANCEL"?"CANCEL":"FAILED"}),r.destroy()}},onEnableDeductChanged:n=>w(Ef,null,function*(){yield Ms(n)})}});yield rk()}))});function lk(){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 ke(o),{code:"FAILED",message:`[joliboxSDK]: paymenterror ${o}`}}})}}}var ck=k(()=>{"use strict";mt()});var Hs=k(()=>{"use strict"});var m3,On,Sr,v3,Vr,xf=k(()=>{"use strict";Hs();N();H();vt();m3=()=>{let[e,t]=[th,nh].map(r=>(n,i,o)=>new r(n,i,o));return{createPaymentError:e,createPaymentInternalError:t}},{createPaymentError:On,createPaymentInternalError:Sr}=m3(),v3=S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",Vr=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 On(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 On((i=(n=r.message)!=null?n:r.errMsg)!=null?i:"",1003)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",S.deviceInfo.platform),t.set("joliSource",S.encodeJoliSourceQuery(T({},this.generatePaymentContext()))),`${v3}//payment/callback?${t.toString()}`}}get orderId(){return this._orderId}get status(){return this._orderStatus}}});var kf,dk,fk=k(()=>{"use strict";vt();xf();Hs();kf=class extends Vr{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 On((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),Sr((a=JSON.stringify(s))!=null?a:"jolicoin placeorder failed",1002)}})}},dk=()=>{let e=new Map;return t=>w(void 0,null,function*(){let r=e.get(t);return r||(r=new kf(t),e.set(t,r)),yield r.startPayment({productId:t}),{code:"SUCCESS",message:"jolicoin payment success"}})}});var pk,hk=k(()=>{"use strict";pk={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 Af,mk,Tf,Cf,g3,vk,gk=k(()=>{"use strict";vt();xf();Hs();_e();N();H();er();hk();Af=new Map;Ze("onPaymentStateChange",e=>{console.info("onPaymentStateChange",e);let{orderUUID:t,status:r,totalAmount:n,orderResponse:i}=e,o=Af.get(t);if(o){if(r==="SUCCESS")Hr("{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"&&Kp(i==null?void 0:i.errNo)&&(i==null?void 0:i.errNo)!==0)throw Sr(`jolicoin payment failed: ${i==null?void 0:i.errMsg}`,1002);let a=pk[r];a&&Hr(`{slot-error} {slot-i18n-jolicoin.${a}}`,{position:"center",duration:3e3}),o.resolve({code:"FAILED",message:"jolicoin payment failed"})}Af.delete(t)}});mk=e=>w(void 0,null,function*(){var n,i;let t=new Ct,r;try{let o=yield ye("requestPaymentSync",{paymentBody:{appStoreProductId:e.appStoreProductId,appAccountToken:e.appAccountToken}});if(r=(n=o.data)==null?void 0:n.orderUUID,console.info("---payInApp---",o),!r)throw Sr("orderUUID is null",1002);Af.set(r,t)}catch(o){throw Sr((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),Tf=class extends Vr{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 mk({appStoreProductId:this.appStoreProductId})})}placeOrder(r){return w(this,null,function*(){return{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},Cf=class extends Vr{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 mk({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 Sr("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"}})}},g3={android:Tf,ios:Cf},vk=()=>{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=g3[S.platform];if(!s)throw Sr("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 On(a,1002);return{code:"SUCCESS",message:"jolicoin payment success"}})}});var $s,yk=k(()=>{"use strict";ck();fk();gk();$s=lk();$s.registerPaymentHandler("JOLI_COIN",dk());$s.registerPaymentHandler("JOLI_COIN_IAP",vk())});var bk=h(io=>{"use strict";Ye();er();vt();H();qs();N();Fs();yk();er();rt();_e();N();gt();Sf();Ir();var Rn=no(),y3=nt(F,wr);F.on(js,(e,t)=>w(io,null,function*(){var r,n;try{if(!Rx("requestPaymentSync:paymentBody:appStoreProductId")){console.info("requestPaymentSync:paymentBody:appStoreProductId not supported"),setTimeout(()=>{F.emit(At,{paymentResult:"FAILED"})},0);return}if(e==="ADS-JOLI_COIN"){yield Rn.show({duration:3e3});let a=yield y3.getData(),{canShow:s}=yield ek(a.joliCoinUseAndCharge.charge);if(console.log("use payment show by frequency",s),Rn.hide(),!s){F.emit(At,{paymentResult:"FAILED"});return}console.log("show by frequency")}yield Rn.show({duration:3e3});let i=yield _k();if(Rn.hide(),!i){F.emit(At,{paymentResult:"FAILED"});return}M("coinorder_show",{targetType:"game",eventType:J.View});let o=ix({data:{userJolicoin:t.userJoliCoin,joliCoinQuantity:t.joliCoinQuantity,paymentChoices:(n=(r=i.paymentChoices)==null?void 0:r.map(a=>{var s;return B(T({},a),{totalAmountStr:(s=a.totalAmountStr)!=null?s:""})}))!=null?n:[],enableAutoDeduct:i.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:a=>w(io,null,function*(){var c,d,u,f,p,m,g,_;if(M("order_pay_ensure",{targetType:"game",eventType:J.Click,payWay:"app_iap",coinAmount:t.joliCoinQuantity,orderPrice:(d=(c=i.paymentChoices.find(v=>v.productId===a))==null?void 0:c.totalAmountStr)!=null?d:""}),!((u=S.hostUserInfo)!=null&&u.isLogin)){let{data:v}=yield _f({skipLogin:!0});if(!(v!=null&&v.isLogin)){console.log("login failed");return}let b=yield _k();if(((f=b==null?void 0:b.balance)!=null?f:0)>=t.joliCoinQuantity){F.emit(At,{paymentResult:"SUCCESS"}),o.destroy();return}}console.log("invokeNativePayment",a);let s=(m=(p=i==null?void 0:i.paymentChoices)==null?void 0:p.find(v=>v.productId===a))==null?void 0:m.appStoreProductId;if(!s){F.emit(At,{paymentResult:"FAILED"}),o.destroy();return}yield Rn.show({duration:3e3});let{code:l}=yield $s.invokePayment("JOLI_COIN_IAP",{productId:a,appStoreProductId:s});if(Rn.hide(),M("order_pay_result",{eventType:J.Other,targetType:"game",payWay:"app_iap",coinAmount:t.joliCoinQuantity,orderPrice:(_=(g=i.paymentChoices.find(v=>v.productId===a))==null?void 0:g.totalAmountStr)!=null?_:"",payResult:l}),l!=="SUCCESS"){console.info("[JoliboxSDK] payment failed in payment.invokePaymet");return}F.emit(At,{paymentResult:"SUCCESS"}),o.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:a})=>{F.emit(At,{paymentResult:(a!=null?a:"")==="CANCEL"?"CANCEL":"FAILED"}),M("ad_unlock_click",{targetType:"game",eventType:J.Click}),o.destroy()}},onEnableDeductChanged:a=>w(io,null,function*(){yield Ms(a)})},onSelect:a=>{var s,l;M("coinorder_click",{targetType:"game",eventType:J.Click,coinAmount:t.joliCoinQuantity,orderPrice:(l=(s=i.paymentChoices.find(c=>c.productId===a))==null?void 0:s.totalAmountStr)!=null?l:""})}});yield nk()}catch(i){console.info("payment failed",i),F.emit(At,{paymentResult:"FAILED"})}}));var _3=(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=>!$l(r.totalAmountStr))},_k=()=>w(io,null,function*(){var r,n,i,o,a,s,l,c,d,u;let{response:e}=yield te("/api/joli-coin/balance-detail",{method:"GET",appendHostCookie:!0,responseType:"json"});console.info("getBalenceDetails",e);let{data:t}=yield ye("requestProductDetailsAsync",{appStoreProductIds:(o=(i=(n=(r=e.data)==null?void 0:r.data)==null?void 0:n.paymentChoices)==null?void 0:i.filter(f=>typeof f.appStoreProductId=="string").map(f=>f.appStoreProductId))!=null?o:[]});if((a=e.data)!=null&&a.data&&t&&_3((s=e.data)==null?void 0:s.data,t),console.info("productDetails",(l=e.data)==null?void 0:l.data),((d=(c=e.data)==null?void 0:c.data)==null?void 0:d.paymentChoices.length)===0)throw new Error("paymentChoices is empty");return(u=e.data)==null?void 0:u.data})});var Ik=h(Vs=>{"use strict";Ye();Ir();Fs();vt();mt();N();qs();er();gt();var wk=nt(F,wr);wk.getData();F.on(Js,(e,t)=>w(Vs,null,function*(){var r;try{if(e==="ADS-JOLI_COIN"){let o=yield wk.getData();if(console.log("unlogin guide config",o.loginGuide),!o.loginGuide.show){F.emit(rr,{result:"NOT_SUPPORT"});return}let{canShow:a}=yield tk(o.loginGuide);if(console.log("canShowUseModal",a),!a){F.emit(rr,{result:"FAILED"});return}}let{firstLogin:n}=(r=yield b3())!=null?r:{};if(!(n!=null&&n.reward)){console.log("[JoliboxSDK] unlogin modal reward is empty"),F.emit(rr,{result:"NOT_SUPPORT"});return}M("LoginGuideModal",{eventType:J.Expose},J.Expose);let i=ox({data:{rewardType:e,rewardValue:n.reward.rewardValue},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>w(Vs,null,function*(){var l,c,d,u;M("LoginGuideModal",{type:"click_confirm",eventType:J.Click},J.Click);let{isLogin:o,extra:a,isFirstLogin:s}=yield yf({},!0);if(!o){console.log("login failed");return}if(M("LoginGuideModal",{type:"click_confirm_login",isFirstLogin:s,eventType:J.Click},J.Click),s&&((l=a==null?void 0:a.firstLogin)!=null&&l.reward)){let{rewardValue:f}=a.firstLogin.reward;Hr("{slot-i18ntran-loginGuide.rewardTips}",{i18nParams:{text:"Jolicoin Used",coin:f},position:"top",duration:3e3})}F.emit(rr,{result:"SUCCESS",rewards:{jolicoin:{claimedRewardValue:(u=(d=(c=a==null?void 0:a.firstLogin)==null?void 0:c.reward)==null?void 0:d.rewardValue)!=null?u:0,isFirstLogin:s!=null?s:!1}}}),i.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:o})=>{M("LoginGuideModal",{eventType:J.Hide},J.Hide),M("LoginGuideModal",{type:o==="CANCEL"?"click_close":"click_watch_ads",eventType:J.Click},J.Click),F.emit(rr,{result:"FAILED"}),i.destroy()}}}});yield ik()}catch(n){ke(new ih(n)),F.emit(rr,{result:"FAILED"})}}));var b3=()=>w(Vs,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 eX,tX,rX,Sk=k(()=>{"use strict";eX=ie(sk()),tX=ie(bk()),rX=ie(Ik())});function R3(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function N3(e){return typeof e=="string"}function D3(e){return typeof e=="undefined"}function L3(e){return D3(e)||e===null}function q3(e){return typeof e=="function"}function Yk(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 oo(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function Ks(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 H3(e){let t=e.location?Ks(e.location,Ck):null,r=e.target?Ks(e.target,Ck):null;return Ks(C3(T3({},e),{location:t,target:r}),B3)}function $3(e){let t=e.events.map(n=>H3(n)),r=Ks(e.device,J3);return[e.protocolVersion,t,r,e.project]}function V3(){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 Q3(e){return new Promise(t=>tA(e)(t))}function tA(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 Y3(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new uo(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 Z3(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)e4(e[n],t[n])}function e4(e,t){if(N3(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(q3(t)){try{if(e instanceof t)return}catch(r){}if(!L3(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 it(e,t,r){return(t=t4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t4(e){var t=r4(e,"string");return typeof t=="symbol"?t:t+""}function r4(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 Gs(e,t,r){return(t=n4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n4(e){var t=i4(e,"string");return typeof t=="symbol"?t:t+""}function i4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zs(e,t,r){return(t=o4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o4(e){var t=a4(e,"string");return typeof t=="symbol"?t:t+""}function a4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nr(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=l4(e,"string");return typeof t=="symbol"?t:t+""}function l4(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 c4(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 u4(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 v4(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 e.trim()}function g4(e,t){return(e=t.exec(e))?e[0]:e}function K(e,t,r){return e.replace(t,r)}function $f(e,t){return e.indexOf(t)}function Me(e,t){return e.charCodeAt(t)|0}function fo(e,t,r){return e.slice(t,r)}function Jt(e){return e.length}function ap(e){return e.length}function Ws(e,t){return t.push(e),e}function y4(e,t){return e.map(t).join("")}function cl(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:ll,column:Mn,length:a,return:""}}function so(e,t){return m4(cl("",null,null,"",null,null,0),e,{length:-e.length},t)}function _4(){return xe}function b4(){return xe=st>0?Me(Un,--st):0,Mn--,xe===10&&(Mn=1,ll--),xe}function pt(){return xe=st<oA?Me(Un,st++):0,Mn++,xe===10&&(Mn=1,ll++),xe}function Ht(){return Me(Un,st)}function Qs(){return st}function ho(e,t){return fo(Un,e,t)}function po(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 ll=Mn=1,oA=Jt(Un=e),st=0,[]}function sA(e){return Un="",e}function Ys(e){return iA(ho(st-1,Vf(e===91?e+2:e===40?e+1:e)))}function w4(e){for(;(xe=Ht())&&xe<33;)pt();return po(e)>2||po(xe)>3?"":" "}function I4(e,t){for(;--t&&pt()&&!(xe<48||xe>102||xe>57&&xe<65||xe>70&&xe<97););return ho(e,Qs()+(t<6&&Ht()==32&&pt()==32))}function Vf(e){for(;pt();)switch(xe){case e:return st;case 34:case 39:e!==34&&e!==39&&Vf(xe);break;case 40:e===41&&Vf(e);break;case 92:pt();break}return st}function S4(e,t){for(;pt()&&e+xe!==57&&!(e+xe===84&&Ht()===47););return"/*"+ho(t,st-1)+"*"+sl(e===47?e:pt())}function E4(e){for(;!po(Ht());)pt();return ho(e,st)}function x4(e){return sA(Xs("",null,null,null,[""],e=aA(e),0,[0],e))}function Xs(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,f=0,p=0,m=0,g=1,_=1,v=1,b=0,I="",A=i,P=o,O=n,x=I;_;)switch(m=b,b=pt()){case 40:if(m!=108&&Me(x,u-1)==58){$f(x+=K(Ys(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:x+=Ys(b);break;case 9:case 10:case 13:case 32:x+=w4(m);break;case 92:x+=I4(Qs()-1,7);continue;case 47:switch(Ht()){case 42:case 47:Ws(k4(S4(pt(),Qs()),t,r),l);break;default:x+="/"}break;case 123*g:s[c++]=Jt(x)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:_=0;case 59+d:v==-1&&(x=K(x,/\f/g,"")),p>0&&Jt(x)-u&&Ws(p>32?Nk(x+";",n,r,u-1):Nk(K(x," ","")+";",n,r,u-2),l);break;case 59:x+=";";default:if(Ws(O=Rk(x,t,r,c,d,i,s,I,A=[],P=[],u),o),b===123)if(d===0)Xs(x,t,O,O,A,o,u,s,P);else switch(f===99&&Me(x,3)===110?100:f){case 100:case 108:case 109:case 115:Xs(e,O,O,n&&Ws(Rk(e,O,O,0,0,i,s,I,i,A=[],u),P),i,P,u,s,n?A:P);break;default:Xs(x,O,O,O,[""],P,0,s,P)}}c=d=p=0,g=v=1,I=x="",u=a;break;case 58:u=1+Jt(x),p=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&b4()==125)continue}switch(x+=sl(b),b*g){case 38:v=d>0?1:(x+="\f",-1);break;case 44:s[c++]=(Jt(x)-1)*v,v=1;break;case 64:Ht()===45&&(x+=Ys(pt())),f=Ht(),d=u=Jt(I=x+=E4(Qs())),b++;break;case 45:m===45&&Jt(x)==2&&(g=0)}}return o}function Rk(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,f=i===0?o:[""],p=ap(f),m=0,g=0,_=0;m<n;++m)for(var v=0,b=fo(e,u+1,u=h4(g=a[m])),I=e;v<p;++v)(I=iA(g>0?f[v]+" "+b:K(b,/&\f/g,f[v])))&&(l[_++]=I);return cl(e,t,r,i===0?ip:s,l,c,d)}function k4(e,t,r){return cl(e,t,r,rA,sl(_4()),fo(e,2,-2),0)}function Nk(e,t,r,n){return cl(e,t,r,op,fo(e,0,n),fo(e,n+1,-1),n)}function Fn(e,t){for(var r="",n=ap(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function A4(e,t,r,n){switch(e.type){case p4:if(e.children.length)break;case f4:case op:return e.return=e.return||e.value;case rA:return"";case nA:return e.return=e.value+"{"+Fn(e.children,n)+"}";case ip:e.value=e.props.join(",")}return Jt(r=Fn(e.children,n))?e.return=e.value+"{"+r+"}":""}function T4(e){var t=ap(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function C4(e){return function(t){t.root||(t=t.return)&&e(t)}}function P4(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function lA(e,t){switch(v4(e,t)){case 5103:return W+"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 W+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return W+e+tl+e+Ge+e+e;case 6828:case 4268:return W+e+Ge+e+e;case 6165:return W+e+Ge+"flex-"+e+e;case 5187:return W+e+K(e,/(\w+).+(:[^]+)/,W+"box-$1$2"+Ge+"flex-$1$2")+e;case 5443:return W+e+Ge+"flex-item-"+K(e,/flex-|-self/,"")+e;case 4675:return W+e+Ge+"flex-line-pack"+K(e,/align-content|flex-|-self/,"")+e;case 5548:return W+e+Ge+K(e,"shrink","negative")+e;case 5292:return W+e+Ge+K(e,"basis","preferred-size")+e;case 6060:return W+"box-"+K(e,"-grow","")+W+e+Ge+K(e,"grow","positive")+e;case 4554:return W+K(e,/([^-])(transform)/g,"$1"+W+"$2")+e;case 6187:return K(K(K(e,/(zoom-|grab)/,W+"$1"),/(image-set)/,W+"$1"),e,"")+e;case 5495:case 3959:return K(e,/(image-set\([^]*)/,W+"$1$`$1");case 4968:return K(K(e,/(.+:)(flex-)?(.*)/,W+"box-pack:$3"+Ge+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+W+e+e;case 4095:case 3583:case 4068:case 2532:return K(e,/(.+)-inline(.+)/,W+"$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(Me(e,t+1)){case 109:if(Me(e,t+4)!==45)break;case 102:return K(e,/(.+:)(.+)-([^]+)/,"$1"+W+"$2-$3$1"+tl+(Me(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~$f(e,"stretch")?lA(K(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Me(e,t+1)!==115)break;case 6444:switch(Me(e,Jt(e)-3-(~$f(e,"!important")&&10))){case 107:return K(e,":",":"+W)+e;case 101:return K(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+W+(Me(e,14)===45?"inline-":"")+"box$3$1"+W+"$2$3$1"+Ge+"$2box$3")+e}break;case 5936:switch(Me(e,t+11)){case 114:return W+e+Ge+K(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return W+e+Ge+K(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return W+e+Ge+K(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return W+e+Ge+e+e}return e}function U4(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 rl(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return Er={name:i.name,styles:i.styles,next:Er},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Er={name:a.name,styles:a.styles,next:Er},a=a.next;var s=o.styles+";";return s}return H4(e,t,r)}}var l=r;if(t==null)return l;var c=t[l];return c!==void 0?c:l}function H4(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=rl(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]+"}":Lk(s)&&(n+=Of(o)+":"+qk(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++)Lk(a[l])&&(n+=Of(o)+":"+qk(o,a[l])+";");else{var c=rl(e,t,a);switch(o){case"animation":case"animationName":{n+=Of(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function Rf(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";Er=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=rl(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=rl(r,t,e[s]),n){var l=o;i+=l[s]}Fk.lastIndex=0;for(var c="",d;(d=Fk.exec(i))!==null;)c+="-"+d[1];var u=U4(i)+c;return{name:u,styles:i,next:Er}}function uA(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}function Mk(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Uk(e,t,r){var n=[],i=uA(e,n,r);return n.length<2?r:i+t(n)}function K4(e,t){Oe.__h&&Oe.__h(ft,e,Bk||t),Bk=0;var r=ft.__H||(ft.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function fA(e,t){var r=K4(Gf++,7);return X4(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Q4(){for(var e;e=dA.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Zs),e.__H.__h.forEach(zf),e.__H.__h=[]}catch(t){e.__H.__h=[],Oe.__e(t,e.__v)}}function Y4(e){var t,r=function(){clearTimeout(n),Wk&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Wk&&(t=requestAnimationFrame(r))}function Zs(e){var t=ft,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ft=t}function zf(e){var t=ft;e.__c=e.__(),ft=t}function X4(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function ul(){if(xr>1)xr--;else{for(var e,t=!1;lo!==void 0;){var r=lo;for(lo=void 0,Wf++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&hA(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(Wf=0,xr--,t)throw e}}function at(e){if(xr>0)return e();xr++;try{return e()}finally{ul()}}function pA(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 Ue(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function re(e){return new Ue(e)}function hA(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 mA(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 vA(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 Bn(e){Ue.call(this,void 0),this.x=e,this.s=void 0,this.g=nl-1,this.f=4}function co(e){return new Bn(e)}function gA(e){var t=e.u;if(e.u=void 0,typeof t=="function"){xr++;var r=ee;ee=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,sp(e),n}finally{ee=r,ul()}}}function sp(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,gA(e)}function eH(e){if(ee!==this)throw new Error("Out-of-order effect");vA(this),ee=e,this.f&=-2,8&this.f&&sp(this),ul()}function mo(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function vo(e){var t=new mo(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function Jn(e,t){R[e]=t.bind(null,R[e]||function(){})}function il(e){Df&&Df(),Df=e&&e.S()}function bA(e){var t=this,r=e.data,n=wA(r);n.value=r;var i=fA(function(){for(var s=t,l=t.__v;l=l.__;)if(l.__c){l.__c.__$f|=4;break}var c=co(function(){var p=n.value.value;return p===0?0:p===!0?"":p||""}),d=co(function(){return!Array.isArray(c.value)&&!fc(c.value)}),u=vo(function(){if(this.N=IA,d.value){var p=c.value;s.__v&&s.__v.__e&&s.__v.__e.nodeType===3&&(s.__v.__e.data=p)}}),f=t.__$u.d;return t.__$u.d=function(){u(),f.call(this)},[d,c]},[]),o=i[0],a=i[1];return o.value?a.peek():a.value}function tH(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:vo(function(){this.N=IA;var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function wA(e){return fA(function(){return re(e)},[])}function nH(){at(function(){for(var e;e=_A.shift();)yA.call(e)})}function IA(){_A.push(this)===1&&(R.requestAnimationFrame||rH)(nH)}function iH(e,t){let r=ki(e);cn(()=>{r.current=e},[e]),xi(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function ge(e,t,r,n,i,o){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var c={type:e,props:l,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--oH,__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 R.vnode&&R.vnode(c),c}function ir(e,t,r){return(t=gH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function gH(e){var t=yH(e,"string");return typeof t=="symbol"?t:t+""}function yH(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function or(e,t,r){return(t=IH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function IH(e){var t=SH(e,"string");return typeof t=="symbol"?t:t+""}function SH(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=EH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function EH(e){var t=xH(e,"string");return typeof t=="symbol"?t:t+""}function xH(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 ot(e,t,r){return(t=kH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function kH(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 Gr(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=CH(e,"string");return typeof t=="symbol"?t:t+""}function CH(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=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=OH(e,"string");return typeof t=="symbol"?t:t+""}function OH(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 Xe(e,t,r){return(t=RH(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function RH(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 Tt(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=LH(e,"string");return typeof t=="symbol"?t:t+""}function LH(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 Ek,w3,I3,S3,Kk,E3,x3,xk,k3,A3,kk,T3,C3,P3,Qk,O3,F3,M3,Ak,U3,Tk,j3,Xk,Zk,eA,Ck,B3,J3,Ln,Pk,qf,ue,G3,z3,ao,uo,W3,Mf,K3,Pf,X3,Uf,Ok,Nn,jf,Bf,Jf,Hf,d4,Ge,tl,W,rA,ip,op,f4,nA,p4,h4,sl,m4,ll,Mn,oA,st,xe,Un,O4,R4,N4,Dk,D4,L4,q4,F4,M4,j4,B4,J4,cA,Lk,Of,qk,Fk,Er,$4,V4,G4,z4,W4,jn,Gf,ft,Nf,jk,Bk,dA,Oe,Jk,Hk,$k,Vk,Gk,zk,Wk,Z4,ee,lo,xr,Wf,nl,yA,Df,_A,rH,ze,oH,aH,ar,Kf,Qf,el,sH,lH,cH,uH,dH,fH,pH,hH,mH,vH,Yf,qn,Dn,_H,bH,wH,Xf,SA,Zf,ep,tp,rp,ol,np,al,oX,EA=k(()=>{"use strict";Xr();na();Ek=Object.getOwnPropertySymbols,w3=Object.prototype.hasOwnProperty,I3=Object.prototype.propertyIsEnumerable,S3=(e,t)=>{var r={};for(var n in e)w3.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ek)for(var n of Ek(e))t.indexOf(n)<0&&I3.call(e,n)&&(r[n]=e[n]);return r},Kk=Object.defineProperty,E3=Object.defineProperties,x3=Object.getOwnPropertyDescriptors,xk=Object.getOwnPropertySymbols,k3=Object.prototype.hasOwnProperty,A3=Object.prototype.propertyIsEnumerable,kk=(e,t,r)=>t in e?Kk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T3=(e,t)=>{for(var r in t||(t={}))k3.call(t,r)&&kk(e,r,t[r]);if(xk)for(var r of xk(t))A3.call(t,r)&&kk(e,r,t[r]);return e},C3=(e,t)=>E3(e,x3(t)),P3=(e,t)=>{for(var r in t)Kk(e,r,{get:t[r],enumerable:!0})},Qk=(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},O3=(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}F3=(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))(F3||{});M3={log:oo("log"),warn:oo("warn"),info:oo("info"),error:oo("error"),debug:oo("debug")};Object.assign(globalThis,{logger:M3});Ak=Symbol.for("Jolibox.canIUseMap"),U3={};globalThis[Ak]||(globalThis[Ak]=U3);Tk=Symbol.for("Jolibox.canIUseMap.native"),j3={};globalThis[Tk]||(globalThis[Tk]=j3);Xk=(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))(Xk||{}),Zk=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(Zk||{}),eA=(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))(eA||{}),Ck=["name","params"],B3=["name","type","location","target","extra","timestamp","userId"],J3=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];V3();Ln=typeof window=="undefined",Pk=()=>!Ln&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK");!Ln&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),!Ln&&navigator.userAgent.includes("Android"),!Ln&&navigator.userAgent.includes("Mac"),!Ln&&navigator.userAgent.includes("FB_IAB"),!Ln&&!navigator.userAgent.includes("iPhone")&&navigator.userAgent.includes("Android");qf=class Ff{constructor(t){this.element=t,this.next=Ff.Undefined,this.prev=Ff.Undefined}};qf.Undefined=new qf(void 0);ue=qf,G3=class{constructor(){this._first=ue.Undefined,this._last=ue.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ue.Undefined}clear(){let e=this._first;for(;e!==ue.Undefined;){let t=e.next;e.prev=ue.Undefined,e.next=ue.Undefined,e=t}this._first=ue.Undefined,this._last=ue.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new ue(e);if(this._first===ue.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==ue.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ue.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ue.Undefined&&e.next!==ue.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ue.Undefined&&e.next===ue.Undefined?(this._first=ue.Undefined,this._last=ue.Undefined):e.next===ue.Undefined?(this._last=this._last.prev,this._last.next=ue.Undefined):e.prev===ue.Undefined&&(this._first=this._first.next,this._first.prev=ue.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ue.Undefined;)yield e.element,e=e.next}},z3=0,ao=class{constructor(e){this.value=e,this.id=z3++}},uo=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 ao&&(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 ao(e);return this._listeners?this._listeners instanceof ao?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,f;if(!this._disposed){if(this._listeners instanceof ao)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 p=this._listeners.indexOf(l);p>=0&&(this._listeners.splice(p,1),this._size--,this._size===0&&((f=(u=this.options)==null?void 0:u.onDidRemoveLastListener)==null||f.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 ao?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},W3=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 uo,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 G3,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)}},Mf={};P3(Mf,{None:()=>K3,filter:()=>Y3,once:()=>tA,toPromise:()=>Q3});K3=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Pf=Symbol.for("Jolibox.hostEmitter"),X3=()=>{let e=new W3;return globalThis[Pf]||(globalThis[Pf]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Pf]};X3();Uf=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new uo,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 Z3(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}};Uf=Qk([Yk],Uf);Ok=class{constructor(){this._onWillExecuteCommand=new uo,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new uo,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Uf,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=R3(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 O3(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),Mf.toPromise(Mf.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{}}};Ok=Qk([Yk],Ok);Nn=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")},jf=class{constructor(t){it(this,"context",void 0),it(this,"continueCallback",void 0),it(this,"adIsShowingCallback",void 0),it(this,"isBeforeAdCalled",!1),it(this,"isBeforeRewardCalled",!1),it(this,"isAdDismissedCalled",!1),it(this,"isAdViewedCalled",!1),it(this,"isAfterAdCalled",!1),it(this,"currentProvider",void 0),it(this,"currentClientParams",void 0),it(this,"adsHasResponse",!1),it(this,"videoChecker",window.document.createElement("video")),it(this,"contextInfo",void 0),it(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)),Pk()&&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=Nn(r);s==null||s()}),this.context=t,this.contextInfo=t.getContextInfo()}get paramsToTrack(){var t,r,n,i,o,a;return{provider:(r=(t=this.currentProvider)==null?void 0:t.name)!=null?r:null,type:(n=this.currentClientParams)==null?void 0:n.type,name:((i=this.currentClientParams)==null?void 0:i.type)==="preroll"?null:(a=(o=this.currentClientParams)==null?void 0:o.name)!=null?a:""}}wrapBeforeAd(t){return()=>{var r,n,i,o;if(this.adsHasResponse=!0,this.context.track("CallBeforeAd",this.paramsToTrack),!this.isBeforeAdCalled){this.isBeforeAdCalled=!0;let a=Nn(t);a==null||a(),((r=this.currentClientParams)==null?void 0:r.type)!=="reward"&&((n=this.adIsShowingCallback)==null||n.call(this,!0),Pk()&&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=Nn(t);r==null||r()}}}wrapAdViewed(t){return()=>{if(this.adsHasResponse=!0,!this.isAdViewedCalled){this.isAdViewedCalled=!0;let r=Nn(t);r==null||r()}}}wrapAfterAd(t){return()=>{if(this.adsHasResponse=!0,this.context.track("CallAfterAd",this.paramsToTrack),!this.isAfterAdCalled){this.isAfterAdCalled=!0;let r=Nn(t);r==null||r()}}}wrapAdBreakDone(t){return r=>{var n,i,o,a,s,l;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}),r.breakStatus){case"viewed":case"ignored":case"dismissed":case"error":{let c=Nn(t);c==null||c(r),(a=this.adIsShowingCallback)==null||a.call(this,!1),(s=this.continueCallback)==null||s.call(this,[!1,r]);break}default:{(l=this.continueCallback)==null||l.call(this,[!0,r]);break}}}}callAdBreakAndContinue(t,r,n,i){return w(this,null,function*(){return this.currentProvider=t,this.currentClientParams=r,this.adsHasResponse=!1,new Promise(o=>{this.continueCallback=o,this.adIsShowingCallback=i;let a;switch(r.type){case"preroll":{a={type:r.type,adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}case"reward":{a={name:r.name,type:r.type,beforeAd:this.wrapBeforeAd(r.beforeAd),beforeReward:this.wrapBeforeReward(r.beforeReward),adDismissed:this.wrapAdDismissed(r.adDismissed),adViewed:this.wrapAdViewed(r.adViewed),afterAd:this.wrapAfterAd(r.afterAd),adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}default:{a={name:r.name,type:r.type,beforeAd:this.wrapBeforeAd(r.beforeAd),afterAd:this.wrapAfterAd(r.afterAd),adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}}window.setTimeout(()=>{var s,l,c,d,u;this.adsHasResponse||(this.context.track("CallAdBreakTimeout",{type:r.type,provider:(l=(s=this.currentProvider)==null?void 0:s.name)!=null?l:null}),(d=this.continueCallback)==null||d.call(this,[!0,{breakType:r.type,breakName:r.type==="preroll"?"":(c=r.name)!=null?c:"",breakFormat:r.type==="reward"?"reward":"interstitial",breakStatus:"timeout"}]),(u=this.adIsShowingCallback)==null||u.call(this,!1))},5e3),this.context.track("CallAdBreak",this.paramsToTrack),t.adBreak(a,n),window.JoliTesterBridge&&console.log("joli-fullscreen-ad-show")})})}};Bf=class{constructor(t){Gs(this,"context",void 0),Gs(this,"adBreakIsShowing",!1),Gs(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),Gs(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()})}};Jf=class{constructor(t){zs(this,"configs",null),zs(this,"firstRun",!0),zs(this,"context",void 0),zs(this,"contextInfo",void 0),this.context=t,this.contextInfo=this.context.getContextInfo(),this.init()}init(){return w(this,null,function*(){try{this.configs=yield this.context.httpClient.get("/api/fe-configs/js-sdk/ads-channel-config",{})}catch(t){}})}shouldBypassCallingInterstitial(){var t,r;let n;if(!this.configs)this.init(),n=!this.firstRun;else{let i=(t=this.contextInfo.channel)!=null?t:"",o=this.configs[i],a=(r=o==null?void 0:o.interstitialRate)!=null?r:1;n=Math.random()<a}return this.firstRun=!1,n}};Hf=class{constructor(t,r){nr(this,"name","ADSENSE"),nr(this,"context",void 0),nr(this,"contextInfo",void 0),nr(this,"configured",!1),nr(this,"initParams",void 0),nr(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),nr(this,"adConfig",n=>{let i=n,{onReady:o}=i,a=S3(i,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),nr(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),nr(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:f}=n,p;if(!l)throw new Error("targeting element is required");if(typeof l=="string"?p=document.querySelector(l):p=l,!p)throw new Error("targeting element not found");let m=c;if(m||(m=this.initParams.unitId),!m)throw new Error("slot is required");let g=typeof d=="object"&&Array.isArray(d)?d.join(", "):d,_=document.createElement("ins");if(_.className="adsbygoogle",_.id="jolibox-ads",_.style.display="block",_.setAttribute("data-ad-client",this.initParams.clientId),_.setAttribute("data-ad-slot",m),g&&_.setAttribute("data-ad-format",g),u&&_.setAttribute("data-full-width-responsive",u),f&&_.setAttribute("style",f),(s=this.contextInfo.testAdsMode)!=null?s:!1){let v=document.createElement("div");v.style.position="absolute",v.style.top="0",v.style.left="0",v.style.width="100%",v.style.height="100%",v.style.display="flex",v.style.justifyContent="center",v.style.alignItems="center",v.style.backgroundColor="rgba(0, 0, 0, 0.5)",v.style.color="white",v.innerHTML="Test Ad",_.style.position="relative",p.appendChild(_),_.appendChild(v)}else p.appendChild(_),new MutationObserver(v=>{v.forEach(b=>{if(b.type==="attributes"&&b.attributeName==="data-ad-status"){let I=_.getAttribute("data-ad-status");this.context.track("AdSenseUnitStatusChanged",{status:I!=null?I:"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 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)}})}};d4=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(u4(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=c4(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}(),Ge="-ms-",tl="-moz-",W="-webkit-",rA="comm",ip="rule",op="decl",f4="@import",nA="@keyframes",p4="@layer",h4=Math.abs,sl=String.fromCharCode,m4=Object.assign;ll=1,Mn=1,oA=0,st=0,xe=0,Un="";O4=function(e,t,r){for(var n=0,i=0;n=i,i=Ht(),n===38&&i===12&&(t[r]=1),!po(i);)pt();return ho(e,st)},R4=function(e,t){var r=-1,n=44;do switch(po(n)){case 0:n===38&&Ht()===12&&(t[r]=1),e[r]+=O4(st-1,t,r);break;case 2:e[r]+=Ys(n);break;case 4:if(n===44){e[++r]=Ht()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=sl(n)}while(n=pt());return e},N4=function(e,t){return sA(R4(aA(e),t))},Dk=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&&!Dk.get(r))&&!n){Dk.set(e,!0);for(var i=[],o=N4(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]}}},L4=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};q4=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case op:e.return=lA(e.value,e.length);break;case nA:return Fn([so(e,{value:K(e.value,"@","@"+W)})],n);case ip:if(e.length)return y4(e.props,function(i){switch(g4(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Fn([so(e,{props:[K(i,/:(read-\w+)/,":"+tl+"$1")]})],n);case"::placeholder":return Fn([so(e,{props:[K(i,/:(plac\w+)/,":"+W+"input-$1")]}),so(e,{props:[K(i,/:(plac\w+)/,":"+tl+"$1")]}),so(e,{props:[K(i,/:(plac\w+)/,Ge+"input-$1")]})],n)}return""})}},F4=[q4],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(m){var g=m.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||F4,i={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),_=1;_<g.length;_++)i[g[_]]=!0;a.push(m)});var s,l=[D4,L4];{var c,d=[A4,C4(function(m){c.insert(m)})],u=T4(l.concat(n,d)),f=function(m){return Fn(x4(m),u)};s=function(m,g,_,v){c=_,f(m?m+"{"+g.styles+"}":g.styles),v&&(p.inserted[g.name]=!0)}}var p={key:t,sheet:new d4({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 p.sheet.hydrate(a),p};j4={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},B4=/[A-Z]|^ms/g,J4=/_EMO_([^_]+?)_([^]*?)_EMO_/g,cA=function(e){return e.charCodeAt(1)===45},Lk=function(e){return e!=null&&typeof e!="boolean"},Of=P4(function(e){return cA(e)?e:e.replace(B4,"-$&").toLowerCase()}),qk=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(J4,function(r,n,i){return Er={name:n,styles:i,next:Er},n})}return j4[e]!==1&&!cA(e)&&typeof t=="number"&&t!==0?t+"px":t};Fk=/label:\s*([^\s;{]+)\s*(;|$)/g;$4=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},V4=function(e,t,r){$4(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)}};G4=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=Rf(s,t.registered,void 0);return V4(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=Rf(s,t.registered),d="animation-"+c.name;return Mk(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=Rf(s,t.registered);Mk(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return Uk(t.registered,r,z4(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:uA.bind(null,t.registered),merge:Uk.bind(null,t.registered,r)}},z4=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},W4=G4({key:"css"}),jn=W4.css,Bk=0,dA=[],Oe=R,Jk=Oe.__b,Hk=Oe.__r,$k=Oe.diffed,Vk=Oe.__c,Gk=Oe.unmount,zk=Oe.__;Oe.__b=function(e){ft=null,Jk&&Jk(e)},Oe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),zk&&zk(e,t)},Oe.__r=function(e){Hk&&Hk(e),Gf=0;var t=(ft=e.__c).__H;t&&(Nf===ft?(t.__h=[],ft.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Zs),t.__h.forEach(zf),t.__h=[],Gf=0)),Nf=ft},Oe.diffed=function(e){$k&&$k(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(dA.push(t)!==1&&jk===Oe.requestAnimationFrame||((jk=Oe.requestAnimationFrame)||Y4)(Q4)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Nf=ft=null},Oe.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Zs),r.__h=r.__h.filter(function(n){return!n.__||zf(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Oe.__e(n,r.__v)}}),Vk&&Vk(e,t)},Oe.unmount=function(e){Gk&&Gk(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Zs(n)}catch(i){t=i}}),r.__H=void 0,t&&Oe.__e(t,r.__v))};Wk=typeof requestAnimationFrame=="function";Z4=Symbol.for("preact-signals");ee=void 0,lo=void 0,xr=0,Wf=0,nl=0;Ue.prototype.brand=Z4;Ue.prototype.h=function(){return!0};Ue.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)};Ue.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)}};Ue.prototype.subscribe=function(e){var t=this;return vo(function(){var r=t.value,n=ee;ee=void 0;try{e(r)}finally{ee=n}})};Ue.prototype.valueOf=function(){return this.value};Ue.prototype.toString=function(){return this.value+""};Ue.prototype.toJSON=function(){return this.value};Ue.prototype.peek=function(){var e=ee;ee=void 0;try{return this.value}finally{ee=e}};Object.defineProperty(Ue.prototype,"value",{get:function(){var e=pA(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++,nl++,xr++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{ul()}}}});(Bn.prototype=new Ue).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===nl))return!0;if(this.g=nl,this.f|=1,this.i>0&&!hA(this))return this.f&=-2,!0;var e=ee;try{mA(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,vA(this),this.f&=-2,!0};Bn.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)}Ue.prototype.S.call(this,e)};Bn.prototype.U=function(e){if(this.t!==void 0&&(Ue.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)}};Bn.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(Bn.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=pA(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});mo.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()}};mo.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,gA(this),mA(this),xr++;var e=ee;return ee=this,eH.bind(this,e)};mo.prototype.N=function(){2&this.f||(this.f|=2,this.o=lo,lo=this)};mo.prototype.d=function(){this.f|=8,1&this.f||sp(this)};_A=[];vo(function(){yA=this.N})();bA.displayName="_st";Object.defineProperties(Ue.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:bA},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});Jn("__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 Ue&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});Jn("__r",function(e,t){il();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return vo(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),il(r),e(t)});Jn("__e",function(e,t,r,n){il(),e(t,r,n)});Jn("diffed",function(e,t){il();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=tH(r,l,d,i),o[l]=c):c.o(d,i)}}}e(t)});Jn("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)});Jn("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});lt.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};rH=function(e){queueMicrotask(function(){queueMicrotask(e)})};ze=jn`
|
|
620
|
+
`,l5=()=>_("div",{style:Ak.container,children:[_("style",{children:s5}),_("div",{style:Ak.spinner})]});c7=ho()});function kS(){return w(this,null,function*(){if(lp)return lp;let t=`${E.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com"}/api/user-retention/exit-recommendations?objectId=${E.mpId}&from=GAME_DETAIL`,{response:{data:r}}=yield te(t);return lp=r,r})}function SS(){return w(this,null,function*(){let e=new Ot;if(E.mpType!=="game")return e.resolve(!1),e.promise;if(cp)return e.resolve(!0),e.promise;let t=yield kS();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:i}=t.data;cp=!0;let o={domain:"GAME",buttons:t.data.buttons.map(s=>`${s.type}-${s.text}`).join(","),list:r.games.map(s=>s.gameId).join(",")};U("RecommendedGuide",T({eventType:G.View},o));let a=sS({games:r.games,title:n,buttons:i,onClose:s=>{var l;switch(cp=!1,s.type){case"quit":U("RecommendedGuide",{eventType:G.Click,type:"QUIT",domain:"GAME"}),e.resolve(!1);break;case"dismiss":U("RecommendedGuide",T({eventType:G.Hide},o)),e.resolve(!0),a.destroy();break;case"navigate":if((l=s.data)!=null&&l.game){let c=s.data.game;c5(c),U("GameItem",{eventType:G.Click,gameId:c.gameId,layerName:"RecommendedGuide",domain:"GAME"}),setTimeout(()=>{e.resolve(!1)},0)}else e.resolve(!0);a.destroy();break;default:U("RecommendedGuide",T({eventType:G.Hide},o)),e.resolve(!0);break}}});return e.promise})}var lp,c5,cp,AS=A(()=>{"use strict";B();_e();R();ir();yt();tt();lp=null;kS();c5=e=>{var a;let{data:t}=j("envSync"),r=new URL(t.schema),n=new URLSearchParams(r.search);n.set("gameId",e.gameId),n.set("joliSource",E.encodeJoliSourceQuery({__mpType:"game",__orientation:(a=e.orientation)!=null?a:"VERTICAL"}));let o=`${`https://${e.gameId}.content.jolibox.com/`}index.html?${n.toString()}`;j("openSchemaSync",{schema:o})},cp=!1});function d5(e){let t=T(T({},u5),e),{url:r,height:n,showCloseButton:i,enableDragClose:o,useAnimation:a,onClose:s,onLoad:l}=t,c=0,d=0,u=!1,p=()=>a?{overlayTransition:"opacity 0.3s ease",containerTransition:"transform 0.3s ease",iframeTransition:"opacity 0.3s ease"}:{overlayTransition:"none",containerTransition:"none",iframeTransition:"none"},f=()=>a?300:0;function m(){let{overlayTransition:b,containerTransition:k,iframeTransition:x}=p();ae=document.createElement("div"),ae.id="jolibox-modal-overlay",ae.style.cssText=`position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.5); z-index:1000; display:flex; justify-content:center; align-items:flex-end; transition:${b}; opacity:0; visibility:hidden;`,Q=document.createElement("div"),Q.id="jolibox-modal-container",Q.style.cssText=`width:100%; height:${n}; background:white; border-radius:12px 12px 0 0; overflow:hidden; box-shadow:0 -2px 10px rgba(0,0,0,0.2); transform:translateY(100%); transition:${k};`;let P=document.createElement("div");P.id="jolibox-modal-loading",P.style.cssText="position:absolute; top:50%; left:50%; transform:translate(-50%, -50%); width:40px; height:40px; border:4px solid #f3f3f3; border-top:4px solid #3498db; border-radius:50%; animation:spin 1s linear infinite;";let C=document.createElement("style");C.textContent="@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }",document.head.appendChild(C);let S=document.createElement("div");if(S.style.cssText="width:100%; height:100%; display:flex; flex-direction:column; padding-bottom:env(safe-area-inset-bottom, 0); position:relative;",wt=document.createElement("iframe"),wt.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${x};`,wt.src=r,wt.onload=()=>{P.parentNode&&P.parentNode.removeChild(P),wt.style.opacity="1",g(),l==null||l(),ne.emit("onModalIframeLoaded",{url:r})},S.appendChild(wt),S.appendChild(P),Q.appendChild(S),i){let O=document.createElement("div");O.style.cssText="position:absolute; top:10px; right:10px; width:30px; height:30px; background:rgba(0,0,0,0.1); border-radius:15px; display:flex; justify-content:center; align-items:center; cursor:pointer; z-index:10;",O.innerHTML="\u2715",O.onclick=v,Q.appendChild(O)}ae.appendChild(Q),document.body.appendChild(ae),ae.addEventListener("click",function(O){O.target===ae&&v()}),o&&y()}function g(){!ae||!Q||u||(ae.style.visibility="visible",a?requestAnimationFrame(()=>{ae&&(ae.style.opacity="1"),Q&&(Q.style.transform="translateY(0)"),u=!0}):(ae&&(ae.style.opacity="1"),Q&&(Q.style.transform="translateY(0)"),u=!0),j("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:E.webviewId}))}function y(){if(!Q)return;let b=P=>{c=P.touches[0].clientY},k=P=>{if(!u)return;d=P.touches[0].clientY;let C=d-c;C>0&&(Q&&(Q.style.transition="none",Q.style.transform=`translateY(${C}px)`),P.preventDefault())},x=()=>{!u||!Q||(Q.style.transition=a?"transform 0.3s ease":"none",d-c>80?v():Q.style.transform="translateY(0)")};Q.addEventListener("touchstart",b),Q.addEventListener("touchmove",k),Q.addEventListener("touchend",x)}function v(){!ae||!Q||!u||(a?(Q.style.transform="translateY(100%)",ae.style.opacity="0"):ae.style.visibility="hidden",u=!1,j("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:E.webviewId}),setTimeout(()=>{ae&&(ae.remove(),ae=null,Q=null,wt=null,s==null||s(),ne.emit("onModalIframeClosed",{url:r}))},f()))}return m(),{close:v}}function xS(){return window.joliboxUI=F(T({},window.joliboxUI),{createIframeModal:d5}),()=>{window.joliboxUI=void 0,ae&&ae.parentNode&&ae.parentNode.removeChild(ae),Q&&Q.parentNode&&Q.parentNode.removeChild(Q),wt&&wt.parentNode&&wt.parentNode.removeChild(wt),ae=null,Q=null,wt=null}}var u5,ae,Q,wt,CS=A(()=>{"use strict";_e();B();R();u5={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},ae=null,Q=null,wt=null});var RS={};Sf(RS,{config:()=>I5});function f5(){$o.on("isAdShowing",e=>{_s=e,on(_s)&&j("updateContainerConfigSync",{displayCapsuleButton:!_s,webviewId:E.webviewId})})}function h5(){ne.on("onInterceptSystemExit",({intercept:e})=>{TS=e})}function m5(){ne.on("onInterceptBackPress",({intercept:e})=>{p5=e}),et("onBeforeBackPress",({uuid:e,disableExitRecommendDialog:t})=>{var r,n;PS(t),ne.emit("onBackPress",{}),(n=(r=globalThis.joliboxJSCore)==null?void 0:r.doBackPress)==null||n.call(r,e)})}function v5(){ne.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),U("onDocumentReady",{start_timestamp:ws,timestamp:Date.now()})})}function g5(){et("onI18nChanged",({language:e})=>{ne.emit("onI18nChanged",{i18n:e})})}function y5(e){E.mpType==="game"&&It.start(e)}function _5(){et("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&E.onEnvConfigChanged({hostUserInfo:e}),ne.emit("LifecycleEvent.onReady",T({},E.hostUserInfo?E.hostUserInfo:{isLogin:!1})),U("joliboxServiceReady",{start_timestamp:ws,timestamp:Date.now()}),y5(t),tS(()=>E.language)}),et("onBeforeExit",({uuid:e,disableExitRecommendDialog:t})=>{var r;PS(t),(r=globalThis.joliboxJSCore)==null||r.doExit(e)})}function b5(){let e=()=>{U("onBeforeExit",{timestamp:Date.now()}),gs==null||gs(),ys==null||ys(),It.close(Date.now()-ws)},t=()=>_s||TS;vt.onDoExit(()=>w(this,null,function*(){return t()?!0:on(E.shouldInterupt)?(E.shouldInterupt||e(),E.shouldInterupt):bs!=null&&bs.canShowRecommended&&!OS&&(yield SS())?!0:(e(),!1)})),vt.onDoBackPress(()=>w(this,null,function*(){return!!t()}))}function w5(){return w(this,null,function*(){try{let e="/api/fe-configs/js-sdk/basic-meta",{response:{data:t}}=yield te(e);t&&(bs=t)}catch(e){console.error("fetchMetaConfig error:",e)}})}function I5(){ws=Date.now(),_5(),f5(),h5(),m5(),b5(),v5(),g5(),w5(),ys=xS(),gs=Hh()}var gs,ys,ws,_s,bs,TS,p5,OS,PS,NS=A(()=>{"use strict";_e();B();R();tt();Vh();vc();AS();yt();ir();CS();_s=!1,bs=null,TS=!1,p5=!1,OS=!1,PS=e=>{on(e)&&(OS=e)};vt.onReady(()=>{})});function DS(e){let t=rc.config[e];return t||(t={},rc.config[e]=t),(r,n)=>{if(t[r]){Rt.warn(`[can i use] ${r} already registered`);return}t[r]=T({},n)}}var LS=A(()=>{"use strict";R()});function up(e){MS=e}function Is(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>Is(t)):Object.keys(e).reduce((t,r)=>(t[r]=Is(e[r]),t),{})}function or(e){return typeof e=="number"}function dp(e){let t=pp(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function pp(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var MS,ke,Es,ks,Ss,As,Ln,xs,Cs,Ts,Os,Ps,Rs,Ns,Ds,Ls,Ms,qs,Us,fp=A(()=>{"use strict";MS=!1;ke=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(MS)if(typeof t=="string")this.errors.push(t);else{let r=`${this.path} should be ${t.expect}`;this._optional&&t.expect!=="undefined"?r+=" or undefined, ":r+=", ",r+=`but got ${dp(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return Is(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:Is(this._default)}optional(){return this._optional=!0,this}};Es=class extends ke{validate(t){return this._optional&&t===void 0?!0:or(t)?or(this._min)&&t<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):or(this._max)&&t>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):or(this._greater)&&t<=this._greater?this.fail(`the value of ${this.path} should be greater than ${this._greater}`):this._isInt&&t!==Math.floor(t)?this.fail(`the value of ${this.path} should be integer but got ${t}`):!0:this.fail({expect:"number",actual:t})}min(t){return this._min=t,this}max(t){return this._max=t,this}isInt(t){return this._isInt=t,this}greater(t){return this._greater=t,this}},ks=class extends ke{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},Ss=class extends ke{validate(t){if(this._optional&&t===void 0)return!0;if(typeof t!="string")return this.fail({expect:"string",actual:t});if(or(this._maxLength)&&t.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if(or(this._minLength)&&t.length<this._minLength)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minLength}`);if(typeof this._pattern=="string"){if(!new RegExp(this._pattern).test(t))return this.fail(`${this.path} should match pattern "${this._pattern}"`)}else if(this._pattern&&!this._pattern.test(t))return this.fail(`${this.path} should match pattern "${this._pattern.toString()}"`);return!0}minLength(t){return this._minLength=t,this}maxLength(t){return this._maxLength=t,this}pattern(t){return this._pattern=t,this}},As=class extends ke{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},Ln=class extends ke{validate(t){return!0}},xs=class extends ke{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},Cs=class extends ke{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},Ts=class extends ke{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},Os=class extends ke{constructor(...t){super(),this._items=t}validate(t){if(this._optional&&t===void 0)return!0;if(!this._items.includes(t)){let r=this._items.map(n=>JSON.stringify(n)).join(", ");return this.fail(`expect ${this.path} to be one of ${r}, but got ${dp(t)}`)}return!0}},Ps=class extends ke{constructor(r){super();this._item=r}validate(r){if(this._optional&&r===void 0)return!0;if(!Array.isArray(r))return this.fail({expect:"array",actual:r});if(or(this._minItems)&&r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if(or(this._maxItems)&&r.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if(or(this._length)&&r.length!==this._length)return this.fail(`the length of ${this.path} should be equal to ${this._length}`);let n=this._item;if(!n)return!0;let i=!0;if(r.forEach((o,a)=>{if(n.path=`${this.path}[${a}]`,n.errors=this.errors,o===void 0&&n.hasDefault){r[a]=n.defaultValue;return}n.validate(o)||(n.hasFallback?r[a]=n.fallbackValue:i=!1)}),this._uniqueItems){let o=new Map;for(let a in r)o.has(r[a])?i=this.fail(`${this.path} should NOT have duplicate items (${this.path}[${o.get(r[a])}] and ${this.path}[${a}] are identical)`):o.set(r[a],a)}return i}minItems(r){return this._minItems=r,this}maxItems(r){return this._maxItems=r,this}uniqueItems(){return this._uniqueItems=!0,this}length(r){return this._length=r,this}},Rs=class extends ke{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(pp(r)!=="object")return this.fail({expect:"object",actual:r});let i=r,o=this._value;o.errors=this.errors;let a=!0;for(let s in i){let l=i[s];if(/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/.test(s)?o.path=`${this.path}.${s}`:o.path=`${this.path}["${s}"]`,!(l===void 0&&o._optional)){if(l===void 0&&o.hasDefault){i[s]=o.defaultValue;continue}o.validate(l)||(o.hasFallback?i[s]=o.fallbackValue:a=!1)}}return a}},Ns=class extends ke{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(pp(r)!=="object")return this.fail({expect:"object",actual:r});let n=r,i=!0;for(let o in this._object){let a=n[o],s=this._object[o];if(s.errors=this.errors,/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/.test(o)?s.path=`${this.path}.${o}`:s.path=`${this.path}["${o}"]`,!(s._optional&&a===void 0)){if(a===void 0&&s.hasDefault){n[o]=s.defaultValue;continue}s.validate(a)||(s.hasFallback?n[o]=s.fallbackValue:i=!1)}}return i}},Ds=class extends ke{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:dp(this.value),actual:r}):!0}},Ls=class extends ke{constructor(...t){super(),this._items=t}validate(t){if(t===void 0&&this._optional)return!0;let r=[],n=!1,i=this._items.length;for(let o=0;o<i;o++){let a=this._items[o];if(a.errors=[],a.path=this.path,!a.validate(t))r.push(a.errors.join("; "));else if(!n){n=!0;break}}if(!n){let o=r.join(`
|
|
621
|
+
or `);this.errors.push(o)}return n}},Ms=class extends ke{constructor(...t){super(),this._items=t;let r=0,n=t.length-1;for(;n>=0;n--){let i=t[n];if(i._optional||i.hasDefault)r+=1;else break}this._minItems=t.length-r}validate(t){if(t===void 0&&this._optional)return!0;if(!Array.isArray(t))return this.fail({expect:"array",actual:t});if(t.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);let r=!0;return this._items.forEach((n,i)=>{if(n.path=`${this.path}[${i}]`,n.errors=this.errors,t[i]===void 0&&n.hasDefault){t[i]=n.defaultValue;return}n.validate(t[i])||(n.hasFallback?t[i]=n._fallback:r=!1)}),r}},qs=class extends ke{validate(t){return t===void 0&&this._optional||t instanceof ArrayBuffer?!0:this.fail({expect:"arraybuffer",actual:t})}},Us=class extends ke{constructor(t){super(),this._ctor=t}validate(t){return t===void 0&&this._optional||t instanceof this._ctor?!0:this.fail({expect:`typedarray of ${this._ctor.name}`,actual:t})}}});function hp(e,t,r="param"){if(e.errors=[],e.path=r,up(!0),!e.validate(t)){let n=e.errors.join(`
|
|
622
|
+
`);throw e.errors.length=0,up(!1),new TypeError(n)}}var I,mp=A(()=>{"use strict";fp();fp();I={object(e){return new Ns(e)},array(e){return new Ps(e)},tuple(...e){return new Ms(...e)},literal(e){return new Ds(e)},or(...e){return new Ls(...e)},symbol(){return new As},record(e){return new Rs(e)},function(){return new Ts},boolean(){return new ks},string(){return new Ss},number(){return new Es},undefined(){return new xs},null(){return new Cs},unknown(){return new Ln},any(){return new Ln},as(){return new Ln},arraybuffer(){return new qs},enum(...e){return new Os(...e)},typedarray(e){return new Us(e)}}});var Fs,qS,US=A(()=>{"use strict";R();gt();mp();sn();Fs=1,qS=e=>{function t(n,i){return(...o)=>{var u,p,f,m;let a=Date.now(),s={method:n,trace_id:Fs};Fs+=1;let l="SUCCESS",c=`${n}:ok`,d=0;try{if(i.paramsSchema)try{hp(i.paramsSchema,o,"params")}catch(b){throw pc(`${n}:fail ${b.message}`)}let g=i.implement(...o),y=g,v=`${n}:ok`;if(g&&"code"in g){let{code:b,data:k,message:x}=g;l=b,y=k,v=x}return{code:l,message:v,data:y}}catch(g){let y=g;d=(p=(u=y.code)!=null?u:y.errNo)!=null?p:2e3,l="FAILURE";let v=(m=(f=y.message)!=null?f:y.errMsg)!=null?m:`${g}`;return c=`${n}:${l} ${v.replace(/^\S+:(fail|cancel)\s?/,"")}`,xe(new pi(c,d)),{code:l,message:c}}finally{let g=Date.now()-a}}}function r(n,i){return(...o)=>w(this,null,function*(){var p,f,m,g;let a=th(o)?o:[o],s=Date.now(),l={method:n,trace_id:Fs};Fs+=1;let c=`${n}:ok`,d="SUCCESS",u={code:d,message:c};try{if(i.paramsSchema)try{hp(i.paramsSchema,a,"params")}catch(b){throw pc(b.message)}let v=yield i.implement(...a);if(v&&"code"in v){let{code:b,data:k,message:x}=v;d=b,c=x,v=k}return Object.assign(u,{code:d,message:c,data:v}),u}catch(y){let v=y,b=(f=(p=v.code)!=null?p:v.errNo)!=null?f:2e3;d="FAILURE";let k=(g=(m=v.message)!=null?m:v.errMsg)!=null?g:`${y}`,x=`${n}:${d} ${k.replace(/^\S+:(fail|cancel)\s?/,"")}`;return Object.assign(u,{code:d,message:x}),xe(new pi(x,b)),u}finally{let y=Date.now()-s}})}return{createAPI:r,createSyncAPI:t}}});function vp(e){if(typeof e!="number"||e<=0)return"0.0.0";let t=e.toString(),r=0,n=0,i=0;return t.length>=1&&(r=parseInt(t.substring(0,1),10)),t.length>=3&&(n=parseInt(t.substring(1,3),10)),t.length>=5&&(i=parseInt(t.substring(3,5),10)),`${r}.${n}.${i}`}var FS=A(()=>{"use strict"});var Se,W,L,jS,it=A(()=>{"use strict";LS();tt();US();mp();_e();B();FS();({createAPI:Se,createSyncAPI:W}=qS(U)),L=DS("native"),{canIUseNative:jS}=Gf(()=>E.sdkInfo.nativeSDKVersionCode,()=>E.platform)});var JS,k5,S5,A5,x5,GS=A(()=>{"use strict";R();it();_e();B();JS=X(),k5="env",S5="getSystemInfoSync",A5=W(S5,{implement:()=>{var r;let e=j("envSync"),{data:t}=e;return{system:t.deviceInfo.system,platform:t.deviceInfo.platform.toLowerCase(),version:t.sdkInfo.jssdkVersion,pixelRatio:t.deviceInfo.pixelRatio,language:t.deviceInfo.lang,brand:t.deviceInfo.brand,appName:(r=t.hostInfo)==null?void 0:r.appName,SDKVersion:t.sdkInfo.jssdkVersion,viewport:{statusBarHeight:E.viewport.statusBarHeight,navigationBarHeight:E.viewport.navigationBarHeight}}}}),x5=W(k5,{implement:()=>{var t;let e=j("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});JS.registerCommand("API.getSystemInfoSync",A5);JS.registerCommand("API.env",x5);L("env",{version:"1.0.0"});L("getSystemInfoSync",{version:"1.0.0",properties:{viewport:"1.0.33"}})});var BS=h(gp=>{"use strict";R();it();gt();_e();tt();B();var C5="exitGame",T5="onReady",O5="onJoliboxShow",P5="onJoliboxHide",js=X(),Js=Go(xe),R5=Se(C5,{paramsSchema:I.tuple(I.function(),I.boolean().optional().default(!1)),implement:(e,t=!1)=>w(gp,null,function*(){Js(e).call(gp),on(E.shouldInterupt)&&!E.shouldInterupt&&E.from&&zf("onRetentionResult",{shouldStay:t},E.from,!0),t||E.setDoExitDirectly(),yield ye("exitAppAsync")})}),N5=W(O5,{paramsSchema:I.tuple(I.function()),implement(e){let t=Js(e);et("onJoliboxEnterForeground",()=>{t.call(this),hi.emit("visible",!0)})}}),D5=W(P5,{paramsSchema:I.tuple(I.function()),implement(e){let t=Js(e);et("onJoliboxEnterBackground",()=>{t.call(this),hi.emit("visible",!1)})}}),L5=W(T5,{paramsSchema:I.tuple(I.function()),implement(e){let t=Js(e);ne.on("LifecycleEvent.onReady",r=>{t(r)})}});js.registerCommand("LifecycleSDK.exit",R5);js.registerCommand("LifecycleSDK.onReady",L5);js.registerCommand("LifecycleSDK.onJoliboxShow",N5);js.registerCommand("LifecycleSDK.onJoliboxHide",D5);L("lifeCycle.exit",{version:"1.0.0"});L("lifeCycle.onReady",{version:"1.0.0"});L("lifeCycle.onJoliboxShow",{version:"1.0.0"});L("lifeCycle.onJoliboxHide",{version:"1.0.0"})});function HS(e){let t={};if(!Mr(e))return t;for(let[r,n]of Object.entries(e)){let i=r.toLocaleLowerCase();n?typeof n=="object"?t[i]=Object.prototype.toString.call(n):t[i]=String(n):t[i]=""}return t}function VS(e="GET"){if(e==="")return"POST";let t=e.toUpperCase();return["GET","OPTIONS","HEAD","POST","PUT","DELETE","TRACE","CONNECT","PATCH"].includes(t)?t:"GET"}function $S(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function WS(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!Mr(r))return e;let[n,i=""]=e.split("?"),o=new URLSearchParams(i);for(let[s,l]of Object.entries(r))l!=null&&o.append(s,String(l));let a=o.toString();return a?`${n}?${a}`:n}var zS=A(()=>{"use strict";R()});var M5,q5,yp,_p,KS,U5,F5,j5,YS=A(()=>{"use strict";sn();hc();it();zS();R();gt();B();M5=15,q5=Ho("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:E.baseApiHost}),yp=0,_p=[],KS=Go(xe),U5=(e,t)=>{let r=e.filter(t),n=e.filter(i=>!t(i));return e.length=0,e.push(...n),r},F5=e=>{let t=new Ot,r=()=>{};return W("request",{paramsSchema:I.tuple(I.object({url:I.string(),method:I.string(),headers:I.object().optional(),data:I.or(I.object(),I.array()).optional(),query:I.object().optional(),dataType:I.string().default("json"),responseType:I.string().default("text"),enableCache:I.boolean().default(!1),appendHostCookie:I.boolean().default(!0),timeout:I.number().default(3e4),success:I.function(),fail:I.function()})),implement(i){let o=()=>w(this,null,function*(){var s,l,c;let a=KS(i.fail);try{if(yp+=1,t.state!=="pending")return;let{data:d,dataType:u,responseType:p,enableCache:f,appendHostCookie:m}=i,g=HS((s=i.headers)!=null?s:{}),y=VS(i.method),v=$S(i.timeout),b=WS(i.url,y,d),k=KS(i.success),x=Object.assign({},i,{method:y,header:m?void 0:g,data:y==="GET"||y==="HEAD"?void 0:d,enableCache:f,query:(l=i.query)!=null?l:{},dataType:u,responseType:p,appendHostCookie:m});v&&(x.timeout=v);let P=q5(b,x);{let{response:C}=yield P,{code:S,data:O,message:J}=C;if(O&&typeof O=="object"&&"status"in O&&O.status!==200)throw hr({code:O.status||-1,msg:`request:fail status ${O.status}`});t.resolve({code:S!=null?S:"SUCCESS",data:O,message:J!=null?J:"request:ok"}),k({code:"SUCCESS",message:"request:ok",data:O})}}catch(d){t.reject(d),a({code:"FAILURE",message:"httpRequst: failed"})}finally{yp-=1,(c=_p.shift())==null||c()}});return yp>=M5?(r=()=>{U5(_p,a=>a===o)},_p.push(o)):o(),t.promise}})(e),{abort(){t.reject(hr({code:-1,msg:"request:fail abort"})),r()}}},j5=X();j5.registerCommand("HttpSDK.request",F5);L("request",{version:"1.0.0"})});function QS(e){let t=Object.prototype.toString.call(e).split(" ")[1].split("]")[0].toLocaleLowerCase();return t==="array"&&(t="object"),V5.includes(t)?t:""}function XS(e,t){try{switch(t){case"string":return e;case"object":return JSON.parse(e);case"number":return parseFloat(e);case"boolean":return e==="true";default:return""}}catch(r){return""}}function ZS(e,t){try{switch(t){case"string":case"number":case"boolean":return`${e}`;case"object":return JSON.stringify(e);default:return""}}catch(r){return""}}var Gs,J5,G5,B5,H5,jY,JY,V5,bp,eA,wp=A(()=>{"use strict";it();_e();R();yt();B();Gs=X(),J5=Se("getLocalStorage",{paramsSchema:I.tuple(I.string()),implement(e){return w(this,null,function*(){let{response:t}=yield te(`/api/games/user-storage/${E.mpId}`,{method:"GET",responseType:"json",appendHostCookie:!0,query:{key:e}}),{data:{code:r,message:n,data:i}}=yield t;if(r==="SUCCESS")return{code:r,message:n,data:i==null?void 0:i.value};try{let{data:{data:o,dataType:a}}=yield ye("getLocalStorageAsync",{key:e}),s=XS(o,a);return{code:r,message:`${n}. fallback to native`,data:s}}catch(o){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get local storage failed",data:null}}})}});Gs.registerCommand("StorageSDK.getItem",J5);L("storage.getItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});G5=Se("setStorage",{paramsSchema:I.tuple(I.string(),I.or(I.string(),I.boolean(),I.number())),implement(e,t){return w(this,null,function*(){let r=E.mpId,n=typeof t=="string"?t:String(t),{response:i}=yield te(`/api/games/user-storage/${r}`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e,value:n}}),{data:{code:o,message:a}}=i,s=QS(t),l=ZS(t,s);return yield ye("setLocalStorageAsync",{key:e,data:l,dataType:s}),o=="SUCCESS"?{code:o,message:a}:{code:o,message:`${a}. fallback to native`}})}});Gs.registerCommand("StorageSDK.setItem",G5);L("storage.setItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});B5=Se("removeStorage",{paramsSchema:I.tuple(I.string()),implement(e){return w(this,null,function*(){let t=E.mpId,{response:r}=yield te(`/api/games/user-storage/${t}/remove`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e}}),{data:{code:n,message:i}}=r;return yield ye("removeLocalStorageAsync",{key:e}),n==="SUCCESS"?{code:n,message:i}:{code:n,message:"[Jolibox SDK] remove item succ"}})}});Gs.registerCommand("StorageSDK.removeItem",B5);L("storage.removeItem",{version:"1.0.0",properties:{key:"1.0.0"}});H5=Se("clearStorage",{implement(){return w(this,null,function*(){let e=E.mpId,{response:t}=yield te(`/api/games/user-storage/${e}/clear`,{method:"POST",appendHostCookie:!0});ye("clearLocalStorageAsync");let{data:{code:r,message:n}}=t;return r==="SUCCESS"?{code:r,message:n}:{code:r,message:`${n}.fallback to native`}})}});Gs.registerCommand("StorageSDK.clear",H5);L("storage.clear",{version:"1.0.0"});jY=Se("getStorageInfo",{implement(){return w(this,null,function*(){let{data:e}=yield ye("getStorageInfoAsync");return e})}});L("getStorageInfo",{version:"1.0.0",success:{keys:"1.0.0",currentSize:"1.0.0",limitSize:"1.0.0"}});JY=W("getStorageInfoSync",{implement(){return j("getStorageInfoSync")}}),V5=["string","number","boolean","object",""];bp=Se("getGlobalStorage",{paramsSchema:I.tuple(I.string()),implement(e){return w(this,null,function*(){try{let{data:{data:t,dataType:r}}=yield ye("getGlobalStorageAsync",{key:e});return{code:"SUCCESS",message:"success",data:XS(t,r)}}catch(t){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get global storage failed",data:null}}})}}),eA=Se("setGlobalStorage",{paramsSchema:I.tuple(I.string(),I.or(I.string(),I.boolean(),I.number(),I.array())),implement(e,t){return w(this,null,function*(){try{let r=QS(t),n=ZS(t,r);return yield ye("setGlobalStorageAsync",{key:e,data:n,dataType:r}),{code:"SUCCESS",message:"success"}}catch(r){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] set global storage failed"}}})}})});var $5,W5,z5,Ip,tA=A(()=>{"use strict";R();_e();it();$5=W("showKeyboard",{paramsSchema:I.tuple(I.object({defaultValue:I.string().optional().default(""),multiple:I.boolean().optional().default(!1),maxLength:I.unknown().optional().default(1e5)})),implement(e){var n;let t=Math.floor((n=Number(e.maxLength))!=null?n:1e5),{defaultValue:r}=e;r&&t&&(r=r.slice(0,t)),j("showKeyboardSync",F(T({},e),{defaultValue:r,maxLength:t}))}});L("keyboard.showKeyboard",{version:"1.0.0",properties:{params:{defaultValue:"1.0.0",multiple:"1.0.0",confirmHold:"1.0.0",confirmType:"1.0.0",maxLength:"1.0.0"}},success:{errMsg:"1.0.0"}});W5=W("updateKeyboard",{paramsSchema:I.tuple(I.object({value:I.string()})),implement(e){j("updateKeyboardSync",e)}});L("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});z5=W("hideKeyboard",{implement(){j("hideKeyboardSync")}});L("keyboard.hideKeyboard",{version:"1.0.0"});Ip=X();Ip.registerCommand("KeyboardSDK.showKeyboard",$5);Ip.registerCommand("KeyboardSDK.updateKeyboard",W5);Ip.registerCommand("KeyboardSDK.hideKeyboard",z5)});var rA=h(Bs=>{"use strict";R();it();tt();var Ep=X(),K5=Se("levelFinished",{paramsSchema:I.tuple(I.object({levelId:I.or(I.string(),I.number()),duration:I.number().optional(),rating:I.number().optional(),score:I.number().optional(),variation:I.string().optional()})),implement:e=>w(Bs,null,function*(){let{levelId:t,duration:r,rating:n,score:i,variation:o}=e,a=[];a.push(It.tracker("LevelFinished",{levelId:t,duration:r,rating:n,score:i,variation:o})),a.push(It.reporter({event:"COMPLETE_GAME_LEVEL",extraParams:{inGameInfo:{levelId:t,duration:r,rating:n,score:i}}})),yield Promise.all(a)})}),Y5=Se("gamePlayEnded",{paramsSchema:I.tuple(I.object({duration:I.number().optional(),rating:I.number().optional(),score:I.number(),variation:I.string().optional()})),implement:e=>w(Bs,null,function*(){let{duration:t,rating:r,score:n,variation:i}=e,o=[];o.push(It.tracker("GamePlayEnded",{duration:t,rating:r,score:n,variation:i})),o.push(It.reporter({event:"GAME_ENDED",extraParams:{inGameInfo:{duration:t,rating:r,score:n}}})),yield Promise.all(o)})}),Q5=Se("levelUpgrade",{paramsSchema:I.tuple(I.object({levelId:I.or(I.string(),I.number()),name:I.string().optional()})),implement:r=>w(Bs,[r],function*({levelId:e,name:t}){let n=[];n.push(It.tracker("LevelUpgrade",{name:t,levelId:e})),n.push(It.reporter({event:"GAME_LEVEL_UP",extraParams:{inGameInfo:{levelId:e,levelName:t}}})),yield Promise.all(n)})});Ep.registerCommand("TaskTrackerSDK.levelFinished",K5);Ep.registerCommand("TaskTrackerSDK.gamePlayEnded",Y5);Ep.registerCommand("TaskTrackerSDK.levelUpgrade",Q5);L("TaskTrackerSDK.onLevelFinished",{version:"1.1.25",properties:{params:{levelId:"1.1.25",duration:"1.1.25",rating:"1.1.25",score:"1.1.25",variation:"1.1.50"}}});L("TaskTrackerSDK.onGamePlayEnded",{version:"1.1.25",properties:{params:{duration:"1.1.25",rating:"1.1.25",score:"1.1.25",variation:"1.1.50"}}});L("TaskTrackerSDK.onLevelUpgrade",{version:"1.1.25",properties:{params:{levelId:"1.1.25",name:"1.1.25"}}})});var kp,Sp,Ap,X5,nA,Hs=A(()=>{"use strict";B();_e();it();R();sn();L("login",{version:"1.0.0",properties:{force:"1.0.0"},success:{errMsg:"1.0.0",code:"1.0.0",token:"1.0.0",isLogin:"1.0.0"}});L("checkSession",{version:"1.0.0",success:{errMsg:"1.0.0"}});kp=new Map;et("onLoginStateChange",({isLogin:e,token:t,uuid:r,isFirstLogin:n,extra:i})=>{let o=kp.get(r);o&&(o.resolve({isLogin:e,token:t,isFirstLogin:n,extra:i}),kp.delete(r))});Sp=(e,t=!1)=>w(void 0,null,function*(){var u;let{data:{isLogin:r}}=yield ye("checkLoginAsync");if(r)return{isLogin:!0,token:(u=E.hostUserInfo)==null?void 0:u.token};let{skipLogin:n,triggerFrom:i}=e!=null?e:{},o=j("loginSync",{skipLogin:n,triggerFrom:i}),{data:{uuid:a}}=o;if(!a)throw hr({code:-1,msg:"login failed"});let s=new Ot;kp.set(a,s);let l=yield s.promise;E.onEnvConfigChanged({hostUserInfo:l});let p=l,{extra:c}=p,d=je(p,["extra"]);return ne.emit("onLoginComplete",d),t?l:d}),Ap=Se("login",{paramsSchema:I.tuple(I.object({skipLogin:I.boolean().optional(),triggerFrom:I.string().optional()}).optional()),implement(e){return w(this,null,function*(){return yield Sp(e!=null?e:{})})}}),X5=Se("checkSession",{implement(){return w(this,null,function*(){let{data:{isLogin:e}}=yield ye("checkLoginAsync");return{isLogin:e}})}}),nA=X();nA.registerCommand("API.login",Ap);nA.registerCommand("API.checkSession",X5)});var iA,oA=A(()=>{"use strict";iA=e=>{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),n=r+24*60*60*1e3;return e.filter(i=>i>=r&&i<n)}});function Mn(e){return t=>w(this,null,function*(){var l;let{dailyMaxPopUps:r,minInterval:n}=t,i=yield bp(e);if(!i.data)return{canShow:!0,isFirst:!0};let o=aA(i.data),a=iA(o);if(r&&a.length>=r)return{canShow:!1,isFirst:!1};let s=Date.now();return console.log("todayFrequencies",a,n,s-a[0]),n&&s-((l=a==null?void 0:a[0])!=null?l:0)<n?{canShow:!1,isFirst:!1}:{canShow:!0,isFirst:!1}})}function qn(e){return()=>w(this,null,function*(){var i;let t=Date.now(),r=yield bp(e),n=aA((i=r.data)!=null?i:"[]");n.push(t),n.sort((o,a)=>a-o).splice(8),yield eA(e,JSON.stringify(n))})}var aA,sA,lA,cA,uA,dA,pA,fA,hA,mA,vA,gA,yA,Vs=A(()=>{"use strict";wp();oA();aA=e=>{let t;try{t=JSON.parse(e)}catch(r){t=[]}return t};sA=Mn("joli_coin_use_modal_frequency"),lA=Mn("joli_coin_payment_frequency"),cA=Mn("joli_coin_unlogin_modal_frequency"),uA=Mn("joli_gem_use_modal_frequency"),dA=Mn("joli_gem_payment_frequency"),pA=Mn("joli_gem_unlogin_modal_frequency");fA=qn("joli_coin_use_modal_frequency"),hA=qn("joli_coin_payment_frequency"),mA=qn("joli_coin_unlogin_modal_frequency"),vA=qn("joli_gem_use_modal_frequency"),gA=qn("joli_gem_payment_frequency"),yA=qn("joli_gem_unlogin_modal_frequency")});var xp,$s,Cp=A(()=>{"use strict";yt();xp=Promise.resolve(),$s=(e,t)=>w(void 0,null,function*(){xp=xp.then(()=>w(void 0,null,function*(){yield te(t,{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield xp})});var Ws,zs,xt,Ks,Qr,Tr,ar,Ys,Un,Z5,q,Fn,jn,Xe=A(()=>{"use strict";R();Ws="UNLOCK_OPTIONS_CHANGED",zs="INVOKE_PAYMENT",xt="ON_PAYMENT_RESULT",Ks="ON_USE_MODAL_EVENT",Qr="ON_USE_MODAL_RESULT",Tr="ON_USE_MODAL_FREQUENCY",ar="ON_USE_UNLOGIN_MODAL_EVENT",Ys="INVOKE_UNLOGIN_MODAL_EVENT",Un=new Nt,Z5=()=>({on:Un.on.bind(Un),off:Un.off.bind(Un),emit:Un.emit.bind(Un)}),q=Z5(),Fn={charge:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},useJolicoin:{dailyMaxPopUps:2,minInterval:8*60*60*1e3}},jn={show:!0,minInterval:8*60*60*1e3}});function ot(e,t){let r=null,n=null,i=null,o=()=>{if(i){r=Promise.resolve(i);return}r=new Promise(a=>{n=a})};return o(),e.on(t,(...a)=>{let s=a[0];i=s,n&&(n(s),n=null)}),{getData:()=>(r||o(),r),getCachedData:()=>i,clearCache:()=>{i=null,r=null},getFreshData:()=>(i=null,r=null,o(),r),updateData:a=>{if(i)return i=T(T({},i),a),r=Promise.resolve(i),n&&(n(i),n=null),i}}}var Or=A(()=>{"use strict"});var wA=h(Tp=>{"use strict";Vs();Cp();Xe();Xe();ir();tt();R();Or();var e3={JOLI_COIN:{frequencyConfigKey:"useJolicoin",trackEvents:{popupShow:"unlock_popup_show",coinUnlock:"coin_unlock_click",adUnlock:"ad_unlock_click"},frequencyChecker:sA,frequencyUpdater:fA,apiEndpointAutoDeduct:"/api/joli-coin/user-config"},JOLI_GEM:{frequencyConfigKey:"useJolicoin",trackEvents:{popupShow:"gem_unlock_popup_show",coinUnlock:"gem_unlock_click",adUnlock:"gem_ad_unlock_click"},frequencyChecker:uA,frequencyUpdater:vA,apiEndpointAutoDeduct:"/api/joli-gem/user-config"}},_A=ho(),bA=ot(q,Tr);bA.getData();q.on(Ks,(e,t)=>w(Tp,null,function*(){let r=t.currency,n=e3[r];if(e.includes("ADS-")){yield _A.show({duration:3e3});let l=yield bA.getData(),{canShow:c,isFirst:d}=yield n.frequencyChecker(l.joliCoinUseAndCharge[n.frequencyConfigKey]);console.log(`${r} modal show by frequency`,c,d),_A.hide();let{balance:u}=t.userCurrency;if(u>=t.quantity&&t.enableAutoDeduct&&!d){q.emit(Qr,{useModalResult:"CONFIRM"});return}if(!c){q.emit(Qr,{useModalResult:"FAILED"});return}}U(n.trackEvents.popupShow,{eventType:G.View,targetType:"game",currency:r});let{userCurrency:i,enableAutoDeduct:o,quantity:a}=t,s=dS({data:{enableAutoDeduct:o,userCurrency:i,quantity:a,currency:r},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{U(n.trackEvents.coinUnlock,{targetType:"game",eventType:G.Click,coinConsume:t.quantity,ifAutoUnlock:t.enableAutoDeduct,currency:r}),q.emit(Qr,{useModalResult:"CONFIRM"}),s.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:l})=>{l==="FAILED"&&U(n.trackEvents.adUnlock,{targetType:"game",eventType:G.Click,currency:r}),q.emit(Qr,{useModalResult:(l!=null?l:"")==="CANCEL"?"CANCEL":"FAILED"}),s.destroy()}},onEnableDeductChanged:l=>w(Tp,null,function*(){yield $s(l,n.apiEndpointAutoDeduct)})}});yield n.frequencyUpdater()}))});function IA(){let e=new Map;return{registerPaymentHandler(r,n){e.set(r,n)},invokePayment(r,...n){return w(this,null,function*(){let i=e.get(r);if(!i)return{code:"FAILED",message:`[joliboxSDK]: ${r} payment not supported in this platform`};try{return yield i(...n)}catch(o){return xe(o),{code:"FAILED",message:`[joliboxSDK]: paymenterror ${o}`}}})}}}var EA=A(()=>{"use strict";gt()});var Qs=A(()=>{"use strict"});var t3,Jn,Pr,r3,Xr,Op=A(()=>{"use strict";Qs();R();B();yt();t3=()=>{let[e,t]=[lh,uh].map(r=>(n,i,o)=>new r(n,i,o));return{createPaymentError:e,createPaymentInternalError:t}},{createPaymentError:Jn,createPaymentInternalError:Pr}=t3(),r3=E.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",Xr=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startPayment=t=>w(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw Jn(n,1001);return yield this.pay()});this.cancelOrder=t=>w(this,null,function*(){var n,i;let{response:r}=yield te(`/api/orders/${t}/cancel`,{method:"POST",data:{}});if(r.code!=="SUCCCESS")throw Jn((i=(n=r.message)!=null?n:r.errMsg)!=null?i:"",1003)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",E.deviceInfo.platform),t.set("joliSource",E.encodeJoliSourceQuery(T({},this.generatePaymentContext()))),`${r3}//payment/callback?${t.toString()}`}}get orderId(){return this._orderId}get status(){return this._orderStatus}}});var Pp,SA,AA=A(()=>{"use strict";yt();Op();Qs();Pp=class extends Xr{constructor(r){super();this.productId=r;this.generatePaymentContext=()=>({type:"JOLI_COIN_ORDER_CONTEXT",state:"TO_VALIDATE",productId:this.productId,orderId:this.orderId});this.pay=()=>w(this,null,function*(){let r=this.generateCallbackUrl();return console.info("callbackUrl",r),{code:"SUCCESS",message:"jolicoin payment success"}})}placeOrder(r){return w(this,null,function*(){var n,i,o,a;try{let{response:s}=yield te("/api/orders/checkout/joli-coin",{method:"POST",data:{productId:r.productId}});if(s.code!=="SUCCESS")throw Jn((i=(n=s.errMsg)!=null?n:s.message)!=null?i:"",1002);return{code:"SUCCESS",message:(o=s.message)!=null?o:"placeorder jolicoin success",data:s.data}}catch(s){throw console.info("[JoliboxSDK] placeorder failed",s),Pr((a=JSON.stringify(s))!=null?a:"jolicoin placeorder failed",1002)}})}},SA=()=>{let e=new Map;return t=>w(void 0,null,function*(){let r=e.get(t);return r||(r=new Pp(t),e.set(t,r)),yield r.startPayment({productId:t}),{code:"SUCCESS",message:"jolicoin payment success"}})}});var xA,CA=A(()=>{"use strict";xA={SUCCESS:"unlockSuccess",FAIL_NOT_LOGIN:"unlockFailedNotLogin",FAIL_PAYING:"unlockFailedPaying",FAIL_PRODUCT_EMPTY:"unlockFailedProductIdNotFound",FAIL_GET_PRODUCT_INFO:"unlockFailedProductInvalid",FAIL_LAUNCH_BILLING:"unlockFailedLaunch",FAIL_TRANSACTION:"unlockFailedTransaction",FAIL_VERIFY:"unlockFaileVerify",TRANSACTION_PENDING:"transactionPending",FAILED:"unlockFailed"}});var Rp,TA,Np,Dp,n3,Lp,OA=A(()=>{"use strict";yt();Op();Qs();_e();R();B();ir();CA();Rp=new Map;et("onPaymentStateChange",e=>{console.info("onPaymentStateChange",e);let{orderUUID:t,status:r,totalAmount:n,orderResponse:i}=e,o=Rp.get(t);if(o){if(r==="SUCCESS")Cr("{slot-success} {slot-i18n-jolicoin.unlockSuccess}",{position:"center",duration:3e3}),o.resolve({code:"SUCCESS",message:"jolicoin payment success",data:{totalAmount:n}});else{if(r==="FAILED"&&rh(i==null?void 0:i.errNo)&&(i==null?void 0:i.errNo)!==0)throw Pr(`jolicoin payment failed: ${i==null?void 0:i.errMsg}`,1002);let a=xA[r];a&&Cr(`{slot-error} {slot-i18n-jolicoin.${a}}`,{position:"center",duration:3e3}),o.resolve({code:"FAILED",message:"jolicoin payment failed"})}Rp.delete(t)}});TA=e=>w(void 0,null,function*(){var n,i;let t=new Ot,r;try{let o=yield ye("requestPaymentSync",{paymentBody:{appStoreProductId:e.appStoreProductId,appAccountToken:e.appAccountToken}});if(r=(n=o.data)==null?void 0:n.orderUUID,console.info("---payInApp---",o),!r)throw Pr("orderUUID is null",1002);Rp.set(r,t)}catch(o){throw Pr((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),Np=class extends Xr{constructor(r,n){super();this.productId=r;this.appStoreProductId=n;this.generatePaymentContext=()=>({type:"JOLI_COIN_IAP_CONTEXT",state:"TO_VALIDATE",productId:this.productId,appStoreProductId:this.appStoreProductId});this.pay=()=>w(this,null,function*(){return yield TA({appStoreProductId:this.appStoreProductId})})}placeOrder(r){return w(this,null,function*(){return{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},Dp=class extends Xr{constructor(r,n){super();this.productId=r;this.appStoreProductId=n;this.generatePaymentContext=()=>({type:"JOLI_COIN_IAP_CONTEXT",state:"TO_VALIDATE",productId:this.productId,appStoreProductId:this.appStoreProductId});this.pay=()=>w(this,null,function*(){return yield TA({appStoreProductId:this.appStoreProductId,appAccountToken:this.appAccountToken})})}placeOrder(r){return w(this,null,function*(){var a;console.log("----start place order for ios----");let{response:n}=yield te("/api/orders/iap-init",{method:"GET",appendHostCookie:!0}),{data:i,code:o}=n!=null?n:{};if(console.log("----iap init----",i,o),i.code!=="SUCCESS")throw Pr("iap-init failed",1002);return this.appAccountToken=(a=i==null?void 0:i.data)==null?void 0:a.iapToken,{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},n3={android:Np,ios:Dp},Lp=()=>{let e=new Map;return t=>w(void 0,null,function*(){let{productId:r,appStoreProductId:n}=t,i=e.get(r);if(!i){let s=n3[E.platform];if(!s)throw Pr("platform not supported",1002);i=new s(r,n),e.set(r,i)}let{code:o,message:a}=yield i.startPayment({productId:r,appStoreProductId:n});if(o!=="SUCCESS")throw Jn(a,1002);return{code:"SUCCESS",message:"jolicoin payment success"}})}});var mo,PA=A(()=>{"use strict";EA();AA();OA();mo=IA();mo.registerPaymentHandler("JOLI_COIN",SA());mo.registerPaymentHandler("JOLI_COIN_IAP",Lp());mo.registerPaymentHandler("JOLI_GEM_IAP",Lp())});var NA=h(vo=>{"use strict";Xe();ir();yt();B();Hs();R();Vs();PA();ir();it();_e();R();tt();Cp();Or();var i3={JOLI_COIN:{frequencyConfigKey:"charge",trackEvents:{modalShow:"coinorder_show",orderClick:"coinorder_click",payEnsure:"order_pay_ensure",payResult:"order_pay_result",adUnlock:"ad_unlock_click"},frequencyChecker:lA,frequencyUpdater:hA,apiEndpoint:"/api/joli-coin/balance-detail",apiEndpointAutoDeduct:"/api/joli-coin/user-config",paymentType:"JOLI_COIN_IAP"},JOLI_GEM:{frequencyConfigKey:"charge",trackEvents:{modalShow:"gem_order_show",orderClick:"gem_order_click",payEnsure:"gem_pay_ensure",payResult:"gem_pay_result",adUnlock:"gem_ad_unlock_click"},frequencyChecker:dA,frequencyUpdater:gA,apiEndpoint:"/api/joli-gem/balance-detail",apiEndpointAutoDeduct:"/api/joli-gem/user-config",paymentType:"JOLI_GEM_IAP"}},Gn=ho(),o3=ot(q,Tr);q.on(zs,(e,t)=>w(vo,null,function*(){var r,n;try{let i=t.currency,o=i3[i];if(!jS("requestPaymentSync:paymentBody:appStoreProductId")){console.info("requestPaymentSync:paymentBody:appStoreProductId not supported"),setTimeout(()=>{q.emit(xt,{paymentResult:"FAILED",currency:i})},0);return}if(e.includes("ADS-")){yield Gn.show({duration:3e3});let l=yield o3.getData(),{canShow:c}=yield o.frequencyChecker(l.joliCoinUseAndCharge[o.frequencyConfigKey]);if(console.log(`${i} payment show by frequency`,c),Gn.hide(),!c){q.emit(xt,{paymentResult:"FAILED",currency:i});return}console.log("show by frequency")}yield Gn.show({duration:3e3});let a=yield RA(o.apiEndpoint);if(Gn.hide(),!a){q.emit(xt,{paymentResult:"FAILED",currency:i});return}U(o.trackEvents.modalShow,{targetType:"game",eventType:G.View,currency:i});let s=pS({data:{userCurrency:t.userCurrency,quantity:t.quantity,currency:i,paymentChoices:(n=(r=a.paymentChoices)==null?void 0:r.map(l=>{var c;return F(T({},l),{totalAmountStr:(c=l.totalAmountStr)!=null?c:""})}))!=null?n:[],enableAutoDeduct:a.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:l=>w(vo,null,function*(){var u,p,f,m,g,y,v,b;if(U(o.trackEvents.payEnsure,{targetType:"game",eventType:G.Click,payWay:"app_iap",coinAmount:t.quantity,currency:i,orderPrice:(p=(u=a.paymentChoices.find(k=>k.productId===l))==null?void 0:u.totalAmountStr)!=null?p:""}),!((f=E.hostUserInfo)!=null&&f.isLogin)){let{data:k}=yield Ap({skipLogin:!0});if(!(k!=null&&k.isLogin)){console.log("login failed");return}let x=yield RA(o.apiEndpoint);if(((m=x==null?void 0:x.balance)!=null?m:0)>=t.quantity){q.emit(xt,{paymentResult:"SUCCESS",currency:i}),s.destroy();return}}console.log("invokeNativePayment",l);let c=(y=(g=a==null?void 0:a.paymentChoices)==null?void 0:g.find(k=>k.productId===l))==null?void 0:y.appStoreProductId;if(!c){q.emit(xt,{paymentResult:"FAILED",currency:i}),s.destroy();return}yield Gn.show({duration:3e3});let{code:d}=yield mo.invokePayment(o.paymentType,{productId:l,appStoreProductId:c});if(Gn.hide(),U(o.trackEvents.payResult,{eventType:G.Other,targetType:"game",payWay:"app_iap",coinAmount:t.quantity,currency:i,orderPrice:(b=(v=a.paymentChoices.find(k=>k.productId===l))==null?void 0:v.totalAmountStr)!=null?b:"",payResult:d}),console.log("payment result",d),d!=="SUCCESS"){console.info("[JoliboxSDK] payment failed in payment.invokePaymet");return}q.emit(xt,{paymentResult:"SUCCESS",currency:i}),s.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:l})=>{q.emit(xt,{paymentResult:(l!=null?l:"")==="CANCEL"?"CANCEL":"FAILED",currency:i}),U(o.trackEvents.adUnlock,{targetType:"game",eventType:G.Click,currency:i}),s.destroy()}},onEnableDeductChanged:l=>w(vo,null,function*(){yield $s(l,o.apiEndpointAutoDeduct)})},onSelect:l=>{var c,d;U(o.trackEvents.orderClick,{targetType:"game",eventType:G.Click,coinAmount:t.quantity,currency:i,orderPrice:(d=(c=a.paymentChoices.find(u=>u.productId===l))==null?void 0:c.totalAmountStr)!=null?d:""})}});yield o.frequencyUpdater()}catch(i){console.info("payment failed",i),q.emit(xt,{paymentResult:"FAILED",currency:t.currency})}}));var a3=(e,t)=>{Object.keys(t).forEach(r=>{let n=e.paymentChoices.find(i=>i.appStoreProductId===r);n&&(n.totalAmountStr=t[r].price)}),e.paymentChoices=e.paymentChoices.filter(r=>!Xl(r.totalAmountStr))},RA=e=>w(vo,null,function*(){var n,i,o,a,s,l,c,d,u,p;let{response:t}=yield te(e,{method:"GET",appendHostCookie:!0,responseType:"json"});console.info("getBalenceDetails",t);let{data:r}=yield ye("requestProductDetailsAsync",{appStoreProductIds:(a=(o=(i=(n=t.data)==null?void 0:n.data)==null?void 0:i.paymentChoices)==null?void 0:o.filter(f=>typeof f.appStoreProductId=="string").map(f=>f.appStoreProductId))!=null?a:[]});if((s=t.data)!=null&&s.data&&r&&a3((l=t.data)==null?void 0:l.data,r),console.info("productDetails",(c=t.data)==null?void 0:c.data),((u=(d=t.data)==null?void 0:d.data)==null?void 0:u.paymentChoices.length)===0)throw new Error("paymentChoices is empty");return(p=t.data)==null?void 0:p.data})});var LA=h(Xs=>{"use strict";Xe();Or();Vs();yt();gt();R();Hs();ir();tt();var s3={JOLI_COIN:{frequencyChecker:cA,frequencyUpdater:mA,trackEvents:{modalExpose:"LoginGuideModal",clickConfirm:"LoginGuideModal",clickConfirmLogin:"LoginGuideModal",modalHide:"LoginGuideModal",clickClose:"LoginGuideModal",clickWatchAds:"LoginGuideModal"},toastMessage:{i18nKey:"{slot-i18ntran-loginGuide.rewardTips}",usedText:"Jolicoin Used"}},JOLI_GEM:{frequencyChecker:pA,frequencyUpdater:yA,trackEvents:{modalExpose:"GemLoginGuideModal",clickConfirm:"GemLoginGuideModal",clickConfirmLogin:"GemLoginGuideModal",modalHide:"GemLoginGuideModal",clickClose:"GemLoginGuideModal",clickWatchAds:"GemLoginGuideModal"},toastMessage:{i18nKey:"{slot-i18ntran-loginGuide.gemRewardTips}",usedText:"Gem Used"}}},DA=ot(q,Tr);DA.getData();q.on(Ys,(e,t)=>w(Xs,null,function*(){var r;try{let n=t.currency,i=s3[n];if(e.includes("ADS-")){let s=yield DA.getData();if(console.log(`${n} unlogin guide config`,s.loginGuide),!s.loginGuide.show){q.emit(ar,{result:"NOT_SUPPORT"});return}let{canShow:l}=yield i.frequencyChecker(s.loginGuide);if(console.log(`${n} canShowUseModal`,l),!l){q.emit(ar,{result:"FAILED"});return}}let{firstLogin:o}=(r=yield l3())!=null?r:{};if(!(o!=null&&o.reward)){console.log("[JoliboxSDK] unlogin modal reward is empty"),q.emit(ar,{result:"NOT_SUPPORT"});return}U(i.trackEvents.modalExpose,{eventType:G.Expose,currency:n},G.Expose);let a=fS({data:{rewardType:e,rewardValue:o.reward.rewardValue,currency:t.currency},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>w(Xs,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 Sp({},!0);if(!s){console.log("login failed");return}if(U(i.trackEvents.clickConfirmLogin,{type:"click_confirm_login",isFirstLogin:c,eventType:G.Click,currency:n},G.Click),c&&((d=l==null?void 0:l.firstLogin)!=null&&d.reward)){let{rewardValue:m}=l.firstLogin.reward;Cr(i.toastMessage.i18nKey,{i18nParams:{text:i.toastMessage.usedText,coin:m},position:"top",duration:3e3})}q.emit(ar,{result:"SUCCESS",rewards:{claimedRewardValue:(f=(p=(u=l==null?void 0:l.firstLogin)==null?void 0:u.reward)==null?void 0:p.rewardValue)!=null?f:0,isFirstLogin:c!=null?c:!1,currency:t.currency}}),a.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:s})=>{U(i.trackEvents.modalHide,{eventType:G.Hide,currency:n},G.Hide);let l=s==="CANCEL"?"click_close":"click_watch_ads",c=s==="CANCEL"?i.trackEvents.clickClose:i.trackEvents.clickWatchAds;U(c,{type:l,eventType:G.Click,currency:n},G.Click),q.emit(ar,{result:"FAILED"}),a.destroy()}}}});yield i.frequencyUpdater()}catch(n){xe(new dh(n)),q.emit(ar,{result:"FAILED"})}}));var l3=()=>w(Xs,null,function*(){var t;let{response:e}=yield te("/api/base/global-config",{method:"GET",appendHostCookie:!0,responseType:"json"});return(t=e.data)==null?void 0:t.data})});var GX,BX,HX,MA=A(()=>{"use strict";GX=ie(wA()),BX=ie(NA()),HX=ie(LA())});function b3(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function w3(e){return typeof e=="string"}function I3(e){return typeof e=="undefined"}function E3(e){return I3(e)||e===null}function k3(e){return typeof e=="function"}function ux(e){let t=e,r=null,n=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return r||(r=new t(...o)),r};return n.prototype=t.prototype,n}function go(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function rl(e,t){return t.map(r=>{if(r==="params"&&e[r]){let n=e[r];return Object.keys(n).reduce((i,o)=>(i[o]=String(n[o]),i),{})}return e[r]})}function P3(e){let t=e.location?rl(e.location,GA):null,r=e.target?rl(e.target,GA):null;return rl(g3(v3({},e),{location:t,target:r}),T3)}function R3(e){let t=e.events.map(n=>P3(n)),r=rl(e.device,O3);return[e.protocolVersion,t,r,e.project]}function N3(){if(typeof window=="undefined")return{getItem:()=>null,setItem:()=>{},removeItem:()=>{},clear:()=>{},length:0,key:()=>null};try{if(window.__joliboxLocalStorage__)return window.__joliboxLocalStorage__;let e=Object.getOwnPropertyDescriptor(window,"localStorage");if(e&&e.get){let n=e.get.call(window);return window.__joliboxLocalStorage__=n,n}if(e=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(window),"localStorage"),e&&e.get)return e.get.call(window);let t=Window.prototype,r=Object.getOwnPropertyDescriptor(t,"localStorage");if(r&&r.get){let n=r.get.call(window);return window.__joliboxLocalStorage__=n,n}return localStorage}catch(e){return console.warn("Failed to get original localStorage, fallback to default implementation",e),localStorage}}function U3(e){return new Promise(t=>hx(e)(t))}function hx(e){return function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function F3(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new Io(n);return i.event})(function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e(i=>t(i)&&r.call(n,i),null)})}function J3(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)G3(e[n],t[n])}function G3(e,t){if(w3(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(k3(t)){try{if(e instanceof t)return}catch(r){}if(!E3(e)&&e.constructor===t||t.length===1&&t.call(void 0,e)===!0)return;throw new Error("[Jolibox SDK]argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true")}}function at(e,t,r){return(t=B3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B3(e){var t=H3(e,"string");return typeof t=="symbol"?t:t+""}function H3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zs(e,t,r){return(t=V3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function V3(e){var t=$3(e,"string");return typeof t=="symbol"?t:t+""}function $3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function el(e,t,r){return(t=W3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function W3(e){var t=z3(e,"string");return typeof t=="symbol"?t:t+""}function z3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sr(e,t,r){return(t=K3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function K3(e){var t=Y3(e,"string");return typeof t=="symbol"?t:t+""}function Y3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Q3(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function X3(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}function iH(e,t){return Ue(e,0)^45?(((t<<2^Ue(e,0))<<2^Ue(e,1))<<2^Ue(e,2))<<2^Ue(e,3):0}function gx(e){return e.trim()}function oH(e,t){return(e=t.exec(e))?e[0]:e}function K(e,t,r){return e.replace(t,r)}function Yp(e,t){return e.indexOf(t)}function Ue(e,t){return e.charCodeAt(t)|0}function Eo(e,t,r){return e.slice(t,r)}function Ht(e){return e.length}function ff(e){return e.length}function tl(e,t){return t.push(e),e}function aH(e,t){return e.map(t).join("")}function vl(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:ml,column:zn,length:a,return:""}}function _o(e,t){return nH(vl("",null,null,"",null,null,0),e,{length:-e.length},t)}function sH(){return Ae}function lH(){return Ae=ct>0?Ue(Kn,--ct):0,zn--,Ae===10&&(zn=1,ml--),Ae}function mt(){return Ae=ct<yx?Ue(Kn,ct++):0,zn++,Ae===10&&(zn=1,ml++),Ae}function Vt(){return Ue(Kn,ct)}function nl(){return ct}function So(e,t){return Eo(Kn,e,t)}function ko(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function _x(e){return ml=zn=1,yx=Ht(Kn=e),ct=0,[]}function bx(e){return Kn="",e}function il(e){return gx(So(ct-1,Qp(e===91?e+2:e===40?e+1:e)))}function cH(e){for(;(Ae=Vt())&&Ae<33;)mt();return ko(e)>2||ko(Ae)>3?"":" "}function uH(e,t){for(;--t&&mt()&&!(Ae<48||Ae>102||Ae>57&&Ae<65||Ae>70&&Ae<97););return So(e,nl()+(t<6&&Vt()==32&&mt()==32))}function Qp(e){for(;mt();)switch(Ae){case e:return ct;case 34:case 39:e!==34&&e!==39&&Qp(Ae);break;case 40:e===41&&Qp(e);break;case 92:mt();break}return ct}function dH(e,t){for(;mt()&&e+Ae!==57&&!(e+Ae===84&&Vt()===47););return"/*"+So(t,ct-1)+"*"+hl(e===47?e:mt())}function pH(e){for(;!ko(Vt());)mt();return So(e,ct)}function fH(e){return bx(ol("",null,null,null,[""],e=_x(e),0,[0],e))}function ol(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,g=1,y=1,v=1,b=0,k="",x=i,P=o,C=n,S=k;y;)switch(m=b,b=mt()){case 40:if(m!=108&&Ue(S,u-1)==58){Yp(S+=K(il(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:S+=il(b);break;case 9:case 10:case 13:case 32:S+=cH(m);break;case 92:S+=uH(nl()-1,7);continue;case 47:switch(Vt()){case 42:case 47:tl(hH(dH(mt(),nl()),t,r),l);break;default:S+="/"}break;case 123*g:s[c++]=Ht(S)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:y=0;case 59+d:v==-1&&(S=K(S,/\f/g,"")),f>0&&Ht(S)-u&&tl(f>32?$A(S+";",n,r,u-1):$A(K(S," ","")+";",n,r,u-2),l);break;case 59:S+=";";default:if(tl(C=VA(S,t,r,c,d,i,s,k,x=[],P=[],u),o),b===123)if(d===0)ol(S,t,C,C,x,o,u,s,P);else switch(p===99&&Ue(S,3)===110?100:p){case 100:case 108:case 109:case 115:ol(e,C,C,n&&tl(VA(e,C,C,0,0,i,s,k,i,x=[],u),P),i,P,u,s,n?x:P);break;default:ol(S,C,C,C,[""],P,0,s,P)}}c=d=f=0,g=v=1,k=S="",u=a;break;case 58:u=1+Ht(S),f=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&lH()==125)continue}switch(S+=hl(b),b*g){case 38:v=d>0?1:(S+="\f",-1);break;case 44:s[c++]=(Ht(S)-1)*v,v=1;break;case 64:Vt()===45&&(S+=il(mt())),p=Vt(),d=u=Ht(k=S+=pH(nl())),b++;break;case 45:m===45&&Ht(S)==2&&(g=0)}}return o}function VA(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=ff(p),m=0,g=0,y=0;m<n;++m)for(var v=0,b=Eo(e,u+1,u=rH(g=a[m])),k=e;v<f;++v)(k=gx(g>0?p[v]+" "+b:K(b,/&\f/g,p[v])))&&(l[y++]=k);return vl(e,t,r,i===0?df:s,l,c,d)}function hH(e,t,r){return vl(e,t,r,mx,hl(sH()),Eo(e,2,-2),0)}function $A(e,t,r,n){return vl(e,t,r,pf,Eo(e,0,n),Eo(e,n+1,-1),n)}function Wn(e,t){for(var r="",n=ff(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function mH(e,t,r,n){switch(e.type){case tH:if(e.children.length)break;case eH:case pf:return e.return=e.return||e.value;case mx:return"";case vx:return e.return=e.value+"{"+Wn(e.children,n)+"}";case df:e.value=e.props.join(",")}return Ht(r=Wn(e.children,n))?e.return=e.value+"{"+r+"}":""}function vH(e){var t=ff(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function gH(e){return function(t){t.root||(t=t.return)&&e(t)}}function yH(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function wx(e,t){switch(iH(e,t)){case 5103:return z+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return z+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return z+e+ll+e+$e+e+e;case 6828:case 4268:return z+e+$e+e+e;case 6165:return z+e+$e+"flex-"+e+e;case 5187:return z+e+K(e,/(\w+).+(:[^]+)/,z+"box-$1$2"+$e+"flex-$1$2")+e;case 5443:return z+e+$e+"flex-item-"+K(e,/flex-|-self/,"")+e;case 4675:return z+e+$e+"flex-line-pack"+K(e,/align-content|flex-|-self/,"")+e;case 5548:return z+e+$e+K(e,"shrink","negative")+e;case 5292:return z+e+$e+K(e,"basis","preferred-size")+e;case 6060:return z+"box-"+K(e,"-grow","")+z+e+$e+K(e,"grow","positive")+e;case 4554:return z+K(e,/([^-])(transform)/g,"$1"+z+"$2")+e;case 6187:return K(K(K(e,/(zoom-|grab)/,z+"$1"),/(image-set)/,z+"$1"),e,"")+e;case 5495:case 3959:return K(e,/(image-set\([^]*)/,z+"$1$`$1");case 4968:return K(K(e,/(.+:)(flex-)?(.*)/,z+"box-pack:$3"+$e+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+z+e+e;case 4095:case 3583:case 4068:case 2532:return K(e,/(.+)-inline(.+)/,z+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ht(e)-1-t>6)switch(Ue(e,t+1)){case 109:if(Ue(e,t+4)!==45)break;case 102:return K(e,/(.+:)(.+)-([^]+)/,"$1"+z+"$2-$3$1"+ll+(Ue(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Yp(e,"stretch")?wx(K(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ue(e,t+1)!==115)break;case 6444:switch(Ue(e,Ht(e)-3-(~Yp(e,"!important")&&10))){case 107:return K(e,":",":"+z)+e;case 101:return K(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+z+(Ue(e,14)===45?"inline-":"")+"box$3$1"+z+"$2$3$1"+$e+"$2box$3")+e}break;case 5936:switch(Ue(e,t+11)){case 114:return z+e+$e+K(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return z+e+$e+K(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return z+e+$e+K(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return z+e+$e+e+e}return e}function xH(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function cl(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return Rr={name:i.name,styles:i.styles,next:Rr},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Rr={name:a.name,styles:a.styles,next:Rr},a=a.next;var s=o.styles+";";return s}return PH(e,t,r)}}var l=r;if(t==null)return l;var c=t[l];return c!==void 0?c:l}function PH(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=cl(e,t,r[i])+";";else for(var o in r){var a=r[o];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=o+"{"+t[s]+"}":zA(s)&&(n+=qp(o)+":"+KA(o,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)zA(a[l])&&(n+=qp(o)+":"+KA(o,a[l])+";");else{var c=cl(e,t,a);switch(o){case"animation":case"animationName":{n+=qp(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function Up(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";Rr=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=cl(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=cl(r,t,e[s]),n){var l=o;i+=l[s]}YA.lastIndex=0;for(var c="",d;(d=YA.exec(i))!==null;)c+="-"+d[1];var u=xH(i)+c;return{name:u,styles:i,next:Rr}}function Ex(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}function QA(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function XA(e,t,r){var n=[],i=Ex(e,n,r);return n.length<2?r:i+t(n)}function qH(e,t){Pe.__h&&Pe.__h(ht,e,ex||t),ex=0;var r=ht.__H||(ht.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Sx(e,t){var r=qH(Xp++,7);return jH(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function UH(){for(var e;e=kx.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(al),e.__H.__h.forEach(Zp),e.__H.__h=[]}catch(t){e.__H.__h=[],Pe.__e(t,e.__v)}}function FH(e){var t,r=function(){clearTimeout(n),sx&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);sx&&(t=requestAnimationFrame(r))}function al(e){var t=ht,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ht=t}function Zp(e){var t=ht;e.__c=e.__(),ht=t}function jH(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function gl(){if(Nr>1)Nr--;else{for(var e,t=!1;bo!==void 0;){var r=bo;for(bo=void 0,ef++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&xx(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(ef=0,Nr--,t)throw e}}function lt(e){if(Nr>0)return e();Nr++;try{return e()}finally{gl()}}function Ax(e){if(ee!==void 0){var t=e.n;if(t===void 0||t.t!==ee)return t={i:0,S:e,p:ee.s,n:void 0,t:ee,e:void 0,x:void 0,r:t},ee.s!==void 0&&(ee.s.n=t),ee.s=t,e.n=t,32&ee.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=ee.s,t.n=void 0,ee.s.n=t,ee.s=t),t}}function Fe(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function re(e){return new Fe(e)}function xx(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function Cx(e){for(var t=e.s;t!==void 0;t=t.n){var r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function Tx(e){for(var t=e.s,r=void 0;t!==void 0;){var n=t.p;t.i===-1?(t.S.U(t),n!==void 0&&(n.n=t.n),t.n!==void 0&&(t.n.p=n)):r=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=n}e.s=r}function Qn(e){Fe.call(this,void 0),this.x=e,this.s=void 0,this.g=ul-1,this.f=4}function wo(e){return new Qn(e)}function Ox(e){var t=e.u;if(e.u=void 0,typeof t=="function"){Nr++;var r=ee;ee=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,hf(e),n}finally{ee=r,gl()}}}function hf(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Ox(e)}function GH(e){if(ee!==this)throw new Error("Out-of-order effect");Tx(this),ee=e,this.f&=-2,8&this.f&&hf(this),gl()}function Ao(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function xo(e){var t=new Ao(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function Xn(e,t){N[e]=t.bind(null,N[e]||function(){})}function dl(e){jp&&jp(),jp=e&&e.S()}function Nx(e){var t=this,r=e.data,n=Dx(r);n.value=r;var i=Sx(function(){for(var s=t,l=t.__v;l=l.__;)if(l.__c){l.__c.__$f|=4;break}var c=wo(function(){var f=n.value.value;return f===0?0:f===!0?"":f||""}),d=wo(function(){return!Array.isArray(c.value)&&!bc(c.value)}),u=xo(function(){if(this.N=Lx,d.value){var f=c.value;s.__v&&s.__v.__e&&s.__v.__e.nodeType===3&&(s.__v.__e.data=f)}}),p=t.__$u.d;return t.__$u.d=function(){u(),p.call(this)},[d,c]},[]),o=i[0],a=i[1];return o.value?a.peek():a.value}function BH(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=re(r);return{o:function(a,s){o.value=a,n=s},d:xo(function(){this.N=Lx;var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function Dx(e){return Sx(function(){return re(e)},[])}function VH(){lt(function(){for(var e;e=Rx.shift();)Px.call(e)})}function Lx(){Rx.push(this)===1&&(N.requestAnimationFrame||HH)(VH)}function $H(e,t){let r=qi(e);_n(()=>{r.current=e},[e]),Mi(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function ge(e,t,r,n,i,o){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var c={type:e,props:l,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--WH,__i:-1,__u:0,__source:i,__self:o};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return N.vnode&&N.vnode(c),c}function lr(e,t,r){return(t=o4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o4(e){var t=a4(e,"string");return typeof t=="symbol"?t:t+""}function a4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function cr(e,t,r){return(t=u4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u4(e){var t=d4(e,"string");return typeof t=="symbol"?t:t+""}function d4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ve(e,t,r){return(t=p4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p4(e){var t=f4(e,"string");return typeof t=="symbol"?t:t+""}function f4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function st(e,t,r){return(t=h4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h4(e){var t=m4(e,"string");return typeof t=="symbol"?t:t+""}function m4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zr(e,t,r){return(t=v4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v4(e){var t=g4(e,"string");return typeof t=="symbol"?t:t+""}function g4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Jp(e,t,r){return(t=y4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function y4(e){var t=_4(e,"string");return typeof t=="symbol"?t:t+""}function _4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ze(e,t,r){return(t=b4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function b4(e){var t=w4(e,"string");return typeof t=="symbol"?t:t+""}function w4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ct(e,t,r){return(t=I4(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I4(e){var t=E4(e,"string");return typeof t=="symbol"?t:t+""}function E4(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var qA,c3,u3,d3,lx,p3,f3,UA,h3,m3,FA,v3,g3,y3,cx,_3,S3,A3,jA,x3,JA,C3,dx,px,fx,GA,T3,O3,Vn,BA,Gp,ue,D3,L3,yo,Io,M3,Hp,q3,Mp,j3,Vp,HA,Bn,$p,Wp,zp,Kp,Z3,$e,ll,z,mx,df,pf,eH,vx,tH,rH,hl,nH,ml,zn,yx,ct,Ae,Kn,_H,bH,wH,WA,IH,EH,kH,SH,AH,CH,TH,OH,Ix,zA,qp,KA,YA,Rr,RH,NH,DH,LH,MH,Yn,Xp,ht,Fp,ZA,ex,kx,Pe,tx,rx,nx,ix,ox,ax,sx,JH,ee,bo,Nr,ef,ul,Px,jp,Rx,HH,We,WH,zH,ur,tf,rf,sl,KH,YH,QH,XH,ZH,e4,t4,r4,n4,i4,nf,$n,Hn,s4,l4,c4,of,Mx,af,sf,lf,cf,pl,uf,fl,WX,qx=A(()=>{"use strict";cn();da();qA=Object.getOwnPropertySymbols,c3=Object.prototype.hasOwnProperty,u3=Object.prototype.propertyIsEnumerable,d3=(e,t)=>{var r={};for(var n in e)c3.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&qA)for(var n of qA(e))t.indexOf(n)<0&&u3.call(e,n)&&(r[n]=e[n]);return r},lx=Object.defineProperty,p3=Object.defineProperties,f3=Object.getOwnPropertyDescriptors,UA=Object.getOwnPropertySymbols,h3=Object.prototype.hasOwnProperty,m3=Object.prototype.propertyIsEnumerable,FA=(e,t,r)=>t in e?lx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,v3=(e,t)=>{for(var r in t||(t={}))h3.call(t,r)&&FA(e,r,t[r]);if(UA)for(var r of UA(t))m3.call(t,r)&&FA(e,r,t[r]);return e},g3=(e,t)=>p3(e,f3(t)),y3=(e,t)=>{for(var r in t)lx(e,r,{get:t[r],enumerable:!0})},cx=(e,t,r,n)=>{for(var i=t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=a(i)||i);return i},_3=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});if(typeof window!="undefined"&&!window.AbortController){let e=function(){this.signal=new t};e.prototype.abort=function(){this.signal._aborted=!0,typeof this.signal.onabort=="function"&&this.signal.onabort(new Event("abort"));let r=new Event("abort");this.signal.dispatchEvent(r)};let t=function(){this._aborted=!1,this.aborted=!1,this.onabort=null,this._eventListeners={}};Object.defineProperty(t.prototype,"aborted",{get:function(){return this._aborted}}),t.prototype.addEventListener=function(r,n){this._eventListeners[r]||(this._eventListeners[r]=[]),this._eventListeners[r].push(n)},t.prototype.removeEventListener=function(r,n){if(!this._eventListeners[r])return;let i=this._eventListeners[r].indexOf(n);i!==-1&&this._eventListeners[r].splice(i,1)},t.prototype.dispatchEvent=function(r){if(this._eventListeners[r.type])for(let n of this._eventListeners[r.type])n.call(this,r)},window.AbortController=e,window.AbortSignal=t}S3=(e=>(e[e.DEVELOPER_FILE_NOT_FOUND=0]="DEVELOPER_FILE_NOT_FOUND",e[e.INTERNAL_IOS_CAN_NOT_FOUND_PKG=1]="INTERNAL_IOS_CAN_NOT_FOUND_PKG",e[e.USER_IOS_LOAD_TIMEOUT=2]="USER_IOS_LOAD_TIMEOUT",e[e.INTERNAL_IOS_PKG_LOAD_ERROR=3]="INTERNAL_IOS_PKG_LOAD_ERROR",e[e.INTERNAL_IOS_PKG_PARSE_FAIL=4]="INTERNAL_IOS_PKG_PARSE_FAIL",e[e.USER_IOS_GET_EMPTY_DATA=5]="USER_IOS_GET_EMPTY_DATA",e[e.USER_ANDROID_GET_PKG_FAIL=6]="USER_ANDROID_GET_PKG_FAIL",e[e.DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE=7]="DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE",e))(S3||{});A3={log:go("log"),warn:go("warn"),info:go("info"),error:go("error"),debug:go("debug")};Object.assign(globalThis,{logger:A3});jA=Symbol.for("Jolibox.canIUseMap"),x3={};globalThis[jA]||(globalThis[jA]=x3);JA=Symbol.for("Jolibox.canIUseMap.native"),C3={};globalThis[JA]||(globalThis[JA]=C3);dx=(e=>(e[e.Other=0]="Other",e[e.Route=1]="Route",e[e.Click=2]="Click",e[e.View=3]="View",e[e.Expose=4]="Expose",e[e.Swipe=5]="Swipe",e[e.Input=6]="Input",e[e.Select=7]="Select",e[e.SwitchOn=8]="SwitchOn",e[e.SwitchOff=9]="SwitchOff",e[e.Submit=10]="Submit",e[e.Scroll=11]="Scroll",e[e.Hide=12]="Hide",e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(dx||{}),px=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(px||{}),fx=(e=>(e[e.App=0]="App",e[e.H5=1]="H5",e[e.Weapp=2]="Weapp",e[e.Alipay=3]="Alipay",e[e.Gcash=4]="Gcash",e[e.Dana=5]="Dana",e[e.Umma=6]="Umma",e[e.WebSDK=1e3]="WebSDK",e[e.AppSDK=1001]="AppSDK",e[e.Other=9999]="Other",e))(fx||{}),GA=["name","params"],T3=["name","type","location","target","extra","timestamp","userId"],O3=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];N3();Vn=typeof window=="undefined",BA=()=>!Vn&&!!(navigator.userAgent||"").includes("JoliboxPlatformSDK");!Vn&&(navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS")),!Vn&&navigator.userAgent.includes("Android"),!Vn&&navigator.userAgent.includes("Mac"),!Vn&&navigator.userAgent.includes("FB_IAB"),!Vn&&!navigator.userAgent.includes("iPhone")&&navigator.userAgent.includes("Android");Gp=class Bp{constructor(t){this.element=t,this.next=Bp.Undefined,this.prev=Bp.Undefined}};Gp.Undefined=new Gp(void 0);ue=Gp,D3=class{constructor(){this._first=ue.Undefined,this._last=ue.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ue.Undefined}clear(){let e=this._first;for(;e!==ue.Undefined;){let t=e.next;e.prev=ue.Undefined,e.next=ue.Undefined,e=t}this._first=ue.Undefined,this._last=ue.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new ue(e);if(this._first===ue.Undefined)this._first=r,this._last=r;else if(t){let i=this._last;this._last=r,r.prev=i,i.next=r}else{let i=this._first;this._first=r,r.next=i,i.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==ue.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ue.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ue.Undefined&&e.next!==ue.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ue.Undefined&&e.next===ue.Undefined?(this._first=ue.Undefined,this._last=ue.Undefined):e.next===ue.Undefined?(this._last=this._last.prev,this._last.next=ue.Undefined):e.prev===ue.Undefined&&(this._first=this._first.next,this._first.prev=ue.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ue.Undefined;)yield e.element,e=e.next}},L3=0,yo=class{constructor(e){this.value=e,this.id=L3++}},Io=class{constructor(e){this.options=e,this._size=0}dispose(e){var t,r;this._disposed||(this._disposed=!0,this._listeners&&(e?(this._listeners instanceof yo&&(this._listeners=[this._listeners]),this._listeners=this._listeners.filter(n=>(n==null?void 0:n.value)===e)):(this._listeners=void 0,this._size=0)),(r=(t=this.options)==null?void 0:t.onDidRemoveLastListener)==null||r.call(t))}get event(){return this._event!=null||(this._event=(e,t)=>{var r,n,i,o,a,s;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};t&&(e=e.bind(t));let l=new yo(e);return this._listeners?this._listeners instanceof yo?this._listeners=[this._listeners,l]:this._listeners.push(l):((n=(r=this.options)==null?void 0:r.onWillAddFirstListener)==null||n.call(r,this),this._listeners=l,(o=(i=this.options)==null?void 0:i.onDidFirstListener)==null||o.call(i,this)),(s=(a=this.options)==null?void 0:a.onDidAddListener)==null||s.call(a,this),this._size++,()=>{var c,d,u,p;if(!this._disposed){if(this._listeners instanceof yo)this._listeners.id===l.id&&(this._listeners=void 0,this._size=0,(d=(c=this.options)==null?void 0:c.onDidRemoveLastListener)==null||d.call(c));else if(this._listeners){let f=this._listeners.indexOf(l);f>=0&&(this._listeners.splice(f,1),this._size--,this._size===0&&((p=(u=this.options)==null?void 0:u.onDidRemoveLastListener)==null||p.call(u)))}}}}),this._event}_deliver(e,t){var r;if(!e)return;let n=((r=this.options)==null?void 0:r.onListenerError)||Error.constructor;if(!n){e.value(t);return}try{e.value(t)}catch(i){n(i)}}fire(e){this._listeners&&(this._listeners instanceof yo?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},M3=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;var n;let i=(n=this.listeners.get(e))!=null?n:new Io,o=l=>t(...l.args),a=i.event(o);this.listerHandlerMap.set(t,{handler:o,dispose:a}),this.listeners.set(e,i);let s=this.cachedEventQueue.get(e);if(s&&r)for(let l of s)t(...l.args)}flushCachedEvent(e){e?this.cachedEventQueue.delete(e):this.cachedEventQueue.clear()}off(e,t){let r=this.listerHandlerMap.get(t);r&&(r.dispose(),this.listerHandlerMap.delete(t))}emit(e){let t=this.listeners.get(e),r=this.cachedEventQueue.get(e);for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];r||(r=new D3,this.cachedEventQueue.set(e,r)),r.push({args:i}),t&&t.fire({event:e,args:i})}once(e,t){var r=this;let n=function(){t(...arguments),r.off(e,n)};this.on(e,n,!1)}},Hp={};y3(Hp,{None:()=>q3,filter:()=>F3,once:()=>hx,toPromise:()=>U3});q3=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Mp=Symbol.for("Jolibox.hostEmitter"),j3=()=>{let e=new M3;return globalThis[Mp]||(globalThis[Mp]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Mp]};j3();Vp=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Io,this.onDidRegisterCommand=this._onDidRegisterCommand.event,console.log("[Jolibox SDK] command registry")}registerCommand(e){if(!e)throw new Error("invalid command");if(e.metadata&&Array.isArray(e.metadata.args)){let r=[];for(let i of e.metadata.args)r.push(i.constraint);let n=e.handler;e.handler=function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return J3(o,r),n(...o)}}let{id:t}=e;this._commands.get(t)&&console.info(`[Jolibox SDK] duplicated command is registered ${t}`),this._commands.set(t,e),this._onDidRegisterCommand.fire(t)}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;for(let t of this._commands.keys()){let r=this.getCommand(t);r&&e.set(t,r)}return e}};Vp=cx([ux],Vp);HA=class{constructor(){this._onWillExecuteCommand=new Io,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Io,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Vp,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=b3(3e4)),this._starActivation}executeCommand(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return _3(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),Hp.toPromise(Hp.filter(this.registry.onDidRegisterCommand,i=>i===e))])]),this._tryExecuteCommand(e,r))})}executeCommandThowErr(e){if(!this.registry.getCommand(e))throw new Error(`command '${e}' not found`);let t=this.registry.getCommand(e);for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];this._onWillExecuteCommand.fire({commandId:e,args:n});let o=this.invokeFunction(t.handler,...n);return this._onDidExecuteCommand.fire({commandId:e,args:n}),o}_tryExecuteCommand(e,t){let r=this.registry.getCommand(e);if(!r)return Promise.reject(new Error(`command '${e}' not found`));try{this._onWillExecuteCommand.fire({commandId:e,args:t});let n=this.invokeFunction(r.handler,...t);return this._onDidExecuteCommand.fire({commandId:e,args:t}),Promise.resolve(n)}catch(n){return Promise.reject(n)}}invokeFunction(e){try{for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return e(...r)}finally{}}};HA=cx([ux],HA);Bn=e=>e?function(){try{for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];e==null||e(...r)}catch(i){console.error("Error calling function",i)}}:()=>{console.log("wrapUserFunction: fn is undefined")},$p=class{constructor(t){at(this,"context",void 0),at(this,"continueCallback",void 0),at(this,"adIsShowingCallback",void 0),at(this,"isBeforeAdCalled",!1),at(this,"isBeforeRewardCalled",!1),at(this,"isAdDismissedCalled",!1),at(this,"isAdViewedCalled",!1),at(this,"isAfterAdCalled",!1),at(this,"currentProvider",void 0),at(this,"currentClientParams",void 0),at(this,"adsHasResponse",!1),at(this,"videoChecker",window.document.createElement("video")),at(this,"contextInfo",void 0),at(this,"wrapShowAdFn",r=>()=>{var n,i,o;this.adsHasResponse=!0;let a=!1;this.videoChecker.play().catch(()=>{a=!1}),a=!this.videoChecker.paused,this.videoChecker.pause(),this.context.track("CallShowAdFn",Object.assign({},{userEvent:a},this.paramsToTrack)),window.postMessage({type:"JOLIBOX_AD_CALL_BEFORE_REWARD",data:Object.assign({},{userEvent:a},this.paramsToTrack)},"*"),BA()&&this.context.track("mmp_ad_impression",{ad_network:(i=(n=this.currentProvider)==null?void 0:n.name)!=null?i:"",ad_format:"rewarded",module:"game",game_id:this.contextInfo.objectId}),(o=this.adIsShowingCallback)==null||o.call(this,!0);let s=Bn(r);s==null||s()}),this.context=t,this.contextInfo=t.getContextInfo()}get paramsToTrack(){var t,r,n,i,o,a;return{provider:(r=(t=this.currentProvider)==null?void 0:t.name)!=null?r:null,type:(n=this.currentClientParams)==null?void 0:n.type,name:((i=this.currentClientParams)==null?void 0:i.type)==="preroll"?null:(a=(o=this.currentClientParams)==null?void 0:o.name)!=null?a:""}}wrapBeforeAd(t){return()=>{var r,n,i,o;if(this.adsHasResponse=!0,this.context.track("CallBeforeAd",this.paramsToTrack),window.postMessage({type:"JOLIBOX_AD_CALL_BEFORE_AD",data:this.paramsToTrack},"*"),!this.isBeforeAdCalled){this.isBeforeAdCalled=!0;let a=Bn(t);a==null||a(),((r=this.currentClientParams)==null?void 0:r.type)!=="reward"&&((n=this.adIsShowingCallback)==null||n.call(this,!0),BA()&&this.context.track("mmp_ad_impression",{ad_network:(o=(i=this.currentProvider)==null?void 0:i.name)!=null?o:"",ad_format:"interstitial",module:"game",game_id:this.contextInfo.objectId}))}}}wrapBeforeReward(t){return r=>{this.adsHasResponse=!0,this.isBeforeRewardCalled?this.wrapShowAdFn(r)():(this.isBeforeRewardCalled=!0,t==null||t(this.wrapShowAdFn(r)))}}wrapAdDismissed(t){return()=>{if(this.adsHasResponse=!0,!this.isAdDismissedCalled){this.isAdDismissedCalled=!0;let r=Bn(t);r==null||r()}}}wrapAdViewed(t){return()=>{if(this.adsHasResponse=!0,!this.isAdViewedCalled){this.isAdViewedCalled=!0;let r=Bn(t);r==null||r()}}}wrapAfterAd(t){return()=>{if(this.adsHasResponse=!0,this.context.track("CallAfterAd",this.paramsToTrack),window.postMessage({type:"JOLIBOX_AD_CALL_AFTER_AD",data:this.paramsToTrack},"*"),!this.isAfterAdCalled){this.isAfterAdCalled=!0;let r=Bn(t);r==null||r()}}}wrapAdBreakDone(t){return r=>{var n,i,o,a,s,l,c,d,u;switch(this.adsHasResponse=!0,this.context.track("CallAdBreakDone",{provider:(i=(n=this.currentProvider)==null?void 0:n.name)!=null?i:null,breakType:r.breakType,breakName:(o=r.breakName)!=null?o:"",breakFormat:r.breakFormat,breakStatus:r.breakStatus}),window.postMessage({type:"JOLIBOX_AD_CALL_AD_BREAK_DONE",data:{provider:(s=(a=this.currentProvider)==null?void 0:a.name)!=null?s:null,breakType:r.breakType,breakName:(l=r.breakName)!=null?l:"",breakFormat:r.breakFormat,breakStatus:r.breakStatus}},"*"),r.breakStatus){case"viewed":case"ignored":case"dismissed":case"error":{let p=Bn(t);p==null||p(r),(c=this.adIsShowingCallback)==null||c.call(this,!1),(d=this.continueCallback)==null||d.call(this,[!1,r]);break}default:{(u=this.continueCallback)==null||u.call(this,[!0,r]);break}}}}callAdBreakAndContinue(t,r,n,i){return w(this,null,function*(){return this.currentProvider=t,this.currentClientParams=r,this.adsHasResponse=!1,new Promise(o=>{this.continueCallback=o,this.adIsShowingCallback=i;let a;switch(r.type){case"preroll":{a={type:r.type,adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}case"reward":{a={name:r.name,type:r.type,beforeAd:this.wrapBeforeAd(r.beforeAd),beforeReward:this.wrapBeforeReward(r.beforeReward),adDismissed:this.wrapAdDismissed(r.adDismissed),adViewed:this.wrapAdViewed(r.adViewed),afterAd:this.wrapAfterAd(r.afterAd),adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}default:{a={name:r.name,type:r.type,beforeAd:this.wrapBeforeAd(r.beforeAd),afterAd:this.wrapAfterAd(r.afterAd),adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}}window.setTimeout(()=>{var s,l,c,d,u;this.adsHasResponse||(this.context.track("CallAdBreakTimeout",{type:r.type,provider:(l=(s=this.currentProvider)==null?void 0:s.name)!=null?l:null}),(d=this.continueCallback)==null||d.call(this,[!0,{breakType:r.type,breakName:r.type==="preroll"?"":(c=r.name)!=null?c:"",breakFormat:r.type==="reward"?"reward":"interstitial",breakStatus:"timeout"}]),(u=this.adIsShowingCallback)==null||u.call(this,!1))},5e3),this.context.track("CallAdBreak",this.paramsToTrack),window.postMessage({type:"JOLIBOX_AD_CALL_AD_BREAK",data:this.paramsToTrack},"*"),t.adBreak(a,n),window.JoliTesterBridge&&console.log("joli-fullscreen-ad-show")})})}};Wp=class{constructor(t){Zs(this,"context",void 0),Zs(this,"adBreakIsShowing",!1),Zs(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),Zs(this,"reportPageHide",()=>{this.context.track("AdBreakHide",{context:"AdsActionDetection"})}),this.context=t,window.addEventListener("visibilitychange",()=>{document.hidden&&this.adBreakIsShowing&&this.reportPageHide()}),window.addEventListener("beforeunload",r=>{this.adBreakIsShowing&&this.reportPageJumpOut()})}};zp=class{constructor(t){el(this,"configs",null),el(this,"firstRun",!0),el(this,"context",void 0),el(this,"contextInfo",void 0),this.context=t,this.contextInfo=this.context.getContextInfo(),this.init()}init(){return w(this,null,function*(){try{this.configs=yield this.context.httpClient.get("/api/fe-configs/js-sdk/ads-channel-config",{})}catch(t){}})}shouldBypassCallingInterstitial(){var t,r;let n;if(!this.configs)this.init(),n=!this.firstRun;else{let i=(t=this.contextInfo.channel)!=null?t:"",o=this.configs[i],a=(r=o==null?void 0:o.interstitialRate)!=null?r:1;n=Math.random()<a}return this.firstRun=!1,n}};Kp=class{constructor(t,r){sr(this,"name","ADSENSE"),sr(this,"context",void 0),sr(this,"contextInfo",void 0),sr(this,"configured",!1),sr(this,"initParams",void 0),sr(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),sr(this,"adConfig",n=>{let i=n,{onReady:o}=i,a=d3(i,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),sr(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),sr(this,"adUnit",n=>w(this,null,function*(){var i,o,a,s;if(this.context.track("CallAdUnit",{adFormat:(o=(i=n.adFormat)==null?void 0:i.toString())!=null?o:null,fullWidthResponsive:(a=n.fullWidthResponsive)!=null?a:null}),document.querySelector("#jolibox-ads")){console.warn("Ad unit already set, skipping");return}let{el:l,slot:c,adFormat:d,fullWidthResponsive:u,style:p}=n,f;if(!l)throw new Error("targeting element is required");if(typeof l=="string"?f=document.querySelector(l):f=l,!f)throw new Error("targeting element not found");let m=c;if(m||(m=this.initParams.unitId),!m)throw new Error("slot is required");let g=typeof d=="object"&&Array.isArray(d)?d.join(", "):d,y=document.createElement("ins");if(y.className="adsbygoogle",y.id="jolibox-ads",y.style.display="block",y.setAttribute("data-ad-client",this.initParams.clientId),y.setAttribute("data-ad-slot",m),g&&y.setAttribute("data-ad-format",g),u&&y.setAttribute("data-full-width-responsive",u),p&&y.setAttribute("style",p),(s=this.contextInfo.testAdsMode)!=null?s:!1){let v=document.createElement("div");v.style.position="absolute",v.style.top="0",v.style.left="0",v.style.width="100%",v.style.height="100%",v.style.display="flex",v.style.justifyContent="center",v.style.alignItems="center",v.style.backgroundColor="rgba(0, 0, 0, 0.5)",v.style.color="white",v.innerHTML="Test Ad",y.style.position="relative",f.appendChild(y),y.appendChild(v)}else f.appendChild(y),new MutationObserver(v=>{v.forEach(b=>{if(b.type==="attributes"&&b.attributeName==="data-ad-status"){let k=y.getAttribute("data-ad-status");this.context.track("AdSenseUnitStatusChanged",{status:k!=null?k:"null"})}})}).observe(y,{attributes:!0,attributeFilter:["data-ad-status"]}),this.push({})})),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,window.adsbygoogle=window.adsbygoogle||[]}init(){return w(this,null,function*(){var t;if(this.context.track("CallAdsInit",{provider:this.name}),typeof window=="undefined")return;let r="google-adsense",n=(t=this.contextInfo.testAdsMode)!=null?t:!1;if(!document.getElementById(r)&&this.initParams.clientId){let i=document.createElement("script");i.id=r,i.async=!0,i.crossOrigin="anonymous",i.src=`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${this.initParams.clientId}`,n&&i.setAttribute("data-adbreak-test","on"),this.initParams.channelId&&i.setAttribute("data-ad-channel",this.initParams.channelId),this.initParams.admobInterstitialSlot&&i.setAttribute("data-admob-interstitial-slot",this.initParams.admobInterstitialSlot),this.initParams.admobRewardedSlot&&i.setAttribute("data-admob-rewarded-slot",this.initParams.admobRewardedSlot),this.initParams.admobOnly&&i.setAttribute("data-admob-ads-only","on"),document.head.appendChild(i),this.context.track("LoadAdsenseCompleted",null)}})}};Z3=function(){function e(r){var n=this;this._insertTag=function(i){var o;n.tags.length===0?n.insertionPoint?o=n.insertionPoint.nextSibling:n.prepend?o=n.container.firstChild:o=n.before:o=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(i,o),n.tags.push(i)},this.isSpeedy=r.speedy===void 0?!0:r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(X3(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=Q3(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var n;return(n=r.parentNode)==null?void 0:n.removeChild(r)}),this.tags=[],this.ctr=0},e}(),$e="-ms-",ll="-moz-",z="-webkit-",mx="comm",df="rule",pf="decl",eH="@import",vx="@keyframes",tH="@layer",rH=Math.abs,hl=String.fromCharCode,nH=Object.assign;ml=1,zn=1,yx=0,ct=0,Ae=0,Kn="";_H=function(e,t,r){for(var n=0,i=0;n=i,i=Vt(),n===38&&i===12&&(t[r]=1),!ko(i);)mt();return So(e,ct)},bH=function(e,t){var r=-1,n=44;do switch(ko(n)){case 0:n===38&&Vt()===12&&(t[r]=1),e[r]+=_H(ct-1,t,r);break;case 2:e[r]+=il(n);break;case 4:if(n===44){e[++r]=Vt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=hl(n)}while(n=mt());return e},wH=function(e,t){return bx(bH(_x(e),t))},WA=new WeakMap,IH=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,r=e.parent,n=e.column===r.column&&e.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!WA.get(r))&&!n){WA.set(e,!0);for(var i=[],o=wH(t,i),a=r.props,s=0,l=0;s<o.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},EH=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};kH=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case pf:e.return=wx(e.value,e.length);break;case vx:return Wn([_o(e,{value:K(e.value,"@","@"+z)})],n);case df:if(e.length)return aH(e.props,function(i){switch(oH(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Wn([_o(e,{props:[K(i,/:(read-\w+)/,":"+ll+"$1")]})],n);case"::placeholder":return Wn([_o(e,{props:[K(i,/:(plac\w+)/,":"+z+"input-$1")]}),_o(e,{props:[K(i,/:(plac\w+)/,":"+ll+"$1")]}),_o(e,{props:[K(i,/:(plac\w+)/,$e+"input-$1")]})],n)}return""})}},SH=[kH],AH=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(m){var g=m.getAttribute("data-emotion");g.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||SH,i={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),y=1;y<g.length;y++)i[g[y]]=!0;a.push(m)});var s,l=[IH,EH];{var c,d=[mH,gH(function(m){c.insert(m)})],u=vH(l.concat(n,d)),p=function(m){return Wn(fH(m),u)};s=function(m,g,y,v){c=y,p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new Z3({key:t,container:o,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return f.sheet.hydrate(a),f};CH={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},TH=/[A-Z]|^ms/g,OH=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ix=function(e){return e.charCodeAt(1)===45},zA=function(e){return e!=null&&typeof e!="boolean"},qp=yH(function(e){return Ix(e)?e:e.replace(TH,"-$&").toLowerCase()}),KA=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(OH,function(r,n,i){return Rr={name:n,styles:i,next:Rr},n})}return CH[e]!==1&&!Ix(e)&&typeof t=="number"&&t!==0?t+"px":t};YA=/label:\s*([^\s;{]+)\s*(;|$)/g;RH=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},NH=function(e,t,r){RH(e,t);var n=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?"."+n:"",i,e.sheet,!0),i=i.next;while(i!==void 0)}};DH=function(e){var t=AH(e);t.sheet.speedy=function(a){this.isSpeedy=a},t.compat=!0;var r=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=Up(s,t.registered,void 0);return NH(t,c),t.key+"-"+c.name},n=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=Up(s,t.registered),d="animation-"+c.name;return QA(t,{name:c.name,styles:"@keyframes "+d+"{"+c.styles+"}"}),d},i=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=Up(s,t.registered);QA(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return XA(t.registered,r,LH(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){a.forEach(function(s){t.inserted[s]=!0})},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:Ex.bind(null,t.registered),merge:XA.bind(null,t.registered,r)}},LH=function e(t){for(var r="",n=0;n<t.length;n++){var i=t[n];if(i!=null){var o=void 0;switch(typeof i){case"boolean":break;case"object":{if(Array.isArray(i))o=e(i);else{o="";for(var a in i)i[a]&&a&&(o&&(o+=" "),o+=a)}break}default:o=i}o&&(r&&(r+=" "),r+=o)}}return r},MH=DH({key:"css"}),Yn=MH.css,ex=0,kx=[],Pe=N,tx=Pe.__b,rx=Pe.__r,nx=Pe.diffed,ix=Pe.__c,ox=Pe.unmount,ax=Pe.__;Pe.__b=function(e){ht=null,tx&&tx(e)},Pe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ax&&ax(e,t)},Pe.__r=function(e){rx&&rx(e),Xp=0;var t=(ht=e.__c).__H;t&&(Fp===ht?(t.__h=[],ht.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(al),t.__h.forEach(Zp),t.__h=[],Xp=0)),Fp=ht},Pe.diffed=function(e){nx&&nx(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(kx.push(t)!==1&&ZA===Pe.requestAnimationFrame||((ZA=Pe.requestAnimationFrame)||FH)(UH)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Fp=ht=null},Pe.__c=function(e,t){t.some(function(r){try{r.__h.forEach(al),r.__h=r.__h.filter(function(n){return!n.__||Zp(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Pe.__e(n,r.__v)}}),ix&&ix(e,t)},Pe.unmount=function(e){ox&&ox(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{al(n)}catch(i){t=i}}),r.__H=void 0,t&&Pe.__e(t,r.__v))};sx=typeof requestAnimationFrame=="function";JH=Symbol.for("preact-signals");ee=void 0,bo=void 0,Nr=0,ef=0,ul=0;Fe.prototype.brand=JH;Fe.prototype.h=function(){return!0};Fe.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};Fe.prototype.U=function(e){if(this.t!==void 0){var t=e.e,r=e.x;t!==void 0&&(t.x=r,e.e=void 0),r!==void 0&&(r.e=t,e.x=void 0),e===this.t&&(this.t=r)}};Fe.prototype.subscribe=function(e){var t=this;return xo(function(){var r=t.value,n=ee;ee=void 0;try{e(r)}finally{ee=n}})};Fe.prototype.valueOf=function(){return this.value};Fe.prototype.toString=function(){return this.value+""};Fe.prototype.toJSON=function(){return this.value};Fe.prototype.peek=function(){var e=ee;ee=void 0;try{return this.value}finally{ee=e}};Object.defineProperty(Fe.prototype,"value",{get:function(){var e=Ax(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(ef>100)throw new Error("Cycle detected");this.v=e,this.i++,ul++,Nr++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{gl()}}}});(Qn.prototype=new Fe).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===ul))return!0;if(this.g=ul,this.f|=1,this.i>0&&!xx(this))return this.f&=-2,!0;var e=ee;try{Cx(this),ee=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return ee=e,Tx(this),this.f&=-2,!0};Qn.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Fe.prototype.S.call(this,e)};Qn.prototype.U=function(e){if(this.t!==void 0&&(Fe.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};Qn.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(Qn.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Ax(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});Ao.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};Ao.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Ox(this),Cx(this),Nr++;var e=ee;return ee=this,GH.bind(this,e)};Ao.prototype.N=function(){2&this.f||(this.f|=2,this.o=bo,bo=this)};Ao.prototype.d=function(){this.f|=8,1&this.f||hf(this)};Rx=[];xo(function(){Px=this.N})();Nx.displayName="_st";Object.defineProperties(Fe.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:Nx},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});Xn("__b",function(e,t){if(typeof t.type=="string"){var r,n=t.props;for(var i in n)if(i!=="children"){var o=n[i];o instanceof Fe&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});Xn("__r",function(e,t){dl();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return xo(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),dl(r),e(t)});Xn("__e",function(e,t,r,n){dl(),e(t,r,n)});Xn("diffed",function(e,t){dl();var r;if(typeof t.type=="string"&&(r=t.__e)){var n=t.__np,i=t.props;if(n){var o=r.U;if(o)for(var a in o){var s=o[a];s!==void 0&&!(a in n)&&(s.d(),o[a]=void 0)}else o={},r.U=o;for(var l in n){var c=o[l],d=n[l];c===void 0?(c=BH(r,l,d,i),o[l]=c):c.o(d,i)}}}e(t)});Xn("unmount",function(e,t){if(typeof t.type=="string"){var r=t.__e;if(r){var n=r.U;if(n){r.U=void 0;for(var i in n){var o=n[i];o&&o.d()}}}}else{var a=t.__c;if(a){var s=a.__$u;s&&(a.__$u=void 0,s.d())}}e(t)});Xn("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});ut.prototype.shouldComponentUpdate=function(e,t){var r=this.__$u,n=r&&r.s!==void 0;for(var i in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var o=2&this.__$f;if(!(n||o||4&this.__$f)||1&this.__$f)return!0}else if(!(n||4&this.__$f)||3&this.__$f)return!0;for(var a in e)if(a!=="__source"&&e[a]!==this.props[a])return!0;for(var s in this.props)if(!(s in e))return!0;return!1};HH=function(e){queueMicrotask(function(){queueMicrotask(e)})};We=Yn`
|
|
608
623
|
inset: 0;
|
|
609
624
|
clear: none;
|
|
610
625
|
float: none;
|
|
@@ -622,8 +637,8 @@ or `);this.errors.push(o)}return n}},Ts=class extends Ee{constructor(...t){super
|
|
|
622
637
|
text-decoration: none;
|
|
623
638
|
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
|
|
624
639
|
'Helvetica Neue', sans-serif;
|
|
625
|
-
`;
|
|
626
|
-
${
|
|
640
|
+
`;WH=0;zH=Yn`
|
|
641
|
+
${We}
|
|
627
642
|
position: fixed;
|
|
628
643
|
top: 0;
|
|
629
644
|
left: 0;
|
|
@@ -636,7 +651,7 @@ or `);this.errors.push(o)}return n}},Ts=class extends Ee{constructor(...t){super
|
|
|
636
651
|
height: 100vh;
|
|
637
652
|
|
|
638
653
|
.card-wrapper {
|
|
639
|
-
${
|
|
654
|
+
${We}
|
|
640
655
|
position: relative;
|
|
641
656
|
display: flex;
|
|
642
657
|
flex-direction: column;
|
|
@@ -650,7 +665,7 @@ or `);this.errors.push(o)}return n}},Ts=class extends Ee{constructor(...t){super
|
|
|
650
665
|
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
|
|
651
666
|
|
|
652
667
|
.body {
|
|
653
|
-
${
|
|
668
|
+
${We}
|
|
654
669
|
display: flex;
|
|
655
670
|
flex-direction: column;
|
|
656
671
|
width: 100%;
|
|
@@ -659,7 +674,7 @@ or `);this.errors.push(o)}return n}},Ts=class extends Ee{constructor(...t){super
|
|
|
659
674
|
box-sizing: border-box;
|
|
660
675
|
justify-content: center;
|
|
661
676
|
.title {
|
|
662
|
-
${
|
|
677
|
+
${We}
|
|
663
678
|
text-align: center;
|
|
664
679
|
font-size: 16px;
|
|
665
680
|
font-weight: bold;
|
|
@@ -667,7 +682,7 @@ or `);this.errors.push(o)}return n}},Ts=class extends Ee{constructor(...t){super
|
|
|
667
682
|
}
|
|
668
683
|
|
|
669
684
|
.content {
|
|
670
|
-
${
|
|
685
|
+
${We}
|
|
671
686
|
font-size: 14px;
|
|
672
687
|
color: #888;
|
|
673
688
|
margin-bottom: 16px;
|
|
@@ -675,13 +690,13 @@ or `);this.errors.push(o)}return n}},Ts=class extends Ee{constructor(...t){super
|
|
|
675
690
|
}
|
|
676
691
|
|
|
677
692
|
.footer {
|
|
678
|
-
${
|
|
693
|
+
${We}
|
|
679
694
|
display: flex;
|
|
680
695
|
align-items: center;
|
|
681
696
|
width: 100%;
|
|
682
697
|
height: 40px;
|
|
683
698
|
button {
|
|
684
|
-
${
|
|
699
|
+
${We}
|
|
685
700
|
border: none;
|
|
686
701
|
outline: none;
|
|
687
702
|
height: 100%;
|
|
@@ -697,8 +712,8 @@ or `);this.errors.push(o)}return n}},Ts=class extends Ee{constructor(...t){super
|
|
|
697
712
|
}
|
|
698
713
|
}
|
|
699
714
|
}
|
|
700
|
-
`,
|
|
701
|
-
${
|
|
715
|
+
`,ur=re(null),tf=re(""),rf=re(""),sl=re(!1),KH=()=>{var e;(e=ur.value)==null||e.call(ur,!1)},YH=()=>{var e;(e=ur.value)==null||e.call(ur,!0)},QH=e=>w(void 0,null,function*(){let{title:t,content:r}=e;return ur.value&&(ur.value(!1),lt(()=>{ur.value=null,sl.value=!1})),lt(()=>{tf.value=t||"",rf.value=r||"",sl.value=!0}),new Promise(n=>{ur.value=i=>{lt(()=>{ur.value=null,sl.value=!1,tf.value="",rf.value=""}),n(i)}})}),XH=()=>sl.value?ge("div",{className:zH,children:ge("div",{className:"card-wrapper",children:[ge("div",{className:"body",children:[ge("div",{className:"title",children:tf.value}),ge("div",{className:"content",children:rf.value})]}),ge("div",{className:"footer",children:[ge("button",{onClick:KH,className:"cancel-btn",children:"Cancel"}),ge("button",{onClick:YH,className:"confirm-btm",children:"Confirm"})]})]})}):null,ZH=Yn`
|
|
716
|
+
${We}
|
|
702
717
|
position: relative;
|
|
703
718
|
display: flex;
|
|
704
719
|
align-items: center;
|
|
@@ -716,7 +731,7 @@ or `);this.errors.push(o)}return n}},Ts=class extends Ee{constructor(...t){super
|
|
|
716
731
|
}
|
|
717
732
|
|
|
718
733
|
button {
|
|
719
|
-
${
|
|
734
|
+
${We}
|
|
720
735
|
padding: 0 20px;
|
|
721
736
|
height: 30px;
|
|
722
737
|
line-height: 30px;
|
|
@@ -730,8 +745,8 @@ or `);this.errors.push(o)}return n}},Ts=class extends Ee{constructor(...t){super
|
|
|
730
745
|
cursor: not-allowed;
|
|
731
746
|
}
|
|
732
747
|
}
|
|
733
|
-
`,
|
|
734
|
-
${
|
|
748
|
+
`,e4=()=>{let e=re(!1),t=re(null);return{timerPaused:e,startTimestamp:t,startTimer:()=>{lt(()=>{t.value=Date.now(),e.value=!1})}}},t4=e=>{let{countdown:t=0,mode:r,onClose:n,state:i}=e,{startTimestamp:o,timerPaused:a}=i,s=Dx(t);$H(()=>{s.value>0?s.value-=1:lt(()=>{a.value=!0,s.value=0})},a.value?null:1e3);let l=wo(()=>{if(r==="interstitial"||r==="rewarded_insterstitial"||!o.value)return!1;let f=Date.now()-o.value;return s.value>0&&t-s.value>=5&&f>=5e3}),c=wo(()=>{if(r==="interstitial")return!0;if(!o.value)return!1;let f=Date.now()-o.value;return s.value<=0&&f>=(t-1)*1e3&&t>5}),d=wo(()=>r==="interstitial"?!1:!l.value&&!c.value),u=()=>w(void 0,null,function*(){if(a.value=!0,!(yield QH({title:"Are you sure?",content:"You will lose your reward if you dismiss this Ad."}))){a.value=!1;return}n("dismiss"),lt(()=>{a.value=!0,s.value=0,o.value=null})}),p=()=>{n("viewed"),lt(()=>{a.value=!0,s.value=0,o.value=null})};return ge("div",{className:ZH,children:[s.value>0&&r!=="interstitial"&&ge("div",{className:"timer",children:[s.value,"s"]}),ge("button",{onClick:l.value?u:c.value?p:void 0,disabled:d.value,children:ge("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:ge("path",{d:"M13.3 0.710215C12.91 0.320215 12.28 0.320215 11.89 0.710215L6.99997 5.59022L2.10997 0.700215C1.71997 0.310215 1.08997 0.310215 0.699971 0.700215C0.309971 1.09021 0.309971 1.72022 0.699971 2.11022L5.58997 7.00022L0.699971 11.8902C0.309971 12.2802 0.309971 12.9102 0.699971 13.3002C1.08997 13.6902 1.71997 13.6902 2.10997 13.3002L6.99997 8.41021L11.89 13.3002C12.28 13.6902 12.91 13.6902 13.3 13.3002C13.69 12.9102 13.69 12.2802 13.3 11.8902L8.40997 7.00022L13.3 2.11022C13.68 1.73022 13.68 1.09022 13.3 0.710215Z",fill:"white"})})})]})},r4=()=>{let e=re(),t=re(),r=re(),n=re(),i=re(),o=re(!1),a=re(15),s=re(""),l=re("reward");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,visible:o,countdown:a,src:s,mode:l}},n4=Yn`
|
|
749
|
+
${We}
|
|
735
750
|
position: fixed;
|
|
736
751
|
z-index: 2147483647;
|
|
737
752
|
background: white;
|
|
@@ -741,7 +756,7 @@ or `);this.errors.push(o)}return n}},Ts=class extends Ee{constructor(...t){super
|
|
|
741
756
|
flex-direction: column;
|
|
742
757
|
|
|
743
758
|
iframe {
|
|
744
|
-
${
|
|
759
|
+
${We}
|
|
745
760
|
flex: 1;
|
|
746
761
|
position: relative;
|
|
747
762
|
display: block;
|
|
@@ -749,8 +764,8 @@ or `);this.errors.push(o)}return n}},Ts=class extends Ee{constructor(...t){super
|
|
|
749
764
|
width: 100%;
|
|
750
765
|
height: 100%;
|
|
751
766
|
}
|
|
752
|
-
`,
|
|
753
|
-
${
|
|
767
|
+
`,i4=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,visible:s,countdown:l,src:c,mode:d}=t,u=Ui(()=>e4(),[]),[p,f]=ca(!1),m=y=>{var v,b,k,x;s.value=!1,y==="dismiss"?(v=n.value)==null||v.call(n):y==="viewed"&&((b=i.value)==null||b.call(i)),(k=r.value)==null||k.call(r),(x=o.value)==null||x.call(o),f(!1)},g=bn(()=>{var y;p||(f(!0),(y=a.value)==null||y.call(a))},[p]);return Mi(()=>{p&&(d.value==="reward"||d.value==="rewarded_insterstitial")&&setTimeout(()=>{u.startTimer()},100)},[p,d.value]),s.value?ge("div",{className:n4,children:[ge(t4,{mode:d.value,onClose:m,countdown:l.value,state:u}),s.value&&ge("iframe",{src:c.value,onLoad:g,sandbox:"allow-scripts allow-same-origin allow-forms allow-modals allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-top-navigation allow-top-navigation-by-user-activation allow-top-navigation-to-custom-protocols"}),ge(XH,{})]}):null};nf=class{constructor(t,r){lr(this,"name","OKSPIN"),lr(this,"initialized",!1),lr(this,"initCompleter",null),lr(this,"context",void 0),lr(this,"initParams",void 0),lr(this,"adsOverlay",null),lr(this,"adsIsShowing",!1),lr(this,"lastUnDisplayedAdBreak",null),lr(this,"state",r4()),this.context=t,this.initParams=r}init(){return w(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg"),_u(ge(i4,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay),this.initialized=!0,(t=this.initCompleter)==null||t.call(this)})}adConfig(t){var r;if(this.initialized){(r=t.onReady)==null||r.call(t);return}this.initCompleter=()=>{var n;(n=t.onReady)==null||n.call(t)}}adBreak(t,r){return w(this,null,function*(){var n,i,o,a,s,l,c,d;if(!this.initialized||!this.adsOverlay||!r.params.url){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"});return}if(this.adsIsShowing){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}switch(t.type){case"preroll":{(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(a=t.beforeAd)==null||a.call(t);let u=()=>{var f;this.adsIsShowing=!1,(f=t.afterAd)==null||f.call(t)},p=()=>{var f;this.adsIsShowing=!1,(f=t.adBreakDone)==null||f.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})};lt(()=>{this.adsIsShowing=!0,this.state.afterAd.value=u,this.state.adBreakDone.value=p,this.state.src.value=r.params.url,this.state.mode.value="interstitial",this.state.visible.value=!0});break}case"reward":{this.lastUnDisplayedAdBreak&&((l=(s=this.lastUnDisplayedAdBreak).adBreakDone)==null||l.call(s,{breakType:this.lastUnDisplayedAdBreak.type,breakName:this.lastUnDisplayedAdBreak.type==="preroll"?"":this.lastUnDisplayedAdBreak.name,breakFormat:this.lastUnDisplayedAdBreak.type==="reward"?"reward":"interstitial",breakStatus:"ignored"}),this.lastUnDisplayedAdBreak=null),(c=t.beforeAd)==null||c.call(t);let u=()=>{var v;this.adsIsShowing=!1,(v=t.afterAd)==null||v.call(t)},p={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},f=()=>{var v;this.adsIsShowing=!1,p.breakStatus="dismissed",(v=t.adDismissed)==null||v.call(t)},m=()=>{var v;this.adsIsShowing=!1,p.breakStatus="viewed",(v=t.adViewed)==null||v.call(t)},g=()=>{var v;this.adsIsShowing=!1,(v=t.adBreakDone)==null||v.call(t,p)};lt(()=>{this.state.afterAd.value=u,this.state.adDismissed.value=f,this.state.adViewed.value=m,this.state.adBreakDone.value=g});let y=()=>{var v;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(v=t.adBreakDone)==null||v.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,lt(()=>{var b;this.state.countdown.value=(b=r.params.countdown)!=null?b:15,this.state.src.value=r.params.url,this.state.mode.value="reward",this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,y);break}}})}},$n={};window.addEventListener("message",e=>{e.origin!=="https://ads.appsrockets.com"&&e.origin!=="https://stg-ads.appsrockets.com"||$n[e.data.type]&&$n[e.data.type].forEach(t=>{t(e.data.data)})});Hn=(e,t)=>{Mi(()=>($n[e]||($n[e]=new Set),$n[e].add(t),()=>{$n[e].delete(t)}),[e,t])},s4=()=>{let e=re(),t=re(),r=re(),n=re(),i=re(),o=re(),a=re(),s=re(!1),l=re("");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,adLinkClicked:o,adError:a,visible:s,src:l}},l4=Yn`
|
|
768
|
+
${We}
|
|
754
769
|
position: fixed;
|
|
755
770
|
z-index: 2147483647;
|
|
756
771
|
background: white;
|
|
@@ -760,7 +775,7 @@ or `);this.errors.push(o)}return n}},Ts=class extends Ee{constructor(...t){super
|
|
|
760
775
|
flex-direction: column;
|
|
761
776
|
|
|
762
777
|
iframe {
|
|
763
|
-
${
|
|
778
|
+
${We}
|
|
764
779
|
flex: 1;
|
|
765
780
|
position: relative;
|
|
766
781
|
display: block;
|
|
@@ -768,8 +783,8 @@ or `);this.errors.push(o)}return n}},Ts=class extends Ee{constructor(...t){super
|
|
|
768
783
|
width: 100%;
|
|
769
784
|
height: 100%;
|
|
770
785
|
}
|
|
771
|
-
`,wH=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adLinkClicked:s,visible:l,src:c}=t,[d,u]=ta(!1),f=m=>{var g,_,v,b;u(!1),l.value=!1,m==="dismiss"?(g=n.value)==null||g.call(n):m==="viewed"&&((_=i.value)==null||_.call(i)),(v=r.value)==null||v.call(r),(b=o.value)==null||b.call(o)},p=()=>{var m;(m=a.value)==null||m.call(a)};return Dn("appsrockets_ad_dismissed",()=>f("dismiss")),Dn("appsrockets_ad_rewarded",()=>f("viewed")),Dn("appsrockets_ad_completed",()=>f("viewed")),Dn("appsrockets_ad_skipped",()=>f("viewed")),Dn("appsrockets_ad_clicked",m=>{var g;return(g=s.value)==null?void 0:g.call(s,m)}),Dn("appsrockets_ad_loaded",()=>u(!0)),l.value?ge("div",{className:bH,style:{display:d?"flex":"none"},children:l.value&&ge("iframe",{src:c.value,onLoad:p,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};Xf=class{constructor(t,r){or(this,"name","APPSROCKETS"),or(this,"initialized",!1),or(this,"initCompleter",null),or(this,"context",void 0),or(this,"adsOverlay",null),or(this,"adsIsShowing",!1),or(this,"lastUnDisplayedAdBreak",null),or(this,"state",_H()),or(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"),du(ge(wH,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay),this.initialized=!0,(t=this.initCompleter)==null||t.call(this)})}adConfig(t){var r;if(this.initialized){(r=t.onReady)==null||r.call(t);return}this.initCompleter=()=>{var n;(n=t.onReady)==null||n.call(t)}}adBreak(t,r){var n,i,o,a,s,l,c,d;if(!this.initialized||!this.adsOverlay||!r.params.url){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"});return}if(this.adsIsShowing){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}let u=f=>{var p,m;(m=(p=this.context).handleLinkClicked)==null||m.call(p,f)};switch(t.type){case"preroll":{(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(a=t.beforeAd)==null||a.call(t);let f=()=>{var g;this.adsIsShowing=!1,(g=t.afterAd)==null||g.call(t)},p=()=>{var g;this.adsIsShowing=!1,(g=t.adBreakDone)==null||g.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})},m=()=>{var g;this.adsIsShowing=!1,(g=t.adBreakDone)==null||g.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"noAdPreloaded"})};at(()=>{this.adsIsShowing=!0,this.state.afterAd.value=f,this.state.adBreakDone.value=p,this.state.src.value=this.processUrl(r.params.url),this.state.adLinkClicked.value=u,this.state.adError.value=m,this.state.visible.value=!0});break}case"reward":{this.lastUnDisplayedAdBreak&&((l=(s=this.lastUnDisplayedAdBreak).adBreakDone)==null||l.call(s,{breakType:this.lastUnDisplayedAdBreak.type,breakName:this.lastUnDisplayedAdBreak.type==="preroll"?"":this.lastUnDisplayedAdBreak.name,breakFormat:this.lastUnDisplayedAdBreak.type==="reward"?"reward":"interstitial",breakStatus:"ignored"}),this.lastUnDisplayedAdBreak=null),(c=t.beforeAd)==null||c.call(t);let f=()=>{var I;this.adsIsShowing=!1,(I=t.afterAd)==null||I.call(t)},p={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},m=()=>{var I;this.adsIsShowing=!1,p.breakStatus="dismissed",(I=t.adDismissed)==null||I.call(t)},g=()=>{var I;this.adsIsShowing=!1,p.breakStatus="viewed",(I=t.adViewed)==null||I.call(t)},_=()=>{var I;this.adsIsShowing=!1,(I=t.adBreakDone)==null||I.call(t,p)},v=()=>{this.adsIsShowing=!1,p.breakStatus="noAdPreloaded"};at(()=>{this.state.afterAd.value=f,this.state.adDismissed.value=m,this.state.adViewed.value=g,this.state.adBreakDone.value=_,this.state.adLinkClicked.value=u,this.state.adError.value=v});let b=()=>{var I;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(I=t.adBreakDone)==null||I.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,at(()=>{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}}}},SA=()=>{window.googletag=window.googletag||{cmd:[]},window.googletag.pubadsReady||window.googletag.cmd.push(()=>{window.googletag.enableServices()})};Zf=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,SA(),this.withCommand(()=>{this.init()})}};ep=class{constructor(t,r,n){var i=this;ot(this,"adUnit",void 0),ot(this,"project",void 0),ot(this,"keyValue",void 0),ot(this,"adsContext",null),ot(this,"gamingInterstitialSlot",null),ot(this,"readyEvent",null),ot(this,"isRetrying",!1),ot(this,"withCommand",function(){googletag.cmd.push(...arguments)}),ot(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))}),ot(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)}),ot(this,"reinit",function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;i.destroy(o,a),i.init()}),ot(this,"handleSlotReady",o=>{this.gamingInterstitialSlot===o.slot&&(this.readyEvent=o)}),ot(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")}))}),ot(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)))})}),SA(),this.adUnit=t,this.project=r,this.keyValue=n,this.withCommand(()=>{this.init()})}};tp=class{constructor(t,r){Gr(this,"name","GOOGLE_GPT"),Gr(this,"context",void 0),Gr(this,"contextInfo",void 0),Gr(this,"initParams",void 0),Gr(this,"rewardAdManager",void 0),Gr(this,"interstitialManager",void 0),Gr(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 Zf(t,n,this.initParams.keyValue)),r&&(this.interstitialManager=new ep(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}}}};rp=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:eA.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:Xk.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:Zk.WebSDK};return $3(i)}};ol=class{constructor(t){Xe(this,"context",void 0),Xe(this,"adsTrackSerializer",void 0),Xe(this,"contextInfo",void 0),this.context=t,this.contextInfo=t.getContextInfo(),this.adsTrackSerializer=new rp(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}}},np=class{constructor(t,r){var n=this;Xe(this,"context",void 0),Xe(this,"contextInfo",void 0),Xe(this,"requestContext",void 0),Xe(this,"pendingAFGAdsInfo",{REWARD:Promise.resolve(null),INTERSTITIAL:Promise.resolve(null)}),Xe(this,"pendingAFVAdsInfo",Promise.resolve(null)),Xe(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})),Xe(this,"cacheRewardInfo",()=>{this.pendingAFGAdsInfo.REWARD=this.doFetchAdsInfo("reward").catch(()=>null)}),Xe(this,"cacheInterstitialInfo",i=>{this.pendingAFGAdsInfo.INTERSTITIAL=this.doFetchAdsInfo(i).catch(()=>null)}),Xe(this,"cacheAFVInfo",()=>{this.pendingAFVAdsInfo=this.doFetchAdsInfo("afv").catch(()=>null)}),Xe(this,"cacheNextAFGAdsInfo",i=>w(this,null,function*(){i==="reward"?this.cacheRewardInfo():this.cacheInterstitialInfo(i)})),Xe(this,"getAFGAdsInfo",i=>w(this,null,function*(){let o=yield i==="reward"?this.pendingAFGAdsInfo.REWARD:this.pendingAFGAdsInfo.INTERSTITIAL;return this.cacheNextAFGAdsInfo(i),o})),Xe(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 ol(t),r!=null&&r.reward&&this.cacheRewardInfo(),r!=null&&r.interstitial&&this.cacheInterstitialInfo("start"),r!=null&&r.afv&&this.cacheAFVInfo()}};al=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 Jf(this.context),this.adsActionDetection=new Bf(this.context),this.contextInfo=this.context.getContextInfo(),this.adsRequest=new np(t),this.requestContext=new ol(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 tp(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"ADSENSE":case"ADSENSE_ADMOB":{let i=new Hf(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"OKSPIN":{let i=new Yf(this.context,n.params);yield i.init(),this.providers.OKSPIN=i;break}case"APPSROCKETS":{let i=new Xf(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,f,p,m,g;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 v=yield this.adsRequest.getAFGAdsInfo(t.type),b=v==null?void 0:v.data,I=v==null?void 0:v.code;if(I==="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 A,P,O,x;(A=t.beforeAd)==null||A.call(t),(P=t.adViewed)==null||P.call(t),(O=t.afterAd)==null||O.call(t),(x=t.adBreakDone)==null||x.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||I!=="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 A=b.sort((C,U)=>C.seq-U.seq);if(A.length===0){(f=t.adBreakDone)==null||f.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,O=null,x=new jf(this.context);for(this.adsActionDetection.adBreakIsShowing=!0;A.length>0;){let C=A.shift(),U=this.providers[C.provider];if(U){let[We,q]=yield x.callAdBreakAndContinue(U,t,C,Re=>{var Ne;this.adsIsShowing=Re,(Ne=this.context.eventEmitter)==null||Ne.emit("isAdShowing",Re)});P=We,O=q}else P=!0,O={breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"};if(!P)break}P&&O&&((p=t.adBreakDone)==null||p.call(t,O))}}catch(v){(m=t.adBreakDone)==null||m.call(t,{breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}finally{this.adsIsShowing=!1,(g=this.context.eventEmitter)==null||g.emit("isAdShowing",!1),this.adsActionDetection.adBreakIsShowing=!1}})}adUnit(t){console.warn("This method has been deprecated. We will not support AdSense AdUnit in the future.")}},oX=jn`
|
|
772
|
-
${
|
|
786
|
+
`,c4=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adLinkClicked:s,visible:l,src:c}=t,[d,u]=ca(!1),p=m=>{var g,y,v,b;u(!1),l.value=!1,m==="dismiss"?(g=n.value)==null||g.call(n):m==="viewed"&&((y=i.value)==null||y.call(i)),(v=r.value)==null||v.call(r),(b=o.value)==null||b.call(o)},f=()=>{var m;(m=a.value)==null||m.call(a)};return Hn("appsrockets_ad_dismissed",()=>p("dismiss")),Hn("appsrockets_ad_rewarded",()=>p("viewed")),Hn("appsrockets_ad_completed",()=>p("viewed")),Hn("appsrockets_ad_skipped",()=>p("viewed")),Hn("appsrockets_ad_clicked",m=>{var g;return(g=s.value)==null?void 0:g.call(s,m)}),Hn("appsrockets_ad_loaded",()=>u(!0)),l.value?ge("div",{className:l4,style:{display:d?"flex":"none"},children:l.value&&ge("iframe",{src:c.value,onLoad:f,allowFullScreen:!0,allow:"autoplay",sandbox:"allow-scripts allow-same-origin allow-forms allow-modals allow-downloads allow-popups allow-popups-to-escape-sandbox allow-top-navigation-by-user-activation allow-top-navigation allow-top-navigation-by-user-activation allow-top-navigation-to-custom-protocols"})}):null};of=class{constructor(t,r){cr(this,"name","APPSROCKETS"),cr(this,"initialized",!1),cr(this,"initCompleter",null),cr(this,"context",void 0),cr(this,"adsOverlay",null),cr(this,"adsIsShowing",!1),cr(this,"lastUnDisplayedAdBreak",null),cr(this,"state",s4()),cr(this,"processUrl",n=>{var i;let o=this.context.getContextInfo(),a=new URL(n),s=new URLSearchParams(a.search);return s.has("joliSource")||s.set("joliSource",o.joliSource),s.get("osType")||s.set("osType",o.osType),s.get("runtimeType")||s.set("runtimeType",o.runtimeType),s.get("mode")||s.set("mode","AFG"),s.get("deviceId")||s.set("deviceId",o.deviceId),s.get("statusBarHeight")||s.set("statusBarHeight",((i=this.context.getWindowInfo().statusBarHeight)!=null?i:0).toString()),a.search=s.toString(),a.toString()}),this.context=t}init(){return w(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg-appsrockets"),_u(ge(c4,{state:this.state}),this.adsOverlay),document.documentElement.appendChild(this.adsOverlay),this.initialized=!0,(t=this.initCompleter)==null||t.call(this)})}adConfig(t){var r;if(this.initialized){(r=t.onReady)==null||r.call(t);return}this.initCompleter=()=>{var n;(n=t.onReady)==null||n.call(t)}}adBreak(t,r){var n,i,o,a,s,l,c,d;if(!this.initialized||!this.adsOverlay||!r.params.url){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"});return}if(this.adsIsShowing){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}let u=p=>{var f,m;(m=(f=this.context).handleLinkClicked)==null||m.call(f,p)};switch(t.type){case"preroll":{(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(a=t.beforeAd)==null||a.call(t);let p=()=>{var g;this.adsIsShowing=!1,(g=t.afterAd)==null||g.call(t)},f=()=>{var g;this.adsIsShowing=!1,(g=t.adBreakDone)==null||g.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})},m=()=>{var g;this.adsIsShowing=!1,(g=t.adBreakDone)==null||g.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"noAdPreloaded"})};lt(()=>{this.adsIsShowing=!0,this.state.afterAd.value=p,this.state.adBreakDone.value=f,this.state.src.value=this.processUrl(r.params.url),this.state.adLinkClicked.value=u,this.state.adError.value=m,this.state.visible.value=!0});break}case"reward":{this.lastUnDisplayedAdBreak&&((l=(s=this.lastUnDisplayedAdBreak).adBreakDone)==null||l.call(s,{breakType:this.lastUnDisplayedAdBreak.type,breakName:this.lastUnDisplayedAdBreak.type==="preroll"?"":this.lastUnDisplayedAdBreak.name,breakFormat:this.lastUnDisplayedAdBreak.type==="reward"?"reward":"interstitial",breakStatus:"ignored"}),this.lastUnDisplayedAdBreak=null),(c=t.beforeAd)==null||c.call(t);let p=()=>{var k;this.adsIsShowing=!1,(k=t.afterAd)==null||k.call(t)},f={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},m=()=>{var k;this.adsIsShowing=!1,f.breakStatus="dismissed",(k=t.adDismissed)==null||k.call(t)},g=()=>{var k;this.adsIsShowing=!1,f.breakStatus="viewed",(k=t.adViewed)==null||k.call(t)},y=()=>{var k;this.adsIsShowing=!1,(k=t.adBreakDone)==null||k.call(t,f)},v=()=>{this.adsIsShowing=!1,f.breakStatus="noAdPreloaded"};lt(()=>{this.state.afterAd.value=p,this.state.adDismissed.value=m,this.state.adViewed.value=g,this.state.adBreakDone.value=y,this.state.adLinkClicked.value=u,this.state.adError.value=v});let b=()=>{var k;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(k=t.adBreakDone)==null||k.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,lt(()=>{this.state.src.value=this.processUrl(r.params.url),this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,b);break}}}},Mx=()=>{window.googletag=window.googletag||{cmd:[]},window.googletag.pubadsReady||window.googletag.cmd.push(()=>{window.googletag.enableServices()})};af=class{constructor(t,r,n){Ve(this,"adUnit",void 0),Ve(this,"project",void 0),Ve(this,"keyValue",void 0),Ve(this,"adsContext",null),Ve(this,"rewardedSlot",null),Ve(this,"rewardedPayload",null),Ve(this,"readyEvent",null),Ve(this,"withCommand",function(){googletag.cmd.push(...arguments)}),Ve(this,"init",()=>{var i;this.rewardedSlot=googletag.defineOutOfPageSlot(this.adUnit,googletag.enums.OutOfPageFormat.REWARDED),this.rewardedSlot&&(this.rewardedSlot.addService(googletag.pubads()),googletag.pubads().addEventListener("rewardedSlotReady",this.handleSlotReady),googletag.pubads().addEventListener("rewardedSlotClosed",this.handleSlotClosed),googletag.pubads().addEventListener("rewardedSlotGranted",this.handleSlotGranted),googletag.pubads().addEventListener("slotRenderEnded",this.handleSlotRenderEnded),this.keyValue&&(Object.keys(this.keyValue).forEach(o=>{var a;(a=this.rewardedSlot)==null||a.setTargeting(o,this.keyValue[o])}),Object.keys(this.keyValue).includes("project")||(i=this.rewardedSlot)==null||i.setTargeting("project",this.project)),googletag.display(this.rewardedSlot))}),Ve(this,"destroy",i=>{var o,a;this.rewardedPayload=null,this.readyEvent=null,googletag.pubads().removeEventListener("rewardedSlotReady",this.handleSlotReady),googletag.pubads().removeEventListener("rewardedSlotClosed",this.handleSlotClosed),googletag.pubads().removeEventListener("rewardedSlotGranted",this.handleSlotGranted),googletag.pubads().removeEventListener("slotRenderEnded",this.handleSlotRenderEnded),this.rewardedSlot&&(googletag.destroySlots([this.rewardedSlot]),this.rewardedSlot=null),(a=(o=this.adsContext)==null?void 0:o.adBreakDone)==null||a.call(o,i),this.adsContext=null}),Ve(this,"reinit",i=>{this.destroy(i),this.init()}),Ve(this,"handleSlotReady",i=>{i.slot===this.rewardedSlot&&(this.readyEvent=i)}),Ve(this,"handleSlotClosed",i=>{var o,a;if(this.adsContext&&i.slot===this.rewardedSlot){let s=this.rewardedPayload?"viewed":"dismissed";s==="viewed"?this.adsContext.adViewed():this.adsContext.adDismissed(),(a=(o=this.adsContext).afterAd)==null||a.call(o),this.withCommand(()=>{this.reinit(s)})}}),Ve(this,"handleSlotGranted",i=>{this.adsContext&&i.slot===this.rewardedSlot&&(this.rewardedPayload=i.payload)}),Ve(this,"handleSlotRenderEnded",i=>{i.slot===this.rewardedSlot&&i.isEmpty&&this.adsContext&&this.withCommand(()=>{this.reinit("frequencyCapped")})}),Ve(this,"requestAds",i=>{this.withCommand(()=>{if(this.adsContext&&this.reinit("ignored"),this.rewardedSlot||this.init(),this.adsContext=i,!this.rewardedSlot){this.reinit("notReady");return}if(this.readyEvent)this.adsContext.beforeReward(()=>{var o,a,s;(a=(o=this.adsContext)==null?void 0:o.beforeAd)==null||a.call(o),(s=this.readyEvent)==null||s.makeRewardedVisible()});else{let o=a=>{a.slot===this.rewardedSlot&&this.adsContext&&(googletag.pubads().removeEventListener("rewardedSlotReady",o),this.readyEvent=a,this.adsContext.beforeReward(()=>{var s,l,c;(l=(s=this.adsContext)==null?void 0:s.beforeAd)==null||l.call(s),(c=this.readyEvent)==null||c.makeRewardedVisible()}))};googletag.pubads().addEventListener("rewardedSlotReady",o),window.setTimeout(()=>{this.readyEvent||(this.reinit("timeout"),googletag.pubads().removeEventListener("rewardedSlotReady",o))},500)}})}),this.adUnit=t,this.project=r,this.keyValue=n,Mx(),this.withCommand(()=>{this.init()})}};sf=class{constructor(t,r,n){var i=this;st(this,"adUnit",void 0),st(this,"project",void 0),st(this,"keyValue",void 0),st(this,"adsContext",null),st(this,"gamingInterstitialSlot",null),st(this,"readyEvent",null),st(this,"isRetrying",!1),st(this,"withCommand",function(){googletag.cmd.push(...arguments)}),st(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))}),st(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)}),st(this,"reinit",function(o){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;i.destroy(o,a),i.init()}),st(this,"handleSlotReady",o=>{this.gamingInterstitialSlot===o.slot&&(this.readyEvent=o)}),st(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")}))}),st(this,"requestAds",o=>{this.withCommand(()=>{var a,s,l;if(this.adsContext&&this.reinit("ignored"),this.gamingInterstitialSlot||this.init(),this.adsContext=o,!this.gamingInterstitialSlot){this.reinit("notReady");return}this.readyEvent?((a=o.beforeAd)==null||a.call(o),this.readyEvent.makeGameManualInterstitialVisible()):((l=(s=this.adsContext).onEnd)==null||l.call(s,"frequencyCapped"),this.adsContext=null,this.isRetrying||(this.isRetrying=!0,window.setTimeout(()=>{this.readyEvent||this.withCommand(()=>{this.reinit("frequencyCapped",!1)}),this.isRetrying=!1},31e3)))})}),Mx(),this.adUnit=t,this.project=r,this.keyValue=n,this.withCommand(()=>{this.init()})}};lf=class{constructor(t,r){Zr(this,"name","GOOGLE_GPT"),Zr(this,"context",void 0),Zr(this,"contextInfo",void 0),Zr(this,"initParams",void 0),Zr(this,"rewardAdManager",void 0),Zr(this,"interstitialManager",void 0),Zr(this,"insertScript",()=>{let n="jolibox-google-gpt",i=document.getElementById(n);i||(i=window.document.createElement("script"),i.id=n,i.async=!0,i.src="https://securepubads.g.doubleclick.net/tag/js/gpt.js",i.crossOrigin="anonymous",document.head.appendChild(i))}),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,this.insertScript()}init(){return w(this,null,function*(){let t=this.contextInfo.testAdsMode?"/22639388115/rewarded_web_example":this.initParams.rewardedSlot,r=this.contextInfo.testAdsMode?"/6355419/Travel/Europe/France/Paris":this.initParams.interstitialSlot,n=`minigame-${this.contextInfo.runtimeType==="APP"?"app":"h5"}`;t&&(this.rewardAdManager=new af(t,n,this.initParams.keyValue)),r&&(this.interstitialManager=new sf(r,n,this.initParams.keyValue))})}adConfig(t,r){}adBreak(t,r){var n,i,o;switch(t.type){case"preroll":{(n=t.adBreakDone)==null||n.call(t,{breakType:"preroll",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"reward":{if(!this.rewardAdManager){(i=t.adBreakDone)==null||i.call(t,{breakName:t.name,breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}this.rewardAdManager.requestAds({beforeAd:t.beforeAd,afterAd:t.afterAd,adDismissed:t.adDismissed,adViewed:t.adViewed,beforeReward:t.beforeReward,adBreakDone:a=>{var s;(s=t.adBreakDone)==null||s.call(t,{breakName:t.name,breakType:t.type,breakFormat:"reward",breakStatus:a})}});break}default:{if(!this.interstitialManager){(o=t.adBreakDone)==null||o.call(t,{breakName:t.name,breakType:t.type,breakFormat:"interstitial",breakStatus:"noAdPreloaded"});return}this.interstitialManager.requestAds({beforeAd:t.beforeAd,afterAd:t.afterAd,onEnd:a=>{var s;(s=t.adBreakDone)==null||s.call(t,{breakName:t.name,breakType:t.type,breakFormat:"interstitial",breakStatus:a})}});break}}}};cf=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";Jp(this,"context",void 0),Jp(this,"placement","GAME"),Jp(this,"contextInfo",void 0),this.context=t,this.placement=r,this.contextInfo=this.context.getContextInfo()}getLocation(){let t=new URLSearchParams(window.location.search),r={};return t.forEach((n,i)=>{r[i]=n}),{name:this.placement==="GAME"?"GamePage":"DramaPage",params:r}}getDevice(){var t,r,n,i;return{platform:(t=this.contextInfo.platform)!=null?t:fx.WebSDK,os:this.contextInfo.osType+"_"+this.contextInfo.runtimeType,appVersion:"1.0.0",appId:(r=this.contextInfo.hostAppId)!=null?r:"1",model:(n=this.contextInfo.deviceModel)!=null?n:"UnknownModel",brand:(i=this.contextInfo.deviceBrand)!=null?i:"UnknownBrand",uuid:this.contextInfo.deviceId,jsSdkVersion:"1.0.0",extra:{}}}serialize(t,r){var n;let i={protocolVersion:"1.0.0",events:[{name:t,type:dx.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:px.WebSDK};return R3(i)}};pl=class{constructor(t){Ze(this,"context",void 0),Ze(this,"adsTrackSerializer",void 0),Ze(this,"contextInfo",void 0),this.context=t,this.contextInfo=t.getContextInfo(),this.adsTrackSerializer=new cf(this.context)}getRequestContextData(t){var r,n;this.contextInfo=this.context.getContextInfo();let{width:i,height:o}=this.context.getWindowInfo();return{report:JSON.stringify(this.adsTrackSerializer.serialize(t,{sessionId:this.contextInfo.sessionId,objectType:this.contextInfo.objectType,objectId:this.contextInfo.objectId,testAdsMode:this.contextInfo.testAdsMode})),osType:this.contextInfo.osType,runtimeType:this.contextInfo.runtimeType,sessionId:this.contextInfo.sessionId,deviceId:this.contextInfo.deviceId,adId:this.contextInfo.adId,deviceModel:(r=this.contextInfo.deviceModel)!=null?r:"UnknownModel",deviceBrand:(n=this.contextInfo.deviceBrand)!=null?n:"UnknownBrand",dimension:{width:i,height:o}}}getRequestBizParams(){return{objectType:this.contextInfo.objectType,objectId:this.contextInfo.objectId}}},uf=class{constructor(t,r){var n=this;Ze(this,"context",void 0),Ze(this,"contextInfo",void 0),Ze(this,"requestContext",void 0),Ze(this,"pendingAFGAdsInfo",{REWARD:Promise.resolve(null),INTERSTITIAL:Promise.resolve(null)}),Ze(this,"pendingAFVAdsInfo",Promise.resolve(null)),Ze(this,"doFetchAdsInfo",i=>w(this,null,function*(){let o=i==="afv"?"AdsAFVSDKRequest":"AdsAFGSDKAdBreak",a=i==="afv"?"REWARD_INTERSTITIAL":i==="reward"?"REWARD":"INTERSTITIAL",s=i==="afv"?void 0:"cached",{data:l,code:c}=yield this.context.httpClient.post("/api/ads/info",{data:{contextData:this.requestContext.getRequestContextData(o),bizParams:this.requestContext.getRequestBizParams(),adsType:a,testAdsMode:this.contextInfo.testAdsMode,name:s}});return c==="SUCCESS"||c==="BYPASS_ADS"?{code:c,data:l}:null})),Ze(this,"cacheRewardInfo",()=>{this.pendingAFGAdsInfo.REWARD=this.doFetchAdsInfo("reward").catch(()=>null)}),Ze(this,"cacheInterstitialInfo",i=>{this.pendingAFGAdsInfo.INTERSTITIAL=this.doFetchAdsInfo(i).catch(()=>null)}),Ze(this,"cacheAFVInfo",()=>{this.pendingAFVAdsInfo=this.doFetchAdsInfo("afv").catch(()=>null)}),Ze(this,"cacheNextAFGAdsInfo",i=>w(this,null,function*(){i==="reward"?this.cacheRewardInfo():this.cacheInterstitialInfo(i)})),Ze(this,"getAFGAdsInfo",i=>w(this,null,function*(){let o=yield i==="reward"?this.pendingAFGAdsInfo.REWARD:this.pendingAFGAdsInfo.INTERSTITIAL;return this.cacheNextAFGAdsInfo(i),o})),Ze(this,"getAFVAdsInfo",function(){return w(this,arguments,function*(){if(!(arguments.length>0&&arguments[0]!==void 0)||arguments[0]){let i=yield n.pendingAFVAdsInfo;return n.cacheAFVInfo(),i}else return n.cacheAFVInfo(),yield n.pendingAFVAdsInfo})}),this.context=t,this.contextInfo=this.context.getContextInfo(),this.requestContext=new pl(t),r!=null&&r.reward&&this.cacheRewardInfo(),r!=null&&r.interstitial&&this.cacheInterstitialInfo("start"),r!=null&&r.afv&&this.cacheAFVInfo()}};fl=class{constructor(t){if(Ct(this,"context",void 0),Ct(this,"contextInfo",void 0),Ct(this,"providers",{}),Ct(this,"channelPolicy",void 0),Ct(this,"adsActionDetection",void 0),Ct(this,"requestContext",void 0),Ct(this,"adsRequest",void 0),Ct(this,"initialized",!1),Ct(this,"adsIsShowing",!1),Ct(this,"lastAdBreak",void 0),Ct(this,"initializedTimeStamp",Date.now()),t)this.context=t,this.channelPolicy=new zp(this.context),this.adsActionDetection=new Wp(this.context),this.contextInfo=this.context.getContextInfo(),this.adsRequest=new uf(t),this.requestContext=new pl(t);else throw new Error("JoliboxAdsForGame requires a configuration object")}init(t){return w(this,null,function*(){window.adsbygoogle=window.adsbygoogle||[];let{data:r}=yield this.context.httpClient.post("/api/ads/init",{data:{contextData:this.requestContext.getRequestContextData("AdsAFGSDKInit"),bizParams:this.requestContext.getRequestBizParams(),testAdsMode:this.contextInfo.testAdsMode}});if((r==null?void 0:r.length)>0)for(let n of r)switch(n.provider){case"GOOGLE_GPT":{let i=new lf(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"ADSENSE":case"ADSENSE_ADMOB":{let i=new Kp(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"OKSPIN":{let i=new nf(this.context,n.params);yield i.init(),this.providers.OKSPIN=i;break}case"APPSROCKETS":{let i=new of(this.context,n.params);yield i.init(),this.providers.APPSROCKETS=i;break}}this.adsRequest.cacheInterstitialInfo("start"),this.adsRequest.cacheRewardInfo(),this.initialized=!0})}adConfig(t){this.providers.ADSENSE?this.providers.ADSENSE.adConfig(t):window.adsbygoogle.push(t)}adBreak(t){return w(this,null,function*(){var r,n,i,o,a,s,l,c,d,u,p,f,m,g;let y=Date.now();if(y-this.initializedTimeStamp<3e3){(r=t.adBreakDone)==null||r.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}if(this.lastAdBreak&&y-this.lastAdBreak<500){console.warn("[Jolibox SDK Ads] You can't call adBreak too frequently"),(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}if(this.lastAdBreak=y,this.adsIsShowing){console.warn("[Jolibox SDK Ads] You can't call adBreak while ad is showing"),(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}if(this.initialized||(yield this.init()),t.type!=="reward"&&!this.channelPolicy.shouldBypassCallingInterstitial()){(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"skipInterstitials",breakFormat:"interstitial",breakStatus:"viewed"});return}if(!this.context.checkNetwork()){(a=t.adBreakDone)==null||a.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}try{let v=yield this.adsRequest.getAFGAdsInfo(t.type),b=v==null?void 0:v.data,k=v==null?void 0:v.code;if(k==="BYPASS_ADS"){switch(t.type){case"preroll":{(s=t.adBreakDone)==null||s.call(t,{breakType:t.type,breakFormat:"interstitial",breakStatus:"viewed"});break}case"reward":{t.beforeReward(()=>{var x,P,C,S;(x=t.beforeAd)==null||x.call(t),(P=t.adViewed)==null||P.call(t),(C=t.afterAd)==null||C.call(t),(S=t.adBreakDone)==null||S.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"viewed"})});break}default:{(l=t.beforeAd)==null||l.call(t),(c=t.afterAd)==null||c.call(t),(d=t.adBreakDone)==null||d.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"});break}}return}if(!b||k!=="SUCCESS"){(u=t.adBreakDone)==null||u.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}else{let x=b.sort((O,J)=>O.seq-J.seq);if(x.length===0){(p=t.adBreakDone)==null||p.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}let P=!0,C=null,S=new $p(this.context);for(this.adsActionDetection.adBreakIsShowing=!0;x.length>0;){let O=x.shift(),J=this.providers[O.provider];if(J){let[Ke,M]=yield S.callAdBreakAndContinue(J,t,O,Re=>{var Ne;this.adsIsShowing=Re,(Ne=this.context.eventEmitter)==null||Ne.emit("isAdShowing",Re)});P=Ke,C=M}else P=!0,C={breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"};if(!P)break}P&&C&&((f=t.adBreakDone)==null||f.call(t,C))}}catch(v){(m=t.adBreakDone)==null||m.call(t,{breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}finally{this.adsIsShowing=!1,(g=this.context.eventEmitter)==null||g.emit("isAdShowing",!1),this.adsActionDetection.adBreakIsShowing=!1}})}adUnit(t){console.warn("This method has been deprecated. We will not support AdSense AdUnit in the future.")}},WX=Yn`
|
|
787
|
+
${We}
|
|
773
788
|
position: fixed;
|
|
774
789
|
left: 0;
|
|
775
790
|
top: 0;
|
|
@@ -784,7 +799,7 @@ or `);this.errors.push(o)}return n}},Ts=class extends Ee{constructor(...t){super
|
|
|
784
799
|
}
|
|
785
800
|
|
|
786
801
|
.ads-wrapper {
|
|
787
|
-
${
|
|
802
|
+
${We}
|
|
788
803
|
position: relative;
|
|
789
804
|
width: 100%;
|
|
790
805
|
height: 100%;
|
|
@@ -807,7 +822,7 @@ or `);this.errors.push(o)}return n}},Ts=class extends Ee{constructor(...t){super
|
|
|
807
822
|
}
|
|
808
823
|
|
|
809
824
|
.retry-button {
|
|
810
|
-
${
|
|
825
|
+
${We}
|
|
811
826
|
position: absolute;
|
|
812
827
|
width: 100%;
|
|
813
828
|
height: 100%;
|
|
@@ -817,4 +832,4 @@ or `);this.errors.push(o)}return n}},Ts=class extends Ee{constructor(...t){super
|
|
|
817
832
|
cursor: pointer;
|
|
818
833
|
}
|
|
819
834
|
}
|
|
820
|
-
`});function kA(){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;xA&&console.log(`handleReward ${l}`);let d=e.get(l),u=d?yield d(...o):c;return xA&&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:Cn,loginGuide:Pn}}})})},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:Cn,loginGuide:Pn}})}}}var xA,AA=k(()=>{"use strict";H();Ye();xA=S.testMode});var qH,FH,TA,CA,PA=k(()=>{"use strict";Ye();N();qH=()=>(e,t)=>e==="JOLI_COIN"&&t==="ADS"?-1:e==="ADS"&&t==="JOLI_COIN"?1:0,FH=e=>e.length?e.includes("JOLI_COIN")&&e.length<=1?["JOLI_COIN_ONLY"]:e.sort(qH()):["ADS"],TA=e=>{e.registerRewardsFetcher(t=>w(void 0,null,function*(){var n,i,o,a;let r=["ADS"];try{let s=yield t.post("/api/games/unlock-options",{});if(s.code!=="SUCCESS")return r;F.emit(Us,{options:((n=s.data)==null?void 0:n.unlockOptions)||[],userJoliCoin:((i=s.extra)==null?void 0:i.joliCoin)||{balance:0,enableAutoDeduct:!1}});let l=((a=(o=s.data)==null?void 0:o.unlockOptions)==null?void 0:a.map(c=>c.type))||Array.from(r);return FH(l)}catch(s){return console.error("getRewardOptions error:",s),r}}))},CA=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 F.emit(wr,{joliCoinUseAndCharge:((n=r.data)==null?void 0:n.joliCoinUseAndCharge)||Cn,loginGuide:((i=r.data)==null?void 0:i.loginGuide)||Pn}),r.data&&ne.emit("onGlobalConfigChanged",{globalConfig:r.data}),{joliCoinUseAndCharge:((o=r.data)==null?void 0:o.joliCoinUseAndCharge)||Cn,loginGuide:((a=r.data)==null?void 0:a.loginGuide)||Pn}}))}});var OA,RA=k(()=>{"use strict";OA=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 wt,Hn=k(()=>{"use strict";Ye();Ir();Ye();wt=nt(F,Us)});var kr,go=k(()=>{"use strict";N();kr=X()});var lp,yo,NA=k(()=>{"use strict";go();Hn();Ir();Ye();Ye();lp=(e,t)=>{let{showUnlockWithJolicoinModal:r}=t;kr.registerCommand(`Rewards.${e}.useJolicoin`,()=>w(void 0,null,function*(){var s,l,c,d;let n=yield wt.getData(),i=!!((s=n==null?void 0:n.userJoliCoin)!=null&&s.enableAutoDeduct),o=(d=(c=(l=n==null?void 0:n.options)==null?void 0:l.find(u=>u.type==="JOLI_COIN"))==null?void 0:c.joliCoinChoices[0].joliCoinQuantity)!=null?d:0;return console.log("-----unlockOptions usemodal-----",n,i,o),(yield r({enableAutoDeduct:i,userJoliCoin:n==null?void 0:n.userJoliCoin,joliCoinQuantity:o}))!=="CONFIRM"?{result:"FAILED"}:{result:"SUCCESS"}}))},yo=(e,t)=>r=>w(void 0,null,function*(){let n=nt(F,$r);return F.emit(Bs,e,{enableAutoDeduct:r.enableAutoDeduct,userJoliCoin:r.userJoliCoin,joliCoinQuantity:r.joliCoinQuantity,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).useModalResult})});var dl,cp=k(()=>{"use strict";dl=e=>w(void 0,null,function*(){return(yield e.get("/api/joli-coin/balance",{query:{type:"JOLI_COIN"}})).data})});var DA,LA=k(()=>{"use strict";DA=(e,t)=>e.some(r=>r.type==="JOLI_COIN"&&r.joliCoinChoices.some(n=>{var i;return n.joliCoinQuantity<=((i=t==null?void 0:t.balance)!=null?i:0)}))});var up,_o,qA=k(()=>{"use strict";cp();go();Hn();LA();Ye();Ir();Ye();up=(e,t)=>{let{httpClient:r,initiateAndAwaitPayment:n}=t;kr.registerCommand(`Rewards.${e}.usePayment`,()=>w(void 0,null,function*(){var l,c,d,u,f,p;let i=yield wt.getData(),o=yield dl(r),a=(d=(c=(l=i==null?void 0:i.options)==null?void 0:l.find(m=>m.type==="JOLI_COIN"))==null?void 0:c.joliCoinChoices[0].joliCoinQuantity)!=null?d:0,s={balance:(u=o==null?void 0:o.balance)!=null?u:0,enableAutoDeduct:(p=(f=i==null?void 0:i.userJoliCoin)==null?void 0:f.enableAutoDeduct)!=null?p:!1};return wt.updateData({userJoliCoin:s}),console.log("-----unlockOptions payment-----",i,s,a),DA((i==null?void 0:i.options)||[],s)?{result:"CONTINUE"}:{result:(yield n({userJoliCoin:s,joliCoinQuantity:a}))==="SUCCESS"?"SUCCESS":"FAILED"}}))},_o=(e,t)=>r=>w(void 0,null,function*(){let n=nt(F,At);return F.emit(js,e,{userJoliCoin:r.userJoliCoin,joliCoinQuantity:r.joliCoinQuantity,enableAutoDeduct:r.userJoliCoin.enableAutoDeduct,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).paymentResult})});var dp,bo,FA=k(()=>{"use strict";H();go();Ir();Ye();Ye();N();cp();Hn();dp=(e,t)=>{let{showUnloginModal:r,httpClient:n}=t;kr.registerCommand(`Rewards.${e}.useUnloginModal`,()=>w(void 0,null,function*(){var a,s,l,c,d,u,f,p,m;let i=(a=S.hostUserInfo)==null?void 0:a.isLogin,o=yield wt.getData();if(console.log("-----isLogin-----",!!i),!i){let g=yield r();if(console.log("-----unloginModalResult-----",g),g.result=="FAILED"||g.result=="CANCEL")return{result:"FAILED"};let{isFirstLogin:_,claimedRewardValue:v}=(l=(s=g.rewards)==null?void 0:s.jolicoin)!=null?l:{};if(g.result=="SUCCESS"){_&&v&&(yield zp(3e3));let b=yield dl(n),I=(u=(d=(c=o==null?void 0:o.options)==null?void 0:c.find(P=>P.type==="JOLI_COIN"))==null?void 0:d.joliCoinChoices[0].joliCoinQuantity)!=null?u:0,A={balance:(f=b==null?void 0:b.balance)!=null?f:0,enableAutoDeduct:(m=(p=o==null?void 0:o.userJoliCoin)==null?void 0:p.enableAutoDeduct)!=null?m:!1};if(wt.updateData({userJoliCoin:A}),A.balance>=I)return{result:"SUCCESS"}}}return{result:"CONTINUE"}}))},bo=(e,t)=>()=>w(void 0,null,function*(){let r=nt(F,rr);return F.emit(Js,e,{confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),yield r.getFreshData()})});var fl=k(()=>{"use strict";NA();qA();FA()});var pl,fp=k(()=>{"use strict";H();N();fl();go();pl=(e,t,{handlers:{handleUnlockSuccess:r,handleUnlockFailed:n,unlockOptionsHandler:i,initiateAndAwaitPayment:o,showUnlockWithJolicoinModal:a,showUnloginModal:s}})=>{dp(e,{httpClient:t,showUnloginModal:s}),up(e,{httpClient:t,initiateAndAwaitPayment:o}),lp(e,{showUnlockWithJolicoinModal:a});let l=S.abTests.find(d=>d.startsWith("coinOpt_v1")),c=[];return l?c=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`]:c=[`Rewards.${e}.useUnloginModal`,`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`],d=>w(void 0,null,function*(){var u,f,p;try{let m=!0;for(let _ of c){let v=yield kr.executeCommand(_);if(m=m&&v.result!=="FAILED",v.result!=="CONTINUE")break}if(!m)return n==null||n(d),!1;let g=yield t.post("/api/joli-coin/unlock",{data:{type:"GAME_REWARD",reqId:`${Do()}-${S.mpType}-${Date.now()}`,gameInfo:{gameId:S.mpId}}});if(console.log("-----unlockWithJolicoin request result-----",g),g.code=="SUCCESS"){try{(f=d.adBreakDone)==null||f.call(d,{breakType:d.type,breakName:"name"in d&&(u=d.name)!=null?u:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in d&&((p=d.adViewed)==null||p.call(d))}catch(_){console.error("-----unlockWithJolicoin adBreakDone error-----",_)}return r==null||r({quantity:g.data.quantity,balance:g.data.balance}),!0}return n==null||n(d),!1}catch(m){if(console.info("JolicoinRewardHandler error:",m),m instanceof Error&&m.message=="CANCEL")throw m;return n==null||n(d),!1}finally{i.clearCache()}})}});var MA,UA=k(()=>{"use strict";Hn();fp();fl();MA=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=()=>{r==null||r()},i=yo("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),o=_o("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),a=bo("ADS-JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return pl("ADS-JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:wt,initiateAndAwaitPayment:o,showUnlockWithJolicoinModal:i,showUnloginModal:a}})}});var jA,BA=k(()=>{"use strict";fp();Hn();fl();jA=(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=yo("JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),o=_o("JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),a=bo("JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return pl("JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:wt,initiateAndAwaitPayment:o,showUnlockWithJolicoinModal:i,showUnloginModal:a}})}});var sr,JA=k(()=>{"use strict";AA();PA();RA();UA();BA();sr=kA();TA(sr);CA(sr)});var hl,MH,wo,UH,Io,HA,jH,BH,pp,JH,HH,$A=k(()=>{"use strict";N();rt();er();Sk();EA();gt();H();vt();_e();JA();lc();hl=X(),MH=()=>{let{data:e}=j("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},wo={get:(e,t)=>te(e,T({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>te(e,T({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},UH={httpClient:wo,checkNetwork:MH,track:M,eventEmitter:Mo,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=S.hostInfo)==null?void 0:e.aid)!=null?t:"1",deviceId:(r=S.deviceInfo.did)!=null?r:"",adId:(n=S.deviceInfo.adId)!=null?n:"",sessionId:(i=S.sessionId)!=null?i:"",userId:(a=(o=S.hostUserInfo)==null?void 0:o.uid)!=null?a:"",objectType:"GAME",objectId:S.mpId,testAdsMode:S.testAdsMode,channel:(s=S.joliSource)!=null?s:"",deviceBrand:S.deviceInfo.brand,deviceModel:S.deviceInfo.model,osType:S.platform==="android"?"ANDROID":S.platform==="ios"?"IOS":"PC",runtimeType:"APP",platform:1e3,joliSource:(l=S.joliSource)!=null?l:""}}},Io=new al(UH);sr.getRewardFrequencyConfig(wo).then(e=>{console.log("getRewardFrequencyConfig",e)});sr.registerRewardHandler("ADS",OA(Io));sr.registerRewardHandler("JOLI_COIN",MA(wo,{onUnlockSuccess:e=>{HA(e)},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));sr.registerRewardHandler("JOLI_COIN_ONLY",jA(wo,{onUnlockSuccess:e=>{HA(e)},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));HA=e=>{let{quantity:t}=e,r=`{slot-coin} ${t} {slot-i18n-jolicoin.coinUsed}`;Hr(r,{customStyle:{mark:{marginRight:"8px"}},i18nParams:{text:"Jolicoin Used"}})},jH=z("adInit",{implement:e=>{Io.init(e)}}),BH=z("adConfig",{implement:e=>{Io.adConfig(e)}}),pp=!1,JH=z("adBreak",{implement:e=>{if(e.type==="reward"){if(pp)return;pp=!0,sr.getRewardsTypes(wo).then(t=>{sr.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(()=>{pp=!1})})}else Io.adBreak(e)}}),HH=z("adUnit",{implement:e=>{Io.adUnit(e)}});hl.registerCommand("AdsSDK.init",jH);hl.registerCommand("AdsSDK.adConfig",BH);hl.registerCommand("AdsSDK.adBreak",JH);hl.registerCommand("AdsSDK.adUnit",HH);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 So,$H,VH,GH,zH,WH,VA=k(()=>{"use strict";N();_e();rt();H();So=X(),$H=z("openSchemaSync",{paramsSchema:E.tuple(E.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${S.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=j("openSchemaSync",{schema:t});if(r.errNo!==0)throw new lr(r.errMsg,r.errNo)}}),VH=z("openPageSync",{paramsSchema:E.tuple(E.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=j("openPageSync",{url:e});if(t!==0||!n)throw new lr(r,t);return{webviewId:n.webviewId}}}),GH=z("closePageSync",{paramsSchema:E.tuple(E.number()),implement:e=>{let{errNo:t,errMsg:r}=j("closePageSync",{webviewId:e});if(t!==0)throw new lr(r,t)}}),zH=z("interceptSystemExitSync",{paramsSchema:E.tuple(E.boolean()),implement:e=>{ne.emit("onInterceptSystemExit",{intercept:e}),ne.emit("onInterceptBackPress",{intercept:e})}}),WH=z("navigateToNativePage",{paramsSchema:E.tuple(E.enum("openHistory","openDiscover","openDiscover","openGame","openDrama","openTopup","openFeed"),E.object()),implement:(e,t)=>{j("callHostMethodAsync",{method:e,params:T({},t)})}});So.registerCommand("RouterSDK.openSchema",$H);So.registerCommand("RouterSDK.openPage",VH);So.registerCommand("RouterSDK.closePage",GH);So.registerCommand("RouterSDK.interceptSystemExit",zH);So.registerCommand("RouterSDK.navigateToNativePage",WH);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 YH(e){ql("cpLoadProgressEvent",{progress:e},S.webviewId,!0)}var zA,KH,ml,hp,GA,QH,XH,WA=k(()=>{"use strict";N();rt();_e();H();gt();zA=X(),KH=z("onLoadFinished",{implement:()=>{ql("cpLoadFinishEvent",{},S.webviewId,!0),M("loadFinished",{duration:performance.now()})}}),ml=null,hp=!1,GA=0,QH=200;XH=z("onLoadProgress",{paramsSchema:E.tuple(E.number()),implement:e=>{ml=e,hp||(hp=!0,requestAnimationFrame(function t(){let r=Date.now();r-GA>=QH?(ml!==null&&(YH(ml),GA=r,ml=null),hp=!1):requestAnimationFrame(t)}))}});zA.registerCommand("RuntimeSDK.loadFinishedEvent",KH);zA.registerCommand("RuntimeSDK.loadProgressEvent",XH)});var ZH,e$,t$,KA=k(()=>{"use strict";N();rt();H();ZH=X(),e$="isNativeSupport",t$=z(e$,{paramsSchema:E.tuple(E.object({version:E.string()})),implement:e=>{let t=S.sdkInfo.nativeSDKVersionCode,{version:r}=e;return r?{code:"SUCCESS",data:ah(cf(t!=null?t:0),r,">=")}:{code:"FAILURE",message:"[Jolibox SDK] api or versionCode is required",data:!1}}});ZH.registerCommand("API.isNativeSupport",t$);L("isNativeSupport",{version:"1.1.46"})});var XA=h(YA=>{"use strict";rt();_e();N();N();H();var r$=X(),vl=[],mp=!1,QA=e=>{var n;let t=S.platform,r=(n=S.sdkInfo.nativeSDKVersionCode)!=null?n:0;return e.reduce((i,o)=>{if(typeof o=="string")i.push(o);else{let{method:a,platforms:s,nativeVersionCode:l}=o,c=!0;s&&!s.includes(t)&&(c=!1),l&&l>r&&(c=!1),c&&i.push(a)}return i},[])};ne.on("onGlobalConfigChanged",e=>{var t,r;vl=QA((r=(t=e.globalConfig)==null?void 0:t.supportedHostMethods)!=null?r:[]),mp=!0});var n$=()=>new Promise(e=>{if(mp)e(vl);else{let t=r=>{var n;vl=QA((n=r.globalConfig.supportedHostMethods)!=null?n:[]),mp=!0,ne.off("onGlobalConfigChanged",t),e(vl)};ne.on("onGlobalConfigChanged",t)}}),i$=Pe("callHostMethod",{paramsSchema:E.tuple(E.object({method:E.string(),params:E.object().optional().default({})})),implement:r=>w(YA,[r],function*({method:e,params:t}){if(!(yield n$()).includes(e))throw new lr("Method not supported",10001);let{errNo:i,errMsg:o,data:a}=yield j("callHostMethodAsync",{method:e,params:T({},t)});if(i!==0)throw new lr(o,i);let c=a,{callHostMethodId:s}=c,l=je(c,["callHostMethodId"]);return T({},l)})});r$.registerCommand("API.callHostMethod",i$);L("callHostMethod",{version:"1.1.49"})});var o$={};var yee,Iee,Tee,ZA=k(()=>{"use strict";Dx();yee=ie(Lx());Jx();hf();zx();Iee=ie(Wx());qs();$A();VA();WA();KA();Tee=ie(XA())});var e1=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[e1])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[e1]=!0;w(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(xx(),Ex)),Promise.resolve().then(()=>(ZA(),o$)),Promise.resolve().then(()=>(gt(),qh))]);e()});
|
|
835
|
+
`});function Fx(){let e=new Map,t,r;return{registerRewardHandler(i,o){e.set(i,o)},handleReward(i,...o){return w(this,null,function*(){return yield i.reduce((s,l)=>w(this,null,function*(){let c=yield s;if(c===!0)return!0;Ux&&console.log(`handleReward ${l}`);let d=e.get(l),u=d?yield d(...o):c;return Ux&&console.log(`handleReward ${l} ${u}`),u}),Promise.resolve(!1))})},registerRewardsFetcher(i){return w(this,null,function*(){t=(...o)=>w(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),["ADS"]}})})},registerRewardFrequencyConfigFetcher(i){return w(this,null,function*(){r=(...o)=>w(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),{joliCoinUseAndCharge:Fn,loginGuide:jn}}})})},getRewardsTypes(...i){return w(this,null,function*(){return t?yield t(...i):["ADS"]})},getRewardFrequencyConfig(...i){return w(this,null,function*(){return r?yield r(...i):{joliCoinUseAndCharge:Fn,loginGuide:jn}})}}}var Ux,jx=A(()=>{"use strict";B();Xe();Ux=E.testMode});var k4,S4,Jx,Gx,Bx=A(()=>{"use strict";Xe();R();k4=()=>(e,t)=>{let r={JOLI_GEM:3,JOLI_GEM_ONLY:3,JOLI_COIN:2,JOLI_COIN_ONLY:2,ADS:1};return r[t]-r[e]},S4=e=>e.length?e.includes("JOLI_GEM")&&e.length<=1?["JOLI_GEM_ONLY"]:e.includes("JOLI_COIN")&&e.length<=1?["JOLI_COIN_ONLY"]:e.sort(k4()):["ADS"],Jx=e=>{e.registerRewardsFetcher(t=>w(void 0,null,function*(){var n,i,o,a,s;let r=["ADS"];try{let l=yield t.post("/api/games/unlock-options",{});if(l.code!=="SUCCESS")return r;console.log("-----res fetch reward-----",l),q.emit(Ws,{options:((n=l.data)==null?void 0:n.unlockOptions)||[],userJoliCoin:((i=l.extra)==null?void 0:i.joliCoin)||{balance:0,enableAutoDeduct:!1},userGem:((o=l.extra)==null?void 0:o.joliGem)||{balance:0,enableAutoDeduct:!1}});let c=((s=(a=l.data)==null?void 0:a.unlockOptions)==null?void 0:s.map(d=>d.type))||Array.from(r);return S4(c)}catch(l){return console.error("getRewardOptions error:",l),r}}))},Gx=e=>{e.registerRewardFrequencyConfigFetcher(t=>w(void 0,null,function*(){var n,i,o,a;let r=yield t.get("/api/fe-configs/web-common/global-config",{});return q.emit(Tr,{joliCoinUseAndCharge:((n=r.data)==null?void 0:n.joliCoinUseAndCharge)||Fn,loginGuide:((i=r.data)==null?void 0:i.loginGuide)||jn}),r.data&&ne.emit("onGlobalConfigChanged",{globalConfig:r.data}),{joliCoinUseAndCharge:((o=r.data)==null?void 0:o.joliCoinUseAndCharge)||Fn,loginGuide:((a=r.data)==null?void 0:a.loginGuide)||jn}}))}});var Hx,Vx=A(()=>{"use strict";Hx=e=>t=>w(void 0,null,function*(){try{console.log("trigger @jolibox/ads reward",t),yield e.adBreak(t)}catch(r){console.error("-----createAdsRewardHandler error-----",r)}return!0})});var ze,Dr=A(()=>{"use strict";Xe();Or();Xe();ze=ot(q,Ws)});var yl,mf=A(()=>{"use strict";yl={JOLI_COIN:{balanceEndpoint:"/api/joli-coin/balance",balanceDetailEndpoint:"/api/joli-coin/balance-detail",unlockEndpoint:"/api/joli-coin/unlock",unlockType:"JOLI_COIN"},GEM:{balanceEndpoint:"/api/joli-gem/balance",balanceDetailEndpoint:"/api/joli-gem/balance-detail",unlockEndpoint:"/api/joli-gem/unlock",unlockType:"GEM"}}});var $t,Zn=A(()=>{"use strict";R();$t=X()});var $x,Wx=A(()=>{"use strict";$x=e=>w(void 0,null,function*(){return(yield e.get("/api/joli-coin/balance",{query:{type:"JOLI_COIN"}})).data})});var zx,Kx=A(()=>{"use strict";zx=e=>w(void 0,null,function*(){return(yield e.get("/api/joli-gem/balance",{query:{type:"GEM"}})).data})});var ei,_l=A(()=>{"use strict";Wx();Kx();ei={JOLI_COIN:{fetchBalance:$x,getQuantity:e=>{var t,r,n;return(n=(r=(t=e==null?void 0:e.options)==null?void 0:t.find(i=>i.type==="JOLI_COIN"))==null?void 0:r.joliCoinChoices[0].joliCoinQuantity)!=null?n:0},getCurrentUser:e=>{var t;return(t=e==null?void 0:e.userJoliCoin)!=null?t:{balance:0,enableAutoDeduct:!1}},createUpdatedUser:(e,t)=>({balance:e,enableAutoDeduct:t}),getUpdateKey:()=>"userJoliCoin",isEnough:(e,t)=>{var r,n;return(n=(r=e==null?void 0:e.options)==null?void 0:r.some(i=>i.type==="JOLI_COIN"&&i.joliCoinChoices.some(o=>{var a;return o.joliCoinQuantity<=((a=t==null?void 0:t.balance)!=null?a:0)})))!=null?n:!1}},JOLI_GEM:{fetchBalance:zx,getQuantity:e=>{var t,r,n,i;return(i=(n=(r=(t=e==null?void 0:e.options)==null?void 0:t.find(o=>o.type==="JOLI_GEM"))==null?void 0:r.joliGemChoice)==null?void 0:n.joliGemQuantity)!=null?i:0},getCurrentUser:e=>{var t;return(t=e==null?void 0:e.userGem)!=null?t:{balance:0,enableAutoDeduct:!1}},createUpdatedUser:(e,t)=>({balance:e,enableAutoDeduct:t}),getUpdateKey:()=>"userGem",isEnough:(e,t)=>{var n,i,o;let r=e==null?void 0:e.options.find(a=>a.type==="JOLI_GEM");return r?((i=(n=r.joliGemChoice)==null?void 0:n.joliGemQuantity)!=null?i:0)<=((o=t==null?void 0:t.balance)!=null?o:0):!1}}}});var Co,dr,vf=A(()=>{"use strict";Zn();Dr();Or();Xe();Xe();_l();Co=(e,t,r)=>{let{showUnlockWithCurrencyModal:n}=r;$t.registerCommand(`Rewards.${e}.useJolicoin`,()=>w(void 0,null,function*(){let i=yield ze.getData(),o=ei[t],a=o.getCurrentUser(i),s=o.getQuantity(i),l=!!(a!=null&&a.enableAutoDeduct);return console.log("-----unlockOptions usemodal-----",i,l,s),(yield n({enableAutoDeduct:l,userCurrency:a,quantity:s,currency:t}))!=="CONFIRM"?{result:"FAILED"}:{result:"SUCCESS"}}))},dr=(e,t)=>r=>w(void 0,null,function*(){let n=ot(q,Qr);return q.emit(Ks,e,{enableAutoDeduct:r.enableAutoDeduct,userCurrency:r.userCurrency,quantity:r.quantity,currency:r.currency,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).useModalResult})});var To,pr,Yx=A(()=>{"use strict";Zn();Dr();Xe();Or();Xe();_l();To=(e,t,r)=>{let{httpClient:n,initiateAndAwaitPayment:i}=r;$t.registerCommand(`Rewards.${e}.usePayment`,()=>w(void 0,null,function*(){var p;let o=yield ze.getData(),a=ei[t],s=yield a.fetchBalance(n),l=a.getQuantity(o),c=a.getCurrentUser(o),d=a.createUpdatedUser((p=s==null?void 0:s.balance)!=null?p:0,c.enableAutoDeduct),u=a.getUpdateKey();return ze.updateData({[u]:d}),console.log("-----unlockOptions payment-----",o,d,l,t),a.isEnough(o,d)?{result:"CONTINUE"}:{result:(yield i({userCurrency:d,currencyQuantity:l,currency:t}))==="SUCCESS"?"SUCCESS":"FAILED"}}))},pr=(e,t)=>r=>w(void 0,null,function*(){let n=ot(q,xt);return q.emit(zs,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 Oo,fr,Qx=A(()=>{"use strict";B();Zn();Or();Xe();Xe();R();Dr();_l();Oo=(e,t,r)=>{let{showUnloginModal:n,httpClient:i}=r;$t.registerCommand(`Rewards.${e}.useUnloginModal`,()=>w(void 0,null,function*(){var s,l,c;let o=(s=E.hostUserInfo)==null?void 0:s.isLogin,a=yield ze.getData();if(console.log("-----isLogin-----",!!o),!o){let d=yield n(t);if(console.log("-----unloginModalResult-----",d),d.result=="FAILED"||d.result=="CANCEL")return{result:"FAILED"};let{isFirstLogin:u,claimedRewardValue:p}=(l=d.rewards)!=null?l:{};if(d.result=="SUCCESS"){u&&p&&(yield eh(3e3));let f=ei[t],m=yield f.fetchBalance(i),g=f.getQuantity(a),y=f.getCurrentUser(a),v=f.createUpdatedUser((c=m==null?void 0:m.balance)!=null?c:0,y.enableAutoDeduct),b=f.getUpdateKey();if(ze.updateData({[b]:v}),v.balance>=g)return{result:"SUCCESS"}}}return{result:"CONTINUE"}}))},fr=(e,t)=>r=>w(void 0,null,function*(){let n=ot(q,ar);return q.emit(Ys,e,{confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText,currency:r}),yield n.getFreshData()})});var en=A(()=>{"use strict";vf();Yx();Qx()});var A4,bl,gf=A(()=>{"use strict";B();R();mf();en();Zn();tt();A4=(e,t,r,{handlers:{handleUnlockSuccess:n,handleUnlockFailed:i,unlockOptionsHandler:o,initiateAndAwaitPayment:a,showUnlockWithCurrencyModal:s,showUnloginModal:l}})=>{Oo(e,"JOLI_COIN",{httpClient:t,showUnloginModal:l}),To(e,"JOLI_COIN",{httpClient:t,initiateAndAwaitPayment:a}),Co(e,"JOLI_COIN",{showUnlockWithCurrencyModal:s});let c=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return d=>w(void 0,null,function*(){var u,p,f;try{let m=!0;for(let v of c){let b=yield $t.executeCommand(v);if(m=m&&b.result!=="FAILED",b.result!=="CONTINUE")break}if(!m)return i==null||i(d),!1;let g=yl[r],y=yield t.post(g.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${an()}-${E.mpType}-${Date.now()}`,gameInfo:{gameId:E.mpId}}});if(console.log("-----unlockWithCurrency request result-----",y),y.code=="SUCCESS"){try{(p=d.adBreakDone)==null||p.call(d,{breakType:d.type,breakName:"name"in d&&(u=d.name)!=null?u:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in d&&((f=d.adViewed)==null||f.call(d)),U("jolicoin_unlock_success",{quantity:y.data.quantity})}catch(v){console.error("-----unlockWithJolicoin adBreakDone error-----",v)}return n==null||n({quantity:y.data.quantity,balance:y.data.balance}),!0}return i==null||i(d),!1}catch(m){if(console.info("JolicoinRewardHandler error:",m),m instanceof Error&&m.message=="CANCEL")throw m;return i==null||i(d),!1}finally{o.clearCache()}})},bl=(e,t,r)=>A4(e,t,"JOLI_COIN",r)});var Xx,Zx=A(()=>{"use strict";Dr();gf();en();Xx=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=()=>{r==null||r()},i=dr("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),o=pr("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),a=fr("ADS-JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return bl("ADS-JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:ze,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:i,showUnloginModal:a}})}});var eC,tC=A(()=>{"use strict";gf();Dr();en();eC=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=l=>{var c;r==null||r(),(c=l.adBreakDone)==null||c.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},i=dr("JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),o=pr("JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),a=fr("JOLI_COIN",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return bl("JOLI_COIN",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:ze,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:i,showUnloginModal:a}})}});var wl,yf=A(()=>{"use strict";B();R();mf();en();vf();Zn();tt();wl=(e,t,{handlers:{handleUnlockSuccess:r,handleUnlockFailed:n,unlockOptionsHandler:i,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:a,showUnloginModal:s}})=>{Oo(e,"JOLI_GEM",{httpClient:t,showUnloginModal:s}),To(e,"JOLI_GEM",{httpClient:t,initiateAndAwaitPayment:o}),Co(e,"JOLI_GEM",{showUnlockWithCurrencyModal:a});let l=[`Rewards.${e}.usePayment`,`Rewards.${e}.useJolicoin`];return c=>w(void 0,null,function*(){var d,u,p;try{let f=!0;for(let y of l){let v=yield $t.executeCommand(y);if(f=f&&v.result!=="FAILED",v.result!=="CONTINUE")break}if(!f)return n==null||n(c),!1;let m=yl.GEM,g=yield t.post(m.unlockEndpoint,{data:{type:"GAME_REWARD",reqId:`${an()}-${E.mpType}-${Date.now()}`,gameInfo:{gameId:E.mpId}}});if(console.log("-----unlockWithGem request result-----",g),g.code=="SUCCESS"){try{(u=c.adBreakDone)==null||u.call(c,{breakType:c.type,breakName:"name"in c&&(d=c.name)!=null?d:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in c&&((p=c.adViewed)==null||p.call(c)),U("gem_unlock_success",{quantity:g.data.quantity})}catch(y){console.error("-----unlockWithGem adBreakDone error-----",y)}return r==null||r({quantity:g.data.quantity,balance:g.data.balance}),!0}return n==null||n(c),!1}catch(f){if(console.info("GemRewardHandler error:",f),f instanceof Error&&f.message=="CANCEL")throw f;return n==null||n(c),!1}finally{i.clearCache()}})}});var rC,nC=A(()=>{"use strict";Dr();yf();en();rC=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=()=>{r==null||r()},i=dr("ADS-JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),o=pr("ADS-JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"}),a=fr("ADS-JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noWatchAds"});return wl("ADS-JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:ze,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:i,showUnloginModal:a}})}});var iC,oC=A(()=>{"use strict";yf();Dr();en();iC=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=l=>{var c;r==null||r(),(c=l.adBreakDone)==null||c.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},i=dr("JOLI_GEM",{confirmButtonText:"joligem.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),o=pr("JOLI_GEM",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"}),a=fr("JOLI_GEM",{confirmButtonText:"loginGuide.login",cancelButtonText:"loginGuide.noThanks"});return wl("JOLI_GEM",e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:n,unlockOptionsHandler:ze,initiateAndAwaitPayment:o,showUnlockWithCurrencyModal:i,showUnloginModal:a}})}});var Tt,aC=A(()=>{"use strict";jx();Bx();Vx();Zx();tC();nC();oC();Tt=Fx();Jx(Tt);Gx(Tt)});var Il,x4,tn,C4,Po,sC,lC,T4,O4,_f,P4,R4,cC=A(()=>{"use strict";R();it();ir();MA();qx();tt();B();yt();_e();aC();vc();Il=X(),x4=()=>{let{data:e}=j("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},tn={get:(e,t)=>te(e,T({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>te(e,T({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},C4={httpClient:tn,checkNetwork:x4,track:U,eventEmitter:$o,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:""}}},Po=new fl(C4);Tt.getRewardFrequencyConfig(tn).then(e=>{console.log("getRewardFrequencyConfig",e)});Tt.registerRewardHandler("ADS",Hx(Po));Tt.registerRewardHandler("JOLI_COIN",Xx(tn,{onUnlockSuccess:e=>{sC(e)},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));Tt.registerRewardHandler("JOLI_COIN_ONLY",eC(tn,{onUnlockSuccess:e=>{sC(e)},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));Tt.registerRewardHandler("JOLI_GEM",rC(tn,{onUnlockSuccess:e=>{lC(e)}}));Tt.registerRewardHandler("JOLI_GEM_ONLY",iC(tn,{onUnlockSuccess:e=>{lC(e)}}));sC=e=>{let{quantity:t}=e,r=`{slot-coin} ${t} {slot-i18n-jolicoin.coinUsed}`;Cr(r,{customStyle:{mark:{marginRight:"8px"},base:{with:"auto"}},i18nParams:{text:"Jolicoin Used"}})},lC=e=>{let{quantity:t}=e,r=`{slot-correct} ${t*-1} {slot-gem}`;Cr(r,{customStyle:{mark:{marginRight:"8px"},base:{"font-size":"25px","font-weight":"700","line-height":"18px"},span:{width:"auto",minWidth:"fit-content",maxWidth:"60px",textAlign:"center",padding:"0 2px",lineHeight:"25px"},gem:{transform:"translateY(-2px)",width:"28px",height:"28px"}}})},T4=W("adInit",{implement:e=>{Po.init(e)}}),O4=W("adConfig",{implement:e=>{Po.adConfig(e)}}),_f=!1,P4=W("adBreak",{implement:e=>{if(e.type==="reward"){if(_f)return;_f=!0,Tt.getRewardsTypes(tn).then(t=>{Tt.handleReward(t,e).catch(r=>{var n;console.info("handleReward failed in native",r),(n=e.adBreakDone)==null||n.call(e,{breakType:e.type,breakFormat:e.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}).finally(()=>{_f=!1})})}else Po.adBreak(e)}}),R4=W("adUnit",{implement:e=>{Po.adUnit(e)}});Il.registerCommand("AdsSDK.init",T4);Il.registerCommand("AdsSDK.adConfig",O4);Il.registerCommand("AdsSDK.adBreak",P4);Il.registerCommand("AdsSDK.adUnit",R4);L("AdsSDK.init",{version:"1.0.0"});L("AdsSDK.adConfig",{version:"1.0.0"});L("AdsSDK.adBreak",{version:"1.0.0"});L("AdsSDK.adUnit",{version:"1.0.0"})});var Ro,N4,D4,L4,M4,q4,uC=A(()=>{"use strict";R();_e();it();B();Ro=X(),N4=W("openSchemaSync",{paramsSchema:I.tuple(I.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${E.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=j("openSchemaSync",{schema:t});if(r.errNo!==0)throw new Pt(r.errMsg,r.errNo)}}),D4=W("openPageSync",{paramsSchema:I.tuple(I.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=j("openPageSync",{url:e});if(t!==0||!n)throw new Pt(r,t);return{webviewId:n.webviewId}}}),L4=W("closePageSync",{paramsSchema:I.tuple(I.number()),implement:e=>{let{errNo:t,errMsg:r}=j("closePageSync",{webviewId:e});if(t!==0)throw new Pt(r,t)}}),M4=W("interceptSystemExitSync",{paramsSchema:I.tuple(I.boolean()),implement:e=>{ne.emit("onInterceptSystemExit",{intercept:e}),ne.emit("onInterceptBackPress",{intercept:e})}}),q4=W("navigateToNativePage",{paramsSchema:I.tuple(I.enum("openHistory","openDiscover","openDiscover","openGame","openDrama","openTopup","openFeed"),I.object()),implement:(e,t)=>{j("callHostMethodAsync",{method:e,params:T({},t)})}});Ro.registerCommand("RouterSDK.openSchema",N4);Ro.registerCommand("RouterSDK.openPage",D4);Ro.registerCommand("RouterSDK.closePage",L4);Ro.registerCommand("RouterSDK.interceptSystemExit",M4);Ro.registerCommand("RouterSDK.navigateToNativePage",q4);L("router.openSchema",{version:"1.1.10"});L("router.openPage",{version:"1.1.10"});L("router.closePage",{version:"1.1.10"});L("router.interceptSystemExit",{version:"1.1.18"});L("router.navigateToNativePage",{version:"1.1.19"})});function j4(e){Hl("cpLoadProgressEvent",{progress:e},E.webviewId,!0)}var pC,U4,El,bf,dC,F4,J4,fC=A(()=>{"use strict";R();it();_e();B();tt();pC=X(),U4=W("onLoadFinished",{implement:()=>{Hl("cpLoadFinishEvent",{},E.webviewId,!0),U("loadFinished",{duration:performance.now()})}}),El=null,bf=!1,dC=0,F4=200;J4=W("onLoadProgress",{paramsSchema:I.tuple(I.number()),implement:e=>{El=e,bf||(bf=!0,requestAnimationFrame(function t(){let r=Date.now();r-dC>=F4?(El!==null&&(j4(El),dC=r,El=null),bf=!1):requestAnimationFrame(t)}))}});pC.registerCommand("RuntimeSDK.loadFinishedEvent",U4);pC.registerCommand("RuntimeSDK.loadProgressEvent",J4)});var G4,B4,H4,hC=A(()=>{"use strict";R();it();B();G4=X(),B4="isNativeSupport",H4=W(B4,{paramsSchema:I.tuple(I.object({version:I.string()})),implement:e=>{let t=E.sdkInfo.nativeSDKVersionCode,{version:r}=e;return r?{code:"SUCCESS",data:fh(vp(t!=null?t:0),r,">=")}:{code:"FAILURE",message:"[Jolibox SDK] api or versionCode is required",data:!1}}});G4.registerCommand("API.isNativeSupport",H4);L("isNativeSupport",{version:"1.1.46"})});var yC=h(If=>{"use strict";it();_e();R();R();B();var mC=X(),kl=[],wf=!1,vC=e=>{var n;let t=E.platform,r=(n=E.sdkInfo.nativeSDKVersionCode)!=null?n:0;return e.reduce((i,o)=>{if(typeof o=="string")i.push(o);else{let{method:a,platforms:s,nativeVersionCode:l}=o,c=!0;s&&!s.includes(t)&&(c=!1),l&&l>r&&(c=!1),c&&i.push(a)}return i},[])};ne.on("onGlobalConfigChanged",e=>{var t,r;kl=vC((r=(t=e.globalConfig)==null?void 0:t.supportedHostMethods)!=null?r:[]),wf=!0});var gC=()=>new Promise(e=>{if(wf)e(kl);else{let t=r=>{var n;kl=vC((n=r.globalConfig.supportedHostMethods)!=null?n:[]),wf=!0,ne.off("onGlobalConfigChanged",t),e(kl)};ne.on("onGlobalConfigChanged",t)}}),V4=Se("callHostMethod",{paramsSchema:I.tuple(I.object({method:I.string(),params:I.object().optional().default({})})),implement:r=>w(If,[r],function*({method:e,params:t}){if(!(yield gC()).includes(e))throw new Pt("Method not supported",10001);let{errNo:i,errMsg:o,data:a}=yield j("callHostMethodAsync",{method:e,params:T({},t)});if(i!==0)throw new Pt(o,i);let c=a,{callHostMethodId:s}=c,l=je(c,["callHostMethodId"]);return T({},l)})});mC.registerCommand("API.callHostMethod",V4);L("callHostMethod",{version:"1.1.49"});var $4=Se("userTrackAsync",{paramsSchema:I.tuple(I.object({event:I.string(),eventType:I.number(),params:I.object().optional().default({})})),implement:n=>w(If,[n],function*({event:e,eventType:t,params:r}){if(!(yield gC()).includes("userTrackAsync"))throw new Pt("Method not supported",10001);let{errNo:o,errMsg:a}=yield j("trackAsync",{event:e,eventType:t,data:T({},r),webviewId:E.webviewId});if(o!==0)throw new Pt(a,o)})});mC.registerCommand("API.track",$4);L("track",{version:"1.1.53"})});var W4={};var jte,Hte,Yte,_C=A(()=>{"use strict";GS();jte=ie(BS());YS();wp();tA();Hte=ie(rA());Hs();cC();uC();fC();hC();Yte=ie(yC())});var bC=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[bC])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[bC]=!0;w(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(NS(),RS)),Promise.resolve().then(()=>(_C(),W4)),Promise.resolve().then(()=>(tt(),Bh))]);e()});
|