@jolibox/implement 1.1.37 → 1.1.38

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- var Uk=Object.create;var no=Object.defineProperty,Bk=Object.defineProperties,Jk=Object.getOwnPropertyDescriptor,$k=Object.getOwnPropertyDescriptors,Hk=Object.getOwnPropertyNames,ro=Object.getOwnPropertySymbols,Vk=Object.getPrototypeOf,zs=Object.prototype.hasOwnProperty,Ap=Object.prototype.propertyIsEnumerable;var kp=(e,t,r)=>t in e?no(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,C=(e,t)=>{for(var r in t||(t={}))zs.call(t,r)&&kp(e,r,t[r]);if(ro)for(var r of ro(t))Ap.call(t,r)&&kp(e,r,t[r]);return e},L=(e,t)=>Bk(e,$k(t));var ot=(e,t)=>{var r={};for(var n in e)zs.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ro)for(var n of ro(e))t.indexOf(n)<0&&Ap.call(e,n)&&(r[n]=e[n]);return r};var T=(e,t)=>()=>(e&&(t=e(e=0)),t);var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Tp=(e,t)=>{for(var r in t)no(e,r,{get:t[r],enumerable:!0})},zk=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Hk(t))!zs.call(e,i)&&i!==r&&no(e,i,{get:()=>t[i],enumerable:!(n=Jk(t,i))||n.enumerable});return e};var ce=(e,t,r)=>(r=e!=null?Uk(Vk(e)):{},zk(t||!e||!e.__esModule?no(r,"default",{value:e,enumerable:!0}):r,e));var I=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});function Zk(e){return!!(e!=null&&e.__nativeBuffers__)}function Xs(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!Zk(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=Xk(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function tA(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:eA(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function oA(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Bp(e){return typeof e=="string"}function Lr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Pp(e){return typeof e=="number"&&!isNaN(e)}function sA(e){return typeof e=="undefined"}function lA(e){return sA(e)||e===null}function Jp(e){return typeof e=="function"}function cA(e){return Lr(e)&&Jp(e.then)}function $p(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function kn(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function vA(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 wA(){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 kA(e){return new Promise(t=>Hp(e)(t))}function Hp(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function AA(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new Cn(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function CA(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)PA(e[n],t[n])}function PA(e,t){if(Bp(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(Jp(t)){try{if(e instanceof t)return}catch(r){}if(!lA(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 ll(e,t){if(tl.config[e]){co.warn(`[can i use] ${e} already registered`);return}tl.config[e]=Dt({},t)}function Np(e,t){return`[${e}]:${t}`}function FA(e,t){Dp||(Ks=new oo({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Qs=new oo({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Ys=new oo({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),t("onJoliboxEnterBackground",()=>{Ks.flush(),Qs.flush(),Ys.flush()}),Dp=!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";Ks.report({status:y,method:n(s,l),errNo:`${p}`,errMsg:u,isForeground:d,duration:Date.now()-c}),c&&m&&g&&(Qs.report({status:y,method:s,isForeground:d,duration:Number((m-c).toFixed(3))}),Ys.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 BA(e,t){let r=0,n=!0,i=UA.resolveMap,o=FA(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,Zs.forEach(l=>so(this,[l],function*({method:c,args:d,resolve:u}){let p=yield s(c,d);u(p)})),Zs.length=0});let a=(l,c)=>{let d=i.get(Number(l));if(!d)return;let u=Xs(c);d(u),i.delete(Number(l))},s=(l,c)=>{var d,u;let p=Date.now(),f=`${n}`;r+=1;let m=new aA;if(i.set(r,m.resolve),!n&&NA.includes(l))return new Promise(A=>{Zs.push({method:l,args:c,resolve:A})});let g=Qk(Dt({},{method:l,startTime:p,args:c,isForeground:f}),{invokeType:"js-bridge"}),y=!MA&&OA.includes(l),v=tA(c,y),_=y?v:JSON.stringify(v),w;if(l.endsWith("Sync")||DA.includes(l)?w=(d=e.call)==null?void 0:d.call(e,l,v,r):typeof _=="string"?w=e.invoke(l,_,r):w=(u=e.call)==null?void 0:u.call(e,l,_,r),w){try{typeof w=="string"&&(w=JSON.parse(w)),w=Xs(w)}catch(A){co.error(A)}return i.delete(r),w.errorCode&&(w.errorCode=Np(l,w.errorCode)),o(Dt(Dt({},g),w)),w}return l.endsWith("Sync")&&i.delete(r),m.promise.then(A=>(A.errorCode&&(A.errorCode=Np(l,A.errorCode)),o(Dt(Dt({},g),A)),A))};return{invokeNative:s,applyNative:(l,c)=>{let d=s(l,c);return cA(d)?d.then(u=>qp(l,u)):qp(l,d)},invokeHandler:a}}function qp(e,t){if(!Lr(t)){co.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=Yk(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new fA(n,i,o,a);return s}function JA(e){if(globalThis[io])return globalThis[io];let t=new il,r=new il,n=new oo({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[io]={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=Xs(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===zp){l.forEach(c=>{let[d,u]=c;try{r.emit(d.slice(Tn.length),u,a)}catch(p){}});return}if(i.startsWith(Tn)){r.emit(i.slice(Tn.length),l,a);return}t.emit(i,l,a)}},globalThis[io]}function $A(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(`${Tn}${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(zp,d,p)}catch(p){}}),n=void 0,t.clear()}));let c=t.get(s);c||(c=[],t.set(s,c)),c.push([`${Tn}${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(qA,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 HA(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=JA(e),{invokeNative:a,invokeHandler:s,applyNative:l}=BA(e,r),{publish:c,emitNative:d}=$A(e);return{invokeHandler:s,subscribeHandler:t,applyNative:l,invokeNative:a,onNative:r,offNative:n,emitNative:d,publish:c,subscribe:i,unsubscribe:o}}function Gp(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var Gk,Wk,Kk,ao,Fp,Mp,Cp,Dt,Qk,Yk,so,Xk,eA,jp,rA,nA,Up,iA,aA,uA,dA,lo,pA,fA,hA,Gs,co,Rp,mA,el,gA,tl,yA,_A,bA,IA,n4,rl,te,EA,SA,An,Cn,il,ol,xA,Ws,TA,i4,al,Op,o4,Vp,RA,Tn,OA,NA,DA,zp,qA,LA,oo,Dp,Ks,Qs,Ys,Zs,MA,sl,jA,UA,io,cl,at,Wp,Kp,VA,Qp,Lp,me,F,ze,a4,zA,Yp,ul,s4,l4,Ee=T(()=>{"use strict";Gk=Object.defineProperty,Wk=Object.defineProperties,Kk=Object.getOwnPropertyDescriptors,ao=Object.getOwnPropertySymbols,Fp=Object.prototype.hasOwnProperty,Mp=Object.prototype.propertyIsEnumerable,Cp=(e,t,r)=>t in e?Gk(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Dt=(e,t)=>{for(var r in t||(t={}))Fp.call(t,r)&&Cp(e,r,t[r]);if(ao)for(var r of ao(t))Mp.call(t,r)&&Cp(e,r,t[r]);return e},Qk=(e,t)=>Wk(e,Kk(t)),Yk=(e,t)=>{var r={};for(var n in e)Fp.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ao)for(var n of ao(e))t.indexOf(n)<0&&Mp.call(e,n)&&(r[n]=e[n]);return r},so=(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())});Xk=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};eA=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)};jp=Object.defineProperty,rA=Object.getOwnPropertyDescriptor,nA=(e,t)=>{for(var r in t)jp(e,r,{get:t[r],enumerable:!0})},Up=(e,t,r,n)=>{for(var i=n>1?void 0:n?rA(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&&jp(t,r,i),i},iA=(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}aA=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))}})}};uA=(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))(uA||{}),dA=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}},lo=class extends dA{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},pA=class extends lo{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},fA=class extends lo{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},hA=class extends lo{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},Gs=class extends lo{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};co={log:kn("log"),warn:kn("warn"),info:kn("info"),error:kn("error"),debug:kn("debug")};Object.assign(globalThis,{logger:co});Rp=Symbol.for("Jolibox.canIUseMap"),mA={};globalThis[Rp]||(globalThis[Rp]=mA);el=Symbol.for("Jolibox.canIUseMap.native"),gA={};globalThis[el]||(globalThis[el]=gA);tl={get config(){return globalThis[el]}},yA=(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))(yA||{}),_A=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(_A||{}),bA=(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))(bA||{});wA();IA=()=>!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),n4={isiOS: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:navigator.userAgent.includes("Android"),isMac:navigator.userAgent.includes("Mac"),isFacebook:navigator.userAgent.includes("FB_IAB"),isPC:!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},rl=class nl{constructor(t){this.element=t,this.next=nl.Undefined,this.prev=nl.Undefined}};rl.Undefined=new rl(void 0);te=rl,EA=class{constructor(){this._first=te.Undefined,this._last=te.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===te.Undefined}clear(){let e=this._first;for(;e!==te.Undefined;){let t=e.next;e.prev=te.Undefined,e.next=te.Undefined,e=t}this._first=te.Undefined,this._last=te.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new te(e);if(this._first===te.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!==te.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==te.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==te.Undefined&&e.next!==te.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===te.Undefined&&e.next===te.Undefined?(this._first=te.Undefined,this._last=te.Undefined):e.next===te.Undefined?(this._last=this._last.prev,this._last.next=te.Undefined):e.prev===te.Undefined&&(this._first=this._first.next,this._first.prev=te.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==te.Undefined;)yield e.element,e=e.next}},SA=0,An=class{constructor(e){this.value=e,this.id=SA++}},Cn=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 An&&(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 An(t);return this._listeners?this._listeners instanceof An?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 An)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 An?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},il=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 Cn,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 EA,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={};nA(ol,{None:()=>xA,filter:()=>AA,once:()=>Hp,toPromise:()=>kA});xA=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Ws=Symbol.for("Jolibox.hostEmitter"),TA=()=>{let e=new il;return globalThis[Ws]||(globalThis[Ws]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Ws]},i4=TA();al=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Cn,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 CA(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}};al=Up([$p],al);Op=class{constructor(){this._onWillExecuteCommand=new Cn,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Cn,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new al,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=oA(3e4)),this._starActivation}executeCommand(e,...t){return iA(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}}};Op=Up([$p],Op);o4=Symbol.for("Jolibox.commands");ll("requestPaymentSync",{version:1e6,properties:{paymentBody:{appStoreProductId:102e4}}});ll("requestProductDetailsAsync",{version:102e4});ll("loginSync",{version:1e6,properties:{skipLogin:102e4,triggerFrom:102e4}});Vp=e=>{function t(n){let[i,...o]=n.split(":");if(!i)return!1;let a=tl.config[i];if(!a)return!1;let s=a.version;if(typeof s!="number")return!1;let l=e();return typeof l!="number"||l<s?!1:o.length===0?!0:r(a,o,l)||r(a.properties,o,l)}function r(n,i,o){if(!n)return!1;let a=vA(n,i);if(!a)return!1;if(Lr(a)){let s=a.version;return Pp(s)?typeof o=="number"&&o>=s:!0}return Pp(a)?typeof o=="number"&&o>=a:a===!0}return{canIUseNative:t}};RA=()=>IA(),Tn="custom_event_",OA=[],NA=[],DA=["env","createRequestTask","login"],zp="__batch_event__",qA="__native_batch_event__",LA=e=>e==="pv"?e:"default",oo=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=LA(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&&Lr(a))throw new Gs(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let l=[];if(Lr(a))l.push(...Object.keys(a));else if(Bp(a)){if(i.length>0)throw new Gs(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);l.push(a)}else throw new Gs(`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=Lr(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={}}},Dp=!1;Zs=[],MA=!1,sl=Symbol.for("Jolibox.invokeResolverInstance"),jA=new Map;globalThis[sl]||(globalThis[sl]=jA);UA={get resolveMap(){return globalThis[sl]}};io=Symbol.for("Jolibox.subscribeInstance");at={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){at.trigger=e},onDoExit(e){at.exit=e},onDoBackPress(e){at.backPress=e}},Wp=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new pA("native env failed"));else{let{data:r}=JSON.parse(t);return r!=null?r:void 0}};if(window.webkit){let e=window.webkit.messageHandlers,t=(i="")=>{at.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>so(void 0,null,function*(){let o=yield at.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});cl={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=Gp(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:Wp,doExit:r};globalThis.joliboxJSCore=Dt({},n)}if(window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(o="")=>{at.trigger(),t.onDocumentReady(JSON.stringify({path:o}))},n=o=>so(void 0,null,function*(){let a=yield at.exit();t.doExit(JSON.stringify({uuid:o,shouldInterrupt:a}))});cl={onDocumentReady:r,invoke(o,a,s){t.invoke(JSON.stringify({event:o,paramsString:a,callbackId:s}))},doExit:n,publish(o,a,s){let l=Gp(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 so(this,null,function*(){let a=yield at.backPress();t.doBackPress(JSON.stringify({uuid:o,shouldInterrupt:a}))})}};let i={onDocumentReady:r,env:Wp,doExit:n};globalThis.joliboxJSCore=Dt({},i)}Kp=cl;if(!Kp&&RA())throw new hA("No joliboxJScore is found, native bridge not found.");VA=Dt({},Kp),Qp=HA(VA),{invokeHandler:Lp}=Qp,{applyNative:me,invokeNative:F,onNative:ze,offNative:a4,subscribeHandler:zA,publish:Yp,emitNative:ul,subscribe:s4,unsubscribe:l4}=Qp;globalThis.joliboxJSBridge={callHandler:Lp,invokeHandler:Lp,subscribeHandler:zA}});function XA(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Nn(e){return typeof e=="string"}function yr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function nf(e){return typeof e=="object"&&Array.isArray(e)}function of(e){return typeof e=="number"&&!isNaN(e)}function Dn(e){return e===!0||e===!1}function af(e){return typeof e=="undefined"}function yl(e){return af(e)||e===null}function e1(e){return typeof e=="function"}function sf(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function lf(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:ef(l)&&ef(s)?i[a]=n(QA({},s),l):Array.isArray(l)&&Array.isArray(s)?i[a]=[...s,...l]:i[a]=l}return i}return n(e,t)}function ef(e){return e&&typeof e=="object"&&e.constructor===Object}function cf(e,t){if(Array.isArray(e))return e.concat(t)}function qn(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 r1(e,t){return(...r)=>t(e,...r)}function fo(e){return t=>r1(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(i){e(new Fr(`${i}`))}})}function Pn(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function Sl(){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 d1(e){return new Promise(t=>yf(e)(t))}function yf(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function p1(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new On(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function h1(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)m1(e[n],t[n])}function m1(e,t){if(Nn(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(e1(t)){try{if(e instanceof t)return}catch(r){}if(!yl(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 v1(){return typeof globalThis!="undefined"?globalThis[_f]:void 0}function g1(e){typeof globalThis!="undefined"&&(globalThis[_f]=e)}function ae(){let e=v1();if(e)return e;let t=new uo,r=new vl,n={registerCommand(i,o,a){t.registerCommand({id:i,handler:o,metadata:a})},executeCommand(i,...o){return r.executeCommand(i,...o)},excuteCommandSync(i,...o){return r.executeCommandThowErr(i,...o)}};return g1(n),n}var gl,GA,Zp,WA,KA,Xp,QA,YA,rf,ZA,yt,t1,_l,po,bl,uf,Fr,df,pf,ff,hf,Ln,wl,_t,pl,n1,Il,tf,i1,ve,El,o1,ho,Fn,a1,s1,mf,vf,gf,fl,re,l1,c1,Rn,On,bt,ml,u1,dl,f1,Se,uo,vl,_f,D=T(()=>{"use strict";gl=Object.defineProperty,GA=Object.getOwnPropertyDescriptor,Zp=Object.getOwnPropertySymbols,WA=Object.prototype.hasOwnProperty,KA=Object.prototype.propertyIsEnumerable,Xp=(e,t,r)=>t in e?gl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,QA=(e,t)=>{for(var r in t||(t={}))WA.call(t,r)&&Xp(e,r,t[r]);if(Zp)for(var r of Zp(t))KA.call(t,r)&&Xp(e,r,t[r]);return e},YA=(e,t)=>{for(var r in t)gl(e,r,{get:t[r],enumerable:!0})},rf=(e,t,r,n)=>{for(var i=n>1?void 0:n?GA(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&&gl(t,r,i),i},ZA=(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}yt=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))}})}};t1=(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))(t1||{}),_l=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 _l{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},bl=class extends _l{constructor(){super(...arguments),this.kind="USER_ERROR"}},uf=class extends bl{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},Fr=class extends bl{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))}},df=class extends bl{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))}},pf=class extends po{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},ff=class extends po{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))}},hf=class extends po{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},Ln=class extends _l{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}}},wl=class extends po{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};_t={log:Pn("log"),warn:Pn("warn"),info:Pn("info"),error:Pn("error"),debug:Pn("debug")};Object.assign(globalThis,{logger:_t});pl=Symbol.for("Jolibox.canIUseMap"),n1={};globalThis[pl]||(globalThis[pl]=n1);Il={get config(){return globalThis[pl]}},tf=Symbol.for("Jolibox.canIUseMap.native"),i1={};globalThis[tf]||(globalThis[tf]=i1);ve=(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))(ve||{}),El=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(El||{}),o1=(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))(o1||{}),ho=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});Sl();Fn={isiOS: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:navigator.userAgent.includes("Android"),isMac:navigator.userAgent.includes("Mac"),isFacebook:navigator.userAgent.includes("FB_IAB"),isPC:!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},a1="device_id",s1="advertising_id",mf=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,ho()),window.__joliboxLocalStorage__.getItem(e)),vf=()=>new URLSearchParams(window.location.search).get("deviceId")||mf(a1),gf=()=>new URLSearchParams(window.location.search).get("advertisingId")||mf(s1),fl=class hl{constructor(t){this.element=t,this.next=hl.Undefined,this.prev=hl.Undefined}};fl.Undefined=new fl(void 0);re=fl,l1=class{constructor(){this._first=re.Undefined,this._last=re.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===re.Undefined}clear(){let e=this._first;for(;e!==re.Undefined;){let t=e.next;e.prev=re.Undefined,e.next=re.Undefined,e=t}this._first=re.Undefined,this._last=re.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new re(e);if(this._first===re.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!==re.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==re.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==re.Undefined&&e.next!==re.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===re.Undefined&&e.next===re.Undefined?(this._first=re.Undefined,this._last=re.Undefined):e.next===re.Undefined?(this._last=this._last.prev,this._last.next=re.Undefined):e.prev===re.Undefined&&(this._first=this._first.next,this._first.prev=re.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==re.Undefined;)yield e.element,e=e.next}},c1=0,Rn=class{constructor(e){this.value=e,this.id=c1++}},On=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 Rn&&(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 Rn(t);return this._listeners?this._listeners instanceof Rn?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 Rn)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 Rn?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},bt=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 On,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 l1,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)}},ml={};YA(ml,{None:()=>u1,filter:()=>p1,once:()=>yf,toPromise:()=>d1});u1=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});dl=Symbol.for("Jolibox.hostEmitter"),f1=()=>{let e=new bt;return globalThis[dl]||(globalThis[dl]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[dl]},Se=f1();uo=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new On,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 h1(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}};uo=rf([sf],uo);vl=class{constructor(){this._onWillExecuteCommand=new On,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new On,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new uo,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=XA(3e4)),this._starActivation}executeCommand(e,...t){return ZA(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),ml.toPromise(ml.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}}};vl=rf([sf],vl);_f=Symbol.for("Jolibox.commands")});function Ce(e,t={}){xl.emit("ERROR_REPORT",{error:e,options:t})}var xl,_r,dt=T(()=>{"use strict";D();D();xl=new bt,_r=new bt;Ce.debounce=qn(Ce,50,{leading:!0})});var kl,y1,bf,wf,If=T(()=>{"use strict";D();dt();kl=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{}}},y1=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},bf=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:kl(o),payloadJson:kl(a),signature:kl(s)}}else throw"joli_source is missing"}catch(r){return Ce(new pf(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},wf=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],i=y1(e),o=r[2];return`${n}.${i}.${o}`}return t}});var _1,Al,Ef=T(()=>{"use strict";D();_1="1.1.37",Al=()=>_1});function Sf(e,t){return(document==null?void 0:document.head.querySelector(`meta[name="${e}"][content="${t}"]`))!==null}var b1,xf,Tl,kf,ue,w1,S,Q=T(()=>{"use strict";D();If();Ef();D();b1={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:vf(),adId:gf(),pixelRatio:window.devicePixelRatio||1,platform:Fn.isAndroid?"android":Fn.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:Al()},schema:window.location.href,platform:Fn.isAndroid?"android":Fn.isiOS?"ios":"h5"},Tl=(xf=globalThis.joliboxJSCore)==null?void 0:xf.env,ue=Object.assign({},(kf=Tl==null?void 0:Tl())!=null?kf:b1);w1=()=>{var f,m,g,y,v,_,w,A,R,P,E;let{payloadJson:e,headerJson:t,signature:r}=ue.schema.length?bf(ue.schema):{},n=`${ue.deviceInfo.did}-${new Date().getTime()}`,o=new URL(ue.schema.length?ue.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=(_=(v=(y=ue.clientSessionId)!=null?y:e==null?void 0:e.sessionId)!=null?v:o.get("sessionId"))!=null?_:n,l=!!((A=(w=e==null?void 0:e.testAdsMode)!=null?w:e==null?void 0:e.__testAdsMode)!=null?A:o.get("testAdsMode")==="true"),c=(E=(P=(R=e==null?void 0:e.joliboxEnv)!=null?R:e==null?void 0:e.__joliboxEnv)!=null?P:o.get("joliboxEnv"))!=null?E:"production",d=c==="staging",u=t==null?void 0:t.channel,p=e==null?void 0:e.__shouldInterupt;return{get testMode(){return d},get testAdsMode(){return l},get joliboxEnv(){return c},get joliSource(){var k;return(k=o.get("joliSource"))!=null?k:null},get mpId(){var k;return(k=a!=null?a:e==null?void 0:e.id)!=null?k:""},get mpVersion(){var k;return(k=t==null?void 0:t.ver)!=null?k:Al()},get mpType(){var k,H;return(H=(k=t==null?void 0:t.__mpType)!=null?k:e==null?void 0:e.__mpType)!=null?H:"game"},get platform(){var k;return((k=ue.platform)!=null?k:ue.deviceInfo.platform).toLowerCase()},get deviceInfo(){return ue.deviceInfo},get sdkInfo(){return ue.sdkInfo},get hostInfo(){return ue.hostInfo},get hostUserInfo(){return ue.hostUserInfo},get sessionId(){var k,H;return(H=(k=ue.clientSessionId)!=null?k:s)!=null?H:n},get channel(){return u},get webviewId(){var k;return(k=ue.webviewId)!=null?k:-1},get shouldInterupt(){return p},get from(){return e==null?void 0:e.__from},get baseApiHost(){return d?"https://stg-api.jolibox.com":"https://api.jolibox.com"},get adId(){var k;return(k=ue.deviceInfo.adId)!=null?k:ue.deviceInfo.did},get language(){return ue.deviceInfo.lang},get sdkEnvironment(){return Sf("dlightek","jolibox")?"dlightek":o.get("huaweiQuick")==="true"?"huaweiQuick":Sf("gamedistribution","jolibox")?"gamedistribution":"jolibox"},get viewport(){var $e,vt,gt;let k=($e=ue.deviceInfo.pixelRatio)!=null?$e:1,H=(vt=ue.deviceInfo.statusBarHeight)!=null?vt:e==null?void 0:e.__androidStatusBarHeight,Je=(gt=ue.deviceInfo.navigationBarHeight)!=null?gt:e==null?void 0:e.__androidNavigationBarHeight;return{statusBarHeight:H!==void 0?H/k:20,navigationBarHeight:Je!==void 0?Je/k:10}},onEnvConfigChanged:k=>{lf(ue,k,cf)},encodeJoliSourceQuery:k=>{var H,Je;return t&&r?wf(C(C({},e),k),(H=o.get("joliSource"))!=null?H:""):(Je=o.get("joliSource"))!=null?Je:""},setDoExitDirectly:()=>{p=!1}}},S=w1()});var Cl,Tf,I1,E1,Af,S1,Cf=T(()=>{"use strict";D();dt();Q();D();Cl=!1,Tf=(e,t)=>e==null?!1:t in e,I1=e=>Tf(e,"kind"),E1=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},Af=(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:E1(e.name)},i=L(C({},n),{env:t.environment,isFromUser:r});r?_r.emit("GLOBAL_USER_ERROR",e,i):_r.emit("GLOBAL_ERROR",e,i)},S1=e=>Tf(e,"kind")&&e.kind==="USER_ERROR";xl.on("ERROR_REPORT",({error:e,options:t})=>{if(Cl)return;Cl=!0;let r=I1(e)&&e.raw?e.raw:e;try{let n=S1(e);Af(e,t,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new wl(`${i}, origin error: ${r.message}`);_t.error(o),Af(new wl(o.message),{environment:t.environment},!1)}finally{Cl=!1}})});var tr,Pl,Mr=T(()=>{"use strict";dt();D();dt();tr=(e,t)=>{var r,n;return new Ln((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},Pl=e=>new uf(e)});var Pf=T(()=>{"use strict";Cf();Mr();D();Ee();_r.on("GLOBAL_ERROR",(e,t)=>{var n;let r={message:e.message,stack:(n=e.stack)!=null?n:"",errorType:e.name,source:0};F("trackAsync",{event:"reportJsError",data:r})});_r.on("GLOBAL_USER_ERROR",(e,t)=>{_t.log("UserError",e,t)})});var Rl=T(()=>{"use strict"});function Rf(e,t){let r=(n,i,o)=>{let c=i!=null?i:{},{eventType:a}=c,s=ot(c,["eventType"]),l=L(C({tag:n,eventType:a!=null?a:ve.Other},t),{extra:C({},s)});n=="globalJsError"?Ce(new hf(JSON.stringify(l))):e("systemLog",l,o)};return r.debounce=qn(r,500,{leading:!0}),r}function Of(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=qn(t,500,{leading:!0}),t}var Nf=T(()=>{"use strict";D();D();dt()});function Df(e,t){let r=Rf(e,t),n=Of(r);return{track:r,trackPerformance:n}}var qf=T(()=>{"use strict";Nf()});var Lf=T(()=>{"use strict";Q();D();D()});var Ff=T(()=>{"use strict";qf();Rl();Lf()});var mo,Mf=T(()=>{"use strict";mo=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 vo(e,t,r){var l,c,d;let n=new Map,i=(l=r==null?void 0:r.baseUrl)!=null?l:"https://api.jolibox.com",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 p=n.get(u.requestTaskId);if(p)if(u.state==="success"){let f=u,{requestTaskId:g,state:y}=f,v=ot(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=ot(m,["requestTaskId","state"]);p.reject(v),n.delete(g)}else _t.warn("onRequestTaskStateChange unknown event",u)}),Se.on("onLoginComplete",({isLogin:u,token:p})=>{u&&p&&(a["X-JOLI-TOKEN"]=p)}),(f,...m)=>I(this,[f,...m],function*(u,p={}){let g=Date.now(),y=x1(u,L(C({},p),{baseUrl:i})),{method:v="GET",responseType:_="text",dataType:w="json",timeout:A,enableCache:R=!1,appendHostCookie:P=!0}=p,E=Object.assign({"content-type":"application/json"},a,p.header),k={url:y,method:v,header:E,enableCache:R,responseType:_,appendHostCookie:P};if(v=="POST"||v=="PUT"){let gt=A1(p.data,E["content-type"]);k.data=gt}A&&Object.assign(k,{timeout:A});let{data:{requestTaskId:H}}=F(e,k);if(typeof H!="string")throw tr({code:-1,msg:"requestTaskId is not a string"});let{resolve:Je,reject:$e,promise:vt}=new yt;n.set(H,{resolve:Je,reject:$e});try{let gt=yield vt,{data:gr}=gt;return w==="json"&&typeof gr=="string"&&(gr=k1(gr)),{url:y,timeout:A,method:v,response:L(C({},gt),{data:gr})}}catch(gt){let gr=gt;if(yr(gr)){let{errMsg:Vs,prefetchDetail:e4,isPrefetch:t4,errNo:jk}=gr;Nn(Vs)&&Ce(tr({code:-1,msg:Vs},{errNo:jk,errMsg:Vs}))}throw gt}})}function k1(e){try{return JSON.parse(e.trim())}catch(t){return e}}function A1(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 x1,Ol=T(()=>{"use strict";D();Ee();dt();Mr();x1=(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 Nl,jf,ne,wt=T(()=>{"use strict";Ol();Q();Nl={};(jf=S.hostUserInfo)!=null&&jf.token&&(Nl["x-joli-token"]=S.hostUserInfo.token);S.joliSource&&(Nl["x-joli-source"]=S.joliSource);ne=vo("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:S.testMode?"https://stg-api.jolibox.com":"https://api.jolibox.com",defaultHeaders:Nl})});var go,Uf=T(()=>{"use strict";Q();Mf();wt();Ee();go=class extends mo{constructor(t,r,n){super(r,n),this.gameId=S.mpId,this.sessionId=S.sessionId,this.track=t,this.taskUrl=S.testMode?"https://stg-api.jolibox.com/api/base/app-event":"https://api.jolibox.com/api/base/app-event"}reporter(t){return I(this,null,function*(){let{event:r,params:n}=t,i={eventType:r,gameInfo:C({gameId:this.gameId,sessionId:this.sessionId},n)};yield S.platform==="android"?ne("/api/base/app-event",{method:"POST",data:i}):me("trackAppEventAsync",{url:this.taskUrl,body:JSON.stringify(i)})})}reportToNative(t){return I(this,null,function*(){let{event:r,params:n}=t;yield me("userTrackAsync",{event:r,params:C({},n),gameId:this.gameId})})}tracker(t,r=null){this.track(t,r)}}});var Vf={};Tp(Vf,{nativeTaskEmitter:()=>Mn,taskTracker:()=>qt,track:()=>Y,trackPerformance:()=>$f});var T1,Bf,Jf,Y,$f,Hf,Mn,qt,Lt=T(()=>{"use strict";Pf();D();Rl();Ff();Q();Uf();Ee();T1=(e,t,r)=>{var s,l,c,d,u,p;let n=t,i=yr(n.extra)?n.extra:Nn(n.extra)?JSON.parse(n.extra):{},o=L(C({},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:ve.Other;F("trackAsync",{event:(p=t.tag)!=null?p:e,data:o,webviewId:r,eventType:a})},{track:Y,trackPerformance:$f}=Df(T1,{type:El.AppSDK,platform:"native",jssdk_version:(Jf=(Bf=S.sdkInfo)==null?void 0:Bf.jssdkVersion)!=null?Jf:"1.0.0",mp_id:S.mpId,mp_version:S.mpVersion}),Hf=ae();Hf.registerCommand("ReportSDK.traceSystemTimeline",({event:e,duration:t,extra:r})=>{$f(e,t,r)});Hf.registerCommand("ReportSDK.traceSystem",({event:e,info:t})=>{Y(e,t)});Mn=new bt,qt=new go(Y,Mn)});function zf(){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 Gk=Object.create;var ao=Object.defineProperty,Wk=Object.defineProperties,Kk=Object.getOwnPropertyDescriptor,Qk=Object.getOwnPropertyDescriptors,Yk=Object.getOwnPropertyNames,oo=Object.getOwnPropertySymbols,Xk=Object.getPrototypeOf,Ks=Object.prototype.hasOwnProperty,Np=Object.prototype.propertyIsEnumerable;var Op=(e,t,r)=>t in e?ao(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,C=(e,t)=>{for(var r in t||(t={}))Ks.call(t,r)&&Op(e,r,t[r]);if(oo)for(var r of oo(t))Np.call(t,r)&&Op(e,r,t[r]);return e},q=(e,t)=>Wk(e,Qk(t));var st=(e,t)=>{var r={};for(var n in e)Ks.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&oo)for(var n of oo(e))t.indexOf(n)<0&&Np.call(e,n)&&(r[n]=e[n]);return r};var T=(e,t)=>()=>(e&&(t=e(e=0)),t);var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Dp=(e,t)=>{for(var r in t)ao(e,r,{get:t[r],enumerable:!0})},Zk=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Yk(t))!Ks.call(e,i)&&i!==r&&ao(e,i,{get:()=>t[i],enumerable:!(n=Kk(t,i))||n.enumerable});return e};var ce=(e,t,r)=>(r=e!=null?Gk(Xk(e)):{},Zk(t||!e||!e.__esModule?ao(r,"default",{value:e,enumerable:!0}):r,e));var I=(e,t,r)=>new Promise((n,i)=>{var o=l=>{try{s(r.next(l))}catch(c){i(c)}},a=l=>{try{s(r.throw(l))}catch(c){i(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(o,a);s((r=r.apply(e,t)).next())});function oA(e){return!!(e!=null&&e.__nativeBuffers__)}function rl(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!oA(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=aA(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function lA(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:sA(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function pA(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Gp(e){return typeof e=="string"}function jr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function qp(e){return typeof e=="number"&&!isNaN(e)}function hA(e){return typeof e=="undefined"}function mA(e){return hA(e)||e===null}function Wp(e){return typeof e=="function"}function vA(e){return jr(e)&&Wp(e.then)}function Kp(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function Cn(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function SA(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 TA(){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 NA(e){return new Promise(t=>Qp(e)(t))}function Qp(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function DA(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new On(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function qA(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)FA(e[n],t[n])}function FA(e,t){if(Gp(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(Wp(t)){try{if(e instanceof t)return}catch(r){}if(!mA(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(il.config[e]){fo.warn(`[can i use] ${e} already registered`);return}il.config[e]=qt({},t)}function jp(e,t){return`[${e}]:${t}`}function HA(e,t){Up||(Xs=new lo({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Zs=new lo({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),el=new lo({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),t("onJoliboxEnterBackground",()=>{Xs.flush(),Zs.flush(),el.flush()}),Up=!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";Xs.report({status:y,method:n(s,l),errNo:`${p}`,errMsg:u,isForeground:d,duration:Date.now()-c}),c&&m&&g&&(Zs.report({status:y,method:s,isForeground:d,duration:Number((m-c).toFixed(3))}),el.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 WA(e,t){let r=0,n=!0,i=GA.resolveMap,o=HA(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,tl.forEach(l=>uo(this,[l],function*({method:c,args:d,resolve:u}){let p=yield s(c,d);u(p)})),tl.length=0});let a=(l,c)=>{let d=i.get(Number(l));if(!d)return;let u=rl(c);d(u),i.delete(Number(l))},s=(l,c)=>{var d,u;let p=Date.now(),f=`${n}`;r+=1;let m=new fA;if(i.set(r,m.resolve),!n&&UA.includes(l))return new Promise(A=>{tl.push({method:l,args:c,resolve:A})});let g=nA(qt({},{method:l,startTime:p,args:c,isForeground:f}),{invokeType:"js-bridge"}),y=!VA&&jA.includes(l),v=lA(c,y),_=y?v:JSON.stringify(v),w;if(l.endsWith("Sync")||BA.includes(l)?w=(d=e.call)==null?void 0:d.call(e,l,v,r):typeof _=="string"?w=e.invoke(l,_,r):w=(u=e.call)==null?void 0:u.call(e,l,_,r),w){try{typeof w=="string"&&(w=JSON.parse(w)),w=rl(w)}catch(A){fo.error(A)}return i.delete(r),w.errorCode&&(w.errorCode=jp(l,w.errorCode)),o(qt(qt({},g),w)),w}return l.endsWith("Sync")&&i.delete(r),m.promise.then(A=>(A.errorCode&&(A.errorCode=jp(l,A.errorCode)),o(qt(qt({},g),A)),A))};return{invokeNative:s,applyNative:(l,c)=>{let d=s(l,c);return vA(d)?d.then(u=>Bp(l,u)):Bp(l,d)},invokeHandler:a}}function Bp(e,t){if(!jr(t)){fo.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=iA(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new bA(n,i,o,a);return s}function KA(e){if(globalThis[so])return globalThis[so];let t=new sl,r=new sl,n=new lo({eventName:"jolibox_publish",tagNameOrder:["type","event"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}});return t.on("onJoliboxEnterBackground",()=>{n.flush()}),globalThis[so]={onNative:t.on.bind(t),offNative:t.off.bind(t),subscribe:r.on.bind(r),unsubscribe:r.off.bind(r),subscribeHandler(i,o,a){let s=rl(o),l;if(s.__extra){l=s.params;let{type:c,startTime:d}=s.__extra;n.report({type:c,event:i,duration:Date.now()-d})}else l=s;if(i===Xp){l.forEach(c=>{let[d,u]=c;try{r.emit(d.slice(Rn.length),u,a)}catch(p){}});return}if(i.startsWith(Rn)){r.emit(i.slice(Rn.length),l,a);return}t.emit(i,l,a)}},globalThis[so]}function QA(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(`${Rn}${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(Xp,d,p)}catch(p){}}),n=void 0,t.clear()}));let c=t.get(s);c||(c=[],t.set(s,c)),c.push([`${Rn}${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(JA,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 YA(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=KA(e),{invokeNative:a,invokeHandler:s,applyNative:l}=WA(e,r),{publish:c,emitNative:d}=QA(e);return{invokeHandler:s,subscribeHandler:t,applyNative:l,invokeNative:a,onNative:r,offNative:n,emitNative:d,publish:c,subscribe:i,unsubscribe:o}}function Zp(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var eA,tA,rA,co,$p,Hp,Lp,qt,nA,iA,uo,aA,sA,Vp,cA,uA,zp,dA,fA,gA,yA,po,_A,bA,wA,Qs,fo,Fp,IA,nl,EA,il,xA,kA,AA,CA,v4,ol,te,PA,RA,Pn,On,sl,ll,OA,Ys,LA,g4,cl,Mp,y4,Yp,MA,Rn,jA,UA,BA,Xp,JA,$A,lo,Up,Xs,Zs,el,tl,VA,ul,zA,GA,so,pl,lt,ef,tf,XA,rf,Jp,me,F,Ge,_4,ZA,nf,fl,b4,w4,Se=T(()=>{"use strict";eA=Object.defineProperty,tA=Object.defineProperties,rA=Object.getOwnPropertyDescriptors,co=Object.getOwnPropertySymbols,$p=Object.prototype.hasOwnProperty,Hp=Object.prototype.propertyIsEnumerable,Lp=(e,t,r)=>t in e?eA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qt=(e,t)=>{for(var r in t||(t={}))$p.call(t,r)&&Lp(e,r,t[r]);if(co)for(var r of co(t))Hp.call(t,r)&&Lp(e,r,t[r]);return e},nA=(e,t)=>tA(e,rA(t)),iA=(e,t)=>{var r={};for(var n in e)$p.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&co)for(var n of co(e))t.indexOf(n)<0&&Hp.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())});aA=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};sA=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)};Vp=Object.defineProperty,cA=Object.getOwnPropertyDescriptor,uA=(e,t)=>{for(var r in t)Vp(e,r,{get:t[r],enumerable:!0})},zp=(e,t,r,n)=>{for(var i=n>1?void 0:n?cA(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&&Vp(t,r,i),i},dA=(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}fA=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))}})}};gA=(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))(gA||{}),yA=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 yA{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},_A=class extends po{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},bA=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}},wA=class extends po{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},Qs=class extends po{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};fo={log:Cn("log"),warn:Cn("warn"),info:Cn("info"),error:Cn("error"),debug:Cn("debug")};Object.assign(globalThis,{logger:fo});Fp=Symbol.for("Jolibox.canIUseMap"),IA={};globalThis[Fp]||(globalThis[Fp]=IA);nl=Symbol.for("Jolibox.canIUseMap.native"),EA={};globalThis[nl]||(globalThis[nl]=EA);il={get config(){return globalThis[nl]}},xA=(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))(xA||{}),kA=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(kA||{}),AA=(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))(AA||{});TA();CA=()=>!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),v4={isiOS: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:navigator.userAgent.includes("Android"),isMac:navigator.userAgent.includes("Mac"),isFacebook:navigator.userAgent.includes("FB_IAB"),isPC:!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},ol=class al{constructor(t){this.element=t,this.next=al.Undefined,this.prev=al.Undefined}};ol.Undefined=new ol(void 0);te=ol,PA=class{constructor(){this._first=te.Undefined,this._last=te.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===te.Undefined}clear(){let e=this._first;for(;e!==te.Undefined;){let t=e.next;e.prev=te.Undefined,e.next=te.Undefined,e=t}this._first=te.Undefined,this._last=te.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new te(e);if(this._first===te.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!==te.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==te.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==te.Undefined&&e.next!==te.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===te.Undefined&&e.next===te.Undefined?(this._first=te.Undefined,this._last=te.Undefined):e.next===te.Undefined?(this._last=this._last.prev,this._last.next=te.Undefined):e.prev===te.Undefined&&(this._first=this._first.next,this._first.prev=te.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==te.Undefined;)yield e.element,e=e.next}},RA=0,Pn=class{constructor(e){this.value=e,this.id=RA++}},On=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 Pn&&(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 Pn(t);return this._listeners?this._listeners instanceof Pn?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 Pn)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 Pn?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},sl=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 On,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 PA,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)}},ll={};uA(ll,{None:()=>OA,filter:()=>DA,once:()=>Qp,toPromise:()=>NA});OA=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Ys=Symbol.for("Jolibox.hostEmitter"),LA=()=>{let e=new sl;return globalThis[Ys]||(globalThis[Ys]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Ys]},g4=LA();cl=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new On,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 qA(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}};cl=zp([Kp],cl);Mp=class{constructor(){this._onWillExecuteCommand=new On,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new On,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new cl,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=pA(3e4)),this._starActivation}executeCommand(e,...t){return dA(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),ll.toPromise(ll.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}}};Mp=zp([Kp],Mp);y4=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}});Yp=e=>{function t(n){let[i,...o]=n.split(":");if(!i)return!1;let a=il.config[i];if(!a)return!1;let s=a.version;if(typeof s!="number")return!1;let l=e();return typeof l!="number"||l<s?!1:o.length===0?!0:r(a,o,l)||r(a.properties,o,l)}function r(n,i,o){if(!n)return!1;let a=SA(n,i);if(!a)return!1;if(jr(a)){let s=a.version;return qp(s)?typeof o=="number"&&o>=s:!0}return qp(a)?typeof o=="number"&&o>=a:a===!0}return{canIUseNative:t}};MA=()=>CA(),Rn="custom_event_",jA=[],UA=[],BA=["env","createRequestTask","login"],Xp="__batch_event__",JA="__native_batch_event__",$A=e=>e==="pv"?e:"default",lo=class{constructor(e){this.interval=30,this.lastReportTime=0,this.cache={};let{reporter:t,interval:r=30,eventName:n,tagNameOrder:i,metricName:o,type:a}=e;this.reporter=t,this.interval=r,this.eventName=n,this.tagNameOrder=i,this.metricName=o,this.type=$A(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&&jr(a))throw new Qs(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let l=[];if(jr(a))l.push(...Object.keys(a));else if(Gp(a)){if(i.length>0)throw new Qs(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);l.push(a)}else throw new Qs(`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=jr(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={}}},Up=!1;tl=[],VA=!1,ul=Symbol.for("Jolibox.invokeResolverInstance"),zA=new Map;globalThis[ul]||(globalThis[ul]=zA);GA={get resolveMap(){return globalThis[ul]}};so=Symbol.for("Jolibox.subscribeInstance");lt={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){lt.trigger=e},onDoExit(e){lt.exit=e},onDoBackPress(e){lt.backPress=e}},ef=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new _A("native env failed"));else{let{data:r}=JSON.parse(t);return r!=null?r:void 0}};if(window.webkit){let e=window.webkit.messageHandlers,t=(i="")=>{lt.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>uo(void 0,null,function*(){let o=yield lt.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});pl={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=Zp(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:ef,doExit:r};globalThis.joliboxJSCore=qt({},n)}if(window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(o="")=>{lt.trigger(),t.onDocumentReady(JSON.stringify({path:o}))},n=o=>uo(void 0,null,function*(){let a=yield lt.exit();t.doExit(JSON.stringify({uuid:o,shouldInterrupt:a}))});pl={onDocumentReady:r,invoke(o,a,s){t.invoke(JSON.stringify({event:o,paramsString:a,callbackId:s}))},doExit:n,publish(o,a,s){let l=Zp(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 lt.backPress();t.doBackPress(JSON.stringify({uuid:o,shouldInterrupt:a}))})}};let i={onDocumentReady:r,env:ef,doExit:n};globalThis.joliboxJSCore=qt({},i)}tf=pl;if(!tf&&MA())throw new wA("No joliboxJScore is found, native bridge not found.");XA=qt({},tf),rf=YA(XA),{invokeHandler:Jp}=rf,{applyNative:me,invokeNative:F,onNative:Ge,offNative:_4,subscribeHandler:ZA,publish:nf,emitNative:fl,subscribe:b4,unsubscribe:w4}=rf;globalThis.joliboxJSBridge={callHandler:Jp,invokeHandler:Jp,subscribeHandler:ZA}});function a1(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function qn(e){return typeof e=="string"}function br(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function uf(e){return typeof e=="object"&&Array.isArray(e)}function df(e){return typeof e=="number"&&!isNaN(e)}function Fn(e){return e===!0||e===!1}function pf(e){return typeof e=="undefined"}function wl(e){return pf(e)||e===null}function s1(e){return typeof e=="function"}function ff(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function hf(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:sf(l)&&sf(s)?i[a]=n(n1({},s),l):Array.isArray(l)&&Array.isArray(s)?i[a]=[...s,...l]:i[a]=l}return i}return n(e,t)}function sf(e){return e&&typeof e=="object"&&e.constructor===Object}function mf(e,t){if(Array.isArray(e))return e.concat(t)}function Mn(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 c1(e,t){return(...r)=>t(e,...r)}function vo(e){return t=>c1(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(i){e(new Ur(`${i}`))}})}function Nn(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function Al(){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 y1(e){return new Promise(t=>Ef(e)(t))}function Ef(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function _1(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new Ln(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function w1(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)I1(e[n],t[n])}function I1(e,t){if(qn(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(s1(t)){try{if(e instanceof t)return}catch(r){}if(!wl(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 S1(){return typeof globalThis!="undefined"?globalThis[xf]:void 0}function E1(e){typeof globalThis!="undefined"&&(globalThis[xf]=e)}function ae(){let e=S1();if(e)return e;let t=new ho,r=new _l,n={registerCommand(i,o,a){t.registerCommand({id:i,handler:o,metadata:a})},executeCommand(i,...o){return r.executeCommand(i,...o)},excuteCommandSync(i,...o){return r.executeCommandThowErr(i,...o)}};return E1(n),n}var bl,e1,of,t1,r1,af,n1,i1,cf,o1,bt,l1,Il,mo,Sl,vf,Ur,gf,yf,_f,bf,jn,El,wt,ml,u1,xl,lf,d1,ve,kl,p1,go,Un,f1,h1,wf,If,Sf,vl,re,m1,v1,Dn,Ln,It,yl,g1,hl,b1,Ee,ho,_l,xf,D=T(()=>{"use strict";bl=Object.defineProperty,e1=Object.getOwnPropertyDescriptor,of=Object.getOwnPropertySymbols,t1=Object.prototype.hasOwnProperty,r1=Object.prototype.propertyIsEnumerable,af=(e,t,r)=>t in e?bl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,n1=(e,t)=>{for(var r in t||(t={}))t1.call(t,r)&&af(e,r,t[r]);if(of)for(var r of of(t))r1.call(t,r)&&af(e,r,t[r]);return e},i1=(e,t)=>{for(var r in t)bl(e,r,{get:t[r],enumerable:!0})},cf=(e,t,r,n)=>{for(var i=n>1?void 0:n?e1(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&&bl(t,r,i),i},o1=(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}bt=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))}})}};l1=(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))(l1||{}),Il=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}},mo=class extends Il{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},Sl=class extends Il{constructor(){super(...arguments),this.kind="USER_ERROR"}},vf=class extends Sl{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},Ur=class extends Sl{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))}},gf=class extends Sl{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))}},yf=class extends mo{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},_f=class extends mo{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))}},bf=class extends mo{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},jn=class extends Il{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}}},El=class extends mo{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};wt={log:Nn("log"),warn:Nn("warn"),info:Nn("info"),error:Nn("error"),debug:Nn("debug")};Object.assign(globalThis,{logger:wt});ml=Symbol.for("Jolibox.canIUseMap"),u1={};globalThis[ml]||(globalThis[ml]=u1);xl={get config(){return globalThis[ml]}},lf=Symbol.for("Jolibox.canIUseMap.native"),d1={};globalThis[lf]||(globalThis[lf]=d1);ve=(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))(ve||{}),kl=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(kl||{}),p1=(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))(p1||{}),go=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});Al();Un={isiOS: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:navigator.userAgent.includes("Android"),isMac:navigator.userAgent.includes("Mac"),isFacebook:navigator.userAgent.includes("FB_IAB"),isPC:!navigator.userAgent.includes("iPhone")&&!navigator.userAgent.includes("Android")},f1="device_id",h1="advertising_id",wf=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,go()),window.__joliboxLocalStorage__.getItem(e)),If=()=>new URLSearchParams(window.location.search).get("deviceId")||wf(f1),Sf=()=>new URLSearchParams(window.location.search).get("advertisingId")||wf(h1),vl=class gl{constructor(t){this.element=t,this.next=gl.Undefined,this.prev=gl.Undefined}};vl.Undefined=new vl(void 0);re=vl,m1=class{constructor(){this._first=re.Undefined,this._last=re.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===re.Undefined}clear(){let e=this._first;for(;e!==re.Undefined;){let t=e.next;e.prev=re.Undefined,e.next=re.Undefined,e=t}this._first=re.Undefined,this._last=re.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new re(e);if(this._first===re.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!==re.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==re.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==re.Undefined&&e.next!==re.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===re.Undefined&&e.next===re.Undefined?(this._first=re.Undefined,this._last=re.Undefined):e.next===re.Undefined?(this._last=this._last.prev,this._last.next=re.Undefined):e.prev===re.Undefined&&(this._first=this._first.next,this._first.prev=re.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==re.Undefined;)yield e.element,e=e.next}},v1=0,Dn=class{constructor(e){this.value=e,this.id=v1++}},Ln=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 Dn&&(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 Dn(t);return this._listeners?this._listeners instanceof Dn?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 Dn)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 Dn?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},It=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 Ln,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 m1,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)}},yl={};i1(yl,{None:()=>g1,filter:()=>_1,once:()=>Ef,toPromise:()=>y1});g1=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});hl=Symbol.for("Jolibox.hostEmitter"),b1=()=>{let e=new It;return globalThis[hl]||(globalThis[hl]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[hl]},Ee=b1();ho=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Ln,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 w1(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}};ho=cf([ff],ho);_l=class{constructor(){this._onWillExecuteCommand=new Ln,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Ln,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new ho,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=a1(3e4)),this._starActivation}executeCommand(e,...t){return o1(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),yl.toPromise(yl.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}}};_l=cf([ff],_l);xf=Symbol.for("Jolibox.commands")});function Ce(e,t={}){Tl.emit("ERROR_REPORT",{error:e,options:t})}var Tl,wr,ft=T(()=>{"use strict";D();D();Tl=new It,wr=new It;Ce.debounce=Mn(Ce,50,{leading:!0})});var Cl,x1,kf,Af,Tf=T(()=>{"use strict";D();ft();Cl=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{}}},x1=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},kf=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:Cl(o),payloadJson:Cl(a),signature:Cl(s)}}else throw"joli_source is missing"}catch(r){return Ce(new yf(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},Af=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],i=x1(e),o=r[2];return`${n}.${i}.${o}`}return t}});var k1,Pl,Cf=T(()=>{"use strict";D();k1="1.1.38",Pl=()=>k1});function Pf(e,t){return(document==null?void 0:document.head.querySelector(`meta[name="${e}"][content="${t}"]`))!==null}var A1,Rf,Rl,Of,ue,T1,E,Q=T(()=>{"use strict";D();Tf();Cf();D();A1={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:If(),adId:Sf(),pixelRatio:window.devicePixelRatio||1,platform:Un.isAndroid?"android":Un.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:Pl()},schema:window.location.href,platform:Un.isAndroid?"android":Un.isiOS?"ios":"h5"},Rl=(Rf=globalThis.joliboxJSCore)==null?void 0:Rf.env,ue=Object.assign({},(Of=Rl==null?void 0:Rl())!=null?Of:A1);T1=()=>{var f,m,g,y,v,_,w,A,R,P,S;let{payloadJson:e,headerJson:t,signature:r}=ue.schema.length?kf(ue.schema):{},n=`${ue.deviceInfo.did}-${new Date().getTime()}`,o=new URL(ue.schema.length?ue.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=(_=(v=(y=ue.clientSessionId)!=null?y:e==null?void 0:e.sessionId)!=null?v:o.get("sessionId"))!=null?_:n,l=!!((A=(w=e==null?void 0:e.testAdsMode)!=null?w:e==null?void 0:e.__testAdsMode)!=null?A:o.get("testAdsMode")==="true"),c=(S=(P=(R=e==null?void 0:e.joliboxEnv)!=null?R:e==null?void 0:e.__joliboxEnv)!=null?P: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 testMode(){return d},get testAdsMode(){return l},get joliboxEnv(){return c},get joliSource(){var k;return(k=o.get("joliSource"))!=null?k:null},get mpId(){var k;return(k=a!=null?a:e==null?void 0:e.id)!=null?k:""},get mpVersion(){var k;return(k=t==null?void 0:t.ver)!=null?k:Pl()},get mpType(){var k,H;return(H=(k=t==null?void 0:t.__mpType)!=null?k:e==null?void 0:e.__mpType)!=null?H:"game"},get platform(){var k;return((k=ue.platform)!=null?k:ue.deviceInfo.platform).toLowerCase()},get deviceInfo(){return ue.deviceInfo},get sdkInfo(){return ue.sdkInfo},get hostInfo(){return ue.hostInfo},get hostUserInfo(){return ue.hostUserInfo},get sessionId(){var k,H;return(H=(k=ue.clientSessionId)!=null?k:s)!=null?H:n},get channel(){return u},get webviewId(){var k;return(k=ue.webviewId)!=null?k:-1},get shouldInterupt(){return p},get from(){return e==null?void 0:e.__from},get baseApiHost(){return d?"https://stg-api.jolibox.com":"https://api.jolibox.com"},get adId(){var k;return(k=ue.deviceInfo.adId)!=null?k:ue.deviceInfo.did},get language(){return ue.deviceInfo.lang},get sdkEnvironment(){return Pf("dlightek","jolibox")?"dlightek":o.get("huaweiQuick")==="true"?"huaweiQuick":Pf("gamedistribution","jolibox")?"gamedistribution":"jolibox"},get viewport(){var He,yt,_t;let k=(He=ue.deviceInfo.pixelRatio)!=null?He:1,H=(yt=ue.deviceInfo.statusBarHeight)!=null?yt:e==null?void 0:e.__androidStatusBarHeight,$e=(_t=ue.deviceInfo.navigationBarHeight)!=null?_t:e==null?void 0:e.__androidNavigationBarHeight;return{statusBarHeight:H!==void 0?H/k:20,navigationBarHeight:$e!==void 0?$e/k:10}},onEnvConfigChanged:k=>{hf(ue,k,mf)},encodeJoliSourceQuery:k=>{var H,$e;return t&&r?Af(C(C({},e),k),(H=o.get("joliSource"))!=null?H:""):($e=o.get("joliSource"))!=null?$e:""},setDoExitDirectly:()=>{p=!1}}},E=T1()});var Ol,Df,C1,P1,Nf,R1,Lf=T(()=>{"use strict";D();ft();Q();D();Ol=!1,Df=(e,t)=>e==null?!1:t in e,C1=e=>Df(e,"kind"),P1=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},Nf=(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:P1(e.name)},i=q(C({},n),{env:t.environment,isFromUser:r});r?wr.emit("GLOBAL_USER_ERROR",e,i):wr.emit("GLOBAL_ERROR",e,i)},R1=e=>Df(e,"kind")&&e.kind==="USER_ERROR";Tl.on("ERROR_REPORT",({error:e,options:t})=>{if(Ol)return;Ol=!0;let r=C1(e)&&e.raw?e.raw:e;try{let n=R1(e);Nf(e,t,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new El(`${i}, origin error: ${r.message}`);wt.error(o),Nf(new El(o.message),{environment:t.environment},!1)}finally{Ol=!1}})});var nr,Nl,Br=T(()=>{"use strict";ft();D();ft();nr=(e,t)=>{var r,n;return new jn((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},Nl=e=>new vf(e)});var qf=T(()=>{"use strict";Lf();Br();D();Se();wr.on("GLOBAL_ERROR",(e,t)=>{var n;let r={message:e.message,stack:(n=e.stack)!=null?n:"",errorType:e.name,source:0};F("trackAsync",{event:"reportJsError",data:r})});wr.on("GLOBAL_USER_ERROR",(e,t)=>{wt.log("UserError",e,t)})});var Dl=T(()=>{"use strict"});function Ff(e,t){let r=(n,i,o)=>{let c=i!=null?i:{},{eventType:a}=c,s=st(c,["eventType"]),l=q(C({tag:n,eventType:a!=null?a:ve.Other},t),{extra:C({},s)});n=="globalJsError"?Ce(new bf(JSON.stringify(l))):e("systemLog",l,o)};return r.debounce=Mn(r,500,{leading:!0}),r}function Mf(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=Mn(t,500,{leading:!0}),t}var jf=T(()=>{"use strict";D();D();ft()});function Uf(e,t){let r=Ff(e,t),n=Mf(r);return{track:r,trackPerformance:n}}var Bf=T(()=>{"use strict";jf()});var Jf=T(()=>{"use strict";Q();D();D()});var $f=T(()=>{"use strict";Bf();Dl();Jf()});var yo,Hf=T(()=>{"use strict";yo=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 _o(e,t,r){var l,c,d;let n=new Map,i=(l=r==null?void 0:r.baseUrl)!=null?l:"https://api.jolibox.com",o=(c=r==null?void 0:r.type)!=null?c:"public",a=(d=r==null?void 0:r.defaultHeaders)!=null?d:{};return Ge("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=st(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=st(m,["requestTaskId","state"]);p.reject(v),n.delete(g)}else wt.warn("onRequestTaskStateChange unknown event",u)}),Ee.on("onLoginComplete",({isLogin:u,token:p})=>{u&&p&&(a["X-JOLI-TOKEN"]=p)}),(f,...m)=>I(this,[f,...m],function*(u,p={}){let g=Date.now(),y=O1(u,q(C({},p),{baseUrl:i})),{method:v="GET",responseType:_="text",dataType:w="json",timeout:A,enableCache:R=!1,appendHostCookie:P=!0}=p,S=Object.assign({"content-type":"application/json"},a,p.header),k={url:y,method:v,header:S,enableCache:R,responseType:_,appendHostCookie:P};if(v=="POST"||v=="PUT"){let _t=D1(p.data,S["content-type"]);k.data=_t}A&&Object.assign(k,{timeout:A});let{data:{requestTaskId:H}}=F(e,k);if(typeof H!="string")throw nr({code:-1,msg:"requestTaskId is not a string"});let{resolve:$e,reject:He,promise:yt}=new bt;n.set(H,{resolve:$e,reject:He});try{let _t=yield yt,{data:_r}=_t;return w==="json"&&typeof _r=="string"&&(_r=N1(_r)),{url:y,timeout:A,method:v,response:q(C({},_t),{data:_r})}}catch(_t){let _r=_t;if(br(_r)){let{errMsg:Ws,prefetchDetail:f4,isPrefetch:h4,errNo:zk}=_r;qn(Ws)&&Ce(nr({code:-1,msg:Ws},{errNo:zk,errMsg:Ws}))}throw _t}})}function N1(e){try{return JSON.parse(e.trim())}catch(t){return e}}function D1(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 O1,Ll=T(()=>{"use strict";D();Se();ft();Br();O1=(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 ql,Vf,ne,St=T(()=>{"use strict";Ll();Q();ql={};(Vf=E.hostUserInfo)!=null&&Vf.token&&(ql["x-joli-token"]=E.hostUserInfo.token);E.joliSource&&(ql["x-joli-source"]=E.joliSource);ne=_o("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:E.testMode?"https://stg-api.jolibox.com":"https://api.jolibox.com",defaultHeaders:ql})});var bo,zf=T(()=>{"use strict";Q();Hf();St();Se();bo=class extends yo{constructor(t,r,n){super(r,n),this.gameId=E.mpId,this.sessionId=E.sessionId,this.track=t,this.taskUrl=E.testMode?"https://stg-api.jolibox.com/api/base/app-event":"https://api.jolibox.com/api/base/app-event"}reporter(t){return I(this,null,function*(){let{event:r,params:n}=t,i={eventType:r,gameInfo:C({gameId:this.gameId,sessionId:this.sessionId},n)};yield E.platform==="android"?ne("/api/base/app-event",{method:"POST",data:i}):me("trackAppEventAsync",{url:this.taskUrl,body:JSON.stringify(i)})})}reportToNative(t){return I(this,null,function*(){let{event:r,params:n}=t;yield me("userTrackAsync",{event:r,params:C({},n),gameId:this.gameId})})}tracker(t,r=null){this.track(t,r)}}});var Yf={};Dp(Yf,{nativeTaskEmitter:()=>Bn,taskTracker:()=>Ft,track:()=>Y,trackPerformance:()=>Kf});var L1,Gf,Wf,Y,Kf,Qf,Bn,Ft,Mt=T(()=>{"use strict";qf();D();Dl();$f();Q();zf();Se();L1=(e,t,r)=>{var s,l,c,d,u,p;let n=t,i=br(n.extra)?n.extra:qn(n.extra)?JSON.parse(n.extra):{},o=q(C({},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:ve.Other;F("trackAsync",{event:(p=t.tag)!=null?p:e,data:o,webviewId:r,eventType:a})},{track:Y,trackPerformance:Kf}=Uf(L1,{type:kl.AppSDK,platform:"native",jssdk_version:(Wf=(Gf=E.sdkInfo)==null?void 0:Gf.jssdkVersion)!=null?Wf:"1.0.0",mp_id:E.mpId,mp_version:E.mpVersion}),Qf=ae();Qf.registerCommand("ReportSDK.traceSystemTimeline",({event:e,duration:t,extra:r})=>{Kf(e,t,r)});Qf.registerCommand("ReportSDK.traceSystem",({event:e,info:t})=>{Y(e,t)});Bn=new It,Ft=new bo(Y,Bn)});function Xf(){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 Uk=Object.create;var no=Object.defineProperty,Bk=Object.defineProperties,Jk=
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 I(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 Gf=T(()=>{"use strict";Q()});var Wf=T(()=>{"use strict"});var Kf=T(()=>{"use strict";D();Sl()});var Qf=T(()=>{"use strict";Q()});var yo,Dl=T(()=>{"use strict";Wf();Kf();Q();Qf();D();yo=new bt});function Ft(e,t){for(var r in t)e[r]=t[r];return e}function Ul(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Le(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?Io.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 bo(e,a,n,i,null)}function bo(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?++eh:i,__i:-1,__u:0};return i==null&&O.vnode!=null&&O.vnode(o),o}function Ze(e){return e.children}function Ye(e,t){this.props=e,this.context=t}function jr(e,t){if(t==null)return e.__?jr(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"?jr(e):null}function ah(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 ah(e)}}function Fl(e){(!e.__d&&(e.__d=!0)&&br.push(e)&&!wo.__r++||Yf!==O.debounceRendering)&&((Yf=O.debounceRendering)||th)(wo)}function wo(){for(var e,t,r,n,i,o,a,s=1;br.length;)br.length>s&&br.sort(rh),e=br.shift(),s=br.length,e.__d&&(r=void 0,i=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=Ft({},n)).__v=n.__v+1,O.vnode&&O.vnode(r),Bl(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?jr(n):i,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,ch(o,r,a),r.__e!=i&&ah(r)));wo.__r=0}function sh(e,t,r,n,i,o,a,s,l,c,d){var u,p,f,m,g,y,v=n&&n.__k||oh,_=t.length;for(l=P1(r,t,v,l,_),u=0;u<_;u++)(f=r.__k[u])!=null&&(p=f.__i===-1?jn:v[f.__i]||jn,f.__i=u,y=Bl(e,f,p,i,o,a,s,l,c,d),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&Jl(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=lh(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 P1(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?bo(null,a,null,null,null):Un(a)?bo(Ze,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?bo(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=R1(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=jr(s)),dh(s,s));return n}function lh(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=lh(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=jr(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Bn(e,t){return t=t||[],e==null||typeof e=="boolean"||(Un(e)?e.some(function(r){Bn(r,t)}):t.push(e)),t}function R1(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 Zf(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||C1.test(t)?r:r+"px"}function _o(e,t,r,n,i){var o;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||Zf(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||Zf(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(nh,"$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=jl,e.addEventListener(t,o?Ll:ql,o)):e.removeEventListener(t,o?Ll:ql,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 Xf(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=jl++;else if(t.u<r.t)return;return r(O.event?O.event(t):t)}}}function Bl(e,t,r,n,i,o,a,s,l,c){var d,u,p,f,m,g,y,v,_,w,A,R,P,E,k,H,Je,$e=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(l=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=O.__b)&&d(t);e:if(typeof $e=="function")try{if(v=t.props,_="prototype"in $e&&$e.prototype.render,w=(d=$e.contextType)&&n[d.__c],A=d?w?w.props.value:d.__:n,r.__c?y=(u=t.__c=r.__c).__=u.__E:(_?t.__c=u=new $e(v,A):(t.__c=u=new Ye(v,A),u.constructor=$e,u.render=N1),w&&w.sub(u),u.props=v,u.state||(u.state={}),u.context=A,u.__n=n,p=u.__d=!0,u.__h=[],u._sb=[]),_&&u.__s==null&&(u.__s=u.state),_&&$e.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Ft({},u.__s)),Ft(u.__s,$e.getDerivedStateFromProps(v,u.__s))),f=u.props,m=u.state,u.__v=t,p)_&&$e.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),_&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(_&&$e.getDerivedStateFromProps==null&&v!==f&&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(vt){vt&&(vt.__=t)}),R=0;R<u._sb.length;R++)u.__h.push(u._sb[R]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,A),_&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,m,g)})}if(u.context=A,u.props=v,u.__P=e,u.__e=!1,P=O.__r,E=0,_){for(u.state=u.__s,u.__d=!1,P&&P(t),d=u.render(u.props,u.state,u.context),k=0;k<u._sb.length;k++)u.__h.push(u._sb[k]);u._sb=[]}else do u.__d=!1,P&&P(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++E<25);u.state=u.__s,u.getChildContext!=null&&(n=Ft(Ft({},n),u.getChildContext())),_&&!p&&u.getSnapshotBeforeUpdate!=null&&(g=u.getSnapshotBeforeUpdate(f,m)),H=d,d!=null&&d.type===Ze&&d.key==null&&(H=uh(d.props.children)),s=sh(e,Un(H)?H:[H],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(vt){if(t.__v=null,l||o!=null)if(vt.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(Je=o.length;Je--;)Ul(o[Je]);else t.__e=r.__e,t.__k=r.__k;O.__e(vt,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=O1(r.__e,t,r,n,i,o,a,l,c);return(d=O.diffed)&&d(t),128&t.__u?void 0:s}function ch(e,t,r){for(var n=0;n<r.length;n++)Jl(r[n],r[++n],r[++n]);O.__c&&O.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){O.__e(o,i.__v)}})}function uh(e){return typeof e!="object"||e==null?e:Un(e)?e.map(uh):Ft({},e)}function O1(e,t,r,n,i,o,a,s,l){var c,d,u,p,f,m,g,y=r.props,v=t.props,_=t.type;if(_=="svg"?i="http://www.w3.org/2000/svg":_=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(c=0;c<o.length;c++)if((f=o[c])&&"setAttribute"in f==!!_&&(_?f.localName==_:f.nodeType==3)){e=f,o[c]=null;break}}if(e==null){if(_==null)return document.createTextNode(v);e=document.createElementNS(i,_,v.is&&v),s&&(O.__m&&O.__m(t,o),s=!1),o=null}if(_===null)y===v||s&&e.data===v||(e.data=v);else{if(o=o&&Io.call(e.childNodes),y=r.props||jn,!s&&o!=null)for(y={},c=0;c<e.attributes.length;c++)y[(f=e.attributes[c]).name]=f.value;for(c in y)if(f=y[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=f;else if(!(c in v)){if(c=="value"&&"defaultValue"in v||c=="checked"&&"defaultChecked"in v)continue;_o(e,c,null,f,i)}}for(c in v)f=v[c],c=="children"?p=f:c=="dangerouslySetInnerHTML"?d=f:c=="value"?m=f:c=="checked"?g=f:s&&typeof f!="function"||y[c]===f||_o(e,c,f,y[c],i);if(d)s||u&&(d.__html===u.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),sh(t.type==="template"?e.content:e,Un(p)?p:[p],t,r,n,_=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&jr(r,0),s,l),o!=null)for(c=o.length;c--;)Ul(o[c]);s||(c="value",_=="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[c]||_=="progress"&&!m||_=="option"&&m!==y[c])&&_o(e,c,m,y[c],i),c="checked",g!==void 0&&g!==e[c]&&_o(e,c,g,y[c],i))}return e}function Jl(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){O.__e(i,r)}}function dh(e,t,r){var n,i;if(O.unmount&&O.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Jl(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){O.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&dh(n[i],t,r||typeof e.type!="function");r||Ul(e.__e),e.__c=e.__=e.__e=void 0}function N1(e,t,r){return this.constructor(e,r)}function rr(e,t,r){var n,i,o,a;t==document&&(t=document.documentElement),O.__&&O.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],Bl(t,e=(!n&&r||t).__k=Le(Ze,null,[e]),i||jn,jn,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?Io.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),ch(o,e,a)}function wr(e){function t(r){var n,i;return this.getChildContext||(n=new Set,(i={})[t.__c]=this,this.getChildContext=function(){return i},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(o){this.props.value!==o.value&&n.forEach(function(a){a.__e=!0,Fl(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"+ih++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var Io,O,eh,Ml,br,Yf,th,rh,nh,jl,ql,Ll,ih,jn,oh,C1,Un,Ur=T(()=>{jn={},oh=[],C1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Un=Array.isArray;Io=oh.slice,O={__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}},eh=0,Ml=function(e){return e!=null&&e.constructor==null},Ye.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Ft({},this.state),typeof e=="function"&&(e=e(Ft({},r),this.props)),e&&Ft(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),Fl(this))},Ye.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Fl(this))},Ye.prototype.render=Ze,br=[],th=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,rh=function(e,t){return e.__v.__b-t.__v.__b},wo.__r=0,nh=/(PointerCapture)$|Capture$/i,jl=0,ql=Xf(!1),Ll=Xf(!0),ih=0});var se=h((q9,ph)=>{"use strict";ph.exports=function(e){try{return!!e()}catch(t){return!0}}});var Br=h((L9,fh)=>{"use strict";var D1=se();fh.exports=!D1(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var ge=h((F9,vh)=>{"use strict";var hh=Br(),mh=Function.prototype,$l=mh.call,q1=hh&&mh.bind.bind($l,$l);vh.exports=hh?q1:function(e){return function(){return $l.apply(e,arguments)}}});var He=h((M9,gh)=>{"use strict";var L1=ge();gh.exports=L1({}.isPrototypeOf)});var le=h((Hl,yh)=>{"use strict";var Jn=function(e){return e&&e.Math===Math&&e};yh.exports=Jn(typeof globalThis=="object"&&globalThis)||Jn(typeof window=="object"&&window)||Jn(typeof self=="object"&&self)||Jn(typeof global=="object"&&global)||Jn(typeof Hl=="object"&&Hl)||function(){return this}()||Function("return this")()});var Vl=h((j9,Ih)=>{"use strict";var F1=Br(),wh=Function.prototype,_h=wh.apply,bh=wh.call;Ih.exports=typeof Reflect=="object"&&Reflect.apply||(F1?bh.bind(_h):function(){return bh.apply(_h,arguments)})});var Mt=h((U9,Sh)=>{"use strict";var Eh=ge(),M1=Eh({}.toString),j1=Eh("".slice);Sh.exports=function(e){return j1(M1(e),8,-1)}});var $n=h((B9,xh)=>{"use strict";var U1=Mt(),B1=ge();xh.exports=function(e){if(U1(e)==="Function")return B1(e)}});var Pe=h((J9,kh)=>{"use strict";var zl=typeof document=="object"&&document.all;kh.exports=typeof zl=="undefined"&&zl!==void 0?function(e){return typeof e=="function"||e===zl}:function(e){return typeof e=="function"}});var Ve=h(($9,Ah)=>{"use strict";var J1=se();Ah.exports=!J1(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var pt=h((H9,Th)=>{"use strict";var $1=Br(),Eo=Function.prototype.call;Th.exports=$1?Eo.bind(Eo):function(){return Eo.apply(Eo,arguments)}});var Gl=h(Rh=>{"use strict";var Ch={}.propertyIsEnumerable,Ph=Object.getOwnPropertyDescriptor,H1=Ph&&!Ch.call({1:2},1);Rh.f=H1?function(t){var r=Ph(this,t);return!!r&&r.enumerable}:Ch});var Hn=h((z9,Oh)=>{"use strict";Oh.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var So=h((G9,Nh)=>{"use strict";var V1=ge(),z1=se(),G1=Mt(),Wl=Object,W1=V1("".split);Nh.exports=z1(function(){return!Wl("z").propertyIsEnumerable(0)})?function(e){return G1(e)==="String"?W1(e,""):Wl(e)}:Wl});var Ir=h((W9,Dh)=>{"use strict";Dh.exports=function(e){return e==null}});var Er=h((K9,qh)=>{"use strict";var K1=Ir(),Q1=TypeError;qh.exports=function(e){if(K1(e))throw new Q1("Can't call method on "+e);return e}});var nr=h((Q9,Lh)=>{"use strict";var Y1=So(),Z1=Er();Lh.exports=function(e){return Y1(Z1(e))}});var xe=h((Y9,Fh)=>{"use strict";var X1=Pe();Fh.exports=function(e){return typeof e=="object"?e!==null:X1(e)}});var It=h((Z9,Mh)=>{"use strict";Mh.exports={}});var Jr=h((X9,Uh)=>{"use strict";var Kl=It(),Ql=le(),eT=Pe(),jh=function(e){return eT(e)?e:void 0};Uh.exports=function(e,t){return arguments.length<2?jh(Kl[e])||jh(Ql[e]):Kl[e]&&Kl[e][t]||Ql[e]&&Ql[e][t]}});var xo=h((eH,$h)=>{"use strict";var tT=le(),Bh=tT.navigator,Jh=Bh&&Bh.userAgent;$h.exports=Jh?String(Jh):""});var Ao=h((tH,Kh)=>{"use strict";var Wh=le(),Yl=xo(),Hh=Wh.process,Vh=Wh.Deno,zh=Hh&&Hh.versions||Vh&&Vh.version,Gh=zh&&zh.v8,ft,ko;Gh&&(ft=Gh.split("."),ko=ft[0]>0&&ft[0]<4?1:+(ft[0]+ft[1]));!ko&&Yl&&(ft=Yl.match(/Edge\/(\d+)/),(!ft||ft[1]>=74)&&(ft=Yl.match(/Chrome\/(\d+)/),ft&&(ko=+ft[1])));Kh.exports=ko});var Zl=h((rH,Yh)=>{"use strict";var Qh=Ao(),rT=se(),nT=le(),iT=nT.String;Yh.exports=!!Object.getOwnPropertySymbols&&!rT(function(){var e=Symbol("symbol detection");return!iT(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Qh&&Qh<41})});var Xl=h((nH,Zh)=>{"use strict";var oT=Zl();Zh.exports=oT&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var ec=h((iH,Xh)=>{"use strict";var aT=Jr(),sT=Pe(),lT=He(),cT=Xl(),uT=Object;Xh.exports=cT?function(e){return typeof e=="symbol"}:function(e){var t=aT("Symbol");return sT(t)&&lT(t.prototype,uT(e))}});var Vn=h((oH,em)=>{"use strict";var dT=String;em.exports=function(e){try{return dT(e)}catch(t){return"Object"}}});var Sr=h((aH,tm)=>{"use strict";var pT=Pe(),fT=Vn(),hT=TypeError;tm.exports=function(e){if(pT(e))return e;throw new hT(fT(e)+" is not a function")}});var To=h((sH,rm)=>{"use strict";var mT=Sr(),vT=Ir();rm.exports=function(e,t){var r=e[t];return vT(r)?void 0:mT(r)}});var im=h((lH,nm)=>{"use strict";var tc=pt(),rc=Pe(),nc=xe(),gT=TypeError;nm.exports=function(e,t){var r,n;if(t==="string"&&rc(r=e.toString)&&!nc(n=tc(r,e))||rc(r=e.valueOf)&&!nc(n=tc(r,e))||t!=="string"&&rc(r=e.toString)&&!nc(n=tc(r,e)))return n;throw new gT("Can't convert object to primitive value")}});var $r=h((cH,om)=>{"use strict";om.exports=!0});var lm=h((uH,sm)=>{"use strict";var am=le(),yT=Object.defineProperty;sm.exports=function(e,t){try{yT(am,e,{value:t,configurable:!0,writable:!0})}catch(r){am[e]=t}return t}});var zn=h((dH,dm)=>{"use strict";var _T=$r(),bT=le(),wT=lm(),cm="__core-js_shared__",um=dm.exports=bT[cm]||wT(cm,{});(um.versions||(um.versions=[])).push({version:"3.41.0",mode:_T?"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 ic=h((pH,fm)=>{"use strict";var pm=zn();fm.exports=function(e,t){return pm[e]||(pm[e]=t||{})}});var Hr=h((fH,hm)=>{"use strict";var IT=Er(),ET=Object;hm.exports=function(e){return ET(IT(e))}});var Xe=h((hH,mm)=>{"use strict";var ST=ge(),xT=Hr(),kT=ST({}.hasOwnProperty);mm.exports=Object.hasOwn||function(t,r){return kT(xT(t),r)}});var Co=h((mH,vm)=>{"use strict";var AT=ge(),TT=0,CT=Math.random(),PT=AT(1 .toString);vm.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+PT(++TT+CT,36)}});var Fe=h((vH,ym)=>{"use strict";var RT=le(),OT=ic(),gm=Xe(),NT=Co(),DT=Zl(),qT=Xl(),Vr=RT.Symbol,oc=OT("wks"),LT=qT?Vr.for||Vr:Vr&&Vr.withoutSetter||NT;ym.exports=function(e){return gm(oc,e)||(oc[e]=DT&&gm(Vr,e)?Vr[e]:LT("Symbol."+e)),oc[e]}});var Im=h((gH,wm)=>{"use strict";var FT=pt(),_m=xe(),bm=ec(),MT=To(),jT=im(),UT=Fe(),BT=TypeError,JT=UT("toPrimitive");wm.exports=function(e,t){if(!_m(e)||bm(e))return e;var r=MT(e,JT),n;if(r){if(t===void 0&&(t="default"),n=FT(r,e,t),!_m(n)||bm(n))return n;throw new BT("Can't convert object to primitive value")}return t===void 0&&(t="number"),jT(e,t)}});var ac=h((yH,Em)=>{"use strict";var $T=Im(),HT=ec();Em.exports=function(e){var t=$T(e,"string");return HT(t)?t:t+""}});var lc=h((_H,xm)=>{"use strict";var VT=le(),Sm=xe(),sc=VT.document,zT=Sm(sc)&&Sm(sc.createElement);xm.exports=function(e){return zT?sc.createElement(e):{}}});var cc=h((bH,km)=>{"use strict";var GT=Ve(),WT=se(),KT=lc();km.exports=!GT&&!WT(function(){return Object.defineProperty(KT("div"),"a",{get:function(){return 7}}).a!==7})});var uc=h(Tm=>{"use strict";var QT=Ve(),YT=pt(),ZT=Gl(),XT=Hn(),eC=nr(),tC=ac(),rC=Xe(),nC=cc(),Am=Object.getOwnPropertyDescriptor;Tm.f=QT?Am:function(t,r){if(t=eC(t),r=tC(r),nC)try{return Am(t,r)}catch(n){}if(rC(t,r))return XT(!YT(ZT.f,t,r),t[r])}});var Pm=h((IH,Cm)=>{"use strict";var iC=se(),oC=Pe(),aC=/#|\.prototype\./,Gn=function(e,t){var r=lC[sC(e)];return r===uC?!0:r===cC?!1:oC(t)?iC(t):!!t},sC=Gn.normalize=function(e){return String(e).replace(aC,".").toLowerCase()},lC=Gn.data={},cC=Gn.NATIVE="N",uC=Gn.POLYFILL="P";Cm.exports=Gn});var Wn=h((EH,Om)=>{"use strict";var Rm=$n(),dC=Sr(),pC=Br(),fC=Rm(Rm.bind);Om.exports=function(e,t){return dC(e),t===void 0?e:pC?fC(e,t):function(){return e.apply(t,arguments)}}});var dc=h((SH,Nm)=>{"use strict";var hC=Ve(),mC=se();Nm.exports=hC&&mC(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var jt=h((xH,Dm)=>{"use strict";var vC=xe(),gC=String,yC=TypeError;Dm.exports=function(e){if(vC(e))return e;throw new yC(gC(e)+" is not an object")}});var Ut=h(Lm=>{"use strict";var _C=Ve(),bC=cc(),wC=dc(),Po=jt(),qm=ac(),IC=TypeError,pc=Object.defineProperty,EC=Object.getOwnPropertyDescriptor,fc="enumerable",hc="configurable",mc="writable";Lm.f=_C?wC?function(t,r,n){if(Po(t),r=qm(r),Po(n),typeof t=="function"&&r==="prototype"&&"value"in n&&mc in n&&!n[mc]){var i=EC(t,r);i&&i[mc]&&(t[r]=n.value,n={configurable:hc in n?n[hc]:i[hc],enumerable:fc in n?n[fc]:i[fc],writable:!1})}return pc(t,r,n)}:pc:function(t,r,n){if(Po(t),r=qm(r),Po(n),bC)try{return pc(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new IC("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var xr=h((AH,Fm)=>{"use strict";var SC=Ve(),xC=Ut(),kC=Hn();Fm.exports=SC?function(e,t,r){return xC.f(e,t,kC(1,r))}:function(e,t,r){return e[t]=r,e}});var G=h((TH,jm)=>{"use strict";var Kn=le(),AC=Vl(),TC=$n(),CC=Pe(),PC=uc().f,RC=Pm(),zr=It(),OC=Wn(),Gr=xr(),Mm=Xe();zn();var NC=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 AC(e,this,arguments)};return t.prototype=e.prototype,t};jm.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o=e.proto,a=n?Kn:i?Kn[r]:Kn[r]&&Kn[r].prototype,s=n?zr:zr[r]||Gr(zr,r,{})[r],l=s.prototype,c,d,u,p,f,m,g,y,v;for(p in t)c=RC(n?p:r+(i?".":"#")+p,e.forced),d=!c&&a&&Mm(a,p),m=s[p],d&&(e.dontCallGetSet?(v=PC(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=OC(f,Kn):e.wrap&&d?y=NC(f):o&&CC(f)?y=TC(f):y=f,(e.sham||f&&f.sham||m&&m.sham)&&Gr(y,"sham",!0),Gr(s,p,y),o&&(u=r+"Prototype",Mm(zr,u)||Gr(zr,u,{}),Gr(zr[u],p,f),e.real&&l&&(c||!l[p])&&Gr(l,p,f)))}});var Bm=h((CH,Um)=>{"use strict";var DC=Math.ceil,qC=Math.floor;Um.exports=Math.trunc||function(t){var r=+t;return(r>0?qC:DC)(r)}});var Qn=h((PH,Jm)=>{"use strict";var LC=Bm();Jm.exports=function(e){var t=+e;return t!==t||t===0?0:LC(t)}});var vc=h((RH,$m)=>{"use strict";var FC=Qn(),MC=Math.min;$m.exports=function(e){var t=FC(e);return t>0?MC(t,9007199254740991):0}});var Wr=h((OH,Hm)=>{"use strict";var jC=vc();Hm.exports=function(e){return jC(e.length)}});var Yn=h((NH,Vm)=>{"use strict";var UC=Mt();Vm.exports=Array.isArray||function(t){return UC(t)==="Array"}});var Ro=h((DH,Gm)=>{"use strict";var BC=Fe(),JC=BC("toStringTag"),zm={};zm[JC]="z";Gm.exports=String(zm)==="[object z]"});var Kr=h((qH,Wm)=>{"use strict";var $C=Ro(),HC=Pe(),Oo=Mt(),VC=Fe(),zC=VC("toStringTag"),GC=Object,WC=Oo(function(){return arguments}())==="Arguments",KC=function(e,t){try{return e[t]}catch(r){}};Wm.exports=$C?Oo:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=KC(t=GC(e),zC))=="string"?r:WC?Oo(t):(n=Oo(t))==="Object"&&HC(t.callee)?"Arguments":n}});var Qm=h((LH,Km)=>{"use strict";var QC=ge(),YC=Pe(),gc=zn(),ZC=QC(Function.toString);YC(gc.inspectSource)||(gc.inspectSource=function(e){return ZC(e)});Km.exports=gc.inspectSource});var _c=h((FH,tv)=>{"use strict";var XC=ge(),eP=se(),Ym=Pe(),tP=Kr(),rP=Jr(),nP=Qm(),Zm=function(){},Xm=rP("Reflect","construct"),yc=/^\s*(?:class|function)\b/,iP=XC(yc.exec),oP=!yc.test(Zm),Zn=function(t){if(!Ym(t))return!1;try{return Xm(Zm,[],t),!0}catch(r){return!1}},ev=function(t){if(!Ym(t))return!1;switch(tP(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return oP||!!iP(yc,nP(t))}catch(r){return!0}};ev.sham=!0;tv.exports=!Xm||eP(function(){var e;return Zn(Zn.call)||!Zn(Object)||!Zn(function(){e=!0})||e})?ev:Zn});var ov=h((MH,iv)=>{"use strict";var rv=Yn(),aP=_c(),sP=xe(),lP=Fe(),cP=lP("species"),nv=Array;iv.exports=function(e){var t;return rv(e)&&(t=e.constructor,aP(t)&&(t===nv||rv(t.prototype))?t=void 0:sP(t)&&(t=t[cP],t===null&&(t=void 0))),t===void 0?nv:t}});var bc=h((jH,av)=>{"use strict";var uP=ov();av.exports=function(e,t){return new(uP(e))(t===0?0:t)}});var or=h((UH,lv)=>{"use strict";var dP=Wn(),pP=ge(),fP=So(),hP=Hr(),mP=Wr(),vP=bc(),sv=pP([].push),ir=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=hP(l),f=fP(p),m=mP(f),g=dP(c,d),y=0,v=u||vP,_=t?v(l,m):r||a?v(l,0):void 0,w,A;m>y;y++)if((s||y in f)&&(w=f[y],A=g(w,y,p),e))if(t)_[y]=A;else if(A)switch(e){case 3:return!0;case 5:return w;case 6:return y;case 2:sv(_,w)}else switch(e){case 4:return!1;case 7:sv(_,w)}return o?-1:n||i?i:_}};lv.exports={forEach:ir(0),map:ir(1),filter:ir(2),some:ir(3),every:ir(4),find:ir(5),findIndex:ir(6),filterReject:ir(7)}});var Xn=h((BH,cv)=>{"use strict";var gP=se(),yP=Fe(),_P=Ao(),bP=yP("species");cv.exports=function(e){return _P>=51||!gP(function(){var t=[],r=t.constructor={};return r[bP]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var uv=h(()=>{"use strict";var wP=G(),IP=or().filter,EP=Xn(),SP=EP("filter");wP({target:"Array",proto:!0,forced:!SP},{filter:function(t){return IP(this,t,arguments.length>1?arguments[1]:void 0)}})});var st=h((HH,dv)=>{"use strict";var xP=le(),kP=It();dv.exports=function(e,t){var r=kP[e+"Prototype"],n=r&&r[t];if(n)return n;var i=xP[e],o=i&&i.prototype;return o&&o[t]}});var fv=h((VH,pv)=>{"use strict";uv();var AP=st();pv.exports=AP("Array","filter")});var mv=h((zH,hv)=>{"use strict";var TP=He(),CP=fv(),wc=Array.prototype;hv.exports=function(e){var t=e.filter;return e===wc||TP(wc,e)&&t===wc.filter?CP:t}});var gv=h((GH,vv)=>{"use strict";var PP=mv();vv.exports=PP});var _v=h((WH,yv)=>{yv.exports=gv()});var ei=h((KH,bv)=>{"use strict";var RP=se();bv.exports=function(e,t){var r=[][e];return!!r&&RP(function(){r.call(null,t||function(){return 1},1)})}});var wv=h(()=>{"use strict";var OP=G(),NP=or().every,DP=ei(),qP=DP("every");OP({target:"Array",proto:!0,forced:!qP},{every:function(t){return NP(this,t,arguments.length>1?arguments[1]:void 0)}})});var Ev=h((ZH,Iv)=>{"use strict";wv();var LP=st();Iv.exports=LP("Array","every")});var xv=h((XH,Sv)=>{"use strict";var FP=He(),MP=Ev(),Ic=Array.prototype;Sv.exports=function(e){var t=e.every;return e===Ic||FP(Ic,e)&&t===Ic.every?MP:t}});var Av=h((eV,kv)=>{"use strict";var jP=xv();kv.exports=jP});var Cv=h((tV,Tv)=>{Tv.exports=Av()});var Rv=h((rV,Pv)=>{"use strict";var UP=or().forEach,BP=ei(),JP=BP("forEach");Pv.exports=JP?[].forEach:function(t){return UP(this,t,arguments.length>1?arguments[1]:void 0)}});var Nv=h(()=>{"use strict";var $P=G(),Ov=Rv();$P({target:"Array",proto:!0,forced:[].forEach!==Ov},{forEach:Ov})});var qv=h((oV,Dv)=>{"use strict";Nv();var HP=st();Dv.exports=HP("Array","forEach")});var Fv=h((aV,Lv)=>{"use strict";var VP=qv();Lv.exports=VP});var Mv=h(()=>{});var Uv=h((cV,jv)=>{"use strict";var zP=Kr(),GP=Xe(),WP=He(),KP=Fv();Mv();var Ec=Array.prototype,QP={DOMTokenList:!0,NodeList:!0};jv.exports=function(e){var t=e.forEach;return e===Ec||WP(Ec,e)&&t===Ec.forEach||GP(QP,zP(e))?KP:t}});var Jv=h((uV,Bv)=>{Bv.exports=Uv()});var Hv=h((dV,$v)=>{"use strict";var YP=TypeError,ZP=9007199254740991;$v.exports=function(e){if(e>ZP)throw YP("Maximum allowed index exceeded");return e}});var Sc=h((pV,Vv)=>{"use strict";var XP=Ve(),eR=Ut(),tR=Hn();Vv.exports=function(e,t,r){XP?eR.f(e,t,tR(0,r)):e[t]=r}});var Kv=h(()=>{"use strict";var rR=G(),nR=se(),iR=Yn(),oR=xe(),aR=Hr(),sR=Wr(),zv=Hv(),Gv=Sc(),lR=bc(),cR=Xn(),uR=Fe(),dR=Ao(),Wv=uR("isConcatSpreadable"),pR=dR>=51||!nR(function(){var e=[];return e[Wv]=!1,e.concat()[0]!==e}),fR=function(e){if(!oR(e))return!1;var t=e[Wv];return t!==void 0?!!t:iR(e)},hR=!pR||!cR("concat");rR({target:"Array",proto:!0,arity:1,forced:hR},{concat:function(t){var r=aR(this),n=lR(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],fR(c))for(l=sR(c),zv(i+l),a=0;a<l;a++,i++)a in c&&Gv(n,i,c[a]);else zv(i+1),Gv(n,i++,c);return n.length=i,n}})});var Yv=h((mV,Qv)=>{"use strict";Kv();var mR=st();Qv.exports=mR("Array","concat")});var Xv=h((vV,Zv)=>{"use strict";var vR=He(),gR=Yv(),xc=Array.prototype;Zv.exports=function(e){var t=e.concat;return e===xc||vR(xc,e)&&t===xc.concat?gR:t}});var tg=h((gV,eg)=>{"use strict";var yR=Xv();eg.exports=yR});var ng=h((yV,rg)=>{rg.exports=tg()});var ig=h(()=>{"use strict";var _R=G(),bR=or().some,wR=ei(),IR=wR("some");_R({target:"Array",proto:!0,forced:!IR},{some:function(t){return bR(this,t,arguments.length>1?arguments[1]:void 0)}})});var ag=h((wV,og)=>{"use strict";ig();var ER=st();og.exports=ER("Array","some")});var lg=h((IV,sg)=>{"use strict";var SR=He(),xR=ag(),kc=Array.prototype;sg.exports=function(e){var t=e.some;return e===kc||SR(kc,e)&&t===kc.some?xR:t}});var ug=h((EV,cg)=>{"use strict";var kR=lg();cg.exports=kR});var pg=h((SV,dg)=>{dg.exports=ug()});var hg=h((xV,fg)=>{"use strict";var ti=le(),AR=xo(),TR=Mt(),No=function(e){return AR.slice(0,e.length)===e};fg.exports=function(){return No("Bun/")?"BUN":No("Cloudflare-Workers")?"CLOUDFLARE":No("Deno/")?"DENO":No("Node.js/")?"NODE":ti.Bun&&typeof Bun.version=="string"?"BUN":ti.Deno&&typeof Deno.version=="object"?"DENO":TR(ti.process)==="process"?"NODE":ti.window&&ti.document?"BROWSER":"REST"}()});var ri=h((kV,mg)=>{"use strict";var CR=ge();mg.exports=CR([].slice)});var gg=h((AV,vg)=>{"use strict";var PR=TypeError;vg.exports=function(e,t){if(e<t)throw new PR("Not enough arguments");return e}});var Ac=h((TV,_g)=>{"use strict";var yg=le(),RR=Vl(),OR=Pe(),NR=hg(),DR=xo(),qR=ri(),LR=gg(),FR=yg.Function,MR=/MSIE .\./.test(DR)||NR==="BUN"&&function(){var e=yg.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();_g.exports=function(e,t){var r=t?2:1;return MR?function(n,i){var o=LR(arguments.length,1)>r,a=OR(n)?n:FR(n),s=o?qR(arguments,r):[],l=o?function(){RR(a,this,s)}:a;return t?e(l,i):e(l)}:e}});var Ig=h(()=>{"use strict";var jR=G(),wg=le(),UR=Ac(),bg=UR(wg.setInterval,!0);jR({global:!0,bind:!0,forced:wg.setInterval!==bg},{setInterval:bg})});var xg=h(()=>{"use strict";var BR=G(),Sg=le(),JR=Ac(),Eg=JR(Sg.setTimeout,!0);BR({global:!0,bind:!0,forced:Sg.setTimeout!==Eg},{setTimeout:Eg})});var kg=h(()=>{"use strict";Ig();xg()});var Tg=h((qV,Ag)=>{"use strict";kg();var $R=It();Ag.exports=$R.setTimeout});var Pg=h((LV,Cg)=>{Cg.exports=Tg()});function ii(e,t){de.__h&&de.__h(X,e,ni||t),ni=0;var r=X.__H||(X.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function qo(e){return ni=1,Ug(Bg,e)}function Ug(e,t,r){var n=ii(kr++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Bg(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=X,!X.__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};X.__f=!0;var o=X.shouldComponentUpdate,a=X.componentWillUpdate;X.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)},X.shouldComponentUpdate=i}return n.__N||n.__}function oi(e,t){var r=ii(kr++,3);!de.__s&&Pc(r.__H,t)&&(r.__=e,r.u=t,X.__H.__h.push(r))}function Qr(e,t){var r=ii(kr++,4);!de.__s&&Pc(r.__H,t)&&(r.__=e,r.u=t,X.__h.push(r))}function ai(e){return ni=5,si(function(){return{current:e}},[])}function si(e,t){var r=ii(kr++,7);return Pc(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Yr(e,t){return ni=8,si(function(){return e},t)}function Zr(e){var t=X.context[e.__c],r=ii(kr++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(X)),t.props.value):e.__}function HR(){for(var e;e=jg.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Do),e.__H.__h.forEach(Cc),e.__H.__h=[]}catch(t){e.__H.__h=[],de.__e(t,e.__v)}}function VR(e){var t,r=function(){clearTimeout(n),Mg&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Mg&&(t=requestAnimationFrame(r))}function Do(e){var t=X,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),X=t}function Cc(e){var t=X;e.__c=e.__(),X=t}function Pc(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Bg(e,t){return typeof t=="function"?t(e):t}var kr,X,Tc,Rg,ni,jg,de,Og,Ng,Dg,qg,Lg,Fg,Mg,Rc=T(()=>{Ur();ni=0,jg=[],de=O,Og=de.__b,Ng=de.__r,Dg=de.diffed,qg=de.__c,Lg=de.unmount,Fg=de.__;de.__b=function(e){X=null,Og&&Og(e)},de.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Fg&&Fg(e,t)},de.__r=function(e){Ng&&Ng(e),kr=0;var t=(X=e.__c).__H;t&&(Tc===X?(t.__h=[],X.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Do),t.__h.forEach(Cc),t.__h=[],kr=0)),Tc=X},de.diffed=function(e){Dg&&Dg(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(jg.push(t)!==1&&Rg===de.requestAnimationFrame||((Rg=de.requestAnimationFrame)||VR)(HR)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Tc=X=null},de.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Do),r.__h=r.__h.filter(function(n){return!n.__||Cc(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],de.__e(n,r.__v)}}),qg&&qg(e,t)},de.unmount=function(e){Lg&&Lg(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Do(n)}catch(i){t=i}}),r.__H=void 0,t&&de.__e(t,r.__v))};Mg=typeof requestAnimationFrame=="function"});function Yg(e,t){for(var r in t)e[r]=t[r];return e}function Nc(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 Jg(e,t){this.props=e,this.context=t}function qc(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:Nc(this.props,i)}function n(i){return this.shouldComponentUpdate=r,Le(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function Lc(e){function t(r){var n=Yg({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=zR,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function Zg(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=Yg({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Zg(n,t,r)})),e}function Xg(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Xg(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 Oc(){this.__u=0,this.o=null,this.__b=null}function ey(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Lo(){this.i=null,this.l=null}function Fc(e,t,r){return t.__k==null&&(t.textContent=""),rr(e,t),typeof r=="function"&&r(),e?e.__c:null}function eO(){}function tO(){return this.cancelBubble}function rO(){return this.defaultPrevented}var Dc,$g,zR,GR,Hg,Vg,WR,KR,QR,YR,ZR,XR,zg,ty,nO,Gg,Wg,Kg,Fo=T(()=>{Ur();Ur();Rc();Rc();Dc=Qr;(Jg.prototype=new Ye).isPureReactComponent=!0,Jg.prototype.shouldComponentUpdate=function(e,t){return Nc(this.props,e)||Nc(this.state,t)};$g=O.__b;O.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),$g&&$g(e)};zR=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;GR=O.__e;O.__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)}GR(e,t,r,n)};Hg=O.unmount;O.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Hg&&Hg(e)},(Oc.prototype=new Ye).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=ey(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]=Xg(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)},Oc.prototype.componentWillUnmount=function(){this.o=[]},Oc.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]=Zg(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&Le(Ze,null,e.fallback);return i&&(i.__u&=-33),[Le(Ze,null,t.__a?null:e.children),i]};Vg=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]}};(Lo.prototype=new Ye).__a=function(e){var t=this,r=ey(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),Vg(t,e,n)):i()};r?r(o):o()}},Lo.prototype.render=function(e){this.i=null,this.l=new Map;var t=Bn(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},Lo.prototype.componentDidUpdate=Lo.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){Vg(e,r,t)})};WR=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,KR=/^(?: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]/,QR=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,YR=/[A-Z0-9]/g,ZR=typeof document!="undefined",XR=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};Ye.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ye.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});zg=O.event;O.event=function(e){return zg&&(e=zg(e)),e.persist=eO,e.isPropagationStopped=tO,e.isDefaultPrevented=rO,e.nativeEvent=e};nO={enumerable:!1,configurable:!0,get:function(){return this.class}},Gg=O.vnode;O.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||ZR&&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"||XR(r.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":QR.test(a)&&(a=l):l=a="oninput":o&&KR.test(a)?a=a.replace(YR,"-$&").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=Bn(r.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=Bn(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",nO)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=WR,Gg&&Gg(e)};Wg=O.__r;O.__r=function(e){Wg&&Wg(e),ty=e.__c};Kg=O.diffed;O.diffed=function(e){Kg&&Kg(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),ty=null}});var jc=h(()=>{"use strict";var oO=G(),Mc=le();oO({global:!0,forced:Mc.globalThis!==Mc},{globalThis:Mc})});var ry=h(()=>{"use strict";jc()});var iy=h((ZV,ny)=>{"use strict";jc();ny.exports=le()});var ay=h((XV,oy)=>{"use strict";var aO=iy();oy.exports=aO});var ly=h((ez,sy)=>{"use strict";var sO=ay();sy.exports=sO});var uy=h((tz,cy)=>{"use strict";ry();var lO=ly();cy.exports=lO});var py=h((rz,dy)=>{"use strict";dy.exports=uy()});var hy=h((nz,fy)=>{fy.exports=py()});var my=h(()=>{"use strict";var cO=G(),uO=Yn();cO({target:"Array",stat:!0},{isArray:uO})});var gy=h((az,vy)=>{"use strict";my();var dO=It();vy.exports=dO.Array.isArray});var _y=h((sz,yy)=>{"use strict";var pO=gy();yy.exports=pO});var wy=h((lz,by)=>{by.exports=_y()});var Ey=h((cz,Iy)=>{"use strict";Iy.exports=function(){}});var Ar=h((uz,Sy)=>{"use strict";Sy.exports={}});var Uc=h((dz,ky)=>{"use strict";var fO=le(),hO=Pe(),xy=fO.WeakMap;ky.exports=hO(xy)&&/native code/.test(String(xy))});var Mo=h((pz,Ty)=>{"use strict";var mO=ic(),vO=Co(),Ay=mO("keys");Ty.exports=function(e){return Ay[e]||(Ay[e]=vO(e))}});var li=h((fz,Cy)=>{"use strict";Cy.exports={}});var Cr=h((hz,Oy)=>{"use strict";var gO=Uc(),Ry=le(),yO=xe(),_O=xr(),Bc=Xe(),Jc=zn(),bO=Mo(),wO=li(),Py="Object already initialized",$c=Ry.TypeError,IO=Ry.WeakMap,jo,ci,Uo,EO=function(e){return Uo(e)?ci(e):jo(e,{})},SO=function(e){return function(t){var r;if(!yO(t)||(r=ci(t)).type!==e)throw new $c("Incompatible receiver, "+e+" required");return r}};gO||Jc.state?(ht=Jc.state||(Jc.state=new IO),ht.get=ht.get,ht.has=ht.has,ht.set=ht.set,jo=function(e,t){if(ht.has(e))throw new $c(Py);return t.facade=e,ht.set(e,t),t},ci=function(e){return ht.get(e)||{}},Uo=function(e){return ht.has(e)}):(Tr=bO("state"),wO[Tr]=!0,jo=function(e,t){if(Bc(e,Tr))throw new $c(Py);return t.facade=e,_O(e,Tr,t),t},ci=function(e){return Bc(e,Tr)?e[Tr]:{}},Uo=function(e){return Bc(e,Tr)});var ht,Tr;Oy.exports={set:jo,get:ci,has:Uo,enforce:EO,getterFor:SO}});var zc=h((mz,Dy)=>{"use strict";var Hc=Ve(),xO=Xe(),Ny=Function.prototype,kO=Hc&&Object.getOwnPropertyDescriptor,Vc=xO(Ny,"name"),AO=Vc&&(function(){}).name==="something",TO=Vc&&(!Hc||Hc&&kO(Ny,"name").configurable);Dy.exports={EXISTS:Vc,PROPER:AO,CONFIGURABLE:TO}});var Gc=h((vz,qy)=>{"use strict";var CO=Qn(),PO=Math.max,RO=Math.min;qy.exports=function(e,t){var r=CO(e);return r<0?PO(r+t,0):RO(r,t)}});var Wc=h((gz,Fy)=>{"use strict";var OO=nr(),NO=Gc(),DO=Wr(),Ly=function(e){return function(t,r,n){var i=OO(t),o=DO(i);if(o===0)return!e&&-1;var a=NO(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}};Fy.exports={includes:Ly(!0),indexOf:Ly(!1)}});var Qc=h((yz,jy)=>{"use strict";var qO=ge(),Kc=Xe(),LO=nr(),FO=Wc().indexOf,MO=li(),My=qO([].push);jy.exports=function(e,t){var r=LO(e),n=0,i=[],o;for(o in r)!Kc(MO,o)&&Kc(r,o)&&My(i,o);for(;t.length>n;)Kc(r,o=t[n++])&&(~FO(i,o)||My(i,o));return i}});var Bo=h((_z,Uy)=>{"use strict";Uy.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Yc=h((bz,By)=>{"use strict";var jO=Qc(),UO=Bo();By.exports=Object.keys||function(t){return jO(t,UO)}});var $y=h(Jy=>{"use strict";var BO=Ve(),JO=dc(),$O=Ut(),HO=jt(),VO=nr(),zO=Yc();Jy.f=BO&&!JO?Object.defineProperties:function(t,r){HO(t);for(var n=VO(r),i=zO(r),o=i.length,a=0,s;o>a;)$O.f(t,s=i[a++],n[s]);return t}});var Vy=h((Iz,Hy)=>{"use strict";var GO=Jr();Hy.exports=GO("document","documentElement")});var ui=h((Ez,Zy)=>{"use strict";var WO=jt(),KO=$y(),zy=Bo(),QO=li(),YO=Vy(),ZO=lc(),XO=Mo(),Gy=">",Wy="<",Xc="prototype",eu="script",Qy=XO("IE_PROTO"),Zc=function(){},Yy=function(e){return Wy+eu+Gy+e+Wy+"/"+eu+Gy},Ky=function(e){e.write(Yy("")),e.close();var t=e.parentWindow.Object;return e=null,t},eN=function(){var e=ZO("iframe"),t="java"+eu+":",r;return e.style.display="none",YO.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(Yy("document.F=Object")),r.close(),r.F},Jo,$o=function(){try{Jo=new ActiveXObject("htmlfile")}catch(t){}$o=typeof document!="undefined"?document.domain&&Jo?Ky(Jo):eN():Ky(Jo);for(var e=zy.length;e--;)delete $o[Xc][zy[e]];return $o()};QO[Qy]=!0;Zy.exports=Object.create||function(t,r){var n;return t!==null?(Zc[Xc]=WO(t),n=new Zc,Zc[Xc]=null,n[Qy]=t):n=$o(),r===void 0?n:KO.f(n,r)}});var e_=h((Sz,Xy)=>{"use strict";var tN=se();Xy.exports=!tN(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var ru=h((xz,r_)=>{"use strict";var rN=Xe(),nN=Pe(),iN=Hr(),oN=Mo(),aN=e_(),t_=oN("IE_PROTO"),tu=Object,sN=tu.prototype;r_.exports=aN?tu.getPrototypeOf:function(e){var t=iN(e);if(rN(t,t_))return t[t_];var r=t.constructor;return nN(r)&&t instanceof r?r.prototype:t instanceof tu?sN:null}});var Ho=h((kz,n_)=>{"use strict";var lN=xr();n_.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:lN(e,t,r),e}});var au=h((Az,a_)=>{"use strict";var cN=se(),uN=Pe(),dN=xe(),pN=ui(),i_=ru(),fN=Ho(),hN=Fe(),mN=$r(),ou=hN("iterator"),o_=!1,Bt,nu,iu;[].keys&&(iu=[].keys(),"next"in iu?(nu=i_(i_(iu)),nu!==Object.prototype&&(Bt=nu)):o_=!0);var vN=!dN(Bt)||cN(function(){var e={};return Bt[ou].call(e)!==e});vN?Bt={}:mN&&(Bt=pN(Bt));uN(Bt[ou])||fN(Bt,ou,function(){return this});a_.exports={IteratorPrototype:Bt,BUGGY_SAFARI_ITERATORS:o_}});var l_=h((Tz,s_)=>{"use strict";var gN=Ro(),yN=Kr();s_.exports=gN?{}.toString:function(){return"[object "+yN(this)+"]"}});var di=h((Cz,u_)=>{"use strict";var _N=Ro(),bN=Ut().f,wN=xr(),IN=Xe(),EN=l_(),SN=Fe(),c_=SN("toStringTag");u_.exports=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(IN(i,c_)||bN(i,c_,{configurable:!0,value:t}),n&&!_N&&wN(i,"toString",EN))}});var p_=h((Pz,d_)=>{"use strict";var xN=au().IteratorPrototype,kN=ui(),AN=Hn(),TN=di(),CN=Ar(),PN=function(){return this};d_.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=kN(xN,{next:AN(+!n,r)}),TN(e,i,!1,!0),CN[i]=PN,e}});var h_=h((Rz,f_)=>{"use strict";var RN=ge(),ON=Sr();f_.exports=function(e,t,r){try{return RN(ON(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var v_=h((Oz,m_)=>{"use strict";var NN=xe();m_.exports=function(e){return NN(e)||e===null}});var y_=h((Nz,g_)=>{"use strict";var DN=v_(),qN=String,LN=TypeError;g_.exports=function(e){if(DN(e))return e;throw new LN("Can't set "+qN(e)+" as a prototype")}});var b_=h((Dz,__)=>{"use strict";var FN=h_(),MN=xe(),jN=Er(),UN=y_();__.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=FN(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return jN(i),UN(o),MN(i)&&(e?r(i,o):i.__proto__=o),i}}():void 0)});var Go=h((qz,P_)=>{"use strict";var BN=G(),JN=pt(),Vo=$r(),T_=zc(),$N=Pe(),HN=p_(),w_=ru(),I_=b_(),VN=di(),zN=xr(),su=Ho(),GN=Fe(),E_=Ar(),C_=au(),WN=T_.PROPER,KN=T_.CONFIGURABLE,S_=C_.IteratorPrototype,zo=C_.BUGGY_SAFARI_ITERATORS,pi=GN("iterator"),x_="keys",fi="values",k_="entries",A_=function(){return this};P_.exports=function(e,t,r,n,i,o,a){HN(r,t,n);var s=function(v){if(v===i&&p)return p;if(!zo&&v&&v in d)return d[v];switch(v){case x_:return function(){return new r(this,v)};case fi:return function(){return new r(this,v)};case k_:return function(){return new r(this,v)}}return function(){return new r(this)}},l=t+" Iterator",c=!1,d=e.prototype,u=d[pi]||d["@@iterator"]||i&&d[i],p=!zo&&u||s(i),f=t==="Array"&&d.entries||u,m,g,y;if(f&&(m=w_(f.call(new e)),m!==Object.prototype&&m.next&&(!Vo&&w_(m)!==S_&&(I_?I_(m,S_):$N(m[pi])||su(m,pi,A_)),VN(m,l,!0,!0),Vo&&(E_[l]=A_))),WN&&i===fi&&u&&u.name!==fi&&(!Vo&&KN?zN(d,"name",fi):(c=!0,p=function(){return JN(u,this)})),i)if(g={values:s(fi),keys:o?p:s(x_),entries:s(k_)},a)for(y in g)(zo||c||!(y in d))&&su(d,y,g[y]);else BN({target:t,proto:!0,forced:zo||c},g);return(!Vo||a)&&d[pi]!==p&&su(d,pi,p,{name:i}),E_[t]=p,g}});var Wo=h((Lz,R_)=>{"use strict";R_.exports=function(e,t){return{value:e,done:t}}});var Qo=h((Fz,L_)=>{"use strict";var QN=nr(),lu=Ey(),O_=Ar(),D_=Cr(),YN=Ut().f,ZN=Go(),Ko=Wo(),XN=$r(),eD=Ve(),q_="Array Iterator",tD=D_.set,rD=D_.getterFor(q_);L_.exports=ZN(Array,"Array",function(e,t){tD(this,{type:q_,target:QN(e),index:0,kind:t})},function(){var e=rD(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,Ko(void 0,!0);switch(e.kind){case"keys":return Ko(r,!1);case"values":return Ko(t[r],!1)}return Ko([r,t[r]],!1)},"values");var N_=O_.Arguments=O_.Array;lu("keys");lu("values");lu("entries");if(!XN&&eD&&N_.name!=="values")try{YN(N_,"name",{value:"values"})}catch(e){}});var cu=h(()=>{});var uu=h((Uz,F_)=>{"use strict";var nD=se();F_.exports=!nD(function(){return Object.isExtensible(Object.preventExtensions({}))})});var Yo=h((Bz,M_)=>{"use strict";var iD=Ho();M_.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:iD(e,n,t[n],r);return e}});var du=h(j_=>{"use strict";var oD=Qc(),aD=Bo(),sD=aD.concat("length","prototype");j_.f=Object.getOwnPropertyNames||function(t){return oD(t,sD)}});var $_=h(($z,J_)=>{"use strict";var lD=Mt(),cD=nr(),U_=du().f,uD=ri(),B_=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],dD=function(e){try{return U_(e)}catch(t){return uD(B_)}};J_.exports.f=function(t){return B_&&lD(t)==="Window"?dD(t):U_(cD(t))}});var V_=h((Hz,H_)=>{"use strict";var pD=se();H_.exports=pD(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var W_=h((Vz,G_)=>{"use strict";var fD=se(),hD=xe(),mD=Mt(),z_=V_(),Zo=Object.isExtensible,vD=fD(function(){Zo(1)});G_.exports=vD||z_?function(t){return!hD(t)||z_&&mD(t)==="ArrayBuffer"?!1:Zo?Zo(t):!0}:Zo});var hi=h((zz,Y_)=>{"use strict";var gD=G(),yD=ge(),_D=li(),bD=xe(),pu=Xe(),wD=Ut().f,K_=du(),ID=$_(),fu=W_(),ED=Co(),SD=uu(),Q_=!1,Jt=ED("meta"),xD=0,hu=function(e){wD(e,Jt,{value:{objectID:"O"+xD++,weakData:{}}})},kD=function(e,t){if(!bD(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!pu(e,Jt)){if(!fu(e))return"F";if(!t)return"E";hu(e)}return e[Jt].objectID},AD=function(e,t){if(!pu(e,Jt)){if(!fu(e))return!0;if(!t)return!1;hu(e)}return e[Jt].weakData},TD=function(e){return SD&&Q_&&fu(e)&&!pu(e,Jt)&&hu(e),e},CD=function(){PD.enable=function(){},Q_=!0;var e=K_.f,t=yD([].splice),r={};r[Jt]=1,e(r).length&&(K_.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===Jt){t(i,o,1);break}return i},gD({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:ID.f}))},PD=Y_.exports={enable:CD,fastKey:kD,getWeakData:AD,onFreeze:TD};_D[Jt]=!0});var X_=h((Gz,Z_)=>{"use strict";var RD=Fe(),OD=Ar(),ND=RD("iterator"),DD=Array.prototype;Z_.exports=function(e){return e!==void 0&&(OD.Array===e||DD[ND]===e)}});var mu=h((Wz,tb)=>{"use strict";var qD=Kr(),eb=To(),LD=Ir(),FD=Ar(),MD=Fe(),jD=MD("iterator");tb.exports=function(e){if(!LD(e))return eb(e,jD)||eb(e,"@@iterator")||FD[qD(e)]}});var nb=h((Kz,rb)=>{"use strict";var UD=pt(),BD=Sr(),JD=jt(),$D=Vn(),HD=mu(),VD=TypeError;rb.exports=function(e,t){var r=arguments.length<2?HD(e):t;if(BD(r))return JD(UD(r,e));throw new VD($D(e)+" is not iterable")}});var Xo=h((Qz,ob)=>{"use strict";var zD=pt(),ib=jt(),GD=To();ob.exports=function(e,t,r){var n,i;ib(e);try{if(n=GD(e,"return"),!n){if(t==="throw")throw r;return r}n=zD(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return ib(n),r}});var ta=h((Yz,cb)=>{"use strict";var WD=Wn(),KD=pt(),QD=jt(),YD=Vn(),ZD=X_(),XD=Wr(),ab=He(),eq=nb(),tq=mu(),sb=Xo(),rq=TypeError,ea=function(e,t){this.stopped=e,this.result=t},lb=ea.prototype;cb.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=WD(t,n),c,d,u,p,f,m,g,y=function(_){return c&&sb(c,"normal",_),new ea(!0,_)},v=function(_){return i?(QD(_),s?l(_[0],_[1],y):l(_[0],_[1])):s?l(_,y):l(_)};if(o)c=e.iterator;else if(a)c=e;else{if(d=tq(e),!d)throw new rq(YD(e)+" is not iterable");if(ZD(d)){for(u=0,p=XD(e);p>u;u++)if(f=v(e[u]),f&&ab(lb,f))return f;return new ea(!1)}c=eq(e,d)}for(m=o?e.next:c.next;!(g=KD(m,c)).done;){try{f=v(g.value)}catch(_){sb(c,"throw",_)}if(typeof f=="object"&&f&&ab(lb,f))return f}return new ea(!1)}});var ra=h((Zz,ub)=>{"use strict";var nq=He(),iq=TypeError;ub.exports=function(e,t){if(nq(t,e))return e;throw new iq("Incorrect invocation")}});var vu=h((Xz,pb)=>{"use strict";var oq=G(),aq=le(),sq=hi(),lq=se(),cq=xr(),uq=ta(),dq=ra(),pq=Pe(),fq=xe(),hq=Ir(),mq=di(),vq=Ut().f,gq=or().forEach,yq=Ve(),db=Cr(),_q=db.set,bq=db.getterFor;pb.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=aq[e],s=a&&a.prototype,l={},c;if(!yq||!pq(a)||!(i||s.forEach&&!lq(function(){new a().entries().next()})))c=r.getConstructor(t,e,n,o),sq.enable();else{c=t(function(p,f){_q(dq(p,d),{type:e,collection:new a}),hq(f)||uq(f,p[o],{that:p,AS_ENTRIES:n})});var d=c.prototype,u=bq(e);gq(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(p){var f=p==="add"||p==="set";p in s&&!(i&&p==="clear")&&cq(d,p,function(m,g){var y=u(this).collection;if(!f&&i&&!fq(m))return p==="get"?void 0:!1;var v=y[p](m===0?0:m,g);return f?this:v})}),i||vq(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return mq(c,e,!1,!0),l[e]=c,oq({global:!0,forced:!0},l),i||r.setStrong(c,e,n),c}});var _b=h((e6,yb)=>{"use strict";var wq=ge(),fb=Yo(),na=hi().getWeakData,Iq=ra(),Eq=jt(),Sq=Ir(),gu=xe(),xq=ta(),mb=or(),hb=Xe(),vb=Cr(),kq=vb.set,Aq=vb.getterFor,Tq=mb.find,Cq=mb.findIndex,Pq=wq([].splice),Rq=0,ia=function(e){return e.frozen||(e.frozen=new gb)},gb=function(){this.entries=[]},yu=function(e,t){return Tq(e.entries,function(r){return r[0]===t})};gb.prototype={get:function(e){var t=yu(this,e);if(t)return t[1]},has:function(e){return!!yu(this,e)},set:function(e,t){var r=yu(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=Cq(this.entries,function(r){return r[0]===e});return~t&&Pq(this.entries,t,1),!!~t}};yb.exports={getConstructor:function(e,t,r,n){var i=e(function(l,c){Iq(l,o),kq(l,{type:t,id:Rq++,frozen:null}),Sq(c)||xq(c,l[n],{that:l,AS_ENTRIES:r})}),o=i.prototype,a=Aq(t),s=function(l,c,d){var u=a(l),p=na(Eq(c),!0);return p===!0?ia(u).set(c,d):p[u.id]=d,l};return fb(o,{delete:function(l){var c=a(this);if(!gu(l))return!1;var d=na(l);return d===!0?ia(c).delete(l):d&&hb(d,c.id)&&delete d[c.id]},has:function(c){var d=a(this);if(!gu(c))return!1;var u=na(c);return u===!0?ia(d).has(c):u&&hb(u,d.id)}}),fb(o,r?{get:function(c){var d=a(this);if(gu(c)){var u=na(c);if(u===!0)return ia(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 Ab=h(()=>{"use strict";var Oq=uu(),bb=le(),la=ge(),wb=Yo(),Nq=hi(),Dq=vu(),Ib=_b(),oa=xe(),aa=Cr().enforce,qq=se(),Lq=Uc(),yi=Object,Fq=Array.isArray,sa=yi.isExtensible,Eb=yi.isFrozen,Mq=yi.isSealed,Sb=yi.freeze,jq=yi.seal,Uq=!bb.ActiveXObject&&"ActiveXObject"in bb,mi,xb=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},kb=Dq("WeakMap",xb,Ib),Xr=kb.prototype,ca=la(Xr.set),Bq=function(){return Oq&&qq(function(){var e=Sb([]);return ca(new kb,e,1),!Eb(e)})};Lq&&(Uq?(mi=Ib.getConstructor(xb,"WeakMap",!0),Nq.enable(),_u=la(Xr.delete),gi=la(Xr.has),bu=la(Xr.get),wb(Xr,{delete:function(e){if(oa(e)&&!sa(e)){var t=aa(this);return t.frozen||(t.frozen=new mi),_u(this,e)||t.frozen.delete(e)}return _u(this,e)},has:function(t){if(oa(t)&&!sa(t)){var r=aa(this);return r.frozen||(r.frozen=new mi),gi(this,t)||r.frozen.has(t)}return gi(this,t)},get:function(t){if(oa(t)&&!sa(t)){var r=aa(this);return r.frozen||(r.frozen=new mi),gi(this,t)?bu(this,t):r.frozen.get(t)}return bu(this,t)},set:function(t,r){if(oa(t)&&!sa(t)){var n=aa(this);n.frozen||(n.frozen=new mi),gi(this,t)?ca(this,t,r):n.frozen.set(t,r)}else ca(this,t,r);return this}})):Bq()&&wb(Xr,{set:function(t,r){var n;return Fq(t)&&(Eb(t)?n=Sb:Mq(t)&&(n=jq)),ca(this,t,r),n&&n(t),this}}));var _u,gi,bu});var Tb=h(()=>{"use strict";Ab()});var Pb=h((o6,Cb)=>{"use strict";Qo();cu();Tb();var Jq=It();Cb.exports=Jq.WeakMap});var Ob=h((a6,Rb)=>{"use strict";Rb.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 wu=h(()=>{"use strict";Qo();var $q=Ob(),Hq=le(),Vq=di(),Nb=Ar();for(ua in $q)Vq(Hq[ua],ua),Nb[ua]=Nb.Array;var ua});var qb=h((c6,Db)=>{"use strict";var zq=Pb();wu();Db.exports=zq});var Fb=h((u6,Lb)=>{Lb.exports=qb()});var jb=h(()=>{"use strict";var Gq=G(),Wq=$n(),Kq=Wc().indexOf,Qq=ei(),Iu=Wq([].indexOf),Mb=!!Iu&&1/Iu([1],1,-0)<0,Yq=Mb||!Qq("indexOf");Gq({target:"Array",proto:!0,forced:Yq},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return Mb?Iu(this,t,r)||0:Kq(this,t,r)}})});var Bb=h((f6,Ub)=>{"use strict";jb();var Zq=st();Ub.exports=Zq("Array","indexOf")});var $b=h((h6,Jb)=>{"use strict";var Xq=He(),eL=Bb(),Eu=Array.prototype;Jb.exports=function(e){var t=e.indexOf;return e===Eu||Xq(Eu,e)&&t===Eu.indexOf?eL:t}});var Vb=h((m6,Hb)=>{"use strict";var tL=$b();Hb.exports=tL});var Gb=h((v6,zb)=>{zb.exports=Vb()});var Wb=h(()=>{"use strict";var rL=G(),nL=or().map,iL=Xn(),oL=iL("map");rL({target:"Array",proto:!0,forced:!oL},{map:function(t){return nL(this,t,arguments.length>1?arguments[1]:void 0)}})});var Qb=h((_6,Kb)=>{"use strict";Wb();var aL=st();Kb.exports=aL("Array","map")});var Zb=h((b6,Yb)=>{"use strict";var sL=He(),lL=Qb(),Su=Array.prototype;Yb.exports=function(e){var t=e.map;return e===Su||sL(Su,e)&&t===Su.map?lL:t}});var e0=h((w6,Xb)=>{"use strict";var cL=Zb();Xb.exports=cL});var r0=h((I6,t0)=>{t0.exports=e0()});var n0=h(()=>{"use strict";var uL=G(),dL=Ve(),pL=ui();uL({target:"Object",stat:!0,sham:!dL},{create:pL})});var o0=h((x6,i0)=>{"use strict";n0();var fL=It(),hL=fL.Object;i0.exports=function(t,r){return hL.create(t,r)}});var s0=h((k6,a0)=>{"use strict";var mL=o0();a0.exports=mL});var c0=h((A6,l0)=>{l0.exports=s0()});var xu=h((T6,u0)=>{"use strict";var vL=Ut();u0.exports=function(e,t,r){return vL.f(e,t,r)}});var f0=h((C6,p0)=>{"use strict";var gL=Jr(),yL=xu(),_L=Fe(),bL=Ve(),d0=_L("species");p0.exports=function(e){var t=gL(e);bL&&t&&!t[d0]&&yL(t,d0,{configurable:!0,get:function(){return this}})}});var b0=h((P6,_0)=>{"use strict";var h0=ui(),wL=xu(),m0=Yo(),IL=Wn(),EL=ra(),SL=Ir(),xL=ta(),kL=Go(),da=Wo(),AL=f0(),_i=Ve(),v0=hi().fastKey,y0=Cr(),g0=y0.set,ku=y0.getterFor;_0.exports={getConstructor:function(e,t,r,n){var i=e(function(c,d){EL(c,o),g0(c,{type:t,index:h0(null),first:null,last:null,size:0}),_i||(c.size=0),SL(d)||xL(d,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=ku(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=v0(d,!0),key:d,value:u,previous:m=p.last,next:null,removed:!1},p.first||(p.first=f),m&&(m.next=f),_i?p.size++:c.size++,g!=="F"&&(p.index[g]=f)),c},l=function(c,d){var u=a(c),p=v0(d),f;if(p!=="F")return u.index[p];for(f=u.first;f;f=f.next)if(f.key===d)return f};return m0(o,{clear:function(){for(var d=this,u=a(d),p=u.first;p;)p.removed=!0,p.previous&&(p.previous=p.previous.next=null),p=p.next;u.first=u.last=null,u.index=h0(null),_i?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),_i?u.size--:d.size--}return!!p},forEach:function(d){for(var u=a(this),p=IL(d,arguments.length>1?arguments[1]:void 0),f;f=f?f.next:u.first;)for(p(f.value,f.key,this);f&&f.removed;)f=f.previous},has:function(d){return!!l(this,d)}}),m0(o,r?{get:function(d){var u=l(this,d);return u&&u.value},set:function(d,u){return s(this,d===0?0:d,u)}}:{add:function(d){return s(this,d=d===0?0:d,d)}}),_i&&wL(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=ku(t),o=ku(n);kL(e,t,function(a,s){g0(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,da(void 0,!0)):da(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},r?"entries":"values",!r,!0),AL(t)}}});var w0=h(()=>{"use strict";var TL=vu(),CL=b0();TL("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},CL)});var I0=h(()=>{"use strict";w0()});var ar=h((q6,E0)=>{"use strict";var PL=Vn(),RL=TypeError;E0.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 RL(PL(e)+" is not a set")}});var x0=h((L6,S0)=>{"use strict";S0.exports=function(e,t){return t===1?function(r,n){return r[e](n)}:function(r,n,i){return r[e](n,i)}}});var sr=h((F6,A0)=>{"use strict";var OL=Jr(),Au=x0(),k0=OL("Set"),NL=k0.prototype;A0.exports={Set:k0,add:Au("add",1),has:Au("has",1),remove:Au("delete",1),proto:NL}});var lr=h((M6,T0)=>{"use strict";var DL=pt();T0.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,o,a;!(o=DL(i,n)).done;)if(a=t(o.value),a!==void 0)return a}});var en=h((j6,C0)=>{"use strict";var qL=lr();C0.exports=function(e,t,r){return r?qL(e.keys(),t,!0):e.forEach(t)}});var pa=h((U6,R0)=>{"use strict";var P0=sr(),LL=en(),FL=P0.Set,ML=P0.add;R0.exports=function(e){var t=new FL;return LL(e,function(r){ML(t,r)}),t}});var tn=h((B6,O0)=>{"use strict";O0.exports=function(e){return e.size}});var D0=h((J6,N0)=>{"use strict";N0.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var cr=h(($6,U0)=>{"use strict";var q0=Sr(),M0=jt(),L0=pt(),jL=Qn(),UL=D0(),F0="Invalid size",BL=RangeError,JL=TypeError,$L=Math.max,j0=function(e,t){this.set=e,this.size=$L(t,0),this.has=q0(e.has),this.keys=q0(e.keys)};j0.prototype={getIterator:function(){return UL(M0(L0(this.keys,this.set)))},includes:function(e){return L0(this.has,this.set,e)}};U0.exports=function(e){M0(e);var t=+e.size;if(t!==t)throw new JL(F0);var r=jL(t);if(r<0)throw new BL(F0);return new j0(e,r)}});var H0=h((H6,$0)=>{"use strict";var HL=ar(),J0=sr(),VL=pa(),zL=tn(),GL=cr(),WL=en(),KL=lr(),QL=J0.has,B0=J0.remove;$0.exports=function(t){var r=HL(this),n=GL(t),i=VL(r);return zL(r)<=n.size?WL(r,function(o){n.includes(o)&&B0(i,o)}):KL(n.getIterator(),function(o){QL(r,o)&&B0(i,o)}),i}});var ur=h((V6,V0)=>{"use strict";V0.exports=function(){return!1}});var z0=h(()=>{"use strict";var YL=G(),ZL=H0(),XL=ur(),eF=!XL("difference",function(e){return e.size===0});YL({target:"Set",proto:!0,real:!0,forced:eF},{difference:ZL})});var K0=h((W6,W0)=>{"use strict";var tF=ar(),Tu=sr(),rF=tn(),nF=cr(),iF=en(),oF=lr(),aF=Tu.Set,G0=Tu.add,sF=Tu.has;W0.exports=function(t){var r=tF(this),n=nF(t),i=new aF;return rF(r)>n.size?oF(n.getIterator(),function(o){sF(r,o)&&G0(i,o)}):iF(r,function(o){n.includes(o)&&G0(i,o)}),i}});var Q0=h(()=>{"use strict";var lF=G(),cF=se(),uF=K0(),dF=ur(),pF=!dF("intersection",function(e){return e.size===2&&e.has(1)&&e.has(2)})||cF(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});lF({target:"Set",proto:!0,real:!0,forced:pF},{intersection:uF})});var Z0=h((Y6,Y0)=>{"use strict";var fF=ar(),hF=sr().has,mF=tn(),vF=cr(),gF=en(),yF=lr(),_F=Xo();Y0.exports=function(t){var r=fF(this),n=vF(t);if(mF(r)<=n.size)return gF(r,function(o){if(n.includes(o))return!1},!0)!==!1;var i=n.getIterator();return yF(i,function(o){if(hF(r,o))return _F(i,"normal",!1)})!==!1}});var X0=h(()=>{"use strict";var bF=G(),wF=Z0(),IF=ur(),EF=!IF("isDisjointFrom",function(e){return!e});bF({target:"Set",proto:!0,real:!0,forced:EF},{isDisjointFrom:wF})});var tw=h((eG,ew)=>{"use strict";var SF=ar(),xF=tn(),kF=en(),AF=cr();ew.exports=function(t){var r=SF(this),n=AF(t);return xF(r)>n.size?!1:kF(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var rw=h(()=>{"use strict";var TF=G(),CF=tw(),PF=ur(),RF=!PF("isSubsetOf",function(e){return e});TF({target:"Set",proto:!0,real:!0,forced:RF},{isSubsetOf:CF})});var iw=h((nG,nw)=>{"use strict";var OF=ar(),NF=sr().has,DF=tn(),qF=cr(),LF=lr(),FF=Xo();nw.exports=function(t){var r=OF(this),n=qF(t);if(DF(r)<n.size)return!1;var i=n.getIterator();return LF(i,function(o){if(!NF(r,o))return FF(i,"normal",!1)})!==!1}});var ow=h(()=>{"use strict";var MF=G(),jF=iw(),UF=ur(),BF=!UF("isSupersetOf",function(e){return!e});MF({target:"Set",proto:!0,real:!0,forced:BF},{isSupersetOf:jF})});var sw=h((aG,aw)=>{"use strict";var JF=ar(),Cu=sr(),$F=pa(),HF=cr(),VF=lr(),zF=Cu.add,GF=Cu.has,WF=Cu.remove;aw.exports=function(t){var r=JF(this),n=HF(t).getIterator(),i=$F(r);return VF(n,function(o){GF(r,o)?WF(i,o):zF(i,o)}),i}});var lw=h(()=>{"use strict";var KF=G(),QF=sw(),YF=ur();KF({target:"Set",proto:!0,real:!0,forced:!YF("symmetricDifference")},{symmetricDifference:QF})});var uw=h((cG,cw)=>{"use strict";var ZF=ar(),XF=sr().add,eM=pa(),tM=cr(),rM=lr();cw.exports=function(t){var r=ZF(this),n=tM(t).getIterator(),i=eM(r);return rM(n,function(o){XF(i,o)}),i}});var dw=h(()=>{"use strict";var nM=G(),iM=uw(),oM=ur();nM({target:"Set",proto:!0,real:!0,forced:!oM("union")},{union:iM})});var bi=h((pG,pw)=>{"use strict";var aM=Kr(),sM=String;pw.exports=function(e){if(aM(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return sM(e)}});var vw=h((fG,mw)=>{"use strict";var Pu=ge(),lM=Qn(),cM=bi(),uM=Er(),dM=Pu("".charAt),fw=Pu("".charCodeAt),pM=Pu("".slice),hw=function(e){return function(t,r){var n=cM(uM(t)),i=lM(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=fw(n,i),a<55296||a>56319||i+1===o||(s=fw(n,i+1))<56320||s>57343?e?dM(n,i):a:e?pM(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};mw.exports={codeAt:hw(!1),charAt:hw(!0)}});var bw=h(()=>{"use strict";var fM=vw().charAt,hM=bi(),yw=Cr(),mM=Go(),gw=Wo(),_w="String Iterator",vM=yw.set,gM=yw.getterFor(_w);mM(String,"String",function(e){vM(this,{type:_w,string:hM(e),index:0})},function(){var t=gM(this),r=t.string,n=t.index,i;return n>=r.length?gw(void 0,!0):(i=fM(r,n),t.index+=i.length,gw(i,!1))})});var Iw=h((vG,ww)=>{"use strict";Qo();cu();I0();z0();Q0();X0();rw();ow();lw();dw();bw();var yM=It();ww.exports=yM.Set});var Sw=h((gG,Ew)=>{"use strict";var _M=Iw();wu();Ew.exports=_M});var kw=h((yG,xw)=>{xw.exports=Sw()});var Tw=h(Aw=>{"use strict";Aw.f=Object.getOwnPropertySymbols});var Ow=h((bG,Rw)=>{"use strict";var Cw=Ve(),bM=ge(),wM=pt(),IM=se(),Ru=Yc(),EM=Tw(),SM=Gl(),xM=Hr(),kM=So(),rn=Object.assign,Pw=Object.defineProperty,AM=bM([].concat);Rw.exports=!rn||IM(function(){if(Cw&&rn({b:1},rn(Pw({},"a",{enumerable:!0,get:function(){Pw(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}),rn({},e)[r]!==7||Ru(rn({},t)).join("")!==n})?function(t,r){for(var n=xM(t),i=arguments.length,o=1,a=EM.f,s=SM.f;i>o;)for(var l=kM(arguments[o++]),c=a?AM(Ru(l),a(l)):Ru(l),d=c.length,u=0,p;d>u;)p=c[u++],(!Cw||wM(s,l,p))&&(n[p]=l[p]);return n}:rn});var Dw=h(()=>{"use strict";var TM=G(),Nw=Ow();TM({target:"Object",stat:!0,arity:2,forced:Object.assign!==Nw},{assign:Nw})});var Lw=h((EG,qw)=>{"use strict";Dw();var CM=It();qw.exports=CM.Object.assign});var Mw=h((SG,Fw)=>{"use strict";var PM=Lw();Fw.exports=PM});var Uw=h((xG,jw)=>{jw.exports=Mw()});var Ou=h((kG,Bw)=>{"use strict";Bw.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 Hw=h((AG,$w)=>{"use strict";var RM=ge(),OM=Er(),NM=bi(),Du=Ou(),Jw=RM("".replace),DM=RegExp("^["+Du+"]+"),qM=RegExp("(^|[^"+Du+"])["+Du+"]+$"),Nu=function(e){return function(t){var r=NM(OM(t));return e&1&&(r=Jw(r,DM,"")),e&2&&(r=Jw(r,qM,"$1")),r}};$w.exports={start:Nu(1),end:Nu(2),trim:Nu(3)}});var Ww=h((TG,Gw)=>{"use strict";var LM=zc().PROPER,FM=se(),Vw=Ou(),zw="\u200B\x85\u180E";Gw.exports=function(e){return FM(function(){return!!Vw[e]()||zw[e]()!==zw||LM&&Vw[e].name!==e})}});var Kw=h(()=>{"use strict";var MM=G(),jM=Hw().trim,UM=Ww();MM({target:"String",proto:!0,forced:UM("trim")},{trim:function(){return jM(this)}})});var Yw=h((RG,Qw)=>{"use strict";Kw();var BM=st();Qw.exports=BM("String","trim")});var Xw=h((OG,Zw)=>{"use strict";var JM=He(),$M=Yw(),qu=String.prototype;Zw.exports=function(e){var t=e.trim;return typeof e=="string"||e===qu||JM(qu,e)&&t===qu.trim?$M:t}});var tI=h((NG,eI)=>{"use strict";var HM=Xw();eI.exports=HM});var nI=h((DG,rI)=>{rI.exports=tI()});var aI=h(()=>{"use strict";var VM=G(),iI=Yn(),zM=_c(),GM=xe(),oI=Gc(),WM=Wr(),KM=nr(),QM=Sc(),YM=Fe(),ZM=Xn(),XM=ri(),ej=ZM("slice"),tj=YM("species"),Lu=Array,rj=Math.max;VM({target:"Array",proto:!0,forced:!ej},{slice:function(t,r){var n=KM(this),i=WM(n),o=oI(t,i),a=oI(r===void 0?i:r,i),s,l,c;if(iI(n)&&(s=n.constructor,zM(s)&&(s===Lu||iI(s.prototype))?s=void 0:GM(s)&&(s=s[tj],s===null&&(s=void 0)),s===Lu||s===void 0))return XM(n,o,a);for(l=new(s===void 0?Lu:s)(rj(a-o,0)),c=0;o<a;o++,c++)o in n&&QM(l,c,n[o]);return l.length=c,l}})});var lI=h((FG,sI)=>{"use strict";aI();var nj=st();sI.exports=nj("Array","slice")});var uI=h((MG,cI)=>{"use strict";var ij=He(),oj=lI(),Fu=Array.prototype;cI.exports=function(e){var t=e.slice;return e===Fu||ij(Fu,e)&&t===Fu.slice?oj:t}});var pI=h((jG,dI)=>{"use strict";var aj=uI();dI.exports=aj});var hI=h((UG,fI)=>{fI.exports=pI()});var Mu=T(()=>{});var vI=h((JG,mI)=>{"use strict";var sj=xe(),lj=Mt(),cj=Fe(),uj=cj("match");mI.exports=function(e){var t;return sj(e)&&((t=e[uj])!==void 0?!!t:lj(e)==="RegExp")}});var yI=h(($G,gI)=>{"use strict";var dj=vI(),pj=TypeError;gI.exports=function(e){if(dj(e))throw new pj("The method doesn't accept regular expressions");return e}});var bI=h((HG,_I)=>{"use strict";var fj=Fe(),hj=fj("match");_I.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[hj]=!1,"/./"[e](t)}catch(n){}}return!1}});var EI=h(()=>{"use strict";var mj=G(),vj=$n(),gj=uc().f,yj=vc(),wI=bi(),_j=yI(),bj=Er(),wj=bI(),Ij=$r(),Ej=vj("".slice),Sj=Math.min,II=wj("startsWith"),xj=!Ij&&!II&&!!function(){var e=gj(String.prototype,"startsWith");return e&&!e.writable}();mj({target:"String",proto:!0,forced:!xj&&!II},{startsWith:function(t){var r=wI(bj(this));_j(t);var n=yj(Sj(arguments.length>1?arguments[1]:void 0,r.length)),i=wI(t);return Ej(r,n,n+i.length)===i}})});var xI=h((GG,SI)=>{"use strict";EI();var kj=st();SI.exports=kj("String","startsWith")});var AI=h((WG,kI)=>{"use strict";var Aj=He(),Tj=xI(),ju=String.prototype;kI.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===ju||Aj(ju,e)&&t===ju.startsWith?Tj:t}});var CI=h((KG,TI)=>{"use strict";var Cj=AI();TI.exports=Cj});var RI=h((QG,PI)=>{PI.exports=CI()});var LI=h((YG,qI)=>{"use strict";var NI=ge(),Pj=Sr(),Rj=xe(),Oj=Xe(),OI=ri(),Nj=Br(),DI=Function,Dj=NI([].concat),qj=NI([].join),Uu={},Lj=function(e,t,r){if(!Oj(Uu,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";Uu[t]=DI("C,a","return new C("+qj(n,",")+")")}return Uu[t](e,r)};qI.exports=Nj?DI.bind:function(t){var r=Pj(this),n=r.prototype,i=OI(arguments,1),o=function(){var s=Dj(i,OI(arguments));return this instanceof o?Lj(r,s.length,s):r.apply(t,s)};return Rj(n)&&(o.prototype=n),o}});var MI=h(()=>{"use strict";var Fj=G(),FI=LI();Fj({target:"Function",proto:!0,forced:Function.bind!==FI},{bind:FI})});var UI=h((e8,jI)=>{"use strict";MI();var Mj=st();jI.exports=Mj("Function","bind")});var JI=h((t8,BI)=>{"use strict";var jj=He(),Uj=UI(),Bu=Function.prototype;BI.exports=function(e){var t=e.bind;return e===Bu||jj(Bu,e)&&t===Bu.bind?Uj:t}});var HI=h((r8,$I)=>{"use strict";var Bj=JI();$I.exports=Bj});var zI=h((n8,VI)=>{VI.exports=HI()});function Ra(e,t){ye.__h&&ye.__h(ie,e,Ai||t),Ai=0;var r=ie.__H||(ie.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Ht(e){return Ai=1,Jj(OE,e)}function Jj(e,t,r){var n=Ra(ln++,2);if(n.t=e,!n.__c&&(n.__=[OE(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=ie,!ie.__f)){var i=function(s,l,c){var d;if(!n.__c.__H)return!0;var u=(0,ad.default)(d=n.__c.__H.__).call(d,function(f){return!!f.__c});if((0,AE.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,ke.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};ie.__f=!0;var o=ie.shouldComponentUpdate,a=ie.componentWillUpdate;ie.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)},ie.shouldComponentUpdate=i}return n.__N||n.__}function Rr(e,t){var r=Ra(ln++,3);!ye.__s&&RE(r.__H,t)&&(r.__=e,r.u=t,ie.__H.__h.push(r))}function Ei(e){return Ai=5,dd(function(){return{current:e}},[])}function dd(e,t){var r=Ra(ln++,7);return RE(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function lt(e,t){return Ai=8,dd(function(){return e},t)}function $j(e){var t=ie.context[e.__c],r=Ra(ln++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(ie)),t.props.value):e.__}function Hj(){for(var e;e=PE.shift();)if(e.__P&&e.__H)try{var t,r;(0,ke.default)(t=e.__H.__h).call(t,ga),(0,ke.default)(r=e.__H.__h).call(r,Ku),e.__H.__h=[]}catch(n){e.__H.__h=[],ye.__e(n,e.__v)}}function Vj(e){var t,r=function(){clearTimeout(n),eE&&cancelAnimationFrame(t),(0,Tt.default)(e)},n=(0,Tt.default)(r,100);eE&&(t=requestAnimationFrame(r))}function ga(e){var t=ie,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ie=t}function Ku(e){var t=ie;e.__c=e.__(),ie=t}function RE(e,t){return!e||e.length!==t.length||(0,xa.default)(t).call(t,function(r,n){return r!==e[n]})}function OE(e,t){return typeof t=="function"?t(e):t}function zj(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Qu(){throw new Error("setTimeout has not been defined")}function Yu(){throw new Error("clearTimeout has not been defined")}function DE(e){if(Et===Tt.default)return(0,Tt.default)(e,0);if((Et===Qu||!Et)&&Tt.default)return Et=Tt.default,(0,Tt.default)(e,0);try{return Et(e,0)}catch(t){try{return Et.call(null,e,0)}catch(r){return Et.call(this,e,0)}}}function Gj(e){if(St===clearTimeout)return clearTimeout(e);if((St===Yu||!St)&&clearTimeout)return St=clearTimeout,clearTimeout(e);try{return St(e)}catch(t){try{return St.call(null,e)}catch(r){return St.call(this,e)}}}function Wj(){!on||!dr||(on=!1,dr.length?$t=(0,Pa.default)(dr).call(dr,$t):ya=-1,$t.length&&qE())}function qE(){if(!on){var e=DE(Wj);on=!0;for(var t=$t.length;t;){for(dr=$t,$t=[];++ya<t;)dr&&dr[ya].run();ya=-1,t=$t.length}dr=null,on=!1,Gj(e)}}function LE(e,t){this.fun=e,this.array=t}function zt(){}function Yj(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 Zj(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 rU(e,t){return Re(e,0)^45?(((t<<2^Re(e,0))<<2^Re(e,1))<<2^Re(e,2))<<2^Re(e,3):0}function jE(e){return(0,cd.default)(e).call(e)}function nU(e,t){return(e=t.exec(e))?e[0]:e}function $(e,t,r){return e.replace(t,r)}function Zu(e,t){return(0,Vt.default)(e).call(e,t)}function Re(e,t){return e.charCodeAt(t)|0}function Ti(e,t,r){return(0,ud.default)(e).call(e,t,r)}function xt(e){return e.length}function md(e){return e.length}function fa(e,t){return t.push(e),e}function iU(e,t){return(0,ki.default)(e).call(e,t).join("")}function Da(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Na,column:cn,length:a,return:""}}function wi(e,t){return tU(Da("",null,null,"",null,null,0),e,{length:-e.length},t)}function oU(){return _e}function aU(){return _e=Ge>0?Re(dn,--Ge):0,cn--,_e===10&&(cn=1,Na--),_e}function et(){return _e=Ge<UE?Re(dn,Ge++):0,cn++,_e===10&&(cn=1,Na++),_e}function Ct(){return Re(dn,Ge)}function _a(){return Ge}function Di(e,t){return Ti(dn,e,t)}function Ci(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 BE(e){return Na=cn=1,UE=xt(dn=e),Ge=0,[]}function JE(e){return dn="",e}function ba(e){return jE(Di(Ge-1,Xu(e===91?e+2:e===40?e+1:e)))}function sU(e){for(;(_e=Ct())&&_e<33;)et();return Ci(e)>2||Ci(_e)>3?"":" "}function lU(e,t){for(;--t&&et()&&!(_e<48||_e>102||_e>57&&_e<65||_e>70&&_e<97););return Di(e,_a()+(t<6&&Ct()==32&&et()==32))}function Xu(e){for(;et();)switch(_e){case e:return Ge;case 34:case 39:e!==34&&e!==39&&Xu(_e);break;case 40:e===41&&Xu(e);break;case 92:et();break}return Ge}function cU(e,t){for(;et()&&e+_e!==57&&!(e+_e===84&&Ct()===47););return"/*"+Di(t,Ge-1)+"*"+Oa(e===47?e:et())}function uU(e){for(;!Ci(Ct());)et();return Di(e,Ge)}function dU(e){return JE(wa("",null,null,null,[""],e=BE(e),0,[0],e))}function wa(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,_=0,w="",A=i,R=o,P=n,E=w;y;)switch(m=_,_=et()){case 40:if(m!=108&&Re(E,u-1)==58){Zu(E+=$(ba(_),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:E+=ba(_);break;case 9:case 10:case 13:case 32:E+=sU(m);break;case 92:E+=lU(_a()-1,7);continue;case 47:switch(Ct()){case 42:case 47:fa(pU(cU(et(),_a()),t,r),l);break;default:E+="/"}break;case 123*g:s[c++]=xt(E)*v;case 125*g:case 59:case 0:switch(_){case 0:case 125:y=0;case 59+d:f>0&&xt(E)-u&&fa(f>32?rE(E+";",n,r,u-1):rE($(E," ","")+";",n,r,u-2),l);break;case 59:E+=";";default:if(fa(P=tE(E,t,r,c,d,i,s,w,A=[],R=[],u),o),_===123)if(d===0)wa(E,t,P,P,A,o,u,s,R);else switch(p===99&&Re(E,3)===110?100:p){case 100:case 109:case 115:wa(e,P,P,n&&fa(tE(e,P,P,0,0,i,s,w,i,A=[],u),R),i,R,u,s,n?A:R);break;default:wa(E,P,P,P,[""],R,0,s,R)}}c=d=f=0,g=v=1,w=E="",u=a;break;case 58:u=1+xt(E),f=m;default:if(g<1){if(_==123)--g;else if(_==125&&g++==0&&aU()==125)continue}switch(E+=Oa(_),_*g){case 38:v=d>0?1:(E+="\f",-1);break;case 44:s[c++]=(xt(E)-1)*v,v=1;break;case 64:Ct()===45&&(E+=ba(et())),p=Ct(),d=u=xt(w=E+=uU(_a())),_++;break;case 45:m===45&&xt(E)==2&&(g=0)}}return o}function tE(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=md(p),m=0,g=0,y=0;m<n;++m)for(var v=0,_=Ti(e,u+1,u=eU(g=a[m])),w=e;v<f;++v)(w=jE(g>0?p[v]+" "+_:$(_,/&\f/g,p[v])))&&(l[y++]=w);return Da(e,t,r,i===0?fd:s,l,c,d)}function pU(e,t,r){return Da(e,t,r,pd,Oa(oU()),Ti(e,2,-2),0)}function rE(e,t,r,n){return Da(e,t,r,hd,Ti(e,0,n),Ti(e,n+1,-1),n)}function an(e,t){for(var r="",n=md(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function fU(e,t,r,n){switch(e.type){case Xj:case hd:return e.return=e.return||e.value;case pd:return"";case ME:return e.return=e.value+"{"+an(e.children,n)+"}";case fd:e.value=e.props.join(",")}return xt(r=an(e.children,n))?e.return=e.value+"{"+r+"}":""}function hU(e){var t=md(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 mU(e){return function(t){t.root||(t=t.return)&&e(t)}}function HE(e,t){switch(rU(e,t)){case 5103:return M+"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 M+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return M+e+Aa+e+Me+e+e;case 6828:case 4268:return M+e+Me+e+e;case 6165:return M+e+Me+"flex-"+e+e;case 5187:return M+e+$(e,/(\w+).+(:[^]+)/,M+"box-$1$2"+Me+"flex-$1$2")+e;case 5443:return M+e+Me+"flex-item-"+$(e,/flex-|-self/,"")+e;case 4675:return M+e+Me+"flex-line-pack"+$(e,/align-content|flex-|-self/,"")+e;case 5548:return M+e+Me+$(e,"shrink","negative")+e;case 5292:return M+e+Me+$(e,"basis","preferred-size")+e;case 6060:return M+"box-"+$(e,"-grow","")+M+e+Me+$(e,"grow","positive")+e;case 4554:return M+$(e,/([^-])(transform)/g,"$1"+M+"$2")+e;case 6187:return $($($(e,/(zoom-|grab)/,M+"$1"),/(image-set)/,M+"$1"),e,"")+e;case 5495:case 3959:return $(e,/(image-set\([^]*)/,M+"$1$`$1");case 4968:return $($(e,/(.+:)(flex-)?(.*)/,M+"box-pack:$3"+Me+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+M+e+e;case 4095:case 3583:case 4068:case 2532:return $(e,/(.+)-inline(.+)/,M+"$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(xt(e)-1-t>6)switch(Re(e,t+1)){case 109:if(Re(e,t+4)!==45)break;case 102:return $(e,/(.+:)(.+)-([^]+)/,"$1"+M+"$2-$3$1"+Aa+(Re(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Zu(e,"stretch")?HE($(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Re(e,t+1)!==115)break;case 6444:switch(Re(e,xt(e)-3-(~Zu(e,"!important")&&10))){case 107:return $(e,":",":"+M)+e;case 101:return $(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+M+(Re(e,14)===45?"inline-":"")+"box$3$1"+M+"$2$3$1"+Me+"$2box$3")+e}break;case 5936:switch(Re(e,t+11)){case 114:return M+e+Me+$(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return M+e+Me+$(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return M+e+Me+$(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return M+e+Me+e+e}return e}function zE(){if(oE)return ha.exports;oE=1;let e=zE();return ha.exports={default:e},ha.exports.default=e,ha.exports}function Pi(e,t,r){var n,i="";return(0,ke.default)(n=r.split(" ")).call(n,function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}function CU(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 RU(e){var t=(0,TE.default)(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function Ri(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 kt={name:i.name,styles:i.styles,next:kt},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)kt={name:a.name,styles:a.styles,next:kt},a=a.next;var s=o.styles+";";return s}return DU(e,t,r)}case"function":{if(e!==void 0){var l=kt,c=r(e);return kt=l,Ri(e,t,c)}break}}var d=r;if(t==null)return d;var u=t[d];return u!==void 0?u:d}function DU(e,t,r){var n="";if((0,xi.default)(r))for(var i=0;i<r.length;i++)n+=Ri(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]+"}":aE(s)&&(n+=$u(o)+":"+sE(o,s)+";")}else if((0,xi.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)aE(a[l])&&(n+=$u(o)+":"+sE(o,a[l])+";");else{var c=Ri(e,t,a);switch(o){case"animation":case"animationName":{n+=$u(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function pr(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="";kt=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=Ri(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Ri(r,t,e[s]),n){var l=o;i+=l[s]}lE.lastIndex=0;for(var c="",d;(d=lE.exec(i))!==null;)c+="-"+d[1];var u=CU(i)+c;return{name:u,styles:i,next:kt}}function N(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return pr(t)}function VU(e,t,r){var n=[],i=Pi(e,n,r);return n.length<2?r:i+t(n)}function b(e,t,r,n,i,o){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var c={type:e,props:l,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--WU,__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 O.vnode&&O.vnode(c),c}function qi(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=Ht(e());return Rr(()=>{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 P2(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=P2(t)),e.style.transform=r,e.style.transformOrigin="0 0"}function R2(e){let t=()=>nS(e);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}}function D2(s){var l=s,{elementTag:e="Image",src:t="",children:r,handleExposure:n,className:i,imgStyle:o}=l,a=ot(l,["elementTag","src","children","handleExposure","className","imgStyle"]);let c=N2(()=>{t&&n()});return e==="Image"?b("div",{className:i,style:{borderRadius:"8px"},children:Le("img",L(C({},a),{ref:c,src:t!=null?t:"",style:C({display:"block",width:"100%",height:"auto",objectFit:"cover",maxWidth:"100%",maxHeight:"100%",aspectRatio:"1 / 1",borderRadius:"8px"},o||{})}))}):b("div",L(C({},a),{ref:c,className:i,children:r}))}function q2(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?Le(i.type,L(C({},i.props),{style:L(C({},i.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0}),key:i.key||o})):i):e&&typeof e=="object"&&"type"in e?Le(e.type,L(C({},e.props),{style:L(C({},e.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0})})):e}function B2(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 wE(e,t,r){return La.call(t,"css")?b(_d,YE(e,t),r):b(e,t,r)}function G2(e,t,r){return La.call(t,"css")?b(_d,YE(e,t),r):b(e,t,r)}function iB(e,t){return Oe(e,0)^45?(((t<<2^Oe(e,0))<<2^Oe(e,1))<<2^Oe(e,2))<<2^Oe(e,3):0}function vS(e){return(0,cd.default)(e).call(e)}function oB(e,t){return(e=t.exec(e))?e[0]:e}function U(e,t,r){return e.replace(t,r)}function id(e,t){return(0,Vt.default)(e).call(e,t)}function Oe(e,t){return e.charCodeAt(t)|0}function Oi(e,t,r){return(0,ud.default)(e).call(e,t,r)}function At(e){return e.length}function Ed(e){return e.length}function va(e,t){return t.push(e),e}function aB(e,t){return(0,ki.default)(e).call(e,t).join("")}function Ba(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Ua,column:un,length:a,return:""}}function Ii(e,t){return nB(Ba("",null,null,"",null,null,0),e,{length:-e.length},t)}function sB(){return be}function lB(){return be=We>0?Oe(pn,--We):0,un--,be===10&&(un=1,Ua--),be}function tt(){return be=We<gS?Oe(pn,We++):0,un++,be===10&&(un=1,Ua++),be}function Pt(){return Oe(pn,We)}function Ia(){return We}function Mi(e,t){return Oi(pn,e,t)}function Ni(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 yS(e){return Ua=un=1,gS=At(pn=e),We=0,[]}function _S(e){return pn="",e}function Ea(e){return vS(Mi(We-1,od(e===91?e+2:e===40?e+1:e)))}function cB(e){for(;(be=Pt())&&be<33;)tt();return Ni(e)>2||Ni(be)>3?"":" "}function uB(e,t){for(;--t&&tt()&&!(be<48||be>102||be>57&&be<65||be>70&&be<97););return Mi(e,Ia()+(t<6&&Pt()==32&&tt()==32))}function od(e){for(;tt();)switch(be){case e:return We;case 34:case 39:e!==34&&e!==39&&od(be);break;case 40:e===41&&od(e);break;case 92:tt();break}return We}function dB(e,t){for(;tt()&&e+be!==57&&!(e+be===84&&Pt()===47););return"/*"+Mi(t,We-1)+"*"+ja(e===47?e:tt())}function pB(e){for(;!Ni(Pt());)tt();return Mi(e,We)}function fB(e){return _S(Sa("",null,null,null,[""],e=yS(e),0,[0],e))}function Sa(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,_=0,w="",A=i,R=o,P=n,E=w;y;)switch(m=_,_=tt()){case 40:if(m!=108&&Oe(E,u-1)==58){id(E+=U(Ea(_),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:E+=Ea(_);break;case 9:case 10:case 13:case 32:E+=cB(m);break;case 92:E+=uB(Ia()-1,7);continue;case 47:switch(Pt()){case 42:case 47:va(hB(dB(tt(),Ia()),t,r),l);break;default:E+="/"}break;case 123*g:s[c++]=At(E)*v;case 125*g:case 59:case 0:switch(_){case 0:case 125:y=0;case 59+d:v==-1&&(E=U(E,/\f/g,"")),f>0&&At(E)-u&&va(f>32?EE(E+";",n,r,u-1):EE(U(E," ","")+";",n,r,u-2),l);break;case 59:E+=";";default:if(va(P=IE(E,t,r,c,d,i,s,w,A=[],R=[],u),o),_===123)if(d===0)Sa(E,t,P,P,A,o,u,s,R);else switch(p===99&&Oe(E,3)===110?100:p){case 100:case 108:case 109:case 115:Sa(e,P,P,n&&va(IE(e,P,P,0,0,i,s,w,i,A=[],u),R),i,R,u,s,n?A:R);break;default:Sa(E,P,P,P,[""],R,0,s,R)}}c=d=f=0,g=v=1,w=E="",u=a;break;case 58:u=1+At(E),f=m;default:if(g<1){if(_==123)--g;else if(_==125&&g++==0&&lB()==125)continue}switch(E+=ja(_),_*g){case 38:v=d>0?1:(E+="\f",-1);break;case 44:s[c++]=(At(E)-1)*v,v=1;break;case 64:Pt()===45&&(E+=Ea(tt())),p=Pt(),d=u=At(w=E+=pB(Ia())),_++;break;case 45:m===45&&At(E)==2&&(g=0)}}return o}function IE(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=Ed(p),m=0,g=0,y=0;m<n;++m)for(var v=0,_=Oi(e,u+1,u=rB(g=a[m])),w=e;v<f;++v)(w=vS(g>0?p[v]+" "+_:U(_,/&\f/g,p[v])))&&(l[y++]=w);return Ba(e,t,r,i===0?wd:s,l,c,d)}function hB(e,t,r){return Ba(e,t,r,hS,ja(sB()),Oi(e,2,-2),0)}function EE(e,t,r,n){return Ba(e,t,r,Id,Oi(e,0,n),Oi(e,n+1,-1),n)}function sn(e,t){for(var r="",n=Ed(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function mB(e,t,r,n){switch(e.type){case tB:if(e.children.length)break;case eB:case Id:return e.return=e.return||e.value;case hS:return"";case mS:return e.return=e.value+"{"+sn(e.children,n)+"}";case wd:e.value=e.props.join(",")}return At(r=sn(e.children,n))?e.return=e.value+"{"+r+"}":""}function vB(e){var t=Ed(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 gB(e){return function(t){t.root||(t=t.return)&&e(t)}}function bS(e,t){switch(iB(e,t)){case 5103:return j+"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 j+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return j+e+Ca+e+je+e+e;case 6828:case 4268:return j+e+je+e+e;case 6165:return j+e+je+"flex-"+e+e;case 5187:return j+e+U(e,/(\w+).+(:[^]+)/,j+"box-$1$2"+je+"flex-$1$2")+e;case 5443:return j+e+je+"flex-item-"+U(e,/flex-|-self/,"")+e;case 4675:return j+e+je+"flex-line-pack"+U(e,/align-content|flex-|-self/,"")+e;case 5548:return j+e+je+U(e,"shrink","negative")+e;case 5292:return j+e+je+U(e,"basis","preferred-size")+e;case 6060:return j+"box-"+U(e,"-grow","")+j+e+je+U(e,"grow","positive")+e;case 4554:return j+U(e,/([^-])(transform)/g,"$1"+j+"$2")+e;case 6187:return U(U(U(e,/(zoom-|grab)/,j+"$1"),/(image-set)/,j+"$1"),e,"")+e;case 5495:case 3959:return U(e,/(image-set\([^]*)/,j+"$1$`$1");case 4968:return U(U(e,/(.+:)(flex-)?(.*)/,j+"box-pack:$3"+je+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+j+e+e;case 4095:case 3583:case 4068:case 2532:return U(e,/(.+)-inline(.+)/,j+"$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(At(e)-1-t>6)switch(Oe(e,t+1)){case 109:if(Oe(e,t+4)!==45)break;case 102:return U(e,/(.+:)(.+)-([^]+)/,"$1"+j+"$2-$3$1"+Ca+(Oe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~id(e,"stretch")?bS(U(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Oe(e,t+1)!==115)break;case 6444:switch(Oe(e,At(e)-3-(~id(e,"!important")&&10))){case 107:return U(e,":",":"+j)+e;case 101:return U(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+j+(Oe(e,14)===45?"inline-":"")+"box$3$1"+j+"$2$3$1"+je+"$2box$3")+e}break;case 5936:switch(Oe(e,t+11)){case 114:return j+e+je+U(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return j+e+je+U(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return j+e+je+U(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return j+e+je+e+e}return e}function xE(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Gu(e,t,r){var n=[],i=Pi(e,n,r);return n.length<2?r:i+t(n)}function Sd(){let e=!1,t=null,r=0,n=new Set,i=a=>I(this,null,function*(){let s=e;if(r++,e=!0,!s)try{let{iframe:l}=yield Si.acquire(),c=l.contentDocument;if(c)t=c.createElement("div"),t.id="loading-root",c.body.appendChild(t),rr(b(NB,{}),t);else throw new Error("Iframe document is not available.")}catch(l){console.error("[LoadingManager] Failed to show loading:",l),r=0,e=!1,Si.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&&(rr(null,t),(a=t.parentNode)==null||a.removeChild(t),t=null),Si.release()))};return{show:i,hide:o,get isLoading(){return e}}}var ad,AE,ke,Pa,xa,Tt,ka,xi,sd,Vt,ki,TE,CE,ld,cd,ud,l8,Wu,ln,ie,Ju,GI,Ai,PE,ye,WI,KI,QI,YI,ZI,XI,eE,NE,fe,Et,St,$t,on,dr,ya,Kj,Ae,Qj,FE,Me,Aa,M,pd,fd,hd,Xj,ME,eU,Oa,tU,Na,cn,UE,Ge,_e,dn,vU,gU,yU,nE,_U,bU,wU,IU,EU,$E,SU,iE,xU,kU,AU,VE,ha,oE,TU,vd,qa,PU,OU,NU,GE,aE,$u,sE,lE,kt,qU,WE,KE,cE,La,gd,QE,yd,Fa,LU,FU,MU,jU,UU,ed,td,YE,BU,_d,JU,uE,$U,HU,zU,GU,Hu,dE,Vu,zu,WU,pE,KU,QU,YU,ZU,XU,fE,e2,hE,t2,mE,r2,vE,n2,i2,o2,a2,s2,gE,l2,c2,u2,d2,p2,yE,f2,h2,m2,v2,g2,y2,_2,b2,w2,I2,E2,S2,x2,k2,A2,T2,ZE,XE,eS,rd,C2,tS,rS,Ta,Si,_E,O2,bd,N2,iS,oS,aS,L2,F2,M2,nd,j2,sS,U2,Li,Ma,bE,Pr,lS,nn,J2,$2,H2,V2,z2,ma,cS,uS,pe,W2,K2,dS,pS,fS,Fi,Q2,Y2,Z2,X2,je,Ca,j,hS,wd,Id,eB,mS,tB,rB,ja,nB,Ua,un,gS,We,be,pn,yB,_B,bB,SE,wB,IB,EB,SB,xB,kB,AB,TB,CB,PB,RB,ji,kE,OB,NB,c8,Or=T(()=>{"use strict";Ur();ad=ce(_v(),1),AE=ce(Cv(),1),ke=ce(Jv(),1),Pa=ce(ng(),1),xa=ce(pg(),1),Tt=ce(Pg(),1);Fo();Fo();ka=ce(hy(),1),xi=ce(wy(),1),sd=ce(Fb(),1),Vt=ce(Gb(),1),ki=ce(r0(),1),TE=ce(c0(),1),CE=ce(kw(),1),ld=ce(Uw(),1),cd=ce(nI(),1),ud=ce(hI(),1);Mu();Mu();l8=ce(RI(),1),Wu=ce(zI(),1),Ai=0,PE=[],ye=O,WI=ye.__b,KI=ye.__r,QI=ye.diffed,YI=ye.__c,ZI=ye.unmount,XI=ye.__;ye.__b=function(e){ie=null,WI&&WI(e)},ye.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),XI&&XI(e,t)},ye.__r=function(e){var t,r,n;KI&&KI(e),ln=0;var i=(ie=e.__c).__H;i&&(Ju===ie?(i.__h=[],ie.__h=[],(0,ke.default)(t=i.__).call(t,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,ke.default)(r=i.__h).call(r,ga),(0,ke.default)(n=i.__h).call(n,Ku),i.__h=[],ln=0)),Ju=ie},ye.diffed=function(e){var t;QI&&QI(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(PE.push(r)!==1&&GI===ye.requestAnimationFrame||((GI=ye.requestAnimationFrame)||Vj)(Hj)),(0,ke.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),Ju=ie=null},ye.__c=function(e,t){(0,xa.default)(t).call(t,function(r){try{var n,i;(0,ke.default)(n=r.__h).call(n,ga),r.__h=(0,ad.default)(i=r.__h).call(i,function(o){return!o.__||Ku(o)})}catch(o){(0,xa.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],ye.__e(o,r.__v)}}),YI&&YI(e,t)},ye.unmount=function(e){var t;ZI&&ZI(e);var r,n=e.__c;n&&n.__H&&((0,ke.default)(t=n.__H.__).call(t,function(i){try{ga(i)}catch(o){r=o}}),n.__H=void 0,r&&ye.__e(r,n.__v))};eE=typeof requestAnimationFrame=="function";NE={exports:{}},fe=NE.exports={};(function(){try{typeof Tt.default=="function"?Et=Tt.default:Et=Qu}catch(e){Et=Qu}try{typeof clearTimeout=="function"?St=clearTimeout:St=Yu}catch(e){St=Yu}})();$t=[],on=!1,ya=-1;fe.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];$t.push(new LE(e,t)),$t.length===1&&!on&&DE(qE)};LE.prototype.run=function(){this.fun.apply(null,this.array)};fe.title="browser";fe.browser=!0;fe.env={};fe.argv=[];fe.version="";fe.versions={};fe.on=zt;fe.addListener=zt;fe.once=zt;fe.off=zt;fe.removeListener=zt;fe.removeAllListeners=zt;fe.emit=zt;fe.prependListener=zt;fe.prependOnceListener=zt;fe.listeners=function(e){return[]};fe.binding=function(e){throw new Error("process.binding is not supported")};fe.cwd=function(){return"/"};fe.chdir=function(e){throw new Error("process.chdir is not supported")};fe.umask=function(){return 0};Kj=NE.exports,Ae=zj(Kj),Qj=ka.default||void 0||self;FE=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,ke.default)(r).call(r,this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Zj(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=Yj(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){var r;(0,ke.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}(),Me="-ms-",Aa="-moz-",M="-webkit-",pd="comm",fd="rule",hd="decl",Xj="@import",ME="@keyframes",eU=Math.abs,Oa=String.fromCharCode,tU=ld.default;Na=1,cn=1,UE=0,Ge=0,_e=0,dn="";vU=function(e,t,r){for(var n=0,i=0;n=i,i=Ct(),n===38&&i===12&&(t[r]=1),!Ci(i);)et();return Di(e,Ge)},gU=function(e,t){var r=-1,n=44;do switch(Ci(n)){case 0:n===38&&Ct()===12&&(t[r]=1),e[r]+=vU(Ge-1,t,r);break;case 2:e[r]+=ba(n);break;case 4:if(n===44){e[++r]=Ct()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Oa(n)}while(n=et());return e},yU=function(e,t){return JE(gU(BE(e),t))},nE=new sd.default,_U=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&&!nE.get(r))&&!n){nE.set(e,!0);for(var i=[],o=yU(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]}}},bU=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},wU="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",IU=function(e){var t;return e.type==="comm"&&(0,Vt.default)(t=e.children).call(t,wU)>-1},EU=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(IU(l))return;break}}(0,ke.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".')})}}}},$E=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},SU=function(e,t){for(var r=e-1;r>=0;r--)if(!$E(t[r]))return!0;return!1},iE=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},xU=function(e,t,r){$E(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."),iE(e)):SU(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),iE(e)))};kU=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case hd:e.return=HE(e.value,e.length);break;case ME:return an([wi(e,{value:$(e.value,"@","@"+M)})],n);case fd:if(e.length)return iU(e.props,function(i){switch(nU(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return an([wi(e,{props:[$(i,/:(read-\w+)/,":"+Aa+"$1")]})],n);case"::placeholder":return an([wi(e,{props:[$(i,/:(plac\w+)/,":"+M+"input-$1")]}),wi(e,{props:[$(i,/:(plac\w+)/,":"+Aa+"$1")]}),wi(e,{props:[$(i,/:(plac\w+)/,Me+"input-$1")]})],n)}return""})}},AU=[kU],VE=function(e){var t=e.key;if(Ae.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,ke.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,Vt.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||AU;if(Ae.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,ke.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=[_U,bU];Ae.env.NODE_ENV!=="production"&&l.push(EU({get compat(){return f.compat}}),xU);{var c,d=[fU,Ae.env.NODE_ENV!=="production"?function(m){m.root||(m.return?c.insert(m.return):m.value&&m.type!==pd&&c.insert(m.value+"{}"))}:mU(function(m){c.insert(m)})],u=hU((0,Pa.default)(l).call(l,n,d)),p=function(m){return an(dU(m),u)};s=function(m,g,y,v){c=y,Ae.env.NODE_ENV!=="production"&&(0,ki.default)(g)!==void 0&&(c={insert:function(_){y.insert(_+(0,ki.default)(g))}}),p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new FE({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},ha={exports:{}};zE();TU=!0;vd=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||TU===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},qa=function(e,t,r){vd(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)}};PU={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};OU=/[A-Z]|^ms/g,NU=/_EMO_([^_]+?)_([^]*?)_EMO_/g,GE=function(e){return e.charCodeAt(1)===45},aE=function(e){return e!=null&&typeof e!="boolean"},$u=RU(function(e){return GE(e)?e:e.replace(OU,"-$&").toLowerCase()}),sE=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(NU,function(r,n,i){return kt={name:n,styles:i,next:kt},n})}return PU[e]!==1&&!GE(e)&&typeof t=="number"&&t!==0?t+"px":t};lE=/label:\s*([^\s;{]+)\s*(;|$)/g;qU=function(e){return e()},WE=Dc?Dc:!1,KE=WE||qU,cE=WE||Qr,La={}.hasOwnProperty,gd=wr(typeof HTMLElement<"u"?VE({key:"css"}):null);Ae.env.NODE_ENV!=="production"&&(gd.displayName="EmotionCacheContext");QE=gd.Provider,yd=function(e){return Lc(function(t,r){var n=Zr(gd);return e(t,n,r)})},Fa=wr({});Ae.env.NODE_ENV!=="production"&&(Fa.displayName="EmotionThemeContext");LU=function(e){var t=e.split(".");return t[t.length-1]},FU=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 LU(t[1])},MU=new CE.default(["renderWithHooks","processChild","finishClassComponent","renderToString"]),jU=function(e){return e.replace(/\$/g,"-")},UU=function(e){if(e)for(var t=e.split(`
22
- `),r=0;r<t.length;r++){var n=FU(t[r]);if(n){if(MU.has(n))break;if(/^[A-Z]/.test(n))return jU(n)}}},ed="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",td="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",YE=function(e,t){var r,n;if(Ae.env.NODE_ENV!=="production"&&typeof t.css=="string"&&(0,Vt.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)La.call(t,o)&&(i[o]=t[o]);if(i[ed]=e,Ae.env.NODE_ENV!=="production"&&t.css&&(typeof t.css!="object"||typeof t.css.name!="string"||(0,Vt.default)(n=t.css.name).call(n,"-")===-1)){var a=UU(new Error().stack);a&&(i[td]=a)}return i},BU=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return vd(t,r,n),KE(function(){return qa(t,r,n)}),null},_d=yd(function(e,t,r){var n,i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[ed],a=[i],s="";typeof e.className=="string"?s=Pi(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var l=pr(a,void 0,Zr(Fa));if(Ae.env.NODE_ENV!=="production"&&(0,Vt.default)(n=l.name).call(n,"-")===-1){var c=e[td];c&&(l=pr([l,"label:"+c+";"]))}s+=t.key+"-"+l.name;var d={};for(var u in e)La.call(e,u)&&u!=="css"&&u!==ed&&(Ae.env.NODE_ENV==="production"||u!==td)&&(d[u]=e[u]);return d.ref=r,d.className=s,Le(Ze,null,Le(BU,{cache:t,serialized:l,isStringTag:typeof o=="string"}),Le(o,d))});Ae.env.NODE_ENV!=="production"&&(_d.displayName="EmotionCssPropInternal");JU={version:"11.10.5"},uE=!1,$U=yd(function(e,t){Ae.env.NODE_ENV!=="production"&&!uE&&(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?"),uE=!0);var r=e.styles,n=pr([r],void 0,Zr(Fa)),i=ai();return cE(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]),cE(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(n.next!==void 0&&qa(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});Ae.env.NODE_ENV!=="production"&&($U.displayName="EmotionGlobal");HU=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,xi.default)(o))a=e(o);else{Ae.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};zU=function(e){var t=e.cache,r=e.serializedArr;return KE(function(){for(var n=0;n<r.length;n++)qa(t,r[n],!1)}),null},GU=yd(function(e,t){var r=!1,n=[],i=function(){if(r&&Ae.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=pr(c,t.registered);return n.push(u),vd(t,u,!1),t.key+"-"+u.name},o=function(){if(r&&Ae.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 VU(t.registered,i,HU(c))},a={css:i,cx:o,theme:Zr(Fa)},s=e.children(a);return r=!0,Le(Ze,null,Le(zU,{cache:t,serializedArr:n}),s)});Ae.env.NODE_ENV!=="production"&&(GU.displayName="EmotionClassNames");Ae.env.NODE_ENV!=="production"&&(Hu=!0,dE=typeof jest<"u"||typeof vi<"u",Hu&&!dE&&(Vu=typeof ka.default<"u"?ka.default:Hu?window:Qj,zu="__EMOTION_REACT_"+JU.version.split(".")[0]+"__",Vu[zu]&&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."),Vu[zu]=!0));WU=0;pE={drawerBackdrop:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",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"}},KU=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 I(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 Zf=T(()=>{"use strict";Q()});var eh=T(()=>{"use strict"});var th=T(()=>{"use strict";D();Al()});var rh=T(()=>{"use strict";Q()});var wo,Fl=T(()=>{"use strict";eh();th();Q();rh();D();wo=new It});function jt(e,t){for(var r in t)e[r]=t[r];return e}function $l(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function qe(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?xo.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 So(e,a,n,i,null)}function So(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?++ah:i,__i:-1,__u:0};return i==null&&O.vnode!=null&&O.vnode(o),o}function Ze(e){return e.children}function Xe(e,t){this.props=e,this.context=t}function Jr(e,t){if(t==null)return e.__?Jr(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"?Jr(e):null}function ph(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 ph(e)}}function Ul(e){(!e.__d&&(e.__d=!0)&&Ir.push(e)&&!Eo.__r++||nh!==O.debounceRendering)&&((nh=O.debounceRendering)||sh)(Eo)}function Eo(){for(var e,t,r,n,i,o,a,s=1;Ir.length;)Ir.length>s&&Ir.sort(lh),e=Ir.shift(),s=Ir.length,e.__d&&(r=void 0,i=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=jt({},n)).__v=n.__v+1,O.vnode&&O.vnode(r),Hl(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?Jr(n):i,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,mh(o,r,a),r.__e!=i&&ph(r)));Eo.__r=0}function fh(e,t,r,n,i,o,a,s,l,c,d){var u,p,f,m,g,y,v=n&&n.__k||dh,_=t.length;for(l=F1(r,t,v,l,_),u=0;u<_;u++)(f=r.__k[u])!=null&&(p=f.__i===-1?Jn:v[f.__i]||Jn,f.__i=u,y=Hl(e,f,p,i,o,a,s,l,c,d),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&Vl(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=hh(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?So(null,a,null,null,null):$n(a)?So(Ze,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?So(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=M1(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=Jr(s)),gh(s,s));return n}function hh(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=hh(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=Jr(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Hn(e,t){return t=t||[],e==null||typeof e=="boolean"||($n(e)?e.some(function(r){Hn(r,t)}):t.push(e)),t}function M1(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 ih(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||q1.test(t)?r:r+"px"}function Io(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||ih(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||ih(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace(ch,"$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=Jl,e.addEventListener(t,o?jl:Ml,o)):e.removeEventListener(t,o?jl:Ml,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 oh(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=Jl++;else if(t.u<r.t)return;return r(O.event?O.event(t):t)}}}function Hl(e,t,r,n,i,o,a,s,l,c){var d,u,p,f,m,g,y,v,_,w,A,R,P,S,k,H,$e,He=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(l=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=O.__b)&&d(t);e:if(typeof He=="function")try{if(v=t.props,_="prototype"in He&&He.prototype.render,w=(d=He.contextType)&&n[d.__c],A=d?w?w.props.value:d.__:n,r.__c?y=(u=t.__c=r.__c).__=u.__E:(_?t.__c=u=new He(v,A):(t.__c=u=new Xe(v,A),u.constructor=He,u.render=U1),w&&w.sub(u),u.props=v,u.state||(u.state={}),u.context=A,u.__n=n,p=u.__d=!0,u.__h=[],u._sb=[]),_&&u.__s==null&&(u.__s=u.state),_&&He.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=jt({},u.__s)),jt(u.__s,He.getDerivedStateFromProps(v,u.__s))),f=u.props,m=u.state,u.__v=t,p)_&&He.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),_&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(_&&He.getDerivedStateFromProps==null&&v!==f&&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(yt){yt&&(yt.__=t)}),R=0;R<u._sb.length;R++)u.__h.push(u._sb[R]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,A),_&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,m,g)})}if(u.context=A,u.props=v,u.__P=e,u.__e=!1,P=O.__r,S=0,_){for(u.state=u.__s,u.__d=!1,P&&P(t),d=u.render(u.props,u.state,u.context),k=0;k<u._sb.length;k++)u.__h.push(u._sb[k]);u._sb=[]}else do u.__d=!1,P&&P(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=jt(jt({},n),u.getChildContext())),_&&!p&&u.getSnapshotBeforeUpdate!=null&&(g=u.getSnapshotBeforeUpdate(f,m)),H=d,d!=null&&d.type===Ze&&d.key==null&&(H=vh(d.props.children)),s=fh(e,$n(H)?H:[H],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(yt){if(t.__v=null,l||o!=null)if(yt.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($e=o.length;$e--;)$l(o[$e]);else t.__e=r.__e,t.__k=r.__k;O.__e(yt,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=j1(r.__e,t,r,n,i,o,a,l,c);return(d=O.diffed)&&d(t),128&t.__u?void 0:s}function mh(e,t,r){for(var n=0;n<r.length;n++)Vl(r[n],r[++n],r[++n]);O.__c&&O.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){O.__e(o,i.__v)}})}function vh(e){return typeof e!="object"||e==null?e:$n(e)?e.map(vh):jt({},e)}function j1(e,t,r,n,i,o,a,s,l){var c,d,u,p,f,m,g,y=r.props,v=t.props,_=t.type;if(_=="svg"?i="http://www.w3.org/2000/svg":_=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(c=0;c<o.length;c++)if((f=o[c])&&"setAttribute"in f==!!_&&(_?f.localName==_:f.nodeType==3)){e=f,o[c]=null;break}}if(e==null){if(_==null)return document.createTextNode(v);e=document.createElementNS(i,_,v.is&&v),s&&(O.__m&&O.__m(t,o),s=!1),o=null}if(_===null)y===v||s&&e.data===v||(e.data=v);else{if(o=o&&xo.call(e.childNodes),y=r.props||Jn,!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;Io(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||Io(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=""),fh(t.type==="template"?e.content:e,$n(p)?p:[p],t,r,n,_=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&Jr(r,0),s,l),o!=null)for(c=o.length;c--;)$l(o[c]);s||(c="value",_=="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[c]||_=="progress"&&!m||_=="option"&&m!==y[c])&&Io(e,c,m,y[c],i),c="checked",g!==void 0&&g!==e[c]&&Io(e,c,g,y[c],i))}return e}function Vl(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){O.__e(i,r)}}function gh(e,t,r){var n,i;if(O.unmount&&O.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||Vl(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){O.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&gh(n[i],t,r||typeof e.type!="function");r||$l(e.__e),e.__c=e.__=e.__e=void 0}function U1(e,t,r){return this.constructor(e,r)}function ir(e,t,r){var n,i,o,a;t==document&&(t=document.documentElement),O.__&&O.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],Hl(t,e=(!n&&r||t).__k=qe(Ze,null,[e]),i||Jn,Jn,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?xo.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),mh(o,e,a)}function Sr(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,Ul(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"+uh++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var xo,O,ah,Bl,Ir,nh,sh,lh,ch,Jl,Ml,jl,uh,Jn,dh,q1,$n,$r=T(()=>{Jn={},dh=[],q1=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,$n=Array.isArray;xo=dh.slice,O={__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}},ah=0,Bl=function(e){return e!=null&&e.constructor==null},Xe.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=jt({},this.state),typeof e=="function"&&(e=e(jt({},r),this.props)),e&&jt(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),Ul(this))},Xe.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Ul(this))},Xe.prototype.render=Ze,Ir=[],sh=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,lh=function(e,t){return e.__v.__b-t.__v.__b},Eo.__r=0,ch=/(PointerCapture)$|Capture$/i,Jl=0,Ml=oh(!1),jl=oh(!0),uh=0});var se=h((W9,yh)=>{"use strict";yh.exports=function(e){try{return!!e()}catch(t){return!0}}});var Hr=h((K9,_h)=>{"use strict";var B1=se();_h.exports=!B1(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var ge=h((Q9,Ih)=>{"use strict";var bh=Hr(),wh=Function.prototype,zl=wh.call,J1=bh&&wh.bind.bind(zl,zl);Ih.exports=bh?J1:function(e){return function(){return zl.apply(e,arguments)}}});var Ve=h((Y9,Sh)=>{"use strict";var $1=ge();Sh.exports=$1({}.isPrototypeOf)});var le=h((Gl,Eh)=>{"use strict";var Vn=function(e){return e&&e.Math===Math&&e};Eh.exports=Vn(typeof globalThis=="object"&&globalThis)||Vn(typeof window=="object"&&window)||Vn(typeof self=="object"&&self)||Vn(typeof global=="object"&&global)||Vn(typeof Gl=="object"&&Gl)||function(){return this}()||Function("return this")()});var Wl=h((X9,Th)=>{"use strict";var H1=Hr(),Ah=Function.prototype,xh=Ah.apply,kh=Ah.call;Th.exports=typeof Reflect=="object"&&Reflect.apply||(H1?kh.bind(xh):function(){return kh.apply(xh,arguments)})});var Ut=h((Z9,Ph)=>{"use strict";var Ch=ge(),V1=Ch({}.toString),z1=Ch("".slice);Ph.exports=function(e){return z1(V1(e),8,-1)}});var zn=h((eH,Rh)=>{"use strict";var G1=Ut(),W1=ge();Rh.exports=function(e){if(G1(e)==="Function")return W1(e)}});var Pe=h((tH,Oh)=>{"use strict";var Kl=typeof document=="object"&&document.all;Oh.exports=typeof Kl=="undefined"&&Kl!==void 0?function(e){return typeof e=="function"||e===Kl}:function(e){return typeof e=="function"}});var ze=h((rH,Nh)=>{"use strict";var K1=se();Nh.exports=!K1(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var ht=h((nH,Dh)=>{"use strict";var Q1=Hr(),ko=Function.prototype.call;Dh.exports=Q1?ko.bind(ko):function(){return ko.apply(ko,arguments)}});var Ql=h(Fh=>{"use strict";var Lh={}.propertyIsEnumerable,qh=Object.getOwnPropertyDescriptor,Y1=qh&&!Lh.call({1:2},1);Fh.f=Y1?function(t){var r=qh(this,t);return!!r&&r.enumerable}:Lh});var Gn=h((oH,Mh)=>{"use strict";Mh.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var Ao=h((aH,jh)=>{"use strict";var X1=ge(),Z1=se(),eT=Ut(),Yl=Object,tT=X1("".split);jh.exports=Z1(function(){return!Yl("z").propertyIsEnumerable(0)})?function(e){return eT(e)==="String"?tT(e,""):Yl(e)}:Yl});var Er=h((sH,Uh)=>{"use strict";Uh.exports=function(e){return e==null}});var xr=h((lH,Bh)=>{"use strict";var rT=Er(),nT=TypeError;Bh.exports=function(e){if(rT(e))throw new nT("Can't call method on "+e);return e}});var or=h((cH,Jh)=>{"use strict";var iT=Ao(),oT=xr();Jh.exports=function(e){return iT(oT(e))}});var xe=h((uH,$h)=>{"use strict";var aT=Pe();$h.exports=function(e){return typeof e=="object"?e!==null:aT(e)}});var Et=h((dH,Hh)=>{"use strict";Hh.exports={}});var Vr=h((pH,zh)=>{"use strict";var Xl=Et(),Zl=le(),sT=Pe(),Vh=function(e){return sT(e)?e:void 0};zh.exports=function(e,t){return arguments.length<2?Vh(Xl[e])||Vh(Zl[e]):Xl[e]&&Xl[e][t]||Zl[e]&&Zl[e][t]}});var To=h((fH,Kh)=>{"use strict";var lT=le(),Gh=lT.navigator,Wh=Gh&&Gh.userAgent;Kh.exports=Wh?String(Wh):""});var Po=h((hH,tm)=>{"use strict";var em=le(),ec=To(),Qh=em.process,Yh=em.Deno,Xh=Qh&&Qh.versions||Yh&&Yh.version,Zh=Xh&&Xh.v8,mt,Co;Zh&&(mt=Zh.split("."),Co=mt[0]>0&&mt[0]<4?1:+(mt[0]+mt[1]));!Co&&ec&&(mt=ec.match(/Edge\/(\d+)/),(!mt||mt[1]>=74)&&(mt=ec.match(/Chrome\/(\d+)/),mt&&(Co=+mt[1])));tm.exports=Co});var tc=h((mH,nm)=>{"use strict";var rm=Po(),cT=se(),uT=le(),dT=uT.String;nm.exports=!!Object.getOwnPropertySymbols&&!cT(function(){var e=Symbol("symbol detection");return!dT(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&rm&&rm<41})});var rc=h((vH,im)=>{"use strict";var pT=tc();im.exports=pT&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var nc=h((gH,om)=>{"use strict";var fT=Vr(),hT=Pe(),mT=Ve(),vT=rc(),gT=Object;om.exports=vT?function(e){return typeof e=="symbol"}:function(e){var t=fT("Symbol");return hT(t)&&mT(t.prototype,gT(e))}});var Wn=h((yH,am)=>{"use strict";var yT=String;am.exports=function(e){try{return yT(e)}catch(t){return"Object"}}});var kr=h((_H,sm)=>{"use strict";var _T=Pe(),bT=Wn(),wT=TypeError;sm.exports=function(e){if(_T(e))return e;throw new wT(bT(e)+" is not a function")}});var Ro=h((bH,lm)=>{"use strict";var IT=kr(),ST=Er();lm.exports=function(e,t){var r=e[t];return ST(r)?void 0:IT(r)}});var um=h((wH,cm)=>{"use strict";var ic=ht(),oc=Pe(),ac=xe(),ET=TypeError;cm.exports=function(e,t){var r,n;if(t==="string"&&oc(r=e.toString)&&!ac(n=ic(r,e))||oc(r=e.valueOf)&&!ac(n=ic(r,e))||t!=="string"&&oc(r=e.toString)&&!ac(n=ic(r,e)))return n;throw new ET("Can't convert object to primitive value")}});var zr=h((IH,dm)=>{"use strict";dm.exports=!0});var hm=h((SH,fm)=>{"use strict";var pm=le(),xT=Object.defineProperty;fm.exports=function(e,t){try{xT(pm,e,{value:t,configurable:!0,writable:!0})}catch(r){pm[e]=t}return t}});var Kn=h((EH,gm)=>{"use strict";var kT=zr(),AT=le(),TT=hm(),mm="__core-js_shared__",vm=gm.exports=AT[mm]||TT(mm,{});(vm.versions||(vm.versions=[])).push({version:"3.41.0",mode:kT?"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 sc=h((xH,_m)=>{"use strict";var ym=Kn();_m.exports=function(e,t){return ym[e]||(ym[e]=t||{})}});var Gr=h((kH,bm)=>{"use strict";var CT=xr(),PT=Object;bm.exports=function(e){return PT(CT(e))}});var et=h((AH,wm)=>{"use strict";var RT=ge(),OT=Gr(),NT=RT({}.hasOwnProperty);wm.exports=Object.hasOwn||function(t,r){return NT(OT(t),r)}});var Oo=h((TH,Im)=>{"use strict";var DT=ge(),LT=0,qT=Math.random(),FT=DT(1 .toString);Im.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+FT(++LT+qT,36)}});var Fe=h((CH,Em)=>{"use strict";var MT=le(),jT=sc(),Sm=et(),UT=Oo(),BT=tc(),JT=rc(),Wr=MT.Symbol,lc=jT("wks"),$T=JT?Wr.for||Wr:Wr&&Wr.withoutSetter||UT;Em.exports=function(e){return Sm(lc,e)||(lc[e]=BT&&Sm(Wr,e)?Wr[e]:$T("Symbol."+e)),lc[e]}});var Tm=h((PH,Am)=>{"use strict";var HT=ht(),xm=xe(),km=nc(),VT=Ro(),zT=um(),GT=Fe(),WT=TypeError,KT=GT("toPrimitive");Am.exports=function(e,t){if(!xm(e)||km(e))return e;var r=VT(e,KT),n;if(r){if(t===void 0&&(t="default"),n=HT(r,e,t),!xm(n)||km(n))return n;throw new WT("Can't convert object to primitive value")}return t===void 0&&(t="number"),zT(e,t)}});var cc=h((RH,Cm)=>{"use strict";var QT=Tm(),YT=nc();Cm.exports=function(e){var t=QT(e,"string");return YT(t)?t:t+""}});var dc=h((OH,Rm)=>{"use strict";var XT=le(),Pm=xe(),uc=XT.document,ZT=Pm(uc)&&Pm(uc.createElement);Rm.exports=function(e){return ZT?uc.createElement(e):{}}});var pc=h((NH,Om)=>{"use strict";var eC=ze(),tC=se(),rC=dc();Om.exports=!eC&&!tC(function(){return Object.defineProperty(rC("div"),"a",{get:function(){return 7}}).a!==7})});var fc=h(Dm=>{"use strict";var nC=ze(),iC=ht(),oC=Ql(),aC=Gn(),sC=or(),lC=cc(),cC=et(),uC=pc(),Nm=Object.getOwnPropertyDescriptor;Dm.f=nC?Nm:function(t,r){if(t=sC(t),r=lC(r),uC)try{return Nm(t,r)}catch(n){}if(cC(t,r))return aC(!iC(oC.f,t,r),t[r])}});var qm=h((LH,Lm)=>{"use strict";var dC=se(),pC=Pe(),fC=/#|\.prototype\./,Qn=function(e,t){var r=mC[hC(e)];return r===gC?!0:r===vC?!1:pC(t)?dC(t):!!t},hC=Qn.normalize=function(e){return String(e).replace(fC,".").toLowerCase()},mC=Qn.data={},vC=Qn.NATIVE="N",gC=Qn.POLYFILL="P";Lm.exports=Qn});var Yn=h((qH,Mm)=>{"use strict";var Fm=zn(),yC=kr(),_C=Hr(),bC=Fm(Fm.bind);Mm.exports=function(e,t){return yC(e),t===void 0?e:_C?bC(e,t):function(){return e.apply(t,arguments)}}});var hc=h((FH,jm)=>{"use strict";var wC=ze(),IC=se();jm.exports=wC&&IC(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var Bt=h((MH,Um)=>{"use strict";var SC=xe(),EC=String,xC=TypeError;Um.exports=function(e){if(SC(e))return e;throw new xC(EC(e)+" is not an object")}});var Jt=h(Jm=>{"use strict";var kC=ze(),AC=pc(),TC=hc(),No=Bt(),Bm=cc(),CC=TypeError,mc=Object.defineProperty,PC=Object.getOwnPropertyDescriptor,vc="enumerable",gc="configurable",yc="writable";Jm.f=kC?TC?function(t,r,n){if(No(t),r=Bm(r),No(n),typeof t=="function"&&r==="prototype"&&"value"in n&&yc in n&&!n[yc]){var i=PC(t,r);i&&i[yc]&&(t[r]=n.value,n={configurable:gc in n?n[gc]:i[gc],enumerable:vc in n?n[vc]:i[vc],writable:!1})}return mc(t,r,n)}:mc:function(t,r,n){if(No(t),r=Bm(r),No(n),AC)try{return mc(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new CC("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var Ar=h((UH,$m)=>{"use strict";var RC=ze(),OC=Jt(),NC=Gn();$m.exports=RC?function(e,t,r){return OC.f(e,t,NC(1,r))}:function(e,t,r){return e[t]=r,e}});var G=h((BH,Vm)=>{"use strict";var Xn=le(),DC=Wl(),LC=zn(),qC=Pe(),FC=fc().f,MC=qm(),Kr=Et(),jC=Yn(),Qr=Ar(),Hm=et();Kn();var UC=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 DC(e,this,arguments)};return t.prototype=e.prototype,t};Vm.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o=e.proto,a=n?Xn:i?Xn[r]:Xn[r]&&Xn[r].prototype,s=n?Kr:Kr[r]||Qr(Kr,r,{})[r],l=s.prototype,c,d,u,p,f,m,g,y,v;for(p in t)c=MC(n?p:r+(i?".":"#")+p,e.forced),d=!c&&a&&Hm(a,p),m=s[p],d&&(e.dontCallGetSet?(v=FC(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=jC(f,Xn):e.wrap&&d?y=UC(f):o&&qC(f)?y=LC(f):y=f,(e.sham||f&&f.sham||m&&m.sham)&&Qr(y,"sham",!0),Qr(s,p,y),o&&(u=r+"Prototype",Hm(Kr,u)||Qr(Kr,u,{}),Qr(Kr[u],p,f),e.real&&l&&(c||!l[p])&&Qr(l,p,f)))}});var Gm=h((JH,zm)=>{"use strict";var BC=Math.ceil,JC=Math.floor;zm.exports=Math.trunc||function(t){var r=+t;return(r>0?JC:BC)(r)}});var Zn=h(($H,Wm)=>{"use strict";var $C=Gm();Wm.exports=function(e){var t=+e;return t!==t||t===0?0:$C(t)}});var _c=h((HH,Km)=>{"use strict";var HC=Zn(),VC=Math.min;Km.exports=function(e){var t=HC(e);return t>0?VC(t,9007199254740991):0}});var Yr=h((VH,Qm)=>{"use strict";var zC=_c();Qm.exports=function(e){return zC(e.length)}});var ei=h((zH,Ym)=>{"use strict";var GC=Ut();Ym.exports=Array.isArray||function(t){return GC(t)==="Array"}});var Do=h((GH,Zm)=>{"use strict";var WC=Fe(),KC=WC("toStringTag"),Xm={};Xm[KC]="z";Zm.exports=String(Xm)==="[object z]"});var Xr=h((WH,ev)=>{"use strict";var QC=Do(),YC=Pe(),Lo=Ut(),XC=Fe(),ZC=XC("toStringTag"),eP=Object,tP=Lo(function(){return arguments}())==="Arguments",rP=function(e,t){try{return e[t]}catch(r){}};ev.exports=QC?Lo:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=rP(t=eP(e),ZC))=="string"?r:tP?Lo(t):(n=Lo(t))==="Object"&&YC(t.callee)?"Arguments":n}});var rv=h((KH,tv)=>{"use strict";var nP=ge(),iP=Pe(),bc=Kn(),oP=nP(Function.toString);iP(bc.inspectSource)||(bc.inspectSource=function(e){return oP(e)});tv.exports=bc.inspectSource});var Ic=h((QH,sv)=>{"use strict";var aP=ge(),sP=se(),nv=Pe(),lP=Xr(),cP=Vr(),uP=rv(),iv=function(){},ov=cP("Reflect","construct"),wc=/^\s*(?:class|function)\b/,dP=aP(wc.exec),pP=!wc.test(iv),ti=function(t){if(!nv(t))return!1;try{return ov(iv,[],t),!0}catch(r){return!1}},av=function(t){if(!nv(t))return!1;switch(lP(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return pP||!!dP(wc,uP(t))}catch(r){return!0}};av.sham=!0;sv.exports=!ov||sP(function(){var e;return ti(ti.call)||!ti(Object)||!ti(function(){e=!0})||e})?av:ti});var dv=h((YH,uv)=>{"use strict";var lv=ei(),fP=Ic(),hP=xe(),mP=Fe(),vP=mP("species"),cv=Array;uv.exports=function(e){var t;return lv(e)&&(t=e.constructor,fP(t)&&(t===cv||lv(t.prototype))?t=void 0:hP(t)&&(t=t[vP],t===null&&(t=void 0))),t===void 0?cv:t}});var Sc=h((XH,pv)=>{"use strict";var gP=dv();pv.exports=function(e,t){return new(gP(e))(t===0?0:t)}});var sr=h((ZH,hv)=>{"use strict";var yP=Yn(),_P=ge(),bP=Ao(),wP=Gr(),IP=Yr(),SP=Sc(),fv=_P([].push),ar=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=wP(l),f=bP(p),m=IP(f),g=yP(c,d),y=0,v=u||SP,_=t?v(l,m):r||a?v(l,0):void 0,w,A;m>y;y++)if((s||y in f)&&(w=f[y],A=g(w,y,p),e))if(t)_[y]=A;else if(A)switch(e){case 3:return!0;case 5:return w;case 6:return y;case 2:fv(_,w)}else switch(e){case 4:return!1;case 7:fv(_,w)}return o?-1:n||i?i:_}};hv.exports={forEach:ar(0),map:ar(1),filter:ar(2),some:ar(3),every:ar(4),find:ar(5),findIndex:ar(6),filterReject:ar(7)}});var ri=h((eV,mv)=>{"use strict";var EP=se(),xP=Fe(),kP=Po(),AP=xP("species");mv.exports=function(e){return kP>=51||!EP(function(){var t=[],r=t.constructor={};return r[AP]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var vv=h(()=>{"use strict";var TP=G(),CP=sr().filter,PP=ri(),RP=PP("filter");TP({target:"Array",proto:!0,forced:!RP},{filter:function(t){return CP(this,t,arguments.length>1?arguments[1]:void 0)}})});var ct=h((nV,gv)=>{"use strict";var OP=le(),NP=Et();gv.exports=function(e,t){var r=NP[e+"Prototype"],n=r&&r[t];if(n)return n;var i=OP[e],o=i&&i.prototype;return o&&o[t]}});var _v=h((iV,yv)=>{"use strict";vv();var DP=ct();yv.exports=DP("Array","filter")});var wv=h((oV,bv)=>{"use strict";var LP=Ve(),qP=_v(),Ec=Array.prototype;bv.exports=function(e){var t=e.filter;return e===Ec||LP(Ec,e)&&t===Ec.filter?qP:t}});var Sv=h((aV,Iv)=>{"use strict";var FP=wv();Iv.exports=FP});var xv=h((sV,Ev)=>{Ev.exports=Sv()});var ni=h((lV,kv)=>{"use strict";var MP=se();kv.exports=function(e,t){var r=[][e];return!!r&&MP(function(){r.call(null,t||function(){return 1},1)})}});var Av=h(()=>{"use strict";var jP=G(),UP=sr().every,BP=ni(),JP=BP("every");jP({target:"Array",proto:!0,forced:!JP},{every:function(t){return UP(this,t,arguments.length>1?arguments[1]:void 0)}})});var Cv=h((dV,Tv)=>{"use strict";Av();var $P=ct();Tv.exports=$P("Array","every")});var Rv=h((pV,Pv)=>{"use strict";var HP=Ve(),VP=Cv(),xc=Array.prototype;Pv.exports=function(e){var t=e.every;return e===xc||HP(xc,e)&&t===xc.every?VP:t}});var Nv=h((fV,Ov)=>{"use strict";var zP=Rv();Ov.exports=zP});var Lv=h((hV,Dv)=>{Dv.exports=Nv()});var Fv=h((mV,qv)=>{"use strict";var GP=sr().forEach,WP=ni(),KP=WP("forEach");qv.exports=KP?[].forEach:function(t){return GP(this,t,arguments.length>1?arguments[1]:void 0)}});var jv=h(()=>{"use strict";var QP=G(),Mv=Fv();QP({target:"Array",proto:!0,forced:[].forEach!==Mv},{forEach:Mv})});var Bv=h((yV,Uv)=>{"use strict";jv();var YP=ct();Uv.exports=YP("Array","forEach")});var $v=h((_V,Jv)=>{"use strict";var XP=Bv();Jv.exports=XP});var Hv=h(()=>{});var zv=h((IV,Vv)=>{"use strict";var ZP=Xr(),eR=et(),tR=Ve(),rR=$v();Hv();var kc=Array.prototype,nR={DOMTokenList:!0,NodeList:!0};Vv.exports=function(e){var t=e.forEach;return e===kc||tR(kc,e)&&t===kc.forEach||eR(nR,ZP(e))?rR:t}});var Wv=h((SV,Gv)=>{Gv.exports=zv()});var Qv=h((EV,Kv)=>{"use strict";var iR=TypeError,oR=9007199254740991;Kv.exports=function(e){if(e>oR)throw iR("Maximum allowed index exceeded");return e}});var Ac=h((xV,Yv)=>{"use strict";var aR=ze(),sR=Jt(),lR=Gn();Yv.exports=function(e,t,r){aR?sR.f(e,t,lR(0,r)):e[t]=r}});var tg=h(()=>{"use strict";var cR=G(),uR=se(),dR=ei(),pR=xe(),fR=Gr(),hR=Yr(),Xv=Qv(),Zv=Ac(),mR=Sc(),vR=ri(),gR=Fe(),yR=Po(),eg=gR("isConcatSpreadable"),_R=yR>=51||!uR(function(){var e=[];return e[eg]=!1,e.concat()[0]!==e}),bR=function(e){if(!pR(e))return!1;var t=e[eg];return t!==void 0?!!t:dR(e)},wR=!_R||!vR("concat");cR({target:"Array",proto:!0,arity:1,forced:wR},{concat:function(t){var r=fR(this),n=mR(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],bR(c))for(l=hR(c),Xv(i+l),a=0;a<l;a++,i++)a in c&&Zv(n,i,c[a]);else Xv(i+1),Zv(n,i++,c);return n.length=i,n}})});var ng=h((TV,rg)=>{"use strict";tg();var IR=ct();rg.exports=IR("Array","concat")});var og=h((CV,ig)=>{"use strict";var SR=Ve(),ER=ng(),Tc=Array.prototype;ig.exports=function(e){var t=e.concat;return e===Tc||SR(Tc,e)&&t===Tc.concat?ER:t}});var sg=h((PV,ag)=>{"use strict";var xR=og();ag.exports=xR});var cg=h((RV,lg)=>{lg.exports=sg()});var ug=h(()=>{"use strict";var kR=G(),AR=sr().some,TR=ni(),CR=TR("some");kR({target:"Array",proto:!0,forced:!CR},{some:function(t){return AR(this,t,arguments.length>1?arguments[1]:void 0)}})});var pg=h((DV,dg)=>{"use strict";ug();var PR=ct();dg.exports=PR("Array","some")});var hg=h((LV,fg)=>{"use strict";var RR=Ve(),OR=pg(),Cc=Array.prototype;fg.exports=function(e){var t=e.some;return e===Cc||RR(Cc,e)&&t===Cc.some?OR:t}});var vg=h((qV,mg)=>{"use strict";var NR=hg();mg.exports=NR});var yg=h((FV,gg)=>{gg.exports=vg()});var bg=h((MV,_g)=>{"use strict";var ii=le(),DR=To(),LR=Ut(),qo=function(e){return DR.slice(0,e.length)===e};_g.exports=function(){return qo("Bun/")?"BUN":qo("Cloudflare-Workers")?"CLOUDFLARE":qo("Deno/")?"DENO":qo("Node.js/")?"NODE":ii.Bun&&typeof Bun.version=="string"?"BUN":ii.Deno&&typeof Deno.version=="object"?"DENO":LR(ii.process)==="process"?"NODE":ii.window&&ii.document?"BROWSER":"REST"}()});var oi=h((jV,wg)=>{"use strict";var qR=ge();wg.exports=qR([].slice)});var Sg=h((UV,Ig)=>{"use strict";var FR=TypeError;Ig.exports=function(e,t){if(e<t)throw new FR("Not enough arguments");return e}});var Pc=h((BV,xg)=>{"use strict";var Eg=le(),MR=Wl(),jR=Pe(),UR=bg(),BR=To(),JR=oi(),$R=Sg(),HR=Eg.Function,VR=/MSIE .\./.test(BR)||UR==="BUN"&&function(){var e=Eg.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();xg.exports=function(e,t){var r=t?2:1;return VR?function(n,i){var o=$R(arguments.length,1)>r,a=jR(n)?n:HR(n),s=o?JR(arguments,r):[],l=o?function(){MR(a,this,s)}:a;return t?e(l,i):e(l)}:e}});var Tg=h(()=>{"use strict";var zR=G(),Ag=le(),GR=Pc(),kg=GR(Ag.setInterval,!0);zR({global:!0,bind:!0,forced:Ag.setInterval!==kg},{setInterval:kg})});var Rg=h(()=>{"use strict";var WR=G(),Pg=le(),KR=Pc(),Cg=KR(Pg.setTimeout,!0);WR({global:!0,bind:!0,forced:Pg.setTimeout!==Cg},{setTimeout:Cg})});var Og=h(()=>{"use strict";Tg();Rg()});var Dg=h((WV,Ng)=>{"use strict";Og();var QR=Et();Ng.exports=QR.setTimeout});var qg=h((KV,Lg)=>{Lg.exports=Dg()});function si(e,t){de.__h&&de.__h(Z,e,ai||t),ai=0;var r=Z.__H||(Z.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Mo(e){return ai=1,zg(Gg,e)}function zg(e,t,r){var n=si(Tr++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Gg(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=Z,!Z.__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};Z.__f=!0;var o=Z.shouldComponentUpdate,a=Z.componentWillUpdate;Z.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)},Z.shouldComponentUpdate=i}return n.__N||n.__}function li(e,t){var r=si(Tr++,3);!de.__s&&Nc(r.__H,t)&&(r.__=e,r.u=t,Z.__H.__h.push(r))}function Zr(e,t){var r=si(Tr++,4);!de.__s&&Nc(r.__H,t)&&(r.__=e,r.u=t,Z.__h.push(r))}function ci(e){return ai=5,ui(function(){return{current:e}},[])}function ui(e,t){var r=si(Tr++,7);return Nc(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function en(e,t){return ai=8,ui(function(){return e},t)}function tn(e){var t=Z.context[e.__c],r=si(Tr++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(Z)),t.props.value):e.__}function YR(){for(var e;e=Vg.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Fo),e.__H.__h.forEach(Oc),e.__H.__h=[]}catch(t){e.__H.__h=[],de.__e(t,e.__v)}}function XR(e){var t,r=function(){clearTimeout(n),Hg&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Hg&&(t=requestAnimationFrame(r))}function Fo(e){var t=Z,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),Z=t}function Oc(e){var t=Z;e.__c=e.__(),Z=t}function Nc(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Gg(e,t){return typeof t=="function"?t(e):t}var Tr,Z,Rc,Fg,ai,Vg,de,Mg,jg,Ug,Bg,Jg,$g,Hg,Dc=T(()=>{$r();ai=0,Vg=[],de=O,Mg=de.__b,jg=de.__r,Ug=de.diffed,Bg=de.__c,Jg=de.unmount,$g=de.__;de.__b=function(e){Z=null,Mg&&Mg(e)},de.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),$g&&$g(e,t)},de.__r=function(e){jg&&jg(e),Tr=0;var t=(Z=e.__c).__H;t&&(Rc===Z?(t.__h=[],Z.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Fo),t.__h.forEach(Oc),t.__h=[],Tr=0)),Rc=Z},de.diffed=function(e){Ug&&Ug(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Vg.push(t)!==1&&Fg===de.requestAnimationFrame||((Fg=de.requestAnimationFrame)||XR)(YR)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Rc=Z=null},de.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Fo),r.__h=r.__h.filter(function(n){return!n.__||Oc(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],de.__e(n,r.__v)}}),Bg&&Bg(e,t)},de.unmount=function(e){Jg&&Jg(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Fo(n)}catch(i){t=i}}),r.__H=void 0,t&&de.__e(t,r.__v))};Hg=typeof requestAnimationFrame=="function"});function ny(e,t){for(var r in t)e[r]=t[r];return e}function qc(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 Wg(e,t){this.props=e,this.context=t}function Mc(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:qc(this.props,i)}function n(i){return this.shouldComponentUpdate=r,qe(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function jc(e){function t(r){var n=ny({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=ZR,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function iy(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=ny({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return iy(n,t,r)})),e}function oy(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return oy(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 Lc(){this.__u=0,this.o=null,this.__b=null}function ay(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function jo(){this.i=null,this.l=null}function Uc(e,t,r){return t.__k==null&&(t.textContent=""),ir(e,t),typeof r=="function"&&r(),e?e.__c:null}function sO(){}function lO(){return this.cancelBubble}function cO(){return this.defaultPrevented}var Fc,Kg,ZR,eO,Qg,Yg,tO,rO,nO,iO,oO,aO,Xg,sy,uO,Zg,ey,ty,Uo=T(()=>{$r();$r();Dc();Dc();Fc=Zr;(Wg.prototype=new Xe).isPureReactComponent=!0,Wg.prototype.shouldComponentUpdate=function(e,t){return qc(this.props,e)||qc(this.state,t)};Kg=O.__b;O.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Kg&&Kg(e)};ZR=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;eO=O.__e;O.__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)}eO(e,t,r,n)};Qg=O.unmount;O.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Qg&&Qg(e)},(Lc.prototype=new Xe).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=ay(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]=oy(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)},Lc.prototype.componentWillUnmount=function(){this.o=[]},Lc.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]=iy(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&qe(Ze,null,e.fallback);return i&&(i.__u&=-33),[qe(Ze,null,t.__a?null:e.children),i]};Yg=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]}};(jo.prototype=new Xe).__a=function(e){var t=this,r=ay(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),Yg(t,e,n)):i()};r?r(o):o()}},jo.prototype.render=function(e){this.i=null,this.l=new Map;var t=Hn(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},jo.prototype.componentDidUpdate=jo.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){Yg(e,r,t)})};tO=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,rO=/^(?: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]/,nO=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,iO=/[A-Z0-9]/g,oO=typeof document!="undefined",aO=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};Xe.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Xe.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});Xg=O.event;O.event=function(e){return Xg&&(e=Xg(e)),e.persist=sO,e.isPropagationStopped=lO,e.isDefaultPrevented=cO,e.nativeEvent=e};uO={enumerable:!1,configurable:!0,get:function(){return this.class}},Zg=O.vnode;O.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||oO&&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"||aO(r.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":nO.test(a)&&(a=l):l=a="oninput":o&&rO.test(a)?a=a.replace(iO,"-$&").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=Hn(r.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=Hn(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",uO)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=tO,Zg&&Zg(e)};ey=O.__r;O.__r=function(e){ey&&ey(e),sy=e.__c};ty=O.diffed;O.diffed=function(e){ty&&ty(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),sy=null}});var Jc=h(()=>{"use strict";var pO=G(),Bc=le();pO({global:!0,forced:Bc.globalThis!==Bc},{globalThis:Bc})});var ly=h(()=>{"use strict";Jc()});var uy=h((dz,cy)=>{"use strict";Jc();cy.exports=le()});var py=h((pz,dy)=>{"use strict";var fO=uy();dy.exports=fO});var hy=h((fz,fy)=>{"use strict";var hO=py();fy.exports=hO});var vy=h((hz,my)=>{"use strict";ly();var mO=hy();my.exports=mO});var yy=h((mz,gy)=>{"use strict";gy.exports=vy()});var by=h((vz,_y)=>{_y.exports=yy()});var wy=h(()=>{"use strict";var vO=G(),gO=ei();vO({target:"Array",stat:!0},{isArray:gO})});var Sy=h((_z,Iy)=>{"use strict";wy();var yO=Et();Iy.exports=yO.Array.isArray});var xy=h((bz,Ey)=>{"use strict";var _O=Sy();Ey.exports=_O});var Ay=h((wz,ky)=>{ky.exports=xy()});var Cy=h((Iz,Ty)=>{"use strict";Ty.exports=function(){}});var Cr=h((Sz,Py)=>{"use strict";Py.exports={}});var $c=h((Ez,Oy)=>{"use strict";var bO=le(),wO=Pe(),Ry=bO.WeakMap;Oy.exports=wO(Ry)&&/native code/.test(String(Ry))});var Bo=h((xz,Dy)=>{"use strict";var IO=sc(),SO=Oo(),Ny=IO("keys");Dy.exports=function(e){return Ny[e]||(Ny[e]=SO(e))}});var di=h((kz,Ly)=>{"use strict";Ly.exports={}});var Rr=h((Az,My)=>{"use strict";var EO=$c(),Fy=le(),xO=xe(),kO=Ar(),Hc=et(),Vc=Kn(),AO=Bo(),TO=di(),qy="Object already initialized",zc=Fy.TypeError,CO=Fy.WeakMap,Jo,pi,$o,PO=function(e){return $o(e)?pi(e):Jo(e,{})},RO=function(e){return function(t){var r;if(!xO(t)||(r=pi(t)).type!==e)throw new zc("Incompatible receiver, "+e+" required");return r}};EO||Vc.state?(vt=Vc.state||(Vc.state=new CO),vt.get=vt.get,vt.has=vt.has,vt.set=vt.set,Jo=function(e,t){if(vt.has(e))throw new zc(qy);return t.facade=e,vt.set(e,t),t},pi=function(e){return vt.get(e)||{}},$o=function(e){return vt.has(e)}):(Pr=AO("state"),TO[Pr]=!0,Jo=function(e,t){if(Hc(e,Pr))throw new zc(qy);return t.facade=e,kO(e,Pr,t),t},pi=function(e){return Hc(e,Pr)?e[Pr]:{}},$o=function(e){return Hc(e,Pr)});var vt,Pr;My.exports={set:Jo,get:pi,has:$o,enforce:PO,getterFor:RO}});var Kc=h((Tz,Uy)=>{"use strict";var Gc=ze(),OO=et(),jy=Function.prototype,NO=Gc&&Object.getOwnPropertyDescriptor,Wc=OO(jy,"name"),DO=Wc&&(function(){}).name==="something",LO=Wc&&(!Gc||Gc&&NO(jy,"name").configurable);Uy.exports={EXISTS:Wc,PROPER:DO,CONFIGURABLE:LO}});var Qc=h((Cz,By)=>{"use strict";var qO=Zn(),FO=Math.max,MO=Math.min;By.exports=function(e,t){var r=qO(e);return r<0?FO(r+t,0):MO(r,t)}});var Yc=h((Pz,$y)=>{"use strict";var jO=or(),UO=Qc(),BO=Yr(),Jy=function(e){return function(t,r,n){var i=jO(t),o=BO(i);if(o===0)return!e&&-1;var a=UO(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}};$y.exports={includes:Jy(!0),indexOf:Jy(!1)}});var Zc=h((Rz,Vy)=>{"use strict";var JO=ge(),Xc=et(),$O=or(),HO=Yc().indexOf,VO=di(),Hy=JO([].push);Vy.exports=function(e,t){var r=$O(e),n=0,i=[],o;for(o in r)!Xc(VO,o)&&Xc(r,o)&&Hy(i,o);for(;t.length>n;)Xc(r,o=t[n++])&&(~HO(i,o)||Hy(i,o));return i}});var Ho=h((Oz,zy)=>{"use strict";zy.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var eu=h((Nz,Gy)=>{"use strict";var zO=Zc(),GO=Ho();Gy.exports=Object.keys||function(t){return zO(t,GO)}});var Ky=h(Wy=>{"use strict";var WO=ze(),KO=hc(),QO=Jt(),YO=Bt(),XO=or(),ZO=eu();Wy.f=WO&&!KO?Object.defineProperties:function(t,r){YO(t);for(var n=XO(r),i=ZO(r),o=i.length,a=0,s;o>a;)QO.f(t,s=i[a++],n[s]);return t}});var Yy=h((Lz,Qy)=>{"use strict";var eN=Vr();Qy.exports=eN("document","documentElement")});var fi=h((qz,i_)=>{"use strict";var tN=Bt(),rN=Ky(),Xy=Ho(),nN=di(),iN=Yy(),oN=dc(),aN=Bo(),Zy=">",e_="<",ru="prototype",nu="script",r_=aN("IE_PROTO"),tu=function(){},n_=function(e){return e_+nu+Zy+e+e_+"/"+nu+Zy},t_=function(e){e.write(n_("")),e.close();var t=e.parentWindow.Object;return e=null,t},sN=function(){var e=oN("iframe"),t="java"+nu+":",r;return e.style.display="none",iN.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(n_("document.F=Object")),r.close(),r.F},Vo,zo=function(){try{Vo=new ActiveXObject("htmlfile")}catch(t){}zo=typeof document!="undefined"?document.domain&&Vo?t_(Vo):sN():t_(Vo);for(var e=Xy.length;e--;)delete zo[ru][Xy[e]];return zo()};nN[r_]=!0;i_.exports=Object.create||function(t,r){var n;return t!==null?(tu[ru]=tN(t),n=new tu,tu[ru]=null,n[r_]=t):n=zo(),r===void 0?n:rN.f(n,r)}});var a_=h((Fz,o_)=>{"use strict";var lN=se();o_.exports=!lN(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var ou=h((Mz,l_)=>{"use strict";var cN=et(),uN=Pe(),dN=Gr(),pN=Bo(),fN=a_(),s_=pN("IE_PROTO"),iu=Object,hN=iu.prototype;l_.exports=fN?iu.getPrototypeOf:function(e){var t=dN(e);if(cN(t,s_))return t[s_];var r=t.constructor;return uN(r)&&t instanceof r?r.prototype:t instanceof iu?hN:null}});var Go=h((jz,c_)=>{"use strict";var mN=Ar();c_.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:mN(e,t,r),e}});var cu=h((Uz,p_)=>{"use strict";var vN=se(),gN=Pe(),yN=xe(),_N=fi(),u_=ou(),bN=Go(),wN=Fe(),IN=zr(),lu=wN("iterator"),d_=!1,$t,au,su;[].keys&&(su=[].keys(),"next"in su?(au=u_(u_(su)),au!==Object.prototype&&($t=au)):d_=!0);var SN=!yN($t)||vN(function(){var e={};return $t[lu].call(e)!==e});SN?$t={}:IN&&($t=_N($t));gN($t[lu])||bN($t,lu,function(){return this});p_.exports={IteratorPrototype:$t,BUGGY_SAFARI_ITERATORS:d_}});var h_=h((Bz,f_)=>{"use strict";var EN=Do(),xN=Xr();f_.exports=EN?{}.toString:function(){return"[object "+xN(this)+"]"}});var hi=h((Jz,v_)=>{"use strict";var kN=Do(),AN=Jt().f,TN=Ar(),CN=et(),PN=h_(),RN=Fe(),m_=RN("toStringTag");v_.exports=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(CN(i,m_)||AN(i,m_,{configurable:!0,value:t}),n&&!kN&&TN(i,"toString",PN))}});var y_=h(($z,g_)=>{"use strict";var ON=cu().IteratorPrototype,NN=fi(),DN=Gn(),LN=hi(),qN=Cr(),FN=function(){return this};g_.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=NN(ON,{next:DN(+!n,r)}),LN(e,i,!1,!0),qN[i]=FN,e}});var b_=h((Hz,__)=>{"use strict";var MN=ge(),jN=kr();__.exports=function(e,t,r){try{return MN(jN(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var I_=h((Vz,w_)=>{"use strict";var UN=xe();w_.exports=function(e){return UN(e)||e===null}});var E_=h((zz,S_)=>{"use strict";var BN=I_(),JN=String,$N=TypeError;S_.exports=function(e){if(BN(e))return e;throw new $N("Can't set "+JN(e)+" as a prototype")}});var k_=h((Gz,x_)=>{"use strict";var HN=b_(),VN=xe(),zN=xr(),GN=E_();x_.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=HN(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return zN(i),GN(o),VN(i)&&(e?r(i,o):i.__proto__=o),i}}():void 0)});var Qo=h((Wz,q_)=>{"use strict";var WN=G(),KN=ht(),Wo=zr(),D_=Kc(),QN=Pe(),YN=y_(),A_=ou(),T_=k_(),XN=hi(),ZN=Ar(),uu=Go(),eD=Fe(),C_=Cr(),L_=cu(),tD=D_.PROPER,rD=D_.CONFIGURABLE,P_=L_.IteratorPrototype,Ko=L_.BUGGY_SAFARI_ITERATORS,mi=eD("iterator"),R_="keys",gi="values",O_="entries",N_=function(){return this};q_.exports=function(e,t,r,n,i,o,a){YN(r,t,n);var s=function(v){if(v===i&&p)return p;if(!Ko&&v&&v in d)return d[v];switch(v){case R_:return function(){return new r(this,v)};case gi:return function(){return new r(this,v)};case O_:return function(){return new r(this,v)}}return function(){return new r(this)}},l=t+" Iterator",c=!1,d=e.prototype,u=d[mi]||d["@@iterator"]||i&&d[i],p=!Ko&&u||s(i),f=t==="Array"&&d.entries||u,m,g,y;if(f&&(m=A_(f.call(new e)),m!==Object.prototype&&m.next&&(!Wo&&A_(m)!==P_&&(T_?T_(m,P_):QN(m[mi])||uu(m,mi,N_)),XN(m,l,!0,!0),Wo&&(C_[l]=N_))),tD&&i===gi&&u&&u.name!==gi&&(!Wo&&rD?ZN(d,"name",gi):(c=!0,p=function(){return KN(u,this)})),i)if(g={values:s(gi),keys:o?p:s(R_),entries:s(O_)},a)for(y in g)(Ko||c||!(y in d))&&uu(d,y,g[y]);else WN({target:t,proto:!0,forced:Ko||c},g);return(!Wo||a)&&d[mi]!==p&&uu(d,mi,p,{name:i}),C_[t]=p,g}});var Yo=h((Kz,F_)=>{"use strict";F_.exports=function(e,t){return{value:e,done:t}}});var Zo=h((Qz,J_)=>{"use strict";var nD=or(),du=Cy(),M_=Cr(),U_=Rr(),iD=Jt().f,oD=Qo(),Xo=Yo(),aD=zr(),sD=ze(),B_="Array Iterator",lD=U_.set,cD=U_.getterFor(B_);J_.exports=oD(Array,"Array",function(e,t){lD(this,{type:B_,target:nD(e),index:0,kind:t})},function(){var e=cD(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,Xo(void 0,!0);switch(e.kind){case"keys":return Xo(r,!1);case"values":return Xo(t[r],!1)}return Xo([r,t[r]],!1)},"values");var j_=M_.Arguments=M_.Array;du("keys");du("values");du("entries");if(!aD&&sD&&j_.name!=="values")try{iD(j_,"name",{value:"values"})}catch(e){}});var pu=h(()=>{});var fu=h((Zz,$_)=>{"use strict";var uD=se();$_.exports=!uD(function(){return Object.isExtensible(Object.preventExtensions({}))})});var ea=h((eG,H_)=>{"use strict";var dD=Go();H_.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:dD(e,n,t[n],r);return e}});var hu=h(V_=>{"use strict";var pD=Zc(),fD=Ho(),hD=fD.concat("length","prototype");V_.f=Object.getOwnPropertyNames||function(t){return pD(t,hD)}});var K_=h((rG,W_)=>{"use strict";var mD=Ut(),vD=or(),z_=hu().f,gD=oi(),G_=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],yD=function(e){try{return z_(e)}catch(t){return gD(G_)}};W_.exports.f=function(t){return G_&&mD(t)==="Window"?yD(t):z_(vD(t))}});var Y_=h((nG,Q_)=>{"use strict";var _D=se();Q_.exports=_D(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var eb=h((iG,Z_)=>{"use strict";var bD=se(),wD=xe(),ID=Ut(),X_=Y_(),ta=Object.isExtensible,SD=bD(function(){ta(1)});Z_.exports=SD||X_?function(t){return!wD(t)||X_&&ID(t)==="ArrayBuffer"?!1:ta?ta(t):!0}:ta});var yi=h((oG,nb)=>{"use strict";var ED=G(),xD=ge(),kD=di(),AD=xe(),mu=et(),TD=Jt().f,tb=hu(),CD=K_(),vu=eb(),PD=Oo(),RD=fu(),rb=!1,Ht=PD("meta"),OD=0,gu=function(e){TD(e,Ht,{value:{objectID:"O"+OD++,weakData:{}}})},ND=function(e,t){if(!AD(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!mu(e,Ht)){if(!vu(e))return"F";if(!t)return"E";gu(e)}return e[Ht].objectID},DD=function(e,t){if(!mu(e,Ht)){if(!vu(e))return!0;if(!t)return!1;gu(e)}return e[Ht].weakData},LD=function(e){return RD&&rb&&vu(e)&&!mu(e,Ht)&&gu(e),e},qD=function(){FD.enable=function(){},rb=!0;var e=tb.f,t=xD([].splice),r={};r[Ht]=1,e(r).length&&(tb.f=function(n){for(var i=e(n),o=0,a=i.length;o<a;o++)if(i[o]===Ht){t(i,o,1);break}return i},ED({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:CD.f}))},FD=nb.exports={enable:qD,fastKey:ND,getWeakData:DD,onFreeze:LD};kD[Ht]=!0});var ob=h((aG,ib)=>{"use strict";var MD=Fe(),jD=Cr(),UD=MD("iterator"),BD=Array.prototype;ib.exports=function(e){return e!==void 0&&(jD.Array===e||BD[UD]===e)}});var yu=h((sG,sb)=>{"use strict";var JD=Xr(),ab=Ro(),$D=Er(),HD=Cr(),VD=Fe(),zD=VD("iterator");sb.exports=function(e){if(!$D(e))return ab(e,zD)||ab(e,"@@iterator")||HD[JD(e)]}});var cb=h((lG,lb)=>{"use strict";var GD=ht(),WD=kr(),KD=Bt(),QD=Wn(),YD=yu(),XD=TypeError;lb.exports=function(e,t){var r=arguments.length<2?YD(e):t;if(WD(r))return KD(GD(r,e));throw new XD(QD(e)+" is not iterable")}});var ra=h((cG,db)=>{"use strict";var ZD=ht(),ub=Bt(),eL=Ro();db.exports=function(e,t,r){var n,i;ub(e);try{if(n=eL(e,"return"),!n){if(t==="throw")throw r;return r}n=ZD(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return ub(n),r}});var ia=h((uG,mb)=>{"use strict";var tL=Yn(),rL=ht(),nL=Bt(),iL=Wn(),oL=ob(),aL=Yr(),pb=Ve(),sL=cb(),lL=yu(),fb=ra(),cL=TypeError,na=function(e,t){this.stopped=e,this.result=t},hb=na.prototype;mb.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=tL(t,n),c,d,u,p,f,m,g,y=function(_){return c&&fb(c,"normal",_),new na(!0,_)},v=function(_){return i?(nL(_),s?l(_[0],_[1],y):l(_[0],_[1])):s?l(_,y):l(_)};if(o)c=e.iterator;else if(a)c=e;else{if(d=lL(e),!d)throw new cL(iL(e)+" is not iterable");if(oL(d)){for(u=0,p=aL(e);p>u;u++)if(f=v(e[u]),f&&pb(hb,f))return f;return new na(!1)}c=sL(e,d)}for(m=o?e.next:c.next;!(g=rL(m,c)).done;){try{f=v(g.value)}catch(_){fb(c,"throw",_)}if(typeof f=="object"&&f&&pb(hb,f))return f}return new na(!1)}});var oa=h((dG,vb)=>{"use strict";var uL=Ve(),dL=TypeError;vb.exports=function(e,t){if(uL(t,e))return e;throw new dL("Incorrect invocation")}});var _u=h((pG,yb)=>{"use strict";var pL=G(),fL=le(),hL=yi(),mL=se(),vL=Ar(),gL=ia(),yL=oa(),_L=Pe(),bL=xe(),wL=Er(),IL=hi(),SL=Jt().f,EL=sr().forEach,xL=ze(),gb=Rr(),kL=gb.set,AL=gb.getterFor;yb.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=fL[e],s=a&&a.prototype,l={},c;if(!xL||!_L(a)||!(i||s.forEach&&!mL(function(){new a().entries().next()})))c=r.getConstructor(t,e,n,o),hL.enable();else{c=t(function(p,f){kL(yL(p,d),{type:e,collection:new a}),wL(f)||gL(f,p[o],{that:p,AS_ENTRIES:n})});var d=c.prototype,u=AL(e);EL(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(p){var f=p==="add"||p==="set";p in s&&!(i&&p==="clear")&&vL(d,p,function(m,g){var y=u(this).collection;if(!f&&i&&!bL(m))return p==="get"?void 0:!1;var v=y[p](m===0?0:m,g);return f?this:v})}),i||SL(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return IL(c,e,!1,!0),l[e]=c,pL({global:!0,forced:!0},l),i||r.setStrong(c,e,n),c}});var xb=h((fG,Eb)=>{"use strict";var TL=ge(),_b=ea(),aa=yi().getWeakData,CL=oa(),PL=Bt(),RL=Er(),bu=xe(),OL=ia(),wb=sr(),bb=et(),Ib=Rr(),NL=Ib.set,DL=Ib.getterFor,LL=wb.find,qL=wb.findIndex,FL=TL([].splice),ML=0,sa=function(e){return e.frozen||(e.frozen=new Sb)},Sb=function(){this.entries=[]},wu=function(e,t){return LL(e.entries,function(r){return r[0]===t})};Sb.prototype={get:function(e){var t=wu(this,e);if(t)return t[1]},has:function(e){return!!wu(this,e)},set:function(e,t){var r=wu(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=qL(this.entries,function(r){return r[0]===e});return~t&&FL(this.entries,t,1),!!~t}};Eb.exports={getConstructor:function(e,t,r,n){var i=e(function(l,c){CL(l,o),NL(l,{type:t,id:ML++,frozen:null}),RL(c)||OL(c,l[n],{that:l,AS_ENTRIES:r})}),o=i.prototype,a=DL(t),s=function(l,c,d){var u=a(l),p=aa(PL(c),!0);return p===!0?sa(u).set(c,d):p[u.id]=d,l};return _b(o,{delete:function(l){var c=a(this);if(!bu(l))return!1;var d=aa(l);return d===!0?sa(c).delete(l):d&&bb(d,c.id)&&delete d[c.id]},has:function(c){var d=a(this);if(!bu(c))return!1;var u=aa(c);return u===!0?sa(d).has(c):u&&bb(u,d.id)}}),_b(o,r?{get:function(c){var d=a(this);if(bu(c)){var u=aa(c);if(u===!0)return sa(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 Nb=h(()=>{"use strict";var jL=fu(),kb=le(),da=ge(),Ab=ea(),UL=yi(),BL=_u(),Tb=xb(),la=xe(),ca=Rr().enforce,JL=se(),$L=$c(),wi=Object,HL=Array.isArray,ua=wi.isExtensible,Cb=wi.isFrozen,VL=wi.isSealed,Pb=wi.freeze,zL=wi.seal,GL=!kb.ActiveXObject&&"ActiveXObject"in kb,_i,Rb=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Ob=BL("WeakMap",Rb,Tb),rn=Ob.prototype,pa=da(rn.set),WL=function(){return jL&&JL(function(){var e=Pb([]);return pa(new Ob,e,1),!Cb(e)})};$L&&(GL?(_i=Tb.getConstructor(Rb,"WeakMap",!0),UL.enable(),Iu=da(rn.delete),bi=da(rn.has),Su=da(rn.get),Ab(rn,{delete:function(e){if(la(e)&&!ua(e)){var t=ca(this);return t.frozen||(t.frozen=new _i),Iu(this,e)||t.frozen.delete(e)}return Iu(this,e)},has:function(t){if(la(t)&&!ua(t)){var r=ca(this);return r.frozen||(r.frozen=new _i),bi(this,t)||r.frozen.has(t)}return bi(this,t)},get:function(t){if(la(t)&&!ua(t)){var r=ca(this);return r.frozen||(r.frozen=new _i),bi(this,t)?Su(this,t):r.frozen.get(t)}return Su(this,t)},set:function(t,r){if(la(t)&&!ua(t)){var n=ca(this);n.frozen||(n.frozen=new _i),bi(this,t)?pa(this,t,r):n.frozen.set(t,r)}else pa(this,t,r);return this}})):WL()&&Ab(rn,{set:function(t,r){var n;return HL(t)&&(Cb(t)?n=Pb:VL(t)&&(n=zL)),pa(this,t,r),n&&n(t),this}}));var Iu,bi,Su});var Db=h(()=>{"use strict";Nb()});var qb=h((yG,Lb)=>{"use strict";Zo();pu();Db();var KL=Et();Lb.exports=KL.WeakMap});var Mb=h((_G,Fb)=>{"use strict";Fb.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 Eu=h(()=>{"use strict";Zo();var QL=Mb(),YL=le(),XL=hi(),jb=Cr();for(fa in QL)XL(YL[fa],fa),jb[fa]=jb.Array;var fa});var Bb=h((IG,Ub)=>{"use strict";var ZL=qb();Eu();Ub.exports=ZL});var $b=h((SG,Jb)=>{Jb.exports=Bb()});var Vb=h(()=>{"use strict";var eq=G(),tq=zn(),rq=Yc().indexOf,nq=ni(),xu=tq([].indexOf),Hb=!!xu&&1/xu([1],1,-0)<0,iq=Hb||!nq("indexOf");eq({target:"Array",proto:!0,forced:iq},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return Hb?xu(this,t,r)||0:rq(this,t,r)}})});var Gb=h((kG,zb)=>{"use strict";Vb();var oq=ct();zb.exports=oq("Array","indexOf")});var Kb=h((AG,Wb)=>{"use strict";var aq=Ve(),sq=Gb(),ku=Array.prototype;Wb.exports=function(e){var t=e.indexOf;return e===ku||aq(ku,e)&&t===ku.indexOf?sq:t}});var Yb=h((TG,Qb)=>{"use strict";var lq=Kb();Qb.exports=lq});var Zb=h((CG,Xb)=>{Xb.exports=Yb()});var ew=h(()=>{"use strict";var cq=G(),uq=sr().map,dq=ri(),pq=dq("map");cq({target:"Array",proto:!0,forced:!pq},{map:function(t){return uq(this,t,arguments.length>1?arguments[1]:void 0)}})});var rw=h((OG,tw)=>{"use strict";ew();var fq=ct();tw.exports=fq("Array","map")});var iw=h((NG,nw)=>{"use strict";var hq=Ve(),mq=rw(),Au=Array.prototype;nw.exports=function(e){var t=e.map;return e===Au||hq(Au,e)&&t===Au.map?mq:t}});var aw=h((DG,ow)=>{"use strict";var vq=iw();ow.exports=vq});var lw=h((LG,sw)=>{sw.exports=aw()});var cw=h(()=>{"use strict";var gq=G(),yq=ze(),_q=fi();gq({target:"Object",stat:!0,sham:!yq},{create:_q})});var dw=h((MG,uw)=>{"use strict";cw();var bq=Et(),wq=bq.Object;uw.exports=function(t,r){return wq.create(t,r)}});var fw=h((jG,pw)=>{"use strict";var Iq=dw();pw.exports=Iq});var mw=h((UG,hw)=>{hw.exports=fw()});var Tu=h((BG,vw)=>{"use strict";var Sq=Jt();vw.exports=function(e,t,r){return Sq.f(e,t,r)}});var _w=h((JG,yw)=>{"use strict";var Eq=Vr(),xq=Tu(),kq=Fe(),Aq=ze(),gw=kq("species");yw.exports=function(e){var t=Eq(e);Aq&&t&&!t[gw]&&xq(t,gw,{configurable:!0,get:function(){return this}})}});var kw=h(($G,xw)=>{"use strict";var bw=fi(),Tq=Tu(),ww=ea(),Cq=Yn(),Pq=oa(),Rq=Er(),Oq=ia(),Nq=Qo(),ha=Yo(),Dq=_w(),Ii=ze(),Iw=yi().fastKey,Ew=Rr(),Sw=Ew.set,Cu=Ew.getterFor;xw.exports={getConstructor:function(e,t,r,n){var i=e(function(c,d){Pq(c,o),Sw(c,{type:t,index:bw(null),first:null,last:null,size:0}),Ii||(c.size=0),Rq(d)||Oq(d,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=Cu(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=Iw(d,!0),key:d,value:u,previous:m=p.last,next:null,removed:!1},p.first||(p.first=f),m&&(m.next=f),Ii?p.size++:c.size++,g!=="F"&&(p.index[g]=f)),c},l=function(c,d){var u=a(c),p=Iw(d),f;if(p!=="F")return u.index[p];for(f=u.first;f;f=f.next)if(f.key===d)return f};return ww(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=bw(null),Ii?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),Ii?u.size--:d.size--}return!!p},forEach:function(d){for(var u=a(this),p=Cq(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)}}),ww(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)}}),Ii&&Tq(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=Cu(t),o=Cu(n);Nq(e,t,function(a,s){Sw(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,ha(void 0,!0)):ha(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},r?"entries":"values",!r,!0),Dq(t)}}});var Aw=h(()=>{"use strict";var Lq=_u(),qq=kw();Lq("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},qq)});var Tw=h(()=>{"use strict";Aw()});var lr=h((WG,Cw)=>{"use strict";var Fq=Wn(),Mq=TypeError;Cw.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 Mq(Fq(e)+" is not a set")}});var Rw=h((KG,Pw)=>{"use strict";Pw.exports=function(e,t){return t===1?function(r,n){return r[e](n)}:function(r,n,i){return r[e](n,i)}}});var cr=h((QG,Nw)=>{"use strict";var jq=Vr(),Pu=Rw(),Ow=jq("Set"),Uq=Ow.prototype;Nw.exports={Set:Ow,add:Pu("add",1),has:Pu("has",1),remove:Pu("delete",1),proto:Uq}});var ur=h((YG,Dw)=>{"use strict";var Bq=ht();Dw.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,o,a;!(o=Bq(i,n)).done;)if(a=t(o.value),a!==void 0)return a}});var nn=h((XG,Lw)=>{"use strict";var Jq=ur();Lw.exports=function(e,t,r){return r?Jq(e.keys(),t,!0):e.forEach(t)}});var ma=h((ZG,Fw)=>{"use strict";var qw=cr(),$q=nn(),Hq=qw.Set,Vq=qw.add;Fw.exports=function(e){var t=new Hq;return $q(e,function(r){Vq(t,r)}),t}});var on=h((e6,Mw)=>{"use strict";Mw.exports=function(e){return e.size}});var Uw=h((t6,jw)=>{"use strict";jw.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var dr=h((r6,zw)=>{"use strict";var Bw=kr(),Hw=Bt(),Jw=ht(),zq=Zn(),Gq=Uw(),$w="Invalid size",Wq=RangeError,Kq=TypeError,Qq=Math.max,Vw=function(e,t){this.set=e,this.size=Qq(t,0),this.has=Bw(e.has),this.keys=Bw(e.keys)};Vw.prototype={getIterator:function(){return Gq(Hw(Jw(this.keys,this.set)))},includes:function(e){return Jw(this.has,this.set,e)}};zw.exports=function(e){Hw(e);var t=+e.size;if(t!==t)throw new Kq($w);var r=zq(t);if(r<0)throw new Wq($w);return new Vw(e,r)}});var Qw=h((n6,Kw)=>{"use strict";var Yq=lr(),Ww=cr(),Xq=ma(),Zq=on(),eF=dr(),tF=nn(),rF=ur(),nF=Ww.has,Gw=Ww.remove;Kw.exports=function(t){var r=Yq(this),n=eF(t),i=Xq(r);return Zq(r)<=n.size?tF(r,function(o){n.includes(o)&&Gw(i,o)}):rF(n.getIterator(),function(o){nF(r,o)&&Gw(i,o)}),i}});var pr=h((i6,Yw)=>{"use strict";Yw.exports=function(){return!1}});var Xw=h(()=>{"use strict";var iF=G(),oF=Qw(),aF=pr(),sF=!aF("difference",function(e){return e.size===0});iF({target:"Set",proto:!0,real:!0,forced:sF},{difference:oF})});var t0=h((s6,e0)=>{"use strict";var lF=lr(),Ru=cr(),cF=on(),uF=dr(),dF=nn(),pF=ur(),fF=Ru.Set,Zw=Ru.add,hF=Ru.has;e0.exports=function(t){var r=lF(this),n=uF(t),i=new fF;return cF(r)>n.size?pF(n.getIterator(),function(o){hF(r,o)&&Zw(i,o)}):dF(r,function(o){n.includes(o)&&Zw(i,o)}),i}});var r0=h(()=>{"use strict";var mF=G(),vF=se(),gF=t0(),yF=pr(),_F=!yF("intersection",function(e){return e.size===2&&e.has(1)&&e.has(2)})||vF(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});mF({target:"Set",proto:!0,real:!0,forced:_F},{intersection:gF})});var i0=h((u6,n0)=>{"use strict";var bF=lr(),wF=cr().has,IF=on(),SF=dr(),EF=nn(),xF=ur(),kF=ra();n0.exports=function(t){var r=bF(this),n=SF(t);if(IF(r)<=n.size)return EF(r,function(o){if(n.includes(o))return!1},!0)!==!1;var i=n.getIterator();return xF(i,function(o){if(wF(r,o))return kF(i,"normal",!1)})!==!1}});var o0=h(()=>{"use strict";var AF=G(),TF=i0(),CF=pr(),PF=!CF("isDisjointFrom",function(e){return!e});AF({target:"Set",proto:!0,real:!0,forced:PF},{isDisjointFrom:TF})});var s0=h((f6,a0)=>{"use strict";var RF=lr(),OF=on(),NF=nn(),DF=dr();a0.exports=function(t){var r=RF(this),n=DF(t);return OF(r)>n.size?!1:NF(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var l0=h(()=>{"use strict";var LF=G(),qF=s0(),FF=pr(),MF=!FF("isSubsetOf",function(e){return e});LF({target:"Set",proto:!0,real:!0,forced:MF},{isSubsetOf:qF})});var u0=h((v6,c0)=>{"use strict";var jF=lr(),UF=cr().has,BF=on(),JF=dr(),$F=ur(),HF=ra();c0.exports=function(t){var r=jF(this),n=JF(t);if(BF(r)<n.size)return!1;var i=n.getIterator();return $F(i,function(o){if(!UF(r,o))return HF(i,"normal",!1)})!==!1}});var d0=h(()=>{"use strict";var VF=G(),zF=u0(),GF=pr(),WF=!GF("isSupersetOf",function(e){return!e});VF({target:"Set",proto:!0,real:!0,forced:WF},{isSupersetOf:zF})});var f0=h((_6,p0)=>{"use strict";var KF=lr(),Ou=cr(),QF=ma(),YF=dr(),XF=ur(),ZF=Ou.add,eM=Ou.has,tM=Ou.remove;p0.exports=function(t){var r=KF(this),n=YF(t).getIterator(),i=QF(r);return XF(n,function(o){eM(r,o)?tM(i,o):ZF(i,o)}),i}});var h0=h(()=>{"use strict";var rM=G(),nM=f0(),iM=pr();rM({target:"Set",proto:!0,real:!0,forced:!iM("symmetricDifference")},{symmetricDifference:nM})});var v0=h((I6,m0)=>{"use strict";var oM=lr(),aM=cr().add,sM=ma(),lM=dr(),cM=ur();m0.exports=function(t){var r=oM(this),n=lM(t).getIterator(),i=sM(r);return cM(n,function(o){aM(i,o)}),i}});var g0=h(()=>{"use strict";var uM=G(),dM=v0(),pM=pr();uM({target:"Set",proto:!0,real:!0,forced:!pM("union")},{union:dM})});var Si=h((x6,y0)=>{"use strict";var fM=Xr(),hM=String;y0.exports=function(e){if(fM(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return hM(e)}});var I0=h((k6,w0)=>{"use strict";var Nu=ge(),mM=Zn(),vM=Si(),gM=xr(),yM=Nu("".charAt),_0=Nu("".charCodeAt),_M=Nu("".slice),b0=function(e){return function(t,r){var n=vM(gM(t)),i=mM(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=_0(n,i),a<55296||a>56319||i+1===o||(s=_0(n,i+1))<56320||s>57343?e?yM(n,i):a:e?_M(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};w0.exports={codeAt:b0(!1),charAt:b0(!0)}});var k0=h(()=>{"use strict";var bM=I0().charAt,wM=Si(),E0=Rr(),IM=Qo(),S0=Yo(),x0="String Iterator",SM=E0.set,EM=E0.getterFor(x0);IM(String,"String",function(e){SM(this,{type:x0,string:wM(e),index:0})},function(){var t=EM(this),r=t.string,n=t.index,i;return n>=r.length?S0(void 0,!0):(i=bM(r,n),t.index+=i.length,S0(i,!1))})});var T0=h((C6,A0)=>{"use strict";Zo();pu();Tw();Xw();r0();o0();l0();d0();h0();g0();k0();var xM=Et();A0.exports=xM.Set});var P0=h((P6,C0)=>{"use strict";var kM=T0();Eu();C0.exports=kM});var O0=h((R6,R0)=>{R0.exports=P0()});var D0=h(N0=>{"use strict";N0.f=Object.getOwnPropertySymbols});var M0=h((N6,F0)=>{"use strict";var L0=ze(),AM=ge(),TM=ht(),CM=se(),Du=eu(),PM=D0(),RM=Ql(),OM=Gr(),NM=Ao(),an=Object.assign,q0=Object.defineProperty,DM=AM([].concat);F0.exports=!an||CM(function(){if(L0&&an({b:1},an(q0({},"a",{enumerable:!0,get:function(){q0(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(i){t[i]=i}),an({},e)[r]!==7||Du(an({},t)).join("")!==n})?function(t,r){for(var n=OM(t),i=arguments.length,o=1,a=PM.f,s=RM.f;i>o;)for(var l=NM(arguments[o++]),c=a?DM(Du(l),a(l)):Du(l),d=c.length,u=0,p;d>u;)p=c[u++],(!L0||TM(s,l,p))&&(n[p]=l[p]);return n}:an});var U0=h(()=>{"use strict";var LM=G(),j0=M0();LM({target:"Object",stat:!0,arity:2,forced:Object.assign!==j0},{assign:j0})});var J0=h((q6,B0)=>{"use strict";U0();var qM=Et();B0.exports=qM.Object.assign});var H0=h((F6,$0)=>{"use strict";var FM=J0();$0.exports=FM});var z0=h((M6,V0)=>{V0.exports=H0()});var Lu=h((j6,G0)=>{"use strict";G0.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 Q0=h((U6,K0)=>{"use strict";var MM=ge(),jM=xr(),UM=Si(),Fu=Lu(),W0=MM("".replace),BM=RegExp("^["+Fu+"]+"),JM=RegExp("(^|[^"+Fu+"])["+Fu+"]+$"),qu=function(e){return function(t){var r=UM(jM(t));return e&1&&(r=W0(r,BM,"")),e&2&&(r=W0(r,JM,"$1")),r}};K0.exports={start:qu(1),end:qu(2),trim:qu(3)}});var eI=h((B6,Z0)=>{"use strict";var $M=Kc().PROPER,HM=se(),Y0=Lu(),X0="\u200B\x85\u180E";Z0.exports=function(e){return HM(function(){return!!Y0[e]()||X0[e]()!==X0||$M&&Y0[e].name!==e})}});var tI=h(()=>{"use strict";var VM=G(),zM=Q0().trim,GM=eI();VM({target:"String",proto:!0,forced:GM("trim")},{trim:function(){return zM(this)}})});var nI=h((H6,rI)=>{"use strict";tI();var WM=ct();rI.exports=WM("String","trim")});var oI=h((V6,iI)=>{"use strict";var KM=Ve(),QM=nI(),Mu=String.prototype;iI.exports=function(e){var t=e.trim;return typeof e=="string"||e===Mu||KM(Mu,e)&&t===Mu.trim?QM:t}});var sI=h((z6,aI)=>{"use strict";var YM=oI();aI.exports=YM});var cI=h((G6,lI)=>{lI.exports=sI()});var pI=h(()=>{"use strict";var XM=G(),uI=ei(),ZM=Ic(),ej=xe(),dI=Qc(),tj=Yr(),rj=or(),nj=Ac(),ij=Fe(),oj=ri(),aj=oi(),sj=oj("slice"),lj=ij("species"),ju=Array,cj=Math.max;XM({target:"Array",proto:!0,forced:!sj},{slice:function(t,r){var n=rj(this),i=tj(n),o=dI(t,i),a=dI(r===void 0?i:r,i),s,l,c;if(uI(n)&&(s=n.constructor,ZM(s)&&(s===ju||uI(s.prototype))?s=void 0:ej(s)&&(s=s[lj],s===null&&(s=void 0)),s===ju||s===void 0))return aj(n,o,a);for(l=new(s===void 0?ju:s)(cj(a-o,0)),c=0;o<a;o++,c++)o in n&&nj(l,c,n[o]);return l.length=c,l}})});var hI=h((Q6,fI)=>{"use strict";pI();var uj=ct();fI.exports=uj("Array","slice")});var vI=h((Y6,mI)=>{"use strict";var dj=Ve(),pj=hI(),Uu=Array.prototype;mI.exports=function(e){var t=e.slice;return e===Uu||dj(Uu,e)&&t===Uu.slice?pj:t}});var yI=h((X6,gI)=>{"use strict";var fj=vI();gI.exports=fj});var bI=h((Z6,_I)=>{_I.exports=yI()});var Bu=T(()=>{});var II=h((t8,wI)=>{"use strict";var hj=xe(),mj=Ut(),vj=Fe(),gj=vj("match");wI.exports=function(e){var t;return hj(e)&&((t=e[gj])!==void 0?!!t:mj(e)==="RegExp")}});var EI=h((r8,SI)=>{"use strict";var yj=II(),_j=TypeError;SI.exports=function(e){if(yj(e))throw new _j("The method doesn't accept regular expressions");return e}});var kI=h((n8,xI)=>{"use strict";var bj=Fe(),wj=bj("match");xI.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[wj]=!1,"/./"[e](t)}catch(n){}}return!1}});var CI=h(()=>{"use strict";var Ij=G(),Sj=zn(),Ej=fc().f,xj=_c(),AI=Si(),kj=EI(),Aj=xr(),Tj=kI(),Cj=zr(),Pj=Sj("".slice),Rj=Math.min,TI=Tj("startsWith"),Oj=!Cj&&!TI&&!!function(){var e=Ej(String.prototype,"startsWith");return e&&!e.writable}();Ij({target:"String",proto:!0,forced:!Oj&&!TI},{startsWith:function(t){var r=AI(Aj(this));kj(t);var n=xj(Rj(arguments.length>1?arguments[1]:void 0,r.length)),i=AI(t);return Pj(r,n,n+i.length)===i}})});var RI=h((a8,PI)=>{"use strict";CI();var Nj=ct();PI.exports=Nj("String","startsWith")});var NI=h((s8,OI)=>{"use strict";var Dj=Ve(),Lj=RI(),Ju=String.prototype;OI.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===Ju||Dj(Ju,e)&&t===Ju.startsWith?Lj:t}});var LI=h((l8,DI)=>{"use strict";var qj=NI();DI.exports=qj});var FI=h((c8,qI)=>{qI.exports=LI()});var JI=h((u8,BI)=>{"use strict";var jI=ge(),Fj=kr(),Mj=xe(),jj=et(),MI=oi(),Uj=Hr(),UI=Function,Bj=jI([].concat),Jj=jI([].join),$u={},$j=function(e,t,r){if(!jj($u,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";$u[t]=UI("C,a","return new C("+Jj(n,",")+")")}return $u[t](e,r)};BI.exports=Uj?UI.bind:function(t){var r=Fj(this),n=r.prototype,i=MI(arguments,1),o=function(){var s=Bj(i,MI(arguments));return this instanceof o?$j(r,s.length,s):r.apply(t,s)};return Mj(n)&&(o.prototype=n),o}});var HI=h(()=>{"use strict";var Hj=G(),$I=JI();Hj({target:"Function",proto:!0,forced:Function.bind!==$I},{bind:$I})});var zI=h((f8,VI)=>{"use strict";HI();var Vj=ct();VI.exports=Vj("Function","bind")});var WI=h((h8,GI)=>{"use strict";var zj=Ve(),Gj=zI(),Hu=Function.prototype;GI.exports=function(e){var t=e.bind;return e===Hu||zj(Hu,e)&&t===Hu.bind?Gj:t}});var QI=h((m8,KI)=>{"use strict";var Wj=WI();KI.exports=Wj});var XI=h((v8,YI)=>{YI.exports=QI()});function Da(e,t){ye.__h&&ye.__h(ie,e,Pi||t),Pi=0;var r=ie.__H||(ie.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function zt(e){return Pi=1,Kj(MS,e)}function Kj(e,t,r){var n=Da(dn++,2);if(n.t=e,!n.__c&&(n.__=[MS(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=ie,!ie.__f)){var i=function(s,l,c){var d;if(!n.__c.__H)return!0;var u=(0,cd.default)(d=n.__c.__H.__).call(d,function(f){return!!f.__c});if((0,NS.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,ke.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};ie.__f=!0;var o=ie.shouldComponentUpdate,a=ie.componentWillUpdate;ie.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)},ie.shouldComponentUpdate=i}return n.__N||n.__}function Nr(e,t){var r=Da(dn++,3);!ye.__s&&FS(r.__H,t)&&(r.__=e,r.u=t,ie.__H.__h.push(r))}function ki(e){return Pi=5,hd(function(){return{current:e}},[])}function hd(e,t){var r=Da(dn++,7);return FS(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function ut(e,t){return Pi=8,hd(function(){return e},t)}function Qj(e){var t=ie.context[e.__c],r=Da(dn++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(ie)),t.props.value):e.__}function Yj(){for(var e;e=qS.shift();)if(e.__P&&e.__H)try{var t,r;(0,ke.default)(t=e.__H.__h).call(t,ba),(0,ke.default)(r=e.__H.__h).call(r,Xu),e.__H.__h=[]}catch(n){e.__H.__h=[],ye.__e(n,e.__v)}}function Xj(e){var t,r=function(){clearTimeout(n),aS&&cancelAnimationFrame(t),(0,Pt.default)(e)},n=(0,Pt.default)(r,100);aS&&(t=requestAnimationFrame(r))}function ba(e){var t=ie,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ie=t}function Xu(e){var t=ie;e.__c=e.__(),ie=t}function FS(e,t){return!e||e.length!==t.length||(0,Ta.default)(t).call(t,function(r,n){return r!==e[n]})}function MS(e,t){return typeof t=="function"?t(e):t}function Zj(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Zu(){throw new Error("setTimeout has not been defined")}function ed(){throw new Error("clearTimeout has not been defined")}function US(e){if(xt===Pt.default)return(0,Pt.default)(e,0);if((xt===Zu||!xt)&&Pt.default)return xt=Pt.default,(0,Pt.default)(e,0);try{return xt(e,0)}catch(t){try{return xt.call(null,e,0)}catch(r){return xt.call(this,e,0)}}}function eU(e){if(kt===clearTimeout)return clearTimeout(e);if((kt===ed||!kt)&&clearTimeout)return kt=clearTimeout,clearTimeout(e);try{return kt(e)}catch(t){try{return kt.call(null,e)}catch(r){return kt.call(this,e)}}}function tU(){!ln||!fr||(ln=!1,fr.length?Vt=(0,Na.default)(fr).call(fr,Vt):wa=-1,Vt.length&&BS())}function BS(){if(!ln){var e=US(tU);ln=!0;for(var t=Vt.length;t;){for(fr=Vt,Vt=[];++wa<t;)fr&&fr[wa].run();wa=-1,t=Vt.length}fr=null,ln=!1,eU(e)}}function JS(e,t){this.fun=e,this.array=t}function Wt(){}function iU(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 oU(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 cU(e,t){return Re(e,0)^45?(((t<<2^Re(e,0))<<2^Re(e,1))<<2^Re(e,2))<<2^Re(e,3):0}function VS(e){return(0,pd.default)(e).call(e)}function uU(e,t){return(e=t.exec(e))?e[0]:e}function $(e,t,r){return e.replace(t,r)}function td(e,t){return(0,Gt.default)(e).call(e,t)}function Re(e,t){return e.charCodeAt(t)|0}function Ri(e,t,r){return(0,fd.default)(e).call(e,t,r)}function At(e){return e.length}function yd(e){return e.length}function va(e,t){return t.push(e),e}function dU(e,t){return(0,Ci.default)(e).call(e,t).join("")}function Fa(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:qa,column:pn,length:a,return:""}}function Ei(e,t){return lU(Fa("",null,null,"",null,null,0),e,{length:-e.length},t)}function pU(){return _e}function fU(){return _e=We>0?Re(hn,--We):0,pn--,_e===10&&(pn=1,qa--),_e}function tt(){return _e=We<zS?Re(hn,We++):0,pn++,_e===10&&(pn=1,qa++),_e}function Rt(){return Re(hn,We)}function Ia(){return We}function Fi(e,t){return Ri(hn,e,t)}function Oi(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 GS(e){return qa=pn=1,zS=At(hn=e),We=0,[]}function WS(e){return hn="",e}function Sa(e){return VS(Fi(We-1,rd(e===91?e+2:e===40?e+1:e)))}function hU(e){for(;(_e=Rt())&&_e<33;)tt();return Oi(e)>2||Oi(_e)>3?"":" "}function mU(e,t){for(;--t&&tt()&&!(_e<48||_e>102||_e>57&&_e<65||_e>70&&_e<97););return Fi(e,Ia()+(t<6&&Rt()==32&&tt()==32))}function rd(e){for(;tt();)switch(_e){case e:return We;case 34:case 39:e!==34&&e!==39&&rd(_e);break;case 40:e===41&&rd(e);break;case 92:tt();break}return We}function vU(e,t){for(;tt()&&e+_e!==57&&!(e+_e===84&&Rt()===47););return"/*"+Fi(t,We-1)+"*"+La(e===47?e:tt())}function gU(e){for(;!Oi(Rt());)tt();return Fi(e,We)}function yU(e){return WS(Ea("",null,null,null,[""],e=GS(e),0,[0],e))}function Ea(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,_=0,w="",A=i,R=o,P=n,S=w;y;)switch(m=_,_=tt()){case 40:if(m!=108&&Re(S,u-1)==58){td(S+=$(Sa(_),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:S+=Sa(_);break;case 9:case 10:case 13:case 32:S+=hU(m);break;case 92:S+=mU(Ia()-1,7);continue;case 47:switch(Rt()){case 42:case 47:va(_U(vU(tt(),Ia()),t,r),l);break;default:S+="/"}break;case 123*g:s[c++]=At(S)*v;case 125*g:case 59:case 0:switch(_){case 0:case 125:y=0;case 59+d:f>0&&At(S)-u&&va(f>32?lS(S+";",n,r,u-1):lS($(S," ","")+";",n,r,u-2),l);break;case 59:S+=";";default:if(va(P=sS(S,t,r,c,d,i,s,w,A=[],R=[],u),o),_===123)if(d===0)Ea(S,t,P,P,A,o,u,s,R);else switch(p===99&&Re(S,3)===110?100:p){case 100:case 109:case 115:Ea(e,P,P,n&&va(sS(e,P,P,0,0,i,s,w,i,A=[],u),R),i,R,u,s,n?A:R);break;default:Ea(S,P,P,P,[""],R,0,s,R)}}c=d=f=0,g=v=1,w=S="",u=a;break;case 58:u=1+At(S),f=m;default:if(g<1){if(_==123)--g;else if(_==125&&g++==0&&fU()==125)continue}switch(S+=La(_),_*g){case 38:v=d>0?1:(S+="\f",-1);break;case 44:s[c++]=(At(S)-1)*v,v=1;break;case 64:Rt()===45&&(S+=Sa(tt())),p=Rt(),d=u=At(w=S+=gU(Ia())),_++;break;case 45:m===45&&At(S)==2&&(g=0)}}return o}function sS(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=yd(p),m=0,g=0,y=0;m<n;++m)for(var v=0,_=Ri(e,u+1,u=sU(g=a[m])),w=e;v<f;++v)(w=VS(g>0?p[v]+" "+_:$(_,/&\f/g,p[v])))&&(l[y++]=w);return Fa(e,t,r,i===0?vd:s,l,c,d)}function _U(e,t,r){return Fa(e,t,r,md,La(pU()),Ri(e,2,-2),0)}function lS(e,t,r,n){return Fa(e,t,r,gd,Ri(e,0,n),Ri(e,n+1,-1),n)}function cn(e,t){for(var r="",n=yd(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function bU(e,t,r,n){switch(e.type){case aU:case gd:return e.return=e.return||e.value;case md:return"";case HS:return e.return=e.value+"{"+cn(e.children,n)+"}";case vd:e.value=e.props.join(",")}return At(r=cn(e.children,n))?e.return=e.value+"{"+r+"}":""}function wU(e){var t=yd(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 IU(e){return function(t){t.root||(t=t.return)&&e(t)}}function QS(e,t){switch(cU(e,t)){case 5103:return M+"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 M+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return M+e+Pa+e+Me+e+e;case 6828:case 4268:return M+e+Me+e+e;case 6165:return M+e+Me+"flex-"+e+e;case 5187:return M+e+$(e,/(\w+).+(:[^]+)/,M+"box-$1$2"+Me+"flex-$1$2")+e;case 5443:return M+e+Me+"flex-item-"+$(e,/flex-|-self/,"")+e;case 4675:return M+e+Me+"flex-line-pack"+$(e,/align-content|flex-|-self/,"")+e;case 5548:return M+e+Me+$(e,"shrink","negative")+e;case 5292:return M+e+Me+$(e,"basis","preferred-size")+e;case 6060:return M+"box-"+$(e,"-grow","")+M+e+Me+$(e,"grow","positive")+e;case 4554:return M+$(e,/([^-])(transform)/g,"$1"+M+"$2")+e;case 6187:return $($($(e,/(zoom-|grab)/,M+"$1"),/(image-set)/,M+"$1"),e,"")+e;case 5495:case 3959:return $(e,/(image-set\([^]*)/,M+"$1$`$1");case 4968:return $($(e,/(.+:)(flex-)?(.*)/,M+"box-pack:$3"+Me+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+M+e+e;case 4095:case 3583:case 4068:case 2532:return $(e,/(.+)-inline(.+)/,M+"$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(At(e)-1-t>6)switch(Re(e,t+1)){case 109:if(Re(e,t+4)!==45)break;case 102:return $(e,/(.+:)(.+)-([^]+)/,"$1"+M+"$2-$3$1"+Pa+(Re(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~td(e,"stretch")?QS($(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Re(e,t+1)!==115)break;case 6444:switch(Re(e,At(e)-3-(~td(e,"!important")&&10))){case 107:return $(e,":",":"+M)+e;case 101:return $(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+M+(Re(e,14)===45?"inline-":"")+"box$3$1"+M+"$2$3$1"+Me+"$2box$3")+e}break;case 5936:switch(Re(e,t+11)){case 114:return M+e+Me+$(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return M+e+Me+$(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return M+e+Me+$(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return M+e+Me+e+e}return e}function XS(){if(dS)return ga.exports;dS=1;let e=XS();return ga.exports={default:e},ga.exports.default=e,ga.exports}function Ni(e,t,r){var n,i="";return(0,ke.default)(n=r.split(" ")).call(n,function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}function qU(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 MU(e){var t=(0,DS.default)(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function Di(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 Tt={name:i.name,styles:i.styles,next:Tt},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)Tt={name:a.name,styles:a.styles,next:Tt},a=a.next;var s=o.styles+";";return s}return BU(e,t,r)}case"function":{if(e!==void 0){var l=Tt,c=r(e);return Tt=l,Di(e,t,c)}break}}var d=r;if(t==null)return d;var u=t[d];return u!==void 0?u:d}function BU(e,t,r){var n="";if((0,Ti.default)(r))for(var i=0;i<r.length;i++)n+=Di(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]+"}":pS(s)&&(n+=zu(o)+":"+fS(o,s)+";")}else if((0,Ti.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)pS(a[l])&&(n+=zu(o)+":"+fS(o,a[l])+";");else{var c=Di(e,t,a);switch(o){case"animation":case"animationName":{n+=zu(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function hr(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="";Tt=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=Di(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Di(r,t,e[s]),n){var l=o;i+=l[s]}hS.lastIndex=0;for(var c="",d;(d=hS.exec(i))!==null;)c+="-"+d[1];var u=qU(i)+c;return{name:u,styles:i,next:Tt}}function N(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return hr(t)}function XU(e,t,r){var n=[],i=Ni(e,n,r);return n.length<2?r:i+t(n)}function b(e,t,r,n,i,o){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var c={type:e,props:l,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--t2,__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 O.vnode&&O.vnode(c),c}function Mi(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=zt(e());return Nr(()=>{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 F2(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 cE(e){let t=window.getComputedStyle(document.body).transform,r="";t&&t!=="none"&&(r=F2(t)),e.style.transform=r,e.style.transformOrigin="0 0"}function M2(e){let t=()=>cE(e);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),t(),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}}function B2(s){var l=s,{elementTag:e="Image",src:t="",children:r,handleExposure:n,className:i,imgStyle:o}=l,a=st(l,["elementTag","src","children","handleExposure","className","imgStyle"]);let c=U2(()=>{t&&n()});return e==="Image"?b("div",{className:i,style:{borderRadius:"8px"},children:qe("img",q(C({},a),{ref:c,src:t!=null?t:"",style:C({display:"block",width:"100%",height:"auto",objectFit:"cover",maxWidth:"100%",maxHeight:"100%",aspectRatio:"1 / 1",borderRadius:"8px"},o||{})}))}):b("div",q(C({},a),{ref:c,className:i,children:r}))}function J2(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?qe(i.type,q(C({},i.props),{style:q(C({},i.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0}),key:i.key||o})):i):e&&typeof e=="object"&&"type"in e?qe(e.type,q(C({},e.props),{style:q(C({},e.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0})})):e}function W2(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 AS(e,t,r){return ja.call(t,"css")?b(Id,nE(e,t),r):b(e,t,r)}function eB(e,t,r){return ja.call(t,"css")?b(Id,nE(e,t),r):b(e,t,r)}function dB(e,t){return Oe(e,0)^45?(((t<<2^Oe(e,0))<<2^Oe(e,1))<<2^Oe(e,2))<<2^Oe(e,3):0}function IE(e){return(0,pd.default)(e).call(e)}function pB(e,t){return(e=t.exec(e))?e[0]:e}function U(e,t,r){return e.replace(t,r)}function sd(e,t){return(0,Gt.default)(e).call(e,t)}function Oe(e,t){return e.charCodeAt(t)|0}function Li(e,t,r){return(0,fd.default)(e).call(e,t,r)}function Ct(e){return e.length}function kd(e){return e.length}function _a(e,t){return t.push(e),e}function fB(e,t){return(0,Ci.default)(e).call(e,t).join("")}function Ha(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:$a,column:fn,length:a,return:""}}function xi(e,t){return uB(Ha("",null,null,"",null,null,0),e,{length:-e.length},t)}function hB(){return be}function mB(){return be=Ke>0?Oe(mn,--Ke):0,fn--,be===10&&(fn=1,$a--),be}function rt(){return be=Ke<SE?Oe(mn,Ke++):0,fn++,be===10&&(fn=1,$a++),be}function Ot(){return Oe(mn,Ke)}function xa(){return Ke}function Bi(e,t){return Li(mn,e,t)}function qi(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 EE(e){return $a=fn=1,SE=Ct(mn=e),Ke=0,[]}function xE(e){return mn="",e}function ka(e){return IE(Bi(Ke-1,ld(e===91?e+2:e===40?e+1:e)))}function vB(e){for(;(be=Ot())&&be<33;)rt();return qi(e)>2||qi(be)>3?"":" "}function gB(e,t){for(;--t&&rt()&&!(be<48||be>102||be>57&&be<65||be>70&&be<97););return Bi(e,xa()+(t<6&&Ot()==32&&rt()==32))}function ld(e){for(;rt();)switch(be){case e:return Ke;case 34:case 39:e!==34&&e!==39&&ld(be);break;case 40:e===41&&ld(e);break;case 92:rt();break}return Ke}function yB(e,t){for(;rt()&&e+be!==57&&!(e+be===84&&Ot()===47););return"/*"+Bi(t,Ke-1)+"*"+Ja(e===47?e:rt())}function _B(e){for(;!qi(Ot());)rt();return Bi(e,Ke)}function bB(e){return xE(Aa("",null,null,null,[""],e=EE(e),0,[0],e))}function Aa(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,_=0,w="",A=i,R=o,P=n,S=w;y;)switch(m=_,_=rt()){case 40:if(m!=108&&Oe(S,u-1)==58){sd(S+=U(ka(_),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:S+=ka(_);break;case 9:case 10:case 13:case 32:S+=vB(m);break;case 92:S+=gB(xa()-1,7);continue;case 47:switch(Ot()){case 42:case 47:_a(wB(yB(rt(),xa()),t,r),l);break;default:S+="/"}break;case 123*g:s[c++]=Ct(S)*v;case 125*g:case 59:case 0:switch(_){case 0:case 125:y=0;case 59+d:v==-1&&(S=U(S,/\f/g,"")),f>0&&Ct(S)-u&&_a(f>32?CS(S+";",n,r,u-1):CS(U(S," ","")+";",n,r,u-2),l);break;case 59:S+=";";default:if(_a(P=TS(S,t,r,c,d,i,s,w,A=[],R=[],u),o),_===123)if(d===0)Aa(S,t,P,P,A,o,u,s,R);else switch(p===99&&Oe(S,3)===110?100:p){case 100:case 108:case 109:case 115:Aa(e,P,P,n&&_a(TS(e,P,P,0,0,i,s,w,i,A=[],u),R),i,R,u,s,n?A:R);break;default:Aa(S,P,P,P,[""],R,0,s,R)}}c=d=f=0,g=v=1,w=S="",u=a;break;case 58:u=1+Ct(S),f=m;default:if(g<1){if(_==123)--g;else if(_==125&&g++==0&&mB()==125)continue}switch(S+=Ja(_),_*g){case 38:v=d>0?1:(S+="\f",-1);break;case 44:s[c++]=(Ct(S)-1)*v,v=1;break;case 64:Ot()===45&&(S+=ka(rt())),p=Ot(),d=u=Ct(w=S+=_B(xa())),_++;break;case 45:m===45&&Ct(S)==2&&(g=0)}}return o}function TS(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=kd(p),m=0,g=0,y=0;m<n;++m)for(var v=0,_=Li(e,u+1,u=cB(g=a[m])),w=e;v<f;++v)(w=IE(g>0?p[v]+" "+_:U(_,/&\f/g,p[v])))&&(l[y++]=w);return Ha(e,t,r,i===0?Ed:s,l,c,d)}function wB(e,t,r){return Ha(e,t,r,bE,Ja(hB()),Li(e,2,-2),0)}function CS(e,t,r,n){return Ha(e,t,r,xd,Li(e,0,n),Li(e,n+1,-1),n)}function un(e,t){for(var r="",n=kd(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function IB(e,t,r,n){switch(e.type){case lB:if(e.children.length)break;case sB:case xd:return e.return=e.return||e.value;case bE:return"";case wE:return e.return=e.value+"{"+un(e.children,n)+"}";case Ed:e.value=e.props.join(",")}return Ct(r=un(e.children,n))?e.return=e.value+"{"+r+"}":""}function SB(e){var t=kd(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 EB(e){return function(t){t.root||(t=t.return)&&e(t)}}function kE(e,t){switch(dB(e,t)){case 5103:return j+"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 j+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return j+e+Oa+e+je+e+e;case 6828:case 4268:return j+e+je+e+e;case 6165:return j+e+je+"flex-"+e+e;case 5187:return j+e+U(e,/(\w+).+(:[^]+)/,j+"box-$1$2"+je+"flex-$1$2")+e;case 5443:return j+e+je+"flex-item-"+U(e,/flex-|-self/,"")+e;case 4675:return j+e+je+"flex-line-pack"+U(e,/align-content|flex-|-self/,"")+e;case 5548:return j+e+je+U(e,"shrink","negative")+e;case 5292:return j+e+je+U(e,"basis","preferred-size")+e;case 6060:return j+"box-"+U(e,"-grow","")+j+e+je+U(e,"grow","positive")+e;case 4554:return j+U(e,/([^-])(transform)/g,"$1"+j+"$2")+e;case 6187:return U(U(U(e,/(zoom-|grab)/,j+"$1"),/(image-set)/,j+"$1"),e,"")+e;case 5495:case 3959:return U(e,/(image-set\([^]*)/,j+"$1$`$1");case 4968:return U(U(e,/(.+:)(flex-)?(.*)/,j+"box-pack:$3"+je+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+j+e+e;case 4095:case 3583:case 4068:case 2532:return U(e,/(.+)-inline(.+)/,j+"$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(Ct(e)-1-t>6)switch(Oe(e,t+1)){case 109:if(Oe(e,t+4)!==45)break;case 102:return U(e,/(.+:)(.+)-([^]+)/,"$1"+j+"$2-$3$1"+Oa+(Oe(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~sd(e,"stretch")?kE(U(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Oe(e,t+1)!==115)break;case 6444:switch(Oe(e,Ct(e)-3-(~sd(e,"!important")&&10))){case 107:return U(e,":",":"+j)+e;case 101:return U(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+j+(Oe(e,14)===45?"inline-":"")+"box$3$1"+j+"$2$3$1"+je+"$2box$3")+e}break;case 5936:switch(Oe(e,t+11)){case 114:return j+e+je+U(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return j+e+je+U(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return j+e+je+U(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return j+e+je+e+e}return e}function RS(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Qu(e,t,r){var n=[],i=Ni(e,n,r);return n.length<2?r:i+t(n)}function Ad(){let e=!1,t=null,r=0,n=new Set,i=a=>I(this,null,function*(){let s=e;if(r++,e=!0,!s)try{let{iframe:l}=yield Ai.acquire(),c=l.contentDocument;if(c)t=c.createElement("div"),t.id="loading-root",c.body.appendChild(t),ir(b(UB,{}),t);else throw new Error("Iframe document is not available.")}catch(l){console.error("[LoadingManager] Failed to show loading:",l),r=0,e=!1,Ai.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&&(ir(null,t),(a=t.parentNode)==null||a.removeChild(t),t=null),Ai.release()))};return{show:i,hide:o,get isLoading(){return e}}}var cd,NS,ke,Na,Ta,Pt,Ca,Ti,ud,Gt,Ci,DS,LS,dd,pd,fd,w8,Yu,dn,ie,Vu,ZI,Pi,qS,ye,eS,tS,rS,nS,iS,oS,aS,jS,fe,xt,kt,Vt,ln,fr,wa,rU,Ae,nU,$S,Me,Pa,M,md,vd,gd,aU,HS,sU,La,lU,qa,pn,zS,We,_e,hn,SU,EU,xU,cS,kU,AU,TU,CU,PU,KS,RU,uS,OU,NU,DU,YS,ga,dS,LU,_d,Ma,FU,jU,UU,ZS,pS,zu,fS,hS,Tt,JU,eE,tE,mS,ja,bd,rE,wd,Ua,$U,HU,VU,zU,GU,nd,id,nE,WU,Id,KU,vS,QU,YU,ZU,e2,Gu,gS,Wu,Ku,t2,yS,r2,n2,i2,o2,a2,_S,s2,bS,l2,wS,c2,IS,u2,d2,p2,f2,h2,SS,m2,v2,g2,y2,_2,ES,b2,w2,I2,S2,E2,x2,k2,A2,T2,C2,P2,R2,O2,N2,D2,L2,iE,oE,aE,od,q2,sE,lE,Ra,Ai,xS,j2,Sd,U2,uE,dE,pE,$2,H2,V2,ad,z2,fE,G2,ji,Ba,kS,Or,hE,sn,K2,Q2,Y2,X2,Z2,ya,mE,vE,pe,tB,rB,gE,yE,_E,Ui,nB,iB,oB,aB,je,Oa,j,bE,Ed,xd,sB,wE,lB,cB,Ja,uB,$a,fn,SE,Ke,be,mn,xB,kB,AB,PS,TB,CB,PB,RB,OB,NB,DB,LB,qB,FB,MB,Ji,OS,jB,UB,I8,Dr=T(()=>{"use strict";$r();cd=ce(xv(),1),NS=ce(Lv(),1),ke=ce(Wv(),1),Na=ce(cg(),1),Ta=ce(yg(),1),Pt=ce(qg(),1);Uo();Uo();Ca=ce(by(),1),Ti=ce(Ay(),1),ud=ce($b(),1),Gt=ce(Zb(),1),Ci=ce(lw(),1),DS=ce(mw(),1),LS=ce(O0(),1),dd=ce(z0(),1),pd=ce(cI(),1),fd=ce(bI(),1);Bu();Bu();w8=ce(FI(),1),Yu=ce(XI(),1),Pi=0,qS=[],ye=O,eS=ye.__b,tS=ye.__r,rS=ye.diffed,nS=ye.__c,iS=ye.unmount,oS=ye.__;ye.__b=function(e){ie=null,eS&&eS(e)},ye.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),oS&&oS(e,t)},ye.__r=function(e){var t,r,n;tS&&tS(e),dn=0;var i=(ie=e.__c).__H;i&&(Vu===ie?(i.__h=[],ie.__h=[],(0,ke.default)(t=i.__).call(t,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,ke.default)(r=i.__h).call(r,ba),(0,ke.default)(n=i.__h).call(n,Xu),i.__h=[],dn=0)),Vu=ie},ye.diffed=function(e){var t;rS&&rS(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(qS.push(r)!==1&&ZI===ye.requestAnimationFrame||((ZI=ye.requestAnimationFrame)||Xj)(Yj)),(0,ke.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),Vu=ie=null},ye.__c=function(e,t){(0,Ta.default)(t).call(t,function(r){try{var n,i;(0,ke.default)(n=r.__h).call(n,ba),r.__h=(0,cd.default)(i=r.__h).call(i,function(o){return!o.__||Xu(o)})}catch(o){(0,Ta.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],ye.__e(o,r.__v)}}),nS&&nS(e,t)},ye.unmount=function(e){var t;iS&&iS(e);var r,n=e.__c;n&&n.__H&&((0,ke.default)(t=n.__H.__).call(t,function(i){try{ba(i)}catch(o){r=o}}),n.__H=void 0,r&&ye.__e(r,n.__v))};aS=typeof requestAnimationFrame=="function";jS={exports:{}},fe=jS.exports={};(function(){try{typeof Pt.default=="function"?xt=Pt.default:xt=Zu}catch(e){xt=Zu}try{typeof clearTimeout=="function"?kt=clearTimeout:kt=ed}catch(e){kt=ed}})();Vt=[],ln=!1,wa=-1;fe.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];Vt.push(new JS(e,t)),Vt.length===1&&!ln&&US(BS)};JS.prototype.run=function(){this.fun.apply(null,this.array)};fe.title="browser";fe.browser=!0;fe.env={};fe.argv=[];fe.version="";fe.versions={};fe.on=Wt;fe.addListener=Wt;fe.once=Wt;fe.off=Wt;fe.removeListener=Wt;fe.removeAllListeners=Wt;fe.emit=Wt;fe.prependListener=Wt;fe.prependOnceListener=Wt;fe.listeners=function(e){return[]};fe.binding=function(e){throw new Error("process.binding is not supported")};fe.cwd=function(){return"/"};fe.chdir=function(e){throw new Error("process.chdir is not supported")};fe.umask=function(){return 0};rU=jS.exports,Ae=Zj(rU),nU=Ca.default||void 0||self;$S=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,ke.default)(r).call(r,this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(oU(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=iU(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){var r;(0,ke.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}(),Me="-ms-",Pa="-moz-",M="-webkit-",md="comm",vd="rule",gd="decl",aU="@import",HS="@keyframes",sU=Math.abs,La=String.fromCharCode,lU=dd.default;qa=1,pn=1,zS=0,We=0,_e=0,hn="";SU=function(e,t,r){for(var n=0,i=0;n=i,i=Rt(),n===38&&i===12&&(t[r]=1),!Oi(i);)tt();return Fi(e,We)},EU=function(e,t){var r=-1,n=44;do switch(Oi(n)){case 0:n===38&&Rt()===12&&(t[r]=1),e[r]+=SU(We-1,t,r);break;case 2:e[r]+=Sa(n);break;case 4:if(n===44){e[++r]=Rt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=La(n)}while(n=tt());return e},xU=function(e,t){return WS(EU(GS(e),t))},cS=new ud.default,kU=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&&!cS.get(r))&&!n){cS.set(e,!0);for(var i=[],o=xU(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]}}},AU=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},TU="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",CU=function(e){var t;return e.type==="comm"&&(0,Gt.default)(t=e.children).call(t,TU)>-1},PU=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(CU(l))return;break}}(0,ke.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".')})}}}},KS=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},RU=function(e,t){for(var r=e-1;r>=0;r--)if(!KS(t[r]))return!0;return!1},uS=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},OU=function(e,t,r){KS(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."),uS(e)):RU(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),uS(e)))};NU=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case gd:e.return=QS(e.value,e.length);break;case HS:return cn([Ei(e,{value:$(e.value,"@","@"+M)})],n);case vd:if(e.length)return dU(e.props,function(i){switch(uU(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return cn([Ei(e,{props:[$(i,/:(read-\w+)/,":"+Pa+"$1")]})],n);case"::placeholder":return cn([Ei(e,{props:[$(i,/:(plac\w+)/,":"+M+"input-$1")]}),Ei(e,{props:[$(i,/:(plac\w+)/,":"+Pa+"$1")]}),Ei(e,{props:[$(i,/:(plac\w+)/,Me+"input-$1")]})],n)}return""})}},DU=[NU],YS=function(e){var t=e.key;if(Ae.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,ke.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,Gt.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||DU;if(Ae.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,ke.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=[kU,AU];Ae.env.NODE_ENV!=="production"&&l.push(PU({get compat(){return f.compat}}),OU);{var c,d=[bU,Ae.env.NODE_ENV!=="production"?function(m){m.root||(m.return?c.insert(m.return):m.value&&m.type!==md&&c.insert(m.value+"{}"))}:IU(function(m){c.insert(m)})],u=wU((0,Na.default)(l).call(l,n,d)),p=function(m){return cn(yU(m),u)};s=function(m,g,y,v){c=y,Ae.env.NODE_ENV!=="production"&&(0,Ci.default)(g)!==void 0&&(c={insert:function(_){y.insert(_+(0,Ci.default)(g))}}),p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new $S({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:{}};XS();LU=!0;_d=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||LU===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},Ma=function(e,t,r){_d(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)}};FU={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};jU=/[A-Z]|^ms/g,UU=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ZS=function(e){return e.charCodeAt(1)===45},pS=function(e){return e!=null&&typeof e!="boolean"},zu=MU(function(e){return ZS(e)?e:e.replace(jU,"-$&").toLowerCase()}),fS=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(UU,function(r,n,i){return Tt={name:n,styles:i,next:Tt},n})}return FU[e]!==1&&!ZS(e)&&typeof t=="number"&&t!==0?t+"px":t};hS=/label:\s*([^\s;{]+)\s*(;|$)/g;JU=function(e){return e()},eE=Fc?Fc:!1,tE=eE||JU,mS=eE||Zr,ja={}.hasOwnProperty,bd=Sr(typeof HTMLElement<"u"?YS({key:"css"}):null);Ae.env.NODE_ENV!=="production"&&(bd.displayName="EmotionCacheContext");rE=bd.Provider,wd=function(e){return jc(function(t,r){var n=tn(bd);return e(t,n,r)})},Ua=Sr({});Ae.env.NODE_ENV!=="production"&&(Ua.displayName="EmotionThemeContext");$U=function(e){var t=e.split(".");return t[t.length-1]},HU=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 $U(t[1])},VU=new LS.default(["renderWithHooks","processChild","finishClassComponent","renderToString"]),zU=function(e){return e.replace(/\$/g,"-")},GU=function(e){if(e)for(var t=e.split(`
22
+ `),r=0;r<t.length;r++){var n=HU(t[r]);if(n){if(VU.has(n))break;if(/^[A-Z]/.test(n))return zU(n)}}},nd="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",id="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",nE=function(e,t){var r,n;if(Ae.env.NODE_ENV!=="production"&&typeof t.css=="string"&&(0,Gt.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)ja.call(t,o)&&(i[o]=t[o]);if(i[nd]=e,Ae.env.NODE_ENV!=="production"&&t.css&&(typeof t.css!="object"||typeof t.css.name!="string"||(0,Gt.default)(n=t.css.name).call(n,"-")===-1)){var a=GU(new Error().stack);a&&(i[id]=a)}return i},WU=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return _d(t,r,n),tE(function(){return Ma(t,r,n)}),null},Id=wd(function(e,t,r){var n,i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[nd],a=[i],s="";typeof e.className=="string"?s=Ni(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var l=hr(a,void 0,tn(Ua));if(Ae.env.NODE_ENV!=="production"&&(0,Gt.default)(n=l.name).call(n,"-")===-1){var c=e[id];c&&(l=hr([l,"label:"+c+";"]))}s+=t.key+"-"+l.name;var d={};for(var u in e)ja.call(e,u)&&u!=="css"&&u!==nd&&(Ae.env.NODE_ENV==="production"||u!==id)&&(d[u]=e[u]);return d.ref=r,d.className=s,qe(Ze,null,qe(WU,{cache:t,serialized:l,isStringTag:typeof o=="string"}),qe(o,d))});Ae.env.NODE_ENV!=="production"&&(Id.displayName="EmotionCssPropInternal");KU={version:"11.10.5"},vS=!1,QU=wd(function(e,t){Ae.env.NODE_ENV!=="production"&&!vS&&(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?"),vS=!0);var r=e.styles,n=hr([r],void 0,tn(Ua)),i=ci();return mS(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]),mS(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(n.next!==void 0&&Ma(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});Ae.env.NODE_ENV!=="production"&&(QU.displayName="EmotionGlobal");YU=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,Ti.default)(o))a=e(o);else{Ae.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};ZU=function(e){var t=e.cache,r=e.serializedArr;return tE(function(){for(var n=0;n<r.length;n++)Ma(t,r[n],!1)}),null},e2=wd(function(e,t){var r=!1,n=[],i=function(){if(r&&Ae.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=hr(c,t.registered);return n.push(u),_d(t,u,!1),t.key+"-"+u.name},o=function(){if(r&&Ae.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 XU(t.registered,i,YU(c))},a={css:i,cx:o,theme:tn(Ua)},s=e.children(a);return r=!0,qe(Ze,null,qe(ZU,{cache:t,serializedArr:n}),s)});Ae.env.NODE_ENV!=="production"&&(e2.displayName="EmotionClassNames");Ae.env.NODE_ENV!=="production"&&(Gu=!0,gS=typeof jest<"u"||typeof vi<"u",Gu&&!gS&&(Wu=typeof Ca.default<"u"?Ca.default:Gu?window:nU,Ku="__EMOTION_REACT_"+KU.version.split(".")[0]+"__",Wu[Ku]&&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."),Wu[Ku]=!0));t2=0;yS={drawerBackdrop:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.5)",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"}},r2=N`
23
23
  width: 100%;
24
24
  overflow: auto;
25
25
  margin: 0 auto;
26
- `,QU=`
26
+ `,n2=`
27
27
  @keyframes fadeIn {
28
28
  from { opacity: 0; }
29
29
  to { opacity: 1; }
@@ -59,7 +59,7 @@ If multiple caches share the same key they might "fight" for each other's style
59
59
  .drawer-leave {
60
60
  animation: slideDown 0.3s ease forwards;
61
61
  }
62
- `,YU=({children:e,isOpen:t=!1,onClose:r,className:n=""},i)=>{let[o,a]=Ht(!1),[s,l]=Ht(null),[c,d]=Ht(!1),u=Ei(null),p=Ei(null),f=Ei(!1);Rr(()=>{if(o&&u.current){let k=u.current.ownerDocument,H=k.createElement("style");H.innerHTML=QU,k.head.appendChild(H);let Je={overflow:k.body.style.overflow,position:k.body.style.position,width:k.body.style.width};return k.body.style.overflow="hidden",k.body.style.position="fixed",k.body.style.width="100%",()=>{k.head.contains(H)&&k.head.removeChild(H),k.body.style.overflow=Je.overflow,k.body.style.position=Je.position,k.body.style.width=Je.width}}},[o]),Rr(()=>{t?!o&&!f.current&&(a(!0),requestAnimationFrame(()=>{setTimeout(()=>l("enter"),0)})):o&&(f.current=!0,l("leave"),d(!1))},[t]);let m=lt(k=>{k.target===p.current&&(s==="leave"?(l(null),a(!1),f.current=!1,r&&r()):s==="enter"&&(l(null),d(!0)))},[s,r]),g=lt(()=>{o&&!f.current&&(f.current=!0,l("leave"),d(!1))},[o]),y=lt(k=>{k.preventDefault(),k.stopPropagation(),g()},[g]),v=lt(()=>{!f.current&&!o&&(a(!0),requestAnimationFrame(()=>{setTimeout(()=>l("enter"),0)}))},[o]),_=lt(()=>o&&!f.current,[o]);if(Rr(()=>{if(i){let k={show:v,hide:g,isOpen:_};typeof i=="function"?i(k):i&&(i.current=k)}},[v,g,_,i]),!o)return null;let w=L(C({},pE.drawerBackdrop),{backgroundColor:"transparent",pointerEvents:"none"}),A={position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.1)",pointerEvents:"auto"},R=L(C({},pE.drawer),{height:"auto",pointerEvents:"auto"});o&&!c&&!s&&(R.transform="translateY(100%)");let P=s?`drawer-${s}`:"",E=s?`backdrop-${s}`:"";return b("div",{ref:u,style:w,children:[b("div",{style:A,className:E,onClick:y}),b("div",{ref:p,style:R,className:`${P} ${n}`,onAnimationEnd:m,onClick:k=>k.stopPropagation(),children:b("div",{style:KU.styles,children:e})})]})},ZU=Lc(YU);XU={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"},fE={jolicoin:XU},e2={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"},hE={jolicoin:e2},t2={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"},mE={jolicoin:t2},r2={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"},vE={jolicoin:r2},n2={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"},i2={jolicoin:n2},o2={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"},a2={jolicoin:o2},s2={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"},gE={jolicoin:s2},l2={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"},c2={jolicoin:l2},u2={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"},d2={jolicoin:u2},p2={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"},yE={jolicoin:p2},f2={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"},h2={jolicoin:f2},m2={unlockNeeds:"\u89E3\u9396\u9700\u6C42",price:"\u50F9\u683C",unlockWithJolicoin:"\u4F7F\u7528 Jolicoin \u89E3\u9396",unlockWithJolicoinDescription:"\u81EA\u52D5\u4F7F\u7528 Jolicoin \u89E3\u9396",useJolicoin:"\u4F7F\u7528 Jolicoin",payAndUnlock:"\u652F\u4ED8\u4E26\u89E3\u9396",noWatchAds:"\u4E0D\uFF0C\u89C0\u770B\u5EE3\u544A",noThanks:"\u4E0D\u7528\u4E86",balance:"\u9918\u984D",coinUsed:"\u5DF2\u4F7F\u7528\u7684 Jolicoin",unlockSuccess:"\u89E3\u9396\u6210\u529F",unlockFailed:"\u89E3\u9396\u5931\u6557",unlockFailedNotLogin:"\u8ACB\u767B\u5165\u5F8C\u5B8C\u6210\u89E3\u9396",unlockFailedPaying:"\u652F\u4ED8\u6B63\u5728\u9032\u884C\u4E2D\uFF0C\u8ACB\u52FF\u91CD\u8907\u64CD\u4F5C",unlockFailedProductIdNotFound:"\u5546\u54C1\u5DF2\u904E\u671F\uFF0C\u8ACB\u9078\u64C7\u5176\u4ED6\u5546\u54C1",unlockFailedProductInvalid:"\u7372\u53D6\u5546\u54C1\u4FE1\u606F\u5931\u6557\uFF0C\u8ACB\u91CD\u8A66\u6216\u9078\u64C7\u5176\u4ED6\u5546\u54C1",unlockFailedLaunch:"\u7121\u6CD5\u555F\u52D5\u652F\u4ED8\uFF0C\u8ACB\u7A0D\u5F8C\u91CD\u8A66",unlockFailedTransaction:"\u652F\u4ED8\u5931\u6557\uFF0C\u8ACB\u91CD\u8A66",unlockFaileVerify:"\u8A02\u55AE\u9A57\u8B49\u5931\u6557\uFF0C\u5982\u5DF2\u6263\u8CBB\u8ACB\u806F\u7E6B\u5BA2\u670D",transactionPending:"\u652F\u4ED8\u78BA\u8A8D\u5931\u6557\uFF0C\u8ACB\u806F\u7E6B\u652F\u4ED8\u670D\u52D9\u5546\u7372\u53D6\u652F\u6301"},v2={jolicoin:m2},g2={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"},y2={jolicoin:g2},_2={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"},b2={jolicoin:_2},w2={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"},I2={jolicoin:w2},E2={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"},S2={jolicoin:E2},x2={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"},k2={jolicoin:x2},A2={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"},T2={jolicoin:A2},ZE={en:{translations:fE},en_GB:{translations:fE},zh:{translations:hE},"zh-Hans":{translations:hE},"zh-Hant":{translations:v2},id:{translations:mE},in:{translations:mE},ms:{translations:vE},my:{translations:vE},th:{translations:i2},vi:{translations:a2},fil:{translations:gE},tl:{translations:gE},es:{translations:c2},ja:{translations:d2},pt:{translations:yE},pt_PT:{translations:yE},ko:{translations:h2},de:{translations:y2},fr:{translations:b2},hi:{translations:I2},ru:{translations:S2},bn:{translations:k2},tr:{translations:T2}},XE=wr(void 0),eS=({definition:e,children:t})=>{let r={translations:e};return b(XE.Provider,{value:r,children:t})},rd=null,C2={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=>{rd=e},rS=()=>{var e;if(typeof rd!="function")return console.warn("Language handler is not registered or is not a function. Defaulting to 'en'."),"en";try{let t=rd();return(e=C2[t])!=null?e:"en"}catch(t){return console.error("Error executing registered language handler:",t),"en"}};Ta=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=VE({key:"iframe-css",container:this.persistentIframe.contentDocument.head,prepend:!0}),this.removeGlobalTransformSync&&this.removeGlobalTransformSync(),this.removeGlobalTransformSync=R2(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 I(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"))}},Si=new Ta(99999998,"auto"),_E=new Ta(99999999,"none"),O2=({title:e,content:t,noHeader:r,height:n,padding:i="16px",footerButtons:o,onClose:a})=>{let s=qi(),l={container:N`
62
+ `,i2=({children:e,isOpen:t=!1,onClose:r,className:n=""},i)=>{let[o,a]=zt(!1),[s,l]=zt(null),[c,d]=zt(!1),u=ki(null),p=ki(null),f=ki(!1);Nr(()=>{if(o&&u.current){let k=u.current.ownerDocument,H=k.createElement("style");H.innerHTML=n2,k.head.appendChild(H);let $e={overflow:k.body.style.overflow,position:k.body.style.position,width:k.body.style.width};return k.body.style.overflow="hidden",k.body.style.position="fixed",k.body.style.width="100%",()=>{k.head.contains(H)&&k.head.removeChild(H),k.body.style.overflow=$e.overflow,k.body.style.position=$e.position,k.body.style.width=$e.width}}},[o]),Nr(()=>{t?!o&&!f.current&&(a(!0),requestAnimationFrame(()=>{setTimeout(()=>l("enter"),0)})):o&&(f.current=!0,l("leave"),d(!1))},[t]);let m=ut(k=>{k.target===p.current&&(s==="leave"?(l(null),a(!1),f.current=!1,r&&r()):s==="enter"&&(l(null),d(!0)))},[s,r]),g=ut(()=>{o&&!f.current&&(f.current=!0,l("leave"),d(!1))},[o]),y=ut(k=>{k.preventDefault(),k.stopPropagation(),g()},[g]),v=ut(()=>{!f.current&&!o&&(a(!0),requestAnimationFrame(()=>{setTimeout(()=>l("enter"),0)}))},[o]),_=ut(()=>o&&!f.current,[o]);if(Nr(()=>{if(i){let k={show:v,hide:g,isOpen:_};typeof i=="function"?i(k):i&&(i.current=k)}},[v,g,_,i]),!o)return null;let w=q(C({},yS.drawerBackdrop),{backgroundColor:"transparent",pointerEvents:"none"}),A={position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.1)",pointerEvents:"auto"},R=q(C({},yS.drawer),{height:"auto",pointerEvents:"auto"});o&&!c&&!s&&(R.transform="translateY(100%)");let P=s?`drawer-${s}`:"",S=s?`backdrop-${s}`:"";return b("div",{ref:u,style:w,children:[b("div",{style:A,className:S,onClick:y}),b("div",{ref:p,style:R,className:`${P} ${n}`,onAnimationEnd:m,onClick:k=>k.stopPropagation(),children:b("div",{style:r2.styles,children:e})})]})},o2=jc(i2);a2={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"},_S={jolicoin:a2},s2={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"},bS={jolicoin:s2},l2={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"},wS={jolicoin:l2},c2={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"},IS={jolicoin:c2},u2={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"},d2={jolicoin:u2},p2={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"},f2={jolicoin:p2},h2={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"},SS={jolicoin:h2},m2={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"},v2={jolicoin:m2},g2={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"},y2={jolicoin:g2},_2={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"},ES={jolicoin:_2},b2={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"},w2={jolicoin:b2},I2={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"},S2={jolicoin:I2},E2={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"},x2={jolicoin:E2},k2={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"},A2={jolicoin:k2},T2={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"},C2={jolicoin:T2},P2={unlockNeeds:"\u0422\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044F \u0440\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u043E\u0432\u043A\u0430",price:"\u0426\u0435\u043D\u0430",unlockWithJolicoin:"\u0420\u0430\u0437\u0431\u043B\u043E\u043A\u0438\u0440\u0443\u0439\u0442\u0435 \u0441 \u043F\u043E\u043C\u043E\u0449\u044C\u044E 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"},R2={jolicoin:P2},O2={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"},N2={jolicoin:O2},D2={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"},L2={jolicoin:D2},iE={en:{translations:_S},en_GB:{translations:_S},zh:{translations:bS},"zh-Hans":{translations:bS},"zh-Hant":{translations:S2},id:{translations:wS},in:{translations:wS},ms:{translations:IS},my:{translations:IS},th:{translations:d2},vi:{translations:f2},fil:{translations:SS},tl:{translations:SS},es:{translations:v2},ja:{translations:y2},pt:{translations:ES},pt_PT:{translations:ES},ko:{translations:w2},de:{translations:x2},fr:{translations:A2},hi:{translations:C2},ru:{translations:R2},bn:{translations:N2},tr:{translations:L2}},oE=Sr(void 0),aE=({definition:e,children:t})=>{let r={translations:e};return b(oE.Provider,{value:r,children:t})},od=null,q2={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"},sE=e=>{od=e},lE=()=>{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=q2[t])!=null?e:"en"}catch(t){return console.error("Error executing registered language handler:",t),"en"}};Ra=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=YS({key:"iframe-css",container:this.persistentIframe.contentDocument.head,prepend:!0}),this.removeGlobalTransformSync&&this.removeGlobalTransformSync(),this.removeGlobalTransformSync=M2(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 I(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"&&(cE(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"))}},Ai=new Ra(99999998,"auto"),xS=new Ra(99999999,"none"),j2=({title:e,content:t,noHeader:r,height:n,padding:i="16px",footerButtons:o,onClose:a})=>{let s=Mi(),l={container:N`
63
63
  display: flex;
64
64
  flex-direction: column;
65
65
  height: 100%;
@@ -96,7 +96,7 @@ If multiple caches share the same key they might "fight" for each other's style
96
96
  ${l.button}
97
97
  background-color: ${c.variant==="primary"?"#1677ff":"#fff"};
98
98
  color: ${c.variant==="primary"?"#fff":"#333"};
99
- `.name,onClick:u=>{var p;return(p=c.onClick)==null?void 0:p.call(c,u,{hide:a})},children:c.text},d))})]})},bd=e=>{let t=!1,r=rS(),n=ZE[r].translations,i=`drawer-container-${Math.random().toString(36).slice(2,10)}`,o=null,a=null,s=null;function l(p){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)),rr(b(QE,{value:a,children:b(eS,{definition:n,children:b(ZU,{ref:f=>{},isOpen:p,onClose:c,backdropColor:e.backdropColor,children:b(O2,L(C({},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))}Si.release(),(f=e.onClose)==null||f.call(e)}}function d(){return I(this,null,function*(){let p=yield Si.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.")}}},N2=(e,t={threshold:.6})=>{let r=Ei(null),n=Ei(!1),i=lt(o=>{let[a]=o;a.isIntersecting&&!n.current?(n.current=!0,e()):a.isIntersecting||(n.current=!1)},[e]);return Rr(()=>{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=ot(a,["children","fluid","className","style"]);let s=C({width:"100%",marginLeft:"auto",marginRight:"auto",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box",maxWidth:t?"100%":void 0},n);return b("div",L(C({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=ot(l,["children","gutter","justify","align","className","style"]);let c={start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"},d={top:"flex-start",middle:"center",bottom:"flex-end"},u=C({display:"flex",flexWrap:"wrap",boxSizing:"border-box",justifyContent:c[r],alignItems:d[n]},o);if(t){let f=Array.isArray(t)?t[0]:t,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?q2(e,t):e;return b("div",L(C({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=ot(p,["children","span","offset","xs","sm","md","lg","xl","className","style"]);let f=C({position:"relative",width:"100%",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box"},c);if(t!==void 0){let m=t/24*100;f.flex=`0 0 ${m}%`,f.maxWidth=`${m}%`}return r!==void 0&&(f.marginLeft=`${r/24*100}%`),b("div",L(C({className:l,style:f},d),{children:e}))},L2=({game:e,layerName:t,orientation:r,routeMode:n,onGameClick:i})=>{var s,l;let o=Yr(c=>{c.preventDefault(),i==null||i(e)},[i,e]),a=Yr(()=>{},[e,t]);return b(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,onTouchEnd:o,children:[b("div",{className:"relative w-full mb-[2px] ion-no-margin",children:b(D2,{src:(l=(s=e.logo)!=null?s:e.cover)!=null?l:"",className:"w-full h-full absolute top-0 left-0 aspect-square rounded-[8px] object-cover",style:{display:"block",objectFit:"cover"},handleExposure:a})}),b("div",{className:"block text-white max-w-full text-[15px] leading-[1.2] overflow-hidden whitespace-nowrap text-ellipsis font-normal break-words",style:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordBreak:"break-word",color:"white",maxWidth:"100%",fontSize:r==="landscape"?"13px":"15px",lineHeight:1.2,fontWeight:"normal",marginTop:"6px",fontFamily:"PingFangSC-Regular"},children:e.name})]},e.gameId)},F2=a=>{var s=a,{list:e,routeMode:t,layerName:r,onGameClick:n,orientation:i}=s,o=ot(s,["list","routeMode","layerName","onGameClick","orientation"]);return b(iS,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{maxWidth:i==="landscape"?"100%":"440px",minHeight:"1px"},children:b(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=>b(L2,{orientation:i,game:l,routeMode:t,layerName:r,onGameClick:n},l.gameId))})})},M2=qc(F2),nd=(e=>(e.Dismiss="DISMISS",e.Quit="QUIT",e))(nd||{}),j2=e=>{let{games:t,title:r,buttons:n,onClose:i}=e,[o,a]=Ht(null),s=lt(u=>{i==null||i({type:u.type===nd.Quit?"quit":"dismiss"})},[i]),l=lt(u=>{i==null||i({type:"navigate",data:{game:u}})},[i]),c=qi();if(!t.length)return b(Ze,{});let d=lt(u=>{if(u!==null&&!u.shadowRoot){let p=u.attachShadow({mode:"open"}),f=document.createElement("style");f.textContent=`
99
+ `.name,onClick:u=>{var p;return(p=c.onClick)==null?void 0:p.call(c,u,{hide:a})},children:c.text},d))})]})},Sd=e=>{let t=!1,r=lE(),n=iE[r].translations,i=`drawer-container-${Math.random().toString(36).slice(2,10)}`,o=null,a=null,s=null;function l(p){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)),ir(b(rE,{value:a,children:b(aE,{definition:n,children:b(o2,{ref:f=>{},isOpen:p,onClose:c,backdropColor:e.backdropColor,children:b(j2,q(C({},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))}Ai.release(),(f=e.onClose)==null||f.call(e)}}function d(){return I(this,null,function*(){let p=yield Ai.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.")}}},U2=(e,t={threshold:.6})=>{let r=ki(null),n=ki(!1),i=ut(o=>{let[a]=o;a.isIntersecting&&!n.current?(n.current=!0,e()):a.isIntersecting||(n.current=!1)},[e]);return Nr(()=>{if(r.current){let o=new IntersectionObserver(i,t);return o.observe(r.current),()=>{r.current&&o.unobserve(r.current)}}},[i,t]),r};uE=o=>{var a=o,{children:e,fluid:t=!1,className:r="",style:n={}}=a,i=st(a,["children","fluid","className","style"]);let s=C({width:"100%",marginLeft:"auto",marginRight:"auto",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box",maxWidth:t?"100%":void 0},n);return b("div",q(C({className:r,style:s},i),{children:e}))},dE=s=>{var l=s,{children:e,gutter:t=0,justify:r="start",align:n="top",className:i="",style:o={}}=l,a=st(l,["children","gutter","justify","align","className","style"]);let c={start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"},d={top:"flex-start",middle:"center",bottom:"flex-end"},u=C({display:"flex",flexWrap:"wrap",boxSizing:"border-box",justifyContent:c[r],alignItems:d[n]},o);if(t){let f=Array.isArray(t)?t[0]:t,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?J2(e,t):e;return b("div",q(C({className:i,style:u},a),{children:p}))};pE=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=st(p,["children","span","offset","xs","sm","md","lg","xl","className","style"]);let f=C({position:"relative",width:"100%",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box"},c);if(t!==void 0){let m=t/24*100;f.flex=`0 0 ${m}%`,f.maxWidth=`${m}%`}return r!==void 0&&(f.marginLeft=`${r/24*100}%`),b("div",q(C({className:l,style:f},d),{children:e}))},$2=({game:e,layerName:t,orientation:r,routeMode:n,onGameClick:i})=>{var s,l;let o=en(c=>{c.preventDefault(),i==null||i(e)},[i,e]),a=en(()=>{},[e,t]);return b(pE,{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,onTouchEnd:o,children:[b("div",{className:"relative w-full mb-[2px] ion-no-margin",children:b(B2,{src:(l=(s=e.logo)!=null?s:e.cover)!=null?l:"",className:"w-full h-full absolute top-0 left-0 aspect-square rounded-[8px] object-cover",style:{display:"block",objectFit:"cover"},handleExposure:a})}),b("div",{className:"block text-white max-w-full text-[15px] leading-[1.2] overflow-hidden whitespace-nowrap text-ellipsis font-normal break-words",style:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordBreak:"break-word",color:"white",maxWidth:"100%",fontSize:r==="landscape"?"13px":"15px",lineHeight:1.2,fontWeight:"normal",marginTop:"6px",fontFamily:"PingFangSC-Regular"},children:e.name})]},e.gameId)},H2=a=>{var s=a,{list:e,routeMode:t,layerName:r,onGameClick:n,orientation:i}=s,o=st(s,["list","routeMode","layerName","onGameClick","orientation"]);return b(uE,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{maxWidth:i==="landscape"?"100%":"440px",minHeight:"1px"},children:b(dE,{gutter:8,style:{display:"flex",flexWrap:i==="landscape"?"nowrap":"wrap",overflowX:i==="landscape"?"auto":"visible",paddingBottom:i==="landscape"?"10px":"0",justifyContent:i==="landscape"?"flex-start":"center"},children:e==null?void 0:e.map(l=>b($2,{orientation:i,game:l,routeMode:t,layerName:r,onGameClick:n},l.gameId))})})},V2=Mc(H2),ad=(e=>(e.Dismiss="DISMISS",e.Quit="QUIT",e))(ad||{}),z2=e=>{let{games:t,title:r,buttons:n,onClose:i}=e,[o,a]=zt(null),s=ut(u=>{i==null||i({type:u.type===ad.Quit?"quit":"dismiss"})},[i]),l=ut(u=>{i==null||i({type:"navigate",data:{game:u}})},[i]),c=Mi();if(!t.length)return b(Ze,{});let d=ut(u=>{if(u!==null&&!u.shadowRoot){let p=u.attachShadow({mode:"open"}),f=document.createElement("style");f.textContent=`
100
100
  .recommend-panel {
101
101
  display: flex;
102
102
  flex-direction: column;
@@ -218,7 +218,7 @@ If multiple caches share the same key they might "fight" for each other's style
218
218
  background-color: #7817FF;
219
219
  color: #fff;
220
220
  }
221
- `;let m=document.createElement("div");m.id="recommend-panel-content",p.appendChild(f),p.appendChild(m),a(p)}},[]);return Rr(()=>{if(o){let u=o.getElementById("recommend-panel-content");u&&rr(b("div",{className:"recommend-panel",children:b("div",{className:"container",children:[b("p",{className:"title",children:r}),b("div",{className:"games-container",children:b(M2,{list:t||[],routeMode:"REDIRECT",layerName:"RecommendedGuide",onGameClick:l,orientation:c})}),b("div",{className:"buttons-container",children:(n!=null?n:[]).map((p,f)=>b("div",{className:"button-wrapper",children:b("button",{className:`button ${p.type===nd.Quit?"quit-button":"action-button"}`,onClick:()=>s(p),children:b("span",{className:"button-text-ellipsis",children:p.text})})},f))})]})}),u)}},[o,t,r,n,s,l]),b("div",{ref:d})},sS=e=>{let t=bd({title:e.title,content:b(j2,{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},U2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAUNSURBVHgBfVRZbFRlFP7+e+/cmc5MO22ntGALLZUWhoZFqBgaNUYJMUYehBgwJLw0wRd9MJr4AokvJibG6JtLoompkhgNBoNbERQqVEQLtdu0dN9nptPOcvft98xU3Kje5Cb3vzn/d77zfeccYO1HaG9vr0xlZz+ZvZXJ955TeO8XKh+5oPPRzrR29Uz8fbwCoRC31mW2FuB8PD3HRH/N2Od5NnDLQlmlH9x1sZhU4CvT0XpfEyyf4/GqTOqRp+tr6Y77X6BsfHz8QHip5ht3SBDKDwiYHbQQLpOQHxfBZA5XNFBRK8BeAT58bxg1tTvRtMPlXek32k69fOqnu0B7+3sfb9m+7bx+1hOVqAl3yYcQcei6MIW6xghEDvR0p7Dl3iiEsAxFtTD0M0PN1nUQxGXPt6N7z+HDh3v/DirM3VBc55KDymN+5PtcDAzE8djx3XCzXlE4z2LwvMILXO25DTvZBCE4jdR4GOLmEASW4kdfbBAplBdAhZFLWmLg41TVpr0yMotBhFsW0bprM7jDiyG8AOYUkAFSsnieT2ZIZwm2yjCbTmDDjgYEfcmRpoc3biu6l9fNyn2H6jC27IfujGJPbDOSoyZuXluEp5KGGgETU9ddBeREtyZajuu/TkLnLuoq6sCSDi686TbvPblXYjMzM+96c5UnHVPAwqCKfY9WgOc8pKYNhJqDEKW/1P/t8gx2xkhoKoARHRYETGaB2wJk2YNBMSNfxl+XskOR45lrHkp2SwhIGsxUhKI5bINDDgGDXy9CEFYZlkBG3/AcYg21xSSFfKGN1BkhAT7dh2Alw9Jk2QnJy/lDuXwWK/E8ttaFYemFeBGGSZnzHpqbN8AwXALlxI6kiLq48tU09u/ftCrFBCWv4bDggAUEuitVS4oKqNxACQsjq5oIqqVgzINJcuiaAEnhxUScSvZJDEYYUHQLhu5B9gRqJwZlhr6DHD5iHAoxJhTa5PbCFKrqXSTTBlRFgKLQiJDTjEpU6VujxJrGoVGCPJ0tGzDIQEsDsgs2cssckiPDyJFptUEIkai+MpdLY2XGT2DlyOXpIhnlwY9vO4Yhl7sINJqQa03och66IlEXEGPLo0TUOUmRxPJhflQl5jI+PZ9YYmN9I+8MXYk8m56S4VAvVkU8lAZLCwZT03P0x+NY11QB26YhIOrD8TEcanuoOAQyja2VJMbkvEjv8KSB7qvZV9nBgwdDR9o+U3p+nMATR6sR7wqhdbefSmZ/DpxEujHGV0eP9BbpHPSTniRVzpeCoMtY5AHc6Erwt75rEIXOzk7t0Ak+8dSx9ei+GMa2+1V0/7JEa0eH4VAHkLia5cIkpjZVYpMHkuRBT3m4nUlDTwcQ8PlQKjmIrlevFxMXZvWexsiWvFXGo5V9uPy9g/rmABYWJCgJEs01yWEKpHaSRAvqgo7pcR0TpgJTlxCRAmAxGRNZlZ/+qOXBAt6dJetVxfr2BNe1eEeeCSE1S5O0IYNl0tRwbFgKga3k4IvYsAMGFnUBAY+qipZAaKUBcDRvaPDMxjt79R9LuqPj7K6y/JM3t8dclpnIwsuEyXWvKENqDAhUu3Amy4uxWTuLTW1+XP9B8+T6K43PvXRkCv+z+cXBc4nemepALBD2CzHLQSBMeiYljI66uNjnoIbkMSYs9M+b/W93VO9EcRusvfnv+p9L5V6Dydt7LktRTSFzdMFzBCWRdCc/eP6FB07/Ecv/ffl3auuKkJv2jm0AAAAASUVORK5CYII=",Li="https://fe-oss.jolibox.com/static/coin/jolicoin.png";Ma=()=>{let e=$j(XE);if(!e)throw new Error("useTranslations must be used within a LightIntlProvider");let{translations:t}=e;return{t:(r,n)=>{let i=B2(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}},bE=({text:e,initialFontSize:t,styles:r})=>b("span",{style:r,children:b("span",{style:{fontSize:`${t}px`,display:"-webkit-box",textAlign:"left",WebkitBoxOrient:"vertical",WebkitLineClamp:2,width:"auto",whiteSpace:"normal",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},children:e})}),Pr={coinInfo:N`
221
+ `;let m=document.createElement("div");m.id="recommend-panel-content",p.appendChild(f),p.appendChild(m),a(p)}},[]);return Nr(()=>{if(o){let u=o.getElementById("recommend-panel-content");u&&ir(b("div",{className:"recommend-panel",children:b("div",{className:"container",children:[b("p",{className:"title",children:r}),b("div",{className:"games-container",children:b(V2,{list:t||[],routeMode:"REDIRECT",layerName:"RecommendedGuide",onGameClick:l,orientation:c})}),b("div",{className:"buttons-container",children:(n!=null?n:[]).map((p,f)=>b("div",{className:"button-wrapper",children:b("button",{className:`button ${p.type===ad.Quit?"quit-button":"action-button"}`,onClick:()=>s(p),children:b("span",{className:"button-text-ellipsis",children:p.text})})},f))})]})}),u)}},[o,t,r,n,s,l]),b("div",{ref:d})},fE=e=>{let t=Sd({title:e.title,content:b(z2,{games:e.games,title:e.title,buttons:e.buttons,onClose:e.onClose}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"450px",onClose:()=>{var r;(r=e.onClose)==null||r.call(e,{type:"back"})},onOpen:e.onOpen});return t.show(),t},G2="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAUNSURBVHgBfVRZbFRlFP7+e+/cmc5MO22ntGALLZUWhoZFqBgaNUYJMUYehBgwJLw0wRd9MJr4AokvJibG6JtLoompkhgNBoNbERQqVEQLtdu0dN9nptPOcvft98xU3Kje5Cb3vzn/d77zfeccYO1HaG9vr0xlZz+ZvZXJ955TeO8XKh+5oPPRzrR29Uz8fbwCoRC31mW2FuB8PD3HRH/N2Od5NnDLQlmlH9x1sZhU4CvT0XpfEyyf4/GqTOqRp+tr6Y77X6BsfHz8QHip5ht3SBDKDwiYHbQQLpOQHxfBZA5XNFBRK8BeAT58bxg1tTvRtMPlXek32k69fOqnu0B7+3sfb9m+7bx+1hOVqAl3yYcQcei6MIW6xghEDvR0p7Dl3iiEsAxFtTD0M0PN1nUQxGXPt6N7z+HDh3v/DirM3VBc55KDymN+5PtcDAzE8djx3XCzXlE4z2LwvMILXO25DTvZBCE4jdR4GOLmEASW4kdfbBAplBdAhZFLWmLg41TVpr0yMotBhFsW0bprM7jDiyG8AOYUkAFSsnieT2ZIZwm2yjCbTmDDjgYEfcmRpoc3biu6l9fNyn2H6jC27IfujGJPbDOSoyZuXluEp5KGGgETU9ddBeREtyZajuu/TkLnLuoq6sCSDi686TbvPblXYjMzM+96c5UnHVPAwqCKfY9WgOc8pKYNhJqDEKW/1P/t8gx2xkhoKoARHRYETGaB2wJk2YNBMSNfxl+XskOR45lrHkp2SwhIGsxUhKI5bINDDgGDXy9CEFYZlkBG3/AcYg21xSSFfKGN1BkhAT7dh2Alw9Jk2QnJy/lDuXwWK/E8ttaFYemFeBGGSZnzHpqbN8AwXALlxI6kiLq48tU09u/ftCrFBCWv4bDggAUEuitVS4oKqNxACQsjq5oIqqVgzINJcuiaAEnhxUScSvZJDEYYUHQLhu5B9gRqJwZlhr6DHD5iHAoxJhTa5PbCFKrqXSTTBlRFgKLQiJDTjEpU6VujxJrGoVGCPJ0tGzDIQEsDsgs2cssckiPDyJFptUEIkai+MpdLY2XGT2DlyOXpIhnlwY9vO4Yhl7sINJqQa03och66IlEXEGPLo0TUOUmRxPJhflQl5jI+PZ9YYmN9I+8MXYk8m56S4VAvVkU8lAZLCwZT03P0x+NY11QB26YhIOrD8TEcanuoOAQyja2VJMbkvEjv8KSB7qvZV9nBgwdDR9o+U3p+nMATR6sR7wqhdbefSmZ/DpxEujHGV0eP9BbpHPSTniRVzpeCoMtY5AHc6Erwt75rEIXOzk7t0Ak+8dSx9ei+GMa2+1V0/7JEa0eH4VAHkLia5cIkpjZVYpMHkuRBT3m4nUlDTwcQ8PlQKjmIrlevFxMXZvWexsiWvFXGo5V9uPy9g/rmABYWJCgJEs01yWEKpHaSRAvqgo7pcR0TpgJTlxCRAmAxGRNZlZ/+qOXBAt6dJetVxfr2BNe1eEeeCSE1S5O0IYNl0tRwbFgKga3k4IvYsAMGFnUBAY+qipZAaKUBcDRvaPDMxjt79R9LuqPj7K6y/JM3t8dclpnIwsuEyXWvKENqDAhUu3Amy4uxWTuLTW1+XP9B8+T6K43PvXRkCv+z+cXBc4nemepALBD2CzHLQSBMeiYljI66uNjnoIbkMSYs9M+b/W93VO9EcRusvfnv+p9L5V6Dydt7LktRTSFzdMFzBCWRdCc/eP6FB07/Ecv/ffl3auuKkJv2jm0AAAAASUVORK5CYII=",ji="https://fe-oss.jolibox.com/static/coin/jolicoin.png";Ba=()=>{let e=Qj(oE);if(!e)throw new Error("useTranslations must be used within a LightIntlProvider");let{translations:t}=e;return{t:(r,n)=>{let i=W2(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}},kS=({text:e,initialFontSize:t,styles:r})=>b("span",{style:r,children:b("span",{style:{fontSize:`${t}px`,display:"-webkit-box",textAlign:"left",WebkitBoxOrient:"vertical",WebkitLineClamp:2,width:"auto",whiteSpace:"normal",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},children:e})}),Or={coinInfo:N`
222
222
  display: flex;
223
223
  width: calc(100% - 40px);
224
224
  max-width: 720px;
@@ -275,7 +275,7 @@ If multiple caches share the same key they might "fight" for each other's style
275
275
  font-size: 16px;
276
276
  font-weight: 600;
277
277
  color: #d9d9d9;
278
- `},lS=({unlockNeedsAmount:e=0,balanceAmount:t=0,coinImage:r=Li,formatter:n=a=>a>999?"999+":`${a}`,hideNeeds:i=!1,hideBalance:o=!1})=>{let a=n(t),{t:s}=Ma(),l=14;return b("div",{style:Pr.coinInfo.styles,children:[!i&&b("div",{style:Pr.coinAmount.styles,children:[b(bE,{text:s("jolicoin.price"),initialFontSize:l,styles:Pr.coinLabelContainer.styles}),b("div",{style:Pr.coinValue.styles,children:[b("img",{src:r,alt:"Jolicoin",style:Pr.coinIcon.styles}),b("span",{children:e})]})]}),!o&&b("div",{style:Pr.coinAmountBalance.styles,children:b(bE,{text:s("jolicoin.balance")+":\xA0"+a,initialFontSize:l,styles:Pr.coinValueText.styles})})]})},nn={card:N`
278
+ `},hE=({unlockNeedsAmount:e=0,balanceAmount:t=0,coinImage:r=ji,formatter:n=a=>a>999?"999+":`${a}`,hideNeeds:i=!1,hideBalance:o=!1})=>{let a=n(t),{t:s}=Ba(),l=14;return b("div",{style:Or.coinInfo.styles,children:[!i&&b("div",{style:Or.coinAmount.styles,children:[b(kS,{text:s("jolicoin.price"),initialFontSize:l,styles:Or.coinLabelContainer.styles}),b("div",{style:Or.coinValue.styles,children:[b("img",{src:r,alt:"Jolicoin",style:Or.coinIcon.styles}),b("span",{children:e})]})]}),!o&&b("div",{style:Or.coinAmountBalance.styles,children:b(kS,{text:s("jolicoin.balance")+":\xA0"+a,initialFontSize:l,styles:Or.coinValueText.styles})})]})},sn={card:N`
279
279
  display: flex;
280
280
  flex-direction: column;
281
281
  align-items: center;
@@ -307,17 +307,17 @@ If multiple caches share the same key they might "fight" for each other's style
307
307
  font-size: 16px;
308
308
  color: #C093FF;
309
309
  font-weight: bold;
310
- `},J2=N`
310
+ `},K2=N`
311
311
  box-sizing: border-box;
312
312
  width: 100%;
313
313
  aspect-ratio: 1/1;
314
- `,$2=N`
314
+ `,Q2=N`
315
315
  aspect-ratio: 1/1; // 强制 1:1 的宽高比
316
316
  display: flex;
317
317
  flex-direction: column;
318
318
  justify-content: center;
319
319
  -webkit-tap-highlight-color: transparent;
320
- `,H2=e=>b("div",{style:J2.styles,children:b("div",{style:$2.styles,children:b("div",{style:`${nn.card.styles} ${e.option.id===e.selectedId?nn.selectedCard.styles:""}`,onClick:()=>e.handleSelect(e.option),children:[b("div",{style:nn.coinContainer.styles,children:[b("img",{src:Li,alt:"Coin",style:nn.coinIcon.styles}),b("span",{style:nn.coinValue.styles,children:e.option.coins.toLocaleString()})]}),b("div",{style:nn.price.styles,children:e.option.price})]})})}),V2=({options:e,selectedId:t,onSelect:r})=>{let n=qi(),i=o=>{r==null||r(o)};return b(iS,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{padding:"0px"},children:b(oS,{gutter:[10,10],style:{display:"flex","flex-wrap":"wrap"},children:e.map(o=>b(aS,{span:n==="landscape"?4:8,children:b(H2,{option:o,selectedId:t,coinImageSrc:Li,handleSelect:i})},o.id))})})},z2=qc(V2);ma={toggleSwitch:N`
320
+ `,Y2=e=>b("div",{style:K2.styles,children:b("div",{style:Q2.styles,children:b("div",{style:`${sn.card.styles} ${e.option.id===e.selectedId?sn.selectedCard.styles:""}`,onClick:()=>e.handleSelect(e.option),children:[b("div",{style:sn.coinContainer.styles,children:[b("img",{src:ji,alt:"Coin",style:sn.coinIcon.styles}),b("span",{style:sn.coinValue.styles,children:e.option.coins.toLocaleString()})]}),b("div",{style:sn.price.styles,children:e.option.price})]})})}),X2=({options:e,selectedId:t,onSelect:r})=>{let n=Mi(),i=o=>{r==null||r(o)};return b(uE,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{padding:"0px"},children:b(dE,{gutter:[10,10],style:{display:"flex","flex-wrap":"wrap"},children:e.map(o=>b(pE,{span:n==="landscape"?4:8,children:b(Y2,{option:o,selectedId:t,coinImageSrc:ji,handleSelect:i})},o.id))})})},Z2=Mc(X2);ya={toggleSwitch:N`
321
321
  position: relative;
322
322
  display: inline-block;
323
323
  width: 33px;
@@ -354,7 +354,7 @@ If multiple caches share the same key they might "fight" for each other's style
354
354
  &:before {
355
355
  transform: translateX(18px);
356
356
  }
357
- `},cS=({enableAutoDeduct:e,toggleEnableAutoDeduct:t})=>G2("label",{css:ma.toggleSwitch,children:[wE("input",{css:ma.toggleInput,type:"checkbox",checked:e,onChange:t}),wE("span",{css:[ma.toggleSlider,e&&ma.toggleSliderActive]})]}),uS=()=>b("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[b("g",{"clip-path":"url(#clip0_2716_2719)",children:b("path",{d:"M18.3 6.20997C17.91 5.81997 17.28 5.81997 16.89 6.20997L12 11.09L7.10997 6.19997C6.71997 5.80997 6.08997 5.80997 5.69997 6.19997C5.30997 6.58997 5.30997 7.21997 5.69997 7.60997L10.59 12.5L5.69997 17.39C5.30997 17.78 5.30997 18.41 5.69997 18.8C6.08997 19.19 6.71997 19.19 7.10997 18.8L12 13.91L16.89 18.8C17.28 19.19 17.91 19.19 18.3 18.8C18.69 18.41 18.69 17.78 18.3 17.39L13.41 12.5L18.3 7.60997C18.68 7.22997 18.68 6.58997 18.3 6.20997Z",fill:"#979797"})}),b("defs",{children:b("clipPath",{id:"clip0_2716_2719",children:b("rect",{width:"24",height:"24",fill:"white",transform:"translate(0 0.5)"})})})]}),pe={modal:N`
357
+ `},mE=({enableAutoDeduct:e,toggleEnableAutoDeduct:t})=>eB("label",{css:ya.toggleSwitch,children:[AS("input",{css:ya.toggleInput,type:"checkbox",checked:e,onChange:t}),AS("span",{css:[ya.toggleSlider,e&&ya.toggleSliderActive]})]}),vE=()=>b("svg",{width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[b("g",{"clip-path":"url(#clip0_2716_2719)",children:b("path",{d:"M18.3 6.20997C17.91 5.81997 17.28 5.81997 16.89 6.20997L12 11.09L7.10997 6.19997C6.71997 5.80997 6.08997 5.80997 5.69997 6.19997C5.30997 6.58997 5.30997 7.21997 5.69997 7.60997L10.59 12.5L5.69997 17.39C5.30997 17.78 5.30997 18.41 5.69997 18.8C6.08997 19.19 6.71997 19.19 7.10997 18.8L12 13.91L16.89 18.8C17.28 19.19 17.91 19.19 18.3 18.8C18.69 18.41 18.69 17.78 18.3 17.39L13.41 12.5L18.3 7.60997C18.68 7.22997 18.68 6.58997 18.3 6.20997Z",fill:"#979797"})}),b("defs",{children:b("clipPath",{id:"clip0_2716_2719",children:b("rect",{width:"24",height:"24",fill:"white",transform:"translate(0 0.5)"})})})]}),pe={modal:N`
358
358
  font-family: PingFangSC-Regular;
359
359
  background-color: #1a1a1a;
360
360
  color: white;
@@ -442,19 +442,19 @@ If multiple caches share the same key they might "fight" for each other's style
442
442
  border-radius: 2px;
443
443
  margin: 0 auto;
444
444
  -webkit-tap-highlight-color: transparent;
445
- `},W2=({unlockNeedsAmount:e=10,balanceAmount:t=999,defaultEnableAutoDeduct:r=!1,onConfirm:n,onClose:i,onEnableDeductChanged:o,confirmButtonKey:a,cancelButtonKey:s})=>{let[l,c]=Ht(r),d=qi(),{t:u}=Ma(),p=()=>{n(l)},f=lt(()=>{c(!l),o(!l)},[l]);return b("div",{style:`${pe.modal.styles} ${d==="portrait"?"max-width: 440px":"max-width: 75%"}`,children:[b("div",{style:pe.header.styles,children:[b(lS,{unlockNeedsAmount:e,balanceAmount:t,coinImage:Li}),b("button",{style:pe.closeButton.styles,onClick:i.bind(null,{type:"CANCEL"}),children:b(uS,{})})]}),b("div",{style:pe.content.styles,children:[b("h2",{style:pe.title.styles,children:u("jolicoin.unlockWithJolicoin")}),!r&&b("div",{style:pe.autoDeductOption.styles,children:[b("span",{style:N`
445
+ `},tB=({unlockNeedsAmount:e=10,balanceAmount:t=999,defaultEnableAutoDeduct:r=!1,onConfirm:n,onClose:i,onEnableDeductChanged:o,confirmButtonKey:a,cancelButtonKey:s})=>{let[l,c]=zt(r),d=Mi(),{t:u}=Ba(),p=()=>{n(l)},f=ut(()=>{c(!l),o(!l)},[l]);return b("div",{style:`${pe.modal.styles} ${d==="portrait"?"max-width: 440px":"max-width: 75%"}`,children:[b("div",{style:pe.header.styles,children:[b(hE,{unlockNeedsAmount:e,balanceAmount:t,coinImage:ji}),b("button",{style:pe.closeButton.styles,onClick:i.bind(null,{type:"CANCEL"}),children:b(vE,{})})]}),b("div",{style:pe.content.styles,children:[b("h2",{style:pe.title.styles,children:u("jolicoin.unlockWithJolicoin")}),!r&&b("div",{style:pe.autoDeductOption.styles,children:[b("span",{style:N`
446
446
  font-size: 12px;
447
447
  font-weight: 400;
448
448
  line-height: 1.2;
449
449
  color: #979797;
450
- `.styles,children:u("jolicoin.unlockWithJolicoinDescription")}),b(cS,{enableAutoDeduct:l,toggleEnableAutoDeduct:f})]}),b("section",{style:`${pe.buttonContainer.styles} ${d==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[b("button",{style:`${pe.confirmButton.styles} ${pe.buttonFlex.styles}`,onClick:p,children:u(a)}),b("button",{style:`${pe.cancelButton.styles} ${pe.buttonFlex.styles}`,onClick:i.bind(null,{type:"FAILED"}),children:u(s)})]})]})]})},K2=({unlockNeedsAmount:e=1,balanceAmount:t=0,defaultEnableAutoDeduct:r=!1,paymentChoices:n=[],onConfirm:i,onClose:o,onEnableDeductChanged:a,onSelect:s,confirmButtonKey:l,cancelButtonKey:c})=>{let[d,u]=Ht(r),{t:p}=Ma(),[f,m]=Ht(()=>{var w,A;return((w=n.find(R=>R.defaultSelected))==null?void 0:w.productId)||((A=n==null?void 0:n[0])==null?void 0:A.productId)}),g=qi(),y=()=>{i(f)},v=lt(w=>{console.log(w),m(w),s(w)},[]),_=lt(()=>{u(!d),a(!d)},[d]);return console.log("defaultEnableAutoDeduct",r),b("div",{style:pe.modal.styles,children:[b("div",{style:pe.header.styles,children:[b(lS,{unlockNeedsAmount:e,balanceAmount:t,coinImage:Li}),b("button",{style:pe.closeButton.styles,onClick:o.bind(null,{type:"CANCEL"}),children:b(uS,{})})]}),b("div",{style:pe.content.styles,children:[b("div",{style:N`
450
+ `.styles,children:u("jolicoin.unlockWithJolicoinDescription")}),b(mE,{enableAutoDeduct:l,toggleEnableAutoDeduct:f})]}),b("section",{style:`${pe.buttonContainer.styles} ${d==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[b("button",{style:`${pe.confirmButton.styles} ${pe.buttonFlex.styles}`,onClick:p,children:u(a)}),b("button",{style:`${pe.cancelButton.styles} ${pe.buttonFlex.styles}`,onClick:i.bind(null,{type:"FAILED"}),children:u(s)})]})]})]})},rB=({unlockNeedsAmount:e=1,balanceAmount:t=0,defaultEnableAutoDeduct:r=!1,paymentChoices:n=[],onConfirm:i,onClose:o,onEnableDeductChanged:a,onSelect:s,confirmButtonKey:l,cancelButtonKey:c})=>{let[d,u]=zt(r),{t:p}=Ba(),[f,m]=zt(()=>{var w,A;return((w=n.find(R=>R.defaultSelected))==null?void 0:w.productId)||((A=n==null?void 0:n[0])==null?void 0:A.productId)}),g=Mi(),y=()=>{i(f)},v=ut(w=>{console.log(w),m(w),s(w)},[]),_=ut(()=>{u(!d),a(!d)},[d]);return console.log("defaultEnableAutoDeduct",r),b("div",{style:pe.modal.styles,children:[b("div",{style:pe.header.styles,children:[b(hE,{unlockNeedsAmount:e,balanceAmount:t,coinImage:ji}),b("button",{style:pe.closeButton.styles,onClick:o.bind(null,{type:"CANCEL"}),children:b(vE,{})})]}),b("div",{style:pe.content.styles,children:[b("div",{style:N`
451
451
  padding: 16px 0px;
452
- `.styles,children:b(z2,{options:n.map(w=>({id:w.productId,coins:w.quantity,price:w.totalAmountStr})),selectedId:f,onSelect:w=>v(w.id)})}),!r&&b("div",{style:pe.autoDeductOption.styles,children:[b("span",{style:N`
452
+ `.styles,children:b(Z2,{options:n.map(w=>({id:w.productId,coins:w.quantity,price:w.totalAmountStr})),selectedId:f,onSelect:w=>v(w.id)})}),!r&&b("div",{style:pe.autoDeductOption.styles,children:[b("span",{style:N`
453
453
  font-size: 12px;
454
454
  font-weight: 400;
455
455
  line-height: 1.2;
456
456
  color: #979797;
457
- `.styles,children:p("jolicoin.unlockWithJolicoinDescription")}),b(cS,{enableAutoDeduct:d,toggleEnableAutoDeduct:_})]}),b("section",{style:`${pe.buttonContainer.styles} ${g==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[b("button",{style:`${pe.confirmButton.styles} ${pe.buttonFlex.styles}`,onClick:y,children:p(l)}),b("button",{style:`${pe.cancelButton.styles} ${pe.buttonFlex.styles}`,onClick:o.bind(null,{type:"FAILED"}),children:p(c)})]})]})]})},dS=e=>{let t=bd({title:"",content:b(W2,{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},pS=e=>{let t=bd({title:"",content:b(K2,{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},fS=new Map,Fi=(e,t)=>{fS.set(e,t)};Fi(/^\{slot-checkmark\}/,(e,t)=>{var n,i;let r=(i=(n=t==null?void 0:t.customStyle)==null?void 0:n.mark)!=null?i:{};return b("div",{style:r,children:b("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",style:{height:"24px",verticalAlign:"middle"},children:[b("g",{clipPath:"url(#clip0_2247_16523)",children:b("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM9.29 16.29L5.7 12.7C5.31 12.31 5.31 11.68 5.7 11.29C6.09 10.9 6.72 10.9 7.11 11.29L10 14.17L16.88 7.29C17.27 6.9 17.9 6.9 18.29 7.29C18.68 7.68 18.68 8.31 18.29 8.7L10.7 16.29C10.32 16.68 9.68 16.68 9.29 16.29Z",fill:"white"})}),b("defs",{children:b("clipPath",{id:"clip0_2247_16523",children:b("rect",{width:"24",height:"24",fill:"white"})})})]})})});Fi(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:U2;return b("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});Q2=/^\{slot-i18n-(.+?)\}/,Y2=({i18nKey:e,i18nParams:t,fallbackText:r})=>{let{t:n}=Ma(),i=n(e,t);return b("span",{children:i||r})};Fi(Q2,(e,t)=>{var n;let r=e[1];return r?b(Y2,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,fallbackText:`[${r}]`}):(console.warn("No i18n key extracted from slot pattern:",e[0]),b("span",{children:(n=t==null?void 0:t.text)!=null?n:""}))});Z2="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8yMjk0XzQwODkpIi8+CjxwYXRoIGQ9Ik0xNC4yOTUgMjUuOTIyN0MxNC4yOTUgMjUuOTIyNyAxNy45MTI1IDIxLjY0MzYgMjEuNzc1OSAxOC4wOTg0QzI0Ljc1NzQgMTUuMzYyMSAyOC4yMTUxIDEzLjE0NzQgMjguMjE1MSAxMy4xNDc0TDI3Ljk2OTUgMTEuNDEzOEMyNy45Njk1IDExLjQxMzggMjQuMDk4NyAxMi45NzYzIDIwLjc1NzUgMTUuMTk0N0MxNy4zNjUzIDE3LjQ0NTQgMTQuNTAzMyAyMC4zNTc3IDE0LjUwMzMgMjAuMzU3N0wxMS4xMzkgMTUuNjQyOEw5LjAzOTk2IDE3LjA1MjJMMTQuMjk1IDI1LjkyMjdMMTQuMjk1IDI1LjkyMjdaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzIyOTRfNDA4OSIgeDE9IjExLjczNDEiIHkxPSIzLjE3NTQxIiB4Mj0iMTgiIHkyPSIzNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjOTc1QkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzc4MTdGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=";Fi(/^\{slot-success\}/,(e,t)=>b("img",{src:Z2,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));X2="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4xNDIxIDIwQzE1LjY2NSAyMCAyMC4xNDIxIDE1LjUyMjggMjAuMTQyMSAxMEMyMC4xNDIxIDQuNDc3MTUgMTUuNjY1IDEuNzM2OThlLTA3IDEwLjE0MjEgMS43MzY5OGUtMDdDNC42MTkyOSAxLjczNjk4ZS0wNyAwLjE0MjEzNiA0LjQ3NzE1IDAuMTQyMTM1IDEwQzAuMTQyMTM2IDE1LjUyMjggNC42MTkyOSAyMCAxMC4xNDIxIDIwWk02LjUwNTk4IDUuMDQ5OTdDNi4xMTU0NiA0LjY1OTQ1IDUuNDgyMjkgNC42NTk0NSA1LjA5MTc3IDUuMDQ5OTdDNC43MDEyNCA1LjQ0MDUgNC43MDEyNCA2LjA3MzY2IDUuMDkxNzcgNi40NjQxOUw4LjYyNzMgOS45OTk3Mkw1LjA5MTc3IDEzLjUzNTNDNC43MDEyNCAxMy45MjU4IDQuNzAxMjQgMTQuNTU4OSA1LjA5MTc3IDE0Ljk0OTVDNS40ODIyOSAxNS4zNCA2LjExNTQ2IDE1LjM0IDYuNTA1OTggMTQuOTQ5NUwxMC4wNDE1IDExLjQxMzlMMTMuNTc3IDE0Ljk0OTVDMTMuOTY3NiAxNS4zNCAxNC42MDA3IDE1LjM0IDE0Ljk5MTMgMTQuOTQ5NUMxNS4zODE4IDE0LjU1ODkgMTUuMzgxOCAxMy45MjU4IDE0Ljk5MTMgMTMuNTM1M0wxMS40NTU3IDkuOTk5NzJMMTQuOTkxMyA2LjQ2NDE5QzE1LjM4MTggNi4wNzM2NiAxNS4zODE4IDUuNDQwNSAxNC45OTEzIDUuMDQ5OTdDMTQuNjAwNyA0LjY1OTQ1IDEzLjk2NzYgNC42NTk0NSAxMy41NzcgNS4wNDk5N0wxMC4wNDE1IDguNTg1NTFMNi41MDU5OCA1LjA0OTk3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";Fi(/^\{slot-error\}/,(e,t)=>b("img",{src:X2,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));je="-ms-",Ca="-moz-",j="-webkit-",hS="comm",wd="rule",Id="decl",eB="@import",mS="@keyframes",tB="@layer",rB=Math.abs,ja=String.fromCharCode,nB=ld.default;Ua=1,un=1,gS=0,We=0,be=0,pn="";yB=function(e,t,r){for(var n=0,i=0;n=i,i=Pt(),n===38&&i===12&&(t[r]=1),!Ni(i);)tt();return Mi(e,We)},_B=function(e,t){var r=-1,n=44;do switch(Ni(n)){case 0:n===38&&Pt()===12&&(t[r]=1),e[r]+=yB(We-1,t,r);break;case 2:e[r]+=Ea(n);break;case 4:if(n===44){e[++r]=Pt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=ja(n)}while(n=tt());return e},bB=function(e,t){return _S(_B(yS(e),t))},SE=new sd.default,wB=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&&!SE.get(r))&&!n){SE.set(e,!0);for(var i=[],o=bB(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]}}},IB=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};EB=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Id:e.return=bS(e.value,e.length);break;case mS:return sn([Ii(e,{value:U(e.value,"@","@"+j)})],n);case wd:if(e.length)return aB(e.props,function(i){switch(oB(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return sn([Ii(e,{props:[U(i,/:(read-\w+)/,":"+Ca+"$1")]})],n);case"::placeholder":return sn([Ii(e,{props:[U(i,/:(plac\w+)/,":"+j+"input-$1")]}),Ii(e,{props:[U(i,/:(plac\w+)/,":"+Ca+"$1")]}),Ii(e,{props:[U(i,/:(plac\w+)/,je+"input-$1")]})],n)}return""})}},SB=[EB],xB=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,ke.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,Vt.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||SB,i={},o,a=[];o=e.container||document.head,(0,ke.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=[wB,IB];{var c,d=[mB,gB(function(m){c.insert(m)})],u=vB((0,Pa.default)(l).call(l,n,d)),p=function(m){return sn(fB(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 FE({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};kB=function(e){var t=xB(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=pr(s,t.registered,void 0);return qa(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=pr(s,t.registered),d="animation-"+c.name;return xE(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=pr(s,t.registered);xE(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return Gu(t.registered,r,AB(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){(0,ke.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,Wu.default)(Pi).call(Pi,null,t.registered),merge:(0,Wu.default)(Gu).call(Gu,null,t.registered,r)}},AB=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,xi.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},TB=kB({key:"css"}),CB=TB.css,PB=(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 fS.entries()){let d=l.source.startsWith("^")?l.source.slice(1):l.source,u=new RegExp(d,"g");u.lastIndex=n;let p=u.exec(e);p&&p.index<a&&(o=p,a=p.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=CB`
457
+ `.styles,children:p("jolicoin.unlockWithJolicoinDescription")}),b(mE,{enableAutoDeduct:d,toggleEnableAutoDeduct:_})]}),b("section",{style:`${pe.buttonContainer.styles} ${g==="landscape"?"flex-direction: row":"flex-direction: column"}`,children:[b("button",{style:`${pe.confirmButton.styles} ${pe.buttonFlex.styles}`,onClick:y,children:p(l)}),b("button",{style:`${pe.cancelButton.styles} ${pe.buttonFlex.styles}`,onClick:o.bind(null,{type:"FAILED"}),children:p(c)})]})]})]})},gE=e=>{let t=Sd({title:"",content:b(tB,{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},yE=e=>{let t=Sd({title:"",content:b(rB,{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},_E=new Map,Ui=(e,t)=>{_E.set(e,t)};Ui(/^\{slot-checkmark\}/,(e,t)=>{var n,i;let r=(i=(n=t==null?void 0:t.customStyle)==null?void 0:n.mark)!=null?i:{};return b("div",{style:r,children:b("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",style:{height:"24px",verticalAlign:"middle"},children:[b("g",{clipPath:"url(#clip0_2247_16523)",children:b("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM9.29 16.29L5.7 12.7C5.31 12.31 5.31 11.68 5.7 11.29C6.09 10.9 6.72 10.9 7.11 11.29L10 14.17L16.88 7.29C17.27 6.9 17.9 6.9 18.29 7.29C18.68 7.68 18.68 8.31 18.29 8.7L10.7 16.29C10.32 16.68 9.68 16.68 9.29 16.29Z",fill:"white"})}),b("defs",{children:b("clipPath",{id:"clip0_2247_16523",children:b("rect",{width:"24",height:"24",fill:"white"})})})]})})});Ui(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:G2;return b("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});nB=/^\{slot-i18n-(.+?)\}/,iB=({i18nKey:e,i18nParams:t,fallbackText:r})=>{let{t:n}=Ba(),i=n(e,t);return b("span",{children:i||r})};Ui(nB,(e,t)=>{var n;let r=e[1];return r?b(iB,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,fallbackText:`[${r}]`}):(console.warn("No i18n key extracted from slot pattern:",e[0]),b("span",{children:(n=t==null?void 0:t.text)!=null?n:""}))});oB="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzYiIGhlaWdodD0iMzYiIHZpZXdCb3g9IjAgMCAzNiAzNiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iMTgiIGN5PSIxOCIgcj0iMTgiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8yMjk0XzQwODkpIi8+CjxwYXRoIGQ9Ik0xNC4yOTUgMjUuOTIyN0MxNC4yOTUgMjUuOTIyNyAxNy45MTI1IDIxLjY0MzYgMjEuNzc1OSAxOC4wOTg0QzI0Ljc1NzQgMTUuMzYyMSAyOC4yMTUxIDEzLjE0NzQgMjguMjE1MSAxMy4xNDc0TDI3Ljk2OTUgMTEuNDEzOEMyNy45Njk1IDExLjQxMzggMjQuMDk4NyAxMi45NzYzIDIwLjc1NzUgMTUuMTk0N0MxNy4zNjUzIDE3LjQ0NTQgMTQuNTAzMyAyMC4zNTc3IDE0LjUwMzMgMjAuMzU3N0wxMS4xMzkgMTUuNjQyOEw5LjAzOTk2IDE3LjA1MjJMMTQuMjk1IDI1LjkyMjdMMTQuMjk1IDI1LjkyMjdaIiBmaWxsPSJ3aGl0ZSIvPgo8ZGVmcz4KPGxpbmVhckdyYWRpZW50IGlkPSJwYWludDBfbGluZWFyXzIyOTRfNDA4OSIgeDE9IjExLjczNDEiIHkxPSIzLjE3NTQxIiB4Mj0iMTgiIHkyPSIzNiIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiPgo8c3RvcCBzdG9wLWNvbG9yPSIjOTc1QkZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzc4MTdGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=";Ui(/^\{slot-success\}/,(e,t)=>b("img",{src:oB,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));aB="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjEiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMSAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xMC4xNDIxIDIwQzE1LjY2NSAyMCAyMC4xNDIxIDE1LjUyMjggMjAuMTQyMSAxMEMyMC4xNDIxIDQuNDc3MTUgMTUuNjY1IDEuNzM2OThlLTA3IDEwLjE0MjEgMS43MzY5OGUtMDdDNC42MTkyOSAxLjczNjk4ZS0wNyAwLjE0MjEzNiA0LjQ3NzE1IDAuMTQyMTM1IDEwQzAuMTQyMTM2IDE1LjUyMjggNC42MTkyOSAyMCAxMC4xNDIxIDIwWk02LjUwNTk4IDUuMDQ5OTdDNi4xMTU0NiA0LjY1OTQ1IDUuNDgyMjkgNC42NTk0NSA1LjA5MTc3IDUuMDQ5OTdDNC43MDEyNCA1LjQ0MDUgNC43MDEyNCA2LjA3MzY2IDUuMDkxNzcgNi40NjQxOUw4LjYyNzMgOS45OTk3Mkw1LjA5MTc3IDEzLjUzNTNDNC43MDEyNCAxMy45MjU4IDQuNzAxMjQgMTQuNTU4OSA1LjA5MTc3IDE0Ljk0OTVDNS40ODIyOSAxNS4zNCA2LjExNTQ2IDE1LjM0IDYuNTA1OTggMTQuOTQ5NUwxMC4wNDE1IDExLjQxMzlMMTMuNTc3IDE0Ljk0OTVDMTMuOTY3NiAxNS4zNCAxNC42MDA3IDE1LjM0IDE0Ljk5MTMgMTQuOTQ5NUMxNS4zODE4IDE0LjU1ODkgMTUuMzgxOCAxMy45MjU4IDE0Ljk5MTMgMTMuNTM1M0wxMS40NTU3IDkuOTk5NzJMMTQuOTkxMyA2LjQ2NDE5QzE1LjM4MTggNi4wNzM2NiAxNS4zODE4IDUuNDQwNSAxNC45OTEzIDUuMDQ5OTdDMTQuNjAwNyA0LjY1OTQ1IDEzLjk2NzYgNC42NTk0NSAxMy41NzcgNS4wNDk5N0wxMC4wNDE1IDguNTg1NTFMNi41MDU5OCA1LjA0OTk3WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==";Ui(/^\{slot-error\}/,(e,t)=>b("img",{src:aB,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}}));je="-ms-",Oa="-moz-",j="-webkit-",bE="comm",Ed="rule",xd="decl",sB="@import",wE="@keyframes",lB="@layer",cB=Math.abs,Ja=String.fromCharCode,uB=dd.default;$a=1,fn=1,SE=0,Ke=0,be=0,mn="";xB=function(e,t,r){for(var n=0,i=0;n=i,i=Ot(),n===38&&i===12&&(t[r]=1),!qi(i);)rt();return Bi(e,Ke)},kB=function(e,t){var r=-1,n=44;do switch(qi(n)){case 0:n===38&&Ot()===12&&(t[r]=1),e[r]+=xB(Ke-1,t,r);break;case 2:e[r]+=ka(n);break;case 4:if(n===44){e[++r]=Ot()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Ja(n)}while(n=rt());return e},AB=function(e,t){return xE(kB(EE(e),t))},PS=new ud.default,TB=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&&!PS.get(r))&&!n){PS.set(e,!0);for(var i=[],o=AB(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]}}},CB=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};PB=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case xd:e.return=kE(e.value,e.length);break;case wE:return un([xi(e,{value:U(e.value,"@","@"+j)})],n);case Ed:if(e.length)return fB(e.props,function(i){switch(pB(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return un([xi(e,{props:[U(i,/:(read-\w+)/,":"+Oa+"$1")]})],n);case"::placeholder":return un([xi(e,{props:[U(i,/:(plac\w+)/,":"+j+"input-$1")]}),xi(e,{props:[U(i,/:(plac\w+)/,":"+Oa+"$1")]}),xi(e,{props:[U(i,/:(plac\w+)/,je+"input-$1")]})],n)}return""})}},RB=[PB],OB=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,ke.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,Gt.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||RB,i={},o,a=[];o=e.container||document.head,(0,ke.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=[TB,CB];{var c,d=[IB,EB(function(m){c.insert(m)})],u=SB((0,Na.default)(l).call(l,n,d)),p=function(m){return un(bB(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 $S({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};NB=function(e){var t=OB(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=hr(s,t.registered,void 0);return Ma(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=hr(s,t.registered),d="animation-"+c.name;return RS(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=hr(s,t.registered);RS(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return Qu(t.registered,r,DB(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){(0,ke.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,Yu.default)(Ni).call(Ni,null,t.registered),merge:(0,Yu.default)(Qu).call(Qu,null,t.registered,r)}},DB=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,Ti.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},LB=NB({key:"css"}),qB=LB.css,FB=(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 _E.entries()){let d=l.source.startsWith("^")?l.source.slice(1):l.source,u=new RegExp(d,"g");u.lastIndex=n;let p=u.exec(e);p&&p.index<a&&(o=p,a=p.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=qB`
458
458
  display: 'flex',
459
459
  alignItems: 'flex-start',
460
460
  gap: '4px',
@@ -465,7 +465,7 @@ If multiple caches share the same key they might "fight" for each other's style
465
465
  fontWeight: 600,
466
466
  lineHeight: '18px',
467
467
  width: 'max-content'
468
- `;return r.length===1?r[0]:b("div",{className:i,children:r})},RB=({message:e,type:t="info",duration:r=3e3,onClose:n,position:i="top"})=>{let[o,a]=Ht(!0);Rr(()=>{let c=setTimeout(()=>{a(!1),setTimeout(()=>{n==null||n()},300)},r);return()=>clearTimeout(c)},[r,n]);let s=dd(()=>{let c=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10);return Math.max(20,c)},[]),l=N`
468
+ `;return r.length===1?r[0]:b("div",{className:i,children:r})},MB=({message:e,type:t="info",duration:r=3e3,onClose:n,position:i="top"})=>{let[o,a]=zt(!0);Nr(()=>{let c=setTimeout(()=>{a(!1),setTimeout(()=>{n==null||n()},300)},r);return()=>clearTimeout(c)},[r,n]);let s=hd(()=>{let c=parseInt(getComputedStyle(document.documentElement).getPropertyValue("--status-bar-height")||"0",10);return Math.max(20,c)},[]),l=N`
469
469
  position: fixed;
470
470
  left: 50%;
471
471
  padding: 10px 16px;
@@ -507,7 +507,7 @@ If multiple caches share the same key they might "fight" for each other's style
507
507
  opacity: 1;
508
508
  transform: translate(-50%, -50%) scale(1);
509
509
  `}
510
- `;return b("div",{className:`toast toast-${t}`,style:l.styles,children:e})},ji=(e,t)=>I(void 0,null,function*(){let{iframe:r,emotionCache:n}=yield _E.acquire(),i=r.contentDocument;if(!i)return;let o=i.createElement("div");i.body.appendChild(o);let a=()=>{i.body.removeChild(o),_E.release()},s=PB(e,t),l=rS(),c=ZE[l].translations;rr(b(QE,{value:n,children:b(eS,{definition:c,children:b(RB,{message:s,type:t==null?void 0:t.type,position:t==null?void 0:t.position,duration:t==null?void 0:t.duration,onClose:a})})}),o)}),kE={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"}},OB=`
510
+ `;return b("div",{className:`toast toast-${t}`,style:l.styles,children:e})},Ji=(e,t)=>I(void 0,null,function*(){let{iframe:r,emotionCache:n}=yield xS.acquire(),i=r.contentDocument;if(!i)return;let o=i.createElement("div");i.body.appendChild(o);let a=()=>{i.body.removeChild(o),xS.release()},s=FB(e,t),l=lE(),c=iE[l].translations;ir(b(rE,{value:n,children:b(aE,{definition:c,children:b(MB,{message:s,type:t==null?void 0:t.type,position:t==null?void 0:t.position,duration:t==null?void 0:t.duration,onClose:a})})}),o)}),OS={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"}},jB=`
511
511
  @keyframes spin {
512
512
  0% {
513
513
  transform: rotate(0deg);
@@ -516,9 +516,9 @@ If multiple caches share the same key they might "fight" for each other's style
516
516
  transform: rotate(360deg);
517
517
  }
518
518
  }
519
- `,NB=()=>b("div",{style:kE.container,children:[b("style",{children:OB}),b("div",{style:kE.spinner})]});c8=Sd()});function wS(){return I(this,null,function*(){if(xd)return xd;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 ne(t);return xd=r,r})}function IS(){return I(this,null,function*(){let e=new yt;if(S.mpType!=="game")return e.resolve(!1),e.promise;if(kd)return e.resolve(!0),e.promise;let t=yield wS();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:i}=t.data;kd=!0;let o={domain:"GAME",buttons:t.data.buttons.map(s=>`${s.type}-${s.text}`).join(","),list:r.games.map(s=>s.gameId).join(",")};Y("RecommendedGuide",C({eventType:ve.View},o));let a=sS({games:r.games,title:n,buttons:i,onClose:s=>{var l;switch(kd=!1,s.type){case"quit":Y("RecommendedGuide",{eventType:ve.Click,type:"QUIT",domain:"GAME"}),e.resolve(!1);break;case"dismiss":Y("RecommendedGuide",C({eventType:ve.Hide},o)),e.resolve(!0),a.destroy();break;case"navigate":if((l=s.data)!=null&&l.game){let c=s.data.game;DB(c),Y("GameItem",{eventType:ve.Click,gameId:c.gameId,layerName:"RecommendedGuide",domain:"GAME"}),setTimeout(()=>{e.resolve(!1)},0)}else e.resolve(!0);a.destroy();break;default:Y("RecommendedGuide",C({eventType:ve.Hide},o)),e.resolve(!0);break}}});return e.promise})}var xd,DB,kd,ES=T(()=>{"use strict";Q();Ee();D();Or();wt();Lt();xd=null;wS();DB=e=>{var a;let{data:t}=F("envSync"),r=new URL(t.schema),n=new URLSearchParams(r.search);n.set("gameId",e.gameId),n.set("joliSource",S.encodeJoliSourceQuery({__mpType:"game",__orientation:(a=e.orientation)!=null?a:"VERTICAL"}));let o=`${`https://${e.gameId}.content.jolibox.com/`}index.html?${n.toString()}`;F("openSchemaSync",{schema:o})},kd=!1});function LB(e){let t=C(C({},qB),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:_,containerTransition:w,iframeTransition:A}=p();ee=document.createElement("div"),ee.id="jolibox-modal-overlay",ee.style.cssText=`position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.5); z-index:1000; display:flex; justify-content:center; align-items:flex-end; transition:${_}; opacity:0; visibility:hidden;`,V=document.createElement("div"),V.id="jolibox-modal-container",V.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:${w};`;let R=document.createElement("div");R.id="jolibox-modal-loading",R.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 P=document.createElement("style");P.textContent="@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }",document.head.appendChild(P);let E=document.createElement("div");if(E.style.cssText="width:100%; height:100%; display:flex; flex-direction:column; padding-bottom:env(safe-area-inset-bottom, 0); position:relative;",ct=document.createElement("iframe"),ct.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${A};`,ct.src=r,ct.onload=()=>{R.parentNode&&R.parentNode.removeChild(R),ct.style.opacity="1",g(),l==null||l(),Se.emit("onModalIframeLoaded",{url:r})},E.appendChild(ct),E.appendChild(R),V.appendChild(E),i){let k=document.createElement("div");k.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;",k.innerHTML="\u2715",k.onclick=v,V.appendChild(k)}ee.appendChild(V),document.body.appendChild(ee),ee.addEventListener("click",function(k){k.target===ee&&v()}),o&&y()}function g(){!ee||!V||u||(ee.style.visibility="visible",a?requestAnimationFrame(()=>{ee&&(ee.style.opacity="1"),V&&(V.style.transform="translateY(0)"),u=!0}):(ee&&(ee.style.opacity="1"),V&&(V.style.transform="translateY(0)"),u=!0),F("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:S.webviewId}))}function y(){if(!V)return;let _=R=>{c=R.touches[0].clientY},w=R=>{if(!u)return;d=R.touches[0].clientY;let P=d-c;P>0&&(V&&(V.style.transition="none",V.style.transform=`translateY(${P}px)`),R.preventDefault())},A=()=>{!u||!V||(V.style.transition=a?"transform 0.3s ease":"none",d-c>80?v():V.style.transform="translateY(0)")};V.addEventListener("touchstart",_),V.addEventListener("touchmove",w),V.addEventListener("touchend",A)}function v(){!ee||!V||!u||(a?(V.style.transform="translateY(100%)",ee.style.opacity="0"):ee.style.visibility="hidden",u=!1,F("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:S.webviewId}),setTimeout(()=>{ee&&(ee.remove(),ee=null,V=null,ct=null,s==null||s(),Se.emit("onModalIframeClosed",{url:r}))},f()))}return m(),{close:v}}function SS(){return window.joliboxUI=L(C({},window.joliboxUI),{createIframeModal:LB}),()=>{window.joliboxUI=void 0,ee&&ee.parentNode&&ee.parentNode.removeChild(ee),V&&V.parentNode&&V.parentNode.removeChild(V),ct&&ct.parentNode&&ct.parentNode.removeChild(ct),ee=null,V=null,ct=null}}var qB,ee,V,ct,xS=T(()=>{"use strict";Ee();Q();D();qB={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},ee=null,V=null,ct=null});var AS={};Tp(AS,{config:()=>GB});function MB(){yo.on("isAdShowing",e=>{Ha=e,Dn(Ha)&&F("updateContainerConfigSync",{displayCapsuleButton:!Ha,webviewId:S.webviewId})})}function jB(){Se.on("onInterceptSystemExit",({intercept:e})=>{kS=e})}function UB(){Se.on("onInterceptBackPress",({intercept:e})=>{FB=e}),ze("onBeforeBackPress",({uuid:e})=>{var t,r;Se.emit("onBackPress",{}),(r=(t=globalThis.joliboxJSCore)==null?void 0:t.doBackPress)==null||r.call(t,e)})}function BB(){Se.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),Y("onDocumentReady",{start_timestamp:za,timestamp:Date.now()})})}function JB(){ze("onI18nChanged",({language:e})=>{Se.emit("onI18nChanged",{i18n:e})})}function $B(e){S.mpType==="game"&&qt.start(e)}function HB(){ze("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&S.onEnvConfigChanged({hostUserInfo:e}),Se.emit("LifecycleEvent.onReady",C({},S.hostUserInfo?S.hostUserInfo:{isLogin:!1})),Y("joliboxServiceReady",{start_timestamp:za,timestamp:Date.now()}),$B(t),tS(()=>S.language)}),ze("onBeforeExit",({uuid:e})=>{var t;(t=globalThis.joliboxJSCore)==null||t.doExit(e)})}function VB(){let e=()=>{Y("onBeforeExit",{timestamp:Date.now()}),Ja==null||Ja(),$a==null||$a(),qt.close(Date.now()-za)},t=()=>Ha||kS;at.onDoExit(()=>I(this,null,function*(){return t()?!0:Dn(S.shouldInterupt)?(S.shouldInterupt||e(),S.shouldInterupt):Va!=null&&Va.canShowRecommended&&(yield IS())?!0:(e(),!1)})),at.onDoBackPress(()=>I(this,null,function*(){return!!t()}))}function zB(){return I(this,null,function*(){let e=`${S.baseApiHost}/api/fe-configs/js-sdk/basic-meta`,{response:{data:t}}=yield ne(e);t&&(Va=t)})}function GB(){za=Date.now(),HB(),MB(),jB(),UB(),VB(),BB(),JB(),zB(),$a=SS(),Ja=zf()}var Ja,$a,za,Ha,Va,kS,FB,TS=T(()=>{"use strict";Ee();Q();D();Lt();Gf();Dl();ES();wt();Or();xS();Ha=!1,Va=null,kS=!1,FB=!1;at.onReady(()=>{})});function CS(e){let t=Il.config[e];return t||(t={},Il.config[e]=t),(r,n)=>{if(t[r]){_t.warn(`[can i use] ${r} already registered`);return}t[r]=C({},n)}}var PS=T(()=>{"use strict";D()});function Ad(e){RS=e}function Ga(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>Ga(t)):Object.keys(e).reduce((t,r)=>(t[r]=Ga(e[r]),t),{})}function Gt(e){return typeof e=="number"}function Td(e){let t=Cd(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function Cd(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var RS,we,Wa,Ka,Qa,Ya,fn,Za,Xa,es,ts,rs,ns,is,os,as,ss,ls,cs,Pd=T(()=>{"use strict";RS=!1;we=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(RS)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 ${Td(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return Ga(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:Ga(this._default)}optional(){return this._optional=!0,this}};Wa=class extends we{validate(t){return this._optional&&t===void 0?!0:Gt(t)?Gt(this._min)&&t<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):Gt(this._max)&&t>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):Gt(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}},Ka=class extends we{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},Qa=class extends we{validate(t){if(this._optional&&t===void 0)return!0;if(typeof t!="string")return this.fail({expect:"string",actual:t});if(Gt(this._maxLength)&&t.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if(Gt(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}},Ya=class extends we{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},fn=class extends we{validate(t){return!0}},Za=class extends we{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},Xa=class extends we{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},es=class extends we{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},ts=class extends we{constructor(...t){super(),this._items=t}validate(t){if(this._optional&&t===void 0)return!0;if(!this._items.includes(t)){let r=this._items.map(n=>JSON.stringify(n)).join(", ");return this.fail(`expect ${this.path} to be one of ${r}, but got ${Td(t)}`)}return!0}},rs=class extends we{constructor(r){super();this._item=r}validate(r){if(this._optional&&r===void 0)return!0;if(!Array.isArray(r))return this.fail({expect:"array",actual:r});if(Gt(this._minItems)&&r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if(Gt(this._maxItems)&&r.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if(Gt(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}},ns=class extends we{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(Cd(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}},is=class extends we{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(Cd(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}},os=class extends we{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:Td(this.value),actual:r}):!0}},as=class extends we{constructor(...t){super(),this._items=t}validate(t){if(t===void 0&&this._optional)return!0;let r=[],n=!1,i=this._items.length;for(let o=0;o<i;o++){let a=this._items[o];if(a.errors=[],a.path=this.path,!a.validate(t))r.push(a.errors.join("; "));else if(!n){n=!0;break}}if(!n){let o=r.join(`
520
- or `);this.errors.push(o)}return n}},ss=class extends we{constructor(...t){super(),this._items=t;let r=0,n=t.length-1;for(;n>=0;n--){let i=t[n];if(i._optional||i.hasDefault)r+=1;else break}this._minItems=t.length-r}validate(t){if(t===void 0&&this._optional)return!0;if(!Array.isArray(t))return this.fail({expect:"array",actual:t});if(t.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);let r=!0;return this._items.forEach((n,i)=>{if(n.path=`${this.path}[${i}]`,n.errors=this.errors,t[i]===void 0&&n.hasDefault){t[i]=n.defaultValue;return}n.validate(t[i])||(n.hasFallback?t[i]=n._fallback:r=!1)}),r}},ls=class extends we{validate(t){return t===void 0&&this._optional||t instanceof ArrayBuffer?!0:this.fail({expect:"arraybuffer",actual:t})}},cs=class extends we{constructor(t){super(),this._ctor=t}validate(t){return t===void 0&&this._optional||t instanceof this._ctor?!0:this.fail({expect:`typedarray of ${this._ctor.name}`,actual:t})}}});function Rd(e,t,r="param"){if(e.errors=[],e.path=r,Ad(!0),!e.validate(t)){let n=e.errors.join(`
521
- `);throw e.errors.length=0,Ad(!1),new TypeError(n)}}var x,Od=T(()=>{"use strict";Pd();Pd();x={object(e){return new is(e)},array(e){return new rs(e)},tuple(...e){return new ss(...e)},literal(e){return new os(e)},or(...e){return new as(...e)},symbol(){return new Ya},record(e){return new ns(e)},function(){return new es},boolean(){return new Ka},string(){return new Qa},number(){return new Wa},undefined(){return new Za},null(){return new Xa},unknown(){return new fn},any(){return new fn},as(){return new fn},arraybuffer(){return new ls},enum(...e){return new ts(...e)},typedarray(e){return new cs(e)}}});var us,OS,NS=T(()=>{"use strict";D();dt();Od();Mr();us=1,OS=e=>{function t(n,i){return(...o)=>{var u,p,f,m;let a=Date.now(),s={method:n,trace_id:us};us+=1;let l="SUCCESS",c=`${n}:ok`,d=0;try{if(i.paramsSchema)try{Rd(i.paramsSchema,o,"params")}catch(_){throw Pl(`${n}:fail ${_.message}`)}let g=i.implement(...o),y=g,v=`${n}:ok`;if(g&&"code"in g){let{code:_,data:w,message:A}=g;l=_,y=w,v=A}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?/,"")}`,Ce(new Ln(c,d)),{code:l,message:c}}finally{let g=Date.now()-a;e("apiInvoked",L(C({},s),{duration:g,status:l}))}}}function r(n,i){return(...o)=>I(this,null,function*(){var p,f,m,g;let a=nf(o)?o:[o],s=Date.now(),l={method:n,trace_id:us};us+=1;let c=`${n}:ok`,d="SUCCESS",u={code:d,message:c};try{if(i.paramsSchema)try{Rd(i.paramsSchema,a,"params")}catch(_){throw Pl(_.message)}let v=yield i.implement(...a);if(v&&"code"in v){let{code:_,data:w,message:A}=v;d=_,c=A,v=w}return Object.assign(u,{code:d,message:c,data:v}),u}catch(y){let v=y,_=(f=(p=v.code)!=null?p:v.errNo)!=null?f:2e3;d="FAILURE";let w=(g=(m=v.message)!=null?m:v.errMsg)!=null?g:`${y}`,A=`${n}:${d} ${w.replace(/^\S+:(fail|cancel)\s?/,"")}`;return Object.assign(u,{code:d,message:A}),Ce(new Ln(A,_)),u}finally{let y=Date.now()-s;e("apiInvoked",L(C({},l),{duration:y,status:d}))}})}return{createAPI:r,createSyncAPI:t}}});var Ne,z,q,DS,ut=T(()=>{"use strict";PS();Lt();NS();Od();Ee();Q();({createAPI:Ne,createSyncAPI:z}=OS(Y)),q=CS("native"),{canIUseNative:DS}=Vp(()=>S.sdkInfo.nativeSDKVersionCode)});var qS,KB,QB,YB,ZB,LS=T(()=>{"use strict";D();ut();Ee();Q();qS=ae(),KB="env",QB="getSystemInfoSync",YB=z(QB,{implement:()=>{var r;let e=F("envSync"),{data:t}=e;return{system:t.deviceInfo.system,platform:t.deviceInfo.platform.toLowerCase(),version:t.sdkInfo.jssdkVersion,pixelRatio:t.deviceInfo.pixelRatio,language:t.deviceInfo.lang,brand:t.deviceInfo.brand,appName:(r=t.hostInfo)==null?void 0:r.appName,SDKVersion:t.sdkInfo.jssdkVersion,viewport:{statusBarHeight:S.viewport.statusBarHeight,navigationBarHeight:S.viewport.navigationBarHeight}}}}),ZB=z(KB,{implement:()=>{var t;let e=F("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});qS.registerCommand("API.getSystemInfoSync",YB);qS.registerCommand("API.env",ZB);q("env",{version:"1.0.0"});q("getSystemInfoSync",{version:"1.0.0",properties:{viewport:"1.0.33"}})});var FS=h(Nd=>{"use strict";D();ut();dt();Ee();Lt();Q();var XB="exitGame",e5="onReady",t5="onJoliboxShow",r5="onJoliboxHide",ds=ae(),ps=fo(Ce),n5=Ne(XB,{paramsSchema:x.tuple(x.function(),x.boolean().optional().default(!1)),implement:(e,t=!1)=>I(Nd,null,function*(){ps(e).call(Nd),Dn(S.shouldInterupt)&&!S.shouldInterupt&&S.from&&Yp("onRetentionResult",{shouldStay:t},S.from,!0),t||S.setDoExitDirectly(),yield me("exitAppAsync")})}),i5=z(t5,{paramsSchema:x.tuple(x.function()),implement(e){let t=ps(e);ze("onJoliboxEnterForeground",()=>{t.call(this),Mn.emit("visible",!0)})}}),o5=z(r5,{paramsSchema:x.tuple(x.function()),implement(e){let t=ps(e);ze("onJoliboxEnterBackground",()=>{t.call(this),Mn.emit("visible",!1)})}}),a5=z(e5,{paramsSchema:x.tuple(x.function()),implement(e){let t=ps(e);Se.on("LifecycleEvent.onReady",r=>{t(r)})}});ds.registerCommand("LifecycleSDK.exit",n5);ds.registerCommand("LifecycleSDK.onReady",a5);ds.registerCommand("LifecycleSDK.onJoliboxShow",i5);ds.registerCommand("LifecycleSDK.onJoliboxHide",o5);q("lifeCycle.exit",{version:"1.0.0"});q("lifeCycle.onReady",{version:"1.0.0"});q("lifeCycle.onJoliboxShow",{version:"1.0.0"});q("lifeCycle.onJoliboxHide",{version:"1.0.0"})});function MS(e){let t={};if(!yr(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 jS(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 US(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function BS(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!yr(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 JS=T(()=>{"use strict";D()});var s5,l5,Dd,qd,$S,c5,u5,d5,HS=T(()=>{"use strict";Mr();Ol();ut();JS();D();dt();Q();s5=15,l5=vo("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:S.baseApiHost}),Dd=0,qd=[],$S=fo(Ce),c5=(e,t)=>{let r=e.filter(t),n=e.filter(i=>!t(i));return e.length=0,e.push(...n),r},u5=e=>{let t=new yt,r=()=>{};return z("request",{paramsSchema:x.tuple(x.object({url:x.string(),method:x.string(),headers:x.object().optional(),data:x.object().optional(),query:x.object().optional(),dataType:x.string().default("json"),responseType:x.string().default("text"),enableCache:x.boolean().default(!1),appendHostCookie:x.boolean().default(!0),timeout:x.number().default(3e4),success:x.function(),fail:x.function()})),implement(i){let o=()=>I(this,null,function*(){var s,l,c;let a=$S(i.fail);try{if(Dd+=1,t.state!=="pending")return;let{data:d,dataType:u,responseType:p,enableCache:f,appendHostCookie:m}=i,g=MS((s=i.headers)!=null?s:{}),y=jS(i.method),v=US(i.timeout),_=BS(i.url,y,d),w=$S(i.success),A=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&&(A.timeout=v);let R=l5(_,A);{let{response:P}=yield R,{code:E,data:k,message:H}=P;if(k&&typeof k=="object"&&"status"in k&&k.status!==200)throw tr({code:k.status||-1,msg:`request:fail status ${k.status}`});t.resolve({code:E!=null?E:"SUCCESS",data:k,message:H!=null?H:"request:ok"}),w({code:"SUCCESS",message:"request:ok",data:k})}}catch(d){t.reject(d),a({code:"FAILURE",message:"httpRequst: failed"})}finally{Dd-=1,(c=qd.shift())==null||c()}});return Dd>=s5?(r=()=>{c5(qd,a=>a===o)},qd.push(o)):o(),t.promise}})(e),{abort(){t.reject(tr({code:-1,msg:"request:fail abort"})),r()}}},d5=ae();d5.registerCommand("HttpSDK.request",u5);q("request",{version:"1.0.0"})});function VS(e){let t=Object.prototype.toString.call(e).split(" ")[1].split("]")[0].toLocaleLowerCase();return t==="array"&&(t="object"),v5.includes(t)?t:""}function zS(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 GS(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 fs,p5,f5,h5,m5,MW,jW,v5,Ui,Ld,Fd=T(()=>{"use strict";ut();Ee();D();wt();Q();fs=ae(),p5=Ne("getLocalStorage",{paramsSchema:x.tuple(x.string()),implement(e){return I(this,null,function*(){let{response:t}=yield ne(`/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 me("getLocalStorageAsync",{key:e}),s=zS(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}}})}});fs.registerCommand("StorageSDK.getItem",p5);q("storage.getItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});f5=Ne("setStorage",{paramsSchema:x.tuple(x.string(),x.or(x.string(),x.boolean(),x.number())),implement(e,t){return I(this,null,function*(){let r=S.mpId,n=typeof t=="string"?t:String(t),{response:i}=yield ne(`/api/games/user-storage/${r}`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e,value:n}}),{data:{code:o,message:a}}=i,s=VS(t),l=GS(t,s);return yield me("setLocalStorageAsync",{key:e,data:l,dataType:s}),o=="SUCCESS"?{code:o,message:a}:{code:o,message:`${a}. fallback to native`}})}});fs.registerCommand("StorageSDK.setItem",f5);q("storage.setItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});h5=Ne("removeStorage",{paramsSchema:x.tuple(x.string()),implement(e){return I(this,null,function*(){let t=S.mpId,{response:r}=yield ne(`/api/games/user-storage/${t}/remove`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e}}),{data:{code:n,message:i}}=r;return yield me("removeLocalStorageAsync",{key:e}),n==="SUCCESS"?{code:n,message:i}:{code:n,message:"[Jolibox SDK] remove item succ"}})}});fs.registerCommand("StorageSDK.removeItem",h5);q("storage.removeItem",{version:"1.0.0",properties:{key:"1.0.0"}});m5=Ne("clearStorage",{implement(){return I(this,null,function*(){let e=S.mpId,{response:t}=yield ne(`/api/games/user-storage/${e}/clear`,{method:"POST",appendHostCookie:!0});me("clearLocalStorageAsync");let{data:{code:r,message:n}}=t;return r==="SUCCESS"?{code:r,message:n}:{code:r,message:`${n}.fallback to native`}})}});fs.registerCommand("StorageSDK.clear",m5);q("storage.clear",{version:"1.0.0"});MW=Ne("getStorageInfo",{implement(){return I(this,null,function*(){let{data:e}=yield me("getStorageInfoAsync");return e})}});q("getStorageInfo",{version:"1.0.0",success:{keys:"1.0.0",currentSize:"1.0.0",limitSize:"1.0.0"}});jW=z("getStorageInfoSync",{implement(){return F("getStorageInfoSync")}}),v5=["string","number","boolean","object",""];Ui=Ne("getGlobalStorage",{paramsSchema:x.tuple(x.string()),implement(e){return I(this,null,function*(){try{let{data:{data:t,dataType:r}}=yield me("getGlobalStorageAsync",{key:e});return{code:"SUCCESS",message:"success",data:zS(t,r)}}catch(t){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get global storage failed",data:null}}})}}),Ld=Ne("setGlobalStorage",{paramsSchema:x.tuple(x.string(),x.or(x.string(),x.boolean(),x.number(),x.array())),implement(e,t){return I(this,null,function*(){try{let r=VS(t),n=GS(t,r);return yield me("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 g5,y5,_5,Md,WS=T(()=>{"use strict";D();Ee();ut();g5=z("showKeyboard",{paramsSchema:x.tuple(x.object({defaultValue:x.string().optional().default(""),multiple:x.boolean().optional().default(!1),maxLength:x.unknown().optional().default(1e5)})),implement(e){var n;let t=Math.floor((n=Number(e.maxLength))!=null?n:1e5),{defaultValue:r}=e;r&&t&&(r=r.slice(0,t)),F("showKeyboardSync",L(C({},e),{defaultValue:r,maxLength:t}))}});q("keyboard.showKeyboard",{version:"1.0.0",properties:{params:{defaultValue:"1.0.0",multiple:"1.0.0",confirmHold:"1.0.0",confirmType:"1.0.0",maxLength:"1.0.0"}},success:{errMsg:"1.0.0"}});y5=z("updateKeyboard",{paramsSchema:x.tuple(x.object({value:x.string()})),implement(e){F("updateKeyboardSync",e)}});q("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});_5=z("hideKeyboard",{implement(){F("hideKeyboardSync")}});q("keyboard.hideKeyboard",{version:"1.0.0"});Md=ae();Md.registerCommand("KeyboardSDK.showKeyboard",g5);Md.registerCommand("KeyboardSDK.updateKeyboard",y5);Md.registerCommand("KeyboardSDK.hideKeyboard",_5)});var KS=h(hs=>{"use strict";D();ut();Lt();var jd=ae(),b5=Ne("levelFinished",{paramsSchema:x.tuple(x.object({levelId:x.or(x.string(),x.number()),duration:x.number().optional(),rating:x.number().optional(),score:x.number().optional()})),implement:e=>I(hs,null,function*(){let{levelId:t,duration:r,rating:n,score:i}=e,o=[];o.push(qt.tracker("LevelFinished",{levelId:t,duration:r,rating:n,score:i})),o.push(qt.reporter({event:"COMPLETE_GAME_LEVEL"})),yield Promise.all(o)})}),w5=Ne("gamePlayEnded",{paramsSchema:x.tuple(x.object({duration:x.number().optional(),rating:x.number().optional(),score:x.number()})),implement:e=>I(hs,null,function*(){let{duration:t,rating:r,score:n}=e;return qt.tracker("GamePlayEnded",{duration:t,rating:r,score:n})})}),I5=Ne("levelUpgrade",{paramsSchema:x.tuple(x.object({levelId:x.or(x.string(),x.number()),name:x.string().optional()})),implement:r=>I(hs,[r],function*({levelId:e,name:t}){let n=[];n.push(qt.tracker("LevelUpgrade",{name:t,levelId:e})),yield Promise.all(n)})});jd.registerCommand("TaskTrackerSDK.levelFinished",b5);jd.registerCommand("TaskTrackerSDK.gamePlayEnded",w5);jd.registerCommand("TaskTrackerSDK.levelUpgrade",I5);q("TaskTrackerSDK.onLevelFinished",{version:"1.1.25",properties:{params:{levelId:"1.1.25",duration:"1.1.25",rating:"1.1.25",score:"1.1.25"}}});q("TaskTrackerSDK.onGamePlayEnded",{version:"1.1.25",properties:{params:{duration:"1.1.25",rating:"1.1.25",score:"1.1.25"}}});q("TaskTrackerSDK.onLevelUpgrade",{version:"1.1.25",properties:{params:{levelId:"1.1.25",name:"1.1.25"}}})});var Ud,Bd,E5,QS,Jd=T(()=>{"use strict";Q();Ee();ut();D();Mr();q("login",{version:"1.0.0",properties:{force:"1.0.0"},success:{errMsg:"1.0.0",code:"1.0.0",token:"1.0.0",isLogin:"1.0.0"}});q("checkSession",{version:"1.0.0",success:{errMsg:"1.0.0"}});Ud=new Map;ze("onLoginStateChange",({isLogin:e,token:t,uuid:r})=>{let n=Ud.get(r);n&&(n.resolve({isLogin:e,token:t}),Ud.delete(r))});Bd=Ne("login",{paramsSchema:x.tuple(x.object({skipLogin:x.boolean().optional(),triggerFrom:x.string().optional()}).optional()),implement(e){return I(this,null,function*(){var l;let{data:{isLogin:t}}=yield me("checkLoginAsync");if(t)return{isLogin:!0,token:(l=S.hostUserInfo)==null?void 0:l.token};let{skipLogin:r,triggerFrom:n}=e!=null?e:{},i=F("loginSync",{skipLogin:r,triggerFrom:n}),{data:{uuid:o}}=i;if(!o)throw tr({code:-1,msg:"login failed"});let a=new yt;Ud.set(o,a);let s=yield a.promise;return S.onEnvConfigChanged({hostUserInfo:s}),Se.emit("onLoginComplete",s),s})}}),E5=Ne("checkSession",{implement(){return I(this,null,function*(){let{data:{isLogin:e}}=yield me("checkLoginAsync");return{isLogin:e}})}}),QS=ae();QS.registerCommand("API.login",Bd);QS.registerCommand("API.checkSession",E5)});var mn,ms,mt,vs,Nr,gs,hn,S5,W,vn,Dr=T(()=>{"use strict";D();mn="UNLOCK_OPTIONS_CHANGED",ms="INVOKE_PAYMENT",mt="ON_PAYMENT_RESULT",vs="ON_USE_MODAL_EVENT",Nr="ON_USE_MODAL_RESULT",gs="ON_USE_MODAL_FREQUENCY",hn=new bt,S5=()=>({on:hn.on.bind(hn),off:hn.off.bind(hn),emit:hn.emit.bind(hn)}),W=S5(),vn={charge:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},useJolicoin:{dailyMaxPopUps:2,minInterval:8*60*60*1e3}}});function Wt(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)}}var Bi=T(()=>{"use strict"});var $d,YS=T(()=>{"use strict";$d=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)}});var ys,ZS,XS,ex,tx,rx=T(()=>{"use strict";Fd();YS();ys=e=>{let t;try{t=JSON.parse(e)}catch(r){t=[]}return t},ZS=e=>I(void 0,null,function*(){let{dailyMaxPopUps:t,minInterval:r}=e,n=yield Ui("joli_coin_use_modal_frequency");if(console.log("checkUseModalFrequency",n.data),!n.data)return{canShow:!0,isFirst:!0};let i=ys(n.data),o=$d(i);return o.length>=t?{canShow:!1,isFirst:!1}:Date.now()-o[o.length-1]<r?{canShow:!1,isFirst:!1}:{canShow:!0,isFirst:!1}}),XS=()=>I(void 0,null,function*(){var n;let e=Date.now(),t=yield Ui("joli_coin_use_modal_frequency"),r=ys((n=t.data)!=null?n:"[]");r.push(e),r.sort((i,o)=>o-i).splice(8),yield Ld("joli_coin_use_modal_frequency",JSON.stringify(r))}),ex=e=>I(void 0,null,function*(){let{dailyMaxPopUps:t,minInterval:r}=e,n=yield Ui("joli_coin_payment_frequency");if(console.log("checkPaymentFrequency",n.data),!n.data)return{canShow:!0,isFirst:!0};let i=ys(n.data),o=$d(i);return o.length>=t?{canShow:!1,isFirst:!1}:Date.now()-o[o.length-1]<r?{canShow:!1,isFirst:!1}:{canShow:!0,isFirst:!1}}),tx=()=>I(void 0,null,function*(){var n;let e=Date.now(),t=yield Ui("joli_coin_payment_frequency"),r=ys((n=t.data)!=null?n:"[]");r.push(e),r.sort((i,o)=>o-i).splice(8),yield Ld("joli_coin_payment_frequency",JSON.stringify(r))})});function nx(){let e=new Map;return{registerPaymentHandler(r,n){e.set(r,n)},invokePayment(r,...n){return I(this,null,function*(){let i=e.get(r);if(!i)return{code:"FAILED",message:`[joliboxSDK]: ${r} payment not supported in this platform`};try{return yield i(...n)}catch(o){return Ce(o),{code:"FAILED",message:`[joliboxSDK]: paymenterror ${o}`}}})}}}var ix=T(()=>{"use strict";dt()});var _s=T(()=>{"use strict"});var x5,gn,fr,k5,qr,Hd=T(()=>{"use strict";_s();D();Q();wt();x5=()=>{let[e,t]=[df,ff].map(r=>(n,i,o)=>new r(n,i,o));return{createPaymentError:e,createPaymentInternalError:t}},{createPaymentError:gn,createPaymentInternalError:fr}=x5(),k5=S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",qr=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startPayment=t=>I(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw gn(n,1001);return yield this.pay()});this.cancelOrder=t=>I(this,null,function*(){var n,i;let{response:r}=yield ne(`/api/orders/${t}/cancel`,{method:"POST",data:{}});if(r.code!=="SUCCCESS")throw gn((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(C({},this.generatePaymentContext()))),`${k5}//payment/callback?${t.toString()}`}}get orderId(){return this._orderId}get status(){return this._orderStatus}}});var Vd,ax,sx=T(()=>{"use strict";wt();Hd();_s();Vd=class extends qr{constructor(r){super();this.productId=r;this.generatePaymentContext=()=>({type:"JOLI_COIN_ORDER_CONTEXT",state:"TO_VALIDATE",productId:this.productId,orderId:this.orderId});this.pay=()=>I(this,null,function*(){let r=this.generateCallbackUrl();return console.info("callbackUrl",r),{code:"SUCCESS",message:"jolicoin payment success"}})}placeOrder(r){return I(this,null,function*(){var n,i,o,a;try{let{response:s}=yield ne("/api/orders/checkout/joli-coin",{method:"POST",data:{productId:r.productId}});if(s.code!=="SUCCESS")throw gn((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),fr((a=JSON.stringify(s))!=null?a:"jolicoin placeorder failed",1002)}})}},ax=()=>{let e=new Map;return t=>I(void 0,null,function*(){let r=e.get(t);return r||(r=new Vd(t),e.set(t,r)),yield r.startPayment({productId:t}),{code:"SUCCESS",message:"jolicoin payment success"}})}});var lx,cx=T(()=>{"use strict";lx={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 zd,ux,Gd,Wd,A5,dx,px=T(()=>{"use strict";wt();Hd();_s();Ee();D();Q();Or();cx();zd=new Map;ze("onPaymentStateChange",e=>{console.info("onPaymentStateChange",e);let{orderUUID:t,status:r,totalAmount:n,orderResponse:i}=e,o=zd.get(t);if(o){if(r==="SUCCESS")ji("{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"&&of(i==null?void 0:i.errNo)&&(i==null?void 0:i.errNo)!==0)throw fr(`jolicoin payment failed: ${i==null?void 0:i.errMsg}`,1002);let a=lx[r];a&&ji(`{slot-error} {slot-i18n-jolicoin.${a}}`,{position:"center",duration:3e3}),o.resolve({code:"FAILED",message:"jolicoin payment failed"})}zd.delete(t)}});ux=e=>I(void 0,null,function*(){var n,i;let t=new yt,r;try{let o=yield me("requestPaymentSync",{paymentBody:{appStoreProductId:e.appStoreProductId,appAccountToken:e.appAccountToken}});if(r=(n=o.data)==null?void 0:n.orderUUID,console.info("---payInApp---",o),!r)throw fr("orderUUID is null",1002);zd.set(r,t)}catch(o){throw fr((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),Gd=class extends qr{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=()=>I(this,null,function*(){return yield ux({appStoreProductId:this.appStoreProductId})})}placeOrder(r){return I(this,null,function*(){return{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},Wd=class extends qr{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=()=>I(this,null,function*(){return yield ux({appStoreProductId:this.appStoreProductId,appAccountToken:this.appAccountToken})})}placeOrder(r){return I(this,null,function*(){var a;console.log("----start place order for ios----");let{response:n}=yield ne("/api/orders/iap-init",{method:"GET",appendHostCookie:!0}),{data:i,code:o}=n!=null?n:{};if(console.log("----iap init----",i,o),i.code!=="SUCCESS")throw fr("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"}})}},A5={android:Gd,ios:Wd},dx=()=>{let e=new Map;return t=>I(void 0,null,function*(){let{productId:r,appStoreProductId:n}=t,i=e.get(r);if(!i){let s=A5[S.platform];if(!s)throw fr("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 gn(a,1002);return{code:"SUCCESS",message:"jolicoin payment success"}})}});var bs,fx=T(()=>{"use strict";ix();sx();px();bs=nx();bs.registerPaymentHandler("JOLI_COIN",ax());bs.registerPaymentHandler("JOLI_COIN_IAP",dx())});var vx=h(Kt=>{"use strict";Dr();Or();wt();Q();Jd();D();Bi();rx();fx();Or();ut();Ee();D();Lt();var Qd=Wt(W,gs);Qd.getData();var hr=Sd(),Kd=Promise.resolve(),mx=e=>I(Kt,null,function*(){Kd=Kd.then(()=>I(Kt,null,function*(){yield ne("/api/joli-coin/user-config",{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield Kd});W.on(vs,(e,t)=>I(Kt,null,function*(){if(e==="ADS-JOLI_COIN"){yield hr.show({duration:3e3});let n=yield Qd.getData(),{canShow:i,isFirst:o}=yield ZS(n.joliCoinUseAndCharge.useJolicoin);console.log("use modal show by frequency",i,o),hr.hide();let{balance:a}=t.userJoliCoin;if(a>=t.joliCoinQuantity&&t.enableAutoDeduct&&!o){W.emit(Nr,{useModalResult:"CONFIRM"});return}if(!i){W.emit(Nr,{useModalResult:"CONFIRM"});return}}Y("unlock_popup_show",{eventType:ve.View,targetType:"game"});let r=dS({data:{enableAutoDeduct:t.enableAutoDeduct,userJolicoin:t.userJoliCoin,joliCoinQuantity:t.joliCoinQuantity},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{Y("coin_unlock_click",{targetType:"game",eventType:ve.Click,coinConsume:t.joliCoinQuantity,ifAutoUnlock:t.enableAutoDeduct}),W.emit(Nr,{useModalResult:"CONFIRM"}),r.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:n})=>{n==="FAILED"&&Y("ad_unlock_click",{targetType:"game",eventType:ve.Click}),W.emit(Nr,{useModalResult:(n!=null?n:"")==="CANCEL"?"CANCEL":"FAILED"}),r.destroy()}},onEnableDeductChanged:n=>I(Kt,null,function*(){yield mx(n)})}});yield XS()}));W.on(ms,(e,t)=>I(Kt,null,function*(){var r,n;try{if(!DS("requestPaymentSync:paymentBody:appStoreProductId")){console.info("requestPaymentSync:paymentBody:appStoreProductId not supported"),setTimeout(()=>{W.emit(mt,{paymentResult:"FAILED"})},0);return}if(e==="ADS-JOLI_COIN"){yield hr.show({duration:3e3});let a=yield Qd.getData(),{canShow:s}=yield ex(a.joliCoinUseAndCharge.charge);if(console.log("use payment show by frequency",s),hr.hide(),!s){W.emit(mt,{paymentResult:"SUCCESS"});return}console.log("show by frequency")}yield hr.show({duration:3e3});let i=yield hx();if(hr.hide(),!i){W.emit(mt,{paymentResult:"FAILED"});return}Y("coinorder_show",{targetType:"game",eventType:ve.View});let o=pS({data:{userJolicoin:t.userJoliCoin,joliCoinQuantity:t.joliCoinQuantity,paymentChoices:(n=(r=i.paymentChoices)==null?void 0:r.map(a=>{var s;return L(C({},a),{totalAmountStr:(s=a.totalAmountStr)!=null?s:""})}))!=null?n:[],enableAutoDeduct:i.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:a=>I(Kt,null,function*(){var c,d,u,p,f,m,g,y;if(Y("order_pay_ensure",{targetType:"game",eventType:ve.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 Bd({skipLogin:!0});if(!(v!=null&&v.isLogin)){console.log("login failed");return}let _=yield hx();if(((p=_==null?void 0:_.balance)!=null?p:0)>=t.joliCoinQuantity){W.emit(mt,{paymentResult:"SUCCESS"}),o.destroy();return}}console.log("invokeNativePayment",a);let s=(m=(f=i==null?void 0:i.paymentChoices)==null?void 0:f.find(v=>v.productId===a))==null?void 0:m.appStoreProductId;if(!s){W.emit(mt,{paymentResult:"FAILED"}),o.destroy();return}yield hr.show({duration:3e3});let{code:l}=yield bs.invokePayment("JOLI_COIN_IAP",{productId:a,appStoreProductId:s});if(hr.hide(),Y("order_pay_result",{eventType:ve.Other,targetType:"game",payWay:"app_iap",coinAmount:t.joliCoinQuantity,orderPrice:(y=(g=i.paymentChoices.find(v=>v.productId===a))==null?void 0:g.totalAmountStr)!=null?y:"",payResult:l}),l!=="SUCCESS"){console.info("[JoliboxSDK] payment failed in payment.invokePaymet");return}W.emit(mt,{paymentResult:"SUCCESS"}),o.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:a})=>{W.emit(mt,{paymentResult:(a!=null?a:"")==="CANCEL"?"CANCEL":"FAILED"}),Y("ad_unlock_click",{targetType:"game",eventType:ve.Click}),o.destroy()}},onEnableDeductChanged:a=>I(Kt,null,function*(){yield mx(a)})},onSelect:a=>{var s,l;Y("coinorder_click",{targetType:"game",eventType:ve.Click,coinAmount:t.joliCoinQuantity,orderPrice:(l=(s=i.paymentChoices.find(c=>c.productId===a))==null?void 0:s.totalAmountStr)!=null?l:""})}});yield tx()}catch(i){console.info("payment failed",i),W.emit(mt,{paymentResult:"FAILED"})}}));var T5=(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=>!yl(r.totalAmountStr)),console.info("----mergeResponseData-----",e.paymentChoices)},hx=()=>I(Kt,null,function*(){var r,n,i,o,a,s,l,c,d,u;let{response:e}=yield ne("/api/joli-coin/balance-detail",{method:"GET",appendHostCookie:!0,responseType:"json"});console.info("getBalenceDetails",e);let{data:t}=yield me("requestProductDetailsAsync",{appStoreProductIds:(o=(i=(n=(r=e.data)==null?void 0:r.data)==null?void 0:n.paymentChoices)==null?void 0:i.filter(p=>typeof p.appStoreProductId=="string").map(p=>p.appStoreProductId))!=null?o:[]});if((a=e.data)!=null&&a.data&&t&&T5((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})});function rt(e,t,r){return(t=O5(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function O5(e){var t=N5(e,"string");return typeof t=="symbol"?t:t+""}function N5(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 ws(e,t,r){return(t=D5(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function D5(e){var t=q5(e,"string");return typeof t=="symbol"?t:t+""}function q5(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 H5(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function V5(e){return typeof e=="string"}function z5(e){return typeof e=="undefined"}function G5(e){return z5(e)||e===null}function W5(e){return typeof e=="function"}function $x(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 Ji(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function Ss(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 t3(e){let t=e.location?Ss(e.location,Ix):null,r=e.target?Ss(e.target,Ix):null;return Ss(B5(U5({},e),{location:t,target:r}),X5)}function r3(e){let t=e.events.map(n=>t3(n)),r=Ss(e.device,e3);return[e.protocolVersion,t,r,e.project]}function n3(){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 l3(e){return new Promise(t=>Gx(e)(t))}function Gx(e){return function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function c3(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new Gi(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 d3(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)p3(e[n],t[n])}function p3(e,t){if(V5(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(W5(t)){try{if(e instanceof t)return}catch(r){}if(!G5(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 Zd(e,t,r){return(t=f3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f3(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 Is(e,t,r){return(t=m3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function m3(e){var t=v3(e,"string");return typeof t=="symbol"?t:t+""}function v3(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 Qt(e,t,r){return(t=g3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function g3(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 _3(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 b3(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 k3(e,t){return De(e,0)^45?(((t<<2^De(e,0))<<2^De(e,1))<<2^De(e,2))<<2^De(e,3):0}function Qx(e){return e.trim()}function A3(e,t){return(e=t.exec(e))?e[0]:e}function J(e,t,r){return e.replace(t,r)}function pp(e,t){return e.indexOf(t)}function De(e,t){return e.charCodeAt(t)|0}function Wi(e,t,r){return e.slice(t,r)}function Ot(e){return e.length}function Ep(e){return e.length}function Es(e,t){return t.push(e),e}function T3(e,t){return e.map(t).join("")}function Fs(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Ls,column:wn,length:a,return:""}}function Hi(e,t){return x3(Fs("",null,null,"",null,null,0),e,{length:-e.length},t)}function C3(){return Ie}function P3(){return Ie=Qe>0?De(In,--Qe):0,wn--,Ie===10&&(wn=1,Ls--),Ie}function it(){return Ie=Qe<Yx?De(In,Qe++):0,wn++,Ie===10&&(wn=1,Ls++),Ie}function Nt(){return De(In,Qe)}function xs(){return Qe}function Qi(e,t){return Wi(In,e,t)}function Ki(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 Zx(e){return Ls=wn=1,Yx=Ot(In=e),Qe=0,[]}function Xx(e){return In="",e}function ks(e){return Qx(Qi(Qe-1,fp(e===91?e+2:e===40?e+1:e)))}function R3(e){for(;(Ie=Nt())&&Ie<33;)it();return Ki(e)>2||Ki(Ie)>3?"":" "}function O3(e,t){for(;--t&&it()&&!(Ie<48||Ie>102||Ie>57&&Ie<65||Ie>70&&Ie<97););return Qi(e,xs()+(t<6&&Nt()==32&&it()==32))}function fp(e){for(;it();)switch(Ie){case e:return Qe;case 34:case 39:e!==34&&e!==39&&fp(Ie);break;case 40:e===41&&fp(e);break;case 92:it();break}return Qe}function N3(e,t){for(;it()&&e+Ie!==57&&!(e+Ie===84&&Nt()===47););return"/*"+Qi(t,Qe-1)+"*"+qs(e===47?e:it())}function D3(e){for(;!Ki(Nt());)it();return Qi(e,Qe)}function q3(e){return Xx(As("",null,null,null,[""],e=Zx(e),0,[0],e))}function As(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,g=1,y=1,v=1,_=0,w="",A=i,R=o,P=n,E=w;y;)switch(m=_,_=it()){case 40:if(m!=108&&De(E,u-1)==58){pp(E+=J(ks(_),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:E+=ks(_);break;case 9:case 10:case 13:case 32:E+=R3(m);break;case 92:E+=O3(xs()-1,7);continue;case 47:switch(Nt()){case 42:case 47:Es(L3(N3(it(),xs()),t,r),l);break;default:E+="/"}break;case 123*g:s[c++]=Ot(E)*v;case 125*g:case 59:case 0:switch(_){case 0:case 125:y=0;case 59+d:v==-1&&(E=J(E,/\f/g,"")),f>0&&Ot(E)-u&&Es(f>32?xx(E+";",n,r,u-1):xx(J(E," ","")+";",n,r,u-2),l);break;case 59:E+=";";default:if(Es(P=Sx(E,t,r,c,d,i,s,w,A=[],R=[],u),o),_===123)if(d===0)As(E,t,P,P,A,o,u,s,R);else switch(p===99&&De(E,3)===110?100:p){case 100:case 108:case 109:case 115:As(e,P,P,n&&Es(Sx(e,P,P,0,0,i,s,w,i,A=[],u),R),i,R,u,s,n?A:R);break;default:As(E,P,P,P,[""],R,0,s,R)}}c=d=f=0,g=v=1,w=E="",u=a;break;case 58:u=1+Ot(E),f=m;default:if(g<1){if(_==123)--g;else if(_==125&&g++==0&&P3()==125)continue}switch(E+=qs(_),_*g){case 38:v=d>0?1:(E+="\f",-1);break;case 44:s[c++]=(Ot(E)-1)*v,v=1;break;case 64:Nt()===45&&(E+=ks(it())),p=Nt(),d=u=Ot(w=E+=D3(xs())),_++;break;case 45:m===45&&Ot(E)==2&&(g=0)}}return o}function Sx(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=Ep(p),m=0,g=0,y=0;m<n;++m)for(var v=0,_=Wi(e,u+1,u=S3(g=a[m])),w=e;v<f;++v)(w=Qx(g>0?p[v]+" "+_:J(_,/&\f/g,p[v])))&&(l[y++]=w);return Fs(e,t,r,i===0?wp:s,l,c,d)}function L3(e,t,r){return Fs(e,t,r,Wx,qs(C3()),Wi(e,2,-2),0)}function xx(e,t,r,n){return Fs(e,t,r,Ip,Wi(e,0,n),Wi(e,n+1,-1),n)}function bn(e,t){for(var r="",n=Ep(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function F3(e,t,r,n){switch(e.type){case E3:if(e.children.length)break;case I3:case Ip:return e.return=e.return||e.value;case Wx:return"";case Kx:return e.return=e.value+"{"+bn(e.children,n)+"}";case wp:e.value=e.props.join(",")}return Ot(r=bn(e.children,n))?e.return=e.value+"{"+r+"}":""}function M3(e){var t=Ep(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 j3(e){return function(t){t.root||(t=t.return)&&e(t)}}function U3(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function ek(e,t){switch(k3(e,t)){case 5103:return B+"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 B+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return B+e+Ps+e+Ue+e+e;case 6828:case 4268:return B+e+Ue+e+e;case 6165:return B+e+Ue+"flex-"+e+e;case 5187:return B+e+J(e,/(\w+).+(:[^]+)/,B+"box-$1$2"+Ue+"flex-$1$2")+e;case 5443:return B+e+Ue+"flex-item-"+J(e,/flex-|-self/,"")+e;case 4675:return B+e+Ue+"flex-line-pack"+J(e,/align-content|flex-|-self/,"")+e;case 5548:return B+e+Ue+J(e,"shrink","negative")+e;case 5292:return B+e+Ue+J(e,"basis","preferred-size")+e;case 6060:return B+"box-"+J(e,"-grow","")+B+e+Ue+J(e,"grow","positive")+e;case 4554:return B+J(e,/([^-])(transform)/g,"$1"+B+"$2")+e;case 6187:return J(J(J(e,/(zoom-|grab)/,B+"$1"),/(image-set)/,B+"$1"),e,"")+e;case 5495:case 3959:return J(e,/(image-set\([^]*)/,B+"$1$`$1");case 4968:return J(J(e,/(.+:)(flex-)?(.*)/,B+"box-pack:$3"+Ue+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+B+e+e;case 4095:case 3583:case 4068:case 2532:return J(e,/(.+)-inline(.+)/,B+"$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(Ot(e)-1-t>6)switch(De(e,t+1)){case 109:if(De(e,t+4)!==45)break;case 102:return J(e,/(.+:)(.+)-([^]+)/,"$1"+B+"$2-$3$1"+Ps+(De(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~pp(e,"stretch")?ek(J(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(De(e,t+1)!==115)break;case 6444:switch(De(e,Ot(e)-3-(~pp(e,"!important")&&10))){case 107:return J(e,":",":"+B)+e;case 101:return J(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+B+(De(e,14)===45?"inline-":"")+"box$3$1"+B+"$2$3$1"+Ue+"$2box$3")+e}break;case 5936:switch(De(e,t+11)){case 114:return B+e+Ue+J(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return B+e+Ue+J(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return B+e+Ue+J(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return B+e+Ue+e+e}return e}function K3(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 Rs(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 mr={name:i.name,styles:i.styles,next:mr},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)mr={name:a.name,styles:a.styles,next:mr},a=a.next;var s=o.styles+";";return s}return X3(e,t,r)}}var l=r;if(t==null)return l;var c=t[l];return c!==void 0?c:l}function X3(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Rs(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]+"}":Ax(s)&&(n+=Xd(o)+":"+Tx(o,s)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)Ax(a[l])&&(n+=Xd(o)+":"+Tx(o,a[l])+";");else{var c=Rs(e,t,a);switch(o){case"animation":case"animationName":{n+=Xd(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function ep(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="";mr=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=Rs(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Rs(r,t,e[s]),n){var l=o;i+=l[s]}Cx.lastIndex=0;for(var c="",d;(d=Cx.exec(i))!==null;)c+="-"+d[1];var u=K3(i)+c;return{name:u,styles:i,next:mr}}function rk(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}function Px(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Rx(e,t,r){var n=[],i=rk(e,n,r);return n.length<2?r:i+t(n)}function oJ(e,t){Te.__h&&Te.__h(nt,e,Nx||t),Nx=0;var r=nt.__H||(nt.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function ik(e,t){var r=oJ(hp++,7);return lJ(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function aJ(){for(var e;e=nk.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ts),e.__H.__h.forEach(mp),e.__H.__h=[]}catch(t){e.__H.__h=[],Te.__e(t,e.__v)}}function sJ(e){var t,r=function(){clearTimeout(n),Ux&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);Ux&&(t=requestAnimationFrame(r))}function Ts(e){var t=nt,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),nt=t}function mp(e){var t=nt;e.__c=e.__(),nt=t}function lJ(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Ms(){if(vr>1)vr--;else{for(var e,t=!1;Vi!==void 0;){var r=Vi;for(Vi=void 0,vp++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&ak(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(vp=0,vr--,t)throw e}}function Ke(e){if(vr>0)return e();vr++;try{return e()}finally{Ms()}}function ok(e){if(K!==void 0){var t=e.n;if(t===void 0||t.t!==K)return t={i:0,S:e,p:K.s,n:void 0,t:K,e:void 0,x:void 0,r:t},K.s!==void 0&&(K.s.n=t),K.s=t,e.n=t,32&K.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=K.s,t.n=void 0,K.s.n=t,K.s=t),t}}function qe(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function Z(e){return new qe(e)}function ak(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 sk(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 lk(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 Sn(e){qe.call(this,void 0),this.x=e,this.s=void 0,this.g=Os-1,this.f=4}function zi(e){return new Sn(e)}function ck(e){var t=e.u;if(e.u=void 0,typeof t=="function"){vr++;var r=K;K=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,Sp(e),n}finally{K=r,Ms()}}}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,ck(e)}function uJ(e){if(K!==this)throw new Error("Out-of-order effect");lk(this),K=e,this.f&=-2,8&this.f&&Sp(this),Ms()}function Yi(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function Zi(e){var t=new Yi(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function xn(e,t){O[e]=t.bind(null,O[e]||function(){})}function Ns(e){rp&&rp(),rp=e&&e.S()}function pk(e){var t=this,r=e.data,n=fk(r);n.value=r;var i=ik(function(){for(var s=t,l=t.__v;l=l.__;)if(l.__c){l.__c.__$f|=4;break}var c=zi(function(){var f=n.value.value;return f===0?0:f===!0?"":f||""}),d=zi(function(){return!Array.isArray(c.value)&&!Ml(c.value)}),u=Zi(function(){if(this.N=hk,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 dJ(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=Z(r);return{o:function(a,s){o.value=a,n=s},d:Zi(function(){this.N=hk;var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function fk(e){return ik(function(){return Z(e)},[])}function fJ(){Ke(function(){for(var e;e=dk.shift();)uk.call(e)})}function hk(){dk.push(this)===1&&(O.requestAnimationFrame||pJ)(fJ)}function hJ(e,t){let r=ai(e);Qr(()=>{r.current=e},[e]),oi(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function he(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:--mJ,__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 O.vnode&&O.vnode(c),c}function Yt(e,t,r){return(t=AJ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function AJ(e){var t=TJ(e,"string");return typeof t=="symbol"?t:t+""}function TJ(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 Zt(e,t,r){return(t=OJ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function OJ(e){var t=NJ(e,"string");return typeof t=="symbol"?t:t+""}function NJ(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 Rt(e,t,r){return(t=DJ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DJ(e){var t=qJ(e,"string");return typeof t=="symbol"?t:t+""}function qJ(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 gx,C5,P5,R5,np,ip,Bx,L5,F5,yx,M5,j5,_x,U5,B5,J5,Jx,$5,K5,Q5,bx,Y5,wx,Z5,Hx,Vx,zx,Ix,X5,e3,op,oe,i3,o3,$i,Gi,a3,sp,s3,Yd,u3,lp,Ex,cp,up,dp,w3,Ue,Ps,B,Wx,wp,Ip,I3,Kx,E3,S3,qs,x3,Ls,wn,Yx,Qe,Ie,In,B3,J3,$3,kx,H3,V3,z3,G3,W3,Q3,Y3,Z3,tk,Ax,Xd,Tx,Cx,mr,eJ,tJ,rJ,nJ,iJ,En,hp,nt,tp,Ox,Nx,nk,Te,Dx,qx,Lx,Fx,Mx,jx,Ux,cJ,K,Vi,vr,vp,Os,uk,rp,dk,pJ,Be,mJ,vJ,Xt,gp,yp,Cs,gJ,yJ,_J,bJ,wJ,IJ,EJ,SJ,xJ,kJ,_p,_n,yn,CJ,PJ,RJ,bp,Ds,mK,mk=T(()=>{"use strict";Ur();Fo();gx=Object.getOwnPropertySymbols,C5=Object.prototype.hasOwnProperty,P5=Object.prototype.propertyIsEnumerable,R5=(e,t)=>{var r={};for(var n in e)C5.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&gx)for(var n of gx(e))t.indexOf(n)<0&&P5.call(e,n)&&(r[n]=e[n]);return r};np=class{constructor(t){rt(this,"context",void 0),rt(this,"continueCallback",void 0),rt(this,"adIsShowingCallback",void 0),rt(this,"isBeforeAdCalled",!1),rt(this,"isBeforeRewardCalled",!1),rt(this,"isAdDismissedCalled",!1),rt(this,"isAdViewedCalled",!1),rt(this,"isAfterAdCalled",!1),rt(this,"currentProvider",void 0),rt(this,"currentClientParams",void 0),rt(this,"adsHasResponse",!1),rt(this,"videoChecker",window.document.createElement("video")),rt(this,"wrapShowAdFn",r=>()=>{var n;this.adsHasResponse=!0;let i=!1;this.videoChecker.play().catch(()=>{i=!1}),i=!this.videoChecker.paused,this.videoChecker.pause(),this.context.track("CallShowAdFn",Object.assign({},{userEvent:i},this.paramsToTrack)),(n=this.adIsShowingCallback)==null||n.call(this,!0),r()}),this.context=t}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;this.adsHasResponse=!0,this.context.track("CallBeforeAd",this.paramsToTrack),this.isBeforeAdCalled||(this.isBeforeAdCalled=!0,t==null||t(),((r=this.currentClientParams)==null?void 0:r.type)!=="reward"&&((n=this.adIsShowingCallback)==null||n.call(this,!0)))}}wrapBeforeReward(t){return r=>{this.adsHasResponse=!0,this.isBeforeRewardCalled?this.wrapShowAdFn(r)():(this.isBeforeRewardCalled=!0,t==null||t(this.wrapShowAdFn(r)))}}wrapAdDismissed(t){return()=>{this.adsHasResponse=!0,this.isAdDismissedCalled||(this.isAdDismissedCalled=!0,t==null||t())}}wrapAdViewed(t){return()=>{this.adsHasResponse=!0,this.isAdViewedCalled||(this.isAdViewedCalled=!0,t==null||t())}}wrapAfterAd(t){return()=>{this.adsHasResponse=!0,this.context.track("CallAfterAd",this.paramsToTrack),this.isAfterAdCalled||(this.isAfterAdCalled=!0,t==null||t())}}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":{t==null||t(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 I(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")})})}};ip=class{constructor(t){ws(this,"context",void 0),ws(this,"adBreakIsShowing",!1),ws(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),ws(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()})}},Bx=Object.defineProperty,L5=Object.defineProperties,F5=Object.getOwnPropertyDescriptors,yx=Object.getOwnPropertySymbols,M5=Object.prototype.hasOwnProperty,j5=Object.prototype.propertyIsEnumerable,_x=(e,t,r)=>t in e?Bx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,U5=(e,t)=>{for(var r in t||(t={}))M5.call(t,r)&&_x(e,r,t[r]);if(yx)for(var r of yx(t))j5.call(t,r)&&_x(e,r,t[r]);return e},B5=(e,t)=>L5(e,F5(t)),J5=(e,t)=>{for(var r in t)Bx(e,r,{get:t[r],enumerable:!0})},Jx=(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},$5=(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}K5=(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))(K5||{});Q5={log:Ji("log"),warn:Ji("warn"),info:Ji("info"),error:Ji("error"),debug:Ji("debug")};Object.assign(globalThis,{logger:Q5});bx=Symbol.for("Jolibox.canIUseMap"),Y5={};globalThis[bx]||(globalThis[bx]=Y5);wx=Symbol.for("Jolibox.canIUseMap.native"),Z5={};globalThis[wx]||(globalThis[wx]=Z5);Hx=(e=>(e[e.Other=0]="Other",e[e.Route=1]="Route",e[e.Click=2]="Click",e[e.View=3]="View",e[e.Expose=4]="Expose",e[e.Swipe=5]="Swipe",e[e.Input=6]="Input",e[e.Select=7]="Select",e[e.SwitchOn=8]="SwitchOn",e[e.SwitchOff=9]="SwitchOff",e[e.Submit=10]="Submit",e[e.Scroll=11]="Scroll",e[e.Hide=12]="Hide",e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(Hx||{}),Vx=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(Vx||{}),zx=(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))(zx||{}),Ix=["name","params"],X5=["name","type","location","target","extra","timestamp","userId"],e3=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];n3();navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS"),navigator.userAgent.includes("Android"),navigator.userAgent.includes("Mac"),navigator.userAgent.includes("FB_IAB"),!navigator.userAgent.includes("iPhone")&&navigator.userAgent.includes("Android");op=class ap{constructor(t){this.element=t,this.next=ap.Undefined,this.prev=ap.Undefined}};op.Undefined=new op(void 0);oe=op,i3=class{constructor(){this._first=oe.Undefined,this._last=oe.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===oe.Undefined}clear(){let e=this._first;for(;e!==oe.Undefined;){let t=e.next;e.prev=oe.Undefined,e.next=oe.Undefined,e=t}this._first=oe.Undefined,this._last=oe.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new oe(e);if(this._first===oe.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!==oe.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==oe.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==oe.Undefined&&e.next!==oe.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===oe.Undefined&&e.next===oe.Undefined?(this._first=oe.Undefined,this._last=oe.Undefined):e.next===oe.Undefined?(this._last=this._last.prev,this._last.next=oe.Undefined):e.prev===oe.Undefined&&(this._first=this._first.next,this._first.prev=oe.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==oe.Undefined;)yield e.element,e=e.next}},o3=0,$i=class{constructor(e){this.value=e,this.id=o3++}},Gi=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 $i&&(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 $i(e);return this._listeners?this._listeners instanceof $i?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 $i)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 $i?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},a3=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 Gi,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 i3,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)}},sp={};J5(sp,{None:()=>s3,filter:()=>c3,once:()=>Gx,toPromise:()=>l3});s3=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Yd=Symbol.for("Jolibox.hostEmitter"),u3=()=>{let e=new a3;return globalThis[Yd]||(globalThis[Yd]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Yd]};u3();lp=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Gi,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 d3(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}};lp=Jx([$x],lp);Ex=class{constructor(){this._onWillExecuteCommand=new Gi,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Gi,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new lp,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=H5(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 $5(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),sp.toPromise(sp.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{}}};Ex=Jx([$x],Ex);cp=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";Zd(this,"context",void 0),Zd(this,"placement","GAME"),Zd(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:zx.WebSDK,os:this.contextInfo.osType+"_"+this.contextInfo.runtimeType,appVersion:"1.0.0",appId:(r=this.contextInfo.hostAppId)!=null?r:"1",model:(n=this.contextInfo.deviceModel)!=null?n:"UnknownModel",brand:(i=this.contextInfo.deviceBrand)!=null?i:"UnknownBrand",uuid:this.contextInfo.deviceId,jsSdkVersion:"1.0.0",extra:{}}}serialize(t,r){var n;let i={protocolVersion:"1.0.0",events:[{name:t,type:Hx.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:Vx.WebSDK};return r3(i)}};up=class{constructor(t){Is(this,"configs",null),Is(this,"firstRun",!0),Is(this,"context",void 0),Is(this,"contextInfo",void 0),this.context=t,this.contextInfo=this.context.getContextInfo(),this.init()}init(){return I(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}};dp=class{constructor(t,r){Qt(this,"name","ADSENSE"),Qt(this,"context",void 0),Qt(this,"contextInfo",void 0),Qt(this,"configured",!1),Qt(this,"initParams",void 0),Qt(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),Qt(this,"adConfig",n=>{let i=n,{onReady:o}=i,a=R5(i,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),Qt(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),Qt(this,"adUnit",n=>I(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(_=>{if(_.type==="attributes"&&_.attributeName==="data-ad-status"){let w=y.getAttribute("data-ad-status");this.context.track("AdSenseUnitStatusChanged",{status:w!=null?w:"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 I(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&&this.initParams.admobRewardedSlot&&(i.setAttribute("data-admob-interstitial-slot",this.initParams.admobInterstitialSlot),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)}})}};w3=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(b3(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=_3(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}(),Ue="-ms-",Ps="-moz-",B="-webkit-",Wx="comm",wp="rule",Ip="decl",I3="@import",Kx="@keyframes",E3="@layer",S3=Math.abs,qs=String.fromCharCode,x3=Object.assign;Ls=1,wn=1,Yx=0,Qe=0,Ie=0,In="";B3=function(e,t,r){for(var n=0,i=0;n=i,i=Nt(),n===38&&i===12&&(t[r]=1),!Ki(i);)it();return Qi(e,Qe)},J3=function(e,t){var r=-1,n=44;do switch(Ki(n)){case 0:n===38&&Nt()===12&&(t[r]=1),e[r]+=B3(Qe-1,t,r);break;case 2:e[r]+=ks(n);break;case 4:if(n===44){e[++r]=Nt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=qs(n)}while(n=it());return e},$3=function(e,t){return Xx(J3(Zx(e),t))},kx=new WeakMap,H3=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&&!kx.get(r))&&!n){kx.set(e,!0);for(var i=[],o=$3(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]}}},V3=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};z3=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Ip:e.return=ek(e.value,e.length);break;case Kx:return bn([Hi(e,{value:J(e.value,"@","@"+B)})],n);case wp:if(e.length)return T3(e.props,function(i){switch(A3(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return bn([Hi(e,{props:[J(i,/:(read-\w+)/,":"+Ps+"$1")]})],n);case"::placeholder":return bn([Hi(e,{props:[J(i,/:(plac\w+)/,":"+B+"input-$1")]}),Hi(e,{props:[J(i,/:(plac\w+)/,":"+Ps+"$1")]}),Hi(e,{props:[J(i,/:(plac\w+)/,Ue+"input-$1")]})],n)}return""})}},G3=[z3],W3=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||G3,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=[H3,V3];{var c,d=[F3,j3(function(m){c.insert(m)})],u=M3(l.concat(n,d)),p=function(m){return bn(q3(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 w3({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};Q3={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},Y3=/[A-Z]|^ms/g,Z3=/_EMO_([^_]+?)_([^]*?)_EMO_/g,tk=function(e){return e.charCodeAt(1)===45},Ax=function(e){return e!=null&&typeof e!="boolean"},Xd=U3(function(e){return tk(e)?e:e.replace(Y3,"-$&").toLowerCase()}),Tx=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(Z3,function(r,n,i){return mr={name:n,styles:i,next:mr},n})}return Q3[e]!==1&&!tk(e)&&typeof t=="number"&&t!==0?t+"px":t};Cx=/label:\s*([^\s;{]+)\s*(;|$)/g;eJ=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},tJ=function(e,t,r){eJ(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)}};rJ=function(e){var t=W3(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=ep(s,t.registered,void 0);return tJ(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=ep(s,t.registered),d="animation-"+c.name;return Px(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=ep(s,t.registered);Px(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return Rx(t.registered,r,nJ(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:rk.bind(null,t.registered),merge:Rx.bind(null,t.registered,r)}},nJ=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},iJ=rJ({key:"css"}),En=iJ.css,Nx=0,nk=[],Te=O,Dx=Te.__b,qx=Te.__r,Lx=Te.diffed,Fx=Te.__c,Mx=Te.unmount,jx=Te.__;Te.__b=function(e){nt=null,Dx&&Dx(e)},Te.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),jx&&jx(e,t)},Te.__r=function(e){qx&&qx(e),hp=0;var t=(nt=e.__c).__H;t&&(tp===nt?(t.__h=[],nt.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Ts),t.__h.forEach(mp),t.__h=[],hp=0)),tp=nt},Te.diffed=function(e){Lx&&Lx(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(nk.push(t)!==1&&Ox===Te.requestAnimationFrame||((Ox=Te.requestAnimationFrame)||sJ)(aJ)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),tp=nt=null},Te.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Ts),r.__h=r.__h.filter(function(n){return!n.__||mp(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Te.__e(n,r.__v)}}),Fx&&Fx(e,t)},Te.unmount=function(e){Mx&&Mx(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Ts(n)}catch(i){t=i}}),r.__H=void 0,t&&Te.__e(t,r.__v))};Ux=typeof requestAnimationFrame=="function";cJ=Symbol.for("preact-signals");K=void 0,Vi=void 0,vr=0,vp=0,Os=0;qe.prototype.brand=cJ;qe.prototype.h=function(){return!0};qe.prototype.S=function(e){this.t!==e&&e.e===void 0&&(e.x=this.t,this.t!==void 0&&(this.t.e=e),this.t=e)};qe.prototype.U=function(e){if(this.t!==void 0){var t=e.e,r=e.x;t!==void 0&&(t.x=r,e.e=void 0),r!==void 0&&(r.e=t,e.x=void 0),e===this.t&&(this.t=r)}};qe.prototype.subscribe=function(e){var t=this;return Zi(function(){var r=t.value,n=K;K=void 0;try{e(r)}finally{K=n}})};qe.prototype.valueOf=function(){return this.value};qe.prototype.toString=function(){return this.value+""};qe.prototype.toJSON=function(){return this.value};qe.prototype.peek=function(){var e=K;K=void 0;try{return this.value}finally{K=e}};Object.defineProperty(qe.prototype,"value",{get:function(){var e=ok(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(vp>100)throw new Error("Cycle detected");this.v=e,this.i++,Os++,vr++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Ms()}}}});(Sn.prototype=new qe).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Os))return!0;if(this.g=Os,this.f|=1,this.i>0&&!ak(this))return this.f&=-2,!0;var e=K;try{sk(this),K=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 K=e,lk(this),this.f&=-2,!0};Sn.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}qe.prototype.S.call(this,e)};Sn.prototype.U=function(e){if(this.t!==void 0&&(qe.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};Sn.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(Sn.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=ok(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});Yi.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()}};Yi.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,ck(this),sk(this),vr++;var e=K;return K=this,uJ.bind(this,e)};Yi.prototype.N=function(){2&this.f||(this.f|=2,this.o=Vi,Vi=this)};Yi.prototype.d=function(){this.f|=8,1&this.f||Sp(this)};dk=[];Zi(function(){uk=this.N})();pk.displayName="_st";Object.defineProperties(qe.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:pk},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 qe&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});xn("__r",function(e,t){Ns();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return Zi(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),Ns(r),e(t)});xn("__e",function(e,t,r,n){Ns(),e(t,r,n)});xn("diffed",function(e,t){Ns();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=dJ(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)});Ye.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};pJ=function(e){queueMicrotask(function(){queueMicrotask(e)})};Be=En`
519
+ `,UB=()=>b("div",{style:OS.container,children:[b("style",{children:jB}),b("div",{style:OS.spinner})]});I8=Ad()});function AE(){return I(this,null,function*(){if(Td)return Td;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 ne(t);return Td=r,r})}function TE(){return I(this,null,function*(){let e=new bt;if(E.mpType!=="game")return e.resolve(!1),e.promise;if(Cd)return e.resolve(!0),e.promise;let t=yield AE();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:i}=t.data;Cd=!0;let o={domain:"GAME",buttons:t.data.buttons.map(s=>`${s.type}-${s.text}`).join(","),list:r.games.map(s=>s.gameId).join(",")};Y("RecommendedGuide",C({eventType:ve.View},o));let a=fE({games:r.games,title:n,buttons:i,onClose:s=>{var l;switch(Cd=!1,s.type){case"quit":Y("RecommendedGuide",{eventType:ve.Click,type:"QUIT",domain:"GAME"}),e.resolve(!1);break;case"dismiss":Y("RecommendedGuide",C({eventType:ve.Hide},o)),e.resolve(!0),a.destroy();break;case"navigate":if((l=s.data)!=null&&l.game){let c=s.data.game;BB(c),Y("GameItem",{eventType:ve.Click,gameId:c.gameId,layerName:"RecommendedGuide",domain:"GAME"}),setTimeout(()=>{e.resolve(!1)},0)}else e.resolve(!0);a.destroy();break;default:Y("RecommendedGuide",C({eventType:ve.Hide},o)),e.resolve(!0);break}}});return e.promise})}var Td,BB,Cd,CE=T(()=>{"use strict";Q();Se();D();Dr();St();Mt();Td=null;AE();BB=e=>{var a;let{data:t}=F("envSync"),r=new URL(t.schema),n=new URLSearchParams(r.search);n.set("gameId",e.gameId),n.set("joliSource",E.encodeJoliSourceQuery({__mpType:"game",__orientation:(a=e.orientation)!=null?a:"VERTICAL"}));let o=`${`https://${e.gameId}.content.jolibox.com/`}index.html?${n.toString()}`;F("openSchemaSync",{schema:o})},Cd=!1});function $B(e){let t=C(C({},JB),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:_,containerTransition:w,iframeTransition:A}=p();ee=document.createElement("div"),ee.id="jolibox-modal-overlay",ee.style.cssText=`position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.5); z-index:1000; display:flex; justify-content:center; align-items:flex-end; transition:${_}; opacity:0; visibility:hidden;`,V=document.createElement("div"),V.id="jolibox-modal-container",V.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:${w};`;let R=document.createElement("div");R.id="jolibox-modal-loading",R.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 P=document.createElement("style");P.textContent="@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }",document.head.appendChild(P);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;",dt=document.createElement("iframe"),dt.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${A};`,dt.src=r,dt.onload=()=>{R.parentNode&&R.parentNode.removeChild(R),dt.style.opacity="1",g(),l==null||l(),Ee.emit("onModalIframeLoaded",{url:r})},S.appendChild(dt),S.appendChild(R),V.appendChild(S),i){let k=document.createElement("div");k.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;",k.innerHTML="\u2715",k.onclick=v,V.appendChild(k)}ee.appendChild(V),document.body.appendChild(ee),ee.addEventListener("click",function(k){k.target===ee&&v()}),o&&y()}function g(){!ee||!V||u||(ee.style.visibility="visible",a?requestAnimationFrame(()=>{ee&&(ee.style.opacity="1"),V&&(V.style.transform="translateY(0)"),u=!0}):(ee&&(ee.style.opacity="1"),V&&(V.style.transform="translateY(0)"),u=!0),F("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:E.webviewId}))}function y(){if(!V)return;let _=R=>{c=R.touches[0].clientY},w=R=>{if(!u)return;d=R.touches[0].clientY;let P=d-c;P>0&&(V&&(V.style.transition="none",V.style.transform=`translateY(${P}px)`),R.preventDefault())},A=()=>{!u||!V||(V.style.transition=a?"transform 0.3s ease":"none",d-c>80?v():V.style.transform="translateY(0)")};V.addEventListener("touchstart",_),V.addEventListener("touchmove",w),V.addEventListener("touchend",A)}function v(){!ee||!V||!u||(a?(V.style.transform="translateY(100%)",ee.style.opacity="0"):ee.style.visibility="hidden",u=!1,F("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:E.webviewId}),setTimeout(()=>{ee&&(ee.remove(),ee=null,V=null,dt=null,s==null||s(),Ee.emit("onModalIframeClosed",{url:r}))},f()))}return m(),{close:v}}function PE(){return window.joliboxUI=q(C({},window.joliboxUI),{createIframeModal:$B}),()=>{window.joliboxUI=void 0,ee&&ee.parentNode&&ee.parentNode.removeChild(ee),V&&V.parentNode&&V.parentNode.removeChild(V),dt&&dt.parentNode&&dt.parentNode.removeChild(dt),ee=null,V=null,dt=null}}var JB,ee,V,dt,RE=T(()=>{"use strict";Se();Q();D();JB={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},ee=null,V=null,dt=null});var NE={};Dp(NE,{config:()=>e5});function VB(){wo.on("isAdShowing",e=>{Ga=e,Fn(Ga)&&F("updateContainerConfigSync",{displayCapsuleButton:!Ga,webviewId:E.webviewId})})}function zB(){Ee.on("onInterceptSystemExit",({intercept:e})=>{OE=e})}function GB(){Ee.on("onInterceptBackPress",({intercept:e})=>{HB=e}),Ge("onBeforeBackPress",({uuid:e})=>{var t,r;Ee.emit("onBackPress",{}),(r=(t=globalThis.joliboxJSCore)==null?void 0:t.doBackPress)==null||r.call(t,e)})}function WB(){Ee.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),Y("onDocumentReady",{start_timestamp:Ka,timestamp:Date.now()})})}function KB(){Ge("onI18nChanged",({language:e})=>{Ee.emit("onI18nChanged",{i18n:e})})}function QB(e){E.mpType==="game"&&Ft.start(e)}function YB(){Ge("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&E.onEnvConfigChanged({hostUserInfo:e}),Ee.emit("LifecycleEvent.onReady",C({},E.hostUserInfo?E.hostUserInfo:{isLogin:!1})),Y("joliboxServiceReady",{start_timestamp:Ka,timestamp:Date.now()}),QB(t),sE(()=>E.language)}),Ge("onBeforeExit",({uuid:e})=>{var t;(t=globalThis.joliboxJSCore)==null||t.doExit(e)})}function XB(){let e=()=>{Y("onBeforeExit",{timestamp:Date.now()}),Va==null||Va(),za==null||za(),Ft.close(Date.now()-Ka)},t=()=>Ga||OE;lt.onDoExit(()=>I(this,null,function*(){return t()?!0:Fn(E.shouldInterupt)?(E.shouldInterupt||e(),E.shouldInterupt):Wa!=null&&Wa.canShowRecommended&&(yield TE())?!0:(e(),!1)})),lt.onDoBackPress(()=>I(this,null,function*(){return!!t()}))}function ZB(){return I(this,null,function*(){let e=`${E.baseApiHost}/api/fe-configs/js-sdk/basic-meta`,{response:{data:t}}=yield ne(e);t&&(Wa=t)})}function e5(){Ka=Date.now(),YB(),VB(),zB(),GB(),XB(),WB(),KB(),ZB(),za=PE(),Va=Xf()}var Va,za,Ka,Ga,Wa,OE,HB,DE=T(()=>{"use strict";Se();Q();D();Mt();Zf();Fl();CE();St();Dr();RE();Ga=!1,Wa=null,OE=!1,HB=!1;lt.onReady(()=>{})});function LE(e){let t=xl.config[e];return t||(t={},xl.config[e]=t),(r,n)=>{if(t[r]){wt.warn(`[can i use] ${r} already registered`);return}t[r]=C({},n)}}var qE=T(()=>{"use strict";D()});function Pd(e){FE=e}function Qa(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>Qa(t)):Object.keys(e).reduce((t,r)=>(t[r]=Qa(e[r]),t),{})}function Kt(e){return typeof e=="number"}function Rd(e){let t=Od(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function Od(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var FE,we,Ya,Xa,Za,es,vn,ts,rs,ns,is,os,as,ss,ls,cs,us,ds,ps,Nd=T(()=>{"use strict";FE=!1;we=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(FE)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 ${Rd(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return Qa(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:Qa(this._default)}optional(){return this._optional=!0,this}};Ya=class extends we{validate(t){return this._optional&&t===void 0?!0:Kt(t)?Kt(this._min)&&t<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):Kt(this._max)&&t>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):Kt(this._greater)&&t<=this._greater?this.fail(`the value of ${this.path} should be greater than ${this._greater}`):this._isInt&&t!==Math.floor(t)?this.fail(`the value of ${this.path} should be integer but got ${t}`):!0:this.fail({expect:"number",actual:t})}min(t){return this._min=t,this}max(t){return this._max=t,this}isInt(t){return this._isInt=t,this}greater(t){return this._greater=t,this}},Xa=class extends we{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},Za=class extends we{validate(t){if(this._optional&&t===void 0)return!0;if(typeof t!="string")return this.fail({expect:"string",actual:t});if(Kt(this._maxLength)&&t.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if(Kt(this._minLength)&&t.length<this._minLength)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minLength}`);if(typeof this._pattern=="string"){if(!new RegExp(this._pattern).test(t))return this.fail(`${this.path} should match pattern "${this._pattern}"`)}else if(this._pattern&&!this._pattern.test(t))return this.fail(`${this.path} should match pattern "${this._pattern.toString()}"`);return!0}minLength(t){return this._minLength=t,this}maxLength(t){return this._maxLength=t,this}pattern(t){return this._pattern=t,this}},es=class extends we{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},vn=class extends we{validate(t){return!0}},ts=class extends we{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},rs=class extends we{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},ns=class extends we{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},is=class extends we{constructor(...t){super(),this._items=t}validate(t){if(this._optional&&t===void 0)return!0;if(!this._items.includes(t)){let r=this._items.map(n=>JSON.stringify(n)).join(", ");return this.fail(`expect ${this.path} to be one of ${r}, but got ${Rd(t)}`)}return!0}},os=class extends we{constructor(r){super();this._item=r}validate(r){if(this._optional&&r===void 0)return!0;if(!Array.isArray(r))return this.fail({expect:"array",actual:r});if(Kt(this._minItems)&&r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if(Kt(this._maxItems)&&r.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if(Kt(this._length)&&r.length!==this._length)return this.fail(`the length of ${this.path} should be equal to ${this._length}`);let n=this._item;if(!n)return!0;let i=!0;if(r.forEach((o,a)=>{if(n.path=`${this.path}[${a}]`,n.errors=this.errors,o===void 0&&n.hasDefault){r[a]=n.defaultValue;return}n.validate(o)||(n.hasFallback?r[a]=n.fallbackValue:i=!1)}),this._uniqueItems){let o=new Map;for(let a in r)o.has(r[a])?i=this.fail(`${this.path} should NOT have duplicate items (${this.path}[${o.get(r[a])}] and ${this.path}[${a}] are identical)`):o.set(r[a],a)}return i}minItems(r){return this._minItems=r,this}maxItems(r){return this._maxItems=r,this}uniqueItems(){return this._uniqueItems=!0,this}length(r){return this._length=r,this}},as=class extends we{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(Od(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}},ss=class extends we{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(Od(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}},ls=class extends we{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:Rd(this.value),actual:r}):!0}},cs=class extends we{constructor(...t){super(),this._items=t}validate(t){if(t===void 0&&this._optional)return!0;let r=[],n=!1,i=this._items.length;for(let o=0;o<i;o++){let a=this._items[o];if(a.errors=[],a.path=this.path,!a.validate(t))r.push(a.errors.join("; "));else if(!n){n=!0;break}}if(!n){let o=r.join(`
520
+ or `);this.errors.push(o)}return n}},us=class extends we{constructor(...t){super(),this._items=t;let r=0,n=t.length-1;for(;n>=0;n--){let i=t[n];if(i._optional||i.hasDefault)r+=1;else break}this._minItems=t.length-r}validate(t){if(t===void 0&&this._optional)return!0;if(!Array.isArray(t))return this.fail({expect:"array",actual:t});if(t.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);let r=!0;return this._items.forEach((n,i)=>{if(n.path=`${this.path}[${i}]`,n.errors=this.errors,t[i]===void 0&&n.hasDefault){t[i]=n.defaultValue;return}n.validate(t[i])||(n.hasFallback?t[i]=n._fallback:r=!1)}),r}},ds=class extends we{validate(t){return t===void 0&&this._optional||t instanceof ArrayBuffer?!0:this.fail({expect:"arraybuffer",actual:t})}},ps=class extends we{constructor(t){super(),this._ctor=t}validate(t){return t===void 0&&this._optional||t instanceof this._ctor?!0:this.fail({expect:`typedarray of ${this._ctor.name}`,actual:t})}}});function Dd(e,t,r="param"){if(e.errors=[],e.path=r,Pd(!0),!e.validate(t)){let n=e.errors.join(`
521
+ `);throw e.errors.length=0,Pd(!1),new TypeError(n)}}var x,Ld=T(()=>{"use strict";Nd();Nd();x={object(e){return new ss(e)},array(e){return new os(e)},tuple(...e){return new us(...e)},literal(e){return new ls(e)},or(...e){return new cs(...e)},symbol(){return new es},record(e){return new as(e)},function(){return new ns},boolean(){return new Xa},string(){return new Za},number(){return new Ya},undefined(){return new ts},null(){return new rs},unknown(){return new vn},any(){return new vn},as(){return new vn},arraybuffer(){return new ds},enum(...e){return new is(...e)},typedarray(e){return new ps(e)}}});var fs,ME,jE=T(()=>{"use strict";D();ft();Ld();Br();fs=1,ME=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{Dd(i.paramsSchema,o,"params")}catch(_){throw Nl(`${n}:fail ${_.message}`)}let g=i.implement(...o),y=g,v=`${n}:ok`;if(g&&"code"in g){let{code:_,data:w,message:A}=g;l=_,y=w,v=A}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?/,"")}`,Ce(new jn(c,d)),{code:l,message:c}}finally{let g=Date.now()-a;e("apiInvoked",q(C({},s),{duration:g,status:l}))}}}function r(n,i){return(...o)=>I(this,null,function*(){var p,f,m,g;let a=uf(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{Dd(i.paramsSchema,a,"params")}catch(_){throw Nl(_.message)}let v=yield i.implement(...a);if(v&&"code"in v){let{code:_,data:w,message:A}=v;d=_,c=A,v=w}return Object.assign(u,{code:d,message:c,data:v}),u}catch(y){let v=y,_=(f=(p=v.code)!=null?p:v.errNo)!=null?f:2e3;d="FAILURE";let w=(g=(m=v.message)!=null?m:v.errMsg)!=null?g:`${y}`,A=`${n}:${d} ${w.replace(/^\S+:(fail|cancel)\s?/,"")}`;return Object.assign(u,{code:d,message:A}),Ce(new jn(A,_)),u}finally{let y=Date.now()-s;e("apiInvoked",q(C({},l),{duration:y,status:d}))}})}return{createAPI:r,createSyncAPI:t}}});var Ne,z,L,UE,pt=T(()=>{"use strict";qE();Mt();jE();Ld();Se();Q();({createAPI:Ne,createSyncAPI:z}=ME(Y)),L=LE("native"),{canIUseNative:UE}=Yp(()=>E.sdkInfo.nativeSDKVersionCode)});var BE,r5,n5,i5,o5,JE=T(()=>{"use strict";D();pt();Se();Q();BE=ae(),r5="env",n5="getSystemInfoSync",i5=z(n5,{implement:()=>{var r;let e=F("envSync"),{data:t}=e;return{system:t.deviceInfo.system,platform:t.deviceInfo.platform.toLowerCase(),version:t.sdkInfo.jssdkVersion,pixelRatio:t.deviceInfo.pixelRatio,language:t.deviceInfo.lang,brand:t.deviceInfo.brand,appName:(r=t.hostInfo)==null?void 0:r.appName,SDKVersion:t.sdkInfo.jssdkVersion,viewport:{statusBarHeight:E.viewport.statusBarHeight,navigationBarHeight:E.viewport.navigationBarHeight}}}}),o5=z(r5,{implement:()=>{var t;let e=F("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});BE.registerCommand("API.getSystemInfoSync",i5);BE.registerCommand("API.env",o5);L("env",{version:"1.0.0"});L("getSystemInfoSync",{version:"1.0.0",properties:{viewport:"1.0.33"}})});var $E=h(qd=>{"use strict";D();pt();ft();Se();Mt();Q();var a5="exitGame",s5="onReady",l5="onJoliboxShow",c5="onJoliboxHide",hs=ae(),ms=vo(Ce),u5=Ne(a5,{paramsSchema:x.tuple(x.function(),x.boolean().optional().default(!1)),implement:(e,t=!1)=>I(qd,null,function*(){ms(e).call(qd),Fn(E.shouldInterupt)&&!E.shouldInterupt&&E.from&&nf("onRetentionResult",{shouldStay:t},E.from,!0),t||E.setDoExitDirectly(),yield me("exitAppAsync")})}),d5=z(l5,{paramsSchema:x.tuple(x.function()),implement(e){let t=ms(e);Ge("onJoliboxEnterForeground",()=>{t.call(this),Bn.emit("visible",!0)})}}),p5=z(c5,{paramsSchema:x.tuple(x.function()),implement(e){let t=ms(e);Ge("onJoliboxEnterBackground",()=>{t.call(this),Bn.emit("visible",!1)})}}),f5=z(s5,{paramsSchema:x.tuple(x.function()),implement(e){let t=ms(e);Ee.on("LifecycleEvent.onReady",r=>{t(r)})}});hs.registerCommand("LifecycleSDK.exit",u5);hs.registerCommand("LifecycleSDK.onReady",f5);hs.registerCommand("LifecycleSDK.onJoliboxShow",d5);hs.registerCommand("LifecycleSDK.onJoliboxHide",p5);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 HE(e){let t={};if(!br(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 VE(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 zE(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function GE(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!br(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 WE=T(()=>{"use strict";D()});var h5,m5,Fd,Md,KE,v5,g5,y5,QE=T(()=>{"use strict";Br();Ll();pt();WE();D();ft();Q();h5=15,m5=_o("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:E.baseApiHost}),Fd=0,Md=[],KE=vo(Ce),v5=(e,t)=>{let r=e.filter(t),n=e.filter(i=>!t(i));return e.length=0,e.push(...n),r},g5=e=>{let t=new bt,r=()=>{};return z("request",{paramsSchema:x.tuple(x.object({url:x.string(),method:x.string(),headers:x.object().optional(),data:x.object().optional(),query:x.object().optional(),dataType:x.string().default("json"),responseType:x.string().default("text"),enableCache:x.boolean().default(!1),appendHostCookie:x.boolean().default(!0),timeout:x.number().default(3e4),success:x.function(),fail:x.function()})),implement(i){let o=()=>I(this,null,function*(){var s,l,c;let a=KE(i.fail);try{if(Fd+=1,t.state!=="pending")return;let{data:d,dataType:u,responseType:p,enableCache:f,appendHostCookie:m}=i,g=HE((s=i.headers)!=null?s:{}),y=VE(i.method),v=zE(i.timeout),_=GE(i.url,y,d),w=KE(i.success),A=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&&(A.timeout=v);let R=m5(_,A);{let{response:P}=yield R,{code:S,data:k,message:H}=P;if(k&&typeof k=="object"&&"status"in k&&k.status!==200)throw nr({code:k.status||-1,msg:`request:fail status ${k.status}`});t.resolve({code:S!=null?S:"SUCCESS",data:k,message:H!=null?H:"request:ok"}),w({code:"SUCCESS",message:"request:ok",data:k})}}catch(d){t.reject(d),a({code:"FAILURE",message:"httpRequst: failed"})}finally{Fd-=1,(c=Md.shift())==null||c()}});return Fd>=h5?(r=()=>{v5(Md,a=>a===o)},Md.push(o)):o(),t.promise}})(e),{abort(){t.reject(nr({code:-1,msg:"request:fail abort"})),r()}}},y5=ae();y5.registerCommand("HttpSDK.request",g5);L("request",{version:"1.0.0"})});function YE(e){let t=Object.prototype.toString.call(e).split(" ")[1].split("]")[0].toLocaleLowerCase();return t==="array"&&(t="object"),S5.includes(t)?t:""}function XE(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 ZE(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 vs,_5,b5,w5,I5,YW,XW,S5,$i,jd,Ud=T(()=>{"use strict";pt();Se();D();St();Q();vs=ae(),_5=Ne("getLocalStorage",{paramsSchema:x.tuple(x.string()),implement(e){return I(this,null,function*(){let{response:t}=yield ne(`/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 me("getLocalStorageAsync",{key:e}),s=XE(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}}})}});vs.registerCommand("StorageSDK.getItem",_5);L("storage.getItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});b5=Ne("setStorage",{paramsSchema:x.tuple(x.string(),x.or(x.string(),x.boolean(),x.number())),implement(e,t){return I(this,null,function*(){let r=E.mpId,n=typeof t=="string"?t:String(t),{response:i}=yield ne(`/api/games/user-storage/${r}`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e,value:n}}),{data:{code:o,message:a}}=i,s=YE(t),l=ZE(t,s);return yield me("setLocalStorageAsync",{key:e,data:l,dataType:s}),o=="SUCCESS"?{code:o,message:a}:{code:o,message:`${a}. fallback to native`}})}});vs.registerCommand("StorageSDK.setItem",b5);L("storage.setItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});w5=Ne("removeStorage",{paramsSchema:x.tuple(x.string()),implement(e){return I(this,null,function*(){let t=E.mpId,{response:r}=yield ne(`/api/games/user-storage/${t}/remove`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e}}),{data:{code:n,message:i}}=r;return yield me("removeLocalStorageAsync",{key:e}),n==="SUCCESS"?{code:n,message:i}:{code:n,message:"[Jolibox SDK] remove item succ"}})}});vs.registerCommand("StorageSDK.removeItem",w5);L("storage.removeItem",{version:"1.0.0",properties:{key:"1.0.0"}});I5=Ne("clearStorage",{implement(){return I(this,null,function*(){let e=E.mpId,{response:t}=yield ne(`/api/games/user-storage/${e}/clear`,{method:"POST",appendHostCookie:!0});me("clearLocalStorageAsync");let{data:{code:r,message:n}}=t;return r==="SUCCESS"?{code:r,message:n}:{code:r,message:`${n}.fallback to native`}})}});vs.registerCommand("StorageSDK.clear",I5);L("storage.clear",{version:"1.0.0"});YW=Ne("getStorageInfo",{implement(){return I(this,null,function*(){let{data:e}=yield me("getStorageInfoAsync");return e})}});L("getStorageInfo",{version:"1.0.0",success:{keys:"1.0.0",currentSize:"1.0.0",limitSize:"1.0.0"}});XW=z("getStorageInfoSync",{implement(){return F("getStorageInfoSync")}}),S5=["string","number","boolean","object",""];$i=Ne("getGlobalStorage",{paramsSchema:x.tuple(x.string()),implement(e){return I(this,null,function*(){try{let{data:{data:t,dataType:r}}=yield me("getGlobalStorageAsync",{key:e});return{code:"SUCCESS",message:"success",data:XE(t,r)}}catch(t){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get global storage failed",data:null}}})}}),jd=Ne("setGlobalStorage",{paramsSchema:x.tuple(x.string(),x.or(x.string(),x.boolean(),x.number(),x.array())),implement(e,t){return I(this,null,function*(){try{let r=YE(t),n=ZE(t,r);return yield me("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 E5,x5,k5,Bd,ex=T(()=>{"use strict";D();Se();pt();E5=z("showKeyboard",{paramsSchema:x.tuple(x.object({defaultValue:x.string().optional().default(""),multiple:x.boolean().optional().default(!1),maxLength:x.unknown().optional().default(1e5)})),implement(e){var n;let t=Math.floor((n=Number(e.maxLength))!=null?n:1e5),{defaultValue:r}=e;r&&t&&(r=r.slice(0,t)),F("showKeyboardSync",q(C({},e),{defaultValue:r,maxLength:t}))}});L("keyboard.showKeyboard",{version:"1.0.0",properties:{params:{defaultValue:"1.0.0",multiple:"1.0.0",confirmHold:"1.0.0",confirmType:"1.0.0",maxLength:"1.0.0"}},success:{errMsg:"1.0.0"}});x5=z("updateKeyboard",{paramsSchema:x.tuple(x.object({value:x.string()})),implement(e){F("updateKeyboardSync",e)}});L("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});k5=z("hideKeyboard",{implement(){F("hideKeyboardSync")}});L("keyboard.hideKeyboard",{version:"1.0.0"});Bd=ae();Bd.registerCommand("KeyboardSDK.showKeyboard",E5);Bd.registerCommand("KeyboardSDK.updateKeyboard",x5);Bd.registerCommand("KeyboardSDK.hideKeyboard",k5)});var tx=h(gs=>{"use strict";D();pt();Mt();var Jd=ae(),A5=Ne("levelFinished",{paramsSchema:x.tuple(x.object({levelId:x.or(x.string(),x.number()),duration:x.number().optional(),rating:x.number().optional(),score:x.number().optional()})),implement:e=>I(gs,null,function*(){let{levelId:t,duration:r,rating:n,score:i}=e,o=[];o.push(Ft.tracker("LevelFinished",{levelId:t,duration:r,rating:n,score:i})),o.push(Ft.reporter({event:"COMPLETE_GAME_LEVEL"})),yield Promise.all(o)})}),T5=Ne("gamePlayEnded",{paramsSchema:x.tuple(x.object({duration:x.number().optional(),rating:x.number().optional(),score:x.number()})),implement:e=>I(gs,null,function*(){let{duration:t,rating:r,score:n}=e;return Ft.tracker("GamePlayEnded",{duration:t,rating:r,score:n})})}),C5=Ne("levelUpgrade",{paramsSchema:x.tuple(x.object({levelId:x.or(x.string(),x.number()),name:x.string().optional()})),implement:r=>I(gs,[r],function*({levelId:e,name:t}){let n=[];n.push(Ft.tracker("LevelUpgrade",{name:t,levelId:e})),yield Promise.all(n)})});Jd.registerCommand("TaskTrackerSDK.levelFinished",A5);Jd.registerCommand("TaskTrackerSDK.gamePlayEnded",T5);Jd.registerCommand("TaskTrackerSDK.levelUpgrade",C5);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"}}});L("TaskTrackerSDK.onGamePlayEnded",{version:"1.1.25",properties:{params:{duration:"1.1.25",rating:"1.1.25",score:"1.1.25"}}});L("TaskTrackerSDK.onLevelUpgrade",{version:"1.1.25",properties:{params:{levelId:"1.1.25",name:"1.1.25"}}})});var $d,Hd,P5,rx,Vd=T(()=>{"use strict";Q();Se();pt();D();Br();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"}});$d=new Map;Ge("onLoginStateChange",({isLogin:e,token:t,uuid:r})=>{let n=$d.get(r);n&&(n.resolve({isLogin:e,token:t}),$d.delete(r))});Hd=Ne("login",{paramsSchema:x.tuple(x.object({skipLogin:x.boolean().optional(),triggerFrom:x.string().optional()}).optional()),implement(e){return I(this,null,function*(){var l;let{data:{isLogin:t}}=yield me("checkLoginAsync");if(t)return{isLogin:!0,token:(l=E.hostUserInfo)==null?void 0:l.token};let{skipLogin:r,triggerFrom:n}=e!=null?e:{},i=F("loginSync",{skipLogin:r,triggerFrom:n}),{data:{uuid:o}}=i;if(!o)throw nr({code:-1,msg:"login failed"});let a=new bt;$d.set(o,a);let s=yield a.promise;return E.onEnvConfigChanged({hostUserInfo:s}),Ee.emit("onLoginComplete",s),s})}}),P5=Ne("checkSession",{implement(){return I(this,null,function*(){let{data:{isLogin:e}}=yield me("checkLoginAsync");return{isLogin:e}})}}),rx=ae();rx.registerCommand("API.login",Hd);rx.registerCommand("API.checkSession",P5)});var yn,ys,gt,_s,Lr,bs,gn,R5,W,_n,qr=T(()=>{"use strict";D();yn="UNLOCK_OPTIONS_CHANGED",ys="INVOKE_PAYMENT",gt="ON_PAYMENT_RESULT",_s="ON_USE_MODAL_EVENT",Lr="ON_USE_MODAL_RESULT",bs="ON_USE_MODAL_FREQUENCY",gn=new It,R5=()=>({on:gn.on.bind(gn),off:gn.off.bind(gn),emit:gn.emit.bind(gn)}),W=R5(),_n={charge:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},useJolicoin:{dailyMaxPopUps:2,minInterval:8*60*60*1e3}}});function Qt(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)}}var Hi=T(()=>{"use strict"});var zd,nx=T(()=>{"use strict";zd=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)}});var ws,ix,ox,ax,sx,lx=T(()=>{"use strict";Ud();nx();ws=e=>{let t;try{t=JSON.parse(e)}catch(r){t=[]}return t},ix=e=>I(void 0,null,function*(){let{dailyMaxPopUps:t,minInterval:r}=e,n=yield $i("joli_coin_use_modal_frequency");if(console.log("checkUseModalFrequency",n.data),!n.data)return{canShow:!0,isFirst:!0};let i=ws(n.data),o=zd(i);return o.length>=t?{canShow:!1,isFirst:!1}:Date.now()-o[o.length-1]<r?{canShow:!1,isFirst:!1}:{canShow:!0,isFirst:!1}}),ox=()=>I(void 0,null,function*(){var n;let e=Date.now(),t=yield $i("joli_coin_use_modal_frequency"),r=ws((n=t.data)!=null?n:"[]");r.push(e),r.sort((i,o)=>o-i).splice(8),yield jd("joli_coin_use_modal_frequency",JSON.stringify(r))}),ax=e=>I(void 0,null,function*(){let{dailyMaxPopUps:t,minInterval:r}=e,n=yield $i("joli_coin_payment_frequency");if(console.log("checkPaymentFrequency",n.data),!n.data)return{canShow:!0,isFirst:!0};let i=ws(n.data),o=zd(i);return o.length>=t?{canShow:!1,isFirst:!1}:Date.now()-o[o.length-1]<r?{canShow:!1,isFirst:!1}:{canShow:!0,isFirst:!1}}),sx=()=>I(void 0,null,function*(){var n;let e=Date.now(),t=yield $i("joli_coin_payment_frequency"),r=ws((n=t.data)!=null?n:"[]");r.push(e),r.sort((i,o)=>o-i).splice(8),yield jd("joli_coin_payment_frequency",JSON.stringify(r))})});function cx(){let e=new Map;return{registerPaymentHandler(r,n){e.set(r,n)},invokePayment(r,...n){return I(this,null,function*(){let i=e.get(r);if(!i)return{code:"FAILED",message:`[joliboxSDK]: ${r} payment not supported in this platform`};try{return yield i(...n)}catch(o){return Ce(o),{code:"FAILED",message:`[joliboxSDK]: paymenterror ${o}`}}})}}}var ux=T(()=>{"use strict";ft()});var Is=T(()=>{"use strict"});var O5,bn,mr,N5,Fr,Gd=T(()=>{"use strict";Is();D();Q();St();O5=()=>{let[e,t]=[gf,_f].map(r=>(n,i,o)=>new r(n,i,o));return{createPaymentError:e,createPaymentInternalError:t}},{createPaymentError:bn,createPaymentInternalError:mr}=O5(),N5=E.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",Fr=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startPayment=t=>I(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{code:r,message:n}=yield this.placeOrder(t);if(r!=="SUCCESS")throw bn(n,1001);return yield this.pay()});this.cancelOrder=t=>I(this,null,function*(){var n,i;let{response:r}=yield ne(`/api/orders/${t}/cancel`,{method:"POST",data:{}});if(r.code!=="SUCCCESS")throw bn((i=(n=r.message)!=null?n:r.errMsg)!=null?i:"",1003)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",E.deviceInfo.platform),t.set("joliSource",E.encodeJoliSourceQuery(C({},this.generatePaymentContext()))),`${N5}//payment/callback?${t.toString()}`}}get orderId(){return this._orderId}get status(){return this._orderStatus}}});var Wd,px,fx=T(()=>{"use strict";St();Gd();Is();Wd=class extends Fr{constructor(r){super();this.productId=r;this.generatePaymentContext=()=>({type:"JOLI_COIN_ORDER_CONTEXT",state:"TO_VALIDATE",productId:this.productId,orderId:this.orderId});this.pay=()=>I(this,null,function*(){let r=this.generateCallbackUrl();return console.info("callbackUrl",r),{code:"SUCCESS",message:"jolicoin payment success"}})}placeOrder(r){return I(this,null,function*(){var n,i,o,a;try{let{response:s}=yield ne("/api/orders/checkout/joli-coin",{method:"POST",data:{productId:r.productId}});if(s.code!=="SUCCESS")throw bn((i=(n=s.errMsg)!=null?n:s.message)!=null?i:"",1002);return{code:"SUCCESS",message:(o=s.message)!=null?o:"placeorder jolicoin success",data:s.data}}catch(s){throw console.info("[JoliboxSDK] placeorder failed",s),mr((a=JSON.stringify(s))!=null?a:"jolicoin placeorder failed",1002)}})}},px=()=>{let e=new Map;return t=>I(void 0,null,function*(){let r=e.get(t);return r||(r=new Wd(t),e.set(t,r)),yield r.startPayment({productId:t}),{code:"SUCCESS",message:"jolicoin payment success"}})}});var hx,mx=T(()=>{"use strict";hx={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 Kd,vx,Qd,Yd,D5,gx,yx=T(()=>{"use strict";St();Gd();Is();Se();D();Q();Dr();mx();Kd=new Map;Ge("onPaymentStateChange",e=>{console.info("onPaymentStateChange",e);let{orderUUID:t,status:r,totalAmount:n,orderResponse:i}=e,o=Kd.get(t);if(o){if(r==="SUCCESS")Ji("{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"&&df(i==null?void 0:i.errNo)&&(i==null?void 0:i.errNo)!==0)throw mr(`jolicoin payment failed: ${i==null?void 0:i.errMsg}`,1002);let a=hx[r];a&&Ji(`{slot-error} {slot-i18n-jolicoin.${a}}`,{position:"center",duration:3e3}),o.resolve({code:"FAILED",message:"jolicoin payment failed"})}Kd.delete(t)}});vx=e=>I(void 0,null,function*(){var n,i;let t=new bt,r;try{let o=yield me("requestPaymentSync",{paymentBody:{appStoreProductId:e.appStoreProductId,appAccountToken:e.appAccountToken}});if(r=(n=o.data)==null?void 0:n.orderUUID,console.info("---payInApp---",o),!r)throw mr("orderUUID is null",1002);Kd.set(r,t)}catch(o){throw mr((i=JSON.stringify(o))!=null?i:"jolicoin payment failed",1002)}return t.promise}),Qd=class extends Fr{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=()=>I(this,null,function*(){return yield vx({appStoreProductId:this.appStoreProductId})})}placeOrder(r){return I(this,null,function*(){return{code:"SUCCESS",message:"placeorder jolicoin success in native"}})}},Yd=class extends Fr{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=()=>I(this,null,function*(){return yield vx({appStoreProductId:this.appStoreProductId,appAccountToken:this.appAccountToken})})}placeOrder(r){return I(this,null,function*(){var a;console.log("----start place order for ios----");let{response:n}=yield ne("/api/orders/iap-init",{method:"GET",appendHostCookie:!0}),{data:i,code:o}=n!=null?n:{};if(console.log("----iap init----",i,o),i.code!=="SUCCESS")throw mr("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"}})}},D5={android:Qd,ios:Yd},gx=()=>{let e=new Map;return t=>I(void 0,null,function*(){let{productId:r,appStoreProductId:n}=t,i=e.get(r);if(!i){let s=D5[E.platform];if(!s)throw mr("platform not supported",1002);i=new s(r,n),e.set(r,i)}let{code:o,message:a}=yield i.startPayment({productId:r,appStoreProductId:n});if(o!=="SUCCESS")throw bn(a,1002);return{code:"SUCCESS",message:"jolicoin payment success"}})}});var Ss,_x=T(()=>{"use strict";ux();fx();yx();Ss=cx();Ss.registerPaymentHandler("JOLI_COIN",px());Ss.registerPaymentHandler("JOLI_COIN_IAP",gx())});var Ix=h(Yt=>{"use strict";qr();Dr();St();Q();Vd();D();Hi();lx();_x();Dr();pt();Se();D();Mt();var Zd=Qt(W,bs);Zd.getData();var vr=Ad(),Xd=Promise.resolve(),wx=e=>I(Yt,null,function*(){Xd=Xd.then(()=>I(Yt,null,function*(){yield ne("/api/joli-coin/user-config",{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield Xd});W.on(_s,(e,t)=>I(Yt,null,function*(){if(e==="ADS-JOLI_COIN"){yield vr.show({duration:3e3});let n=yield Zd.getData(),{canShow:i,isFirst:o}=yield ix(n.joliCoinUseAndCharge.useJolicoin);console.log("use modal show by frequency",i,o),vr.hide();let{balance:a}=t.userJoliCoin;if(a>=t.joliCoinQuantity&&t.enableAutoDeduct&&!o){W.emit(Lr,{useModalResult:"CONFIRM"});return}if(!i){W.emit(Lr,{useModalResult:"CONFIRM"});return}}Y("unlock_popup_show",{eventType:ve.View,targetType:"game"});let r=gE({data:{enableAutoDeduct:t.enableAutoDeduct,userJolicoin:t.userJoliCoin,joliCoinQuantity:t.joliCoinQuantity},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{Y("coin_unlock_click",{targetType:"game",eventType:ve.Click,coinConsume:t.joliCoinQuantity,ifAutoUnlock:t.enableAutoDeduct}),W.emit(Lr,{useModalResult:"CONFIRM"}),r.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:n})=>{n==="FAILED"&&Y("ad_unlock_click",{targetType:"game",eventType:ve.Click}),W.emit(Lr,{useModalResult:(n!=null?n:"")==="CANCEL"?"CANCEL":"FAILED"}),r.destroy()}},onEnableDeductChanged:n=>I(Yt,null,function*(){yield wx(n)})}});yield ox()}));W.on(ys,(e,t)=>I(Yt,null,function*(){var r,n;try{if(!UE("requestPaymentSync:paymentBody:appStoreProductId")){console.info("requestPaymentSync:paymentBody:appStoreProductId not supported"),setTimeout(()=>{W.emit(gt,{paymentResult:"FAILED"})},0);return}if(e==="ADS-JOLI_COIN"){yield vr.show({duration:3e3});let a=yield Zd.getData(),{canShow:s}=yield ax(a.joliCoinUseAndCharge.charge);if(console.log("use payment show by frequency",s),vr.hide(),!s){W.emit(gt,{paymentResult:"SUCCESS"});return}console.log("show by frequency")}yield vr.show({duration:3e3});let i=yield bx();if(vr.hide(),!i){W.emit(gt,{paymentResult:"FAILED"});return}Y("coinorder_show",{targetType:"game",eventType:ve.View});let o=yE({data:{userJolicoin:t.userJoliCoin,joliCoinQuantity:t.joliCoinQuantity,paymentChoices:(n=(r=i.paymentChoices)==null?void 0:r.map(a=>{var s;return q(C({},a),{totalAmountStr:(s=a.totalAmountStr)!=null?s:""})}))!=null?n:[],enableAutoDeduct:i.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:a=>I(Yt,null,function*(){var c,d,u,p,f,m,g,y;if(Y("order_pay_ensure",{targetType:"game",eventType:ve.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=E.hostUserInfo)!=null&&u.isLogin)){let{data:v}=yield Hd({skipLogin:!0});if(!(v!=null&&v.isLogin)){console.log("login failed");return}let _=yield bx();if(((p=_==null?void 0:_.balance)!=null?p:0)>=t.joliCoinQuantity){W.emit(gt,{paymentResult:"SUCCESS"}),o.destroy();return}}console.log("invokeNativePayment",a);let s=(m=(f=i==null?void 0:i.paymentChoices)==null?void 0:f.find(v=>v.productId===a))==null?void 0:m.appStoreProductId;if(!s){W.emit(gt,{paymentResult:"FAILED"}),o.destroy();return}yield vr.show({duration:3e3});let{code:l}=yield Ss.invokePayment("JOLI_COIN_IAP",{productId:a,appStoreProductId:s});if(vr.hide(),Y("order_pay_result",{eventType:ve.Other,targetType:"game",payWay:"app_iap",coinAmount:t.joliCoinQuantity,orderPrice:(y=(g=i.paymentChoices.find(v=>v.productId===a))==null?void 0:g.totalAmountStr)!=null?y:"",payResult:l}),l!=="SUCCESS"){console.info("[JoliboxSDK] payment failed in payment.invokePaymet");return}W.emit(gt,{paymentResult:"SUCCESS"}),o.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:a})=>{W.emit(gt,{paymentResult:(a!=null?a:"")==="CANCEL"?"CANCEL":"FAILED"}),Y("ad_unlock_click",{targetType:"game",eventType:ve.Click}),o.destroy()}},onEnableDeductChanged:a=>I(Yt,null,function*(){yield wx(a)})},onSelect:a=>{var s,l;Y("coinorder_click",{targetType:"game",eventType:ve.Click,coinAmount:t.joliCoinQuantity,orderPrice:(l=(s=i.paymentChoices.find(c=>c.productId===a))==null?void 0:s.totalAmountStr)!=null?l:""})}});yield sx()}catch(i){console.info("payment failed",i),W.emit(gt,{paymentResult:"FAILED"})}}));var L5=(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=>!wl(r.totalAmountStr)),console.info("----mergeResponseData-----",e.paymentChoices)},bx=()=>I(Yt,null,function*(){var r,n,i,o,a,s,l,c,d,u;let{response:e}=yield ne("/api/joli-coin/balance-detail",{method:"GET",appendHostCookie:!0,responseType:"json"});console.info("getBalenceDetails",e);let{data:t}=yield me("requestProductDetailsAsync",{appStoreProductIds:(o=(i=(n=(r=e.data)==null?void 0:r.data)==null?void 0:n.paymentChoices)==null?void 0:i.filter(p=>typeof p.appStoreProductId=="string").map(p=>p.appStoreProductId))!=null?o:[]});if((a=e.data)!=null&&a.data&&t&&L5((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})});function nt(e,t,r){return(t=j5(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function j5(e){var t=U5(e,"string");return typeof t=="symbol"?t:t+""}function U5(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 Es(e,t,r){return(t=B5(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function B5(e){var t=J5(e,"string");return typeof t=="symbol"?t:t+""}function J5(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 Y5(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function X5(e){return typeof e=="string"}function Z5(e){return typeof e=="undefined"}function e3(e){return Z5(e)||e===null}function t3(e){return typeof e=="function"}function Kx(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 Vi(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function As(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 l3(e){let t=e.location?As(e.location,Tx):null,r=e.target?As(e.target,Tx):null;return As(W5(G5({},e),{location:t,target:r}),a3)}function c3(e){let t=e.events.map(n=>l3(n)),r=As(e.device,s3);return[e.protocolVersion,t,r,e.project]}function u3(){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 m3(e){return new Promise(t=>Zx(e)(t))}function Zx(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 v3(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new Qi(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 y3(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)_3(e[n],t[n])}function _3(e,t){if(X5(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(t3(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 tp(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=w3(e,"string");return typeof t=="symbol"?t:t+""}function w3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xs(e,t,r){return(t=I3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function I3(e){var t=S3(e,"string");return typeof t=="symbol"?t:t+""}function S3(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 Xt(e,t,r){return(t=E3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function E3(e){var t=x3(e,"string");return typeof t=="symbol"?t:t+""}function x3(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 k3(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 A3(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 N3(e,t){return De(e,0)^45?(((t<<2^De(e,0))<<2^De(e,1))<<2^De(e,2))<<2^De(e,3):0}function rk(e){return e.trim()}function D3(e,t){return(e=t.exec(e))?e[0]:e}function J(e,t,r){return e.replace(t,r)}function mp(e,t){return e.indexOf(t)}function De(e,t){return e.charCodeAt(t)|0}function Yi(e,t,r){return e.slice(t,r)}function Dt(e){return e.length}function Cp(e){return e.length}function ks(e,t){return t.push(e),e}function L3(e,t){return e.map(t).join("")}function Us(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:js,column:En,length:a,return:""}}function Gi(e,t){return O3(Us("",null,null,"",null,null,0),e,{length:-e.length},t)}function q3(){return Ie}function F3(){return Ie=Ye>0?De(xn,--Ye):0,En--,Ie===10&&(En=1,js--),Ie}function at(){return Ie=Ye<nk?De(xn,Ye++):0,En++,Ie===10&&(En=1,js++),Ie}function Lt(){return De(xn,Ye)}function Ts(){return Ye}function Zi(e,t){return Yi(xn,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 ik(e){return js=En=1,nk=Dt(xn=e),Ye=0,[]}function ok(e){return xn="",e}function Cs(e){return rk(Zi(Ye-1,vp(e===91?e+2:e===40?e+1:e)))}function M3(e){for(;(Ie=Lt())&&Ie<33;)at();return Xi(e)>2||Xi(Ie)>3?"":" "}function j3(e,t){for(;--t&&at()&&!(Ie<48||Ie>102||Ie>57&&Ie<65||Ie>70&&Ie<97););return Zi(e,Ts()+(t<6&&Lt()==32&&at()==32))}function vp(e){for(;at();)switch(Ie){case e:return Ye;case 34:case 39:e!==34&&e!==39&&vp(Ie);break;case 40:e===41&&vp(e);break;case 92:at();break}return Ye}function U3(e,t){for(;at()&&e+Ie!==57&&!(e+Ie===84&&Lt()===47););return"/*"+Zi(t,Ye-1)+"*"+Ms(e===47?e:at())}function B3(e){for(;!Xi(Lt());)at();return Zi(e,Ye)}function J3(e){return ok(Ps("",null,null,null,[""],e=ik(e),0,[0],e))}function Ps(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,_=0,w="",A=i,R=o,P=n,S=w;y;)switch(m=_,_=at()){case 40:if(m!=108&&De(S,u-1)==58){mp(S+=J(Cs(_),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:S+=Cs(_);break;case 9:case 10:case 13:case 32:S+=M3(m);break;case 92:S+=j3(Ts()-1,7);continue;case 47:switch(Lt()){case 42:case 47:ks($3(U3(at(),Ts()),t,r),l);break;default:S+="/"}break;case 123*g:s[c++]=Dt(S)*v;case 125*g:case 59:case 0:switch(_){case 0:case 125:y=0;case 59+d:v==-1&&(S=J(S,/\f/g,"")),f>0&&Dt(S)-u&&ks(f>32?Rx(S+";",n,r,u-1):Rx(J(S," ","")+";",n,r,u-2),l);break;case 59:S+=";";default:if(ks(P=Px(S,t,r,c,d,i,s,w,A=[],R=[],u),o),_===123)if(d===0)Ps(S,t,P,P,A,o,u,s,R);else switch(p===99&&De(S,3)===110?100:p){case 100:case 108:case 109:case 115:Ps(e,P,P,n&&ks(Px(e,P,P,0,0,i,s,w,i,A=[],u),R),i,R,u,s,n?A:R);break;default:Ps(S,P,P,P,[""],R,0,s,R)}}c=d=f=0,g=v=1,w=S="",u=a;break;case 58:u=1+Dt(S),f=m;default:if(g<1){if(_==123)--g;else if(_==125&&g++==0&&F3()==125)continue}switch(S+=Ms(_),_*g){case 38:v=d>0?1:(S+="\f",-1);break;case 44:s[c++]=(Dt(S)-1)*v,v=1;break;case 64:Lt()===45&&(S+=Cs(at())),p=Lt(),d=u=Dt(w=S+=B3(Ts())),_++;break;case 45:m===45&&Dt(S)==2&&(g=0)}}return o}function Px(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=Cp(p),m=0,g=0,y=0;m<n;++m)for(var v=0,_=Yi(e,u+1,u=R3(g=a[m])),w=e;v<f;++v)(w=rk(g>0?p[v]+" "+_:J(_,/&\f/g,p[v])))&&(l[y++]=w);return Us(e,t,r,i===0?Ap:s,l,c,d)}function $3(e,t,r){return Us(e,t,r,ek,Ms(q3()),Yi(e,2,-2),0)}function Rx(e,t,r,n){return Us(e,t,r,Tp,Yi(e,0,n),Yi(e,n+1,-1),n)}function Sn(e,t){for(var r="",n=Cp(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function H3(e,t,r,n){switch(e.type){case P3:if(e.children.length)break;case C3:case Tp:return e.return=e.return||e.value;case ek:return"";case tk:return e.return=e.value+"{"+Sn(e.children,n)+"}";case Ap:e.value=e.props.join(",")}return Dt(r=Sn(e.children,n))?e.return=e.value+"{"+r+"}":""}function V3(e){var t=Cp(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 z3(e){return function(t){t.root||(t=t.return)&&e(t)}}function G3(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function ak(e,t){switch(N3(e,t)){case 5103:return B+"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 B+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return B+e+Ns+e+Be+e+e;case 6828:case 4268:return B+e+Be+e+e;case 6165:return B+e+Be+"flex-"+e+e;case 5187:return B+e+J(e,/(\w+).+(:[^]+)/,B+"box-$1$2"+Be+"flex-$1$2")+e;case 5443:return B+e+Be+"flex-item-"+J(e,/flex-|-self/,"")+e;case 4675:return B+e+Be+"flex-line-pack"+J(e,/align-content|flex-|-self/,"")+e;case 5548:return B+e+Be+J(e,"shrink","negative")+e;case 5292:return B+e+Be+J(e,"basis","preferred-size")+e;case 6060:return B+"box-"+J(e,"-grow","")+B+e+Be+J(e,"grow","positive")+e;case 4554:return B+J(e,/([^-])(transform)/g,"$1"+B+"$2")+e;case 6187:return J(J(J(e,/(zoom-|grab)/,B+"$1"),/(image-set)/,B+"$1"),e,"")+e;case 5495:case 3959:return J(e,/(image-set\([^]*)/,B+"$1$`$1");case 4968:return J(J(e,/(.+:)(flex-)?(.*)/,B+"box-pack:$3"+Be+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+B+e+e;case 4095:case 3583:case 4068:case 2532:return J(e,/(.+)-inline(.+)/,B+"$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(Dt(e)-1-t>6)switch(De(e,t+1)){case 109:if(De(e,t+4)!==45)break;case 102:return J(e,/(.+:)(.+)-([^]+)/,"$1"+B+"$2-$3$1"+Ns+(De(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~mp(e,"stretch")?ak(J(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(De(e,t+1)!==115)break;case 6444:switch(De(e,Dt(e)-3-(~mp(e,"!important")&&10))){case 107:return J(e,":",":"+B)+e;case 101:return J(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+B+(De(e,14)===45?"inline-":"")+"box$3$1"+B+"$2$3$1"+Be+"$2box$3")+e}break;case 5936:switch(De(e,t+11)){case 114:return B+e+Be+J(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return B+e+Be+J(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return B+e+Be+J(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return B+e+Be+e+e}return e}function rJ(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 Ds(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 gr={name:i.name,styles:i.styles,next:gr},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)gr={name:a.name,styles:a.styles,next:gr},a=a.next;var s=o.styles+";";return s}return aJ(e,t,r)}}var l=r;if(t==null)return l;var c=t[l];return c!==void 0?c:l}function aJ(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=Ds(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]+"}":Nx(s)&&(n+=rp(o)+":"+Dx(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++)Nx(a[l])&&(n+=rp(o)+":"+Dx(o,a[l])+";");else{var c=Ds(e,t,a);switch(o){case"animation":case"animationName":{n+=rp(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function np(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="";gr=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=Ds(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Ds(r,t,e[s]),n){var l=o;i+=l[s]}Lx.lastIndex=0;for(var c="",d;(d=Lx.exec(i))!==null;)c+="-"+d[1];var u=rJ(i)+c;return{name:u,styles:i,next:gr}}function lk(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}function qx(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function Fx(e,t,r){var n=[],i=lk(e,n,r);return n.length<2?r:i+t(n)}function pJ(e,t){Te.__h&&Te.__h(ot,e,jx||t),jx=0;var r=ot.__H||(ot.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function uk(e,t){var r=pJ(gp++,7);return mJ(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function fJ(){for(var e;e=ck.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Rs),e.__H.__h.forEach(yp),e.__H.__h=[]}catch(t){e.__H.__h=[],Te.__e(t,e.__v)}}function hJ(e){var t,r=function(){clearTimeout(n),zx&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);zx&&(t=requestAnimationFrame(r))}function Rs(e){var t=ot,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),ot=t}function yp(e){var t=ot;e.__c=e.__(),ot=t}function mJ(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Bs(){if(yr>1)yr--;else{for(var e,t=!1;Wi!==void 0;){var r=Wi;for(Wi=void 0,_p++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&pk(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(_p=0,yr--,t)throw e}}function Qe(e){if(yr>0)return e();yr++;try{return e()}finally{Bs()}}function dk(e){if(K!==void 0){var t=e.n;if(t===void 0||t.t!==K)return t={i:0,S:e,p:K.s,n:void 0,t:K,e:void 0,x:void 0,r:t},K.s!==void 0&&(K.s.n=t),K.s=t,e.n=t,32&K.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=K.s,t.n=void 0,K.s.n=t,K.s=t),t}}function Le(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function X(e){return new Le(e)}function pk(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 fk(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 hk(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 An(e){Le.call(this,void 0),this.x=e,this.s=void 0,this.g=Ls-1,this.f=4}function Ki(e){return new An(e)}function mk(e){var t=e.u;if(e.u=void 0,typeof t=="function"){yr++;var r=K;K=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,Pp(e),n}finally{K=r,Bs()}}}function Pp(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,mk(e)}function gJ(e){if(K!==this)throw new Error("Out-of-order effect");hk(this),K=e,this.f&=-2,8&this.f&&Pp(this),Bs()}function eo(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function to(e){var t=new eo(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function Tn(e,t){O[e]=t.bind(null,O[e]||function(){})}function qs(e){op&&op(),op=e&&e.S()}function yk(e){var t=this,r=e.data,n=_k(r);n.value=r;var i=uk(function(){for(var s=t,l=t.__v;l=l.__;)if(l.__c){l.__c.__$f|=4;break}var c=Ki(function(){var f=n.value.value;return f===0?0:f===!0?"":f||""}),d=Ki(function(){return!Array.isArray(c.value)&&!Bl(c.value)}),u=to(function(){if(this.N=bk,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 yJ(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=X(r);return{o:function(a,s){o.value=a,n=s},d:to(function(){this.N=bk;var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function _k(e){return uk(function(){return X(e)},[])}function bJ(){Qe(function(){for(var e;e=gk.shift();)vk.call(e)})}function bk(){gk.push(this)===1&&(O.requestAnimationFrame||_J)(bJ)}function wJ(e,t){let r=ci(e);Zr(()=>{r.current=e},[e]),li(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function he(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:--IJ,__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 O.vnode&&O.vnode(c),c}function Zt(e,t,r){return(t=DJ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function DJ(e){var t=LJ(e,"string");return typeof t=="symbol"?t:t+""}function LJ(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 er(e,t,r){return(t=jJ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function jJ(e){var t=UJ(e,"string");return typeof t=="symbol"?t:t+""}function UJ(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 Ue(e,t,r){return(t=BJ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function BJ(e){var t=JJ(e,"string");return typeof t=="symbol"?t:t+""}function JJ(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 it(e,t,r){return(t=$J(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $J(e){var t=HJ(e,"string");return typeof t=="symbol"?t:t+""}function HJ(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 Mr(e,t,r){return(t=VJ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function VJ(e){var t=zJ(e,"string");return typeof t=="symbol"?t:t+""}function zJ(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Nt(e,t,r){return(t=GJ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function GJ(e){var t=WJ(e,"string");return typeof t=="symbol"?t:t+""}function WJ(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 Sx,q5,F5,M5,ap,sp,Gx,$5,H5,Ex,V5,z5,xx,G5,W5,K5,Wx,Q5,r3,n3,kx,i3,Ax,o3,Qx,Yx,Xx,Tx,a3,s3,lp,oe,d3,p3,zi,Qi,f3,up,h3,ep,g3,dp,Cx,pp,fp,hp,T3,Be,Ns,B,ek,Ap,Tp,C3,tk,P3,R3,Ms,O3,js,En,nk,Ye,Ie,xn,W3,K3,Q3,Ox,Y3,X3,Z3,eJ,tJ,nJ,iJ,oJ,sk,Nx,rp,Dx,Lx,gr,sJ,lJ,cJ,uJ,dJ,kn,gp,ot,ip,Mx,jx,ck,Te,Ux,Bx,Jx,$x,Hx,Vx,zx,vJ,K,Wi,yr,_p,Ls,vk,op,gk,_J,Je,IJ,SJ,tr,bp,wp,Os,EJ,xJ,kJ,AJ,TJ,CJ,PJ,RJ,OJ,NJ,Ip,In,wn,qJ,FJ,MJ,Sp,wk,Ep,xp,kp,Fs,TK,Ik=T(()=>{"use strict";$r();Uo();Sx=Object.getOwnPropertySymbols,q5=Object.prototype.hasOwnProperty,F5=Object.prototype.propertyIsEnumerable,M5=(e,t)=>{var r={};for(var n in e)q5.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Sx)for(var n of Sx(e))t.indexOf(n)<0&&F5.call(e,n)&&(r[n]=e[n]);return r};ap=class{constructor(t){nt(this,"context",void 0),nt(this,"continueCallback",void 0),nt(this,"adIsShowingCallback",void 0),nt(this,"isBeforeAdCalled",!1),nt(this,"isBeforeRewardCalled",!1),nt(this,"isAdDismissedCalled",!1),nt(this,"isAdViewedCalled",!1),nt(this,"isAfterAdCalled",!1),nt(this,"currentProvider",void 0),nt(this,"currentClientParams",void 0),nt(this,"adsHasResponse",!1),nt(this,"videoChecker",window.document.createElement("video")),nt(this,"wrapShowAdFn",r=>()=>{var n;this.adsHasResponse=!0;let i=!1;this.videoChecker.play().catch(()=>{i=!1}),i=!this.videoChecker.paused,this.videoChecker.pause(),this.context.track("CallShowAdFn",Object.assign({},{userEvent:i},this.paramsToTrack)),(n=this.adIsShowingCallback)==null||n.call(this,!0),r()}),this.context=t}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;this.adsHasResponse=!0,this.context.track("CallBeforeAd",this.paramsToTrack),this.isBeforeAdCalled||(this.isBeforeAdCalled=!0,t==null||t(),((r=this.currentClientParams)==null?void 0:r.type)!=="reward"&&((n=this.adIsShowingCallback)==null||n.call(this,!0)))}}wrapBeforeReward(t){return r=>{this.adsHasResponse=!0,this.isBeforeRewardCalled?this.wrapShowAdFn(r)():(this.isBeforeRewardCalled=!0,t==null||t(this.wrapShowAdFn(r)))}}wrapAdDismissed(t){return()=>{this.adsHasResponse=!0,this.isAdDismissedCalled||(this.isAdDismissedCalled=!0,t==null||t())}}wrapAdViewed(t){return()=>{this.adsHasResponse=!0,this.isAdViewedCalled||(this.isAdViewedCalled=!0,t==null||t())}}wrapAfterAd(t){return()=>{this.adsHasResponse=!0,this.context.track("CallAfterAd",this.paramsToTrack),this.isAfterAdCalled||(this.isAfterAdCalled=!0,t==null||t())}}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":{t==null||t(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 I(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")})})}};sp=class{constructor(t){Es(this,"context",void 0),Es(this,"adBreakIsShowing",!1),Es(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),Es(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()})}},Gx=Object.defineProperty,$5=Object.defineProperties,H5=Object.getOwnPropertyDescriptors,Ex=Object.getOwnPropertySymbols,V5=Object.prototype.hasOwnProperty,z5=Object.prototype.propertyIsEnumerable,xx=(e,t,r)=>t in e?Gx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,G5=(e,t)=>{for(var r in t||(t={}))V5.call(t,r)&&xx(e,r,t[r]);if(Ex)for(var r of Ex(t))z5.call(t,r)&&xx(e,r,t[r]);return e},W5=(e,t)=>$5(e,H5(t)),K5=(e,t)=>{for(var r in t)Gx(e,r,{get:t[r],enumerable:!0})},Wx=(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},Q5=(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}r3=(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))(r3||{});n3={log:Vi("log"),warn:Vi("warn"),info:Vi("info"),error:Vi("error"),debug:Vi("debug")};Object.assign(globalThis,{logger:n3});kx=Symbol.for("Jolibox.canIUseMap"),i3={};globalThis[kx]||(globalThis[kx]=i3);Ax=Symbol.for("Jolibox.canIUseMap.native"),o3={};globalThis[Ax]||(globalThis[Ax]=o3);Qx=(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))(Qx||{}),Yx=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(Yx||{}),Xx=(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))(Xx||{}),Tx=["name","params"],a3=["name","type","location","target","extra","timestamp","userId"],s3=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];u3();navigator.userAgent.includes("iPhone")||navigator.userAgent.includes("iPod")||navigator.userAgent.includes("iPad")||navigator.userAgent.includes("iPhone OS"),navigator.userAgent.includes("Android"),navigator.userAgent.includes("Mac"),navigator.userAgent.includes("FB_IAB"),!navigator.userAgent.includes("iPhone")&&navigator.userAgent.includes("Android");lp=class cp{constructor(t){this.element=t,this.next=cp.Undefined,this.prev=cp.Undefined}};lp.Undefined=new lp(void 0);oe=lp,d3=class{constructor(){this._first=oe.Undefined,this._last=oe.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===oe.Undefined}clear(){let e=this._first;for(;e!==oe.Undefined;){let t=e.next;e.prev=oe.Undefined,e.next=oe.Undefined,e=t}this._first=oe.Undefined,this._last=oe.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new oe(e);if(this._first===oe.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!==oe.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==oe.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==oe.Undefined&&e.next!==oe.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===oe.Undefined&&e.next===oe.Undefined?(this._first=oe.Undefined,this._last=oe.Undefined):e.next===oe.Undefined?(this._last=this._last.prev,this._last.next=oe.Undefined):e.prev===oe.Undefined&&(this._first=this._first.next,this._first.prev=oe.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==oe.Undefined;)yield e.element,e=e.next}},p3=0,zi=class{constructor(e){this.value=e,this.id=p3++}},Qi=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 zi&&(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 zi(e);return this._listeners?this._listeners instanceof zi?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 zi)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 zi?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},f3=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;var n;let i=(n=this.listeners.get(e))!=null?n:new Qi,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)}},up={};K5(up,{None:()=>h3,filter:()=>v3,once:()=>Zx,toPromise:()=>m3});h3=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});ep=Symbol.for("Jolibox.hostEmitter"),g3=()=>{let e=new f3;return globalThis[ep]||(globalThis[ep]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[ep]};g3();dp=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Qi,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 y3(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}};dp=Wx([Kx],dp);Cx=class{constructor(){this._onWillExecuteCommand=new Qi,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Qi,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new dp,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=Y5(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 Q5(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),up.toPromise(up.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{}}};Cx=Wx([Kx],Cx);pp=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";tp(this,"context",void 0),tp(this,"placement","GAME"),tp(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:Xx.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:Qx.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:Yx.WebSDK};return c3(i)}};fp=class{constructor(t){xs(this,"configs",null),xs(this,"firstRun",!0),xs(this,"context",void 0),xs(this,"contextInfo",void 0),this.context=t,this.contextInfo=this.context.getContextInfo(),this.init()}init(){return I(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}};hp=class{constructor(t,r){Xt(this,"name","ADSENSE"),Xt(this,"context",void 0),Xt(this,"contextInfo",void 0),Xt(this,"configured",!1),Xt(this,"initParams",void 0),Xt(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),Xt(this,"adConfig",n=>{let i=n,{onReady:o}=i,a=M5(i,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),Xt(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),Xt(this,"adUnit",n=>I(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(_=>{if(_.type==="attributes"&&_.attributeName==="data-ad-status"){let w=y.getAttribute("data-ad-status");this.context.track("AdSenseUnitStatusChanged",{status:w!=null?w:"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 I(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&&this.initParams.admobRewardedSlot&&(i.setAttribute("data-admob-interstitial-slot",this.initParams.admobInterstitialSlot),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)}})}};T3=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(A3(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=k3(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}(),Be="-ms-",Ns="-moz-",B="-webkit-",ek="comm",Ap="rule",Tp="decl",C3="@import",tk="@keyframes",P3="@layer",R3=Math.abs,Ms=String.fromCharCode,O3=Object.assign;js=1,En=1,nk=0,Ye=0,Ie=0,xn="";W3=function(e,t,r){for(var n=0,i=0;n=i,i=Lt(),n===38&&i===12&&(t[r]=1),!Xi(i);)at();return Zi(e,Ye)},K3=function(e,t){var r=-1,n=44;do switch(Xi(n)){case 0:n===38&&Lt()===12&&(t[r]=1),e[r]+=W3(Ye-1,t,r);break;case 2:e[r]+=Cs(n);break;case 4:if(n===44){e[++r]=Lt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Ms(n)}while(n=at());return e},Q3=function(e,t){return ok(K3(ik(e),t))},Ox=new WeakMap,Y3=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&&!Ox.get(r))&&!n){Ox.set(e,!0);for(var i=[],o=Q3(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]}}},X3=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};Z3=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case Tp:e.return=ak(e.value,e.length);break;case tk:return Sn([Gi(e,{value:J(e.value,"@","@"+B)})],n);case Ap:if(e.length)return L3(e.props,function(i){switch(D3(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Sn([Gi(e,{props:[J(i,/:(read-\w+)/,":"+Ns+"$1")]})],n);case"::placeholder":return Sn([Gi(e,{props:[J(i,/:(plac\w+)/,":"+B+"input-$1")]}),Gi(e,{props:[J(i,/:(plac\w+)/,":"+Ns+"$1")]}),Gi(e,{props:[J(i,/:(plac\w+)/,Be+"input-$1")]})],n)}return""})}},eJ=[Z3],tJ=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||eJ,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=[Y3,X3];{var c,d=[H3,z3(function(m){c.insert(m)})],u=V3(l.concat(n,d)),p=function(m){return Sn(J3(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 T3({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};nJ={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},iJ=/[A-Z]|^ms/g,oJ=/_EMO_([^_]+?)_([^]*?)_EMO_/g,sk=function(e){return e.charCodeAt(1)===45},Nx=function(e){return e!=null&&typeof e!="boolean"},rp=G3(function(e){return sk(e)?e:e.replace(iJ,"-$&").toLowerCase()}),Dx=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(oJ,function(r,n,i){return gr={name:n,styles:i,next:gr},n})}return nJ[e]!==1&&!sk(e)&&typeof t=="number"&&t!==0?t+"px":t};Lx=/label:\s*([^\s;{]+)\s*(;|$)/g;sJ=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},lJ=function(e,t,r){sJ(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)}};cJ=function(e){var t=tJ(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=np(s,t.registered,void 0);return lJ(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=np(s,t.registered),d="animation-"+c.name;return qx(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=np(s,t.registered);qx(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return Fx(t.registered,r,uJ(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:lk.bind(null,t.registered),merge:Fx.bind(null,t.registered,r)}},uJ=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},dJ=cJ({key:"css"}),kn=dJ.css,jx=0,ck=[],Te=O,Ux=Te.__b,Bx=Te.__r,Jx=Te.diffed,$x=Te.__c,Hx=Te.unmount,Vx=Te.__;Te.__b=function(e){ot=null,Ux&&Ux(e)},Te.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Vx&&Vx(e,t)},Te.__r=function(e){Bx&&Bx(e),gp=0;var t=(ot=e.__c).__H;t&&(ip===ot?(t.__h=[],ot.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Rs),t.__h.forEach(yp),t.__h=[],gp=0)),ip=ot},Te.diffed=function(e){Jx&&Jx(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(ck.push(t)!==1&&Mx===Te.requestAnimationFrame||((Mx=Te.requestAnimationFrame)||hJ)(fJ)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),ip=ot=null},Te.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Rs),r.__h=r.__h.filter(function(n){return!n.__||yp(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Te.__e(n,r.__v)}}),$x&&$x(e,t)},Te.unmount=function(e){Hx&&Hx(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Rs(n)}catch(i){t=i}}),r.__H=void 0,t&&Te.__e(t,r.__v))};zx=typeof requestAnimationFrame=="function";vJ=Symbol.for("preact-signals");K=void 0,Wi=void 0,yr=0,_p=0,Ls=0;Le.prototype.brand=vJ;Le.prototype.h=function(){return!0};Le.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)};Le.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)}};Le.prototype.subscribe=function(e){var t=this;return to(function(){var r=t.value,n=K;K=void 0;try{e(r)}finally{K=n}})};Le.prototype.valueOf=function(){return this.value};Le.prototype.toString=function(){return this.value+""};Le.prototype.toJSON=function(){return this.value};Le.prototype.peek=function(){var e=K;K=void 0;try{return this.value}finally{K=e}};Object.defineProperty(Le.prototype,"value",{get:function(){var e=dk(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(_p>100)throw new Error("Cycle detected");this.v=e,this.i++,Ls++,yr++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Bs()}}}});(An.prototype=new Le).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Ls))return!0;if(this.g=Ls,this.f|=1,this.i>0&&!pk(this))return this.f&=-2,!0;var e=K;try{fk(this),K=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 K=e,hk(this),this.f&=-2,!0};An.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)}Le.prototype.S.call(this,e)};An.prototype.U=function(e){if(this.t!==void 0&&(Le.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)}};An.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(An.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=dk(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});eo.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()}};eo.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,mk(this),fk(this),yr++;var e=K;return K=this,gJ.bind(this,e)};eo.prototype.N=function(){2&this.f||(this.f|=2,this.o=Wi,Wi=this)};eo.prototype.d=function(){this.f|=8,1&this.f||Pp(this)};gk=[];to(function(){vk=this.N})();yk.displayName="_st";Object.defineProperties(Le.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:yk},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});Tn("__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 Le&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});Tn("__r",function(e,t){qs();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return to(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),qs(r),e(t)});Tn("__e",function(e,t,r,n){qs(),e(t,r,n)});Tn("diffed",function(e,t){qs();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=yJ(r,l,d,i),o[l]=c):c.o(d,i)}}}e(t)});Tn("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)});Tn("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});Xe.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};_J=function(e){queueMicrotask(function(){queueMicrotask(e)})};Je=kn`
522
522
  inset: 0;
523
523
  clear: none;
524
524
  float: none;
@@ -536,8 +536,8 @@ or `);this.errors.push(o)}return n}},ss=class extends we{constructor(...t){super
536
536
  text-decoration: none;
537
537
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
538
538
  'Helvetica Neue', sans-serif;
539
- `;mJ=0;vJ=En`
540
- ${Be}
539
+ `;IJ=0;SJ=kn`
540
+ ${Je}
541
541
  position: fixed;
542
542
  top: 0;
543
543
  left: 0;
@@ -550,7 +550,7 @@ or `);this.errors.push(o)}return n}},ss=class extends we{constructor(...t){super
550
550
  height: 100vh;
551
551
 
552
552
  .card-wrapper {
553
- ${Be}
553
+ ${Je}
554
554
  position: relative;
555
555
  display: flex;
556
556
  flex-direction: column;
@@ -564,7 +564,7 @@ or `);this.errors.push(o)}return n}},ss=class extends we{constructor(...t){super
564
564
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
565
565
 
566
566
  .body {
567
- ${Be}
567
+ ${Je}
568
568
  display: flex;
569
569
  flex-direction: column;
570
570
  width: 100%;
@@ -573,7 +573,7 @@ or `);this.errors.push(o)}return n}},ss=class extends we{constructor(...t){super
573
573
  box-sizing: border-box;
574
574
  justify-content: center;
575
575
  .title {
576
- ${Be}
576
+ ${Je}
577
577
  text-align: center;
578
578
  font-size: 16px;
579
579
  font-weight: bold;
@@ -581,7 +581,7 @@ or `);this.errors.push(o)}return n}},ss=class extends we{constructor(...t){super
581
581
  }
582
582
 
583
583
  .content {
584
- ${Be}
584
+ ${Je}
585
585
  font-size: 14px;
586
586
  color: #888;
587
587
  margin-bottom: 16px;
@@ -589,13 +589,13 @@ or `);this.errors.push(o)}return n}},ss=class extends we{constructor(...t){super
589
589
  }
590
590
 
591
591
  .footer {
592
- ${Be}
592
+ ${Je}
593
593
  display: flex;
594
594
  align-items: center;
595
595
  width: 100%;
596
596
  height: 40px;
597
597
  button {
598
- ${Be}
598
+ ${Je}
599
599
  border: none;
600
600
  outline: none;
601
601
  height: 100%;
@@ -611,8 +611,8 @@ or `);this.errors.push(o)}return n}},ss=class extends we{constructor(...t){super
611
611
  }
612
612
  }
613
613
  }
614
- `,Xt=Z(null),gp=Z(""),yp=Z(""),Cs=Z(!1),gJ=()=>{var e;(e=Xt.value)==null||e.call(Xt,!1)},yJ=()=>{var e;(e=Xt.value)==null||e.call(Xt,!0)},_J=e=>I(void 0,null,function*(){let{title:t,content:r}=e;return Xt.value&&(Xt.value(!1),Ke(()=>{Xt.value=null,Cs.value=!1})),Ke(()=>{gp.value=t||"",yp.value=r||"",Cs.value=!0}),new Promise(n=>{Xt.value=i=>{Ke(()=>{Xt.value=null,Cs.value=!1,gp.value="",yp.value=""}),n(i)}})}),bJ=()=>Cs.value?he("div",{className:vJ,children:he("div",{className:"card-wrapper",children:[he("div",{className:"body",children:[he("div",{className:"title",children:gp.value}),he("div",{className:"content",children:yp.value})]}),he("div",{className:"footer",children:[he("button",{onClick:gJ,className:"cancel-btn",children:"Cancel"}),he("button",{onClick:yJ,className:"confirm-btm",children:"Confirm"})]})]})}):null,wJ=En`
615
- ${Be}
614
+ `,tr=X(null),bp=X(""),wp=X(""),Os=X(!1),EJ=()=>{var e;(e=tr.value)==null||e.call(tr,!1)},xJ=()=>{var e;(e=tr.value)==null||e.call(tr,!0)},kJ=e=>I(void 0,null,function*(){let{title:t,content:r}=e;return tr.value&&(tr.value(!1),Qe(()=>{tr.value=null,Os.value=!1})),Qe(()=>{bp.value=t||"",wp.value=r||"",Os.value=!0}),new Promise(n=>{tr.value=i=>{Qe(()=>{tr.value=null,Os.value=!1,bp.value="",wp.value=""}),n(i)}})}),AJ=()=>Os.value?he("div",{className:SJ,children:he("div",{className:"card-wrapper",children:[he("div",{className:"body",children:[he("div",{className:"title",children:bp.value}),he("div",{className:"content",children:wp.value})]}),he("div",{className:"footer",children:[he("button",{onClick:EJ,className:"cancel-btn",children:"Cancel"}),he("button",{onClick:xJ,className:"confirm-btm",children:"Confirm"})]})]})}):null,TJ=kn`
615
+ ${Je}
616
616
  position: relative;
617
617
  display: flex;
618
618
  align-items: center;
@@ -630,7 +630,7 @@ or `);this.errors.push(o)}return n}},ss=class extends we{constructor(...t){super
630
630
  }
631
631
 
632
632
  button {
633
- ${Be}
633
+ ${Je}
634
634
  padding: 0 20px;
635
635
  height: 30px;
636
636
  line-height: 30px;
@@ -644,8 +644,8 @@ or `);this.errors.push(o)}return n}},ss=class extends we{constructor(...t){super
644
644
  cursor: not-allowed;
645
645
  }
646
646
  }
647
- `,IJ=()=>{let e=Z(!1),t=Z(null);return{timerPaused:e,startTimestamp:t,startTimer:()=>{Ke(()=>{t.value=Date.now(),e.value=!1})}}},EJ=e=>{let{countdown:t=0,mode:r,onClose:n,state:i}=e,{startTimestamp:o,timerPaused:a}=i,s=fk(t);hJ(()=>{s.value>0?s.value-=1:Ke(()=>{a.value=!0,s.value=0})},a.value?null:1e3);let l=zi(()=>{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=zi(()=>{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=zi(()=>r==="interstitial"?!1:!l.value&&!c.value),u=()=>I(void 0,null,function*(){if(a.value=!0,!(yield _J({title:"Are you sure?",content:"You will lose your reward if you dismiss this Ad."}))){a.value=!1;return}n("dismiss"),Ke(()=>{a.value=!0,s.value=0,o.value=null})}),p=()=>{n("viewed"),Ke(()=>{a.value=!0,s.value=0,o.value=null})};return he("div",{className:wJ,children:[s.value>0&&r!=="interstitial"&&he("div",{className:"timer",children:[s.value,"s"]}),he("button",{onClick:l.value?u:c.value?p:void 0,disabled:d.value,children:he("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:he("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"})})})]})},SJ=()=>{let e=Z(),t=Z(),r=Z(),n=Z(),i=Z(),o=Z(!1),a=Z(15),s=Z(""),l=Z("reward");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,visible:o,countdown:a,src:s,mode:l}},xJ=En`
648
- ${Be}
647
+ `,CJ=()=>{let e=X(!1),t=X(null);return{timerPaused:e,startTimestamp:t,startTimer:()=>{Qe(()=>{t.value=Date.now(),e.value=!1})}}},PJ=e=>{let{countdown:t=0,mode:r,onClose:n,state:i}=e,{startTimestamp:o,timerPaused:a}=i,s=_k(t);wJ(()=>{s.value>0?s.value-=1:Qe(()=>{a.value=!0,s.value=0})},a.value?null:1e3);let l=Ki(()=>{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=Ki(()=>{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=Ki(()=>r==="interstitial"?!1:!l.value&&!c.value),u=()=>I(void 0,null,function*(){if(a.value=!0,!(yield kJ({title:"Are you sure?",content:"You will lose your reward if you dismiss this Ad."}))){a.value=!1;return}n("dismiss"),Qe(()=>{a.value=!0,s.value=0,o.value=null})}),p=()=>{n("viewed"),Qe(()=>{a.value=!0,s.value=0,o.value=null})};return he("div",{className:TJ,children:[s.value>0&&r!=="interstitial"&&he("div",{className:"timer",children:[s.value,"s"]}),he("button",{onClick:l.value?u:c.value?p:void 0,disabled:d.value,children:he("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:he("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"})})})]})},RJ=()=>{let e=X(),t=X(),r=X(),n=X(),i=X(),o=X(!1),a=X(15),s=X(""),l=X("reward");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,visible:o,countdown:a,src:s,mode:l}},OJ=kn`
648
+ ${Je}
649
649
  position: fixed;
650
650
  z-index: 2147483647;
651
651
  background: white;
@@ -655,7 +655,7 @@ or `);this.errors.push(o)}return n}},ss=class extends we{constructor(...t){super
655
655
  flex-direction: column;
656
656
 
657
657
  iframe {
658
- ${Be}
658
+ ${Je}
659
659
  flex: 1;
660
660
  position: relative;
661
661
  display: block;
@@ -663,8 +663,8 @@ or `);this.errors.push(o)}return n}},ss=class extends we{constructor(...t){super
663
663
  width: 100%;
664
664
  height: 100%;
665
665
  }
666
- `,kJ=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=si(()=>IJ(),[]),[p,f]=qo(!1),m=y=>{var v,_,w,A;s.value=!1,y==="dismiss"?(v=n.value)==null||v.call(n):y==="viewed"&&((_=i.value)==null||_.call(i)),(w=r.value)==null||w.call(r),(A=o.value)==null||A.call(o),f(!1)},g=Yr(()=>{var y;p||(f(!0),(y=a.value)==null||y.call(a))},[p]);return oi(()=>{p&&(d.value==="reward"||d.value==="rewarded_insterstitial")&&setTimeout(()=>{u.startTimer()},100)},[p,d.value]),s.value?he("div",{className:xJ,children:[he(EJ,{mode:d.value,onClose:m,countdown:l.value,state:u}),s.value&&he("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"}),he(bJ,{})]}):null};_p=class{constructor(t,r){Yt(this,"name","OKSPIN"),Yt(this,"initialized",!1),Yt(this,"initCompleter",null),Yt(this,"context",void 0),Yt(this,"initParams",void 0),Yt(this,"adsOverlay",null),Yt(this,"adsIsShowing",!1),Yt(this,"lastUnDisplayedAdBreak",null),Yt(this,"state",SJ()),this.context=t,this.initParams=r}init(){return I(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg"),Fc(he(kJ,{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 I(this,null,function*(){var n,i,o,a,s,l,c,d;if(!this.initialized||!this.adsOverlay||!r.params.url){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"});return}if(this.adsIsShowing){(i=t.adBreakDone)==null||i.call(t,{breakType:t.type,breakName:t.type==="preroll"?"":t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"frequencyCapped"});return}switch(t.type){case"preroll":{(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:"",breakFormat:"interstitial",breakStatus:"noAdPreloaded"});break}case"start":case"browse":case"next":case"pause":{(a=t.beforeAd)==null||a.call(t);let u=()=>{var f;this.adsIsShowing=!1,(f=t.afterAd)==null||f.call(t)},p=()=>{var f;this.adsIsShowing=!1,(f=t.adBreakDone)==null||f.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})};Ke(()=>{this.adsIsShowing=!0,this.state.afterAd.value=u,this.state.adBreakDone.value=p,this.state.src.value=r.params.url,this.state.mode.value="interstitial",this.state.visible.value=!0});break}case"reward":{this.lastUnDisplayedAdBreak&&((l=(s=this.lastUnDisplayedAdBreak).adBreakDone)==null||l.call(s,{breakType:this.lastUnDisplayedAdBreak.type,breakName:this.lastUnDisplayedAdBreak.type==="preroll"?"":this.lastUnDisplayedAdBreak.name,breakFormat:this.lastUnDisplayedAdBreak.type==="reward"?"reward":"interstitial",breakStatus:"ignored"}),this.lastUnDisplayedAdBreak=null),(c=t.beforeAd)==null||c.call(t);let u=()=>{var 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)};Ke(()=>{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,Ke(()=>{var _;this.state.countdown.value=(_=r.params.countdown)!=null?_:15,this.state.src.value=r.params.url,this.state.mode.value="reward",this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,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)})});yn=(e,t)=>{oi(()=>(_n[e]||(_n[e]=new Set),_n[e].add(t),()=>{_n[e].delete(t)}),[e,t])},CJ=()=>{let e=Z(),t=Z(),r=Z(),n=Z(),i=Z(),o=Z(),a=Z(),s=Z(!1),l=Z("");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,adLinkClicked:o,adError:a,visible:s,src:l}},PJ=En`
667
- ${Be}
666
+ `,NJ=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(()=>CJ(),[]),[p,f]=Mo(!1),m=y=>{var v,_,w,A;s.value=!1,y==="dismiss"?(v=n.value)==null||v.call(n):y==="viewed"&&((_=i.value)==null||_.call(i)),(w=r.value)==null||w.call(r),(A=o.value)==null||A.call(o),f(!1)},g=en(()=>{var y;p||(f(!0),(y=a.value)==null||y.call(a))},[p]);return li(()=>{p&&(d.value==="reward"||d.value==="rewarded_insterstitial")&&setTimeout(()=>{u.startTimer()},100)},[p,d.value]),s.value?he("div",{className:OJ,children:[he(PJ,{mode:d.value,onClose:m,countdown:l.value,state:u}),s.value&&he("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"}),he(AJ,{})]}):null};Ip=class{constructor(t,r){Zt(this,"name","OKSPIN"),Zt(this,"initialized",!1),Zt(this,"initCompleter",null),Zt(this,"context",void 0),Zt(this,"initParams",void 0),Zt(this,"adsOverlay",null),Zt(this,"adsIsShowing",!1),Zt(this,"lastUnDisplayedAdBreak",null),Zt(this,"state",RJ()),this.context=t,this.initParams=r}init(){return I(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg"),Uc(he(NJ,{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 I(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"})};Qe(()=>{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)};Qe(()=>{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,Qe(()=>{var _;this.state.countdown.value=(_=r.params.countdown)!=null?_:15,this.state.src.value=r.params.url,this.state.mode.value="reward",this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,y);break}}})}},In={};window.addEventListener("message",e=>{e.origin!=="https://ads.appsrockets.com"&&e.origin!=="https://stg-ads.appsrockets.com"||In[e.data.type]&&In[e.data.type].forEach(t=>{t(e.data.data)})});wn=(e,t)=>{li(()=>(In[e]||(In[e]=new Set),In[e].add(t),()=>{In[e].delete(t)}),[e,t])},qJ=()=>{let e=X(),t=X(),r=X(),n=X(),i=X(),o=X(),a=X(),s=X(!1),l=X("");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,adLinkClicked:o,adError:a,visible:s,src:l}},FJ=kn`
667
+ ${Je}
668
668
  position: fixed;
669
669
  z-index: 2147483647;
670
670
  background: white;
@@ -674,7 +674,7 @@ or `);this.errors.push(o)}return n}},ss=class extends we{constructor(...t){super
674
674
  flex-direction: column;
675
675
 
676
676
  iframe {
677
- ${Be}
677
+ ${Je}
678
678
  flex: 1;
679
679
  position: relative;
680
680
  display: block;
@@ -682,8 +682,8 @@ or `);this.errors.push(o)}return n}},ss=class extends we{constructor(...t){super
682
682
  width: 100%;
683
683
  height: 100%;
684
684
  }
685
- `,RJ=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adLinkClicked:s,visible:l,src:c}=t,[d,u]=qo(!1),p=m=>{var g,y,v,_;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),(_=o.value)==null||_.call(o)},f=()=>{var m;(m=a.value)==null||m.call(a)};return yn("appsrockets_ad_dismissed",()=>p("dismiss")),yn("appsrockets_ad_rewarded",()=>p("viewed")),yn("appsrockets_ad_completed",()=>p("viewed")),yn("appsrockets_ad_skipped",()=>p("viewed")),yn("appsrockets_ad_clicked",m=>{var g;return(g=s.value)==null?void 0:g.call(s,m)}),yn("appsrockets_ad_loaded",()=>u(!0)),l.value?he("div",{className:PJ,style:{display:d?"flex":"none"},children:l.value&&he("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};bp=class{constructor(t,r){Zt(this,"name","APPSROCKETS"),Zt(this,"initialized",!1),Zt(this,"initCompleter",null),Zt(this,"context",void 0),Zt(this,"adsOverlay",null),Zt(this,"adsIsShowing",!1),Zt(this,"lastUnDisplayedAdBreak",null),Zt(this,"state",CJ()),Zt(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 I(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg-appsrockets"),Fc(he(RJ,{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"})};Ke(()=>{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 w;this.adsIsShowing=!1,(w=t.afterAd)==null||w.call(t)},f={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},m=()=>{var w;this.adsIsShowing=!1,f.breakStatus="dismissed",(w=t.adDismissed)==null||w.call(t)},g=()=>{var w;this.adsIsShowing=!1,f.breakStatus="viewed",(w=t.adViewed)==null||w.call(t)},y=()=>{var w;this.adsIsShowing=!1,(w=t.adBreakDone)==null||w.call(t,f)},v=()=>{this.adsIsShowing=!1,f.breakStatus="noAdPreloaded"};Ke(()=>{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 _=()=>{var w;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(w=t.adBreakDone)==null||w.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,Ke(()=>{this.state.src.value=this.processUrl(r.params.url),this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,_);break}}}};Ds=class{constructor(t){if(Rt(this,"context",void 0),Rt(this,"contextInfo",void 0),Rt(this,"providers",{}),Rt(this,"channelPolicy",void 0),Rt(this,"adsActionDetection",void 0),Rt(this,"adsTrackSerializer",void 0),Rt(this,"initialized",!1),Rt(this,"adsIsShowing",!1),Rt(this,"lastAdBreak",void 0),Rt(this,"initializedTimeStamp",Date.now()),t)this.context=t,this.channelPolicy=new up(this.context),this.adsActionDetection=new ip(this.context),this.adsTrackSerializer=new cp(this.context),this.contextInfo=this.context.getContextInfo();else throw new Error("JoliboxAdsForGame requires a configuration object")}getRequestContextData(t){var r,n;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}}init(t){return I(this,null,function*(){window.adsbygoogle=window.adsbygoogle||[];let{data:r}=yield this.context.httpClient.post("/api/ads/init",{data:{contextData:this.getRequestContextData("AdsAFGSDKInit"),bizParams:this.getRequestBizParams(),testAdsMode:this.contextInfo.testAdsMode}});if((r==null?void 0:r.length)>0)for(let n of r)switch(n.provider){case"ADSENSE":case"ADSENSE_ADMOB":{let i=new dp(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"OKSPIN":{let i=new _p(this.context,n.params);yield i.init(),this.providers.OKSPIN=i;break}case"APPSROCKETS":{let i=new bp(this.context,n.params);yield i.init(),this.providers.APPSROCKETS=i;break}}this.initialized=!0})}adConfig(t){this.providers.ADSENSE?this.providers.ADSENSE.adConfig(t):window.adsbygoogle.push(t)}adBreak(t){return I(this,null,function*(){var r,n,i,o,a,s,l,c,d,u;let p=Date.now();if(p-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&&p-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=p,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{data:f,code:m}=yield this.context.httpClient.post("/api/ads/info",{data:{contextData:this.getRequestContextData("AdsAFGSDKAdBreak"),bizParams:this.getRequestBizParams(),adsType:t.type==="reward"?"REWARD":"INTERSTITIAL",testAdsMode:this.contextInfo.testAdsMode,name:t.type==="preroll"?"":t.name}});if(m!=="SUCCESS"){(s=t.adBreakDone)==null||s.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}else{let g=f==null?void 0:f.sort((w,A)=>w.seq-A.seq);if(g.length===0){(l=t.adBreakDone)==null||l.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}let y=!0,v=null,_=new np(this.context);for(this.adsActionDetection.adBreakIsShowing=!0;g.length>0;){let w=g.shift(),A=this.providers[w.provider];if(A){let[R,P]=yield _.callAdBreakAndContinue(A,t,w,E=>{var k;this.adsIsShowing=E,(k=this.context.eventEmitter)==null||k.emit("isAdShowing",E)});y=R,v=P}else y=!0,v={breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"};if(!y)break}y&&v&&((c=t.adBreakDone)==null||c.call(t,v))}}catch(f){(d=t.adBreakDone)==null||d.call(t,{breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}finally{this.adsIsShowing=!1,(u=this.context.eventEmitter)==null||u.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.")}},mK=En`
686
- ${Be}
685
+ `,MJ=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adLinkClicked:s,visible:l,src:c}=t,[d,u]=Mo(!1),p=m=>{var g,y,v,_;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),(_=o.value)==null||_.call(o)},f=()=>{var m;(m=a.value)==null||m.call(a)};return wn("appsrockets_ad_dismissed",()=>p("dismiss")),wn("appsrockets_ad_rewarded",()=>p("viewed")),wn("appsrockets_ad_completed",()=>p("viewed")),wn("appsrockets_ad_skipped",()=>p("viewed")),wn("appsrockets_ad_clicked",m=>{var g;return(g=s.value)==null?void 0:g.call(s,m)}),wn("appsrockets_ad_loaded",()=>u(!0)),l.value?he("div",{className:FJ,style:{display:d?"flex":"none"},children:l.value&&he("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};Sp=class{constructor(t,r){er(this,"name","APPSROCKETS"),er(this,"initialized",!1),er(this,"initCompleter",null),er(this,"context",void 0),er(this,"adsOverlay",null),er(this,"adsIsShowing",!1),er(this,"lastUnDisplayedAdBreak",null),er(this,"state",qJ()),er(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 I(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg-appsrockets"),Uc(he(MJ,{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"})};Qe(()=>{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 w;this.adsIsShowing=!1,(w=t.afterAd)==null||w.call(t)},f={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},m=()=>{var w;this.adsIsShowing=!1,f.breakStatus="dismissed",(w=t.adDismissed)==null||w.call(t)},g=()=>{var w;this.adsIsShowing=!1,f.breakStatus="viewed",(w=t.adViewed)==null||w.call(t)},y=()=>{var w;this.adsIsShowing=!1,(w=t.adBreakDone)==null||w.call(t,f)},v=()=>{this.adsIsShowing=!1,f.breakStatus="noAdPreloaded"};Qe(()=>{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 _=()=>{var w;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(w=t.adBreakDone)==null||w.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,Qe(()=>{this.state.src.value=this.processUrl(r.params.url),this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,_);break}}}},wk=()=>{window.googletag=window.googletag||{cmd:[]},window.googletag.pubadsReady||window.googletag.cmd.push(()=>{window.googletag.enableServices()})};Ep=class{constructor(t,r,n){Ue(this,"adUnit",void 0),Ue(this,"project",void 0),Ue(this,"keyValue",void 0),Ue(this,"adsContext",null),Ue(this,"rewardedSlot",null),Ue(this,"rewardedPayload",null),Ue(this,"readyEvent",null),Ue(this,"withCommand",function(){googletag.cmd.push(...arguments)}),Ue(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))}),Ue(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}),Ue(this,"reinit",i=>{this.destroy(i),this.init()}),Ue(this,"handleSlotReady",i=>{i.slot===this.rewardedSlot&&(this.readyEvent=i)}),Ue(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)})}}),Ue(this,"handleSlotGranted",i=>{this.adsContext&&i.slot===this.rewardedSlot&&(this.rewardedPayload=i.payload)}),Ue(this,"handleSlotRenderEnded",i=>{i.slot===this.rewardedSlot&&i.isEmpty&&this.adsContext&&this.withCommand(()=>{this.reinit("frequencyCapped")})}),Ue(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=>{var s,l;a.slot===this.rewardedSlot&&this.adsContext&&(googletag.pubads().removeEventListener("rewardedSlotReady",o),this.readyEvent=a,(l=(s=this.adsContext).beforeAd)==null||l.call(s),this.adsContext.beforeReward(()=>{var c;(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,wk(),this.withCommand(()=>{this.init()})}};xp=class{constructor(t,r,n){it(this,"adUnit",void 0),it(this,"project",void 0),it(this,"keyValue",void 0),it(this,"adsContext",null),it(this,"gamingInterstitialSlot",null),it(this,"readyEvent",null),it(this,"withCommand",function(){googletag.cmd.push(...arguments)}),it(this,"init",()=>{var i;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(o=>{var a;(a=this.gamingInterstitialSlot)==null||a.setTargeting(o,this.keyValue[o])}),Object.keys(this.keyValue).includes("project")||(i=this.gamingInterstitialSlot)==null||i.setTargeting("project",this.project)),googletag.display(this.gamingInterstitialSlot))}),it(this,"destroy",i=>{var o,a;(a=(o=this.adsContext)==null?void 0:o.onEnd)==null||a.call(o,i),this.adsContext=null,googletag.pubads().removeEventListener("gameManualInterstitialSlotReady",this.handleSlotReady),googletag.pubads().removeEventListener("gameManualInterstitialSlotClosed",this.handleSlotClosed),this.gamingInterstitialSlot&&(googletag.destroySlots([this.gamingInterstitialSlot]),this.gamingInterstitialSlot=null,this.readyEvent=null)}),it(this,"reinit",i=>{this.destroy(i),this.init()}),it(this,"handleSlotReady",i=>{this.gamingInterstitialSlot===i.slot&&(this.readyEvent=i)}),it(this,"handleSlotClosed",i=>{var o,a;this.adsContext&&this.gamingInterstitialSlot===i.slot&&((a=(o=this.adsContext).afterAd)==null||a.call(o),this.withCommand(()=>{this.reinit("viewed")}))}),it(this,"requestAds",i=>{this.withCommand(()=>{var o;if(this.adsContext&&this.reinit("ignored"),this.gamingInterstitialSlot||this.init(),this.adsContext=i,!this.gamingInterstitialSlot){this.reinit("notReady");return}this.readyEvent?((o=i.beforeAd)==null||o.call(i),this.readyEvent.makeGameManualInterstitialVisible()):this.reinit("frequencyCapped")})}),wk(),this.adUnit=t,this.project=r,this.keyValue=n,this.withCommand(()=>{this.init()})}};kp=class{constructor(t,r){Mr(this,"name","GOOGLE_GPT"),Mr(this,"context",void 0),Mr(this,"contextInfo",void 0),Mr(this,"initParams",void 0),Mr(this,"rewardAdManager",void 0),Mr(this,"interstitialManager",void 0),Mr(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 I(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"}`;this.rewardAdManager=new Ep(t,n,this.initParams.keyValue),this.interstitialManager=new xp(r,n,this.initParams.keyValue)})}adConfig(t,r){}adBreak(t,r){var n,i;if(!this.rewardAdManager||!this.interstitialManager){(n=t.adBreakDone)==null||n.call(t,{breakName:t.type==="preroll"?"":t.name,breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"error"});return}switch(t.type){case"preroll":{(i=t.adBreakDone)==null||i.call(t,{breakType:"preroll",breakFormat:"reward",breakStatus:"noAdPreloaded"});break}case"reward":{this.rewardAdManager.requestAds({beforeAd:t.beforeAd,afterAd:t.afterAd,adDismissed:t.adDismissed,adViewed:t.adViewed,beforeReward:t.beforeReward,adBreakDone:o=>{var a;(a=t.adBreakDone)==null||a.call(t,{breakName:t.name,breakType:t.type,breakFormat:"reward",breakStatus:o})}});break}default:{this.interstitialManager.requestAds({beforeAd:t.beforeAd,afterAd:t.afterAd,onEnd:o=>{var a;(a=t.adBreakDone)==null||a.call(t,{breakName:t.name,breakType:t.type,breakFormat:"interstitial",breakStatus:o})}});break}}}};Fs=class{constructor(t){if(Nt(this,"context",void 0),Nt(this,"contextInfo",void 0),Nt(this,"providers",{}),Nt(this,"channelPolicy",void 0),Nt(this,"adsActionDetection",void 0),Nt(this,"adsTrackSerializer",void 0),Nt(this,"initialized",!1),Nt(this,"adsIsShowing",!1),Nt(this,"lastAdBreak",void 0),Nt(this,"initializedTimeStamp",Date.now()),t)this.context=t,this.channelPolicy=new fp(this.context),this.adsActionDetection=new sp(this.context),this.adsTrackSerializer=new pp(this.context),this.contextInfo=this.context.getContextInfo();else throw new Error("JoliboxAdsForGame requires a configuration object")}getRequestContextData(t){var r,n;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}}init(t){return I(this,null,function*(){window.adsbygoogle=window.adsbygoogle||[];let{data:r}=yield this.context.httpClient.post("/api/ads/init",{data:{contextData:this.getRequestContextData("AdsAFGSDKInit"),bizParams:this.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 kp(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"ADSENSE":case"ADSENSE_ADMOB":{let i=new hp(this.context,n.params);yield i.init(),this.providers[n.provider]=i;break}case"OKSPIN":{let i=new Ip(this.context,n.params);yield i.init(),this.providers.OKSPIN=i;break}case"APPSROCKETS":{let i=new Sp(this.context,n.params);yield i.init(),this.providers.APPSROCKETS=i;break}}this.initialized=!0})}adConfig(t){this.providers.ADSENSE?this.providers.ADSENSE.adConfig(t):window.adsbygoogle.push(t)}adBreak(t){return I(this,null,function*(){var r,n,i,o,a,s,l,c,d,u;let p=Date.now();if(p-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&&p-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=p,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{data:f,code:m}=yield this.context.httpClient.post("/api/ads/info",{data:{contextData:this.getRequestContextData("AdsAFGSDKAdBreak"),bizParams:this.getRequestBizParams(),adsType:t.type==="reward"?"REWARD":"INTERSTITIAL",testAdsMode:this.contextInfo.testAdsMode,name:t.type==="preroll"?"":t.name}});if(m!=="SUCCESS"){(s=t.adBreakDone)==null||s.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}else{let g=f==null?void 0:f.sort((w,A)=>w.seq-A.seq);if(g.length===0){(l=t.adBreakDone)==null||l.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}let y=!0,v=null,_=new ap(this.context);for(this.adsActionDetection.adBreakIsShowing=!0;g.length>0;){let w=g.shift(),A=this.providers[w.provider];if(A){let[R,P]=yield _.callAdBreakAndContinue(A,t,w,S=>{var k;this.adsIsShowing=S,(k=this.context.eventEmitter)==null||k.emit("isAdShowing",S)});y=R,v=P}else y=!0,v={breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"};if(!y)break}y&&v&&((c=t.adBreakDone)==null||c.call(t,v))}}catch(f){(d=t.adBreakDone)==null||d.call(t,{breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}finally{this.adsIsShowing=!1,(u=this.context.eventEmitter)==null||u.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.")}},TK=kn`
686
+ ${Je}
687
687
  position: fixed;
688
688
  left: 0;
689
689
  top: 0;
@@ -698,7 +698,7 @@ or `);this.errors.push(o)}return n}},ss=class extends we{constructor(...t){super
698
698
  }
699
699
 
700
700
  .ads-wrapper {
701
- ${Be}
701
+ ${Je}
702
702
  position: relative;
703
703
  width: 100%;
704
704
  height: 100%;
@@ -721,7 +721,7 @@ or `);this.errors.push(o)}return n}},ss=class extends we{constructor(...t){super
721
721
  }
722
722
 
723
723
  .retry-button {
724
- ${Be}
724
+ ${Je}
725
725
  position: absolute;
726
726
  width: 100%;
727
727
  height: 100%;
@@ -731,4 +731,4 @@ or `);this.errors.push(o)}return n}},ss=class extends we{constructor(...t){super
731
731
  cursor: pointer;
732
732
  }
733
733
  }
734
- `});function gk(){let e=new Map,t,r;return{registerRewardHandler(i,o){e.set(i,o)},handleReward(i,...o){return I(this,null,function*(){return yield i.reduce((s,l)=>I(this,null,function*(){let c=yield s;if(c===!0)return!0;vk&&console.log(`handleReward ${l}`);let d=e.get(l),u=d?yield d(...o):c;return vk&&console.log(`handleReward ${l} ${u}`),u}),Promise.resolve(!1))})},registerRewardsFetcher(i){return I(this,null,function*(){t=(...o)=>I(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),["ADS"]}})})},registerRewardFrequencyConfigFetcher(i){return I(this,null,function*(){r=(...o)=>I(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),{joliCoinUseAndCharge:vn}}})})},getRewardsTypes(...i){return I(this,null,function*(){return t?yield t(...i):["ADS"]})},getRewardFrequencyConfig(...i){return I(this,null,function*(){return r?yield r(...i):{joliCoinUseAndCharge:vn}})}}}var vk,yk=T(()=>{"use strict";Q();Dr();vk=S.testMode});var LJ,FJ,_k,bk,wk=T(()=>{"use strict";Dr();LJ=()=>(e,t)=>e==="JOLI_COIN"&&t==="ADS"?-1:e==="ADS"&&t==="JOLI_COIN"?1:0,FJ=e=>e.length?e.includes("JOLI_COIN")&&e.length<=1?["JOLI_COIN_ONLY"]:e.sort(LJ()):["ADS"],_k=e=>{e.registerRewardsFetcher(t=>I(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;W.emit(mn,{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 FJ(l)}catch(s){return console.error("getRewardOptions error:",s),r}}))},bk=e=>{e.registerRewardFrequencyConfigFetcher(t=>I(void 0,null,function*(){var n,i;let r=yield t.get("/api/fe-configs/web-common/global-config",{});return W.emit(gs,{joliCoinUseAndCharge:((n=r.data)==null?void 0:n.joliCoinUseAndCharge)||vn}),{joliCoinUseAndCharge:((i=r.data)==null?void 0:i.joliCoinUseAndCharge)||vn}}))}});var Ik,Ek=T(()=>{"use strict";Ik=e=>t=>I(void 0,null,function*(){return console.log("trigger @jolibox/ads reward",t),e.adBreak(t),!0})});var Sk,xk=T(()=>{"use strict";Sk=(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 js,Us,Bs,Js=T(()=>{"use strict";Q();D();Dr();xk();Bi();js=(e,t)=>r=>I(void 0,null,function*(){let n=Wt(W,mt);return W.emit(ms,e,{userJoliCoin:r.userJoliCoin,joliCoinQuantity:r.joliCoinQuantity,enableAutoDeduct:r.userJoliCoin.enableAutoDeduct,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).paymentResult}),Us=(e,t)=>r=>I(void 0,null,function*(){let n=Wt(W,Nr);return W.emit(vs,e,{enableAutoDeduct:r.enableAutoDeduct,userJoliCoin:r.userJoliCoin,joliCoinQuantity:r.joliCoinQuantity,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).useModalResult}),Bs=(e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:r,unlockOptionsHandler:n,initiateAndAwaitPayment:i,showUnlockWithJolicoinModal:o}})=>a=>I(void 0,null,function*(){var s,l,c,d,u,p,f;try{let m=!1,g=yield n.getData(),y=(c=(l=(s=g==null?void 0:g.options)==null?void 0:s.find(w=>w.type==="JOLI_COIN"))==null?void 0:l.joliCoinChoices[0].joliCoinQuantity)!=null?c:0;if(!Sk((g==null?void 0:g.options)||[],g==null?void 0:g.userJoliCoin)){if((yield i({userJoliCoin:g==null?void 0:g.userJoliCoin,joliCoinQuantity:y}))!=="SUCCESS")return r==null||r(a),!1;m=!0}let v=!!((d=g==null?void 0:g.userJoliCoin)!=null&&d.enableAutoDeduct);if(!m&&(yield o({enableAutoDeduct:v,userJoliCoin:g==null?void 0:g.userJoliCoin,joliCoinQuantity:y}))!=="CONFIRM")return r==null||r(a),!1;let _=yield e.post("/api/joli-coin/unlock",{data:{type:"GAME_REWARD",reqId:`${ho()}-${S.mpType}-${Date.now()}`,gameInfo:{gameId:S.mpId}}});return _.code=="SUCCESS"?((p=a.adBreakDone)==null||p.call(a,{breakType:a.type,breakName:"name"in a&&(u=a.name)!=null?u:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in a&&((f=a.adViewed)==null||f.call(a)),t==null||t({quantity:_.data.quantity,balance:_.data.balance}),!0):(r==null||r(a),!1)}catch(m){if(console.info("JolicoinRewardHandler error:",m),m instanceof Error&&m.message=="CANCEL")throw m;return r==null||r(a),!1}finally{n.clearCache()}})});var kk,Ak=T(()=>{"use strict";Dr();Bi();Js();Js();kk=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=Wt(W,mn),i=()=>{r==null||r()},o=Us("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),a=js("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"});return Bs(e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:n,initiateAndAwaitPayment:a,showUnlockWithJolicoinModal:o}})}});var Tk,Ck=T(()=>{"use strict";Dr();Js();Bi();Tk=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=Wt(W,mn),i=l=>{var c;r==null||r(),(c=l.adBreakDone)==null||c.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},o=Us("JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),a=js("JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"});return Bs(e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:n,initiateAndAwaitPayment:a,showUnlockWithJolicoinModal:o}})}});var er,Pk=T(()=>{"use strict";yk();wk();Ek();Ak();Ck();er=gk();_k(er);bk(er)});var hQ,$s,MJ,Xi,jJ,eo,Rk,UJ,BJ,JJ,$J,Ok=T(()=>{"use strict";D();ut();Or();hQ=ce(vx());mk();Lt();Q();wt();Ee();Pk();Dl();$s=ae(),MJ=()=>{let{data:e}=F("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},Xi={get:(e,t)=>ne(e,C({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>ne(e,C({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},jJ={httpClient:Xi,checkNetwork:MJ,track:Y,eventEmitter:yo,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:""}}},eo=new Ds(jJ);er.getRewardFrequencyConfig(Xi).then(e=>{console.log("getRewardFrequencyConfig",e)});er.registerRewardHandler("ADS",Ik(eo));er.registerRewardHandler("JOLI_COIN",kk(Xi,{onUnlockSuccess:e=>{Rk(e)},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));er.registerRewardHandler("JOLI_COIN_ONLY",Tk(Xi,{onUnlockSuccess:e=>{Rk(e)},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));Rk=e=>{let{quantity:t}=e,r=`{slot-coin} ${t} {slot-i18n-jolicoin.coinUsed}`;ji(r,{customStyle:{mark:{marginRight:"8px"}},i18nParams:{text:"Jolicoin Used"}})},UJ=z("adInit",{implement:e=>{eo.init(e)}}),BJ=z("adConfig",{implement:e=>{eo.adConfig(e)}}),JJ=z("adBreak",{implement:e=>{e.type==="reward"?er.getRewardsTypes(Xi).then(t=>{er.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"})})}):eo.adBreak(e)}}),$J=z("adUnit",{implement:e=>{eo.adUnit(e)}});$s.registerCommand("AdsSDK.init",UJ);$s.registerCommand("AdsSDK.adConfig",BJ);$s.registerCommand("AdsSDK.adBreak",JJ);$s.registerCommand("AdsSDK.adUnit",$J);q("AdsSDK.init",{version:"1.0.0"});q("AdsSDK.adConfig",{version:"1.0.0"});q("AdsSDK.adBreak",{version:"1.0.0"});q("AdsSDK.adUnit",{version:"1.0.0"})});var to,HJ,VJ,zJ,GJ,WJ,Nk=T(()=>{"use strict";D();Ee();ut();Q();to=ae(),HJ=z("openSchemaSync",{paramsSchema:x.tuple(x.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${S.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=F("openSchemaSync",{schema:t});if(r.errNo!==0)throw new Fr(r.errMsg,r.errNo)}}),VJ=z("openPageSync",{paramsSchema:x.tuple(x.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=F("openPageSync",{url:e});if(t!==0||!n)throw new Fr(r,t);return{webviewId:n.webviewId}}}),zJ=z("closePageSync",{paramsSchema:x.tuple(x.number()),implement:e=>{let{errNo:t,errMsg:r}=F("closePageSync",{webviewId:e});if(t!==0)throw new Fr(r,t)}}),GJ=z("interceptSystemExitSync",{paramsSchema:x.tuple(x.boolean()),implement:e=>{Se.emit("onInterceptSystemExit",{intercept:e}),Se.emit("onInterceptBackPress",{intercept:e})}}),WJ=z("navigateToNativePage",{paramsSchema:x.tuple(x.enum("openHistory","openDiscover","openDiscover","openGame","openDrama","openTopup"),x.object()),implement:(e,t)=>{let{errNo:r,errMsg:n}=F("callHostMethodAsync",{method:e,params:C({},t)});if(r!==0)throw new Fr(n,r)}});to.registerCommand("RouterSDK.openSchema",HJ);to.registerCommand("RouterSDK.openPage",VJ);to.registerCommand("RouterSDK.closePage",zJ);to.registerCommand("RouterSDK.interceptSystemExit",GJ);to.registerCommand("RouterSDK.navigateToNativePage",WJ);q("router.openSchema",{version:"1.1.10"});q("router.openPage",{version:"1.1.10"});q("router.closePage",{version:"1.1.10"});q("router.interceptSystemExit",{version:"1.1.18"});q("router.navigateToNativePage",{version:"1.1.19"})});function YJ(e){ul("cpLoadProgressEvent",{progress:e},S.webviewId,!0)}var qk,KJ,Hs,xp,Dk,QJ,ZJ,Lk=T(()=>{"use strict";D();ut();Ee();Q();qk=ae(),KJ=z("onLoadFinished",{implement:()=>{ul("cpLoadFinishEvent",{},S.webviewId,!0)}}),Hs=null,xp=!1,Dk=0,QJ=200;ZJ=z("onLoadProgress",{paramsSchema:x.tuple(x.number()),implement:e=>{Hs=e,xp||(xp=!0,requestAnimationFrame(function t(){let r=Date.now();r-Dk>=QJ?(Hs!==null&&(YJ(Hs),Dk=r,Hs=null),xp=!1):requestAnimationFrame(t)}))}});qk.registerCommand("RuntimeSDK.loadFinishedEvent",KJ);qk.registerCommand("RuntimeSDK.loadProgressEvent",ZJ)});var XJ={};var NQ,FQ,Fk=T(()=>{"use strict";LS();NQ=ce(FS());HS();Fd();WS();FQ=ce(KS());Jd();Ok();Nk();Lk()});var Mk=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[Mk])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[Mk]=!0;I(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(TS(),AS)),Promise.resolve().then(()=>(Fk(),XJ)),Promise.resolve().then(()=>(Lt(),Vf))]);e()});
734
+ `});function Ek(){let e=new Map,t,r;return{registerRewardHandler(i,o){e.set(i,o)},handleReward(i,...o){return I(this,null,function*(){return yield i.reduce((s,l)=>I(this,null,function*(){let c=yield s;if(c===!0)return!0;Sk&&console.log(`handleReward ${l}`);let d=e.get(l),u=d?yield d(...o):c;return Sk&&console.log(`handleReward ${l} ${u}`),u}),Promise.resolve(!1))})},registerRewardsFetcher(i){return I(this,null,function*(){t=(...o)=>I(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),["ADS"]}})})},registerRewardFrequencyConfigFetcher(i){return I(this,null,function*(){r=(...o)=>I(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),{joliCoinUseAndCharge:_n}}})})},getRewardsTypes(...i){return I(this,null,function*(){return t?yield t(...i):["ADS"]})},getRewardFrequencyConfig(...i){return I(this,null,function*(){return r?yield r(...i):{joliCoinUseAndCharge:_n}})}}}var Sk,xk=T(()=>{"use strict";Q();qr();Sk=E.testMode});var KJ,QJ,kk,Ak,Tk=T(()=>{"use strict";qr();KJ=()=>(e,t)=>e==="JOLI_COIN"&&t==="ADS"?-1:e==="ADS"&&t==="JOLI_COIN"?1:0,QJ=e=>e.length?e.includes("JOLI_COIN")&&e.length<=1?["JOLI_COIN_ONLY"]:e.sort(KJ()):["ADS"],kk=e=>{e.registerRewardsFetcher(t=>I(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;W.emit(yn,{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 QJ(l)}catch(s){return console.error("getRewardOptions error:",s),r}}))},Ak=e=>{e.registerRewardFrequencyConfigFetcher(t=>I(void 0,null,function*(){var n,i;let r=yield t.get("/api/fe-configs/web-common/global-config",{});return W.emit(bs,{joliCoinUseAndCharge:((n=r.data)==null?void 0:n.joliCoinUseAndCharge)||_n}),{joliCoinUseAndCharge:((i=r.data)==null?void 0:i.joliCoinUseAndCharge)||_n}}))}});var Ck,Pk=T(()=>{"use strict";Ck=e=>t=>I(void 0,null,function*(){return console.log("trigger @jolibox/ads reward",t),e.adBreak(t),!0})});var Rk,Ok=T(()=>{"use strict";Rk=(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 Js,$s,Hs,Vs=T(()=>{"use strict";Q();D();qr();Ok();Hi();Js=(e,t)=>r=>I(void 0,null,function*(){let n=Qt(W,gt);return W.emit(ys,e,{userJoliCoin:r.userJoliCoin,joliCoinQuantity:r.joliCoinQuantity,enableAutoDeduct:r.userJoliCoin.enableAutoDeduct,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).paymentResult}),$s=(e,t)=>r=>I(void 0,null,function*(){let n=Qt(W,Lr);return W.emit(_s,e,{enableAutoDeduct:r.enableAutoDeduct,userJoliCoin:r.userJoliCoin,joliCoinQuantity:r.joliCoinQuantity,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).useModalResult}),Hs=(e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:r,unlockOptionsHandler:n,initiateAndAwaitPayment:i,showUnlockWithJolicoinModal:o}})=>a=>I(void 0,null,function*(){var s,l,c,d,u,p,f;try{let m=!1,g=yield n.getData(),y=(c=(l=(s=g==null?void 0:g.options)==null?void 0:s.find(w=>w.type==="JOLI_COIN"))==null?void 0:l.joliCoinChoices[0].joliCoinQuantity)!=null?c:0;if(!Rk((g==null?void 0:g.options)||[],g==null?void 0:g.userJoliCoin)){if((yield i({userJoliCoin:g==null?void 0:g.userJoliCoin,joliCoinQuantity:y}))!=="SUCCESS")return r==null||r(a),!1;m=!0}let v=!!((d=g==null?void 0:g.userJoliCoin)!=null&&d.enableAutoDeduct);if(!m&&(yield o({enableAutoDeduct:v,userJoliCoin:g==null?void 0:g.userJoliCoin,joliCoinQuantity:y}))!=="CONFIRM")return r==null||r(a),!1;let _=yield e.post("/api/joli-coin/unlock",{data:{type:"GAME_REWARD",reqId:`${go()}-${E.mpType}-${Date.now()}`,gameInfo:{gameId:E.mpId}}});return _.code=="SUCCESS"?((p=a.adBreakDone)==null||p.call(a,{breakType:a.type,breakName:"name"in a&&(u=a.name)!=null?u:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in a&&((f=a.adViewed)==null||f.call(a)),t==null||t({quantity:_.data.quantity,balance:_.data.balance}),!0):(r==null||r(a),!1)}catch(m){if(console.info("JolicoinRewardHandler error:",m),m instanceof Error&&m.message=="CANCEL")throw m;return r==null||r(a),!1}finally{n.clearCache()}})});var Nk,Dk=T(()=>{"use strict";qr();Hi();Vs();Vs();Nk=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=Qt(W,yn),i=()=>{r==null||r()},o=$s("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),a=Js("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"});return Hs(e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:n,initiateAndAwaitPayment:a,showUnlockWithJolicoinModal:o}})}});var Lk,qk=T(()=>{"use strict";qr();Vs();Hi();Lk=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=Qt(W,yn),i=l=>{var c;r==null||r(),(c=l.adBreakDone)==null||c.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},o=$s("JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),a=Js("JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"});return Hs(e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:n,initiateAndAwaitPayment:a,showUnlockWithJolicoinModal:o}})}});var rr,Fk=T(()=>{"use strict";xk();Tk();Pk();Dk();qk();rr=Ek();kk(rr);Ak(rr)});var AQ,zs,YJ,ro,XJ,no,Mk,ZJ,e4,t4,r4,jk=T(()=>{"use strict";D();pt();Dr();AQ=ce(Ix());Ik();Mt();Q();St();Se();Fk();Fl();zs=ae(),YJ=()=>{let{data:e}=F("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},ro={get:(e,t)=>ne(e,C({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>ne(e,C({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},XJ={httpClient:ro,checkNetwork:YJ,track:Y,eventEmitter:wo,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:""}}},no=new Fs(XJ);rr.getRewardFrequencyConfig(ro).then(e=>{console.log("getRewardFrequencyConfig",e)});rr.registerRewardHandler("ADS",Ck(no));rr.registerRewardHandler("JOLI_COIN",Nk(ro,{onUnlockSuccess:e=>{Mk(e)},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));rr.registerRewardHandler("JOLI_COIN_ONLY",Lk(ro,{onUnlockSuccess:e=>{Mk(e)},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));Mk=e=>{let{quantity:t}=e,r=`{slot-coin} ${t} {slot-i18n-jolicoin.coinUsed}`;Ji(r,{customStyle:{mark:{marginRight:"8px"}},i18nParams:{text:"Jolicoin Used"}})},ZJ=z("adInit",{implement:e=>{no.init(e)}}),e4=z("adConfig",{implement:e=>{no.adConfig(e)}}),t4=z("adBreak",{implement:e=>{e.type==="reward"?rr.getRewardsTypes(ro).then(t=>{rr.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"})})}):no.adBreak(e)}}),r4=z("adUnit",{implement:e=>{no.adUnit(e)}});zs.registerCommand("AdsSDK.init",ZJ);zs.registerCommand("AdsSDK.adConfig",e4);zs.registerCommand("AdsSDK.adBreak",t4);zs.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 io,n4,i4,o4,a4,s4,Uk=T(()=>{"use strict";D();Se();pt();Q();io=ae(),n4=z("openSchemaSync",{paramsSchema:x.tuple(x.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${E.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=F("openSchemaSync",{schema:t});if(r.errNo!==0)throw new Ur(r.errMsg,r.errNo)}}),i4=z("openPageSync",{paramsSchema:x.tuple(x.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=F("openPageSync",{url:e});if(t!==0||!n)throw new Ur(r,t);return{webviewId:n.webviewId}}}),o4=z("closePageSync",{paramsSchema:x.tuple(x.number()),implement:e=>{let{errNo:t,errMsg:r}=F("closePageSync",{webviewId:e});if(t!==0)throw new Ur(r,t)}}),a4=z("interceptSystemExitSync",{paramsSchema:x.tuple(x.boolean()),implement:e=>{Ee.emit("onInterceptSystemExit",{intercept:e}),Ee.emit("onInterceptBackPress",{intercept:e})}}),s4=z("navigateToNativePage",{paramsSchema:x.tuple(x.enum("openHistory","openDiscover","openDiscover","openGame","openDrama","openTopup"),x.object()),implement:(e,t)=>{let{errNo:r,errMsg:n}=F("callHostMethodAsync",{method:e,params:C({},t)});if(r!==0)throw new Ur(n,r)}});io.registerCommand("RouterSDK.openSchema",n4);io.registerCommand("RouterSDK.openPage",i4);io.registerCommand("RouterSDK.closePage",o4);io.registerCommand("RouterSDK.interceptSystemExit",a4);io.registerCommand("RouterSDK.navigateToNativePage",s4);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 u4(e){fl("cpLoadProgressEvent",{progress:e},E.webviewId,!0)}var Jk,l4,Gs,Rp,Bk,c4,d4,$k=T(()=>{"use strict";D();pt();Se();Q();Jk=ae(),l4=z("onLoadFinished",{implement:()=>{fl("cpLoadFinishEvent",{},E.webviewId,!0)}}),Gs=null,Rp=!1,Bk=0,c4=200;d4=z("onLoadProgress",{paramsSchema:x.tuple(x.number()),implement:e=>{Gs=e,Rp||(Rp=!0,requestAnimationFrame(function t(){let r=Date.now();r-Bk>=c4?(Gs!==null&&(u4(Gs),Bk=r,Gs=null),Rp=!1):requestAnimationFrame(t)}))}});Jk.registerCommand("RuntimeSDK.loadFinishedEvent",l4);Jk.registerCommand("RuntimeSDK.loadProgressEvent",d4)});var p4={};var zQ,QQ,Hk=T(()=>{"use strict";JE();zQ=ce($E());QE();Ud();ex();QQ=ce(tx());Vd();jk();Uk();$k()});var Vk=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[Vk])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[Vk]=!0;I(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(DE(),NE)),Promise.resolve().then(()=>(Hk(),p4)),Promise.resolve().then(()=>(Mt(),Yf))]);e()});