@jolibox/implement 1.1.25 → 1.1.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/.rush/temp/package-deps_build.json +21 -16
  2. package/dist/common/context/index.d.ts +1 -0
  3. package/dist/common/context/url-parse.d.ts +1 -0
  4. package/dist/common/report/task-track/index.d.ts +1 -1
  5. package/dist/h5/api/base.d.ts +1 -1
  6. package/dist/h5/api/storage.d.ts +1 -1
  7. package/dist/index.js +41 -22
  8. package/dist/index.native.js +115 -99
  9. package/dist/native/api/base.d.ts +1 -1
  10. package/dist/native/api/keyboard.d.ts +3 -3
  11. package/dist/native/api/login.d.ts +1 -1
  12. package/dist/native/api/storage.d.ts +5 -5
  13. package/dist/native/payment/index.d.ts +4 -0
  14. package/dist/native/payment/payment-helper.d.ts +13 -0
  15. package/dist/native/payment/registers/base.d.ts +21 -0
  16. package/dist/native/payment/registers/joli-coin.d.ts +17 -0
  17. package/dist/native/payment/registers/type.d.ts +14 -0
  18. package/dist/native/report/task-tracker.d.ts +1 -1
  19. package/implement.build.log +2 -2
  20. package/package.json +5 -5
  21. package/src/common/context/index.ts +3 -0
  22. package/src/common/context/url-parse.ts +1 -0
  23. package/src/common/report/task-track/index.ts +3 -2
  24. package/src/common/rewards/registers/use-jolicoin-only.ts +4 -4
  25. package/src/common/rewards/registers/use-jolicoin.ts +4 -4
  26. package/src/h5/api/ads.ts +10 -1
  27. package/src/h5/api/task.ts +43 -131
  28. package/src/h5/http/index.ts +4 -1
  29. package/src/native/api/ads.ts +15 -2
  30. package/src/native/api/storage.ts +9 -7
  31. package/src/native/api/task.ts +41 -159
  32. package/src/native/bootstrap/index.ts +2 -0
  33. package/src/native/payment/index.ts +5 -0
  34. package/src/native/payment/payment-helper.ts +44 -0
  35. package/src/native/payment/registers/base.ts +97 -0
  36. package/src/native/payment/registers/joli-coin.ts +83 -0
  37. package/src/native/payment/registers/type.ts +15 -0
  38. package/src/native/report/task-tracker.ts +1 -1
  39. package/src/native/rewards/check-frequency.ts +28 -15
  40. package/src/native/rewards/index.ts +8 -2
@@ -1,4 +1,4 @@
1
- var oE=Object.create;var Vn=Object.defineProperty,iE=Object.defineProperties,aE=Object.getOwnPropertyDescriptor,sE=Object.getOwnPropertyDescriptors,lE=Object.getOwnPropertyNames,Jn=Object.getOwnPropertySymbols,cE=Object.getPrototypeOf,la=Object.prototype.hasOwnProperty,du=Object.prototype.propertyIsEnumerable;var uu=(e,t,r)=>t in e?Vn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t)=>{for(var r in t||(t={}))la.call(t,r)&&uu(e,r,t[r]);if(Jn)for(var r of Jn(t))du.call(t,r)&&uu(e,r,t[r]);return e},q=(e,t)=>iE(e,sE(t));var et=(e,t)=>{var r={};for(var n in e)la.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Jn)for(var n of Jn(e))t.indexOf(n)<0&&du.call(e,n)&&(r[n]=e[n]);return r};var T=(e,t)=>()=>(e&&(t=e(e=0)),t);var f=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),fu=(e,t)=>{for(var r in t)Vn(e,r,{get:t[r],enumerable:!0})},uE=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of lE(t))!la.call(e,o)&&o!==r&&Vn(e,o,{get:()=>t[o],enumerable:!(n=aE(t,o))||n.enumerable});return e};var ue=(e,t,r)=>(r=e!=null?oE(cE(e)):{},uE(t||!e||!e.__esModule?Vn(r,"default",{value:e,enumerable:!0}):r,e));var x=(e,t,r)=>new Promise((n,o)=>{var i=l=>{try{s(r.next(l))}catch(c){o(c)}},a=l=>{try{s(r.throw(l))}catch(c){o(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(i,a);s((r=r.apply(e,t)).next())});function vE(e){return!!(e!=null&&e.__nativeBuffers__)}function ma(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!vE(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 o;n.value?o=n.value:n.base64&&(o=gE(n.base64)),typeof o!="undefined"&&o instanceof ArrayBuffer&&(e[n.key]=o)}}return e}function yE(e={},t=!1){let r=e,n=[];for(let[o,i]of Object.entries(r))if(i!==void 0&&i instanceof ArrayBuffer&&i.byteLength!==void 0){let a=t?{value:i,key:o}:{base64:_E(i),key:o};n.push(a),delete r[o]}return n.length>0&&(r.__nativeBuffers__=n),r}function xE(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Au(e){return typeof e=="string"}function Lr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function SE(e){return typeof e=="undefined"}function IE(e){return SE(e)||e===null}function Su(e){return typeof e=="function"}function TE(e){return Lr(e)&&Su(e.then)}function Iu(e){let t=e,r=null,n=function(...o){return r||(r=new t(...o)),r};return n.prototype=t.prototype,n}function Dr(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function UE(){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 $E(e){return new Promise(t=>Tu(e)(t))}function Tu(e){return(t,r=null)=>{let n=!1;return e(o=>{if(!n)return n=!0,t.call(r,o)},null)}}function HE(e,t){return(r=>{let n,o={onWillAddFirstListener(){n=r(i.fire,i)}},i=new Mr(o);return i.event})((r,n=null)=>e(o=>t(o)&&r.call(n,o),null))}function VE(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)GE(e[n],t[n])}function GE(e,t){if(Au(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(Su(t)){try{if(e instanceof t)return}catch(r){}if(!IE(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 vu(e,t){return`[${e}]:${t}`}function XE(e,t){gu||(da=new Kn({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(o){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:o}),-1)}}),fa=new Kn({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(o){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:o}),-1)}}),pa=new Kn({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(o){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:o}),-1)}}),t("onJoliboxEnterBackground",()=>{da.flush(),fa.flush(),pa.flush()}),gu=!0);function r(o){var i,a;let{method:s,args:l,startTime:c,isForeground:d,errMsg:u=`${s}:fail no errMsg`,errNo:h=0,__timing:p={receiveJSInvoke:0,invokeCallback:0}}=o,{receiveJSInvoke:m,invokeCallback:g}=p,_=(a=(i=u.match(/\S:(\S+)\s?/))==null?void 0:i[1])!=null?a:"fail";da.report({status:_,method:n(s,l),errNo:`${h}`,errMsg:u,isForeground:d,duration:Date.now()-c}),c&&m&&g&&(fa.report({status:_,method:s,isForeground:d,duration:Number((m-c).toFixed(3))}),pa.report({status:_,method:s,isForeground:d,duration:Number((Date.now()-g).toFixed(3))}))}function n(o,i){return(o==="callHostMethod"||o==="callHostMethodSync")&&i!=null&&i.method?`${o}-${i.method}`:o}return r}function rx(e,t){let r=0,n=!0,o=tx.resolveMap,i=XE(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,ha.forEach(l=>Wn(this,[l],function*({method:c,args:d,resolve:u}){let h=yield s(c,d);u(h)})),ha.length=0});let a=(l,c)=>{let d=o.get(Number(l));if(!d)return;let u=ma(c);d(u),o.delete(Number(l))},s=(l,c)=>{var d,u;let h=Date.now(),p=`${n}`;r+=1;let m=new AE;if(o.set(r,m.resolve),!n&&WE.includes(l))return new Promise(k=>{ha.push({method:l,args:c,resolve:k})});let g=hE(Rt({},{method:l,startTime:h,args:c,isForeground:p}),{invokeType:"js-bridge"}),_=!ZE&&zE.includes(l),v=yE(c,_),y=_?v:JSON.stringify(v),A;if(l.endsWith("Sync")||YE.includes(l)?A=(d=e.call)==null?void 0:d.call(e,l,v,r):typeof y=="string"?A=e.invoke(l,y,r):A=(u=e.call)==null?void 0:u.call(e,l,y,r),A){try{typeof A=="string"&&(A=JSON.parse(A)),A=ma(A)}catch(k){Ea.error(k)}return o.delete(r),A.errorCode&&(A.errorCode=vu(l,A.errorCode)),i(Rt(Rt({},g),A)),A}return l.endsWith("Sync")&&o.delete(r),m.promise.then(k=>(k.errorCode&&(k.errorCode=vu(l,k.errorCode)),i(Rt(Rt({},g),k)),k))};return{invokeNative:s,applyNative:(l,c)=>{let d=s(l,c);return TE(d)?d.then(u=>_u(l,u)):_u(l,d)},invokeHandler:a}}function _u(e,t){if(!Lr(t)){Ea.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:o,errorType:i,errorCode:a}=r,s=mE(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new OE(n,o,i,a);return s}function nx(e){if(globalThis[Gn])return globalThis[Gn];let t=new _a,r=new _a,n=new Kn({eventName:"jolibox_publish",tagNameOrder:["type","event"],metricName:"duration",reporter(o){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:o}),-1)}});return t.on("onJoliboxEnterBackground",()=>{n.flush()}),globalThis[Gn]={onNative:t.on.bind(t),offNative:t.off.bind(t),subscribe:r.on.bind(r),unsubscribe:r.off.bind(r),subscribeHandler(o,i,a){let s=ma(i),l;if(s.__extra){l=s.params;let{type:c,startTime:d}=s.__extra;n.report({type:c,event:o,duration:Date.now()-d})}else l=s;if(o===Ru){l.forEach(c=>{let[d,u]=c;try{r.emit(d.slice(Ur.length),u,a)}catch(h){}});return}if(o.startsWith(Ur)){r.emit(o.slice(Ur.length),l,a);return}t.emit(o,l,a)}},globalThis[Gn]}function ox(e){let t=new Map,r;return(n,o,i,a)=>{if(a){let l=i?[i]:"*";e.publish(`${Ur}${n}`,o,l);return}r||(r=Promise.resolve().then(()=>{t.forEach((l,c)=>{try{let d=c?[c]:"*";e.publish(Ru,l,d)}catch(d){}}),r=void 0,t.clear()}));let s=t.get(i);s||(s=[],t.set(i,s)),s.push([`${Ur}${n}`,o])}}function ix(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:o,unsubscribe:i}=nx(e),{invokeNative:a,invokeHandler:s,applyNative:l}=rx(e,r),c=ox(e);return{invokeHandler:s,subscribeHandler:t,applyNative:l,invokeNative:a,onNative:r,offNative:n,publish:c,subscribe:o,unsubscribe:i}}function ku(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var dE,fE,pE,zn,bu,wu,pu,Rt,hE,mE,Wn,gE,_E,Eu,bE,wE,xu,EE,AE,RE,kE,Yn,CE,OE,PE,ca,Ea,hu,NE,DE,qE,LE,ME,RU,va,K,FE,jE,qr,Mr,_a,ya,BE,ua,JE,kU,ba,mu,CU,KE,Ur,zE,WE,YE,Ru,QE,Kn,gu,da,fa,pa,ha,ZE,wa,ex,tx,Gn,xa,Je,Cu,Ou,ax,Pu,yu,Ee,L,Ve,OU,sx,Nu,PU,NU,Ie=T(()=>{"use strict";dE=Object.defineProperty,fE=Object.defineProperties,pE=Object.getOwnPropertyDescriptors,zn=Object.getOwnPropertySymbols,bu=Object.prototype.hasOwnProperty,wu=Object.prototype.propertyIsEnumerable,pu=(e,t,r)=>t in e?dE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Rt=(e,t)=>{for(var r in t||(t={}))bu.call(t,r)&&pu(e,r,t[r]);if(zn)for(var r of zn(t))wu.call(t,r)&&pu(e,r,t[r]);return e},hE=(e,t)=>fE(e,pE(t)),mE=(e,t)=>{var r={};for(var n in e)bu.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&zn)for(var n of zn(e))t.indexOf(n)<0&&wu.call(e,n)&&(r[n]=e[n]);return r},Wn=(e,t,r)=>new Promise((n,o)=>{var i=l=>{try{s(r.next(l))}catch(c){o(c)}},a=l=>{try{s(r.throw(l))}catch(c){o(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(i,a);s((r=r.apply(e,t)).next())});gE=e=>{let t=atob(e),r=t.length,n=new Uint8Array(r);for(let o=0;o<r;o++)n[o]=t.charCodeAt(o);return n.buffer};_E=e=>{let t="",r=new Uint8Array(e),n=r.byteLength;for(let o=0;o<n;o++)t+=String.fromCharCode(r[o]);return btoa(t)};Eu=Object.defineProperty,bE=Object.getOwnPropertyDescriptor,wE=(e,t)=>{for(var r in t)Eu(e,r,{get:t[r],enumerable:!0})},xu=(e,t,r,n)=>{for(var o=n>1?void 0:n?bE(t,r):t,i=e.length-1,a;i>=0;i--)(a=e[i])&&(o=(n?a(t,r,o):a(o))||o);return n&&o&&Eu(t,r,o),o},EE=(e,t,r)=>new Promise((n,o)=>{var i=l=>{try{s(r.next(l))}catch(c){o(c)}},a=l=>{try{s(r.throw(l))}catch(c){o(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(i,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 o=this._eventListeners[r].indexOf(n);o!==-1&&this._eventListeners[r].splice(o,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}AE=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))}})}};RE=(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))(RE||{}),kE=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}},Yn=class extends kE{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},CE=class extends Yn{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},OE=class extends Yn{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},PE=class extends Yn{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},ca=class extends Yn{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};Ea={log:Dr("log"),warn:Dr("warn"),info:Dr("info"),error:Dr("error"),debug:Dr("debug")};Object.assign(globalThis,{logger:Ea});hu=Symbol.for("Jolibox.canIUseMap"),NE={};globalThis[hu]||(globalThis[hu]=NE);DE=(e=>(e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(DE||{}),qE=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(qE||{}),LE=(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))(LE||{});UE();ME=()=>!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),RU={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")},va=class ga{constructor(t){this.element=t,this.next=ga.Undefined,this.prev=ga.Undefined}};va.Undefined=new va(void 0);K=va,FE=class{constructor(){this._first=K.Undefined,this._last=K.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===K.Undefined}clear(){let e=this._first;for(;e!==K.Undefined;){let t=e.next;e.prev=K.Undefined,e.next=K.Undefined,e=t}this._first=K.Undefined,this._last=K.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new K(e);if(this._first===K.Undefined)this._first=r,this._last=r;else if(t){let o=this._last;this._last=r,r.prev=o,o.next=r}else{let o=this._first;this._first=r,r.next=o,o.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==K.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==K.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==K.Undefined&&e.next!==K.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===K.Undefined&&e.next===K.Undefined?(this._first=K.Undefined,this._last=K.Undefined):e.next===K.Undefined?(this._last=this._last.prev,this._last.next=K.Undefined):e.prev===K.Undefined&&(this._first=this._first.next,this._first.prev=K.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==K.Undefined;)yield e.element,e=e.next}},jE=0,qr=class{constructor(e){this.value=e,this.id=jE++}},Mr=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 qr&&(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,o,i,a,s,l;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};r&&(t=t.bind(r));let c=new qr(t);return this._listeners?this._listeners instanceof qr?this._listeners=[this._listeners,c]:this._listeners.push(c):((o=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||o.call(n,this),this._listeners=c,(a=(i=this.options)==null?void 0:i.onDidFirstListener)==null||a.call(i,this)),(l=(s=this.options)==null?void 0:s.onDidAddListener)==null||l.call(s,this),this._size++,()=>{var d,u,h,p;if(!this._disposed){if(this._listeners instanceof qr)this._listeners.id===c.id&&(this._listeners=void 0,this._size=0,(u=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||u.call(d));else if(this._listeners){let m=this._listeners.indexOf(c);m>=0&&(this._listeners.splice(m,1),this._size--,this._size===0&&((p=(h=this.options)==null?void 0:h.onDidRemoveLastListener)==null||p.call(h)))}}}}),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(o){n(o)}}fire(e){this._listeners&&(this._listeners instanceof qr?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},_a=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t,r=!0){var n;let o=(n=this.listeners.get(e))!=null?n:new Mr,i=l=>t(...l.args),a=o.event(i);this.listerHandlerMap.set(t,{handler:i,dispose:a}),this.listeners.set(e,o);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 FE,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)}},ya={};wE(ya,{None:()=>BE,filter:()=>HE,once:()=>Tu,toPromise:()=>$E});BE=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});ua=Symbol.for("Jolibox.hostEmitter"),JE=()=>{let e=new _a;return globalThis[ua]||(globalThis[ua]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[ua]},kU=JE();ba=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Mr,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 o of e.metadata.args)r.push(o.constraint);let n=e.handler;e.handler=function(...o){return VE(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}};ba=xu([Iu],ba);mu=class{constructor(){this._onWillExecuteCommand=new Mr,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Mr,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new ba,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=xE(3e4)),this._starActivation}executeCommand(e,...t){return EE(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),ya.toPromise(ya.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}}};mu=xu([Iu],mu);CU=Symbol.for("Jolibox.commands");KE=()=>ME(),Ur="custom_event_",zE=[],WE=[],YE=["env","createRequestTask","login"],Ru="__batch_event__",QE=e=>e==="pv"?e:"default",Kn=class{constructor(e){this.interval=30,this.lastReportTime=0,this.cache={};let{reporter:t,interval:r=30,eventName:n,tagNameOrder:o,metricName:i,type:a}=e;this.reporter=t,this.interval=r,this.eventName=n,this.tagNameOrder=o,this.metricName=i,this.type=QE(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,o,i)=>{let a=n.shift();if(a){let s=i[a];r[s]||(r[s]={}),t(r[s],n,o,i)}else r[o]||(r[o]=[]),r[o].push(i[o])};t(this.cache,[...this.tagNameOrder],this.metricName,e)}addPVPoint(e){let t=(n,o,i,a)=>{let s=o.shift();if(!s&&Lr(a))throw new ca(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let l=[];if(Lr(a))l.push(...Object.keys(a));else if(Au(a)){if(o.length>0)throw new ca(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);l.push(a)}else throw new ca(`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],[...o],i,d)})}else n[i]?n[i]++:n[i]=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={}}},gu=!1;ha=[],ZE=!1,wa=Symbol.for("Jolibox.invokeResolverInstance"),ex=new Map;globalThis[wa]||(globalThis[wa]=ex);tx={get resolveMap(){return globalThis[wa]}};Gn=Symbol.for("Jolibox.subscribeInstance");Je={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){Je.trigger=e},onDoExit(e){Je.exit=e},onDoBackPress(e){Je.backPress=e}},Cu=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new CE("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=(o="")=>{Je.trigger(),e.onDocumentReady.postMessage({path:o})},r=o=>Wn(void 0,null,function*(){let i=yield Je.exit();e.doExit.postMessage({uuid:o,shouldInterrupt:i})});xa={onDocumentReady:t,doExit:r,invoke(o,i,a){e.invoke.postMessage({event:o,paramsString:i,callbackId:a})},publish(o,i,a){let s=ku(i,"joliboxJSCore");window.prompt("publish",JSON.stringify({event:o,paramsString:JSON.stringify(s),webviewIds:a}))},call(o,i,a){let s=window.prompt("invoke",JSON.stringify({event:o,paramsString:JSON.stringify(i),callbackId:a}));if(s)return JSON.parse(s)}};let n={onDocumentReady:t,env:Cu,doExit:r};globalThis.joliboxJSCore=Rt({},n)}if(window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(i="")=>{Je.trigger(),t.onDocumentReady(JSON.stringify({path:i}))},n=i=>Wn(void 0,null,function*(){let a=yield Je.exit();t.doExit(JSON.stringify({uuid:i,shouldInterrupt:a}))});xa={onDocumentReady:r,invoke(i,a,s){t.invoke(JSON.stringify({event:i,paramsString:a,callbackId:s}))},doExit:n,publish(i,a,s){let l=ku(a,"joliboxJSCore");t.publish({event:i,paramsString:JSON.stringify(l),webviewIds:s})},call(i,a,s){let l=window.prompt("invoke",JSON.stringify({event:i,paramsString:JSON.stringify(a),callbackId:s}));if(l)return JSON.parse(l)},doBackPress(i){return Wn(this,null,function*(){let a=yield Je.backPress();t.doBackPress(JSON.stringify({uuid:i,shouldInterrupt:a}))})}};let o={onDocumentReady:r,env:Cu,doExit:n};globalThis.joliboxJSCore=Rt({},o)}Ou=xa;if(!Ou&&KE())throw new PE("No joliboxJScore is found, native bridge not found.");ax=Rt({},Ou),Pu=ix(ax),{invokeHandler:yu}=Pu,{applyNative:Ee,invokeNative:L,onNative:Ve,offNative:OU,subscribeHandler:sx,publish:Nu,subscribe:PU,unsubscribe:NU}=Pu;globalThis.joliboxJSBridge={callHandler:yu,invokeHandler:yu,subscribeHandler:sx}});function hx(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function $r(e){return typeof e=="string"}function Ht(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function Mu(e){return typeof e=="object"&&Array.isArray(e)}function Hr(e){return e===!0||e===!1}function Fu(e){return typeof e=="undefined"}function mx(e){return Fu(e)||e===null}function vx(e){return typeof e=="function"}function ju(e){let t=e,r=null,n=function(...o){return r||(r=new t(...o)),r};return n.prototype=t.prototype,n}function Bu(e,t,r){if(typeof r!="function")throw new Error("[Jolibox SDK]Customizer must be a function");function n(o,i){for(let a in i)if(Object.prototype.hasOwnProperty.call(i,a)){let s=o[a],l=i[a],c=r(s,l,a,o,i);c!==void 0?o[a]=c:Lu(l)&&Lu(s)?o[a]=n(dx({},s),l):Array.isArray(l)&&Array.isArray(s)?o[a]=[...s,...l]:o[a]=l}return o}return n(e,t)}function Lu(e){return e&&typeof e=="object"&&e.constructor===Object}function $u(e,t){if(Array.isArray(e))return e.concat(t)}function Jr(e,t,r={}){let n=null,o,i,a,{leading:s=!1,trailing:l=!0}=r,c=()=>(a=e.apply(i,o),o=void 0,i=void 0,a),d=function(...u){o=u,i=this;let h=s&&!n;if(n&&clearTimeout(n),n=setTimeout(()=>{n=null,l&&!h&&c()},t),h)return c()};return d.cancel=()=>{n&&clearTimeout(n),n=null,o=i=void 0},d.flush=()=>{if(n)return clearTimeout(n),n=null,c()},d}function _x(e,t){return(...r)=>t(e,...r)}function Xn(e){return t=>_x(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(o){e(new er(`${o}`))}})}function Fr(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function La(){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 Tx(e){return new Promise(t=>Yu(e)(t))}function Yu(e){return(t,r=null)=>{let n=!1;return e(o=>{if(!n)return n=!0,t.call(r,o)},null)}}function Rx(e,t){return(r=>{let n,o={onWillAddFirstListener(){n=r(i.fire,i)}},i=new Br(o);return i.event})((r,n=null)=>e(o=>t(o)&&r.call(n,o),null))}function Cx(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)Ox(e[n],t[n])}function Ox(e,t){if($r(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(vx(t)){try{if(e instanceof t)return}catch(r){}if(!mx(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 Px(){return typeof globalThis!="undefined"?globalThis[Qu]:void 0}function Nx(e){typeof globalThis!="undefined"&&(globalThis[Qu]=e)}function ee(){let e=Px();if(e)return e;let t=new Qn,r=new ka,n={registerCommand(o,i,a){t.registerCommand({id:o,handler:i,metadata:a})},executeCommand(o,...i){return r.executeCommand(o,...i)},excuteCommandSync(o,...i){return r.executeCommandThowErr(o,...i)}};return Nx(n),n}var Ca,lx,Du,cx,ux,qu,dx,fx,Uu,px,kt,gx,Oa,Pa,Hu,Ju,er,Vu,Gu,Vr,Na,tt,Sa,yx,Da,bx,qa,wx,Zn,Gr,Ex,xx,Ku,zu,Wu,Ia,z,Ax,Sx,jr,Br,rt,Ra,Ix,Aa,kx,de,Qn,ka,Qu,D=T(()=>{"use strict";Ca=Object.defineProperty,lx=Object.getOwnPropertyDescriptor,Du=Object.getOwnPropertySymbols,cx=Object.prototype.hasOwnProperty,ux=Object.prototype.propertyIsEnumerable,qu=(e,t,r)=>t in e?Ca(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,dx=(e,t)=>{for(var r in t||(t={}))cx.call(t,r)&&qu(e,r,t[r]);if(Du)for(var r of Du(t))ux.call(t,r)&&qu(e,r,t[r]);return e},fx=(e,t)=>{for(var r in t)Ca(e,r,{get:t[r],enumerable:!0})},Uu=(e,t,r,n)=>{for(var o=n>1?void 0:n?lx(t,r):t,i=e.length-1,a;i>=0;i--)(a=e[i])&&(o=(n?a(t,r,o):a(o))||o);return n&&o&&Ca(t,r,o),o},px=(e,t,r)=>new Promise((n,o)=>{var i=l=>{try{s(r.next(l))}catch(c){o(c)}},a=l=>{try{s(r.throw(l))}catch(c){o(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(i,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 o=this._eventListeners[r].indexOf(n);o!==-1&&this._eventListeners[r].splice(o,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}kt=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))}})}};gx=(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))(gx||{}),Oa=class extends Error{constructor(e){if(typeof e=="string"){super(e),this.priority="P1";return}super(e.message),this.priority="P1",this.stack=e.stack,this.raw=e}},Pa=class extends Oa{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},Hu=class extends Oa{constructor(){super(...arguments),this.kind="USER_ERROR"}},Ju=class extends Hu{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},er=class extends Hu{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))}},Vu=class extends Pa{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},Gu=class extends Pa{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},Vr=class extends Oa{constructor(e,t,r,n,o){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),o&&(this.priority=o)}toJSON(){return{message:this.message,stack:this.stack,name:this.name,code:this.code,errorType:this.errorType}}},Na=class extends Pa{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};tt={log:Fr("log"),warn:Fr("warn"),info:Fr("info"),error:Fr("error"),debug:Fr("debug")};Object.assign(globalThis,{logger:tt});Sa=Symbol.for("Jolibox.canIUseMap"),yx={};globalThis[Sa]||(globalThis[Sa]=yx);Da={get config(){return globalThis[Sa]}},bx=(e=>(e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(bx||{}),qa=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(qa||{}),wx=(e=>(e[e.App=0]="App",e[e.H5=1]="H5",e[e.Weapp=2]="Weapp",e[e.Alipay=3]="Alipay",e[e.Gcash=4]="Gcash",e[e.Dana=5]="Dana",e[e.Umma=6]="Umma",e[e.WebSDK=1e3]="WebSDK",e[e.AppSDK=1001]="AppSDK",e[e.Other=9999]="Other",e))(wx||{}),Zn=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});La();Gr={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")},Ex="device_id",xx="advertising_id",Ku=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,Zn()),window.__joliboxLocalStorage__.getItem(e)),zu=()=>new URLSearchParams(window.location.search).get("deviceId")||Ku(Ex),Wu=()=>new URLSearchParams(window.location.search).get("advertisingId")||Ku(xx),Ia=class Ta{constructor(t){this.element=t,this.next=Ta.Undefined,this.prev=Ta.Undefined}};Ia.Undefined=new Ia(void 0);z=Ia,Ax=class{constructor(){this._first=z.Undefined,this._last=z.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===z.Undefined}clear(){let e=this._first;for(;e!==z.Undefined;){let t=e.next;e.prev=z.Undefined,e.next=z.Undefined,e=t}this._first=z.Undefined,this._last=z.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new z(e);if(this._first===z.Undefined)this._first=r,this._last=r;else if(t){let o=this._last;this._last=r,r.prev=o,o.next=r}else{let o=this._first;this._first=r,r.next=o,o.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==z.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==z.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==z.Undefined&&e.next!==z.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===z.Undefined&&e.next===z.Undefined?(this._first=z.Undefined,this._last=z.Undefined):e.next===z.Undefined?(this._last=this._last.prev,this._last.next=z.Undefined):e.prev===z.Undefined&&(this._first=this._first.next,this._first.prev=z.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==z.Undefined;)yield e.element,e=e.next}},Sx=0,jr=class{constructor(e){this.value=e,this.id=Sx++}},Br=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 jr&&(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,o,i,a,s,l;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};r&&(t=t.bind(r));let c=new jr(t);return this._listeners?this._listeners instanceof jr?this._listeners=[this._listeners,c]:this._listeners.push(c):((o=(n=this.options)==null?void 0:n.onWillAddFirstListener)==null||o.call(n,this),this._listeners=c,(a=(i=this.options)==null?void 0:i.onDidFirstListener)==null||a.call(i,this)),(l=(s=this.options)==null?void 0:s.onDidAddListener)==null||l.call(s,this),this._size++,()=>{var d,u,h,p;if(!this._disposed){if(this._listeners instanceof jr)this._listeners.id===c.id&&(this._listeners=void 0,this._size=0,(u=(d=this.options)==null?void 0:d.onDidRemoveLastListener)==null||u.call(d));else if(this._listeners){let m=this._listeners.indexOf(c);m>=0&&(this._listeners.splice(m,1),this._size--,this._size===0&&((p=(h=this.options)==null?void 0:h.onDidRemoveLastListener)==null||p.call(h)))}}}}),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(o){n(o)}}fire(e){this._listeners&&(this._listeners instanceof jr?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},rt=class{constructor(){this.listeners=new Map,this.listerHandlerMap=new WeakMap,this.cachedEventQueue=new Map}on(e,t,r=!0){var n;let o=(n=this.listeners.get(e))!=null?n:new Br,i=l=>t(...l.args),a=o.event(i);this.listerHandlerMap.set(t,{handler:i,dispose:a}),this.listeners.set(e,o);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 Ax,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)}},Ra={};fx(Ra,{None:()=>Ix,filter:()=>Rx,once:()=>Yu,toPromise:()=>Tx});Ix=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Aa=Symbol.for("Jolibox.hostEmitter"),kx=()=>{let e=new rt;return globalThis[Aa]||(globalThis[Aa]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Aa]},de=kx();Qn=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Br,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 o of e.metadata.args)r.push(o.constraint);let n=e.handler;e.handler=function(...o){return Cx(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}};Qn=Uu([ju],Qn);ka=class{constructor(){this._onWillExecuteCommand=new Br,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Br,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Qn,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=hx(3e4)),this._starActivation}executeCommand(e,...t){return px(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Ra.toPromise(Ra.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}}};ka=Uu([ju],ka);Qu=Symbol.for("Jolibox.commands")});function Te(e,t={}){Ua.emit("ERROR_REPORT",{error:e,options:t})}var Ua,Jt,nt=T(()=>{"use strict";D();D();Ua=new rt,Jt=new rt;Te.debounce=Jr(Te,50,{leading:!0})});var Ma,Dx,Xu,Zu,ed=T(()=>{"use strict";D();nt();Ma=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(o){return{}}},Dx=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},Xu=e=>{var t;try{let o=(t=new URL(e).searchParams.get("joliSource"))==null?void 0:t.split(".");if(o!=null&&o.length){let[i,a,s]=o;return{headerJson:Ma(i),payloadJson:Ma(a),signature:Ma(s)}}else throw"joli_source is missing"}catch(r){return Te(new Vu(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},Zu=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],o=Dx(e),i=r[2];return`${n}.${o}.${i}`}return t}});var qx,Fa,td=T(()=>{"use strict";D();qx="1.1.25",Fa=()=>qx});var Lx,rd,ja,nd,me,Ux,S,te=T(()=>{"use strict";D();ed();td();D();Lx={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:zu(),adId:Wu(),pixelRatio:window.devicePixelRatio||1,platform:Gr.isAndroid?"android":Gr.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:Fa()},schema:window.location.href,platform:Gr.isAndroid?"android":Gr.isiOS?"ios":"h5"},ja=(rd=globalThis.joliboxJSCore)==null?void 0:rd.env,me=Object.assign({},(nd=ja==null?void 0:ja())!=null?nd:Lx),Ux=()=>{var h,p,m,g,_,v,y,A,k,O,I;let{payloadJson:e,headerJson:t,signature:r}=me.schema.length?Xu(me.schema):{},n=`${me.deviceInfo.did}-${new Date().getTime()}`,i=new URL(me.schema.length?me.schema:window.location.href).searchParams,a=(m=(p=(h=i.get("mpId"))!=null?h:i.get("appId"))!=null?p:i.get("gameId"))!=null?m:"",s=(v=(_=(g=me.clientSessionId)!=null?g:e==null?void 0:e.sessionId)!=null?_:i.get("sessionId"))!=null?v:n,l=!!((A=(y=e==null?void 0:e.testAdsMode)!=null?y:e==null?void 0:e.__testAdsMode)!=null?A:i.get("testAdsMode")==="true"),c=(I=(O=(k=e==null?void 0:e.joliboxEnv)!=null?k:e==null?void 0:e.__joliboxEnv)!=null?O:i.get("joliboxEnv"))!=null?I:"production",d=c==="staging",u=t==null?void 0:t.channel;return{get testMode(){return d},get testAdsMode(){return l},get joliboxEnv(){return c},get joliSource(){var w;return(w=i.get("joliSource"))!=null?w:null},get mpId(){var w;return(w=a!=null?a:e==null?void 0:e.id)!=null?w:""},get mpVersion(){var w;return(w=t==null?void 0:t.ver)!=null?w:Fa()},get mpType(){var w,B;return(B=(w=t==null?void 0:t.__mpType)!=null?w:e==null?void 0:e.__mpType)!=null?B:"game"},get platform(){var w;return((w=me.platform)!=null?w:me.deviceInfo.platform).toLowerCase()},get deviceInfo(){return me.deviceInfo},get sdkInfo(){return me.sdkInfo},get hostInfo(){return me.hostInfo},get hostUserInfo(){return me.hostUserInfo},get sessionId(){var w,B;return(B=(w=me.clientSessionId)!=null?w:s)!=null?B:n},get channel(){return u},get webviewId(){var w;return(w=me.webviewId)!=null?w:-1},get shouldInterupt(){return e==null?void 0:e.__shouldInterupt},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 w;return(w=me.deviceInfo.adId)!=null?w:me.deviceInfo.did},onEnvConfigChanged:w=>{Bu(me,w,$u)},encodeJoliSourceQuery:w=>{var B,$e;return t&&r?Zu(R(R({},e),w),(B=i.get("joliSource"))!=null?B:""):($e=i.get("joliSource"))!=null?$e:""}}},S=Ux()});var Ba,id,Mx,Fx,od,jx,ad=T(()=>{"use strict";D();nt();te();D();Ba=!1,id=(e,t)=>e==null?!1:t in e,Mx=e=>id(e,"kind"),Fx=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},od=(e,t={},r)=>{var i,a,s;let n={user_id:(a=(i=S.hostUserInfo)==null?void 0:i.uid)!=null?a:"",device_id:(s=S.deviceInfo.did)!=null?s:"",timestamp:Date.now(),tag:Fx(e.name)},o=q(R({},n),{env:t.environment,isFromUser:r});r?Jt.emit("GLOBAL_USER_ERROR",e,o):Jt.emit("GLOBAL_ERROR",e,o)},jx=e=>id(e,"kind")&&e.kind==="USER_ERROR";Ua.on("ERROR_REPORT",({error:e,options:t})=>{if(Ba)return;Ba=!0;let r=Mx(e)&&e.raw?e.raw:e;try{let n=jx(e);od(e,t,n)}catch(n){let o=n instanceof Error?n.message:String(n),i=new Na(`${o}, origin error: ${r.message}`);tt.error(i),od(new Na(i.message),{environment:t.environment},!1)}finally{Ba=!1}})});var Ct,$a,tr=T(()=>{"use strict";nt();D();nt();Ct=(e,t)=>{var r,n;return new Vr((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},$a=e=>new Ju(e)});var sd=T(()=>{"use strict";ad();tr();D();Ie();Jt.on("GLOBAL_ERROR",(e,t)=>{var n;let r={message:e.message,stack:(n=e.stack)!=null?n:"",errorType:e.name,source:0};L("trackAsync",{event:"reportJsError",data:r})});Jt.on("GLOBAL_USER_ERROR",(e,t)=>{tt.log("UserError",e,t)})});var Ha=T(()=>{"use strict"});function ld(e,t){let r=(n,o,i)=>{let a=q(R({tag:n},t),{extra:R({},o)});n=="globalJsError"?Te(new Gu(JSON.stringify(a))):e("systemLog",a,i)};return r.debounce=Jr(r,500,{leading:!0}),r}function cd(e){let t=(r,n,o)=>{var s;let i=(s=o&&JSON.stringify(o))!=null?s:0,a={speed_value_type:r,total_duration:n};i&&Object.assign(a,{extra:i}),e("joliboxSpeedAnalysis",a)};return t.debounce=Jr(t,500,{leading:!0}),t}var ud=T(()=>{"use strict";D();D();nt()});function dd(e,t){let r=ld(e,t),n=cd(r);return{track:r,trackPerformance:n}}var fd=T(()=>{"use strict";ud()});var pd=T(()=>{"use strict";te();D();D()});var hd=T(()=>{"use strict";fd();Ha();pd()});var eo,md=T(()=>{"use strict";eo=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,o,i=!1,a=0,s=()=>{if(!i)return;let p=Date.now(),m=p-r;m>=this.interval&&(this.visible&&(a+=Math.min(m,this.interval+1e3),t(a)),r=p),n=requestAnimationFrame(s)},l=()=>{d(),r=Date.now(),o=window.setInterval(()=>{if(!i)return;let p=Date.now();p-r>=this.interval&&(r=p)},this.interval)},c=()=>{u(),r=Date.now(),n=requestAnimationFrame(s)},d=()=>{n&&(cancelAnimationFrame(n),n=0)},u=()=>{o&&(clearInterval(o),o=0)};this.eventEmitter.on("visible",p=>{i&&(console.log("visible",p),p?c():l())});let h=this.visible;return{start(){i||(i=!0,h?c():l())},stop(){i=!1,d(),u()}}}}});var Ja=T(()=>{"use strict"});function gd(e,t,r){let{response:n,startTime:o,endTime:i,requestFrom:a}=r,{errMsg:s="",profile:l={}}=n,d={duration:i-o,request_type:e,url:t.split("?")[0],result:r.state,error_msg:r.state==="fail"?s:"",socket_reused:l.socketReused?1:0,request_from:a};(a==="public"&&vd<$x||a==="inner")&&(d.joli_request_number=vd++,setTimeout(()=>{Le("joliboxNetRequestResult",d)},500))}var vd,$x,_d=T(()=>{"use strict";Ja();Ot();vd=0,$x=10});function to(e,t,r){var l,c,d;let n=new Map,o=(l=r==null?void 0:r.baseUrl)!=null?l:"https://api.jolibox.com",i=(c=r==null?void 0:r.type)!=null?c:"public",a=(d=r==null?void 0:r.defaultHeaders)!=null?d:{};return Ve("onRequestTaskStateChange",u=>{if(typeof u.requestTaskId!="string")return;let h=n.get(u.requestTaskId);if(h)if(u.state==="success"){let p=u,{requestTaskId:g,state:_}=p,v=et(p,["requestTaskId","state"]);u.statusCode===200?h.resolve(v):h.reject(v),n.delete(g)}else if(u.state==="fail"){let m=u,{requestTaskId:g,state:_}=m,v=et(m,["requestTaskId","state"]);h.reject(v),n.delete(g)}else tt.warn("onRequestTaskStateChange unknown event",u)}),de.on("onLoginComplete",({isLogin:u,token:h})=>{u&&h&&(a["X-JOLI-TOKEN"]=h)}),(p,...m)=>x(this,[p,...m],function*(u,h={}){let g=Date.now(),_=Hx(u,q(R({},h),{baseUrl:o})),{method:v="GET",responseType:y="text",dataType:A="json",timeout:k,enableCache:O=!1,appendHostCookie:I=!0}=h,w=Object.assign({"content-type":"application/json"},a,h.header),B={url:_,method:v,header:w,enableCache:O,responseType:y,appendHostCookie:I};if(v=="POST"||v=="PUT"){let Ze=Vx(h.data,w["content-type"]);B.data=Ze}k&&Object.assign(B,{timeout:k});let{data:{requestTaskId:$e}}=L(e,B);if(typeof $e!="string")throw Ct({code:-1,msg:"requestTaskId is not a string"});let Zt=(Ze,dt)=>{gd("request",_,{state:Ze,startTime:g,endTime:Date.now(),params:B,response:dt,requestId:$e,requestFrom:i=="public"?"public":"inner"})},{resolve:He,reject:$t,promise:eE}=new kt;n.set($e,{resolve:He,reject:$t});try{let Ze=yield eE;Zt("success",Ze);let{data:dt}=Ze;return A==="json"&&typeof dt=="string"&&(dt=Jx(dt)),{url:_,timeout:k,method:v,response:q(R({},Ze),{data:dt})}}catch(Ze){let dt=Ze;if(Ht(dt)){let{errMsg:Hn,prefetchDetail:tE,isPrefetch:rE,errNo:nE}=dt;$r(Hn)&&(Zt("fail",{errMsg:Hn,isPrefetch:rE,prefetchDetail:tE}),Te(Ct({code:-1,msg:Hn},{errNo:nE,errMsg:Hn})))}throw Ze}})}function Jx(e){try{return JSON.parse(e.trim())}catch(t){return e}}function Vx(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 Hx,Va=T(()=>{"use strict";D();_d();Ja();Ie();nt();tr();Hx=(e,t)=>{if(/^https?:\/\//.test(e))return e;let r=t==null?void 0:t.query,o=new URLSearchParams(r).toString();return t!=null&&t.baseUrl?`${t.baseUrl}${e}${o?`?${o}`:""}`:`${e}${o?`?${o}`:""}`}});var Ga,yd,ve,Vt=T(()=>{"use strict";Va();te();Ga={};(yd=S.hostUserInfo)!=null&&yd.token&&(Ga["x-joli-token"]=S.hostUserInfo.token);S.joliSource&&(Ga["x-joli-source"]=S.joliSource);ve=to("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:S.testMode?"https://stg-api.jolibox.com":"https://api.jolibox.com",defaultHeaders:Ga})});var ro,bd=T(()=>{"use strict";te();md();Vt();Ie();ro=class extends eo{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 x(this,null,function*(){let{event:r,params:n}=t,o={eventType:r,gameInfo:R({gameId:this.gameId,sessionId:this.sessionId},n)};yield S.platform==="android"?ve("/api/base/app-event",{method:"POST",data:o}):Ee("trackAppEventAsync",{url:this.taskUrl,body:JSON.stringify(o)})})}reportToNative(t){return x(this,null,function*(){let{event:r,params:n}=t;yield Ee("userTrackAsync",{event:r,params:R({},n),gameId:this.gameId})})}tracker(t,r=null){this.track(t,r)}}});var Sd={};fu(Sd,{nativeTaskEmitter:()=>Kr,taskTracker:()=>Oe,track:()=>Le,trackPerformance:()=>xd});var Gx,wd,Ed,Le,xd,Ad,Kr,Oe,Ot=T(()=>{"use strict";sd();D();Ha();hd();te();bd();Ie();Gx=(e,t,r)=>{var a,s,l,c,d;let n=t,o=Ht(n.extra)?n.extra:$r(n.extra)?JSON.parse(n.extra):{},i=q(R({},o),{mp_id:(a=n.mp_id)!=null?a:"",mp_version:(s=n.mp_version)!=null?s:"",session_id:S.sessionId,user_id:(c=(l=S.hostUserInfo)==null?void 0:l.uid)!=null?c:""});L("trackAsync",{event:(d=t.tag)!=null?d:e,data:i,webviewId:r})},{track:Le,trackPerformance:xd}=dd(Gx,{type:qa.AppSDK,platform:"native",jssdk_version:(Ed=(wd=S.sdkInfo)==null?void 0:wd.jssdkVersion)!=null?Ed:"1.0.0",mp_id:S.mpId,mp_version:S.mpVersion}),Ad=ee();Ad.registerCommand("ReportSDK.traceSystemTimeline",({event:e,duration:t,extra:r})=>{xd(e,t,r)});Ad.registerCommand("ReportSDK.traceSystem",({event:e,info:t})=>{Le(e,t)});Kr=new rt,Oe=new ro(Le,Kr)});function Id(){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 a=`
1
+ var hI=Object.create;var Yi=Object.defineProperty,mI=Object.defineProperties,vI=Object.getOwnPropertyDescriptor,gI=Object.getOwnPropertyDescriptors,yI=Object.getOwnPropertyNames,Wi=Object.getOwnPropertySymbols,_I=Object.getPrototypeOf,Ds=Object.prototype.hasOwnProperty,mf=Object.prototype.propertyIsEnumerable;var hf=(e,t,r)=>t in e?Yi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,T=(e,t)=>{for(var r in t||(t={}))Ds.call(t,r)&&hf(e,r,t[r]);if(Wi)for(var r of Wi(t))mf.call(t,r)&&hf(e,r,t[r]);return e},q=(e,t)=>mI(e,gI(t));var pt=(e,t)=>{var r={};for(var n in e)Ds.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Wi)for(var n of Wi(e))t.indexOf(n)<0&&mf.call(e,n)&&(r[n]=e[n]);return r};var I=(e,t)=>()=>(e&&(t=e(e=0)),t);var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),vf=(e,t)=>{for(var r in t)Yi(e,r,{get:t[r],enumerable:!0})},bI=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of yI(t))!Ds.call(e,i)&&i!==r&&Yi(e,i,{get:()=>t[i],enumerable:!(n=vI(t,i))||n.enumerable});return e};var ae=(e,t,r)=>(r=e!=null?hI(_I(e)):{},bI(t||!e||!e.__esModule?Yi(r,"default",{value:e,enumerable:!0}):r,e));var x=(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 II(e){return!!(e!=null&&e.__nativeBuffers__)}function Bs(e){if(typeof e=="string")try{e=JSON.parse(e)}catch(r){return{}}if(typeof e!="object"||e===null)return{};if(!II(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=kI(n.base64)),typeof i!="undefined"&&i instanceof ArrayBuffer&&(e[n.key]=i)}}return e}function RI(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:TI(o),key:i};n.push(a),delete r[i]}return n.length>0&&(r.__nativeBuffers__=n),r}function NI(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Tf(e){return typeof e=="string"}function An(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function qI(e){return typeof e=="undefined"}function LI(e){return qI(e)||e===null}function Rf(e){return typeof e=="function"}function UI(e){return An(e)&&Rf(e.then)}function Cf(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function En(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function GI(){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 XI(e){return new Promise(t=>Of(e)(t))}function Of(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function ZI(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new In(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function t1(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)r1(e[n],t[n])}function r1(e,t){if(Tf(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(Rf(t)){try{if(e instanceof t)return}catch(r){}if(!LI(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 bf(e,t){return`[${e}]:${t}`}function l1(e,t){wf||(Us=new Xi({eventName:"jolibox_invoke",tagNameOrder:["status","method","errNo","errMsg","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),js=new Xi({eventName:"jolibox_invoke_js2native",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),Ms=new Xi({eventName:"jolibox_invoke_native2js",tagNameOrder:["status","method","isForeground"],metricName:"duration",reporter(i){e.invoke("trackAsync",JSON.stringify({event:"reportMetrics",data:i}),-1)}}),t("onJoliboxEnterBackground",()=>{Us.flush(),js.flush(),Ms.flush()}),wf=!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,_=(a=(o=u.match(/\S:(\S+)\s?/))==null?void 0:o[1])!=null?a:"fail";Us.report({status:_,method:n(s,l),errNo:`${p}`,errMsg:u,isForeground:d,duration:Date.now()-c}),c&&m&&g&&(js.report({status:_,method:s,isForeground:d,duration:Number((m-c).toFixed(3))}),Ms.report({status:_,method:s,isForeground:d,duration:Number((Date.now()-g).toFixed(3))}))}function n(i,o){return(i==="callHostMethod"||i==="callHostMethodSync")&&o!=null&&o.method?`${i}-${o.method}`:i}return r}function f1(e,t){let r=0,n=!0,i=d1.resolveMap,o=l1(e,t);t("onJoliboxEnterBackground",()=>{n=!1}),t("onJoliboxEnterForeground",()=>{n=!0,Fs.forEach(l=>eo(this,[l],function*({method:c,args:d,resolve:u}){let p=yield s(c,d);u(p)})),Fs.length=0});let a=(l,c)=>{let d=i.get(Number(l));if(!d)return;let u=Bs(c);d(u),i.delete(Number(l))},s=(l,c)=>{var d,u;let p=Date.now(),f=`${n}`;r+=1;let m=new DI;if(i.set(r,m.resolve),!n&&o1.includes(l))return new Promise(k=>{Fs.push({method:l,args:c,resolve:k})});let g=AI(Yt({},{method:l,startTime:p,args:c,isForeground:f}),{invokeType:"js-bridge"}),_=!c1&&i1.includes(l),v=RI(c,_),b=_?v:JSON.stringify(v),E;if(l.endsWith("Sync")||a1.includes(l)?E=(d=e.call)==null?void 0:d.call(e,l,v,r):typeof b=="string"?E=e.invoke(l,b,r):E=(u=e.call)==null?void 0:u.call(e,l,b,r),E){try{typeof E=="string"&&(E=JSON.parse(E)),E=Bs(E)}catch(k){Ks.error(k)}return i.delete(r),E.errorCode&&(E.errorCode=bf(l,E.errorCode)),o(Yt(Yt({},g),E)),E}return l.endsWith("Sync")&&i.delete(r),m.promise.then(k=>(k.errorCode&&(k.errorCode=bf(l,k.errorCode)),o(Yt(Yt({},g),k)),k))};return{invokeNative:s,applyNative:(l,c)=>{let d=s(l,c);return UI(d)?d.then(u=>Ef(l,u)):Ef(l,d)},invokeHandler:a}}function Ef(e,t){if(!An(t)){Ks.warn(`[Jolibox SDK]${e} no response value`);return}let r=t,{errMsg:n,errNo:i,errorType:o,errorCode:a}=r,s=SI(r,["errMsg","errNo","errorType","errorCode"]);if(n&&n!==`${e}:ok`)throw new BI(n,i,o,a);return s}function p1(e){if(globalThis[Qi])return globalThis[Qi];let t=new Hs,r=new Hs,n=new Xi({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[Qi]={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=Bs(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===Pf){l.forEach(c=>{let[d,u]=c;try{r.emit(d.slice(Sn.length),u,a)}catch(p){}});return}if(i.startsWith(Sn)){r.emit(i.slice(Sn.length),l,a);return}t.emit(i,l,a)}},globalThis[Qi]}function h1(e){let t=new Map,r;return(n,i,o,a)=>{if(a){let l=o?[o]:"*";e.publish(`${Sn}${n}`,i,l);return}r||(r=Promise.resolve().then(()=>{t.forEach((l,c)=>{try{let d=c?[c]:"*";e.publish(Pf,l,d)}catch(d){}}),r=void 0,t.clear()}));let s=t.get(o);s||(s=[],t.set(o,s)),s.push([`${Sn}${n}`,i])}}function m1(e){let{subscribeHandler:t,onNative:r,offNative:n,subscribe:i,unsubscribe:o}=p1(e),{invokeNative:a,invokeHandler:s,applyNative:l}=f1(e,r),c=h1(e);return{invokeHandler:s,subscribeHandler:t,applyNative:l,invokeNative:a,onNative:r,offNative:n,publish:c,subscribe:i,unsubscribe:o}}function Nf(e,t){return{params:e,__extra:{startTime:Date.now(),type:t}}}var wI,EI,xI,Zi,Af,Sf,gf,Yt,AI,SI,eo,kI,TI,If,CI,OI,kf,PI,DI,jI,MI,to,FI,BI,$I,qs,Ks,yf,JI,HI,VI,zI,KI,s4,$s,Z,WI,YI,xn,In,Hs,Vs,QI,Ls,e1,l4,zs,_f,c4,n1,Sn,i1,o1,a1,Pf,s1,Xi,wf,Us,js,Ms,Fs,c1,Gs,u1,d1,Qi,Ws,rt,Df,qf,v1,Lf,xf,Pe,L,nt,u4,g1,Uf,d4,f4,Me=I(()=>{"use strict";wI=Object.defineProperty,EI=Object.defineProperties,xI=Object.getOwnPropertyDescriptors,Zi=Object.getOwnPropertySymbols,Af=Object.prototype.hasOwnProperty,Sf=Object.prototype.propertyIsEnumerable,gf=(e,t,r)=>t in e?wI(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Yt=(e,t)=>{for(var r in t||(t={}))Af.call(t,r)&&gf(e,r,t[r]);if(Zi)for(var r of Zi(t))Sf.call(t,r)&&gf(e,r,t[r]);return e},AI=(e,t)=>EI(e,xI(t)),SI=(e,t)=>{var r={};for(var n in e)Af.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Zi)for(var n of Zi(e))t.indexOf(n)<0&&Sf.call(e,n)&&(r[n]=e[n]);return r},eo=(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())});kI=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};TI=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)};If=Object.defineProperty,CI=Object.getOwnPropertyDescriptor,OI=(e,t)=>{for(var r in t)If(e,r,{get:t[r],enumerable:!0})},kf=(e,t,r,n)=>{for(var i=n>1?void 0:n?CI(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&&If(t,r,i),i},PI=(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}DI=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))}})}};jI=(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))(jI||{}),MI=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}},to=class extends MI{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},FI=class extends to{constructor(){super(...arguments),this.name="INTERNAL_INVOKE_NATIVE_ERROR"}},BI=class extends to{constructor(e,t,r,n){super(e),this.errNo=t,this.name="INTERNAL_APPLY_NATIVE_ERROR",this.errorType=r,this.errorCode=n}},$I=class extends to{constructor(){super(...arguments),this.name="INTERNAL_JSCORE_ERROR",this.priority="P0"}},qs=class extends to{constructor(){super(...arguments),this.name="INTERNAL_METRIC_REPORT_ERROR"}};Ks={log:En("log"),warn:En("warn"),info:En("info"),error:En("error"),debug:En("debug")};Object.assign(globalThis,{logger:Ks});yf=Symbol.for("Jolibox.canIUseMap"),JI={};globalThis[yf]||(globalThis[yf]=JI);HI=(e=>(e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(HI||{}),VI=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(VI||{}),zI=(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))(zI||{});GI();KI=()=>!!(navigator.userAgent||"").includes("JoliboxPlatformSDK"),s4={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")},$s=class Js{constructor(t){this.element=t,this.next=Js.Undefined,this.prev=Js.Undefined}};$s.Undefined=new $s(void 0);Z=$s,WI=class{constructor(){this._first=Z.Undefined,this._last=Z.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Z.Undefined}clear(){let e=this._first;for(;e!==Z.Undefined;){let t=e.next;e.prev=Z.Undefined,e.next=Z.Undefined,e=t}this._first=Z.Undefined,this._last=Z.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new Z(e);if(this._first===Z.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!==Z.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Z.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Z.Undefined&&e.next!==Z.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Z.Undefined&&e.next===Z.Undefined?(this._first=Z.Undefined,this._last=Z.Undefined):e.next===Z.Undefined?(this._last=this._last.prev,this._last.next=Z.Undefined):e.prev===Z.Undefined&&(this._first=this._first.next,this._first.prev=Z.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Z.Undefined;)yield e.element,e=e.next}},YI=0,xn=class{constructor(e){this.value=e,this.id=YI++}},In=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 xn&&(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 xn(t);return this._listeners?this._listeners instanceof xn?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 xn)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 xn?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Hs=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 In,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 WI,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)}},Vs={};OI(Vs,{None:()=>QI,filter:()=>ZI,once:()=>Of,toPromise:()=>XI});QI=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Ls=Symbol.for("Jolibox.hostEmitter"),e1=()=>{let e=new Hs;return globalThis[Ls]||(globalThis[Ls]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Ls]},l4=e1();zs=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new In,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 t1(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}};zs=kf([Cf],zs);_f=class{constructor(){this._onWillExecuteCommand=new In,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new In,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new zs,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=NI(3e4)),this._starActivation}executeCommand(e,...t){return PI(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),Vs.toPromise(Vs.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}}};_f=kf([Cf],_f);c4=Symbol.for("Jolibox.commands");n1=()=>KI(),Sn="custom_event_",i1=[],o1=[],a1=["env","createRequestTask","login"],Pf="__batch_event__",s1=e=>e==="pv"?e:"default",Xi=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=s1(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&&An(a))throw new qs(`report value failed to match tagNameOrder, ${JSON.stringify(r)}`);if(s){let l=[];if(An(a))l.push(...Object.keys(a));else if(Tf(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=An(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={}}},wf=!1;Fs=[],c1=!1,Gs=Symbol.for("Jolibox.invokeResolverInstance"),u1=new Map;globalThis[Gs]||(globalThis[Gs]=u1);d1={get resolveMap(){return globalThis[Gs]}};Qi=Symbol.for("Jolibox.subscribeInstance");rt={trigger(){},exit(){return Promise.resolve(!1)},backPress(){return Promise.resolve(!1)},onReady(e){rt.trigger=e},onDoExit(e){rt.exit=e},onDoBackPress(e){rt.backPress=e}},Df=e=>{let t=window.prompt("invoke",JSON.stringify({event:"envSync",paramsString:JSON.stringify({})}));if(!t)e.onError(new FI("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="")=>{rt.trigger(),e.onDocumentReady.postMessage({path:i})},r=i=>eo(void 0,null,function*(){let o=yield rt.exit();e.doExit.postMessage({uuid:i,shouldInterrupt:o})});Ws={onDocumentReady:t,doExit:r,invoke(i,o,a){e.invoke.postMessage({event:i,paramsString:o,callbackId:a})},publish(i,o,a){let s=Nf(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:Df,doExit:r};globalThis.joliboxJSCore=Yt({},n)}if(window.JoliAndroidSDKBridge){let e,t=window.JoliAndroidSDKBridge,r=(o="")=>{rt.trigger(),t.onDocumentReady(JSON.stringify({path:o}))},n=o=>eo(void 0,null,function*(){let a=yield rt.exit();t.doExit(JSON.stringify({uuid:o,shouldInterrupt:a}))});Ws={onDocumentReady:r,invoke(o,a,s){t.invoke(JSON.stringify({event:o,paramsString:a,callbackId:s}))},doExit:n,publish(o,a,s){let l=Nf(a,"joliboxJSCore");t.publish({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 eo(this,null,function*(){let a=yield rt.backPress();t.doBackPress(JSON.stringify({uuid:o,shouldInterrupt:a}))})}};let i={onDocumentReady:r,env:Df,doExit:n};globalThis.joliboxJSCore=Yt({},i)}qf=Ws;if(!qf&&n1())throw new $I("No joliboxJScore is found, native bridge not found.");v1=Yt({},qf),Lf=m1(v1),{invokeHandler:xf}=Lf,{applyNative:Pe,invokeNative:L,onNative:nt,offNative:u4,subscribeHandler:g1,publish:Uf,subscribe:d4,unsubscribe:f4}=Lf;globalThis.joliboxJSBridge={callHandler:xf,invokeHandler:xf,subscribeHandler:g1}});function A1(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Cn(e){return typeof e=="string"}function mr(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)&&!(e instanceof RegExp)&&!(e instanceof Date)}function $f(e){return typeof e=="object"&&Array.isArray(e)}function On(e){return e===!0||e===!1}function Jf(e){return typeof e=="undefined"}function S1(e){return Jf(e)||e===null}function I1(e){return typeof e=="function"}function Hf(e){let t=e,r=null,n=function(...i){return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function Vf(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:Ff(l)&&Ff(s)?i[a]=n(w1({},s),l):Array.isArray(l)&&Array.isArray(s)?i[a]=[...s,...l]:i[a]=l}return i}return n(e,t)}function Ff(e){return e&&typeof e=="object"&&e.constructor===Object}function zf(e,t){if(Array.isArray(e))return e.concat(t)}function Pn(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 T1(e,t){return(...r)=>t(e,...r)}function io(e){return t=>T1(t,function(r,...n){if(typeof r=="function")try{return r.apply(this,n)}catch(i){e(new Nr(`${i}`))}})}function kn(e){return(...t)=>{var r,n;((n=(r=globalThis.VConsole)==null?void 0:r[e])!=null?n:globalThis.console[e])(...t)}}function ll(){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 U1(e){return new Promise(t=>tp(e)(t))}function tp(e){return(t,r=null)=>{let n=!1;return e(i=>{if(!n)return n=!0,t.call(r,i)},null)}}function j1(e,t){return(r=>{let n,i={onWillAddFirstListener(){n=r(o.fire,o)}},o=new Rn(i);return o.event})((r,n=null)=>e(i=>t(i)&&r.call(n,i),null))}function F1(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)B1(e[n],t[n])}function B1(e,t){if(Cn(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(I1(t)){try{if(e instanceof t)return}catch(r){}if(!S1(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 $1(){return typeof globalThis!="undefined"?globalThis[rp]:void 0}function J1(e){typeof globalThis!="undefined"&&(globalThis[rp]=e)}function pe(){let e=$1();if(e)return e;let t=new ro,r=new tl,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 J1(n),n}var rl,y1,jf,_1,b1,Mf,w1,E1,Bf,x1,Qt,k1,nl,no,il,Gf,Nr,Kf,Wf,Yf,Qf,Nn,ol,ht,Qs,R1,al,C1,sl,O1,oo,Dn,P1,N1,Xf,Zf,ep,Xs,ee,D1,q1,Tn,Rn,mt,el,L1,Ys,M1,be,ro,tl,rp,N=I(()=>{"use strict";rl=Object.defineProperty,y1=Object.getOwnPropertyDescriptor,jf=Object.getOwnPropertySymbols,_1=Object.prototype.hasOwnProperty,b1=Object.prototype.propertyIsEnumerable,Mf=(e,t,r)=>t in e?rl(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,w1=(e,t)=>{for(var r in t||(t={}))_1.call(t,r)&&Mf(e,r,t[r]);if(jf)for(var r of jf(t))b1.call(t,r)&&Mf(e,r,t[r]);return e},E1=(e,t)=>{for(var r in t)rl(e,r,{get:t[r],enumerable:!0})},Bf=(e,t,r,n)=>{for(var i=n>1?void 0:n?y1(t,r):t,o=e.length-1,a;o>=0;o--)(a=e[o])&&(i=(n?a(t,r,i):a(i))||i);return n&&i&&rl(t,r,i),i},x1=(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}Qt=class{constructor(){this.state="pending",this.promise=new Promise((e,t)=>{this.resolve=r=>{this.state==="pending"&&(this.state="fulfilled",e(r))},this.reject=r=>{this.state==="pending"&&(this.state="rejected",t(r))}})}};k1=(e=>(e[e.DEVELOPER_FILE_NOT_FOUND=0]="DEVELOPER_FILE_NOT_FOUND",e[e.INTERNAL_IOS_CAN_NOT_FOUND_PKG=1]="INTERNAL_IOS_CAN_NOT_FOUND_PKG",e[e.USER_IOS_LOAD_TIMEOUT=2]="USER_IOS_LOAD_TIMEOUT",e[e.INTERNAL_IOS_PKG_LOAD_ERROR=3]="INTERNAL_IOS_PKG_LOAD_ERROR",e[e.INTERNAL_IOS_PKG_PARSE_FAIL=4]="INTERNAL_IOS_PKG_PARSE_FAIL",e[e.USER_IOS_GET_EMPTY_DATA=5]="USER_IOS_GET_EMPTY_DATA",e[e.USER_ANDROID_GET_PKG_FAIL=6]="USER_ANDROID_GET_PKG_FAIL",e[e.DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE=7]="DEVELOPER_ANDROID_PACKAGE_FILE_UNEXPECTED_REQUIRE",e))(k1||{}),nl=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}},no=class extends nl{constructor(){super(...arguments),this.kind="INTERNAL_ERROR"}},il=class extends nl{constructor(){super(...arguments),this.kind="USER_ERROR"}},Gf=class extends il{constructor(){super(...arguments),this.name="USER_VALIDATE_ERROR"}},Nr=class extends il{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))}},Kf=class extends il{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))}},Wf=class extends no{constructor(){super(...arguments),this.name="INTERNAL_SCHEMA_PARSE_ERROR",this.priority="P0"}},Yf=class extends no{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))}},Qf=class extends no{constructor(){super(...arguments),this.name="INTERNAL_GLOBAL_JS_ERROR",this.priority="P1"}},Nn=class extends nl{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}}},ol=class extends no{constructor(){super(...arguments),this.name="INTERNAL_REPORTER_ERROR"}};ht={log:kn("log"),warn:kn("warn"),info:kn("info"),error:kn("error"),debug:kn("debug")};Object.assign(globalThis,{logger:ht});Qs=Symbol.for("Jolibox.canIUseMap"),R1={};globalThis[Qs]||(globalThis[Qs]=R1);al={get config(){return globalThis[Qs]}},C1=(e=>(e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(C1||{}),sl=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(sl||{}),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||{}),oo=()=>"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e==="x"?t:t&3|8).toString(16)});ll();Dn={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")},P1="device_id",N1="advertising_id",Xf=e=>(window.__joliboxLocalStorage__.getItem(e)||window.__joliboxLocalStorage__.setItem(e,oo()),window.__joliboxLocalStorage__.getItem(e)),Zf=()=>new URLSearchParams(window.location.search).get("deviceId")||Xf(P1),ep=()=>new URLSearchParams(window.location.search).get("advertisingId")||Xf(N1),Xs=class Zs{constructor(t){this.element=t,this.next=Zs.Undefined,this.prev=Zs.Undefined}};Xs.Undefined=new Xs(void 0);ee=Xs,D1=class{constructor(){this._first=ee.Undefined,this._last=ee.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ee.Undefined}clear(){let e=this._first;for(;e!==ee.Undefined;){let t=e.next;e.prev=ee.Undefined,e.next=ee.Undefined,e=t}this._first=ee.Undefined,this._last=ee.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new ee(e);if(this._first===ee.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!==ee.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ee.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ee.Undefined&&e.next!==ee.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ee.Undefined&&e.next===ee.Undefined?(this._first=ee.Undefined,this._last=ee.Undefined):e.next===ee.Undefined?(this._last=this._last.prev,this._last.next=ee.Undefined):e.prev===ee.Undefined&&(this._first=this._first.next,this._first.prev=ee.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ee.Undefined;)yield e.element,e=e.next}},q1=0,Tn=class{constructor(e){this.value=e,this.id=q1++}},Rn=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 Tn&&(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 Tn(t);return this._listeners?this._listeners instanceof Tn?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 Tn)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 Tn?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},mt=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 Rn,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 D1,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)}},el={};E1(el,{None:()=>L1,filter:()=>j1,once:()=>tp,toPromise:()=>U1});L1=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Ys=Symbol.for("Jolibox.hostEmitter"),M1=()=>{let e=new mt;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]},be=M1();ro=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Rn,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 F1(i,r),n(...i)}}let{id:t}=e;this._commands.get(t)&&console.info(`[Jolibox SDK] duplicated command is registered ${t}`),this._commands.set(t,e),this._onDidRegisterCommand.fire(t)}getCommand(e){return this._commands.get(e)}getCommands(){let e=new Map;for(let t of this._commands.keys()){let r=this.getCommand(t);r&&e.set(t,r)}return e}};ro=Bf([Hf],ro);tl=class{constructor(){this._onWillExecuteCommand=new Rn,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Rn,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new ro,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=A1(3e4)),this._starActivation}executeCommand(e,...t){return x1(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,t):(yield Promise.all([Promise.race([this._activateStar(),el.toPromise(el.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}}};tl=Bf([Hf],tl);rp=Symbol.for("Jolibox.commands")});function Ae(e,t={}){cl.emit("ERROR_REPORT",{error:e,options:t})}var cl,vr,lt=I(()=>{"use strict";N();N();cl=new mt,vr=new mt;Ae.debounce=Pn(Ae,50,{leading:!0})});var ul,H1,np,ip,op=I(()=>{"use strict";N();lt();ul=e=>{let t=e.replace(/-/g,"+").replace(/_/g,"/"),r=t.length%4===0?"":"=".repeat(4-t.length%4),n=atob(t+r);try{return JSON.parse(n)}catch(i){return{}}},H1=e=>{let t=JSON.stringify(e);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")},np=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:ul(o),payloadJson:ul(a),signature:ul(s)}}else throw"joli_source is missing"}catch(r){return Ae(new Wf(`${e} not a valid schema: ${r}`)),{headerJson:{},payloadJson:{},signature:{}}}},ip=(e,t)=>{let r=t.split(".");if(r&&r.length===3){let n=r[0],i=H1(e),o=r[2];return`${n}.${i}.${o}`}return t}});var V1,dl,ap=I(()=>{"use strict";N();V1="1.1.27",dl=()=>V1});var z1,sp,fl,lp,xe,G1,S,se=I(()=>{"use strict";N();op();ap();N();z1={deviceInfo:{brand:"UnknownBrand",model:"UnknownModel",did:Zf(),adId:ep(),pixelRatio:window.devicePixelRatio||1,platform:Dn.isAndroid?"android":Dn.isiOS?"ios":"h5",system:"UnknownSystemVersion",lang:"zh"},sdkInfo:{nativeSDKVersion:"",jssdkVersion:dl()},schema:window.location.href,platform:Dn.isAndroid?"android":Dn.isiOS?"ios":"h5"},fl=(sp=globalThis.joliboxJSCore)==null?void 0:sp.env,xe=Object.assign({},(lp=fl==null?void 0:fl())!=null?lp:z1),G1=()=>{var p,f,m,g,_,v,b,E,k,O,R;let{payloadJson:e,headerJson:t,signature:r}=xe.schema.length?np(xe.schema):{},n=`${xe.deviceInfo.did}-${new Date().getTime()}`,o=new URL(xe.schema.length?xe.schema:window.location.href).searchParams,a=(m=(f=(p=o.get("mpId"))!=null?p:o.get("appId"))!=null?f:o.get("gameId"))!=null?m:"",s=(v=(_=(g=xe.clientSessionId)!=null?g:e==null?void 0:e.sessionId)!=null?_:o.get("sessionId"))!=null?v:n,l=!!((E=(b=e==null?void 0:e.testAdsMode)!=null?b:e==null?void 0:e.__testAdsMode)!=null?E:o.get("testAdsMode")==="true"),c=(R=(O=(k=e==null?void 0:e.joliboxEnv)!=null?k:e==null?void 0:e.__joliboxEnv)!=null?O:o.get("joliboxEnv"))!=null?R:"production",d=c==="staging",u=t==null?void 0:t.channel;return{get testMode(){return d},get testAdsMode(){return l},get joliboxEnv(){return c},get joliSource(){var y;return(y=o.get("joliSource"))!=null?y:null},get mpId(){var y;return(y=a!=null?a:e==null?void 0:e.id)!=null?y:""},get mpVersion(){var y;return(y=t==null?void 0:t.ver)!=null?y:dl()},get mpType(){var y,J;return(J=(y=t==null?void 0:t.__mpType)!=null?y:e==null?void 0:e.__mpType)!=null?J:"game"},get platform(){var y;return((y=xe.platform)!=null?y:xe.deviceInfo.platform).toLowerCase()},get deviceInfo(){return xe.deviceInfo},get sdkInfo(){return xe.sdkInfo},get hostInfo(){return xe.hostInfo},get hostUserInfo(){return xe.hostUserInfo},get sessionId(){var y,J;return(J=(y=xe.clientSessionId)!=null?y:s)!=null?J:n},get channel(){return u},get webviewId(){var y;return(y=xe.webviewId)!=null?y:-1},get shouldInterupt(){return e==null?void 0:e.__shouldInterupt},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 y;return(y=xe.deviceInfo.adId)!=null?y:xe.deviceInfo.did},get language(){return xe.deviceInfo.lang},onEnvConfigChanged:y=>{Vf(xe,y,zf)},encodeJoliSourceQuery:y=>{var J,et;return t&&r?ip(T(T({},e),y),(J=o.get("joliSource"))!=null?J:""):(et=o.get("joliSource"))!=null?et:""}}},S=G1()});var pl,up,K1,W1,cp,Y1,dp=I(()=>{"use strict";N();lt();se();N();pl=!1,up=(e,t)=>e==null?!1:t in e,K1=e=>up(e,"kind"),W1=e=>{let t=e.toLowerCase().split("_");return t[0]+t.slice(1).map(r=>r.charAt(0).toUpperCase()+r.slice(1)).join("")},cp=(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:W1(e.name)},i=q(T({},n),{env:t.environment,isFromUser:r});r?vr.emit("GLOBAL_USER_ERROR",e,i):vr.emit("GLOBAL_ERROR",e,i)},Y1=e=>up(e,"kind")&&e.kind==="USER_ERROR";cl.on("ERROR_REPORT",({error:e,options:t})=>{if(pl)return;pl=!0;let r=K1(e)&&e.raw?e.raw:e;try{let n=Y1(e);cp(e,t,n)}catch(n){let i=n instanceof Error?n.message:String(n),o=new ol(`${i}, origin error: ${r.message}`);ht.error(o),cp(new ol(o.message),{environment:t.environment},!1)}finally{pl=!1}})});var Xt,hl,Dr=I(()=>{"use strict";lt();N();lt();Xt=(e,t)=>{var r,n;return new Nn((n=(r=t==null?void 0:t.errMsg)!=null?r:e.msg)!=null?n:"",e.code,e.type)},hl=e=>new Gf(e)});var fp=I(()=>{"use strict";dp();Dr();N();Me();vr.on("GLOBAL_ERROR",(e,t)=>{var n;let r={message:e.message,stack:(n=e.stack)!=null?n:"",errorType:e.name,source:0};L("trackAsync",{event:"reportJsError",data:r})});vr.on("GLOBAL_USER_ERROR",(e,t)=>{ht.log("UserError",e,t)})});var ml=I(()=>{"use strict"});function pp(e,t){let r=(n,i,o)=>{let a=q(T({tag:n},t),{extra:T({},i)});n=="globalJsError"?Ae(new Qf(JSON.stringify(a))):e("systemLog",a,o)};return r.debounce=Pn(r,500,{leading:!0}),r}function hp(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=Pn(t,500,{leading:!0}),t}var mp=I(()=>{"use strict";N();N();lt()});function vp(e,t){let r=pp(e,t),n=hp(r);return{track:r,trackPerformance:n}}var gp=I(()=>{"use strict";mp()});var yp=I(()=>{"use strict";se();N();N()});var _p=I(()=>{"use strict";gp();ml();yp()});var ao,bp=I(()=>{"use strict";ao=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()}}}}});var vl=I(()=>{"use strict"});function Ep(e,t,r){let{response:n,startTime:i,endTime:o,requestFrom:a}=r,{errMsg:s="",profile:l={}}=n,d={duration:o-i,request_type:e,url:t.split("?")[0],result:r.state,error_msg:r.state==="fail"?s:"",socket_reused:l.socketReused?1:0,request_from:a};(a==="public"&&wp<X1||a==="inner")&&(d.joli_request_number=wp++,setTimeout(()=>{Ge("joliboxNetRequestResult",d)},500))}var wp,X1,xp=I(()=>{"use strict";vl();Zt();wp=0,X1=10});function so(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 nt("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:_}=f,v=pt(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:_}=m,v=pt(m,["requestTaskId","state"]);p.reject(v),n.delete(g)}else ht.warn("onRequestTaskStateChange unknown event",u)}),be.on("onLoginComplete",({isLogin:u,token:p})=>{u&&p&&(a["X-JOLI-TOKEN"]=p)}),(f,...m)=>x(this,[f,...m],function*(u,p={}){let g=Date.now(),_=Z1(u,q(T({},p),{baseUrl:i})),{method:v="GET",responseType:b="text",dataType:E="json",timeout:k,enableCache:O=!1,appendHostCookie:R=!0}=p,y=Object.assign({"content-type":"application/json"},a,p.header),J={url:_,method:v,header:y,enableCache:O,responseType:b,appendHostCookie:R};if(v=="POST"||v=="PUT"){let ft=tk(p.data,y["content-type"]);J.data=ft}k&&Object.assign(J,{timeout:k});let{data:{requestTaskId:et}}=L(e,J);if(typeof et!="string")throw Xt({code:-1,msg:"requestTaskId is not a string"});let Pr=(ft,Ct)=>{Ep("request",_,{state:ft,startTime:g,endTime:Date.now(),params:J,response:Ct,requestId:et,requestFrom:o=="public"?"public":"inner"})},{resolve:tt,reject:hr,promise:uI}=new Qt;n.set(et,{resolve:tt,reject:hr});try{let ft=yield uI;Pr("success",ft);let{data:Ct}=ft;return E==="json"&&typeof Ct=="string"&&(Ct=ek(Ct)),{url:_,timeout:k,method:v,response:q(T({},ft),{data:Ct})}}catch(ft){let Ct=ft;if(mr(Ct)){let{errMsg:Ki,prefetchDetail:dI,isPrefetch:fI,errNo:pI}=Ct;Cn(Ki)&&(Pr("fail",{errMsg:Ki,isPrefetch:fI,prefetchDetail:dI}),Ae(Xt({code:-1,msg:Ki},{errNo:pI,errMsg:Ki})))}throw ft}})}function ek(e){try{return JSON.parse(e.trim())}catch(t){return e}}function tk(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 Z1,gl=I(()=>{"use strict";N();xp();vl();Me();lt();Dr();Z1=(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 yl,Ap,le,Ot=I(()=>{"use strict";gl();se();yl={};(Ap=S.hostUserInfo)!=null&&Ap.token&&(yl["x-joli-token"]=S.hostUserInfo.token);S.joliSource&&(yl["x-joli-source"]=S.joliSource);le=so("createRequestTaskSync","operateRequestTaskSync",{type:"inner",baseUrl:S.testMode?"https://stg-api.jolibox.com":"https://api.jolibox.com",defaultHeaders:yl})});var lo,Sp=I(()=>{"use strict";se();bp();Ot();Me();lo=class extends ao{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 x(this,null,function*(){let{event:r,params:n}=t,i={eventType:r,gameInfo:T({gameId:this.gameId,sessionId:this.sessionId},n)};yield S.platform==="android"?le("/api/base/app-event",{method:"POST",data:i}):Pe("trackAppEventAsync",{url:this.taskUrl,body:JSON.stringify(i)})})}reportToNative(t){return x(this,null,function*(){let{event:r,params:n}=t;yield Pe("userTrackAsync",{event:r,params:T({},n),gameId:this.gameId})})}tracker(t,r=null){this.track(t,r)}}});var Cp={};vf(Cp,{nativeTaskEmitter:()=>qn,taskTracker:()=>Pt,track:()=>Ge,trackPerformance:()=>Tp});var rk,Ip,kp,Ge,Tp,Rp,qn,Pt,Zt=I(()=>{"use strict";fp();N();ml();_p();se();Sp();Me();rk=(e,t,r)=>{var a,s,l,c,d;let n=t,i=mr(n.extra)?n.extra:Cn(n.extra)?JSON.parse(n.extra):{},o=q(T({},i),{mp_id:(a=n.mp_id)!=null?a:"",mp_version:(s=n.mp_version)!=null?s:"",session_id:S.sessionId,user_id:(c=(l=S.hostUserInfo)==null?void 0:l.uid)!=null?c:""});L("trackAsync",{event:(d=t.tag)!=null?d:e,data:o,webviewId:r})},{track:Ge,trackPerformance:Tp}=vp(rk,{type:sl.AppSDK,platform:"native",jssdk_version:(kp=(Ip=S.sdkInfo)==null?void 0:Ip.jssdkVersion)!=null?kp:"1.0.0",mp_id:S.mpId,mp_version:S.mpVersion}),Rp=pe();Rp.registerCommand("ReportSDK.traceSystemTimeline",({event:e,duration:t,extra:r})=>{Tp(e,t,r)});Rp.registerCommand("ReportSDK.traceSystem",({event:e,info:t})=>{Ge(e,t)});qn=new mt,Pt=new lo(Ge,qn)});function Op(){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 a=`
2
2
  html[data-jolibox-root] {
3
3
  height: 100%;
4
4
  margin: 0;
@@ -16,8 +16,8 @@ var oE=Object.create;var Vn=Object.defineProperty,iE=Object.defineProperties,aE=
16
16
  min-height: 100dvh;
17
17
  }
18
18
  }
19
- `;e.textContent=a;let s=document.head||document.getElementsByTagName("head")[0];s.insertBefore(t,s.firstChild),s.insertBefore(e,s.firstChild),document.documentElement.setAttribute("data-jolibox-root","")},o=()=>{function a(l){return x(this,null,function*(){let c=l instanceof URL?l.href:l,d=new Promise((u,h)=>{let p=new XMLHttpRequest;p.open("GET",c),p.responseType="arraybuffer",p.addEventListener("load",()=>u(p.response)),p.addEventListener("error",h),p.send()});try{let u=yield d;return new Response(u,{headers:new Headers([["Content-Type","application/wasm"]])}).clone()}catch(u){throw console.error("Failed to load wasm:",u),u}})}let s=window.fetch;window.fetch=(l,c)=>{let d=l instanceof URL?l.href:l.toString();return d.endsWith(".wasm")?a(d):s(l,c)}},i=()=>{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"),window.fetch=r};return n(),o(),i}var Td=T(()=>{"use strict"});var Rd=T(()=>{"use strict"});var kd=T(()=>{"use strict";D();La()});var Cd=T(()=>{"use strict";te()});var no,Ka=T(()=>{"use strict";Rd();kd();te();Cd();D();no=new rt});function ft(e,t){for(var r in t)e[r]=t[r];return e}function Xa(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function ot(e,t,r){var n,o,i,a={};for(i in t)i=="key"?n=t[i]:i=="ref"?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?so.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(i in e.defaultProps)a[i]===void 0&&(a[i]=e.defaultProps[i]);return io(e,a,n,o,null)}function io(e,t,r,n,o){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o==null?++qd:o,__i:-1,__u:0};return o==null&&C.vnode!=null&&C.vnode(i),i}function it(e){return e.children}function Ue(e,t){this.props=e,this.context=t}function rr(e,t){if(t==null)return e.__?rr(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"?rr(e):null}function jd(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 jd(e)}}function Pd(e){(!e.__d&&(e.__d=!0)&&Gt.push(e)&&!ao.__r++||Od!==C.debounceRendering)&&((Od=C.debounceRendering)||Ld)(ao)}function ao(){for(var e,t,r,n,o,i,a,s=1;Gt.length;)Gt.length>s&&Gt.sort(Ud),e=Gt.shift(),s=Gt.length,e.__d&&(r=void 0,o=(n=(t=e).__v).__e,i=[],a=[],t.__P&&((r=ft({},n)).__v=n.__v+1,C.vnode&&C.vnode(r),Za(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[o]:null,i,o==null?rr(n):o,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,Hd(i,r,a),r.__e!=o&&jd(r)));ao.__r=0}function Bd(e,t,r,n,o,i,a,s,l,c,d){var u,h,p,m,g,_,v=n&&n.__k||Fd,y=t.length;for(l=Wx(r,t,v,l,y),u=0;u<y;u++)(p=r.__k[u])!=null&&(h=p.__i===-1?zr:v[p.__i]||zr,p.__i=u,_=Za(e,p,h,o,i,a,s,l,c,d),m=p.__e,p.ref&&h.ref!=p.ref&&(h.ref&&es(h.ref,null,p),d.push(p.ref,p.__c||m,p)),g==null&&m!=null&&(g=m),4&p.__u||h.__k===p.__k?l=$d(p,l,e):typeof p.type=="function"&&_!==void 0?l=_:m&&(l=m.nextSibling),p.__u&=-7);return r.__e=g,l}function Wx(e,t,r,n,o){var i,a,s,l,c,d=r.length,u=d,h=0;for(e.__k=new Array(o),i=0;i<o;i++)(a=t[i])!=null&&typeof a!="boolean"&&typeof a!="function"?(l=i+h,(a=e.__k[i]=typeof a=="string"||typeof a=="number"||typeof a=="bigint"||a.constructor==String?io(null,a,null,null,null):Wr(a)?io(it,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?io(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=Yx(a,r,l,u))!==-1&&(u--,(s=r[c])&&(s.__u|=2)),s==null||s.__v===null?(c==-1&&(o>d?h--:o<d&&h++),typeof a.type!="function"&&(a.__u|=4)):c!=l&&(c==l-1?h--:c==l+1?h++:(c>l?h--:h++,a.__u|=4))):e.__k[i]=null;if(u)for(i=0;i<d;i++)(s=r[i])!=null&&!(2&s.__u)&&(s.__e==n&&(n=rr(s)),Vd(s,s));return n}function $d(e,t,r){var n,o;if(typeof e.type=="function"){for(n=e.__k,o=0;n&&o<n.length;o++)n[o]&&(n[o].__=e,t=$d(n[o],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=rr(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function Yr(e,t){return t=t||[],e==null||typeof e=="boolean"||(Wr(e)?e.some(function(r){Yr(r,t)}):t.push(e)),t}function Yx(e,t,r,n){var o,i,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(o=r-1,i=r+1;o>=0||i<t.length;){if(o>=0){if((l=t[o])&&!(2&l.__u)&&a==l.key&&s===l.type)return o;o--}if(i<t.length){if((l=t[i])&&!(2&l.__u)&&a==l.key&&s===l.type)return i;i++}}return-1}function Nd(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||zx.test(t)?r:r+"px"}function oo(e,t,r,n,o){var i;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||Nd(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||Nd(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")i=t!=(t=t.replace(Md,"$1")),t=t.toLowerCase()in e||t=="onFocusOut"||t=="onFocusIn"?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r.t=n.t:(r.t=Qa,e.addEventListener(t,i?Wa:za,i)):e.removeEventListener(t,i?Wa:za,i);else{if(o=="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 Dd(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=Qa++;else if(t.u<r.t)return;return r(C.event?C.event(t):t)}}}function Za(e,t,r,n,o,i,a,s,l,c){var d,u,h,p,m,g,_,v,y,A,k,O,I,w,B,$e,Zt,He=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(l=!!(32&r.__u),i=[s=t.__e=r.__e]),(d=C.__b)&&d(t);e:if(typeof He=="function")try{if(v=t.props,y="prototype"in He&&He.prototype.render,A=(d=He.contextType)&&n[d.__c],k=d?A?A.props.value:d.__:n,r.__c?_=(u=t.__c=r.__c).__=u.__E:(y?t.__c=u=new He(v,k):(t.__c=u=new Ue(v,k),u.constructor=He,u.render=Xx),A&&A.sub(u),u.props=v,u.state||(u.state={}),u.context=k,u.__n=n,h=u.__d=!0,u.__h=[],u._sb=[]),y&&u.__s==null&&(u.__s=u.state),y&&He.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=ft({},u.__s)),ft(u.__s,He.getDerivedStateFromProps(v,u.__s))),p=u.props,m=u.state,u.__v=t,h)y&&He.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),y&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(y&&He.getDerivedStateFromProps==null&&v!==p&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(v,k),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(v,u.__s,k)===!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($t){$t&&($t.__=t)}),O=0;O<u._sb.length;O++)u.__h.push(u._sb[O]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,k),y&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(p,m,g)})}if(u.context=k,u.props=v,u.__P=e,u.__e=!1,I=C.__r,w=0,y){for(u.state=u.__s,u.__d=!1,I&&I(t),d=u.render(u.props,u.state,u.context),B=0;B<u._sb.length;B++)u.__h.push(u._sb[B]);u._sb=[]}else do u.__d=!1,I&&I(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++w<25);u.state=u.__s,u.getChildContext!=null&&(n=ft(ft({},n),u.getChildContext())),y&&!h&&u.getSnapshotBeforeUpdate!=null&&(g=u.getSnapshotBeforeUpdate(p,m)),$e=d,d!=null&&d.type===it&&d.key==null&&($e=Jd(d.props.children)),s=Bd(e,Wr($e)?$e:[$e],t,r,n,o,i,a,s,l,c),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),_&&(u.__E=u.__=null)}catch($t){if(t.__v=null,l||i!=null)if($t.then){for(t.__u|=l?160:128;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;i[i.indexOf(s)]=null,t.__e=s}else for(Zt=i.length;Zt--;)Xa(i[Zt]);else t.__e=r.__e,t.__k=r.__k;C.__e($t,t,r)}else i==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=Qx(r.__e,t,r,n,o,i,a,l,c);return(d=C.diffed)&&d(t),128&t.__u?void 0:s}function Hd(e,t,r){for(var n=0;n<r.length;n++)es(r[n],r[++n],r[++n]);C.__c&&C.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(i){i.call(o)})}catch(i){C.__e(i,o.__v)}})}function Jd(e){return typeof e!="object"||e==null?e:Wr(e)?e.map(Jd):ft({},e)}function Qx(e,t,r,n,o,i,a,s,l){var c,d,u,h,p,m,g,_=r.props,v=t.props,y=t.type;if(y=="svg"?o="http://www.w3.org/2000/svg":y=="math"?o="http://www.w3.org/1998/Math/MathML":o||(o="http://www.w3.org/1999/xhtml"),i!=null){for(c=0;c<i.length;c++)if((p=i[c])&&"setAttribute"in p==!!y&&(y?p.localName==y:p.nodeType==3)){e=p,i[c]=null;break}}if(e==null){if(y==null)return document.createTextNode(v);e=document.createElementNS(o,y,v.is&&v),s&&(C.__m&&C.__m(t,i),s=!1),i=null}if(y===null)_===v||s&&e.data===v||(e.data=v);else{if(i=i&&so.call(e.childNodes),_=r.props||zr,!s&&i!=null)for(_={},c=0;c<e.attributes.length;c++)_[(p=e.attributes[c]).name]=p.value;for(c in _)if(p=_[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=p;else if(!(c in v)){if(c=="value"&&"defaultValue"in v||c=="checked"&&"defaultChecked"in v)continue;oo(e,c,null,p,o)}}for(c in v)p=v[c],c=="children"?h=p:c=="dangerouslySetInnerHTML"?d=p:c=="value"?m=p:c=="checked"?g=p:s&&typeof p!="function"||_[c]===p||oo(e,c,p,_[c],o);if(d)s||u&&(d.__html===u.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),Bd(t.type==="template"?e.content:e,Wr(h)?h:[h],t,r,n,y=="foreignObject"?"http://www.w3.org/1999/xhtml":o,i,a,i?i[0]:r.__k&&rr(r,0),s,l),i!=null)for(c=i.length;c--;)Xa(i[c]);s||(c="value",y=="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[c]||y=="progress"&&!m||y=="option"&&m!==_[c])&&oo(e,c,m,_[c],o),c="checked",g!==void 0&&g!==e[c]&&oo(e,c,g,_[c],o))}return e}function es(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(o){C.__e(o,r)}}function Vd(e,t,r){var n,o;if(C.unmount&&C.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||es(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(i){C.__e(i,t)}n.base=n.__P=null}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&Vd(n[o],t,r||typeof e.type!="function");r||Xa(e.__e),e.__c=e.__=e.__e=void 0}function Xx(e,t,r){return this.constructor(e,r)}function nr(e,t,r){var n,o,i,a;t==document&&(t=document.documentElement),C.__&&C.__(e,t),o=(n=typeof r=="function")?null:r&&r.__k||t.__k,i=[],a=[],Za(t,e=(!n&&r||t).__k=ot(it,null,[e]),o||zr,zr,t.namespaceURI,!n&&r?[r]:o?null:t.firstChild?so.call(t.childNodes):null,i,!n&&r?r:o?o.__e:t.firstChild,n,a),Hd(i,e,a)}var so,C,qd,Ya,Gt,Od,Ld,Ud,Md,Qa,za,Wa,Kx,zr,Fd,zx,Wr,or=T(()=>{zr={},Fd=[],zx=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Wr=Array.isArray;so=Fd.slice,C={__e:function(e,t,r,n){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&i.getDerivedStateFromError!=null&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,n||{}),a=o.__d),a)return o.__E=o}catch(s){e=s}throw e}},qd=0,Ya=function(e){return e!=null&&e.constructor==null},Ue.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),Pd(this))},Ue.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Pd(this))},Ue.prototype.render=it,Gt=[],Ld=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Ud=function(e,t){return e.__v.__b-t.__v.__b},ao.__r=0,Md=/(PointerCapture)$|Capture$/i,Qa=0,za=Dd(!1),Wa=Dd(!0),Kx=0});var Q=f((fj,Gd)=>{"use strict";Gd.exports=function(e){try{return!!e()}catch(t){return!0}}});var ir=f((pj,Kd)=>{"use strict";var Zx=Q();Kd.exports=!Zx(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var fe=f((hj,Yd)=>{"use strict";var zd=ir(),Wd=Function.prototype,ts=Wd.call,eA=zd&&Wd.bind.bind(ts,ts);Yd.exports=zd?eA:function(e){return function(){return ts.apply(e,arguments)}}});var Re=f((mj,Qd)=>{"use strict";var tA=fe();Qd.exports=tA({}.isPrototypeOf)});var re=f((rs,Xd)=>{"use strict";var Qr=function(e){return e&&e.Math===Math&&e};Xd.exports=Qr(typeof globalThis=="object"&&globalThis)||Qr(typeof window=="object"&&window)||Qr(typeof self=="object"&&self)||Qr(typeof global=="object"&&global)||Qr(typeof rs=="object"&&rs)||function(){return this}()||Function("return this")()});var ns=f((vj,rf)=>{"use strict";var rA=ir(),tf=Function.prototype,Zd=tf.apply,ef=tf.call;rf.exports=typeof Reflect=="object"&&Reflect.apply||(rA?ef.bind(Zd):function(){return ef.apply(Zd,arguments)})});var pt=f((gj,of)=>{"use strict";var nf=fe(),nA=nf({}.toString),oA=nf("".slice);of.exports=function(e){return oA(nA(e),8,-1)}});var Xr=f((_j,af)=>{"use strict";var iA=pt(),aA=fe();af.exports=function(e){if(iA(e)==="Function")return aA(e)}});var ge=f((yj,sf)=>{"use strict";var os=typeof document=="object"&&document.all;sf.exports=typeof os=="undefined"&&os!==void 0?function(e){return typeof e=="function"||e===os}:function(e){return typeof e=="function"}});var Me=f((bj,lf)=>{"use strict";var sA=Q();lf.exports=!sA(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var ht=f((wj,cf)=>{"use strict";var lA=ir(),lo=Function.prototype.call;cf.exports=lA?lo.bind(lo):function(){return lo.apply(lo,arguments)}});var is=f(ff=>{"use strict";var uf={}.propertyIsEnumerable,df=Object.getOwnPropertyDescriptor,cA=df&&!uf.call({1:2},1);ff.f=cA?function(t){var r=df(this,t);return!!r&&r.enumerable}:uf});var Zr=f((xj,pf)=>{"use strict";pf.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var co=f((Aj,hf)=>{"use strict";var uA=fe(),dA=Q(),fA=pt(),as=Object,pA=uA("".split);hf.exports=dA(function(){return!as("z").propertyIsEnumerable(0)})?function(e){return fA(e)==="String"?pA(e,""):as(e)}:as});var ar=f((Sj,mf)=>{"use strict";mf.exports=function(e){return e==null}});var sr=f((Ij,vf)=>{"use strict";var hA=ar(),mA=TypeError;vf.exports=function(e){if(hA(e))throw new mA("Can't call method on "+e);return e}});var Pt=f((Tj,gf)=>{"use strict";var vA=co(),gA=sr();gf.exports=function(e){return vA(gA(e))}});var pe=f((Rj,_f)=>{"use strict";var _A=ge();_f.exports=function(e){return typeof e=="object"?e!==null:_A(e)}});var mt=f((kj,yf)=>{"use strict";yf.exports={}});var uo=f((Cj,wf)=>{"use strict";var ss=mt(),ls=re(),yA=ge(),bf=function(e){return yA(e)?e:void 0};wf.exports=function(e,t){return arguments.length<2?bf(ss[e])||bf(ls[e]):ss[e]&&ss[e][t]||ls[e]&&ls[e][t]}});var fo=f((Oj,Af)=>{"use strict";var bA=re(),Ef=bA.navigator,xf=Ef&&Ef.userAgent;Af.exports=xf?String(xf):""});var ho=f((Pj,Cf)=>{"use strict";var kf=re(),cs=fo(),Sf=kf.process,If=kf.Deno,Tf=Sf&&Sf.versions||If&&If.version,Rf=Tf&&Tf.v8,Qe,po;Rf&&(Qe=Rf.split("."),po=Qe[0]>0&&Qe[0]<4?1:+(Qe[0]+Qe[1]));!po&&cs&&(Qe=cs.match(/Edge\/(\d+)/),(!Qe||Qe[1]>=74)&&(Qe=cs.match(/Chrome\/(\d+)/),Qe&&(po=+Qe[1])));Cf.exports=po});var us=f((Nj,Pf)=>{"use strict";var Of=ho(),wA=Q(),EA=re(),xA=EA.String;Pf.exports=!!Object.getOwnPropertySymbols&&!wA(function(){var e=Symbol("symbol detection");return!xA(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Of&&Of<41})});var ds=f((Dj,Nf)=>{"use strict";var AA=us();Nf.exports=AA&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var fs=f((qj,Df)=>{"use strict";var SA=uo(),IA=ge(),TA=Re(),RA=ds(),kA=Object;Df.exports=RA?function(e){return typeof e=="symbol"}:function(e){var t=SA("Symbol");return IA(t)&&TA(t.prototype,kA(e))}});var mo=f((Lj,qf)=>{"use strict";var CA=String;qf.exports=function(e){try{return CA(e)}catch(t){return"Object"}}});var lr=f((Uj,Lf)=>{"use strict";var OA=ge(),PA=mo(),NA=TypeError;Lf.exports=function(e){if(OA(e))return e;throw new NA(PA(e)+" is not a function")}});var vo=f((Mj,Uf)=>{"use strict";var DA=lr(),qA=ar();Uf.exports=function(e,t){var r=e[t];return qA(r)?void 0:DA(r)}});var Ff=f((Fj,Mf)=>{"use strict";var ps=ht(),hs=ge(),ms=pe(),LA=TypeError;Mf.exports=function(e,t){var r,n;if(t==="string"&&hs(r=e.toString)&&!ms(n=ps(r,e))||hs(r=e.valueOf)&&!ms(n=ps(r,e))||t!=="string"&&hs(r=e.toString)&&!ms(n=ps(r,e)))return n;throw new LA("Can't convert object to primitive value")}});var cr=f((jj,jf)=>{"use strict";jf.exports=!0});var Hf=f((Bj,$f)=>{"use strict";var Bf=re(),UA=Object.defineProperty;$f.exports=function(e,t){try{UA(Bf,e,{value:t,configurable:!0,writable:!0})}catch(r){Bf[e]=t}return t}});var en=f(($j,Gf)=>{"use strict";var MA=cr(),FA=re(),jA=Hf(),Jf="__core-js_shared__",Vf=Gf.exports=FA[Jf]||jA(Jf,{});(Vf.versions||(Vf.versions=[])).push({version:"3.41.0",mode:MA?"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 vs=f((Hj,zf)=>{"use strict";var Kf=en();zf.exports=function(e,t){return Kf[e]||(Kf[e]=t||{})}});var ur=f((Jj,Wf)=>{"use strict";var BA=sr(),$A=Object;Wf.exports=function(e){return $A(BA(e))}});var Fe=f((Vj,Yf)=>{"use strict";var HA=fe(),JA=ur(),VA=HA({}.hasOwnProperty);Yf.exports=Object.hasOwn||function(t,r){return VA(JA(t),r)}});var go=f((Gj,Qf)=>{"use strict";var GA=fe(),KA=0,zA=Math.random(),WA=GA(1 .toString);Qf.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+WA(++KA+zA,36)}});var ke=f((Kj,Zf)=>{"use strict";var YA=re(),QA=vs(),Xf=Fe(),XA=go(),ZA=us(),eS=ds(),dr=YA.Symbol,gs=QA("wks"),tS=eS?dr.for||dr:dr&&dr.withoutSetter||XA;Zf.exports=function(e){return Xf(gs,e)||(gs[e]=ZA&&Xf(dr,e)?dr[e]:tS("Symbol."+e)),gs[e]}});var np=f((zj,rp)=>{"use strict";var rS=ht(),ep=pe(),tp=fs(),nS=vo(),oS=Ff(),iS=ke(),aS=TypeError,sS=iS("toPrimitive");rp.exports=function(e,t){if(!ep(e)||tp(e))return e;var r=nS(e,sS),n;if(r){if(t===void 0&&(t="default"),n=rS(r,e,t),!ep(n)||tp(n))return n;throw new aS("Can't convert object to primitive value")}return t===void 0&&(t="number"),oS(e,t)}});var _s=f((Wj,op)=>{"use strict";var lS=np(),cS=fs();op.exports=function(e){var t=lS(e,"string");return cS(t)?t:t+""}});var bs=f((Yj,ap)=>{"use strict";var uS=re(),ip=pe(),ys=uS.document,dS=ip(ys)&&ip(ys.createElement);ap.exports=function(e){return dS?ys.createElement(e):{}}});var ws=f((Qj,sp)=>{"use strict";var fS=Me(),pS=Q(),hS=bs();sp.exports=!fS&&!pS(function(){return Object.defineProperty(hS("div"),"a",{get:function(){return 7}}).a!==7})});var Es=f(cp=>{"use strict";var mS=Me(),vS=ht(),gS=is(),_S=Zr(),yS=Pt(),bS=_s(),wS=Fe(),ES=ws(),lp=Object.getOwnPropertyDescriptor;cp.f=mS?lp:function(t,r){if(t=yS(t),r=bS(r),ES)try{return lp(t,r)}catch(n){}if(wS(t,r))return _S(!vS(gS.f,t,r),t[r])}});var dp=f((Zj,up)=>{"use strict";var xS=Q(),AS=ge(),SS=/#|\.prototype\./,tn=function(e,t){var r=TS[IS(e)];return r===kS?!0:r===RS?!1:AS(t)?xS(t):!!t},IS=tn.normalize=function(e){return String(e).replace(SS,".").toLowerCase()},TS=tn.data={},RS=tn.NATIVE="N",kS=tn.POLYFILL="P";up.exports=tn});var _o=f((e2,pp)=>{"use strict";var fp=Xr(),CS=lr(),OS=ir(),PS=fp(fp.bind);pp.exports=function(e,t){return CS(e),t===void 0?e:OS?PS(e,t):function(){return e.apply(t,arguments)}}});var xs=f((t2,hp)=>{"use strict";var NS=Me(),DS=Q();hp.exports=NS&&DS(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var Nt=f((r2,mp)=>{"use strict";var qS=pe(),LS=String,US=TypeError;mp.exports=function(e){if(qS(e))return e;throw new US(LS(e)+" is not an object")}});var Dt=f(gp=>{"use strict";var MS=Me(),FS=ws(),jS=xs(),yo=Nt(),vp=_s(),BS=TypeError,As=Object.defineProperty,$S=Object.getOwnPropertyDescriptor,Ss="enumerable",Is="configurable",Ts="writable";gp.f=MS?jS?function(t,r,n){if(yo(t),r=vp(r),yo(n),typeof t=="function"&&r==="prototype"&&"value"in n&&Ts in n&&!n[Ts]){var o=$S(t,r);o&&o[Ts]&&(t[r]=n.value,n={configurable:Is in n?n[Is]:o[Is],enumerable:Ss in n?n[Ss]:o[Ss],writable:!1})}return As(t,r,n)}:As:function(t,r,n){if(yo(t),r=vp(r),yo(n),FS)try{return As(t,r,n)}catch(o){}if("get"in n||"set"in n)throw new BS("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var Kt=f((o2,_p)=>{"use strict";var HS=Me(),JS=Dt(),VS=Zr();_p.exports=HS?function(e,t,r){return JS.f(e,t,VS(1,r))}:function(e,t,r){return e[t]=r,e}});var ne=f((i2,bp)=>{"use strict";var rn=re(),GS=ns(),KS=Xr(),zS=ge(),WS=Es().f,YS=dp(),fr=mt(),QS=_o(),pr=Kt(),yp=Fe();en();var XS=function(e){var t=function(r,n,o){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,o)}return GS(e,this,arguments)};return t.prototype=e.prototype,t};bp.exports=function(e,t){var r=e.target,n=e.global,o=e.stat,i=e.proto,a=n?rn:o?rn[r]:rn[r]&&rn[r].prototype,s=n?fr:fr[r]||pr(fr,r,{})[r],l=s.prototype,c,d,u,h,p,m,g,_,v;for(h in t)c=YS(n?h:r+(o?".":"#")+h,e.forced),d=!c&&a&&yp(a,h),m=s[h],d&&(e.dontCallGetSet?(v=WS(a,h),g=v&&v.value):g=a[h]),p=d&&g?g:t[h],!(!c&&!i&&typeof m==typeof p)&&(e.bind&&d?_=QS(p,rn):e.wrap&&d?_=XS(p):i&&zS(p)?_=KS(p):_=p,(e.sham||p&&p.sham||m&&m.sham)&&pr(_,"sham",!0),pr(s,h,_),i&&(u=r+"Prototype",yp(fr,u)||pr(fr,u,{}),pr(fr[u],h,p),e.real&&l&&(c||!l[h])&&pr(l,h,p)))}});var Ep=f((a2,wp)=>{"use strict";var ZS=Math.ceil,eI=Math.floor;wp.exports=Math.trunc||function(t){var r=+t;return(r>0?eI:ZS)(r)}});var Rs=f((s2,xp)=>{"use strict";var tI=Ep();xp.exports=function(e){var t=+e;return t!==t||t===0?0:tI(t)}});var ks=f((l2,Ap)=>{"use strict";var rI=Rs(),nI=Math.min;Ap.exports=function(e){var t=rI(e);return t>0?nI(t,9007199254740991):0}});var hr=f((c2,Sp)=>{"use strict";var oI=ks();Sp.exports=function(e){return oI(e.length)}});var nn=f((u2,Ip)=>{"use strict";var iI=pt();Ip.exports=Array.isArray||function(t){return iI(t)==="Array"}});var bo=f((d2,Rp)=>{"use strict";var aI=ke(),sI=aI("toStringTag"),Tp={};Tp[sI]="z";Rp.exports=String(Tp)==="[object z]"});var mr=f((f2,kp)=>{"use strict";var lI=bo(),cI=ge(),wo=pt(),uI=ke(),dI=uI("toStringTag"),fI=Object,pI=wo(function(){return arguments}())==="Arguments",hI=function(e,t){try{return e[t]}catch(r){}};kp.exports=lI?wo:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=hI(t=fI(e),dI))=="string"?r:pI?wo(t):(n=wo(t))==="Object"&&cI(t.callee)?"Arguments":n}});var Op=f((p2,Cp)=>{"use strict";var mI=fe(),vI=ge(),Cs=en(),gI=mI(Function.toString);vI(Cs.inspectSource)||(Cs.inspectSource=function(e){return gI(e)});Cp.exports=Cs.inspectSource});var Ps=f((h2,Lp)=>{"use strict";var _I=fe(),yI=Q(),Pp=ge(),bI=mr(),wI=uo(),EI=Op(),Np=function(){},Dp=wI("Reflect","construct"),Os=/^\s*(?:class|function)\b/,xI=_I(Os.exec),AI=!Os.test(Np),on=function(t){if(!Pp(t))return!1;try{return Dp(Np,[],t),!0}catch(r){return!1}},qp=function(t){if(!Pp(t))return!1;switch(bI(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return AI||!!xI(Os,EI(t))}catch(r){return!0}};qp.sham=!0;Lp.exports=!Dp||yI(function(){var e;return on(on.call)||!on(Object)||!on(function(){e=!0})||e})?qp:on});var jp=f((m2,Fp)=>{"use strict";var Up=nn(),SI=Ps(),II=pe(),TI=ke(),RI=TI("species"),Mp=Array;Fp.exports=function(e){var t;return Up(e)&&(t=e.constructor,SI(t)&&(t===Mp||Up(t.prototype))?t=void 0:II(t)&&(t=t[RI],t===null&&(t=void 0))),t===void 0?Mp:t}});var Ns=f((v2,Bp)=>{"use strict";var kI=jp();Bp.exports=function(e,t){return new(kI(e))(t===0?0:t)}});var Lt=f((g2,Hp)=>{"use strict";var CI=_o(),OI=fe(),PI=co(),NI=ur(),DI=hr(),qI=Ns(),$p=OI([].push),qt=function(e){var t=e===1,r=e===2,n=e===3,o=e===4,i=e===6,a=e===7,s=e===5||i;return function(l,c,d,u){for(var h=NI(l),p=PI(h),m=DI(p),g=CI(c,d),_=0,v=u||qI,y=t?v(l,m):r||a?v(l,0):void 0,A,k;m>_;_++)if((s||_ in p)&&(A=p[_],k=g(A,_,h),e))if(t)y[_]=k;else if(k)switch(e){case 3:return!0;case 5:return A;case 6:return _;case 2:$p(y,A)}else switch(e){case 4:return!1;case 7:$p(y,A)}return i?-1:n||o?o:y}};Hp.exports={forEach:qt(0),map:qt(1),filter:qt(2),some:qt(3),every:qt(4),find:qt(5),findIndex:qt(6),filterReject:qt(7)}});var an=f((_2,Jp)=>{"use strict";var LI=Q(),UI=ke(),MI=ho(),FI=UI("species");Jp.exports=function(e){return MI>=51||!LI(function(){var t=[],r=t.constructor={};return r[FI]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var Vp=f(()=>{"use strict";var jI=ne(),BI=Lt().filter,$I=an(),HI=$I("filter");jI({target:"Array",proto:!0,forced:!HI},{filter:function(t){return BI(this,t,arguments.length>1?arguments[1]:void 0)}})});var Ge=f((w2,Gp)=>{"use strict";var JI=re(),VI=mt();Gp.exports=function(e,t){var r=VI[e+"Prototype"],n=r&&r[t];if(n)return n;var o=JI[e],i=o&&o.prototype;return i&&i[t]}});var zp=f((E2,Kp)=>{"use strict";Vp();var GI=Ge();Kp.exports=GI("Array","filter")});var Yp=f((x2,Wp)=>{"use strict";var KI=Re(),zI=zp(),Ds=Array.prototype;Wp.exports=function(e){var t=e.filter;return e===Ds||KI(Ds,e)&&t===Ds.filter?zI:t}});var Xp=f((A2,Qp)=>{"use strict";var WI=Yp();Qp.exports=WI});var eh=f((S2,Zp)=>{Zp.exports=Xp()});var sn=f((I2,th)=>{"use strict";var YI=Q();th.exports=function(e,t){var r=[][e];return!!r&&YI(function(){r.call(null,t||function(){return 1},1)})}});var rh=f(()=>{"use strict";var QI=ne(),XI=Lt().every,ZI=sn(),eT=ZI("every");QI({target:"Array",proto:!0,forced:!eT},{every:function(t){return XI(this,t,arguments.length>1?arguments[1]:void 0)}})});var oh=f((k2,nh)=>{"use strict";rh();var tT=Ge();nh.exports=tT("Array","every")});var ah=f((C2,ih)=>{"use strict";var rT=Re(),nT=oh(),qs=Array.prototype;ih.exports=function(e){var t=e.every;return e===qs||rT(qs,e)&&t===qs.every?nT:t}});var lh=f((O2,sh)=>{"use strict";var oT=ah();sh.exports=oT});var uh=f((P2,ch)=>{ch.exports=lh()});var fh=f((N2,dh)=>{"use strict";var iT=Lt().forEach,aT=sn(),sT=aT("forEach");dh.exports=sT?[].forEach:function(t){return iT(this,t,arguments.length>1?arguments[1]:void 0)}});var hh=f(()=>{"use strict";var lT=ne(),ph=fh();lT({target:"Array",proto:!0,forced:[].forEach!==ph},{forEach:ph})});var vh=f((L2,mh)=>{"use strict";hh();var cT=Ge();mh.exports=cT("Array","forEach")});var _h=f((U2,gh)=>{"use strict";var uT=vh();gh.exports=uT});var yh=f(()=>{});var wh=f((j2,bh)=>{"use strict";var dT=mr(),fT=Fe(),pT=Re(),hT=_h();yh();var Ls=Array.prototype,mT={DOMTokenList:!0,NodeList:!0};bh.exports=function(e){var t=e.forEach;return e===Ls||pT(Ls,e)&&t===Ls.forEach||fT(mT,dT(e))?hT:t}});var xh=f((B2,Eh)=>{Eh.exports=wh()});var Sh=f(($2,Ah)=>{"use strict";var vT=TypeError,gT=9007199254740991;Ah.exports=function(e){if(e>gT)throw vT("Maximum allowed index exceeded");return e}});var Us=f((H2,Ih)=>{"use strict";var _T=Me(),yT=Dt(),bT=Zr();Ih.exports=function(e,t,r){_T?yT.f(e,t,bT(0,r)):e[t]=r}});var Ch=f(()=>{"use strict";var wT=ne(),ET=Q(),xT=nn(),AT=pe(),ST=ur(),IT=hr(),Th=Sh(),Rh=Us(),TT=Ns(),RT=an(),kT=ke(),CT=ho(),kh=kT("isConcatSpreadable"),OT=CT>=51||!ET(function(){var e=[];return e[kh]=!1,e.concat()[0]!==e}),PT=function(e){if(!AT(e))return!1;var t=e[kh];return t!==void 0?!!t:xT(e)},NT=!OT||!RT("concat");wT({target:"Array",proto:!0,arity:1,forced:NT},{concat:function(t){var r=ST(this),n=TT(r,0),o=0,i,a,s,l,c;for(i=-1,s=arguments.length;i<s;i++)if(c=i===-1?r:arguments[i],PT(c))for(l=IT(c),Th(o+l),a=0;a<l;a++,o++)a in c&&Rh(n,o,c[a]);else Th(o+1),Rh(n,o++,c);return n.length=o,n}})});var Ph=f((G2,Oh)=>{"use strict";Ch();var DT=Ge();Oh.exports=DT("Array","concat")});var Dh=f((K2,Nh)=>{"use strict";var qT=Re(),LT=Ph(),Ms=Array.prototype;Nh.exports=function(e){var t=e.concat;return e===Ms||qT(Ms,e)&&t===Ms.concat?LT:t}});var Lh=f((z2,qh)=>{"use strict";var UT=Dh();qh.exports=UT});var Mh=f((W2,Uh)=>{Uh.exports=Lh()});var Fh=f(()=>{"use strict";var MT=ne(),FT=Lt().some,jT=sn(),BT=jT("some");MT({target:"Array",proto:!0,forced:!BT},{some:function(t){return FT(this,t,arguments.length>1?arguments[1]:void 0)}})});var Bh=f((X2,jh)=>{"use strict";Fh();var $T=Ge();jh.exports=$T("Array","some")});var Hh=f((Z2,$h)=>{"use strict";var HT=Re(),JT=Bh(),Fs=Array.prototype;$h.exports=function(e){var t=e.some;return e===Fs||HT(Fs,e)&&t===Fs.some?JT:t}});var Vh=f((eB,Jh)=>{"use strict";var VT=Hh();Jh.exports=VT});var Kh=f((tB,Gh)=>{Gh.exports=Vh()});var Wh=f((rB,zh)=>{"use strict";var ln=re(),GT=fo(),KT=pt(),Eo=function(e){return GT.slice(0,e.length)===e};zh.exports=function(){return Eo("Bun/")?"BUN":Eo("Cloudflare-Workers")?"CLOUDFLARE":Eo("Deno/")?"DENO":Eo("Node.js/")?"NODE":ln.Bun&&typeof Bun.version=="string"?"BUN":ln.Deno&&typeof Deno.version=="object"?"DENO":KT(ln.process)==="process"?"NODE":ln.window&&ln.document?"BROWSER":"REST"}()});var cn=f((nB,Yh)=>{"use strict";var zT=fe();Yh.exports=zT([].slice)});var Xh=f((oB,Qh)=>{"use strict";var WT=TypeError;Qh.exports=function(e,t){if(e<t)throw new WT("Not enough arguments");return e}});var js=f((iB,em)=>{"use strict";var Zh=re(),YT=ns(),QT=ge(),XT=Wh(),ZT=fo(),e1=cn(),t1=Xh(),r1=Zh.Function,n1=/MSIE .\./.test(ZT)||XT==="BUN"&&function(){var e=Zh.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();em.exports=function(e,t){var r=t?2:1;return n1?function(n,o){var i=t1(arguments.length,1)>r,a=QT(n)?n:r1(n),s=i?e1(arguments,r):[],l=i?function(){YT(a,this,s)}:a;return t?e(l,o):e(l)}:e}});var nm=f(()=>{"use strict";var o1=ne(),rm=re(),i1=js(),tm=i1(rm.setInterval,!0);o1({global:!0,bind:!0,forced:rm.setInterval!==tm},{setInterval:tm})});var am=f(()=>{"use strict";var a1=ne(),im=re(),s1=js(),om=s1(im.setTimeout,!0);a1({global:!0,bind:!0,forced:im.setTimeout!==om},{setTimeout:om})});var sm=f(()=>{"use strict";nm();am()});var cm=f((fB,lm)=>{"use strict";sm();var l1=mt();lm.exports=l1.setTimeout});var dm=f((pB,um)=>{um.exports=cm()});function Hs(e,t){X.__h&&X.__h(Ce,e,Ao||t),Ao=0;var r=Ce.__H||(Ce.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Js(e,t){var r=Hs(un++,3);!X.__s&&Ks(r.__H,t)&&(r.__=e,r.u=t,Ce.__H.__h.push(r))}function Vs(e,t){var r=Hs(un++,4);!X.__s&&Ks(r.__H,t)&&(r.__=e,r.u=t,Ce.__h.push(r))}function Gs(e){return Ao=5,dn(function(){return{current:e}},[])}function dn(e,t){var r=Hs(un++,7);return Ks(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function So(e,t){return Ao=8,dn(function(){return e},t)}function c1(){for(var e;e=bm.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(xo),e.__H.__h.forEach($s),e.__H.__h=[]}catch(t){e.__H.__h=[],X.__e(t,e.__v)}}function u1(e){var t,r=function(){clearTimeout(n),ym&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);ym&&(t=requestAnimationFrame(r))}function xo(e){var t=Ce,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),Ce=t}function $s(e){var t=Ce;e.__c=e.__(),Ce=t}function Ks(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}var un,Ce,Bs,fm,Ao,bm,X,pm,hm,mm,vm,gm,_m,ym,zs=T(()=>{or();Ao=0,bm=[],X=C,pm=X.__b,hm=X.__r,mm=X.diffed,vm=X.__c,gm=X.unmount,_m=X.__;X.__b=function(e){Ce=null,pm&&pm(e)},X.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),_m&&_m(e,t)},X.__r=function(e){hm&&hm(e),un=0;var t=(Ce=e.__c).__H;t&&(Bs===Ce?(t.__h=[],Ce.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(xo),t.__h.forEach($s),t.__h=[],un=0)),Bs=Ce},X.diffed=function(e){mm&&mm(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(bm.push(t)!==1&&fm===X.requestAnimationFrame||((fm=X.requestAnimationFrame)||u1)(c1)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Bs=Ce=null},X.__c=function(e,t){t.some(function(r){try{r.__h.forEach(xo),r.__h=r.__h.filter(function(n){return!n.__||$s(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],X.__e(n,r.__v)}}),vm&&vm(e,t)},X.unmount=function(e){gm&&gm(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{xo(n)}catch(o){t=o}}),r.__H=void 0,t&&X.__e(t,r.__v))};ym=typeof requestAnimationFrame=="function"});function Cm(e,t){for(var r in t)e[r]=t[r];return e}function Ys(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 wm(e,t){this.props=e,this.context=t}function Qs(e,t){function r(o){var i=this.props.ref,a=i==o.ref;return!a&&i&&(i.call?i(null):i.current=null),t?!t(this.props,o)||!a:Ys(this.props,o)}function n(o){return this.shouldComponentUpdate=r,ot(e,o)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function Om(e){function t(r){var n=Cm({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=f1,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function Pm(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=Cm({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Pm(n,t,r)})),e}function Nm(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return Nm(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 Ws(){this.__u=0,this.o=null,this.__b=null}function Dm(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Io(){this.i=null,this.l=null}function qm(e,t,r){return t.__k==null&&(t.textContent=""),nr(e,t),typeof r=="function"&&r(),e?e.__c:null}function b1(){}function w1(){return this.cancelBubble}function E1(){return this.defaultPrevented}var Em,f1,p1,xm,Am,h1,m1,v1,g1,_1,y1,Sm,Lm,x1,Im,Tm,Rm,Xs=T(()=>{or();or();zs();zs();(wm.prototype=new Ue).isPureReactComponent=!0,wm.prototype.shouldComponentUpdate=function(e,t){return Ys(this.props,e)||Ys(this.state,t)};Em=C.__b;C.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Em&&Em(e)};f1=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;p1=C.__e;C.__e=function(e,t,r,n){if(e.then){for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),o.__c(e,t)}p1(e,t,r,n)};xm=C.unmount;C.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),xm&&xm(e)},(Ws.prototype=new Ue).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var o=Dm(n.__v),i=!1,a=function(){i||(i=!0,r.__R=null,o?o(s):s())};r.__R=a;var s=function(){if(!--n.__u){if(n.state.__a){var l=n.state.__a;n.__v.__k[0]=Nm(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)},Ws.prototype.componentWillUnmount=function(){this.o=[]},Ws.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]=Pm(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__a&&ot(it,null,e.fallback);return o&&(o.__u&=-33),[ot(it,null,t.__a?null:e.children),o]};Am=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]}};(Io.prototype=new Ue).__a=function(e){var t=this,r=Dm(t.__v),n=t.l.get(e);return n[0]++,function(o){var i=function(){t.props.revealOrder?(n.push(o),Am(t,e,n)):o()};r?r(i):i()}},Io.prototype.render=function(e){this.i=null,this.l=new Map;var t=Yr(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},Io.prototype.componentDidUpdate=Io.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){Am(e,r,t)})};h1=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,m1=/^(?: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]/,v1=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,g1=/[A-Z0-9]/g,_1=typeof document!="undefined",y1=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};Ue.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ue.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});Sm=C.event;C.event=function(e){return Sm&&(e=Sm(e)),e.persist=b1,e.isPropagationStopped=w1,e.isDefaultPrevented=E1,e.nativeEvent=e};x1={enumerable:!1,configurable:!0,get:function(){return this.class}},Im=C.vnode;C.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,n=t.type,o={},i=n.indexOf("-")===-1;for(var a in r){var s=r[a];if(!(a==="value"&&"defaultValue"in r&&s==null||_1&&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"||y1(r.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":v1.test(a)&&(a=l):l=a="oninput":i&&m1.test(a)?a=a.replace(g1,"-$&").toLowerCase():s===null&&(s=void 0),l==="oninput"&&o[a=l]&&(a="oninputCapture"),o[a]=s}}n=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=Yr(r.children).forEach(function(c){c.props.selected=o.value.indexOf(c.props.value)!=-1})),n=="select"&&o.defaultValue!=null&&(o.value=Yr(r.children).forEach(function(c){c.props.selected=o.multiple?o.defaultValue.indexOf(c.props.value)!=-1:o.defaultValue==c.props.value})),r.class&&!r.className?(o.class=r.class,Object.defineProperty(o,"className",x1)):(r.className&&!r.class||r.class&&r.className)&&(o.class=o.className=r.className),t.props=o}(e),e.$$typeof=h1,Im&&Im(e)};Tm=C.__r;C.__r=function(e){Tm&&Tm(e),Lm=e.__c};Rm=C.diffed;C.diffed=function(e){Rm&&Rm(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),Lm=null}});var Zs=f((kB,Um)=>{"use strict";var A1=Rs(),S1=Math.max,I1=Math.min;Um.exports=function(e,t){var r=A1(e);return r<0?S1(r+t,0):I1(r,t)}});var jm=f(()=>{"use strict";var T1=ne(),Mm=nn(),R1=Ps(),k1=pe(),Fm=Zs(),C1=hr(),O1=Pt(),P1=Us(),N1=ke(),D1=an(),q1=cn(),L1=D1("slice"),U1=N1("species"),el=Array,M1=Math.max;T1({target:"Array",proto:!0,forced:!L1},{slice:function(t,r){var n=O1(this),o=C1(n),i=Fm(t,o),a=Fm(r===void 0?o:r,o),s,l,c;if(Mm(n)&&(s=n.constructor,R1(s)&&(s===el||Mm(s.prototype))?s=void 0:k1(s)&&(s=s[U1],s===null&&(s=void 0)),s===el||s===void 0))return q1(n,i,a);for(l=new(s===void 0?el:s)(M1(a-i,0)),c=0;i<a;i++,c++)i in n&&P1(l,c,n[i]);return l.length=c,l}})});var $m=f((PB,Bm)=>{"use strict";jm();var F1=Ge();Bm.exports=F1("Array","slice")});var Jm=f((NB,Hm)=>{"use strict";var j1=Re(),B1=$m(),tl=Array.prototype;Hm.exports=function(e){var t=e.slice;return e===tl||j1(tl,e)&&t===tl.slice?B1:t}});var Gm=f((DB,Vm)=>{"use strict";var $1=Jm();Vm.exports=$1});var zm=f((qB,Km)=>{Km.exports=Gm()});var Wm=f(()=>{"use strict";var H1=ne(),J1=nn();H1({target:"Array",stat:!0},{isArray:J1})});var Qm=f((MB,Ym)=>{"use strict";Wm();var V1=mt();Ym.exports=V1.Array.isArray});var Zm=f((FB,Xm)=>{"use strict";var G1=Qm();Xm.exports=G1});var tv=f((jB,ev)=>{ev.exports=Zm()});var rl=f((BB,rv)=>{"use strict";var K1=mr(),z1=String;rv.exports=function(e){if(K1(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return z1(e)}});var ov=f(($B,nv)=>{"use strict";var W1=pe(),Y1=pt(),Q1=ke(),X1=Q1("match");nv.exports=function(e){var t;return W1(e)&&((t=e[X1])!==void 0?!!t:Y1(e)==="RegExp")}});var av=f((HB,iv)=>{"use strict";var Z1=ov(),eR=TypeError;iv.exports=function(e){if(Z1(e))throw new eR("The method doesn't accept regular expressions");return e}});var lv=f((JB,sv)=>{"use strict";var tR=ke(),rR=tR("match");sv.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[rR]=!1,"/./"[e](t)}catch(n){}}return!1}});var dv=f(()=>{"use strict";var nR=ne(),oR=Xr(),iR=Es().f,aR=ks(),cv=rl(),sR=av(),lR=sr(),cR=lv(),uR=cr(),dR=oR("".slice),fR=Math.min,uv=cR("startsWith"),pR=!uR&&!uv&&!!function(){var e=iR(String.prototype,"startsWith");return e&&!e.writable}();nR({target:"String",proto:!0,forced:!pR&&!uv},{startsWith:function(t){var r=cv(lR(this));sR(t);var n=aR(fR(arguments.length>1?arguments[1]:void 0,r.length)),o=cv(t);return dR(r,n,n+o.length)===o}})});var pv=f((KB,fv)=>{"use strict";dv();var hR=Ge();fv.exports=hR("String","startsWith")});var mv=f((zB,hv)=>{"use strict";var mR=Re(),vR=pv(),nl=String.prototype;hv.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===nl||mR(nl,e)&&t===nl.startsWith?vR:t}});var gv=f((WB,vv)=>{"use strict";var gR=mv();vv.exports=gR});var yv=f((YB,_v)=>{_v.exports=gv()});var Av=f((QB,xv)=>{"use strict";var wv=fe(),_R=lr(),yR=pe(),bR=Fe(),bv=cn(),wR=ir(),Ev=Function,ER=wv([].concat),xR=wv([].join),ol={},AR=function(e,t,r){if(!bR(ol,t)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";ol[t]=Ev("C,a","return new C("+xR(n,",")+")")}return ol[t](e,r)};xv.exports=wR?Ev.bind:function(t){var r=_R(this),n=r.prototype,o=bv(arguments,1),i=function(){var s=ER(o,bv(arguments));return this instanceof i?AR(r,s.length,s):r.apply(t,s)};return yR(n)&&(i.prototype=n),i}});var Iv=f(()=>{"use strict";var SR=ne(),Sv=Av();SR({target:"Function",proto:!0,forced:Function.bind!==Sv},{bind:Sv})});var Rv=f((e5,Tv)=>{"use strict";Iv();var IR=Ge();Tv.exports=IR("Function","bind")});var Cv=f((t5,kv)=>{"use strict";var TR=Re(),RR=Rv(),il=Function.prototype;kv.exports=function(e){var t=e.bind;return e===il||TR(il,e)&&t===il.bind?RR:t}});var Pv=f((r5,Ov)=>{"use strict";var kR=Cv();Ov.exports=kR});var Dv=f((n5,Nv)=>{Nv.exports=Pv()});var Lv=f((o5,qv)=>{"use strict";qv.exports=function(){}});var zt=f((i5,Uv)=>{"use strict";Uv.exports={}});var al=f((a5,Fv)=>{"use strict";var CR=re(),OR=ge(),Mv=CR.WeakMap;Fv.exports=OR(Mv)&&/native code/.test(String(Mv))});var To=f((s5,Bv)=>{"use strict";var PR=vs(),NR=go(),jv=PR("keys");Bv.exports=function(e){return jv[e]||(jv[e]=NR(e))}});var fn=f((l5,$v)=>{"use strict";$v.exports={}});var hn=f((c5,Vv)=>{"use strict";var DR=al(),Jv=re(),qR=pe(),LR=Kt(),sl=Fe(),ll=en(),UR=To(),MR=fn(),Hv="Object already initialized",cl=Jv.TypeError,FR=Jv.WeakMap,Ro,pn,ko,jR=function(e){return ko(e)?pn(e):Ro(e,{})},BR=function(e){return function(t){var r;if(!qR(t)||(r=pn(t)).type!==e)throw new cl("Incompatible receiver, "+e+" required");return r}};DR||ll.state?(Xe=ll.state||(ll.state=new FR),Xe.get=Xe.get,Xe.has=Xe.has,Xe.set=Xe.set,Ro=function(e,t){if(Xe.has(e))throw new cl(Hv);return t.facade=e,Xe.set(e,t),t},pn=function(e){return Xe.get(e)||{}},ko=function(e){return Xe.has(e)}):(Wt=UR("state"),MR[Wt]=!0,Ro=function(e,t){if(sl(e,Wt))throw new cl(Hv);return t.facade=e,LR(e,Wt,t),t},pn=function(e){return sl(e,Wt)?e[Wt]:{}},ko=function(e){return sl(e,Wt)});var Xe,Wt;Vv.exports={set:Ro,get:pn,has:ko,enforce:jR,getterFor:BR}});var fl=f((u5,Kv)=>{"use strict";var ul=Me(),$R=Fe(),Gv=Function.prototype,HR=ul&&Object.getOwnPropertyDescriptor,dl=$R(Gv,"name"),JR=dl&&(function(){}).name==="something",VR=dl&&(!ul||ul&&HR(Gv,"name").configurable);Kv.exports={EXISTS:dl,PROPER:JR,CONFIGURABLE:VR}});var pl=f((d5,Wv)=>{"use strict";var GR=Pt(),KR=Zs(),zR=hr(),zv=function(e){return function(t,r,n){var o=GR(t),i=zR(o);if(i===0)return!e&&-1;var a=KR(n,i),s;if(e&&r!==r){for(;i>a;)if(s=o[a++],s!==s)return!0}else for(;i>a;a++)if((e||a in o)&&o[a]===r)return e||a||0;return!e&&-1}};Wv.exports={includes:zv(!0),indexOf:zv(!1)}});var ml=f((f5,Qv)=>{"use strict";var WR=fe(),hl=Fe(),YR=Pt(),QR=pl().indexOf,XR=fn(),Yv=WR([].push);Qv.exports=function(e,t){var r=YR(e),n=0,o=[],i;for(i in r)!hl(XR,i)&&hl(r,i)&&Yv(o,i);for(;t.length>n;)hl(r,i=t[n++])&&(~QR(o,i)||Yv(o,i));return o}});var Co=f((p5,Xv)=>{"use strict";Xv.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var vl=f((h5,Zv)=>{"use strict";var ZR=ml(),ek=Co();Zv.exports=Object.keys||function(t){return ZR(t,ek)}});var tg=f(eg=>{"use strict";var tk=Me(),rk=xs(),nk=Dt(),ok=Nt(),ik=Pt(),ak=vl();eg.f=tk&&!rk?Object.defineProperties:function(t,r){ok(t);for(var n=ik(r),o=ak(r),i=o.length,a=0,s;i>a;)nk.f(t,s=o[a++],n[s]);return t}});var ng=f((v5,rg)=>{"use strict";var sk=uo();rg.exports=sk("document","documentElement")});var No=f((g5,ug)=>{"use strict";var lk=Nt(),ck=tg(),og=Co(),uk=fn(),dk=ng(),fk=bs(),pk=To(),ig=">",ag="<",_l="prototype",yl="script",lg=pk("IE_PROTO"),gl=function(){},cg=function(e){return ag+yl+ig+e+ag+"/"+yl+ig},sg=function(e){e.write(cg("")),e.close();var t=e.parentWindow.Object;return e=null,t},hk=function(){var e=fk("iframe"),t="java"+yl+":",r;return e.style.display="none",dk.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(cg("document.F=Object")),r.close(),r.F},Oo,Po=function(){try{Oo=new ActiveXObject("htmlfile")}catch(t){}Po=typeof document!="undefined"?document.domain&&Oo?sg(Oo):hk():sg(Oo);for(var e=og.length;e--;)delete Po[_l][og[e]];return Po()};uk[lg]=!0;ug.exports=Object.create||function(t,r){var n;return t!==null?(gl[_l]=lk(t),n=new gl,gl[_l]=null,n[lg]=t):n=Po(),r===void 0?n:ck.f(n,r)}});var fg=f((_5,dg)=>{"use strict";var mk=Q();dg.exports=!mk(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var wl=f((y5,hg)=>{"use strict";var vk=Fe(),gk=ge(),_k=ur(),yk=To(),bk=fg(),pg=yk("IE_PROTO"),bl=Object,wk=bl.prototype;hg.exports=bk?bl.getPrototypeOf:function(e){var t=_k(e);if(vk(t,pg))return t[pg];var r=t.constructor;return gk(r)&&t instanceof r?r.prototype:t instanceof bl?wk:null}});var Do=f((b5,mg)=>{"use strict";var Ek=Kt();mg.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:Ek(e,t,r),e}});var Sl=f((w5,_g)=>{"use strict";var xk=Q(),Ak=ge(),Sk=pe(),Ik=No(),vg=wl(),Tk=Do(),Rk=ke(),kk=cr(),Al=Rk("iterator"),gg=!1,vt,El,xl;[].keys&&(xl=[].keys(),"next"in xl?(El=vg(vg(xl)),El!==Object.prototype&&(vt=El)):gg=!0);var Ck=!Sk(vt)||xk(function(){var e={};return vt[Al].call(e)!==e});Ck?vt={}:kk&&(vt=Ik(vt));Ak(vt[Al])||Tk(vt,Al,function(){return this});_g.exports={IteratorPrototype:vt,BUGGY_SAFARI_ITERATORS:gg}});var bg=f((E5,yg)=>{"use strict";var Ok=bo(),Pk=mr();yg.exports=Ok?{}.toString:function(){return"[object "+Pk(this)+"]"}});var mn=f((x5,Eg)=>{"use strict";var Nk=bo(),Dk=Dt().f,qk=Kt(),Lk=Fe(),Uk=bg(),Mk=ke(),wg=Mk("toStringTag");Eg.exports=function(e,t,r,n){var o=r?e:e&&e.prototype;o&&(Lk(o,wg)||Dk(o,wg,{configurable:!0,value:t}),n&&!Nk&&qk(o,"toString",Uk))}});var Ag=f((A5,xg)=>{"use strict";var Fk=Sl().IteratorPrototype,jk=No(),Bk=Zr(),$k=mn(),Hk=zt(),Jk=function(){return this};xg.exports=function(e,t,r,n){var o=t+" Iterator";return e.prototype=jk(Fk,{next:Bk(+!n,r)}),$k(e,o,!1,!0),Hk[o]=Jk,e}});var Ig=f((S5,Sg)=>{"use strict";var Vk=fe(),Gk=lr();Sg.exports=function(e,t,r){try{return Vk(Gk(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var Rg=f((I5,Tg)=>{"use strict";var Kk=pe();Tg.exports=function(e){return Kk(e)||e===null}});var Cg=f((T5,kg)=>{"use strict";var zk=Rg(),Wk=String,Yk=TypeError;kg.exports=function(e){if(zk(e))return e;throw new Yk("Can't set "+Wk(e)+" as a prototype")}});var Pg=f((R5,Og)=>{"use strict";var Qk=Ig(),Xk=pe(),Zk=sr(),eC=Cg();Og.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=Qk(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(o,i){return Zk(o),eC(i),Xk(o)&&(e?r(o,i):o.__proto__=i),o}}():void 0)});var Hg=f((k5,$g)=>{"use strict";var tC=ne(),rC=ht(),qo=cr(),jg=fl(),nC=ge(),oC=Ag(),Ng=wl(),Dg=Pg(),iC=mn(),aC=Kt(),Il=Do(),sC=ke(),qg=zt(),Bg=Sl(),lC=jg.PROPER,cC=jg.CONFIGURABLE,Lg=Bg.IteratorPrototype,Lo=Bg.BUGGY_SAFARI_ITERATORS,vn=sC("iterator"),Ug="keys",gn="values",Mg="entries",Fg=function(){return this};$g.exports=function(e,t,r,n,o,i,a){oC(r,t,n);var s=function(v){if(v===o&&h)return h;if(!Lo&&v&&v in d)return d[v];switch(v){case Ug:return function(){return new r(this,v)};case gn:return function(){return new r(this,v)};case Mg:return function(){return new r(this,v)}}return function(){return new r(this)}},l=t+" Iterator",c=!1,d=e.prototype,u=d[vn]||d["@@iterator"]||o&&d[o],h=!Lo&&u||s(o),p=t==="Array"&&d.entries||u,m,g,_;if(p&&(m=Ng(p.call(new e)),m!==Object.prototype&&m.next&&(!qo&&Ng(m)!==Lg&&(Dg?Dg(m,Lg):nC(m[vn])||Il(m,vn,Fg)),iC(m,l,!0,!0),qo&&(qg[l]=Fg))),lC&&o===gn&&u&&u.name!==gn&&(!qo&&cC?aC(d,"name",gn):(c=!0,h=function(){return rC(u,this)})),o)if(g={values:s(gn),keys:i?h:s(Ug),entries:s(Mg)},a)for(_ in g)(Lo||c||!(_ in d))&&Il(d,_,g[_]);else tC({target:t,proto:!0,forced:Lo||c},g);return(!qo||a)&&d[vn]!==h&&Il(d,vn,h,{name:o}),qg[t]=h,g}});var Vg=f((C5,Jg)=>{"use strict";Jg.exports=function(e,t){return{value:e,done:t}}});var Rl=f((O5,Yg)=>{"use strict";var uC=Pt(),Tl=Lv(),Gg=zt(),zg=hn(),dC=Dt().f,fC=Hg(),Uo=Vg(),pC=cr(),hC=Me(),Wg="Array Iterator",mC=zg.set,vC=zg.getterFor(Wg);Yg.exports=fC(Array,"Array",function(e,t){mC(this,{type:Wg,target:uC(e),index:0,kind:t})},function(){var e=vC(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,Uo(void 0,!0);switch(e.kind){case"keys":return Uo(r,!1);case"values":return Uo(t[r],!1)}return Uo([r,t[r]],!1)},"values");var Kg=Gg.Arguments=Gg.Array;Tl("keys");Tl("values");Tl("entries");if(!pC&&hC&&Kg.name!=="values")try{dC(Kg,"name",{value:"values"})}catch(e){}});var Qg=f(()=>{});var kl=f((D5,Xg)=>{"use strict";var gC=Q();Xg.exports=!gC(function(){return Object.isExtensible(Object.preventExtensions({}))})});var Cl=f((q5,Zg)=>{"use strict";var _C=Do();Zg.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:_C(e,n,t[n],r);return e}});var Ol=f(e_=>{"use strict";var yC=ml(),bC=Co(),wC=bC.concat("length","prototype");e_.f=Object.getOwnPropertyNames||function(t){return yC(t,wC)}});var o_=f((U5,n_)=>{"use strict";var EC=pt(),xC=Pt(),t_=Ol().f,AC=cn(),r_=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],SC=function(e){try{return t_(e)}catch(t){return AC(r_)}};n_.exports.f=function(t){return r_&&EC(t)==="Window"?SC(t):t_(xC(t))}});var a_=f((M5,i_)=>{"use strict";var IC=Q();i_.exports=IC(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var c_=f((F5,l_)=>{"use strict";var TC=Q(),RC=pe(),kC=pt(),s_=a_(),Mo=Object.isExtensible,CC=TC(function(){Mo(1)});l_.exports=CC||s_?function(t){return!RC(t)||s_&&kC(t)==="ArrayBuffer"?!1:Mo?Mo(t):!0}:Mo});var Fo=f((j5,f_)=>{"use strict";var OC=ne(),PC=fe(),NC=fn(),DC=pe(),Pl=Fe(),qC=Dt().f,u_=Ol(),LC=o_(),Nl=c_(),UC=go(),MC=kl(),d_=!1,gt=UC("meta"),FC=0,Dl=function(e){qC(e,gt,{value:{objectID:"O"+FC++,weakData:{}}})},jC=function(e,t){if(!DC(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!Pl(e,gt)){if(!Nl(e))return"F";if(!t)return"E";Dl(e)}return e[gt].objectID},BC=function(e,t){if(!Pl(e,gt)){if(!Nl(e))return!0;if(!t)return!1;Dl(e)}return e[gt].weakData},$C=function(e){return MC&&d_&&Nl(e)&&!Pl(e,gt)&&Dl(e),e},HC=function(){JC.enable=function(){},d_=!0;var e=u_.f,t=PC([].splice),r={};r[gt]=1,e(r).length&&(u_.f=function(n){for(var o=e(n),i=0,a=o.length;i<a;i++)if(o[i]===gt){t(o,i,1);break}return o},OC({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:LC.f}))},JC=f_.exports={enable:HC,fastKey:jC,getWeakData:BC,onFreeze:$C};NC[gt]=!0});var h_=f((B5,p_)=>{"use strict";var VC=ke(),GC=zt(),KC=VC("iterator"),zC=Array.prototype;p_.exports=function(e){return e!==void 0&&(GC.Array===e||zC[KC]===e)}});var ql=f(($5,v_)=>{"use strict";var WC=mr(),m_=vo(),YC=ar(),QC=zt(),XC=ke(),ZC=XC("iterator");v_.exports=function(e){if(!YC(e))return m_(e,ZC)||m_(e,"@@iterator")||QC[WC(e)]}});var __=f((H5,g_)=>{"use strict";var eO=ht(),tO=lr(),rO=Nt(),nO=mo(),oO=ql(),iO=TypeError;g_.exports=function(e,t){var r=arguments.length<2?oO(e):t;if(tO(r))return rO(eO(r,e));throw new iO(nO(e)+" is not iterable")}});var w_=f((J5,b_)=>{"use strict";var aO=ht(),y_=Nt(),sO=vo();b_.exports=function(e,t,r){var n,o;y_(e);try{if(n=sO(e,"return"),!n){if(t==="throw")throw r;return r}n=aO(n,e)}catch(i){o=!0,n=i}if(t==="throw")throw r;if(o)throw n;return y_(n),r}});var Ll=f((V5,S_)=>{"use strict";var lO=_o(),cO=ht(),uO=Nt(),dO=mo(),fO=h_(),pO=hr(),E_=Re(),hO=__(),mO=ql(),x_=w_(),vO=TypeError,jo=function(e,t){this.stopped=e,this.result=t},A_=jo.prototype;S_.exports=function(e,t,r){var n=r&&r.that,o=!!(r&&r.AS_ENTRIES),i=!!(r&&r.IS_RECORD),a=!!(r&&r.IS_ITERATOR),s=!!(r&&r.INTERRUPTED),l=lO(t,n),c,d,u,h,p,m,g,_=function(y){return c&&x_(c,"normal",y),new jo(!0,y)},v=function(y){return o?(uO(y),s?l(y[0],y[1],_):l(y[0],y[1])):s?l(y,_):l(y)};if(i)c=e.iterator;else if(a)c=e;else{if(d=mO(e),!d)throw new vO(dO(e)+" is not iterable");if(fO(d)){for(u=0,h=pO(e);h>u;u++)if(p=v(e[u]),p&&E_(A_,p))return p;return new jo(!1)}c=hO(e,d)}for(m=i?e.next:c.next;!(g=cO(m,c)).done;){try{p=v(g.value)}catch(y){x_(c,"throw",y)}if(typeof p=="object"&&p&&E_(A_,p))return p}return new jo(!1)}});var Ul=f((G5,I_)=>{"use strict";var gO=Re(),_O=TypeError;I_.exports=function(e,t){if(gO(t,e))return e;throw new _O("Incorrect invocation")}});var k_=f((K5,R_)=>{"use strict";var yO=ne(),bO=re(),wO=Fo(),EO=Q(),xO=Kt(),AO=Ll(),SO=Ul(),IO=ge(),TO=pe(),RO=ar(),kO=mn(),CO=Dt().f,OO=Lt().forEach,PO=Me(),T_=hn(),NO=T_.set,DO=T_.getterFor;R_.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,o=e.indexOf("Weak")!==-1,i=n?"set":"add",a=bO[e],s=a&&a.prototype,l={},c;if(!PO||!IO(a)||!(o||s.forEach&&!EO(function(){new a().entries().next()})))c=r.getConstructor(t,e,n,i),wO.enable();else{c=t(function(h,p){NO(SO(h,d),{type:e,collection:new a}),RO(p)||AO(p,h[i],{that:h,AS_ENTRIES:n})});var d=c.prototype,u=DO(e);OO(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(h){var p=h==="add"||h==="set";h in s&&!(o&&h==="clear")&&xO(d,h,function(m,g){var _=u(this).collection;if(!p&&o&&!TO(m))return h==="get"?void 0:!1;var v=_[h](m===0?0:m,g);return p?this:v})}),o||CO(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return kO(c,e,!1,!0),l[e]=c,yO({global:!0,forced:!0},l),o||r.setStrong(c,e,n),c}});var L_=f((z5,q_)=>{"use strict";var qO=fe(),C_=Cl(),Bo=Fo().getWeakData,LO=Ul(),UO=Nt(),MO=ar(),Ml=pe(),FO=Ll(),P_=Lt(),O_=Fe(),N_=hn(),jO=N_.set,BO=N_.getterFor,$O=P_.find,HO=P_.findIndex,JO=qO([].splice),VO=0,$o=function(e){return e.frozen||(e.frozen=new D_)},D_=function(){this.entries=[]},Fl=function(e,t){return $O(e.entries,function(r){return r[0]===t})};D_.prototype={get:function(e){var t=Fl(this,e);if(t)return t[1]},has:function(e){return!!Fl(this,e)},set:function(e,t){var r=Fl(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=HO(this.entries,function(r){return r[0]===e});return~t&&JO(this.entries,t,1),!!~t}};q_.exports={getConstructor:function(e,t,r,n){var o=e(function(l,c){LO(l,i),jO(l,{type:t,id:VO++,frozen:null}),MO(c)||FO(c,l[n],{that:l,AS_ENTRIES:r})}),i=o.prototype,a=BO(t),s=function(l,c,d){var u=a(l),h=Bo(UO(c),!0);return h===!0?$o(u).set(c,d):h[u.id]=d,l};return C_(i,{delete:function(l){var c=a(this);if(!Ml(l))return!1;var d=Bo(l);return d===!0?$o(c).delete(l):d&&O_(d,c.id)&&delete d[c.id]},has:function(c){var d=a(this);if(!Ml(c))return!1;var u=Bo(c);return u===!0?$o(d).has(c):u&&O_(u,d.id)}}),C_(i,r?{get:function(c){var d=a(this);if(Ml(c)){var u=Bo(c);if(u===!0)return $o(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)}}),o}}});var J_=f(()=>{"use strict";var GO=kl(),U_=re(),Go=fe(),M_=Cl(),KO=Fo(),zO=k_(),F_=L_(),Ho=pe(),Jo=hn().enforce,WO=Q(),YO=al(),bn=Object,QO=Array.isArray,Vo=bn.isExtensible,j_=bn.isFrozen,XO=bn.isSealed,B_=bn.freeze,ZO=bn.seal,eP=!U_.ActiveXObject&&"ActiveXObject"in U_,_n,$_=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},H_=zO("WeakMap",$_,F_),vr=H_.prototype,Ko=Go(vr.set),tP=function(){return GO&&WO(function(){var e=B_([]);return Ko(new H_,e,1),!j_(e)})};YO&&(eP?(_n=F_.getConstructor($_,"WeakMap",!0),KO.enable(),jl=Go(vr.delete),yn=Go(vr.has),Bl=Go(vr.get),M_(vr,{delete:function(e){if(Ho(e)&&!Vo(e)){var t=Jo(this);return t.frozen||(t.frozen=new _n),jl(this,e)||t.frozen.delete(e)}return jl(this,e)},has:function(t){if(Ho(t)&&!Vo(t)){var r=Jo(this);return r.frozen||(r.frozen=new _n),yn(this,t)||r.frozen.has(t)}return yn(this,t)},get:function(t){if(Ho(t)&&!Vo(t)){var r=Jo(this);return r.frozen||(r.frozen=new _n),yn(this,t)?Bl(this,t):r.frozen.get(t)}return Bl(this,t)},set:function(t,r){if(Ho(t)&&!Vo(t)){var n=Jo(this);n.frozen||(n.frozen=new _n),yn(this,t)?Ko(this,t,r):n.frozen.set(t,r)}else Ko(this,t,r);return this}})):tP()&&M_(vr,{set:function(t,r){var n;return QO(t)&&(j_(t)?n=B_:XO(t)&&(n=ZO)),Ko(this,t,r),n&&n(t),this}}));var jl,yn,Bl});var V_=f(()=>{"use strict";J_()});var K_=f((Z5,G_)=>{"use strict";Rl();Qg();V_();var rP=mt();G_.exports=rP.WeakMap});var W_=f((e3,z_)=>{"use strict";z_.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 Q_=f(()=>{"use strict";Rl();var nP=W_(),oP=re(),iP=mn(),Y_=zt();for(zo in nP)iP(oP[zo],zo),Y_[zo]=Y_.Array;var zo});var Z_=f((n3,X_)=>{"use strict";var aP=K_();Q_();X_.exports=aP});var ty=f((o3,ey)=>{ey.exports=Z_()});var ny=f(()=>{"use strict";var sP=ne(),lP=Xr(),cP=pl().indexOf,uP=sn(),$l=lP([].indexOf),ry=!!$l&&1/$l([1],1,-0)<0,dP=ry||!uP("indexOf");sP({target:"Array",proto:!0,forced:dP},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return ry?$l(this,t,r)||0:cP(this,t,r)}})});var iy=f((s3,oy)=>{"use strict";ny();var fP=Ge();oy.exports=fP("Array","indexOf")});var sy=f((l3,ay)=>{"use strict";var pP=Re(),hP=iy(),Hl=Array.prototype;ay.exports=function(e){var t=e.indexOf;return e===Hl||pP(Hl,e)&&t===Hl.indexOf?hP:t}});var cy=f((c3,ly)=>{"use strict";var mP=sy();ly.exports=mP});var dy=f((u3,uy)=>{uy.exports=cy()});var fy=f(()=>{"use strict";var vP=ne(),gP=Me(),_P=No();vP({target:"Object",stat:!0,sham:!gP},{create:_P})});var hy=f((p3,py)=>{"use strict";fy();var yP=mt(),bP=yP.Object;py.exports=function(t,r){return bP.create(t,r)}});var vy=f((h3,my)=>{"use strict";var wP=hy();my.exports=wP});var _y=f((m3,gy)=>{gy.exports=vy()});var yy=f(()=>{"use strict";var EP=ne(),xP=Lt().map,AP=an(),SP=AP("map");EP({target:"Array",proto:!0,forced:!SP},{map:function(t){return xP(this,t,arguments.length>1?arguments[1]:void 0)}})});var wy=f((_3,by)=>{"use strict";yy();var IP=Ge();by.exports=IP("Array","map")});var xy=f((y3,Ey)=>{"use strict";var TP=Re(),RP=wy(),Jl=Array.prototype;Ey.exports=function(e){var t=e.map;return e===Jl||TP(Jl,e)&&t===Jl.map?RP:t}});var Sy=f((b3,Ay)=>{"use strict";var kP=xy();Ay.exports=kP});var Ty=f((w3,Iy)=>{Iy.exports=Sy()});var ky=f(Ry=>{"use strict";Ry.f=Object.getOwnPropertySymbols});var Ny=f((x3,Py)=>{"use strict";var Cy=Me(),CP=fe(),OP=ht(),PP=Q(),Vl=vl(),NP=ky(),DP=is(),qP=ur(),LP=co(),gr=Object.assign,Oy=Object.defineProperty,UP=CP([].concat);Py.exports=!gr||PP(function(){if(Cy&&gr({b:1},gr(Oy({},"a",{enumerable:!0,get:function(){Oy(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(o){t[o]=o}),gr({},e)[r]!==7||Vl(gr({},t)).join("")!==n})?function(t,r){for(var n=qP(t),o=arguments.length,i=1,a=NP.f,s=DP.f;o>i;)for(var l=LP(arguments[i++]),c=a?UP(Vl(l),a(l)):Vl(l),d=c.length,u=0,h;d>u;)h=c[u++],(!Cy||OP(s,l,h))&&(n[h]=l[h]);return n}:gr});var qy=f(()=>{"use strict";var MP=ne(),Dy=Ny();MP({target:"Object",stat:!0,arity:2,forced:Object.assign!==Dy},{assign:Dy})});var Uy=f((I3,Ly)=>{"use strict";qy();var FP=mt();Ly.exports=FP.Object.assign});var Fy=f((T3,My)=>{"use strict";var jP=Uy();My.exports=jP});var By=f((R3,jy)=>{jy.exports=Fy()});var Gl=f((k3,$y)=>{"use strict";$y.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 Vy=f((C3,Jy)=>{"use strict";var BP=fe(),$P=sr(),HP=rl(),zl=Gl(),Hy=BP("".replace),JP=RegExp("^["+zl+"]+"),VP=RegExp("(^|[^"+zl+"])["+zl+"]+$"),Kl=function(e){return function(t){var r=HP($P(t));return e&1&&(r=Hy(r,JP,"")),e&2&&(r=Hy(r,VP,"$1")),r}};Jy.exports={start:Kl(1),end:Kl(2),trim:Kl(3)}});var Wy=f((O3,zy)=>{"use strict";var GP=fl().PROPER,KP=Q(),Gy=Gl(),Ky="\u200B\x85\u180E";zy.exports=function(e){return KP(function(){return!!Gy[e]()||Ky[e]()!==Ky||GP&&Gy[e].name!==e})}});var Yy=f(()=>{"use strict";var zP=ne(),WP=Vy().trim,YP=Wy();zP({target:"String",proto:!0,forced:YP("trim")},{trim:function(){return WP(this)}})});var Xy=f((D3,Qy)=>{"use strict";Yy();var QP=Ge();Qy.exports=QP("String","trim")});var eb=f((q3,Zy)=>{"use strict";var XP=Re(),ZP=Xy(),Wl=String.prototype;Zy.exports=function(e){var t=e.trim;return typeof e=="string"||e===Wl||XP(Wl,e)&&t===Wl.trim?ZP:t}});var rb=f((L3,tb)=>{"use strict";var eN=eb();tb.exports=eN});var ob=f((U3,nb)=>{nb.exports=rb()});function uc(e,t){oe.__h&&oe.__h(Z,e,xn||t),xn=0;var r=Z.__H||(Z.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function yt(e){return xn=1,tN(Ob,e)}function tN(e,t,r){var n=uc(En++,2);if(n.t=e,!n.__c&&(n.__=[Ob(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 o=function(s,l,c){var d;if(!n.__c.__H)return!0;var u=(0,lc.default)(d=n.__c.__H.__).call(d,function(p){return!!p.__c});if((0,bb.default)(u).call(u,function(p){return!p.__N}))return!i||i.call(this,s,l,c);var h=n.__c.props!==s;return(0,Ae.default)(u).call(u,function(p){if(p.__N){var m=p.__[0];p.__=p.__N,p.__N=void 0,m!==p.__[0]&&(h=!0)}}),i&&i.call(this,s,l,c)||h};Z.__f=!0;var i=Z.shouldComponentUpdate,a=Z.componentWillUpdate;Z.componentWillUpdate=function(s,l,c){if(this.__e){var d=i;i=void 0,o(s,l,c),i=d}a&&a.call(this,s,l,c)},Z.shouldComponentUpdate=o}return n.__N||n.__}function Ut(e,t){var r=uc(En++,3);!oe.__s&&Cb(r.__H,t)&&(r.__=e,r.u=t,Z.__H.__h.push(r))}function ri(e){return xn=5,kb(function(){return{current:e}},[])}function kb(e,t){var r=uc(En++,7);return Cb(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Ke(e,t){return xn=8,kb(function(){return e},t)}function rN(){for(var e;e=Rb.shift();)if(e.__P&&e.__H)try{var t,r;(0,Ae.default)(t=e.__H.__h).call(t,Yo),(0,Ae.default)(r=e.__H.__h).call(r,nc),e.__H.__h=[]}catch(n){e.__H.__h=[],oe.__e(n,e.__v)}}function nN(e){var t,r=function(){clearTimeout(n),fb&&cancelAnimationFrame(t),(0,tc.default)(e)},n=(0,tc.default)(r,100);fb&&(t=requestAnimationFrame(r))}function Yo(e){var t=Z,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),Z=t}function nc(e){var t=Z;e.__c=e.__(),Z=t}function Cb(e,t){return!e||e.length!==t.length||(0,ei.default)(t).call(t,function(r,n){return r!==e[n]})}function Ob(e,t){return typeof t=="function"?t(e):t}function b(e,t,r,n,o,i){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:--oN,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return C.vnode&&C.vnode(c),c}function lN(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 cN(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 mN(e,t){return _e(e,0)^45?(((t<<2^_e(e,0))<<2^_e(e,1))<<2^_e(e,2))<<2^_e(e,3):0}function Db(e){return(0,Tb.default)(e).call(e)}function vN(e,t){return(e=t.exec(e))?e[0]:e}function M(e,t,r){return e.replace(t,r)}function oc(e,t){return(0,cc.default)(e).call(e,t)}function _e(e,t){return e.charCodeAt(t)|0}function An(e,t,r){return(0,Eb.default)(e).call(e,t,r)}function at(e){return e.length}function pc(e){return e.length}function Wo(e,t){return t.push(e),e}function gN(e,t){return(0,Sb.default)(e).call(e,t).join("")}function si(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:ai,column:br,length:a,return:""}}function wn(e,t){return hN(si("",null,null,"",null,null,0),e,{length:-e.length},t)}function _N(){return ie}function yN(){return ie=Pe>0?_e(wr,--Pe):0,br--,ie===10&&(br=1,ai--),ie}function je(){return ie=Pe<qb?_e(wr,Pe++):0,br++,ie===10&&(br=1,ai++),ie}function st(){return _e(wr,Pe)}function Qo(){return Pe}function In(e,t){return An(wr,e,t)}function Sn(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 Lb(e){return ai=br=1,qb=at(wr=e),Pe=0,[]}function Ub(e){return wr="",e}function Xo(e){return Db(In(Pe-1,ic(e===91?e+2:e===40?e+1:e)))}function bN(e){for(;(ie=st())&&ie<33;)je();return Sn(e)>2||Sn(ie)>3?"":" "}function wN(e,t){for(;--t&&je()&&!(ie<48||ie>102||ie>57&&ie<65||ie>70&&ie<97););return In(e,Qo()+(t<6&&st()==32&&je()==32))}function ic(e){for(;je();)switch(ie){case e:return Pe;case 34:case 39:e!==34&&e!==39&&ic(ie);break;case 40:e===41&&ic(e);break;case 92:je();break}return Pe}function EN(e,t){for(;je()&&e+ie!==57&&!(e+ie===84&&st()===47););return"/*"+In(t,Pe-1)+"*"+ii(e===47?e:je())}function xN(e){for(;!Sn(st());)je();return In(e,Pe)}function AN(e){return Ub(Zo("",null,null,null,[""],e=Lb(e),0,[0],e))}function Zo(e,t,r,n,o,i,a,s,l){for(var c=0,d=0,u=a,h=0,p=0,m=0,g=1,_=1,v=1,y=0,A="",k=o,O=i,I=n,w=A;_;)switch(m=y,y=je()){case 40:if(m!=108&&_e(w,u-1)==58){oc(w+=M(Xo(y),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:w+=Xo(y);break;case 9:case 10:case 13:case 32:w+=bN(m);break;case 92:w+=wN(Qo()-1,7);continue;case 47:switch(st()){case 42:case 47:Wo(SN(EN(je(),Qo()),t,r),l);break;default:w+="/"}break;case 123*g:s[c++]=at(w)*v;case 125*g:case 59:case 0:switch(y){case 0:case 125:_=0;case 59+d:v==-1&&(w=M(w,/\f/g,"")),p>0&&at(w)-u&&Wo(p>32?hb(w+";",n,r,u-1):hb(M(w," ","")+";",n,r,u-2),l);break;case 59:w+=";";default:if(Wo(I=pb(w,t,r,c,d,o,s,A,k=[],O=[],u),i),y===123)if(d===0)Zo(w,t,I,I,k,i,u,s,O);else switch(h===99&&_e(w,3)===110?100:h){case 100:case 108:case 109:case 115:Zo(e,I,I,n&&Wo(pb(e,I,I,0,0,o,s,A,o,k=[],u),O),o,O,u,s,n?k:O);break;default:Zo(w,I,I,I,[""],O,0,s,O)}}c=d=p=0,g=v=1,A=w="",u=a;break;case 58:u=1+at(w),p=m;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&yN()==125)continue}switch(w+=ii(y),y*g){case 38:v=d>0?1:(w+="\f",-1);break;case 44:s[c++]=(at(w)-1)*v,v=1;break;case 64:st()===45&&(w+=Xo(je())),h=st(),d=u=at(A=w+=xN(Qo())),y++;break;case 45:m===45&&at(w)==2&&(g=0)}}return i}function pb(e,t,r,n,o,i,a,s,l,c,d){for(var u=o-1,h=o===0?i:[""],p=pc(h),m=0,g=0,_=0;m<n;++m)for(var v=0,y=An(e,u+1,u=pN(g=a[m])),A=e;v<p;++v)(A=Db(g>0?h[v]+" "+y:M(y,/&\f/g,h[v])))&&(l[_++]=A);return si(e,t,r,o===0?dc:s,l,c,d)}function SN(e,t,r){return si(e,t,r,Pb,ii(_N()),An(e,2,-2),0)}function hb(e,t,r,n){return si(e,t,r,fc,An(e,0,n),An(e,n+1,-1),n)}function yr(e,t){for(var r="",n=pc(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function IN(e,t,r,n){switch(e.type){case fN:if(e.children.length)break;case dN:case fc:return e.return=e.return||e.value;case Pb:return"";case Nb:return e.return=e.value+"{"+yr(e.children,n)+"}";case dc:e.value=e.props.join(",")}return at(r=yr(e.children,n))?e.return=e.value+"{"+r+"}":""}function TN(e){var t=pc(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}function RN(e){return function(t){t.root||(t=t.return)&&e(t)}}function kN(e){var t=(0,Ab.default)(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function Mb(e,t){switch(mN(e,t)){case 5103:return U+"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 U+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return U+e+ni+e+xe+e+e;case 6828:case 4268:return U+e+xe+e+e;case 6165:return U+e+xe+"flex-"+e+e;case 5187:return U+e+M(e,/(\w+).+(:[^]+)/,U+"box-$1$2"+xe+"flex-$1$2")+e;case 5443:return U+e+xe+"flex-item-"+M(e,/flex-|-self/,"")+e;case 4675:return U+e+xe+"flex-line-pack"+M(e,/align-content|flex-|-self/,"")+e;case 5548:return U+e+xe+M(e,"shrink","negative")+e;case 5292:return U+e+xe+M(e,"basis","preferred-size")+e;case 6060:return U+"box-"+M(e,"-grow","")+U+e+xe+M(e,"grow","positive")+e;case 4554:return U+M(e,/([^-])(transform)/g,"$1"+U+"$2")+e;case 6187:return M(M(M(e,/(zoom-|grab)/,U+"$1"),/(image-set)/,U+"$1"),e,"")+e;case 5495:case 3959:return M(e,/(image-set\([^]*)/,U+"$1$`$1");case 4968:return M(M(e,/(.+:)(flex-)?(.*)/,U+"box-pack:$3"+xe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+U+e+e;case 4095:case 3583:case 4068:case 2532:return M(e,/(.+)-inline(.+)/,U+"$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(_e(e,t+1)){case 109:if(_e(e,t+4)!==45)break;case 102:return M(e,/(.+:)(.+)-([^]+)/,"$1"+U+"$2-$3$1"+ni+(_e(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~oc(e,"stretch")?Mb(M(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(_e(e,t+1)!==115)break;case 6444:switch(_e(e,at(e)-3-(~oc(e,"!important")&&10))){case 107:return M(e,":",":"+U)+e;case 101:return M(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+U+(_e(e,14)===45?"inline-":"")+"box$3$1"+U+"$2$3$1"+xe+"$2box$3")+e}break;case 5936:switch(_e(e,t+11)){case 114:return U+e+xe+M(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return U+e+xe+M(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return U+e+xe+M(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return U+e+xe+e+e}return e}function MN(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=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(o){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 oi(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 o=r;if(o.anim===1)return Mt={name:o.name,styles:o.styles,next:Mt},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)Mt={name:a.name,styles:a.styles,next:Mt},a=a.next;var s=i.styles+";";return s}return $N(e,t,r)}}var l=r;if(t==null)return l;var c=t[l];return c!==void 0?c:l}function $N(e,t,r){var n="";if((0,ti.default)(r))for(var o=0;o<r.length;o++)n+=oi(e,t,r[o])+";";else for(var i in r){var a=r[i];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=i+"{"+t[s]+"}":vb(s)&&(n+=Xl(i)+":"+gb(i,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++)vb(a[l])&&(n+=Xl(i)+":"+gb(i,a[l])+";");else{var c=oi(e,t,a);switch(i){case"animation":case"animationName":{n+=Xl(i)+":"+c+";";break}default:n+=i+"{"+c+"}"}}}return n}function Zl(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,o="";Mt=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=oi(r,t,i);else{var a=i;o+=a[0]}for(var s=1;s<e.length;s++)if(o+=oi(r,t,e[s]),n){var l=i;o+=l[s]}_b.lastIndex=0;for(var c="",d;(d=_b.exec(o))!==null;)c+="-"+d[1];var u=MN(o)+c;return{name:u,styles:o,next:Mt}}function ac(e,t,r){var n,o="";return(0,Ae.default)(n=r.split(" ")).call(n,function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(o+=i+" ")}),o}function yb(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function ec(e,t,r){var n=[],o=ac(e,n,r);return n.length<2?r:o+t(n)}function hc(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=yt(e());return Ut(()=>{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 YN(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,o]=r,i=-Math.atan2(o,n)*(180/Math.PI),a=Math.round(i);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 jb(e){let t=window.getComputedStyle(document.body).transform,r="";t&&t!=="none"&&(r=YN(t)),e.style.transform=r,e.style.transformOrigin="0 0"}function QN(e){let t=()=>jb(e);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}}function ZN(s){var l=s,{elementTag:e="Image",src:t="",children:r,handleExposure:n,className:o,imgStyle:i}=l,a=et(l,["elementTag","src","children","handleExposure","className","imgStyle"]);let c=XN(()=>{t&&n()});return e==="Image"?b("div",{className:o,style:{borderRadius:"8px"},children:ot("img",q(R({},a),{ref:c,src:t!=null?t:"",style:R({display:"block",width:"100%",height:"auto",objectFit:"cover",maxWidth:"100%",maxHeight:"100%",aspectRatio:"1 / 1",borderRadius:"8px"},i||{})}))}):b("div",q(R({},a),{ref:c,className:o,children:r}))}function eD(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((o,i)=>o&&typeof o=="object"&&"type"in o?ot(o.type,q(R({},o.props),{style:q(R({},o.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:o.key||i})):o):e&&typeof e=="object"&&"type"in e?ot(e.type,q(R({},e.props),{style:q(R({},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}var lc,bb,Ae,wb,ei,tc,Eb,ti,j3,rc,xb,cc,Ab,Sb,Ib,Tb,En,Z,Yl,ib,xn,Rb,oe,ab,sb,lb,cb,ub,db,fb,oN,Ql,iN,aN,sN,uN,xe,ni,U,Pb,dc,fc,dN,Nb,fN,pN,ii,hN,ai,br,qb,Pe,ie,wr,CN,ON,PN,mb,NN,DN,qN,LN,UN,FN,jN,BN,Fb,vb,Xl,gb,_b,Mt,HN,JN,VN,GN,KN,N,zN,WN,mc,XN,Bb,$b,Hb,tD,rD,nD,sc,oD,Jb,Er,_t,Vb,_r,iD,aD,sD,lD,cD,W,uD,dD,Gb,Kb,zb,Wb,fD,pD,Yb,li=T(()=>{"use strict";or();lc=ue(eh(),1),bb=ue(uh(),1),Ae=ue(xh(),1),wb=ue(Mh(),1),ei=ue(Kh(),1),tc=ue(dm(),1);Xs();Eb=ue(zm(),1),ti=ue(tv(),1),j3=ue(yv(),1),rc=ue(Dv(),1),xb=ue(ty(),1),cc=ue(dy(),1),Ab=ue(_y(),1),Sb=ue(Ty(),1),Ib=ue(By(),1),Tb=ue(ob(),1),xn=0,Rb=[],oe=C,ab=oe.__b,sb=oe.__r,lb=oe.diffed,cb=oe.__c,ub=oe.unmount,db=oe.__;oe.__b=function(e){Z=null,ab&&ab(e)},oe.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),db&&db(e,t)},oe.__r=function(e){var t,r,n;sb&&sb(e),En=0;var o=(Z=e.__c).__H;o&&(Yl===Z?(o.__h=[],Z.__h=[],(0,Ae.default)(t=o.__).call(t,function(i){i.__N&&(i.__=i.__N),i.u=i.__N=void 0})):((0,Ae.default)(r=o.__h).call(r,Yo),(0,Ae.default)(n=o.__h).call(n,nc),o.__h=[],En=0)),Yl=Z},oe.diffed=function(e){var t;lb&&lb(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(Rb.push(r)!==1&&ib===oe.requestAnimationFrame||((ib=oe.requestAnimationFrame)||nN)(rN)),(0,Ae.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),Yl=Z=null},oe.__c=function(e,t){(0,ei.default)(t).call(t,function(r){try{var n,o;(0,Ae.default)(n=r.__h).call(n,Yo),r.__h=(0,lc.default)(o=r.__h).call(o,function(i){return!i.__||nc(i)})}catch(i){(0,ei.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],oe.__e(i,r.__v)}}),cb&&cb(e,t)},oe.unmount=function(e){var t;ub&&ub(e);var r,n=e.__c;n&&n.__H&&((0,Ae.default)(t=n.__H.__).call(t,function(o){try{Yo(o)}catch(i){r=i}}),n.__H=void 0,r&&oe.__e(r,n.__v))};fb=typeof requestAnimationFrame=="function";oN=0;Ql={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:"white",borderRadius:"16px 16px 0 0",width:"100%",maxWidth:"100%",overflowY:"auto",position:"relative",boxShadow:"0 -2px 10px rgba(0, 0, 0, 0.1)",display:"flex",flexDirection:"column",margin:"0 auto"},drawerContent:{flex:1,width:"100%",height:"100%",overflow:"auto",margin:"0 auto"}},iN=`
19
+ `;e.textContent=a;let s=document.head||document.getElementsByTagName("head")[0];s.insertBefore(t,s.firstChild),s.insertBefore(e,s.firstChild),document.documentElement.setAttribute("data-jolibox-root","")},i=()=>{function a(l){return x(this,null,function*(){let c=l instanceof URL?l.href:l,d=new Promise((u,p)=>{let f=new XMLHttpRequest;f.open("GET",c),f.responseType="arraybuffer",f.addEventListener("load",()=>u(f.response)),f.addEventListener("error",p),f.send()});try{let u=yield d;return new Response(u,{headers:new Headers([["Content-Type","application/wasm"]])}).clone()}catch(u){throw console.error("Failed to load wasm:",u),u}})}let s=window.fetch;window.fetch=(l,c)=>{let d=l instanceof URL?l.href:l.toString();return d.endsWith(".wasm")?a(d):s(l,c)}},o=()=>{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"),window.fetch=r};return n(),i(),o}var Pp=I(()=>{"use strict"});var Np=I(()=>{"use strict"});var Dp=I(()=>{"use strict";N();ll()});var qp=I(()=>{"use strict";se()});var co,_l=I(()=>{"use strict";Np();Dp();se();qp();N();co=new mt});function Nt(e,t){for(var r in t)e[r]=t[r];return e}function Sl(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Ne(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?ho.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 fo(e,a,n,i,null)}function fo(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?++Mp:i,__i:-1,__u:0};return i==null&&C.vnode!=null&&C.vnode(o),o}function We(e){return e.children}function Ke(e,t){this.props=e,this.context=t}function qr(e,t){if(t==null)return e.__?qr(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"?qr(e):null}function Vp(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 Vp(e)}}function El(e){(!e.__d&&(e.__d=!0)&&gr.push(e)&&!po.__r++||Lp!==C.debounceRendering)&&((Lp=C.debounceRendering)||Fp)(po)}function po(){for(var e,t,r,n,i,o,a,s=1;gr.length;)gr.length>s&&gr.sort(Bp),e=gr.shift(),s=gr.length,e.__d&&(r=void 0,i=(n=(t=e).__v).__e,o=[],a=[],t.__P&&((r=Nt({},n)).__v=n.__v+1,C.vnode&&C.vnode(r),Il(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[i]:null,o,i==null?qr(n):i,!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,Kp(o,r,a),r.__e!=i&&Vp(r)));po.__r=0}function zp(e,t,r,n,i,o,a,s,l,c,d){var u,p,f,m,g,_,v=n&&n.__k||Hp,b=t.length;for(l=ik(r,t,v,l,b),u=0;u<b;u++)(f=r.__k[u])!=null&&(p=f.__i===-1?Ln:v[f.__i]||Ln,f.__i=u,_=Il(e,f,p,i,o,a,s,l,c,d),m=f.__e,f.ref&&p.ref!=f.ref&&(p.ref&&kl(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=Gp(f,l,e):typeof f.type=="function"&&_!==void 0?l=_:m&&(l=m.nextSibling),f.__u&=-7);return r.__e=g,l}function ik(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?fo(null,a,null,null,null):Un(a)?fo(We,{children:a},null,null,null):a.constructor===void 0&&a.__b>0?fo(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=ok(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=qr(s)),Yp(s,s));return n}function Gp(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=Gp(n[i],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=qr(e)),r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType==8);return t}function jn(e,t){return t=t||[],e==null||typeof e=="boolean"||(Un(e)?e.some(function(r){jn(r,t)}):t.push(e)),t}function ok(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 Up(e,t,r){t[0]=="-"?e.setProperty(t,r==null?"":r):e[t]=r==null?"":typeof r!="number"||nk.test(t)?r:r+"px"}function uo(e,t,r,n,i){var o;e:if(t=="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof n=="string"&&(e.style.cssText=n=""),n)for(t in n)r&&t in r||Up(e.style,t,"");if(r)for(t in r)n&&r[t]===n[t]||Up(e.style,t,r[t])}else if(t[0]=="o"&&t[1]=="n")o=t!=(t=t.replace($p,"$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=Al,e.addEventListener(t,o?wl:bl,o)):e.removeEventListener(t,o?wl:bl,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 jp(e){return function(t){if(this.l){var r=this.l[t.type+e];if(t.u==null)t.u=Al++;else if(t.u<r.t)return;return r(C.event?C.event(t):t)}}}function Il(e,t,r,n,i,o,a,s,l,c){var d,u,p,f,m,g,_,v,b,E,k,O,R,y,J,et,Pr,tt=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(l=!!(32&r.__u),o=[s=t.__e=r.__e]),(d=C.__b)&&d(t);e:if(typeof tt=="function")try{if(v=t.props,b="prototype"in tt&&tt.prototype.render,E=(d=tt.contextType)&&n[d.__c],k=d?E?E.props.value:d.__:n,r.__c?_=(u=t.__c=r.__c).__=u.__E:(b?t.__c=u=new tt(v,k):(t.__c=u=new Ke(v,k),u.constructor=tt,u.render=sk),E&&E.sub(u),u.props=v,u.state||(u.state={}),u.context=k,u.__n=n,p=u.__d=!0,u.__h=[],u._sb=[]),b&&u.__s==null&&(u.__s=u.state),b&&tt.getDerivedStateFromProps!=null&&(u.__s==u.state&&(u.__s=Nt({},u.__s)),Nt(u.__s,tt.getDerivedStateFromProps(v,u.__s))),f=u.props,m=u.state,u.__v=t,p)b&&tt.getDerivedStateFromProps==null&&u.componentWillMount!=null&&u.componentWillMount(),b&&u.componentDidMount!=null&&u.__h.push(u.componentDidMount);else{if(b&&tt.getDerivedStateFromProps==null&&v!==f&&u.componentWillReceiveProps!=null&&u.componentWillReceiveProps(v,k),!u.__e&&(u.shouldComponentUpdate!=null&&u.shouldComponentUpdate(v,u.__s,k)===!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(hr){hr&&(hr.__=t)}),O=0;O<u._sb.length;O++)u.__h.push(u._sb[O]);u._sb=[],u.__h.length&&a.push(u);break e}u.componentWillUpdate!=null&&u.componentWillUpdate(v,u.__s,k),b&&u.componentDidUpdate!=null&&u.__h.push(function(){u.componentDidUpdate(f,m,g)})}if(u.context=k,u.props=v,u.__P=e,u.__e=!1,R=C.__r,y=0,b){for(u.state=u.__s,u.__d=!1,R&&R(t),d=u.render(u.props,u.state,u.context),J=0;J<u._sb.length;J++)u.__h.push(u._sb[J]);u._sb=[]}else do u.__d=!1,R&&R(t),d=u.render(u.props,u.state,u.context),u.state=u.__s;while(u.__d&&++y<25);u.state=u.__s,u.getChildContext!=null&&(n=Nt(Nt({},n),u.getChildContext())),b&&!p&&u.getSnapshotBeforeUpdate!=null&&(g=u.getSnapshotBeforeUpdate(f,m)),et=d,d!=null&&d.type===We&&d.key==null&&(et=Wp(d.props.children)),s=zp(e,Un(et)?et:[et],t,r,n,i,o,a,s,l,c),u.base=t.__e,t.__u&=-161,u.__h.length&&a.push(u),_&&(u.__E=u.__=null)}catch(hr){if(t.__v=null,l||o!=null)if(hr.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(Pr=o.length;Pr--;)Sl(o[Pr]);else t.__e=r.__e,t.__k=r.__k;C.__e(hr,t,r)}else o==null&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=ak(r.__e,t,r,n,i,o,a,l,c);return(d=C.diffed)&&d(t),128&t.__u?void 0:s}function Kp(e,t,r){for(var n=0;n<r.length;n++)kl(r[n],r[++n],r[++n]);C.__c&&C.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){C.__e(o,i.__v)}})}function Wp(e){return typeof e!="object"||e==null?e:Un(e)?e.map(Wp):Nt({},e)}function ak(e,t,r,n,i,o,a,s,l){var c,d,u,p,f,m,g,_=r.props,v=t.props,b=t.type;if(b=="svg"?i="http://www.w3.org/2000/svg":b=="math"?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),o!=null){for(c=0;c<o.length;c++)if((f=o[c])&&"setAttribute"in f==!!b&&(b?f.localName==b:f.nodeType==3)){e=f,o[c]=null;break}}if(e==null){if(b==null)return document.createTextNode(v);e=document.createElementNS(i,b,v.is&&v),s&&(C.__m&&C.__m(t,o),s=!1),o=null}if(b===null)_===v||s&&e.data===v||(e.data=v);else{if(o=o&&ho.call(e.childNodes),_=r.props||Ln,!s&&o!=null)for(_={},c=0;c<e.attributes.length;c++)_[(f=e.attributes[c]).name]=f.value;for(c in _)if(f=_[c],c!="children"){if(c=="dangerouslySetInnerHTML")u=f;else if(!(c in v)){if(c=="value"&&"defaultValue"in v||c=="checked"&&"defaultChecked"in v)continue;uo(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"||_[c]===f||uo(e,c,f,_[c],i);if(d)s||u&&(d.__html===u.__html||d.__html===e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(u&&(e.innerHTML=""),zp(t.type==="template"?e.content:e,Un(p)?p:[p],t,r,n,b=="foreignObject"?"http://www.w3.org/1999/xhtml":i,o,a,o?o[0]:r.__k&&qr(r,0),s,l),o!=null)for(c=o.length;c--;)Sl(o[c]);s||(c="value",b=="progress"&&m==null?e.removeAttribute("value"):m!==void 0&&(m!==e[c]||b=="progress"&&!m||b=="option"&&m!==_[c])&&uo(e,c,m,_[c],i),c="checked",g!==void 0&&g!==e[c]&&uo(e,c,g,_[c],i))}return e}function kl(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){C.__e(i,r)}}function Yp(e,t,r){var n,i;if(C.unmount&&C.unmount(e),(n=e.ref)&&(n.current&&n.current!==e.__e||kl(n,null,t)),(n=e.__c)!=null){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(o){C.__e(o,t)}n.base=n.__P=null}if(n=e.__k)for(i=0;i<n.length;i++)n[i]&&Yp(n[i],t,r||typeof e.type!="function");r||Sl(e.__e),e.__c=e.__=e.__e=void 0}function sk(e,t,r){return this.constructor(e,r)}function Lr(e,t,r){var n,i,o,a;t==document&&(t=document.documentElement),C.__&&C.__(e,t),i=(n=typeof r=="function")?null:r&&r.__k||t.__k,o=[],a=[],Il(t,e=(!n&&r||t).__k=Ne(We,null,[e]),i||Ln,Ln,t.namespaceURI,!n&&r?[r]:i?null:t.firstChild?ho.call(t.childNodes):null,o,!n&&r?r:i?i.__e:t.firstChild,n,a),Kp(o,e,a)}function yr(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,El(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"+Jp++,t.__=e,t.Provider=t.__l=(t.Consumer=function(r,n){return r.children(n)}).contextType=t,t}var ho,C,Mp,xl,gr,Lp,Fp,Bp,$p,Al,bl,wl,Jp,Ln,Hp,nk,Un,Ur=I(()=>{Ln={},Hp=[],nk=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Un=Array.isArray;ho=Hp.slice,C={__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}},Mp=0,xl=function(e){return e!=null&&e.constructor==null},Ke.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Nt({},this.state),typeof e=="function"&&(e=e(Nt({},r),this.props)),e&&Nt(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),El(this))},Ke.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),El(this))},Ke.prototype.render=We,gr=[],Fp=typeof Promise=="function"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Bp=function(e,t){return e.__v.__b-t.__v.__b},po.__r=0,$p=/(PointerCapture)$|Capture$/i,Al=0,bl=jp(!1),wl=jp(!0),Jp=0});var ie=h((GJ,Qp)=>{"use strict";Qp.exports=function(e){try{return!!e()}catch(t){return!0}}});var jr=h((KJ,Xp)=>{"use strict";var lk=ie();Xp.exports=!lk(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")})});var he=h((WJ,th)=>{"use strict";var Zp=jr(),eh=Function.prototype,Tl=eh.call,ck=Zp&&eh.bind.bind(Tl,Tl);th.exports=Zp?ck:function(e){return function(){return Tl.apply(e,arguments)}}});var Fe=h((YJ,rh)=>{"use strict";var uk=he();rh.exports=uk({}.isPrototypeOf)});var oe=h((Rl,nh)=>{"use strict";var Mn=function(e){return e&&e.Math===Math&&e};nh.exports=Mn(typeof globalThis=="object"&&globalThis)||Mn(typeof window=="object"&&window)||Mn(typeof self=="object"&&self)||Mn(typeof global=="object"&&global)||Mn(typeof Rl=="object"&&Rl)||function(){return this}()||Function("return this")()});var Cl=h((QJ,sh)=>{"use strict";var dk=jr(),ah=Function.prototype,ih=ah.apply,oh=ah.call;sh.exports=typeof Reflect=="object"&&Reflect.apply||(dk?oh.bind(ih):function(){return oh.apply(ih,arguments)})});var Dt=h((XJ,ch)=>{"use strict";var lh=he(),fk=lh({}.toString),pk=lh("".slice);ch.exports=function(e){return pk(fk(e),8,-1)}});var Fn=h((ZJ,uh)=>{"use strict";var hk=Dt(),mk=he();uh.exports=function(e){if(hk(e)==="Function")return mk(e)}});var Se=h((eH,dh)=>{"use strict";var Ol=typeof document=="object"&&document.all;dh.exports=typeof Ol=="undefined"&&Ol!==void 0?function(e){return typeof e=="function"||e===Ol}:function(e){return typeof e=="function"}});var Be=h((tH,fh)=>{"use strict";var vk=ie();fh.exports=!vk(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var ct=h((rH,ph)=>{"use strict";var gk=jr(),mo=Function.prototype.call;ph.exports=gk?mo.bind(mo):function(){return mo.apply(mo,arguments)}});var Pl=h(vh=>{"use strict";var hh={}.propertyIsEnumerable,mh=Object.getOwnPropertyDescriptor,yk=mh&&!hh.call({1:2},1);vh.f=yk?function(t){var r=mh(this,t);return!!r&&r.enumerable}:hh});var Bn=h((iH,gh)=>{"use strict";gh.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}});var vo=h((oH,yh)=>{"use strict";var _k=he(),bk=ie(),wk=Dt(),Nl=Object,Ek=_k("".split);yh.exports=bk(function(){return!Nl("z").propertyIsEnumerable(0)})?function(e){return wk(e)==="String"?Ek(e,""):Nl(e)}:Nl});var _r=h((aH,_h)=>{"use strict";_h.exports=function(e){return e==null}});var br=h((sH,bh)=>{"use strict";var xk=_r(),Ak=TypeError;bh.exports=function(e){if(xk(e))throw new Ak("Can't call method on "+e);return e}});var er=h((lH,wh)=>{"use strict";var Sk=vo(),Ik=br();wh.exports=function(e){return Sk(Ik(e))}});var we=h((cH,Eh)=>{"use strict";var kk=Se();Eh.exports=function(e){return typeof e=="object"?e!==null:kk(e)}});var vt=h((uH,xh)=>{"use strict";xh.exports={}});var Mr=h((dH,Sh)=>{"use strict";var Dl=vt(),ql=oe(),Tk=Se(),Ah=function(e){return Tk(e)?e:void 0};Sh.exports=function(e,t){return arguments.length<2?Ah(Dl[e])||Ah(ql[e]):Dl[e]&&Dl[e][t]||ql[e]&&ql[e][t]}});var go=h((fH,Th)=>{"use strict";var Rk=oe(),Ih=Rk.navigator,kh=Ih&&Ih.userAgent;Th.exports=kh?String(kh):""});var _o=h((pH,Dh)=>{"use strict";var Nh=oe(),Ll=go(),Rh=Nh.process,Ch=Nh.Deno,Oh=Rh&&Rh.versions||Ch&&Ch.version,Ph=Oh&&Oh.v8,ut,yo;Ph&&(ut=Ph.split("."),yo=ut[0]>0&&ut[0]<4?1:+(ut[0]+ut[1]));!yo&&Ll&&(ut=Ll.match(/Edge\/(\d+)/),(!ut||ut[1]>=74)&&(ut=Ll.match(/Chrome\/(\d+)/),ut&&(yo=+ut[1])));Dh.exports=yo});var Ul=h((hH,Lh)=>{"use strict";var qh=_o(),Ck=ie(),Ok=oe(),Pk=Ok.String;Lh.exports=!!Object.getOwnPropertySymbols&&!Ck(function(){var e=Symbol("symbol detection");return!Pk(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&qh&&qh<41})});var jl=h((mH,Uh)=>{"use strict";var Nk=Ul();Uh.exports=Nk&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Ml=h((vH,jh)=>{"use strict";var Dk=Mr(),qk=Se(),Lk=Fe(),Uk=jl(),jk=Object;jh.exports=Uk?function(e){return typeof e=="symbol"}:function(e){var t=Dk("Symbol");return qk(t)&&Lk(t.prototype,jk(e))}});var $n=h((gH,Mh)=>{"use strict";var Mk=String;Mh.exports=function(e){try{return Mk(e)}catch(t){return"Object"}}});var wr=h((yH,Fh)=>{"use strict";var Fk=Se(),Bk=$n(),$k=TypeError;Fh.exports=function(e){if(Fk(e))return e;throw new $k(Bk(e)+" is not a function")}});var bo=h((_H,Bh)=>{"use strict";var Jk=wr(),Hk=_r();Bh.exports=function(e,t){var r=e[t];return Hk(r)?void 0:Jk(r)}});var Jh=h((bH,$h)=>{"use strict";var Fl=ct(),Bl=Se(),$l=we(),Vk=TypeError;$h.exports=function(e,t){var r,n;if(t==="string"&&Bl(r=e.toString)&&!$l(n=Fl(r,e))||Bl(r=e.valueOf)&&!$l(n=Fl(r,e))||t!=="string"&&Bl(r=e.toString)&&!$l(n=Fl(r,e)))return n;throw new Vk("Can't convert object to primitive value")}});var Fr=h((wH,Hh)=>{"use strict";Hh.exports=!0});var Gh=h((EH,zh)=>{"use strict";var Vh=oe(),zk=Object.defineProperty;zh.exports=function(e,t){try{zk(Vh,e,{value:t,configurable:!0,writable:!0})}catch(r){Vh[e]=t}return t}});var Jn=h((xH,Yh)=>{"use strict";var Gk=Fr(),Kk=oe(),Wk=Gh(),Kh="__core-js_shared__",Wh=Yh.exports=Kk[Kh]||Wk(Kh,{});(Wh.versions||(Wh.versions=[])).push({version:"3.41.0",mode:Gk?"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 Jl=h((AH,Xh)=>{"use strict";var Qh=Jn();Xh.exports=function(e,t){return Qh[e]||(Qh[e]=t||{})}});var Br=h((SH,Zh)=>{"use strict";var Yk=br(),Qk=Object;Zh.exports=function(e){return Qk(Yk(e))}});var Ye=h((IH,em)=>{"use strict";var Xk=he(),Zk=Br(),eT=Xk({}.hasOwnProperty);em.exports=Object.hasOwn||function(t,r){return eT(Zk(t),r)}});var wo=h((kH,tm)=>{"use strict";var tT=he(),rT=0,nT=Math.random(),iT=tT(1 .toString);tm.exports=function(e){return"Symbol("+(e===void 0?"":e)+")_"+iT(++rT+nT,36)}});var De=h((TH,nm)=>{"use strict";var oT=oe(),aT=Jl(),rm=Ye(),sT=wo(),lT=Ul(),cT=jl(),$r=oT.Symbol,Hl=aT("wks"),uT=cT?$r.for||$r:$r&&$r.withoutSetter||sT;nm.exports=function(e){return rm(Hl,e)||(Hl[e]=lT&&rm($r,e)?$r[e]:uT("Symbol."+e)),Hl[e]}});var sm=h((RH,am)=>{"use strict";var dT=ct(),im=we(),om=Ml(),fT=bo(),pT=Jh(),hT=De(),mT=TypeError,vT=hT("toPrimitive");am.exports=function(e,t){if(!im(e)||om(e))return e;var r=fT(e,vT),n;if(r){if(t===void 0&&(t="default"),n=dT(r,e,t),!im(n)||om(n))return n;throw new mT("Can't convert object to primitive value")}return t===void 0&&(t="number"),pT(e,t)}});var Vl=h((CH,lm)=>{"use strict";var gT=sm(),yT=Ml();lm.exports=function(e){var t=gT(e,"string");return yT(t)?t:t+""}});var Gl=h((OH,um)=>{"use strict";var _T=oe(),cm=we(),zl=_T.document,bT=cm(zl)&&cm(zl.createElement);um.exports=function(e){return bT?zl.createElement(e):{}}});var Kl=h((PH,dm)=>{"use strict";var wT=Be(),ET=ie(),xT=Gl();dm.exports=!wT&&!ET(function(){return Object.defineProperty(xT("div"),"a",{get:function(){return 7}}).a!==7})});var Wl=h(pm=>{"use strict";var AT=Be(),ST=ct(),IT=Pl(),kT=Bn(),TT=er(),RT=Vl(),CT=Ye(),OT=Kl(),fm=Object.getOwnPropertyDescriptor;pm.f=AT?fm:function(t,r){if(t=TT(t),r=RT(r),OT)try{return fm(t,r)}catch(n){}if(CT(t,r))return kT(!ST(IT.f,t,r),t[r])}});var mm=h((DH,hm)=>{"use strict";var PT=ie(),NT=Se(),DT=/#|\.prototype\./,Hn=function(e,t){var r=LT[qT(e)];return r===jT?!0:r===UT?!1:NT(t)?PT(t):!!t},qT=Hn.normalize=function(e){return String(e).replace(DT,".").toLowerCase()},LT=Hn.data={},UT=Hn.NATIVE="N",jT=Hn.POLYFILL="P";hm.exports=Hn});var Vn=h((qH,gm)=>{"use strict";var vm=Fn(),MT=wr(),FT=jr(),BT=vm(vm.bind);gm.exports=function(e,t){return MT(e),t===void 0?e:FT?BT(e,t):function(){return e.apply(t,arguments)}}});var Yl=h((LH,ym)=>{"use strict";var $T=Be(),JT=ie();ym.exports=$T&&JT(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var qt=h((UH,_m)=>{"use strict";var HT=we(),VT=String,zT=TypeError;_m.exports=function(e){if(HT(e))return e;throw new zT(VT(e)+" is not an object")}});var Lt=h(wm=>{"use strict";var GT=Be(),KT=Kl(),WT=Yl(),Eo=qt(),bm=Vl(),YT=TypeError,Ql=Object.defineProperty,QT=Object.getOwnPropertyDescriptor,Xl="enumerable",Zl="configurable",ec="writable";wm.f=GT?WT?function(t,r,n){if(Eo(t),r=bm(r),Eo(n),typeof t=="function"&&r==="prototype"&&"value"in n&&ec in n&&!n[ec]){var i=QT(t,r);i&&i[ec]&&(t[r]=n.value,n={configurable:Zl in n?n[Zl]:i[Zl],enumerable:Xl in n?n[Xl]:i[Xl],writable:!1})}return Ql(t,r,n)}:Ql:function(t,r,n){if(Eo(t),r=bm(r),Eo(n),KT)try{return Ql(t,r,n)}catch(i){}if("get"in n||"set"in n)throw new YT("Accessors not supported");return"value"in n&&(t[r]=n.value),t}});var Er=h((MH,Em)=>{"use strict";var XT=Be(),ZT=Lt(),eR=Bn();Em.exports=XT?function(e,t,r){return ZT.f(e,t,eR(1,r))}:function(e,t,r){return e[t]=r,e}});var V=h((FH,Am)=>{"use strict";var zn=oe(),tR=Cl(),rR=Fn(),nR=Se(),iR=Wl().f,oR=mm(),Jr=vt(),aR=Vn(),Hr=Er(),xm=Ye();Jn();var sR=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 tR(e,this,arguments)};return t.prototype=e.prototype,t};Am.exports=function(e,t){var r=e.target,n=e.global,i=e.stat,o=e.proto,a=n?zn:i?zn[r]:zn[r]&&zn[r].prototype,s=n?Jr:Jr[r]||Hr(Jr,r,{})[r],l=s.prototype,c,d,u,p,f,m,g,_,v;for(p in t)c=oR(n?p:r+(i?".":"#")+p,e.forced),d=!c&&a&&xm(a,p),m=s[p],d&&(e.dontCallGetSet?(v=iR(a,p),g=v&&v.value):g=a[p]),f=d&&g?g:t[p],!(!c&&!o&&typeof m==typeof f)&&(e.bind&&d?_=aR(f,zn):e.wrap&&d?_=sR(f):o&&nR(f)?_=rR(f):_=f,(e.sham||f&&f.sham||m&&m.sham)&&Hr(_,"sham",!0),Hr(s,p,_),o&&(u=r+"Prototype",xm(Jr,u)||Hr(Jr,u,{}),Hr(Jr[u],p,f),e.real&&l&&(c||!l[p])&&Hr(l,p,f)))}});var Im=h((BH,Sm)=>{"use strict";var lR=Math.ceil,cR=Math.floor;Sm.exports=Math.trunc||function(t){var r=+t;return(r>0?cR:lR)(r)}});var Gn=h(($H,km)=>{"use strict";var uR=Im();km.exports=function(e){var t=+e;return t!==t||t===0?0:uR(t)}});var tc=h((JH,Tm)=>{"use strict";var dR=Gn(),fR=Math.min;Tm.exports=function(e){var t=dR(e);return t>0?fR(t,9007199254740991):0}});var Vr=h((HH,Rm)=>{"use strict";var pR=tc();Rm.exports=function(e){return pR(e.length)}});var Kn=h((VH,Cm)=>{"use strict";var hR=Dt();Cm.exports=Array.isArray||function(t){return hR(t)==="Array"}});var xo=h((zH,Pm)=>{"use strict";var mR=De(),vR=mR("toStringTag"),Om={};Om[vR]="z";Pm.exports=String(Om)==="[object z]"});var zr=h((GH,Nm)=>{"use strict";var gR=xo(),yR=Se(),Ao=Dt(),_R=De(),bR=_R("toStringTag"),wR=Object,ER=Ao(function(){return arguments}())==="Arguments",xR=function(e,t){try{return e[t]}catch(r){}};Nm.exports=gR?Ao:function(e){var t,r,n;return e===void 0?"Undefined":e===null?"Null":typeof(r=xR(t=wR(e),bR))=="string"?r:ER?Ao(t):(n=Ao(t))==="Object"&&yR(t.callee)?"Arguments":n}});var qm=h((KH,Dm)=>{"use strict";var AR=he(),SR=Se(),rc=Jn(),IR=AR(Function.toString);SR(rc.inspectSource)||(rc.inspectSource=function(e){return IR(e)});Dm.exports=rc.inspectSource});var ic=h((WH,Fm)=>{"use strict";var kR=he(),TR=ie(),Lm=Se(),RR=zr(),CR=Mr(),OR=qm(),Um=function(){},jm=CR("Reflect","construct"),nc=/^\s*(?:class|function)\b/,PR=kR(nc.exec),NR=!nc.test(Um),Wn=function(t){if(!Lm(t))return!1;try{return jm(Um,[],t),!0}catch(r){return!1}},Mm=function(t){if(!Lm(t))return!1;switch(RR(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return NR||!!PR(nc,OR(t))}catch(r){return!0}};Mm.sham=!0;Fm.exports=!jm||TR(function(){var e;return Wn(Wn.call)||!Wn(Object)||!Wn(function(){e=!0})||e})?Mm:Wn});var Hm=h((YH,Jm)=>{"use strict";var Bm=Kn(),DR=ic(),qR=we(),LR=De(),UR=LR("species"),$m=Array;Jm.exports=function(e){var t;return Bm(e)&&(t=e.constructor,DR(t)&&(t===$m||Bm(t.prototype))?t=void 0:qR(t)&&(t=t[UR],t===null&&(t=void 0))),t===void 0?$m:t}});var oc=h((QH,Vm)=>{"use strict";var jR=Hm();Vm.exports=function(e,t){return new(jR(e))(t===0?0:t)}});var rr=h((XH,Gm)=>{"use strict";var MR=Vn(),FR=he(),BR=vo(),$R=Br(),JR=Vr(),HR=oc(),zm=FR([].push),tr=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=$R(l),f=BR(p),m=JR(f),g=MR(c,d),_=0,v=u||HR,b=t?v(l,m):r||a?v(l,0):void 0,E,k;m>_;_++)if((s||_ in f)&&(E=f[_],k=g(E,_,p),e))if(t)b[_]=k;else if(k)switch(e){case 3:return!0;case 5:return E;case 6:return _;case 2:zm(b,E)}else switch(e){case 4:return!1;case 7:zm(b,E)}return o?-1:n||i?i:b}};Gm.exports={forEach:tr(0),map:tr(1),filter:tr(2),some:tr(3),every:tr(4),find:tr(5),findIndex:tr(6),filterReject:tr(7)}});var Yn=h((ZH,Km)=>{"use strict";var VR=ie(),zR=De(),GR=_o(),KR=zR("species");Km.exports=function(e){return GR>=51||!VR(function(){var t=[],r=t.constructor={};return r[KR]=function(){return{foo:1}},t[e](Boolean).foo!==1})}});var Wm=h(()=>{"use strict";var WR=V(),YR=rr().filter,QR=Yn(),XR=QR("filter");WR({target:"Array",proto:!0,forced:!XR},{filter:function(t){return YR(this,t,arguments.length>1?arguments[1]:void 0)}})});var it=h((r6,Ym)=>{"use strict";var ZR=oe(),eC=vt();Ym.exports=function(e,t){var r=eC[e+"Prototype"],n=r&&r[t];if(n)return n;var i=ZR[e],o=i&&i.prototype;return o&&o[t]}});var Xm=h((n6,Qm)=>{"use strict";Wm();var tC=it();Qm.exports=tC("Array","filter")});var ev=h((i6,Zm)=>{"use strict";var rC=Fe(),nC=Xm(),ac=Array.prototype;Zm.exports=function(e){var t=e.filter;return e===ac||rC(ac,e)&&t===ac.filter?nC:t}});var rv=h((o6,tv)=>{"use strict";var iC=ev();tv.exports=iC});var iv=h((a6,nv)=>{nv.exports=rv()});var Qn=h((s6,ov)=>{"use strict";var oC=ie();ov.exports=function(e,t){var r=[][e];return!!r&&oC(function(){r.call(null,t||function(){return 1},1)})}});var av=h(()=>{"use strict";var aC=V(),sC=rr().every,lC=Qn(),cC=lC("every");aC({target:"Array",proto:!0,forced:!cC},{every:function(t){return sC(this,t,arguments.length>1?arguments[1]:void 0)}})});var lv=h((u6,sv)=>{"use strict";av();var uC=it();sv.exports=uC("Array","every")});var uv=h((d6,cv)=>{"use strict";var dC=Fe(),fC=lv(),sc=Array.prototype;cv.exports=function(e){var t=e.every;return e===sc||dC(sc,e)&&t===sc.every?fC:t}});var fv=h((f6,dv)=>{"use strict";var pC=uv();dv.exports=pC});var hv=h((p6,pv)=>{pv.exports=fv()});var vv=h((h6,mv)=>{"use strict";var hC=rr().forEach,mC=Qn(),vC=mC("forEach");mv.exports=vC?[].forEach:function(t){return hC(this,t,arguments.length>1?arguments[1]:void 0)}});var yv=h(()=>{"use strict";var gC=V(),gv=vv();gC({target:"Array",proto:!0,forced:[].forEach!==gv},{forEach:gv})});var bv=h((g6,_v)=>{"use strict";yv();var yC=it();_v.exports=yC("Array","forEach")});var Ev=h((y6,wv)=>{"use strict";var _C=bv();wv.exports=_C});var xv=h(()=>{});var Sv=h((w6,Av)=>{"use strict";var bC=zr(),wC=Ye(),EC=Fe(),xC=Ev();xv();var lc=Array.prototype,AC={DOMTokenList:!0,NodeList:!0};Av.exports=function(e){var t=e.forEach;return e===lc||EC(lc,e)&&t===lc.forEach||wC(AC,bC(e))?xC:t}});var kv=h((E6,Iv)=>{Iv.exports=Sv()});var Rv=h((x6,Tv)=>{"use strict";var SC=TypeError,IC=9007199254740991;Tv.exports=function(e){if(e>IC)throw SC("Maximum allowed index exceeded");return e}});var cc=h((A6,Cv)=>{"use strict";var kC=Be(),TC=Lt(),RC=Bn();Cv.exports=function(e,t,r){kC?TC.f(e,t,RC(0,r)):e[t]=r}});var Dv=h(()=>{"use strict";var CC=V(),OC=ie(),PC=Kn(),NC=we(),DC=Br(),qC=Vr(),Ov=Rv(),Pv=cc(),LC=oc(),UC=Yn(),jC=De(),MC=_o(),Nv=jC("isConcatSpreadable"),FC=MC>=51||!OC(function(){var e=[];return e[Nv]=!1,e.concat()[0]!==e}),BC=function(e){if(!NC(e))return!1;var t=e[Nv];return t!==void 0?!!t:PC(e)},$C=!FC||!UC("concat");CC({target:"Array",proto:!0,arity:1,forced:$C},{concat:function(t){var r=DC(this),n=LC(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],BC(c))for(l=qC(c),Ov(i+l),a=0;a<l;a++,i++)a in c&&Pv(n,i,c[a]);else Ov(i+1),Pv(n,i++,c);return n.length=i,n}})});var Lv=h((k6,qv)=>{"use strict";Dv();var JC=it();qv.exports=JC("Array","concat")});var jv=h((T6,Uv)=>{"use strict";var HC=Fe(),VC=Lv(),uc=Array.prototype;Uv.exports=function(e){var t=e.concat;return e===uc||HC(uc,e)&&t===uc.concat?VC:t}});var Fv=h((R6,Mv)=>{"use strict";var zC=jv();Mv.exports=zC});var $v=h((C6,Bv)=>{Bv.exports=Fv()});var Jv=h(()=>{"use strict";var GC=V(),KC=rr().some,WC=Qn(),YC=WC("some");GC({target:"Array",proto:!0,forced:!YC},{some:function(t){return KC(this,t,arguments.length>1?arguments[1]:void 0)}})});var Vv=h((N6,Hv)=>{"use strict";Jv();var QC=it();Hv.exports=QC("Array","some")});var Gv=h((D6,zv)=>{"use strict";var XC=Fe(),ZC=Vv(),dc=Array.prototype;zv.exports=function(e){var t=e.some;return e===dc||XC(dc,e)&&t===dc.some?ZC:t}});var Wv=h((q6,Kv)=>{"use strict";var eO=Gv();Kv.exports=eO});var Qv=h((L6,Yv)=>{Yv.exports=Wv()});var Zv=h((U6,Xv)=>{"use strict";var Xn=oe(),tO=go(),rO=Dt(),So=function(e){return tO.slice(0,e.length)===e};Xv.exports=function(){return So("Bun/")?"BUN":So("Cloudflare-Workers")?"CLOUDFLARE":So("Deno/")?"DENO":So("Node.js/")?"NODE":Xn.Bun&&typeof Bun.version=="string"?"BUN":Xn.Deno&&typeof Deno.version=="object"?"DENO":rO(Xn.process)==="process"?"NODE":Xn.window&&Xn.document?"BROWSER":"REST"}()});var Zn=h((j6,eg)=>{"use strict";var nO=he();eg.exports=nO([].slice)});var rg=h((M6,tg)=>{"use strict";var iO=TypeError;tg.exports=function(e,t){if(e<t)throw new iO("Not enough arguments");return e}});var fc=h((F6,ig)=>{"use strict";var ng=oe(),oO=Cl(),aO=Se(),sO=Zv(),lO=go(),cO=Zn(),uO=rg(),dO=ng.Function,fO=/MSIE .\./.test(lO)||sO==="BUN"&&function(){var e=ng.Bun.version.split(".");return e.length<3||e[0]==="0"&&(e[1]<3||e[1]==="3"&&e[2]==="0")}();ig.exports=function(e,t){var r=t?2:1;return fO?function(n,i){var o=uO(arguments.length,1)>r,a=aO(n)?n:dO(n),s=o?cO(arguments,r):[],l=o?function(){oO(a,this,s)}:a;return t?e(l,i):e(l)}:e}});var sg=h(()=>{"use strict";var pO=V(),ag=oe(),hO=fc(),og=hO(ag.setInterval,!0);pO({global:!0,bind:!0,forced:ag.setInterval!==og},{setInterval:og})});var ug=h(()=>{"use strict";var mO=V(),cg=oe(),vO=fc(),lg=vO(cg.setTimeout,!0);mO({global:!0,bind:!0,forced:cg.setTimeout!==lg},{setTimeout:lg})});var dg=h(()=>{"use strict";sg();ug()});var pg=h((G6,fg)=>{"use strict";dg();var gO=vt();fg.exports=gO.setTimeout});var mg=h((K6,hg)=>{hg.exports=pg()});function ti(e,t){ce.__h&&ce.__h(Y,e,ei||t),ei=0;var r=Y.__H||(Y.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function mc(e){return ei=1,Sg(Ig,e)}function Sg(e,t,r){var n=ti(xr++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Ig(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=Y,!Y.__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};Y.__f=!0;var o=Y.shouldComponentUpdate,a=Y.componentWillUpdate;Y.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)},Y.shouldComponentUpdate=i}return n.__N||n.__}function ko(e,t){var r=ti(xr++,3);!ce.__s&&vc(r.__H,t)&&(r.__=e,r.u=t,Y.__H.__h.push(r))}function Gr(e,t){var r=ti(xr++,4);!ce.__s&&vc(r.__H,t)&&(r.__=e,r.u=t,Y.__h.push(r))}function ri(e){return ei=5,ni(function(){return{current:e}},[])}function ni(e,t){var r=ti(xr++,7);return vc(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function To(e,t){return ei=8,ni(function(){return e},t)}function Kr(e){var t=Y.context[e.__c],r=ti(xr++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(Y)),t.props.value):e.__}function yO(){for(var e;e=Ag.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Io),e.__H.__h.forEach(hc),e.__H.__h=[]}catch(t){e.__H.__h=[],ce.__e(t,e.__v)}}function _O(e){var t,r=function(){clearTimeout(n),xg&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);xg&&(t=requestAnimationFrame(r))}function Io(e){var t=Y,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),Y=t}function hc(e){var t=Y;e.__c=e.__(),Y=t}function vc(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Ig(e,t){return typeof t=="function"?t(e):t}var xr,Y,pc,vg,ei,Ag,ce,gg,yg,_g,bg,wg,Eg,xg,gc=I(()=>{Ur();ei=0,Ag=[],ce=C,gg=ce.__b,yg=ce.__r,_g=ce.diffed,bg=ce.__c,wg=ce.unmount,Eg=ce.__;ce.__b=function(e){Y=null,gg&&gg(e)},ce.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),Eg&&Eg(e,t)},ce.__r=function(e){yg&&yg(e),xr=0;var t=(Y=e.__c).__H;t&&(pc===Y?(t.__h=[],Y.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Io),t.__h.forEach(hc),t.__h=[],xr=0)),pc=Y},ce.diffed=function(e){_g&&_g(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Ag.push(t)!==1&&vg===ce.requestAnimationFrame||((vg=ce.requestAnimationFrame)||_O)(yO)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),pc=Y=null},ce.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Io),r.__h=r.__h.filter(function(n){return!n.__||hc(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],ce.__e(n,r.__v)}}),bg&&bg(e,t)},ce.unmount=function(e){wg&&wg(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Io(n)}catch(i){t=i}}),r.__H=void 0,t&&ce.__e(t,r.__v))};xg=typeof requestAnimationFrame=="function"});function Lg(e,t){for(var r in t)e[r]=t[r];return e}function _c(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 kg(e,t){this.props=e,this.context=t}function wc(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:_c(this.props,i)}function n(i){return this.shouldComponentUpdate=r,Ne(e,i)}return n.displayName="Memo("+(e.displayName||e.name)+")",n.prototype.isReactComponent=!0,n.__f=!0,n}function Ec(e){function t(r){var n=Lg({},r);return delete n.ref,e(n,r.ref||null)}return t.$$typeof=bO,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}function Ug(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=Lg({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(n){return Ug(n,t,r)})),e}function jg(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(n){return jg(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 yc(){this.__u=0,this.o=null,this.__b=null}function Mg(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Ro(){this.i=null,this.l=null}function xc(e,t,r){return t.__k==null&&(t.textContent=""),Lr(e,t),typeof r=="function"&&r(),e?e.__c:null}function TO(){}function RO(){return this.cancelBubble}function CO(){return this.defaultPrevented}var bc,Tg,bO,wO,Rg,Cg,EO,xO,AO,SO,IO,kO,Og,Fg,OO,Pg,Ng,Dg,Co=I(()=>{Ur();Ur();gc();gc();bc=Gr;(kg.prototype=new Ke).isPureReactComponent=!0,kg.prototype.shouldComponentUpdate=function(e,t){return _c(this.props,e)||_c(this.state,t)};Tg=C.__b;C.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Tg&&Tg(e)};bO=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;wO=C.__e;C.__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)}wO(e,t,r,n)};Rg=C.unmount;C.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Rg&&Rg(e)},(yc.prototype=new Ke).__c=function(e,t){var r=t.__c,n=this;n.o==null&&(n.o=[]),n.o.push(r);var i=Mg(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]=jg(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)},yc.prototype.componentWillUnmount=function(){this.o=[]},yc.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]=Ug(this.__b,r,n.__O=n.__P)}this.__b=null}var i=t.__a&&Ne(We,null,e.fallback);return i&&(i.__u&=-33),[Ne(We,null,t.__a?null:e.children),i]};Cg=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]}};(Ro.prototype=new Ke).__a=function(e){var t=this,r=Mg(t.__v),n=t.l.get(e);return n[0]++,function(i){var o=function(){t.props.revealOrder?(n.push(i),Cg(t,e,n)):i()};r?r(o):o()}},Ro.prototype.render=function(e){this.i=null,this.l=new Map;var t=jn(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},Ro.prototype.componentDidUpdate=Ro.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(t,r){Cg(e,r,t)})};EO=typeof Symbol!="undefined"&&Symbol.for&&Symbol.for("react.element")||60103,xO=/^(?: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]/,AO=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,SO=/[A-Z0-9]/g,IO=typeof document!="undefined",kO=function(e){return(typeof Symbol!="undefined"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};Ke.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(Ke.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});Og=C.event;C.event=function(e){return Og&&(e=Og(e)),e.persist=TO,e.isPropagationStopped=RO,e.isDefaultPrevented=CO,e.nativeEvent=e};OO={enumerable:!1,configurable:!0,get:function(){return this.class}},Pg=C.vnode;C.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||IO&&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"||kO(r.type)?l==="onfocus"?a="onfocusin":l==="onblur"?a="onfocusout":AO.test(a)&&(a=l):l=a="oninput":o&&xO.test(a)?a=a.replace(SO,"-$&").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=jn(r.children).forEach(function(c){c.props.selected=i.value.indexOf(c.props.value)!=-1})),n=="select"&&i.defaultValue!=null&&(i.value=jn(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",OO)):(r.className&&!r.class||r.class&&r.className)&&(i.class=i.className=r.className),t.props=i}(e),e.$$typeof=EO,Pg&&Pg(e)};Ng=C.__r;C.__r=function(e){Ng&&Ng(e),Fg=e.__c};Dg=C.diffed;C.diffed=function(e){Dg&&Dg(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),Fg=null}});var Ac=h((aV,Bg)=>{"use strict";var NO=Gn(),DO=Math.max,qO=Math.min;Bg.exports=function(e,t){var r=NO(e);return r<0?DO(r+t,0):qO(r,t)}});var Hg=h(()=>{"use strict";var LO=V(),$g=Kn(),UO=ic(),jO=we(),Jg=Ac(),MO=Vr(),FO=er(),BO=cc(),$O=De(),JO=Yn(),HO=Zn(),VO=JO("slice"),zO=$O("species"),Sc=Array,GO=Math.max;LO({target:"Array",proto:!0,forced:!VO},{slice:function(t,r){var n=FO(this),i=MO(n),o=Jg(t,i),a=Jg(r===void 0?i:r,i),s,l,c;if($g(n)&&(s=n.constructor,UO(s)&&(s===Sc||$g(s.prototype))?s=void 0:jO(s)&&(s=s[zO],s===null&&(s=void 0)),s===Sc||s===void 0))return HO(n,o,a);for(l=new(s===void 0?Sc:s)(GO(a-o,0)),c=0;o<a;o++,c++)o in n&&BO(l,c,n[o]);return l.length=c,l}})});var zg=h((cV,Vg)=>{"use strict";Hg();var KO=it();Vg.exports=KO("Array","slice")});var Kg=h((uV,Gg)=>{"use strict";var WO=Fe(),YO=zg(),Ic=Array.prototype;Gg.exports=function(e){var t=e.slice;return e===Ic||WO(Ic,e)&&t===Ic.slice?YO:t}});var Yg=h((dV,Wg)=>{"use strict";var QO=Kg();Wg.exports=QO});var Xg=h((fV,Qg)=>{Qg.exports=Yg()});var Zg=h(()=>{"use strict";var XO=V(),ZO=Kn();XO({target:"Array",stat:!0},{isArray:ZO})});var ty=h((mV,ey)=>{"use strict";Zg();var eP=vt();ey.exports=eP.Array.isArray});var ny=h((vV,ry)=>{"use strict";var tP=ty();ry.exports=tP});var oy=h((gV,iy)=>{iy.exports=ny()});var ii=h((yV,ay)=>{"use strict";var rP=zr(),nP=String;ay.exports=function(e){if(rP(e)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return nP(e)}});var ly=h((_V,sy)=>{"use strict";var iP=we(),oP=Dt(),aP=De(),sP=aP("match");sy.exports=function(e){var t;return iP(e)&&((t=e[sP])!==void 0?!!t:oP(e)==="RegExp")}});var uy=h((bV,cy)=>{"use strict";var lP=ly(),cP=TypeError;cy.exports=function(e){if(lP(e))throw new cP("The method doesn't accept regular expressions");return e}});var fy=h((wV,dy)=>{"use strict";var uP=De(),dP=uP("match");dy.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[dP]=!1,"/./"[e](t)}catch(n){}}return!1}});var my=h(()=>{"use strict";var fP=V(),pP=Fn(),hP=Wl().f,mP=tc(),py=ii(),vP=uy(),gP=br(),yP=fy(),_P=Fr(),bP=pP("".slice),wP=Math.min,hy=yP("startsWith"),EP=!_P&&!hy&&!!function(){var e=hP(String.prototype,"startsWith");return e&&!e.writable}();fP({target:"String",proto:!0,forced:!EP&&!hy},{startsWith:function(t){var r=py(gP(this));vP(t);var n=mP(wP(arguments.length>1?arguments[1]:void 0,r.length)),i=py(t);return bP(r,n,n+i.length)===i}})});var gy=h((AV,vy)=>{"use strict";my();var xP=it();vy.exports=xP("String","startsWith")});var _y=h((SV,yy)=>{"use strict";var AP=Fe(),SP=gy(),kc=String.prototype;yy.exports=function(e){var t=e.startsWith;return typeof e=="string"||e===kc||AP(kc,e)&&t===kc.startsWith?SP:t}});var wy=h((IV,by)=>{"use strict";var IP=_y();by.exports=IP});var xy=h((kV,Ey)=>{Ey.exports=wy()});var Rc=h(()=>{"use strict";var kP=V(),Tc=oe();kP({global:!0,forced:Tc.globalThis!==Tc},{globalThis:Tc})});var Ay=h(()=>{"use strict";Rc()});var Iy=h((PV,Sy)=>{"use strict";Rc();Sy.exports=oe()});var Ty=h((NV,ky)=>{"use strict";var TP=Iy();ky.exports=TP});var Cy=h((DV,Ry)=>{"use strict";var RP=Ty();Ry.exports=RP});var Py=h((qV,Oy)=>{"use strict";Ay();var CP=Cy();Oy.exports=CP});var Dy=h((LV,Ny)=>{"use strict";Ny.exports=Py()});var Ly=h((UV,qy)=>{qy.exports=Dy()});var jy=h((jV,Uy)=>{"use strict";Uy.exports=function(){}});var Ar=h((MV,My)=>{"use strict";My.exports={}});var Cc=h((FV,By)=>{"use strict";var OP=oe(),PP=Se(),Fy=OP.WeakMap;By.exports=PP(Fy)&&/native code/.test(String(Fy))});var Oo=h((BV,Jy)=>{"use strict";var NP=Jl(),DP=wo(),$y=NP("keys");Jy.exports=function(e){return $y[e]||($y[e]=DP(e))}});var oi=h(($V,Hy)=>{"use strict";Hy.exports={}});var Ir=h((JV,Gy)=>{"use strict";var qP=Cc(),zy=oe(),LP=we(),UP=Er(),Oc=Ye(),Pc=Jn(),jP=Oo(),MP=oi(),Vy="Object already initialized",Nc=zy.TypeError,FP=zy.WeakMap,Po,ai,No,BP=function(e){return No(e)?ai(e):Po(e,{})},$P=function(e){return function(t){var r;if(!LP(t)||(r=ai(t)).type!==e)throw new Nc("Incompatible receiver, "+e+" required");return r}};qP||Pc.state?(dt=Pc.state||(Pc.state=new FP),dt.get=dt.get,dt.has=dt.has,dt.set=dt.set,Po=function(e,t){if(dt.has(e))throw new Nc(Vy);return t.facade=e,dt.set(e,t),t},ai=function(e){return dt.get(e)||{}},No=function(e){return dt.has(e)}):(Sr=jP("state"),MP[Sr]=!0,Po=function(e,t){if(Oc(e,Sr))throw new Nc(Vy);return t.facade=e,UP(e,Sr,t),t},ai=function(e){return Oc(e,Sr)?e[Sr]:{}},No=function(e){return Oc(e,Sr)});var dt,Sr;Gy.exports={set:Po,get:ai,has:No,enforce:BP,getterFor:$P}});var Lc=h((HV,Wy)=>{"use strict";var Dc=Be(),JP=Ye(),Ky=Function.prototype,HP=Dc&&Object.getOwnPropertyDescriptor,qc=JP(Ky,"name"),VP=qc&&(function(){}).name==="something",zP=qc&&(!Dc||Dc&&HP(Ky,"name").configurable);Wy.exports={EXISTS:qc,PROPER:VP,CONFIGURABLE:zP}});var Uc=h((VV,Qy)=>{"use strict";var GP=er(),KP=Ac(),WP=Vr(),Yy=function(e){return function(t,r,n){var i=GP(t),o=WP(i);if(o===0)return!e&&-1;var a=KP(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}};Qy.exports={includes:Yy(!0),indexOf:Yy(!1)}});var Mc=h((zV,Zy)=>{"use strict";var YP=he(),jc=Ye(),QP=er(),XP=Uc().indexOf,ZP=oi(),Xy=YP([].push);Zy.exports=function(e,t){var r=QP(e),n=0,i=[],o;for(o in r)!jc(ZP,o)&&jc(r,o)&&Xy(i,o);for(;t.length>n;)jc(r,o=t[n++])&&(~XP(i,o)||Xy(i,o));return i}});var Do=h((GV,e_)=>{"use strict";e_.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Fc=h((KV,t_)=>{"use strict";var eN=Mc(),tN=Do();t_.exports=Object.keys||function(t){return eN(t,tN)}});var n_=h(r_=>{"use strict";var rN=Be(),nN=Yl(),iN=Lt(),oN=qt(),aN=er(),sN=Fc();r_.f=rN&&!nN?Object.defineProperties:function(t,r){oN(t);for(var n=aN(r),i=sN(r),o=i.length,a=0,s;o>a;)iN.f(t,s=i[a++],n[s]);return t}});var o_=h((YV,i_)=>{"use strict";var lN=Mr();i_.exports=lN("document","documentElement")});var si=h((QV,f_)=>{"use strict";var cN=qt(),uN=n_(),a_=Do(),dN=oi(),fN=o_(),pN=Gl(),hN=Oo(),s_=">",l_="<",$c="prototype",Jc="script",u_=hN("IE_PROTO"),Bc=function(){},d_=function(e){return l_+Jc+s_+e+l_+"/"+Jc+s_},c_=function(e){e.write(d_("")),e.close();var t=e.parentWindow.Object;return e=null,t},mN=function(){var e=pN("iframe"),t="java"+Jc+":",r;return e.style.display="none",fN.appendChild(e),e.src=String(t),r=e.contentWindow.document,r.open(),r.write(d_("document.F=Object")),r.close(),r.F},qo,Lo=function(){try{qo=new ActiveXObject("htmlfile")}catch(t){}Lo=typeof document!="undefined"?document.domain&&qo?c_(qo):mN():c_(qo);for(var e=a_.length;e--;)delete Lo[$c][a_[e]];return Lo()};dN[u_]=!0;f_.exports=Object.create||function(t,r){var n;return t!==null?(Bc[$c]=cN(t),n=new Bc,Bc[$c]=null,n[u_]=t):n=Lo(),r===void 0?n:uN.f(n,r)}});var h_=h((XV,p_)=>{"use strict";var vN=ie();p_.exports=!vN(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})});var Vc=h((ZV,v_)=>{"use strict";var gN=Ye(),yN=Se(),_N=Br(),bN=Oo(),wN=h_(),m_=bN("IE_PROTO"),Hc=Object,EN=Hc.prototype;v_.exports=wN?Hc.getPrototypeOf:function(e){var t=_N(e);if(gN(t,m_))return t[m_];var r=t.constructor;return yN(r)&&t instanceof r?r.prototype:t instanceof Hc?EN:null}});var Uo=h((e9,g_)=>{"use strict";var xN=Er();g_.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:xN(e,t,r),e}});var Wc=h((t9,b_)=>{"use strict";var AN=ie(),SN=Se(),IN=we(),kN=si(),y_=Vc(),TN=Uo(),RN=De(),CN=Fr(),Kc=RN("iterator"),__=!1,Ut,zc,Gc;[].keys&&(Gc=[].keys(),"next"in Gc?(zc=y_(y_(Gc)),zc!==Object.prototype&&(Ut=zc)):__=!0);var ON=!IN(Ut)||AN(function(){var e={};return Ut[Kc].call(e)!==e});ON?Ut={}:CN&&(Ut=kN(Ut));SN(Ut[Kc])||TN(Ut,Kc,function(){return this});b_.exports={IteratorPrototype:Ut,BUGGY_SAFARI_ITERATORS:__}});var E_=h((r9,w_)=>{"use strict";var PN=xo(),NN=zr();w_.exports=PN?{}.toString:function(){return"[object "+NN(this)+"]"}});var li=h((n9,A_)=>{"use strict";var DN=xo(),qN=Lt().f,LN=Er(),UN=Ye(),jN=E_(),MN=De(),x_=MN("toStringTag");A_.exports=function(e,t,r,n){var i=r?e:e&&e.prototype;i&&(UN(i,x_)||qN(i,x_,{configurable:!0,value:t}),n&&!DN&&LN(i,"toString",jN))}});var I_=h((i9,S_)=>{"use strict";var FN=Wc().IteratorPrototype,BN=si(),$N=Bn(),JN=li(),HN=Ar(),VN=function(){return this};S_.exports=function(e,t,r,n){var i=t+" Iterator";return e.prototype=BN(FN,{next:$N(+!n,r)}),JN(e,i,!1,!0),HN[i]=VN,e}});var T_=h((o9,k_)=>{"use strict";var zN=he(),GN=wr();k_.exports=function(e,t,r){try{return zN(GN(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(n){}}});var C_=h((a9,R_)=>{"use strict";var KN=we();R_.exports=function(e){return KN(e)||e===null}});var P_=h((s9,O_)=>{"use strict";var WN=C_(),YN=String,QN=TypeError;O_.exports=function(e){if(WN(e))return e;throw new QN("Can't set "+YN(e)+" as a prototype")}});var D_=h((l9,N_)=>{"use strict";var XN=T_(),ZN=we(),eD=br(),tD=P_();N_.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e=!1,t={},r;try{r=XN(Object.prototype,"__proto__","set"),r(t,[]),e=t instanceof Array}catch(n){}return function(i,o){return eD(i),tD(o),ZN(i)&&(e?r(i,o):i.__proto__=o),i}}():void 0)});var Fo=h((c9,H_)=>{"use strict";var rD=V(),nD=ct(),jo=Fr(),$_=Lc(),iD=Se(),oD=I_(),q_=Vc(),L_=D_(),aD=li(),sD=Er(),Yc=Uo(),lD=De(),U_=Ar(),J_=Wc(),cD=$_.PROPER,uD=$_.CONFIGURABLE,j_=J_.IteratorPrototype,Mo=J_.BUGGY_SAFARI_ITERATORS,ci=lD("iterator"),M_="keys",ui="values",F_="entries",B_=function(){return this};H_.exports=function(e,t,r,n,i,o,a){oD(r,t,n);var s=function(v){if(v===i&&p)return p;if(!Mo&&v&&v in d)return d[v];switch(v){case M_:return function(){return new r(this,v)};case ui:return function(){return new r(this,v)};case F_:return function(){return new r(this,v)}}return function(){return new r(this)}},l=t+" Iterator",c=!1,d=e.prototype,u=d[ci]||d["@@iterator"]||i&&d[i],p=!Mo&&u||s(i),f=t==="Array"&&d.entries||u,m,g,_;if(f&&(m=q_(f.call(new e)),m!==Object.prototype&&m.next&&(!jo&&q_(m)!==j_&&(L_?L_(m,j_):iD(m[ci])||Yc(m,ci,B_)),aD(m,l,!0,!0),jo&&(U_[l]=B_))),cD&&i===ui&&u&&u.name!==ui&&(!jo&&uD?sD(d,"name",ui):(c=!0,p=function(){return nD(u,this)})),i)if(g={values:s(ui),keys:o?p:s(M_),entries:s(F_)},a)for(_ in g)(Mo||c||!(_ in d))&&Yc(d,_,g[_]);else rD({target:t,proto:!0,forced:Mo||c},g);return(!jo||a)&&d[ci]!==p&&Yc(d,ci,p,{name:i}),U_[t]=p,g}});var Bo=h((u9,V_)=>{"use strict";V_.exports=function(e,t){return{value:e,done:t}}});var Jo=h((d9,Y_)=>{"use strict";var dD=er(),Qc=jy(),z_=Ar(),K_=Ir(),fD=Lt().f,pD=Fo(),$o=Bo(),hD=Fr(),mD=Be(),W_="Array Iterator",vD=K_.set,gD=K_.getterFor(W_);Y_.exports=pD(Array,"Array",function(e,t){vD(this,{type:W_,target:dD(e),index:0,kind:t})},function(){var e=gD(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,$o(void 0,!0);switch(e.kind){case"keys":return $o(r,!1);case"values":return $o(t[r],!1)}return $o([r,t[r]],!1)},"values");var G_=z_.Arguments=z_.Array;Qc("keys");Qc("values");Qc("entries");if(!hD&&mD&&G_.name!=="values")try{fD(G_,"name",{value:"values"})}catch(e){}});var Xc=h(()=>{});var Zc=h((h9,Q_)=>{"use strict";var yD=ie();Q_.exports=!yD(function(){return Object.isExtensible(Object.preventExtensions({}))})});var Ho=h((m9,X_)=>{"use strict";var _D=Uo();X_.exports=function(e,t,r){for(var n in t)r&&r.unsafe&&e[n]?e[n]=t[n]:_D(e,n,t[n],r);return e}});var eu=h(Z_=>{"use strict";var bD=Mc(),wD=Do(),ED=wD.concat("length","prototype");Z_.f=Object.getOwnPropertyNames||function(t){return bD(t,ED)}});var nb=h((g9,rb)=>{"use strict";var xD=Dt(),AD=er(),eb=eu().f,SD=Zn(),tb=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],ID=function(e){try{return eb(e)}catch(t){return SD(tb)}};rb.exports.f=function(t){return tb&&xD(t)==="Window"?ID(t):eb(AD(t))}});var ob=h((y9,ib)=>{"use strict";var kD=ie();ib.exports=kD(function(){if(typeof ArrayBuffer=="function"){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})});var lb=h((_9,sb)=>{"use strict";var TD=ie(),RD=we(),CD=Dt(),ab=ob(),Vo=Object.isExtensible,OD=TD(function(){Vo(1)});sb.exports=OD||ab?function(t){return!RD(t)||ab&&CD(t)==="ArrayBuffer"?!1:Vo?Vo(t):!0}:Vo});var di=h((b9,db)=>{"use strict";var PD=V(),ND=he(),DD=oi(),qD=we(),tu=Ye(),LD=Lt().f,cb=eu(),UD=nb(),ru=lb(),jD=wo(),MD=Zc(),ub=!1,jt=jD("meta"),FD=0,nu=function(e){LD(e,jt,{value:{objectID:"O"+FD++,weakData:{}}})},BD=function(e,t){if(!qD(e))return typeof e=="symbol"?e:(typeof e=="string"?"S":"P")+e;if(!tu(e,jt)){if(!ru(e))return"F";if(!t)return"E";nu(e)}return e[jt].objectID},$D=function(e,t){if(!tu(e,jt)){if(!ru(e))return!0;if(!t)return!1;nu(e)}return e[jt].weakData},JD=function(e){return MD&&ub&&ru(e)&&!tu(e,jt)&&nu(e),e},HD=function(){VD.enable=function(){},ub=!0;var e=cb.f,t=ND([].splice),r={};r[jt]=1,e(r).length&&(cb.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},PD({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:UD.f}))},VD=db.exports={enable:HD,fastKey:BD,getWeakData:$D,onFreeze:JD};DD[jt]=!0});var pb=h((w9,fb)=>{"use strict";var zD=De(),GD=Ar(),KD=zD("iterator"),WD=Array.prototype;fb.exports=function(e){return e!==void 0&&(GD.Array===e||WD[KD]===e)}});var iu=h((E9,mb)=>{"use strict";var YD=zr(),hb=bo(),QD=_r(),XD=Ar(),ZD=De(),eq=ZD("iterator");mb.exports=function(e){if(!QD(e))return hb(e,eq)||hb(e,"@@iterator")||XD[YD(e)]}});var gb=h((x9,vb)=>{"use strict";var tq=ct(),rq=wr(),nq=qt(),iq=$n(),oq=iu(),aq=TypeError;vb.exports=function(e,t){var r=arguments.length<2?oq(e):t;if(rq(r))return nq(tq(r,e));throw new aq(iq(e)+" is not iterable")}});var zo=h((A9,_b)=>{"use strict";var sq=ct(),yb=qt(),lq=bo();_b.exports=function(e,t,r){var n,i;yb(e);try{if(n=lq(e,"return"),!n){if(t==="throw")throw r;return r}n=sq(n,e)}catch(o){i=!0,n=o}if(t==="throw")throw r;if(i)throw n;return yb(n),r}});var Ko=h((S9,xb)=>{"use strict";var cq=Vn(),uq=ct(),dq=qt(),fq=$n(),pq=pb(),hq=Vr(),bb=Fe(),mq=gb(),vq=iu(),wb=zo(),gq=TypeError,Go=function(e,t){this.stopped=e,this.result=t},Eb=Go.prototype;xb.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=cq(t,n),c,d,u,p,f,m,g,_=function(b){return c&&wb(c,"normal",b),new Go(!0,b)},v=function(b){return i?(dq(b),s?l(b[0],b[1],_):l(b[0],b[1])):s?l(b,_):l(b)};if(o)c=e.iterator;else if(a)c=e;else{if(d=vq(e),!d)throw new gq(fq(e)+" is not iterable");if(pq(d)){for(u=0,p=hq(e);p>u;u++)if(f=v(e[u]),f&&bb(Eb,f))return f;return new Go(!1)}c=mq(e,d)}for(m=o?e.next:c.next;!(g=uq(m,c)).done;){try{f=v(g.value)}catch(b){wb(c,"throw",b)}if(typeof f=="object"&&f&&bb(Eb,f))return f}return new Go(!1)}});var Wo=h((I9,Ab)=>{"use strict";var yq=Fe(),_q=TypeError;Ab.exports=function(e,t){if(yq(t,e))return e;throw new _q("Incorrect invocation")}});var ou=h((k9,Ib)=>{"use strict";var bq=V(),wq=oe(),Eq=di(),xq=ie(),Aq=Er(),Sq=Ko(),Iq=Wo(),kq=Se(),Tq=we(),Rq=_r(),Cq=li(),Oq=Lt().f,Pq=rr().forEach,Nq=Be(),Sb=Ir(),Dq=Sb.set,qq=Sb.getterFor;Ib.exports=function(e,t,r){var n=e.indexOf("Map")!==-1,i=e.indexOf("Weak")!==-1,o=n?"set":"add",a=wq[e],s=a&&a.prototype,l={},c;if(!Nq||!kq(a)||!(i||s.forEach&&!xq(function(){new a().entries().next()})))c=r.getConstructor(t,e,n,o),Eq.enable();else{c=t(function(p,f){Dq(Iq(p,d),{type:e,collection:new a}),Rq(f)||Sq(f,p[o],{that:p,AS_ENTRIES:n})});var d=c.prototype,u=qq(e);Pq(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(p){var f=p==="add"||p==="set";p in s&&!(i&&p==="clear")&&Aq(d,p,function(m,g){var _=u(this).collection;if(!f&&i&&!Tq(m))return p==="get"?void 0:!1;var v=_[p](m===0?0:m,g);return f?this:v})}),i||Oq(d,"size",{configurable:!0,get:function(){return u(this).collection.size}})}return Cq(c,e,!1,!0),l[e]=c,bq({global:!0,forced:!0},l),i||r.setStrong(c,e,n),c}});var Nb=h((T9,Pb)=>{"use strict";var Lq=he(),kb=Ho(),Yo=di().getWeakData,Uq=Wo(),jq=qt(),Mq=_r(),au=we(),Fq=Ko(),Rb=rr(),Tb=Ye(),Cb=Ir(),Bq=Cb.set,$q=Cb.getterFor,Jq=Rb.find,Hq=Rb.findIndex,Vq=Lq([].splice),zq=0,Qo=function(e){return e.frozen||(e.frozen=new Ob)},Ob=function(){this.entries=[]},su=function(e,t){return Jq(e.entries,function(r){return r[0]===t})};Ob.prototype={get:function(e){var t=su(this,e);if(t)return t[1]},has:function(e){return!!su(this,e)},set:function(e,t){var r=su(this,e);r?r[1]=t:this.entries.push([e,t])},delete:function(e){var t=Hq(this.entries,function(r){return r[0]===e});return~t&&Vq(this.entries,t,1),!!~t}};Pb.exports={getConstructor:function(e,t,r,n){var i=e(function(l,c){Uq(l,o),Bq(l,{type:t,id:zq++,frozen:null}),Mq(c)||Fq(c,l[n],{that:l,AS_ENTRIES:r})}),o=i.prototype,a=$q(t),s=function(l,c,d){var u=a(l),p=Yo(jq(c),!0);return p===!0?Qo(u).set(c,d):p[u.id]=d,l};return kb(o,{delete:function(l){var c=a(this);if(!au(l))return!1;var d=Yo(l);return d===!0?Qo(c).delete(l):d&&Tb(d,c.id)&&delete d[c.id]},has:function(c){var d=a(this);if(!au(c))return!1;var u=Yo(c);return u===!0?Qo(d).has(c):u&&Tb(u,d.id)}}),kb(o,r?{get:function(c){var d=a(this);if(au(c)){var u=Yo(c);if(u===!0)return Qo(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 Bb=h(()=>{"use strict";var Gq=Zc(),Db=oe(),ta=he(),qb=Ho(),Kq=di(),Wq=ou(),Lb=Nb(),Xo=we(),Zo=Ir().enforce,Yq=ie(),Qq=Cc(),hi=Object,Xq=Array.isArray,ea=hi.isExtensible,Ub=hi.isFrozen,Zq=hi.isSealed,jb=hi.freeze,eL=hi.seal,tL=!Db.ActiveXObject&&"ActiveXObject"in Db,fi,Mb=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Fb=Wq("WeakMap",Mb,Lb),Wr=Fb.prototype,ra=ta(Wr.set),rL=function(){return Gq&&Yq(function(){var e=jb([]);return ra(new Fb,e,1),!Ub(e)})};Qq&&(tL?(fi=Lb.getConstructor(Mb,"WeakMap",!0),Kq.enable(),lu=ta(Wr.delete),pi=ta(Wr.has),cu=ta(Wr.get),qb(Wr,{delete:function(e){if(Xo(e)&&!ea(e)){var t=Zo(this);return t.frozen||(t.frozen=new fi),lu(this,e)||t.frozen.delete(e)}return lu(this,e)},has:function(t){if(Xo(t)&&!ea(t)){var r=Zo(this);return r.frozen||(r.frozen=new fi),pi(this,t)||r.frozen.has(t)}return pi(this,t)},get:function(t){if(Xo(t)&&!ea(t)){var r=Zo(this);return r.frozen||(r.frozen=new fi),pi(this,t)?cu(this,t):r.frozen.get(t)}return cu(this,t)},set:function(t,r){if(Xo(t)&&!ea(t)){var n=Zo(this);n.frozen||(n.frozen=new fi),pi(this,t)?ra(this,t,r):n.frozen.set(t,r)}else ra(this,t,r);return this}})):rL()&&qb(Wr,{set:function(t,r){var n;return Xq(t)&&(Ub(t)?n=jb:Zq(t)&&(n=eL)),ra(this,t,r),n&&n(t),this}}));var lu,pi,cu});var $b=h(()=>{"use strict";Bb()});var Hb=h((N9,Jb)=>{"use strict";Jo();Xc();$b();var nL=vt();Jb.exports=nL.WeakMap});var zb=h((D9,Vb)=>{"use strict";Vb.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 uu=h(()=>{"use strict";Jo();var iL=zb(),oL=oe(),aL=li(),Gb=Ar();for(na in iL)aL(oL[na],na),Gb[na]=Gb.Array;var na});var Wb=h((U9,Kb)=>{"use strict";var sL=Hb();uu();Kb.exports=sL});var Qb=h((j9,Yb)=>{Yb.exports=Wb()});var Zb=h(()=>{"use strict";var lL=V(),cL=Fn(),uL=Uc().indexOf,dL=Qn(),du=cL([].indexOf),Xb=!!du&&1/du([1],1,-0)<0,fL=Xb||!dL("indexOf");lL({target:"Array",proto:!0,forced:fL},{indexOf:function(t){var r=arguments.length>1?arguments[1]:void 0;return Xb?du(this,t,r)||0:uL(this,t,r)}})});var t0=h((B9,e0)=>{"use strict";Zb();var pL=it();e0.exports=pL("Array","indexOf")});var n0=h(($9,r0)=>{"use strict";var hL=Fe(),mL=t0(),fu=Array.prototype;r0.exports=function(e){var t=e.indexOf;return e===fu||hL(fu,e)&&t===fu.indexOf?mL:t}});var o0=h((J9,i0)=>{"use strict";var vL=n0();i0.exports=vL});var s0=h((H9,a0)=>{a0.exports=o0()});var l0=h(()=>{"use strict";var gL=V(),yL=rr().map,_L=Yn(),bL=_L("map");gL({target:"Array",proto:!0,forced:!bL},{map:function(t){return yL(this,t,arguments.length>1?arguments[1]:void 0)}})});var u0=h((G9,c0)=>{"use strict";l0();var wL=it();c0.exports=wL("Array","map")});var f0=h((K9,d0)=>{"use strict";var EL=Fe(),xL=u0(),pu=Array.prototype;d0.exports=function(e){var t=e.map;return e===pu||EL(pu,e)&&t===pu.map?xL:t}});var h0=h((W9,p0)=>{"use strict";var AL=f0();p0.exports=AL});var v0=h((Y9,m0)=>{m0.exports=h0()});var g0=h(()=>{"use strict";var SL=V(),IL=Be(),kL=si();SL({target:"Object",stat:!0,sham:!IL},{create:kL})});var _0=h((Z9,y0)=>{"use strict";g0();var TL=vt(),RL=TL.Object;y0.exports=function(t,r){return RL.create(t,r)}});var w0=h((ez,b0)=>{"use strict";var CL=_0();b0.exports=CL});var x0=h((tz,E0)=>{E0.exports=w0()});var hu=h((rz,A0)=>{"use strict";var OL=Lt();A0.exports=function(e,t,r){return OL.f(e,t,r)}});var k0=h((nz,I0)=>{"use strict";var PL=Mr(),NL=hu(),DL=De(),qL=Be(),S0=DL("species");I0.exports=function(e){var t=PL(e);qL&&t&&!t[S0]&&NL(t,S0,{configurable:!0,get:function(){return this}})}});var D0=h((iz,N0)=>{"use strict";var T0=si(),LL=hu(),R0=Ho(),UL=Vn(),jL=Wo(),ML=_r(),FL=Ko(),BL=Fo(),ia=Bo(),$L=k0(),mi=Be(),C0=di().fastKey,P0=Ir(),O0=P0.set,mu=P0.getterFor;N0.exports={getConstructor:function(e,t,r,n){var i=e(function(c,d){jL(c,o),O0(c,{type:t,index:T0(null),first:null,last:null,size:0}),mi||(c.size=0),ML(d)||FL(d,c[n],{that:c,AS_ENTRIES:r})}),o=i.prototype,a=mu(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=C0(d,!0),key:d,value:u,previous:m=p.last,next:null,removed:!1},p.first||(p.first=f),m&&(m.next=f),mi?p.size++:c.size++,g!=="F"&&(p.index[g]=f)),c},l=function(c,d){var u=a(c),p=C0(d),f;if(p!=="F")return u.index[p];for(f=u.first;f;f=f.next)if(f.key===d)return f};return R0(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=T0(null),mi?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),mi?u.size--:d.size--}return!!p},forEach:function(d){for(var u=a(this),p=UL(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)}}),R0(o,r?{get:function(d){var u=l(this,d);return u&&u.value},set:function(d,u){return s(this,d===0?0:d,u)}}:{add:function(d){return s(this,d=d===0?0:d,d)}}),mi&&LL(o,"size",{configurable:!0,get:function(){return a(this).size}}),i},setStrong:function(e,t,r){var n=t+" Iterator",i=mu(t),o=mu(n);BL(e,t,function(a,s){O0(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,ia(void 0,!0)):ia(s==="keys"?l.key:s==="values"?l.value:[l.key,l.value],!1)},r?"entries":"values",!r,!0),$L(t)}}});var q0=h(()=>{"use strict";var JL=ou(),HL=D0();JL("Set",function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},HL)});var L0=h(()=>{"use strict";q0()});var nr=h((cz,U0)=>{"use strict";var VL=$n(),zL=TypeError;U0.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 zL(VL(e)+" is not a set")}});var M0=h((uz,j0)=>{"use strict";j0.exports=function(e,t){return t===1?function(r,n){return r[e](n)}:function(r,n,i){return r[e](n,i)}}});var ir=h((dz,B0)=>{"use strict";var GL=Mr(),vu=M0(),F0=GL("Set"),KL=F0.prototype;B0.exports={Set:F0,add:vu("add",1),has:vu("has",1),remove:vu("delete",1),proto:KL}});var or=h((fz,$0)=>{"use strict";var WL=ct();$0.exports=function(e,t,r){for(var n=r?e:e.iterator,i=e.next,o,a;!(o=WL(i,n)).done;)if(a=t(o.value),a!==void 0)return a}});var Yr=h((pz,J0)=>{"use strict";var YL=or();J0.exports=function(e,t,r){return r?YL(e.keys(),t,!0):e.forEach(t)}});var oa=h((hz,V0)=>{"use strict";var H0=ir(),QL=Yr(),XL=H0.Set,ZL=H0.add;V0.exports=function(e){var t=new XL;return QL(e,function(r){ZL(t,r)}),t}});var Qr=h((mz,z0)=>{"use strict";z0.exports=function(e){return e.size}});var K0=h((vz,G0)=>{"use strict";G0.exports=function(e){return{iterator:e,next:e.next,done:!1}}});var ar=h((gz,ew)=>{"use strict";var W0=wr(),X0=qt(),Y0=ct(),eU=Gn(),tU=K0(),Q0="Invalid size",rU=RangeError,nU=TypeError,iU=Math.max,Z0=function(e,t){this.set=e,this.size=iU(t,0),this.has=W0(e.has),this.keys=W0(e.keys)};Z0.prototype={getIterator:function(){return tU(X0(Y0(this.keys,this.set)))},includes:function(e){return Y0(this.has,this.set,e)}};ew.exports=function(e){X0(e);var t=+e.size;if(t!==t)throw new nU(Q0);var r=eU(t);if(r<0)throw new rU(Q0);return new Z0(e,r)}});var iw=h((yz,nw)=>{"use strict";var oU=nr(),rw=ir(),aU=oa(),sU=Qr(),lU=ar(),cU=Yr(),uU=or(),dU=rw.has,tw=rw.remove;nw.exports=function(t){var r=oU(this),n=lU(t),i=aU(r);return sU(r)<=n.size?cU(r,function(o){n.includes(o)&&tw(i,o)}):uU(n.getIterator(),function(o){dU(r,o)&&tw(i,o)}),i}});var sr=h((_z,ow)=>{"use strict";ow.exports=function(){return!1}});var aw=h(()=>{"use strict";var fU=V(),pU=iw(),hU=sr(),mU=!hU("difference",function(e){return e.size===0});fU({target:"Set",proto:!0,real:!0,forced:mU},{difference:pU})});var cw=h((Ez,lw)=>{"use strict";var vU=nr(),gu=ir(),gU=Qr(),yU=ar(),_U=Yr(),bU=or(),wU=gu.Set,sw=gu.add,EU=gu.has;lw.exports=function(t){var r=vU(this),n=yU(t),i=new wU;return gU(r)>n.size?bU(n.getIterator(),function(o){EU(r,o)&&sw(i,o)}):_U(r,function(o){n.includes(o)&&sw(i,o)}),i}});var uw=h(()=>{"use strict";var xU=V(),AU=ie(),SU=cw(),IU=sr(),kU=!IU("intersection",function(e){return e.size===2&&e.has(1)&&e.has(2)})||AU(function(){return String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))!=="3,2"});xU({target:"Set",proto:!0,real:!0,forced:kU},{intersection:SU})});var fw=h((Sz,dw)=>{"use strict";var TU=nr(),RU=ir().has,CU=Qr(),OU=ar(),PU=Yr(),NU=or(),DU=zo();dw.exports=function(t){var r=TU(this),n=OU(t);if(CU(r)<=n.size)return PU(r,function(o){if(n.includes(o))return!1},!0)!==!1;var i=n.getIterator();return NU(i,function(o){if(RU(r,o))return DU(i,"normal",!1)})!==!1}});var pw=h(()=>{"use strict";var qU=V(),LU=fw(),UU=sr(),jU=!UU("isDisjointFrom",function(e){return!e});qU({target:"Set",proto:!0,real:!0,forced:jU},{isDisjointFrom:LU})});var mw=h((Tz,hw)=>{"use strict";var MU=nr(),FU=Qr(),BU=Yr(),$U=ar();hw.exports=function(t){var r=MU(this),n=$U(t);return FU(r)>n.size?!1:BU(r,function(i){if(!n.includes(i))return!1},!0)!==!1}});var vw=h(()=>{"use strict";var JU=V(),HU=mw(),VU=sr(),zU=!VU("isSubsetOf",function(e){return e});JU({target:"Set",proto:!0,real:!0,forced:zU},{isSubsetOf:HU})});var yw=h((Oz,gw)=>{"use strict";var GU=nr(),KU=ir().has,WU=Qr(),YU=ar(),QU=or(),XU=zo();gw.exports=function(t){var r=GU(this),n=YU(t);if(WU(r)<n.size)return!1;var i=n.getIterator();return QU(i,function(o){if(!KU(r,o))return XU(i,"normal",!1)})!==!1}});var _w=h(()=>{"use strict";var ZU=V(),ej=yw(),tj=sr(),rj=!tj("isSupersetOf",function(e){return!e});ZU({target:"Set",proto:!0,real:!0,forced:rj},{isSupersetOf:ej})});var ww=h((Dz,bw)=>{"use strict";var nj=nr(),yu=ir(),ij=oa(),oj=ar(),aj=or(),sj=yu.add,lj=yu.has,cj=yu.remove;bw.exports=function(t){var r=nj(this),n=oj(t).getIterator(),i=ij(r);return aj(n,function(o){lj(r,o)?cj(i,o):sj(i,o)}),i}});var Ew=h(()=>{"use strict";var uj=V(),dj=ww(),fj=sr();uj({target:"Set",proto:!0,real:!0,forced:!fj("symmetricDifference")},{symmetricDifference:dj})});var Aw=h((Uz,xw)=>{"use strict";var pj=nr(),hj=ir().add,mj=oa(),vj=ar(),gj=or();xw.exports=function(t){var r=pj(this),n=vj(t).getIterator(),i=mj(r);return gj(n,function(o){hj(i,o)}),i}});var Sw=h(()=>{"use strict";var yj=V(),_j=Aw(),bj=sr();yj({target:"Set",proto:!0,real:!0,forced:!bj("union")},{union:_j})});var Rw=h((Fz,Tw)=>{"use strict";var _u=he(),wj=Gn(),Ej=ii(),xj=br(),Aj=_u("".charAt),Iw=_u("".charCodeAt),Sj=_u("".slice),kw=function(e){return function(t,r){var n=Ej(xj(t)),i=wj(r),o=n.length,a,s;return i<0||i>=o?e?"":void 0:(a=Iw(n,i),a<55296||a>56319||i+1===o||(s=Iw(n,i+1))<56320||s>57343?e?Aj(n,i):a:e?Sj(n,i,i+2):(a-55296<<10)+(s-56320)+65536)}};Tw.exports={codeAt:kw(!1),charAt:kw(!0)}});var Nw=h(()=>{"use strict";var Ij=Rw().charAt,kj=ii(),Ow=Ir(),Tj=Fo(),Cw=Bo(),Pw="String Iterator",Rj=Ow.set,Cj=Ow.getterFor(Pw);Tj(String,"String",function(e){Rj(this,{type:Pw,string:kj(e),index:0})},function(){var t=Cj(this),r=t.string,n=t.index,i;return n>=r.length?Cw(void 0,!0):(i=Ij(r,n),t.index+=i.length,Cw(i,!1))})});var qw=h((Jz,Dw)=>{"use strict";Jo();Xc();L0();aw();uw();pw();vw();_w();Ew();Sw();Nw();var Oj=vt();Dw.exports=Oj.Set});var Uw=h((Hz,Lw)=>{"use strict";var Pj=qw();uu();Lw.exports=Pj});var Mw=h((Vz,jw)=>{jw.exports=Uw()});var Bw=h(Fw=>{"use strict";Fw.f=Object.getOwnPropertySymbols});var Vw=h((Gz,Hw)=>{"use strict";var $w=Be(),Nj=he(),Dj=ct(),qj=ie(),bu=Fc(),Lj=Bw(),Uj=Pl(),jj=Br(),Mj=vo(),Xr=Object.assign,Jw=Object.defineProperty,Fj=Nj([].concat);Hw.exports=!Xr||qj(function(){if($w&&Xr({b:1},Xr(Jw({},"a",{enumerable:!0,get:function(){Jw(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}),Xr({},e)[r]!==7||bu(Xr({},t)).join("")!==n})?function(t,r){for(var n=jj(t),i=arguments.length,o=1,a=Lj.f,s=Uj.f;i>o;)for(var l=Mj(arguments[o++]),c=a?Fj(bu(l),a(l)):bu(l),d=c.length,u=0,p;d>u;)p=c[u++],(!$w||Dj(s,l,p))&&(n[p]=l[p]);return n}:Xr});var Gw=h(()=>{"use strict";var Bj=V(),zw=Vw();Bj({target:"Object",stat:!0,arity:2,forced:Object.assign!==zw},{assign:zw})});var Ww=h((Yz,Kw)=>{"use strict";Gw();var $j=vt();Kw.exports=$j.Object.assign});var Qw=h((Qz,Yw)=>{"use strict";var Jj=Ww();Yw.exports=Jj});var Zw=h((Xz,Xw)=>{Xw.exports=Qw()});var wu=h((Zz,eE)=>{"use strict";eE.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 nE=h((eG,rE)=>{"use strict";var Hj=he(),Vj=br(),zj=ii(),xu=wu(),tE=Hj("".replace),Gj=RegExp("^["+xu+"]+"),Kj=RegExp("(^|[^"+xu+"])["+xu+"]+$"),Eu=function(e){return function(t){var r=zj(Vj(t));return e&1&&(r=tE(r,Gj,"")),e&2&&(r=tE(r,Kj,"$1")),r}};rE.exports={start:Eu(1),end:Eu(2),trim:Eu(3)}});var sE=h((tG,aE)=>{"use strict";var Wj=Lc().PROPER,Yj=ie(),iE=wu(),oE="\u200B\x85\u180E";aE.exports=function(e){return Yj(function(){return!!iE[e]()||oE[e]()!==oE||Wj&&iE[e].name!==e})}});var lE=h(()=>{"use strict";var Qj=V(),Xj=nE().trim,Zj=sE();Qj({target:"String",proto:!0,forced:Zj("trim")},{trim:function(){return Xj(this)}})});var uE=h((iG,cE)=>{"use strict";lE();var eM=it();cE.exports=eM("String","trim")});var fE=h((oG,dE)=>{"use strict";var tM=Fe(),rM=uE(),Au=String.prototype;dE.exports=function(e){var t=e.trim;return typeof e=="string"||e===Au||tM(Au,e)&&t===Au.trim?rM:t}});var hE=h((aG,pE)=>{"use strict";var nM=fE();pE.exports=nM});var vE=h((sG,mE)=>{mE.exports=hE()});var Su=I(()=>{});var wE=h((cG,bE)=>{"use strict";var yE=he(),iM=wr(),oM=we(),aM=Ye(),gE=Zn(),sM=jr(),_E=Function,lM=yE([].concat),cM=yE([].join),Iu={},uM=function(e,t,r){if(!aM(Iu,t)){for(var n=[],i=0;i<t;i++)n[i]="a["+i+"]";Iu[t]=_E("C,a","return new C("+cM(n,",")+")")}return Iu[t](e,r)};bE.exports=sM?_E.bind:function(t){var r=iM(this),n=r.prototype,i=gE(arguments,1),o=function(){var s=lM(i,gE(arguments));return this instanceof o?uM(r,s.length,s):r.apply(t,s)};return oM(n)&&(o.prototype=n),o}});var xE=h(()=>{"use strict";var dM=V(),EE=wE();dM({target:"Function",proto:!0,forced:Function.bind!==EE},{bind:EE})});var SE=h((fG,AE)=>{"use strict";xE();var fM=it();AE.exports=fM("Function","bind")});var kE=h((pG,IE)=>{"use strict";var pM=Fe(),hM=SE(),ku=Function.prototype;IE.exports=function(e){var t=e.bind;return e===ku||pM(ku,e)&&t===ku.bind?hM:t}});var RE=h((hG,TE)=>{"use strict";var mM=kE();TE.exports=mM});var OE=h((mG,CE)=>{CE.exports=RE()});function Ri(e,t){ue.__h&&ue.__h(Q,e,Ei||t),Ei=0;var r=Q.__H||(Q.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function St(e){return Ei=1,vM(hx,e)}function vM(e,t,r){var n=Ri(Tr++,2);if(n.t=e,!n.__c&&(n.__=[hx(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=Q,!Q.__f)){var i=function(s,l,c){var d;if(!n.__c.__H)return!0;var u=(0,Ku.default)(d=n.__c.__H.__).call(d,function(f){return!!f.__c});if((0,ux.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,Ee.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};Q.__f=!0;var o=Q.shouldComponentUpdate,a=Q.componentWillUpdate;Q.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)},Q.shouldComponentUpdate=i}return n.__N||n.__}function lr(e,t){var r=Ri(Tr++,3);!ue.__s&&Zu(r.__H,t)&&(r.__=e,r.u=t,Q.__H.__h.push(r))}function gM(e,t){var r=Ri(Tr++,4);!ue.__s&&Zu(r.__H,t)&&(r.__=e,r.u=t,Q.__h.push(r))}function kr(e){return Ei=5,px(function(){return{current:e}},[])}function px(e,t){var r=Ri(Tr++,7);return Zu(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function ot(e,t){return Ei=8,px(function(){return e},t)}function yM(e){var t=Q.context[e.__c],r=Ri(Tr++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(Q)),t.props.value):e.__}function _M(){for(var e;e=fx.shift();)if(e.__P&&e.__H)try{var t,r;(0,Ee.default)(t=e.__H.__h).call(t,ca),(0,Ee.default)(r=e.__H.__h).call(r,Uu),e.__H.__h=[]}catch(n){e.__H.__h=[],ue.__e(n,e.__v)}}function bM(e){var t,r=function(){clearTimeout(n),ME&&cancelAnimationFrame(t),(0,Et.default)(e)},n=(0,Et.default)(r,100);ME&&(t=requestAnimationFrame(r))}function ca(e){var t=Q,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),Q=t}function Uu(e){var t=Q;e.__c=e.__(),Q=t}function Zu(e,t){return!e||e.length!==t.length||(0,ga.default)(t).call(t,function(r,n){return r!==e[n]})}function hx(e,t){return typeof t=="function"?t(e):t}function w(e,t,r,n,i,o){t||(t={});var a,s,l=t;if("ref"in l)for(s in l={},t)s=="ref"?a=t[s]:l[s]=t[s];var c={type:e,props:l,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--wM,__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 C.vnode&&C.vnode(c),c}function SM(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ju(){throw new Error("setTimeout has not been defined")}function Mu(){throw new Error("clearTimeout has not been defined")}function vx(e){if(gt===Et.default)return(0,Et.default)(e,0);if((gt===ju||!gt)&&Et.default)return gt=Et.default,(0,Et.default)(e,0);try{return gt(e,0)}catch(t){try{return gt.call(null,e,0)}catch(r){return gt.call(this,e,0)}}}function IM(e){if(yt===clearTimeout)return clearTimeout(e);if((yt===Mu||!yt)&&clearTimeout)return yt=clearTimeout,clearTimeout(e);try{return yt(e)}catch(t){try{return yt.call(null,e)}catch(r){return yt.call(this,e)}}}function kM(){!en||!cr||(en=!1,cr.length?Ft=(0,wa.default)(cr).call(cr,Ft):ua=-1,Ft.length&&gx())}function gx(){if(!en){var e=vx(kM);en=!0;for(var t=Ft.length;t;){for(cr=Ft,Ft=[];++ua<t;)cr&&cr[ua].run();ua=-1,t=Ft.length}cr=null,en=!1,IM(e)}}function yx(e,t){this.fun=e,this.array=t}function Bt(){}function CM(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 OM(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 qM(e,t){return Ie(e,0)^45?(((t<<2^Ie(e,0))<<2^Ie(e,1))<<2^Ie(e,2))<<2^Ie(e,3):0}function wx(e){return(0,Xu.default)(e).call(e)}function LM(e,t){return(e=t.exec(e))?e[0]:e}function $(e,t,r){return e.replace(t,r)}function Fu(e,t){return(0,Rr.default)(e).call(e,t)}function Ie(e,t){return e.charCodeAt(t)|0}function xi(e,t,r){return(0,Wu.default)(e).call(e,t,r)}function _t(e){return e.length}function nd(e){return e.length}function aa(e,t){return t.push(e),e}function UM(e,t){return(0,wi.default)(e).call(e,t).join("")}function Aa(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:xa,column:nn,length:a,return:""}}function gi(e,t){return DM(Aa("",null,null,"",null,null,0),e,{length:-e.length},t)}function jM(){return me}function MM(){return me=Je>0?Ie(an,--Je):0,nn--,me===10&&(nn=1,xa--),me}function Qe(){return me=Je<Ex?Ie(an,Je++):0,nn++,me===10&&(nn=1,xa++),me}function xt(){return Ie(an,Je)}function da(){return Je}function Ci(e,t){return xi(an,e,t)}function Ai(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function xx(e){return xa=nn=1,Ex=_t(an=e),Je=0,[]}function Ax(e){return an="",e}function fa(e){return wx(Ci(Je-1,Bu(e===91?e+2:e===40?e+1:e)))}function FM(e){for(;(me=xt())&&me<33;)Qe();return Ai(e)>2||Ai(me)>3?"":" "}function BM(e,t){for(;--t&&Qe()&&!(me<48||me>102||me>57&&me<65||me>70&&me<97););return Ci(e,da()+(t<6&&xt()==32&&Qe()==32))}function Bu(e){for(;Qe();)switch(me){case e:return Je;case 34:case 39:e!==34&&e!==39&&Bu(me);break;case 40:e===41&&Bu(e);break;case 92:Qe();break}return Je}function $M(e,t){for(;Qe()&&e+me!==57&&!(e+me===84&&xt()===47););return"/*"+Ci(t,Je-1)+"*"+Ea(e===47?e:Qe())}function JM(e){for(;!Ai(xt());)Qe();return Ci(e,Je)}function HM(e){return Ax(pa("",null,null,null,[""],e=xx(e),0,[0],e))}function pa(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,_=1,v=1,b=0,E="",k=i,O=o,R=n,y=E;_;)switch(m=b,b=Qe()){case 40:if(m!=108&&Ie(y,u-1)==58){Fu(y+=$(fa(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:y+=fa(b);break;case 9:case 10:case 13:case 32:y+=FM(m);break;case 92:y+=BM(da()-1,7);continue;case 47:switch(xt()){case 42:case 47:aa(VM($M(Qe(),da()),t,r),l);break;default:y+="/"}break;case 123*g:s[c++]=_t(y)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:_=0;case 59+d:f>0&&_t(y)-u&&aa(f>32?BE(y+";",n,r,u-1):BE($(y," ","")+";",n,r,u-2),l);break;case 59:y+=";";default:if(aa(R=FE(y,t,r,c,d,i,s,E,k=[],O=[],u),o),b===123)if(d===0)pa(y,t,R,R,k,o,u,s,O);else switch(p===99&&Ie(y,3)===110?100:p){case 100:case 109:case 115:pa(e,R,R,n&&aa(FE(e,R,R,0,0,i,s,E,i,k=[],u),O),i,O,u,s,n?k:O);break;default:pa(y,R,R,R,[""],O,0,s,O)}}c=d=f=0,g=v=1,E=y="",u=a;break;case 58:u=1+_t(y),f=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&MM()==125)continue}switch(y+=Ea(b),b*g){case 38:v=d>0?1:(y+="\f",-1);break;case 44:s[c++]=(_t(y)-1)*v,v=1;break;case 64:xt()===45&&(y+=fa(Qe())),p=xt(),d=u=_t(E=y+=JM(da())),b++;break;case 45:m===45&&_t(y)==2&&(g=0)}}return o}function FE(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=nd(p),m=0,g=0,_=0;m<n;++m)for(var v=0,b=xi(e,u+1,u=NM(g=a[m])),E=e;v<f;++v)(E=wx(g>0?p[v]+" "+b:$(b,/&\f/g,p[v])))&&(l[_++]=E);return Aa(e,t,r,i===0?td:s,l,c,d)}function VM(e,t,r){return Aa(e,t,r,ed,Ea(jM()),xi(e,2,-2),0)}function BE(e,t,r,n){return Aa(e,t,r,rd,xi(e,0,n),xi(e,n+1,-1),n)}function tn(e,t){for(var r="",n=nd(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function zM(e,t,r,n){switch(e.type){case PM:case rd:return e.return=e.return||e.value;case ed:return"";case bx:return e.return=e.value+"{"+tn(e.children,n)+"}";case td:e.value=e.props.join(",")}return _t(r=tn(e.children,n))?e.return=e.value+"{"+r+"}":""}function GM(e){var t=nd(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 KM(e){return function(t){t.root||(t=t.return)&&e(t)}}function Ix(e,t){switch(qM(e,t)){case 5103:return U+"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 U+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return U+e+_a+e+qe+e+e;case 6828:case 4268:return U+e+qe+e+e;case 6165:return U+e+qe+"flex-"+e+e;case 5187:return U+e+$(e,/(\w+).+(:[^]+)/,U+"box-$1$2"+qe+"flex-$1$2")+e;case 5443:return U+e+qe+"flex-item-"+$(e,/flex-|-self/,"")+e;case 4675:return U+e+qe+"flex-line-pack"+$(e,/align-content|flex-|-self/,"")+e;case 5548:return U+e+qe+$(e,"shrink","negative")+e;case 5292:return U+e+qe+$(e,"basis","preferred-size")+e;case 6060:return U+"box-"+$(e,"-grow","")+U+e+qe+$(e,"grow","positive")+e;case 4554:return U+$(e,/([^-])(transform)/g,"$1"+U+"$2")+e;case 6187:return $($($(e,/(zoom-|grab)/,U+"$1"),/(image-set)/,U+"$1"),e,"")+e;case 5495:case 3959:return $(e,/(image-set\([^]*)/,U+"$1$`$1");case 4968:return $($(e,/(.+:)(flex-)?(.*)/,U+"box-pack:$3"+qe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+U+e+e;case 4095:case 3583:case 4068:case 2532:return $(e,/(.+)-inline(.+)/,U+"$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(_t(e)-1-t>6)switch(Ie(e,t+1)){case 109:if(Ie(e,t+4)!==45)break;case 102:return $(e,/(.+:)(.+)-([^]+)/,"$1"+U+"$2-$3$1"+_a+(Ie(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Fu(e,"stretch")?Ix($(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ie(e,t+1)!==115)break;case 6444:switch(Ie(e,_t(e)-3-(~Fu(e,"!important")&&10))){case 107:return $(e,":",":"+U)+e;case 101:return $(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+U+(Ie(e,14)===45?"inline-":"")+"box$3$1"+U+"$2$3$1"+qe+"$2box$3")+e}break;case 5936:switch(Ie(e,t+11)){case 114:return U+e+qe+$(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return U+e+qe+$(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return U+e+qe+$(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return U+e+qe+e+e}return e}function Tx(){if(HE)return sa.exports;HE=1;let e=Tx();return sa.exports={default:e},sa.exports.default=e,sa.exports}function Si(e,t,r){var n,i="";return(0,Ee.default)(n=r.split(" ")).call(n,function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(i+=o+" ")}),i}function l2(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 u2(e){var t=(0,dx.default)(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function Ii(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 bt={name:i.name,styles:i.styles,next:bt},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)bt={name:a.name,styles:a.styles,next:bt},a=a.next;var s=o.styles+";";return s}return p2(e,t,r)}case"function":{if(e!==void 0){var l=bt,c=r(e);return bt=l,Ii(e,t,c)}break}}var d=r;if(t==null)return d;var u=t[d];return u!==void 0?u:d}function p2(e,t,r){var n="";if((0,bi.default)(r))for(var i=0;i<r.length;i++)n+=Ii(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]+"}":VE(s)&&(n+=Cu(o)+":"+zE(o,s)+";")}else if((0,bi.default)(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var l=0;l<a.length;l++)VE(a[l])&&(n+=Cu(o)+":"+zE(o,a[l])+";");else{var c=Ii(e,t,a);switch(o){case"animation":case"animationName":{n+=Cu(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function ur(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="";bt=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=Ii(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=Ii(r,t,e[s]),n){var l=o;i+=l[s]}GE.lastIndex=0;for(var c="",d;(d=GE.exec(i))!==null;)c+="-"+d[1];var u=l2(i)+c;return{name:u,styles:i,next:bt}}function D(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return ur(t)}function E2(e,t,r){var n=[],i=Si(e,n,r);return n.length<2?r:i+t(n)}function sd(){let e=()=>typeof window>"u"?"portrait":window.matchMedia("(orientation: landscape)").matches?"landscape":"portrait",[t,r]=St(e());return lr(()=>{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 V2(){return te&&document.body.contains(te)||(te=document.createElement("iframe"),te.style.position="fixed",te.style.left="0",te.style.top="0",te.style.width="100vw",te.style.height="100vh",te.style.zIndex="99999999",te.style.border="none",te.style.background="transparent",te.setAttribute("allowtransparency","true"),te.style.display="none",document.body.appendChild(te),Hu=new Promise(e=>{yi=e}),te.onload=()=>{var e;if(!((e=te==null?void 0:te.contentDocument)!=null&&e.head)){console.error("[Modal] Persistent iframe loaded, but document or head is not available.");return}console.log("[Modal] Persistent iframe content loaded."),Ju=kx({key:"iframepersistentcss",container:te.contentDocument.head,prepend:!0}),Du&&Du(),Du=G2(te),yi==null||yi(),yi=null},te.onerror=()=>{console.error("[Modal] Persistent iframe failed to load.")},te.src="about:blank"),te}function z2(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 Ux(e){let t=window.getComputedStyle(document.body).transform,r="";t&&t!=="none"&&(r=z2(t)),e.style.transform=r,e.style.transformOrigin="0 0"}function G2(e){let t=()=>Ux(e);return window.addEventListener("resize",t),window.addEventListener("orientationchange",t),()=>{window.removeEventListener("resize",t),window.removeEventListener("orientationchange",t)}}function W2(s){var l=s,{elementTag:e="Image",src:t="",children:r,handleExposure:n,className:i,imgStyle:o}=l,a=pt(l,["elementTag","src","children","handleExposure","className","imgStyle"]);let c=K2(()=>{t&&n()});return e==="Image"?w("div",{className:i,style:{borderRadius:"8px"},children:Ne("img",q(T({},a),{ref:c,src:t!=null?t:"",style:T({display:"block",width:"100%",height:"auto",objectFit:"cover",maxWidth:"100%",maxHeight:"100%",aspectRatio:"1 / 1",borderRadius:"8px"},o||{})}))}):w("div",q(T({},a),{ref:c,className:i,children:r}))}function Y2(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?Ne(i.type,q(T({},i.props),{style:q(T({},i.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0}),key:i.key||o})):i):e&&typeof e=="object"&&"type"in e?Ne(e.type,q(T({},e.props),{style:q(T({},e.props.style||{}),{paddingLeft:r>0?`${r/2}px`:void 0,paddingRight:r>0?`${r/2}px`:void 0,paddingTop:n>0?`${n/2}px`:void 0,paddingBottom:n>0?`${n/2}px`:void 0})})):e}function tF(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 mF(e,t){return ke(e,0)^45?(((t<<2^ke(e,0))<<2^ke(e,1))<<2^ke(e,2))<<2^ke(e,3):0}function Kx(e){return(0,Xu.default)(e).call(e)}function vF(e,t){return(e=t.exec(e))?e[0]:e}function M(e,t,r){return e.replace(t,r)}function zu(e,t){return(0,Rr.default)(e).call(e,t)}function ke(e,t){return e.charCodeAt(t)|0}function ki(e,t,r){return(0,Wu.default)(e).call(e,t,r)}function wt(e){return e.length}function fd(e){return e.length}function la(e,t){return t.push(e),e}function gF(e,t){return(0,wi.default)(e).call(e,t).join("")}function Ca(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Ra,column:on,length:a,return:""}}function _i(e,t){return hF(Ca("",null,null,"",null,null,0),e,{length:-e.length},t)}function yF(){return ve}function _F(){return ve=He>0?ke(ln,--He):0,on--,ve===10&&(on=1,Ra--),ve}function Xe(){return ve=He<Wx?ke(ln,He++):0,on++,ve===10&&(on=1,Ra++),ve}function At(){return ke(ln,He)}function ha(){return He}function Oi(e,t){return ki(ln,e,t)}function Ti(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 Yx(e){return Ra=on=1,Wx=wt(ln=e),He=0,[]}function Qx(e){return ln="",e}function ma(e){return Kx(Oi(He-1,Gu(e===91?e+2:e===40?e+1:e)))}function bF(e){for(;(ve=At())&&ve<33;)Xe();return Ti(e)>2||Ti(ve)>3?"":" "}function wF(e,t){for(;--t&&Xe()&&!(ve<48||ve>102||ve>57&&ve<65||ve>70&&ve<97););return Oi(e,ha()+(t<6&&At()==32&&Xe()==32))}function Gu(e){for(;Xe();)switch(ve){case e:return He;case 34:case 39:e!==34&&e!==39&&Gu(ve);break;case 40:e===41&&Gu(e);break;case 92:Xe();break}return He}function EF(e,t){for(;Xe()&&e+ve!==57&&!(e+ve===84&&At()===47););return"/*"+Oi(t,He-1)+"*"+Ta(e===47?e:Xe())}function xF(e){for(;!Ti(At());)Xe();return Oi(e,He)}function AF(e){return Qx(va("",null,null,null,[""],e=Yx(e),0,[0],e))}function va(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,_=1,v=1,b=0,E="",k=i,O=o,R=n,y=E;_;)switch(m=b,b=Xe()){case 40:if(m!=108&&ke(y,u-1)==58){zu(y+=M(ma(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:y+=ma(b);break;case 9:case 10:case 13:case 32:y+=bF(m);break;case 92:y+=wF(ha()-1,7);continue;case 47:switch(At()){case 42:case 47:la(SF(EF(Xe(),ha()),t,r),l);break;default:y+="/"}break;case 123*g:s[c++]=wt(y)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:_=0;case 59+d:v==-1&&(y=M(y,/\f/g,"")),f>0&&wt(y)-u&&la(f>32?sx(y+";",n,r,u-1):sx(M(y," ","")+";",n,r,u-2),l);break;case 59:y+=";";default:if(la(R=ax(y,t,r,c,d,i,s,E,k=[],O=[],u),o),b===123)if(d===0)va(y,t,R,R,k,o,u,s,O);else switch(p===99&&ke(y,3)===110?100:p){case 100:case 108:case 109:case 115:va(e,R,R,n&&la(ax(e,R,R,0,0,i,s,E,i,k=[],u),O),i,O,u,s,n?k:O);break;default:va(y,R,R,R,[""],O,0,s,O)}}c=d=f=0,g=v=1,E=y="",u=a;break;case 58:u=1+wt(y),f=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&_F()==125)continue}switch(y+=Ta(b),b*g){case 38:v=d>0?1:(y+="\f",-1);break;case 44:s[c++]=(wt(y)-1)*v,v=1;break;case 64:At()===45&&(y+=ma(Xe())),p=At(),d=u=wt(E=y+=xF(ha())),b++;break;case 45:m===45&&wt(y)==2&&(g=0)}}return o}function ax(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=fd(p),m=0,g=0,_=0;m<n;++m)for(var v=0,b=ki(e,u+1,u=pF(g=a[m])),E=e;v<f;++v)(E=Kx(g>0?p[v]+" "+b:M(b,/&\f/g,p[v])))&&(l[_++]=E);return Ca(e,t,r,i===0?ud:s,l,c,d)}function SF(e,t,r){return Ca(e,t,r,zx,Ta(yF()),ki(e,2,-2),0)}function sx(e,t,r,n){return Ca(e,t,r,dd,ki(e,0,n),ki(e,n+1,-1),n)}function rn(e,t){for(var r="",n=fd(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function IF(e,t,r,n){switch(e.type){case fF:if(e.children.length)break;case dF:case dd:return e.return=e.return||e.value;case zx:return"";case Gx:return e.return=e.value+"{"+rn(e.children,n)+"}";case ud:e.value=e.props.join(",")}return wt(r=rn(e.children,n))?e.return=e.value+"{"+r+"}":""}function kF(e){var t=fd(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 TF(e){return function(t){t.root||(t=t.return)&&e(t)}}function Xx(e,t){switch(mF(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+ba+e+Le+e+e;case 6828:case 4268:return j+e+Le+e+e;case 6165:return j+e+Le+"flex-"+e+e;case 5187:return j+e+M(e,/(\w+).+(:[^]+)/,j+"box-$1$2"+Le+"flex-$1$2")+e;case 5443:return j+e+Le+"flex-item-"+M(e,/flex-|-self/,"")+e;case 4675:return j+e+Le+"flex-line-pack"+M(e,/align-content|flex-|-self/,"")+e;case 5548:return j+e+Le+M(e,"shrink","negative")+e;case 5292:return j+e+Le+M(e,"basis","preferred-size")+e;case 6060:return j+"box-"+M(e,"-grow","")+j+e+Le+M(e,"grow","positive")+e;case 4554:return j+M(e,/([^-])(transform)/g,"$1"+j+"$2")+e;case 6187:return M(M(M(e,/(zoom-|grab)/,j+"$1"),/(image-set)/,j+"$1"),e,"")+e;case 5495:case 3959:return M(e,/(image-set\([^]*)/,j+"$1$`$1");case 4968:return M(M(e,/(.+:)(flex-)?(.*)/,j+"box-pack:$3"+Le+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+j+e+e;case 4095:case 3583:case 4068:case 2532:return M(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(wt(e)-1-t>6)switch(ke(e,t+1)){case 109:if(ke(e,t+4)!==45)break;case 102:return M(e,/(.+:)(.+)-([^]+)/,"$1"+j+"$2-$3$1"+ba+(ke(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~zu(e,"stretch")?Xx(M(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ke(e,t+1)!==115)break;case 6444:switch(ke(e,wt(e)-3-(~zu(e,"!important")&&10))){case 107:return M(e,":",":"+j)+e;case 101:return M(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+j+(ke(e,14)===45?"inline-":"")+"box$3$1"+j+"$2$3$1"+Le+"$2box$3")+e}break;case 5936:switch(ke(e,t+11)){case 114:return j+e+Le+M(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return j+e+Le+M(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return j+e+Le+M(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return j+e+Le+e+e}return e}function cx(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function qu(e,t,r){var n=[],i=Si(e,n,r);return n.length<2?r:i+t(n)}var Ku,ux,Ee,wa,ga,Et,Wu,bi,yG,ya,Yu,Rr,wi,dx,_G,Qu,Xu,Lu,Tr,Q,Tu,PE,Ei,fx,ue,NE,DE,qE,LE,UE,jE,ME,wM,Ru,EM,xM,AM,mx,de,gt,yt,Ft,en,cr,ua,TM,Te,RM,_x,qe,_a,U,ed,td,rd,PM,bx,NM,Ea,DM,xa,nn,Ex,Je,me,an,WM,YM,QM,$E,XM,ZM,e2,t2,r2,Sx,n2,JE,i2,o2,a2,kx,sa,HE,s2,id,Sa,c2,d2,f2,Rx,VE,Cu,zE,GE,bt,h2,Cx,Ox,KE,m2,od,v2,ad,Ia,WE,YE,g2,y2,_2,QE,b2,w2,x2,A2,Ou,XE,Pu,Nu,S2,ZE,I2,ex,k2,tx,T2,rx,R2,C2,O2,P2,N2,nx,D2,q2,L2,U2,j2,ix,M2,F2,B2,$2,Px,Nx,Dx,$u,J2,qx,Lx,H2,te,Ju,yi,Hu,Du,ld,K2,jx,Mx,Fx,Q2,X2,Z2,Vu,eF,Bx,sn,ka,ox,Mt,$x,Zr,rF,nF,iF,oF,aF,re,sF,lF,Jx,Hx,Vx,cd,cF,uF,Le,ba,j,zx,ud,dd,dF,Gx,fF,pF,Ta,hF,Ra,on,Wx,He,ve,ln,RF,CF,OF,lx,PF,NF,DF,qF,LF,UF,jF,MF,Zx,FF,BF,eA,Pi=I(()=>{"use strict";Ur();Ku=ae(iv(),1),ux=ae(hv(),1),Ee=ae(kv(),1),wa=ae($v(),1),ga=ae(Qv(),1),Et=ae(mg(),1);Co();Co();Wu=ae(Xg(),1),bi=ae(oy(),1),yG=ae(xy(),1),ya=ae(Ly(),1),Yu=ae(Qb(),1),Rr=ae(s0(),1),wi=ae(v0(),1),dx=ae(x0(),1),_G=ae(Mw(),1),Qu=ae(Zw(),1),Xu=ae(vE(),1);Su();Su();Lu=ae(OE(),1),Ei=0,fx=[],ue=C,NE=ue.__b,DE=ue.__r,qE=ue.diffed,LE=ue.__c,UE=ue.unmount,jE=ue.__;ue.__b=function(e){Q=null,NE&&NE(e)},ue.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),jE&&jE(e,t)},ue.__r=function(e){var t,r,n;DE&&DE(e),Tr=0;var i=(Q=e.__c).__H;i&&(Tu===Q?(i.__h=[],Q.__h=[],(0,Ee.default)(t=i.__).call(t,function(o){o.__N&&(o.__=o.__N),o.u=o.__N=void 0})):((0,Ee.default)(r=i.__h).call(r,ca),(0,Ee.default)(n=i.__h).call(n,Uu),i.__h=[],Tr=0)),Tu=Q},ue.diffed=function(e){var t;qE&&qE(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(fx.push(r)!==1&&PE===ue.requestAnimationFrame||((PE=ue.requestAnimationFrame)||bM)(_M)),(0,Ee.default)(t=r.__H.__).call(t,function(n){n.u&&(n.__H=n.u),n.u=void 0})),Tu=Q=null},ue.__c=function(e,t){(0,ga.default)(t).call(t,function(r){try{var n,i;(0,Ee.default)(n=r.__h).call(n,ca),r.__h=(0,Ku.default)(i=r.__h).call(i,function(o){return!o.__||Uu(o)})}catch(o){(0,ga.default)(t).call(t,function(a){a.__h&&(a.__h=[])}),t=[],ue.__e(o,r.__v)}}),LE&&LE(e,t)},ue.unmount=function(e){var t;UE&&UE(e);var r,n=e.__c;n&&n.__H&&((0,Ee.default)(t=n.__H.__).call(t,function(i){try{ca(i)}catch(o){r=o}}),n.__H=void 0,r&&ue.__e(r,n.__v))};ME=typeof requestAnimationFrame=="function";wM=0;Ru={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:"white",borderRadius:"16px 16px 0 0",width:"100%",maxWidth:"100%",overflowY:"auto",position:"relative",boxShadow:"0 -2px 10px rgba(0, 0, 0, 0.1)",display:"flex",flexDirection:"column",margin:"0 auto",minHeight:"250px"},drawerContent:{flex:1,width:"100%",height:"100%",overflow:"auto",margin:"0 auto"}},EM=`
21
21
  @keyframes fadeIn {
22
22
  from { opacity: 0; }
23
23
  to { opacity: 1; }
@@ -53,50 +53,45 @@ var oE=Object.create;var Vn=Object.defineProperty,iE=Object.defineProperties,aE=
53
53
  .drawer-leave {
54
54
  animation: slideDown 0.3s ease forwards;
55
55
  }
56
- `,aN=({children:e,isOpen:t=!1,onClose:r,height:n="50%",className:o="",backdropColor:i},a)=>{let[s,l]=yt(t),[c,d]=yt(null),u=ri(null),h=ri(!1);Ut(()=>{let I=document.createElement("style");return I.innerHTML=iN,document.head.appendChild(I),()=>{document.head.removeChild(I)}},[]),Ut(()=>{t!==s&&!h.current&&(l(t),d(t?"enter":"leave"),t?(document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.width="100%"):!t&&!h.current&&(document.body.style.overflow="",document.body.style.position="",document.body.style.width=""))},[t,s]),Ut(()=>()=>{document.body.style.overflow="",document.body.style.position="",document.body.style.width=""},[]);let p=Ke(()=>{c==="leave"&&(d(null),l(!1),h.current=!1)},[c]),m=Ke(I=>{I.preventDefault(),I.stopPropagation(),I.target===u.current&&_()},[]),g=Ke(()=>{h.current=!1,l(!0),d("enter")},[]),_=Ke(()=>{h.current=!0,d("leave"),document.body.style.overflow="",document.body.style.position="",document.body.style.width="",r&&r()},[r]),v=Ke(()=>s&&!h.current,[s]);if(Ut(()=>{if(a){let I={show:g,hide:_,isOpen:v};typeof a=="function"?a(I):a&&(a.current=I)}},[g,_,v,a]),!s&&!c)return null;let y=q(R({},Ql.drawer),{height:typeof n=="number"?`${n}px`:n,backgroundColor:i||"rgba(255, 255, 255, 1)"}),A=q(R({},Ql.drawerBackdrop),{pointerEvents:"auto"}),k=c?`drawer-${c}`:"",O=c?`backdrop-${c}`:"";return b("div",{ref:u,style:A,className:O,onClick:m,onTouchMove:I=>I.preventDefault(),onTouchStart:I=>I.stopPropagation(),onTouchEnd:I=>I.stopPropagation(),children:b("div",{style:y,className:`${k} ${o}`,onAnimationEnd:p,onClick:I=>I.stopPropagation(),onTouchMove:I=>{I.stopPropagation()},onTouchStart:I=>I.stopPropagation(),onTouchEnd:I=>I.stopPropagation(),children:b("div",{style:q(R({},Ql.drawerContent),{pointerEvents:"auto"}),onTouchMove:I=>I.stopPropagation(),onClick:I=>I.stopPropagation(),children:e})})})},sN=Om(aN);uN=function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},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,Ae.default)(r).call(r,this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(cN(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var o=lN(n);try{o.insertRule(r,o.cssRules.length)}catch(i){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){var r;(0,Ae.default)(r=this.tags).call(r,function(n){var o;return(o=n.parentNode)==null?void 0:o.removeChild(n)}),this.tags=[],this.ctr=0},e}(),xe="-ms-",ni="-moz-",U="-webkit-",Pb="comm",dc="rule",fc="decl",dN="@import",Nb="@keyframes",fN="@layer",pN=Math.abs,ii=String.fromCharCode,hN=Ib.default;ai=1,br=1,qb=0,Pe=0,ie=0,wr="";CN=function(e,t,r){for(var n=0,o=0;n=o,o=st(),n===38&&o===12&&(t[r]=1),!Sn(o);)je();return In(e,Pe)},ON=function(e,t){var r=-1,n=44;do switch(Sn(n)){case 0:n===38&&st()===12&&(t[r]=1),e[r]+=CN(Pe-1,t,r);break;case 2:e[r]+=Xo(n);break;case 4:if(n===44){e[++r]=st()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=ii(n)}while(n=je());return e},PN=function(e,t){return Ub(ON(Lb(e),t))},mb=new xb.default,NN=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&&!mb.get(r))&&!n){mb.set(e,!0);for(var o=[],i=PN(t,o),a=r.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},DN=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};qN=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case fc:e.return=Mb(e.value,e.length);break;case Nb:return yr([wn(e,{value:M(e.value,"@","@"+U)})],n);case dc:if(e.length)return gN(e.props,function(o){switch(vN(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return yr([wn(e,{props:[M(o,/:(read-\w+)/,":"+ni+"$1")]})],n);case"::placeholder":return yr([wn(e,{props:[M(o,/:(plac\w+)/,":"+U+"input-$1")]}),wn(e,{props:[M(o,/:(plac\w+)/,":"+ni+"$1")]}),wn(e,{props:[M(o,/:(plac\w+)/,xe+"input-$1")]})],n)}return""})}},LN=[qN],UN=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,Ae.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,cc.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||LN,o={},i,a=[];i=e.container||document.head,(0,Ae.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),_=1;_<g.length;_++)o[g[_]]=!0;a.push(m)});var s,l=[NN,DN];{var c,d=[IN,RN(function(m){c.insert(m)})],u=TN((0,wb.default)(l).call(l,n,d)),h=function(m){return yr(AN(m),u)};s=function(m,g,_,v){c=_,h(m?m+"{"+g.styles+"}":g.styles),v&&(p.inserted[g.name]=!0)}}var p={key:t,sheet:new uN({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:s};return p.sheet.hydrate(a),p};FN={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},jN=/[A-Z]|^ms/g,BN=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Fb=function(e){return e.charCodeAt(1)===45},vb=function(e){return e!=null&&typeof e!="boolean"},Xl=kN(function(e){return Fb(e)?e:e.replace(jN,"-$&").toLowerCase()}),gb=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(BN,function(r,n,o){return Mt={name:n,styles:o,next:Mt},n})}return FN[e]!==1&&!Fb(e)&&typeof t=="number"&&t!==0?t+"px":t};_b=/label:\s*([^\s;{]+)\s*(;|$)/g;HN=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},JN=function(e,t,r){HN(e,t);var n=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var o=t;do e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};VN=function(e){var t=UN(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=Zl(s,t.registered,void 0);return JN(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=Zl(s,t.registered),d="animation-"+c.name;return yb(t,{name:c.name,styles:"@keyframes "+d+"{"+c.styles+"}"}),d},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=Zl(s,t.registered);yb(t,c)},i=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return ec(t.registered,r,GN(s))};return{css:r,cx:i,injectGlobal:o,keyframes:n,hydrate:function(a){(0,Ae.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,rc.default)(ac).call(ac,null,t.registered),merge:(0,rc.default)(ec).call(ec,null,t.registered,r)}},GN=function e(t){for(var r="",n=0;n<t.length;n++){var o=t[n];if(o!=null){var i=void 0;switch(typeof o){case"boolean":break;case"object":{if((0,ti.default)(o))i=e(o);else{i="";for(var a in o)o[a]&&a&&(i&&(i+=" "),i+=a)}break}default:i=o}i&&(r&&(r+=" "),r+=i)}}return r},KN=VN({key:"css"}),N=KN.css;zN=({title:e,content:t,noHeader:r,height:n,padding:o="16px",footerButtons:i,onClose:a})=>{let s=hc(),l={container:N`
56
+ `,xM=({children:e,isOpen:t=!1,onClose:r,height:n="50%",className:i="",backdropColor:o},a)=>{let[s,l]=St(t),[c,d]=St(null),u=kr(null),p=kr(!1),f=kr(t);lr(()=>{let y=document.createElement("style");return y.innerHTML=EM,document.head.appendChild(y),()=>{document.head.removeChild(y)}},[]),lr(()=>{t?!s&&!p.current&&(l(!0),requestAnimationFrame(()=>{setTimeout(()=>{d("enter"),document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.width="100%"},0)}),f.current=!0):s&&(p.current=!0,d("leave"),document.body.style.overflow="",document.body.style.position="",document.body.style.width="",r&&r())},[t]),lr(()=>()=>{document.body.style.overflow="",document.body.style.position="",document.body.style.width=""},[]);let m=ot(()=>{c==="leave"?(d(null),l(!1),p.current=!1,r&&r()):c==="enter"&&d(null)},[c,r]),g=ot(y=>{y.preventDefault(),y.stopPropagation(),y.target===u.current&&v()},[]),_=ot(()=>{p.current=!1,s||(!t||!f.current?(l(!0),requestAnimationFrame(()=>{setTimeout(()=>{d("enter"),document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.width="100%"},0)})):t&&f.current&&c!=="enter"&&d("enter")),f.current=!1},[s,t,c]),v=ot(()=>{p.current=!0,d("leave"),document.body.style.overflow="",document.body.style.position="",document.body.style.width="",r&&r()},[r]),b=ot(()=>s&&!p.current,[s]);if(lr(()=>{if(a){let y={show:_,hide:v,isOpen:b};typeof a=="function"?a(y):a&&(a.current=y)}},[_,v,b,a]),!s&&!c)return null;let E=q(T({},Ru.drawer),{height:typeof n=="number"?`${n}px`:n,backgroundColor:o||"rgba(255, 255, 255, 1)"}),k=q(T({},Ru.drawerBackdrop),{pointerEvents:"auto"}),O=c?`drawer-${c}`:"",R=c?`backdrop-${c}`:"";return w("div",{ref:u,style:k,className:R,onClick:g,onTouchMove:y=>y.preventDefault(),onTouchStart:y=>y.stopPropagation(),onTouchEnd:y=>y.stopPropagation(),children:w("div",{style:E,className:`${O} ${i}`,onAnimationEnd:m,onClick:y=>y.stopPropagation(),onTouchMove:y=>{y.stopPropagation()},onTouchStart:y=>y.stopPropagation(),onTouchEnd:y=>y.stopPropagation(),children:w("div",{style:q(T({},Ru.drawerContent),{pointerEvents:"auto"}),onTouchMove:y=>y.stopPropagation(),onClick:y=>y.stopPropagation(),children:e})})})},AM=Ec(xM);mx={exports:{}},de=mx.exports={};(function(){try{typeof Et.default=="function"?gt=Et.default:gt=ju}catch(e){gt=ju}try{typeof clearTimeout=="function"?yt=clearTimeout:yt=Mu}catch(e){yt=Mu}})();Ft=[],en=!1,ua=-1;de.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];Ft.push(new yx(e,t)),Ft.length===1&&!en&&vx(gx)};yx.prototype.run=function(){this.fun.apply(null,this.array)};de.title="browser";de.browser=!0;de.env={};de.argv=[];de.version="";de.versions={};de.on=Bt;de.addListener=Bt;de.once=Bt;de.off=Bt;de.removeListener=Bt;de.removeAllListeners=Bt;de.emit=Bt;de.prependListener=Bt;de.prependOnceListener=Bt;de.listeners=function(e){return[]};de.binding=function(e){throw new Error("process.binding is not supported")};de.cwd=function(){return"/"};de.chdir=function(e){throw new Error("process.chdir is not supported")};de.umask=function(){return 0};TM=mx.exports,Te=SM(TM),RM=ya.default||void 0||self;_x=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,Ee.default)(r).call(r,this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(OM(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=CM(n);try{i.insertRule(r,i.cssRules.length)}catch(o){}}else n.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){var r;(0,Ee.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}(),qe="-ms-",_a="-moz-",U="-webkit-",ed="comm",td="rule",rd="decl",PM="@import",bx="@keyframes",NM=Math.abs,Ea=String.fromCharCode,DM=Qu.default;xa=1,nn=1,Ex=0,Je=0,me=0,an="";WM=function(e,t,r){for(var n=0,i=0;n=i,i=xt(),n===38&&i===12&&(t[r]=1),!Ai(i);)Qe();return Ci(e,Je)},YM=function(e,t){var r=-1,n=44;do switch(Ai(n)){case 0:n===38&&xt()===12&&(t[r]=1),e[r]+=WM(Je-1,t,r);break;case 2:e[r]+=fa(n);break;case 4:if(n===44){e[++r]=xt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Ea(n)}while(n=Qe());return e},QM=function(e,t){return Ax(YM(xx(e),t))},$E=new Yu.default,XM=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&&!$E.get(r))&&!n){$E.set(e,!0);for(var i=[],o=QM(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]}}},ZM=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},e2="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",t2=function(e){var t;return e.type==="comm"&&(0,Rr.default)(t=e.children).call(t,e2)>-1},r2=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(t2(l))return;break}}(0,Ee.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".')})}}}},Sx=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},n2=function(e,t){for(var r=e-1;r>=0;r--)if(!Sx(t[r]))return!0;return!1},JE=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},i2=function(e,t,r){Sx(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."),JE(e)):n2(t,r)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),JE(e)))};o2=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case rd:e.return=Ix(e.value,e.length);break;case bx:return tn([gi(e,{value:$(e.value,"@","@"+U)})],n);case td:if(e.length)return UM(e.props,function(i){switch(LM(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return tn([gi(e,{props:[$(i,/:(read-\w+)/,":"+_a+"$1")]})],n);case"::placeholder":return tn([gi(e,{props:[$(i,/:(plac\w+)/,":"+U+"input-$1")]}),gi(e,{props:[$(i,/:(plac\w+)/,":"+_a+"$1")]}),gi(e,{props:[$(i,/:(plac\w+)/,qe+"input-$1")]})],n)}return""})}},a2=[o2],kx=function(e){var t=e.key;if(Te.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.
57
+ 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,Ee.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,Rr.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||a2;if(Te.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,Ee.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),_=1;_<g.length;_++)i[g[_]]=!0;a.push(m)});var s,l=[XM,ZM];Te.env.NODE_ENV!=="production"&&l.push(r2({get compat(){return f.compat}}),i2);{var c,d=[zM,Te.env.NODE_ENV!=="production"?function(m){m.root||(m.return?c.insert(m.return):m.value&&m.type!==ed&&c.insert(m.value+"{}"))}:KM(function(m){c.insert(m)})],u=GM((0,wa.default)(l).call(l,n,d)),p=function(m){return tn(HM(m),u)};s=function(m,g,_,v){c=_,Te.env.NODE_ENV!=="production"&&(0,wi.default)(g)!==void 0&&(c={insert:function(b){_.insert(b+(0,wi.default)(g))}}),p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new _x({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},sa={exports:{}};Tx();s2=!0;id=function(e,t,r){var n=e.key+"-"+t.name;(r===!1||s2===!1)&&e.registered[n]===void 0&&(e.registered[n]=t.styles)},Sa=function(e,t,r){id(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)}};c2={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};d2=/[A-Z]|^ms/g,f2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Rx=function(e){return e.charCodeAt(1)===45},VE=function(e){return e!=null&&typeof e!="boolean"},Cu=u2(function(e){return Rx(e)?e:e.replace(d2,"-$&").toLowerCase()}),zE=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(f2,function(r,n,i){return bt={name:n,styles:i,next:bt},n})}return c2[e]!==1&&!Rx(e)&&typeof t=="number"&&t!==0?t+"px":t};GE=/label:\s*([^\s;{]+)\s*(;|$)/g;h2=function(e){return e()},Cx=bc?bc:!1,Ox=Cx||h2,KE=Cx||Gr,m2={}.hasOwnProperty,od=yr(typeof HTMLElement<"u"?kx({key:"css"}):null);Te.env.NODE_ENV!=="production"&&(od.displayName="EmotionCacheContext");v2=od.Provider,ad=function(e){return Ec(function(t,r){var n=Kr(od);return e(t,n,r)})},Ia=yr({});Te.env.NODE_ENV!=="production"&&(Ia.displayName="EmotionThemeContext");WE="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",YE="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",g2=function(e){var t=e.cache,r=e.serialized,n=e.isStringTag;return id(t,r,n),Ox(function(){return Sa(t,r,n)}),null},y2=ad(function(e,t,r){var n,i=e.css;typeof i=="string"&&t.registered[i]!==void 0&&(i=t.registered[i]);var o=e[WE],a=[i],s="";typeof e.className=="string"?s=Si(t.registered,a,e.className):e.className!=null&&(s=e.className+" ");var l=ur(a,void 0,Kr(Ia));if(Te.env.NODE_ENV!=="production"&&(0,Rr.default)(n=l.name).call(n,"-")===-1){var c=e[YE];c&&(l=ur([l,"label:"+c+";"]))}s+=t.key+"-"+l.name;var d={};for(var u in e)m2.call(e,u)&&u!=="css"&&u!==WE&&(Te.env.NODE_ENV==="production"||u!==YE)&&(d[u]=e[u]);return d.ref=r,d.className=s,Ne(We,null,Ne(g2,{cache:t,serialized:l,isStringTag:typeof o=="string"}),Ne(o,d))});Te.env.NODE_ENV!=="production"&&(y2.displayName="EmotionCssPropInternal");_2={version:"11.10.5"},QE=!1,b2=ad(function(e,t){Te.env.NODE_ENV!=="production"&&!QE&&(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?"),QE=!0);var r=e.styles,n=ur([r],void 0,Kr(Ia)),i=ri();return KE(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]),KE(function(){var o=i.current,a=o[0],s=o[1];if(s){o[1]=!1;return}if(n.next!==void 0&&Sa(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});Te.env.NODE_ENV!=="production"&&(b2.displayName="EmotionGlobal");w2=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,bi.default)(o))a=e(o);else{Te.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};x2=function(e){var t=e.cache,r=e.serializedArr;return Ox(function(){for(var n=0;n<r.length;n++)Sa(t,r[n],!1)}),null},A2=ad(function(e,t){var r=!1,n=[],i=function(){if(r&&Te.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=ur(c,t.registered);return n.push(u),id(t,u,!1),t.key+"-"+u.name},o=function(){if(r&&Te.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 E2(t.registered,i,w2(c))},a={css:i,cx:o,theme:Kr(Ia)},s=e.children(a);return r=!0,Ne(We,null,Ne(x2,{cache:t,serializedArr:n}),s)});Te.env.NODE_ENV!=="production"&&(A2.displayName="EmotionClassNames");Te.env.NODE_ENV!=="production"&&(Ou=!0,XE=typeof jest<"u"||typeof vi<"u",Ou&&!XE&&(Pu=typeof ya.default<"u"?ya.default:Ou?window:RM,Nu="__EMOTION_REACT_"+_2.version.split(".")[0]+"__",Pu[Nu]&&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."),Pu[Nu]=!0));S2={unlockNeeds:"Unlock needs",unlockWithJolicoin:"Unlock with Jolicoin for a better experience",unlockWithJolicoinDescription:"Deduct Jolicoin automatically for digital items",useJolicoin:"Use Jolicoin",payAndUnlock:"Pay and unlock",noWatchAds:"No, watch ads",noThanks:"No thanks",balance:"Balance",coinUsed:"JoliCoins used"},ZE={jolicoin:S2},I2={unlockNeeds:"\u89E3\u9501\u9700\u8981",unlockWithJolicoin:"\u4F7F\u7528 Jolicoin \u89E3\u9501\u4EE5\u83B7\u5F97\u66F4\u597D\u7684\u4F53\u9A8C",unlockWithJolicoinDescription:"\u81EA\u52A8\u4E3A\u6570\u5B57\u7269\u54C1\u6263\u9664Jolicoin",useJolicoin:"\u4F7F\u7528 Jolicoin",payAndUnlock:"\u652F\u4ED8\u5E76\u89E3\u9501",noWatchAds:"\u4E0D\uFF0C\u770B\u5E7F\u544A",noThanks:"\u4E0D\uFF0C\u8C22\u8C22",balance:"\u4F59\u989D",coinUsed:"Jolicoin \u5DF2\u4F7F\u7528"},ex={jolicoin:I2},k2={unlockWithJolicoinDescription:"Kurangi Jolicoin secara otomatis untuk item digital",balance:"Saldo",unlockNeeds:"Perlu membuka",unlockWithJolicoin:"Buka kunci dengan Jolicoin untuk pengalaman yang lebih baik",useJolicoin:"Gunakan Jolicoin",payAndUnlock:"Bayar dan buka kunci",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",coinUsed:"Jolicoin digunakan"},tx={jolicoin:k2},T2={unlockWithJolicoinDescription:"Memotong jolicoin secara automatik untuk barang digital",unlockNeeds:"Perlu buka",unlockWithJolicoin:"Buka kunci dengan Jolicoin untuk pengalaman yang lebih baik",useJolicoin:"Gunakan Jolicoin",payAndUnlock:"Bayar dan buka kunci",noWatchAds:"Tidak, tonton iklan",noThanks:"Tidak, terima kasih",balance:"Baki",coinUsed:"Jolicoin Digunakan"},rx={jolicoin:T2},R2={unlockWithJolicoinDescription:"\u0E2B\u0E31\u0E01 jolicoin \u0E42\u0E14\u0E22\u0E2D\u0E31\u0E15\u0E42\u0E19\u0E21\u0E31\u0E15\u0E34\u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E23\u0E32\u0E22\u0E01\u0E32\u0E23\u0E14\u0E34\u0E08\u0E34\u0E17\u0E31\u0E25",unlockNeeds:"\u0E15\u0E49\u0E2D\u0E07\u0E01\u0E32\u0E23\u0E1B\u0E25\u0E14",unlockWithJolicoin:"\u0E1B\u0E25\u0E14\u0E25\u0E47\u0E2D\u0E04\u0E14\u0E49\u0E27\u0E22 Jolicoin \u0E2A\u0E33\u0E2B\u0E23\u0E31\u0E1A\u0E1B\u0E23\u0E30\u0E2A\u0E1A\u0E01\u0E32\u0E23\u0E13\u0E4C\u0E17\u0E35\u0E48\u0E14\u0E35\u0E02\u0E36\u0E49\u0E19",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\u0E40\u0E07\u0E34\u0E19",coinUsed:"Jolicoin \u0E43\u0E0A\u0E49"},C2={jolicoin:R2},O2={unlockWithJolicoinDescription:"Kh\u1EA5u tr\u1EEB t\u1EF1 \u0111\u1ED9ng cho Jolicoin cho c\xE1c m\u1EB7t h\xE0ng k\u1EF9 thu\u1EADt s\u1ED1",unlockNeeds:"C\u1EA7n m\u1EDF",unlockWithJolicoin:"M\u1EDF kh\xF3a b\u1EB1ng Jolicoin \u0111\u1EC3 c\xF3 tr\u1EA3i nghi\u1EC7m t\u1ED1t h\u01A1n",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"},P2={jolicoin:O2},N2={unlockWithJolicoinDescription:"Bantad ang Jolicoin Awtomatikong para sa mga digital na item",unlockNeeds:"Kailangan buksan",unlockWithJolicoin:"I-unlock gamit ang Jolicoin para sa mas magandang karanasan",useJolicoin:"Gumamit ng Jolicoin",payAndUnlock:"Bayad at i-unlock",noWatchAds:"Hindi, titingnan ang mga ad",noThanks:"Hindi, salamat",balance:"Balansehin",coinUsed:"Jolicoin ang ginamit"},nx={jolicoin:N2},D2={unlockWithJolicoinDescription:"Deducir Jolicoin autom\xE1ticamente para art\xEDculos digitales",unlockNeeds:"Neces. desbloq",unlockWithJolicoin:"Desbloquear con Jolicoin para una mejor experiencia",useJolicoin:"Usar Jolicoin",payAndUnlock:"Pagar y desbloquear",noWatchAds:"No, ver anuncios",noThanks:"No, gracias",balance:"Saldo",coinUsed:"Jolicoin utilizados"},q2={jolicoin:D2},L2={unlockWithJolicoinDescription:"\u30C7\u30B8\u30BF\u30EB\u30A2\u30A4\u30C6\u30E0\u306E\u30B8\u30E7\u30EA\u30B3\u30A4\u30F3\u81EA\u52D5\u5F15\u304D\u843D\u3068\u3057",unlockNeeds:"\u89E3\u9664\u5FC5\u8981",unlockWithJolicoin:"\u3088\u308A\u826F\u3044\u4F53\u9A13\u306E\u305F\u3081\u306B\u30B8\u30E7\u30EA\u30B3\u30A4\u30F3\u3067\u30A2\u30F3\u30ED\u30C3\u30AF",useJolicoin:"\u30B8\u30E7\u30EA\u30B3\u30A4\u30F3\u3092\u4F7F\u7528",payAndUnlock:"\u652F\u6255\u3063\u3066\u30A2\u30F3\u30ED\u30C3\u30AF",noWatchAds:"\u3044\u3044\u3048\u3001\u5E83\u544A\u3092\u898B\u308B",noThanks:"\u3044\u3044\u3048\u3001\u7D50\u69CB\u3067\u3059",balance:"\u6B8B\u9AD8",coinUsed:"\u30B8\u30E7\u30EA\u30B3\u30A4\u30F3\u3092\u4F7F\u7528"},U2={jolicoin:L2},j2={unlockWithJolicoinDescription:"Deduzir Jolicoin automaticamente para itens digitais",unlockNeeds:"Precisa moeda",unlockWithJolicoin:"Desbloqueie com Jolicoin para uma melhor experi\xEAncia",useJolicoin:"Usar Jolicoin",payAndUnlock:"Pagar e desbloquear",noWatchAds:"N\xE3o, assistir an\xFAncios",noThanks:"N\xE3o, obrigado",balance:"Saldo",coinUsed:"Jolicoin usado"},ix={jolicoin:j2},M2={unlockWithJolicoinDescription:"\uB514\uC9C0\uD138 \uC544\uC774\uD15C\uC5D0 \uB300\uD55C \uC878\uB9AC\uCF54\uC778 \uC790\uB3D9 \uCC28\uAC10",unlockNeeds:"\uC7A0\uAE08 \uD574\uC81C \uD544\uC694",unlockWithJolicoin:"\uB354 \uB098\uC740 \uACBD\uD5D8\uC744 \uC704\uD574 \uC878\uB9AC\uCF54\uC778\uC73C\uB85C \uC7A0\uAE08 \uD574\uC81C",useJolicoin:"\uC878\uB9AC\uCF54\uC778 \uC0AC\uC6A9",payAndUnlock:"\uACB0\uC81C\uD558\uACE0 \uC7A0\uAE08 \uD574\uC81C",noWatchAds:"\uC544\uB2C8\uC694, \uAD11\uACE0 \uC2DC\uCCAD",noThanks:"\uC544\uB2C8\uC694, \uAD1C\uCC2E\uC2B5\uB2C8\uB2E4",balance:"\uC794\uC561",coinUsed:"\uC878\uB9AC\uCF54\uC778 \uC0AC\uC6A9"},F2={jolicoin:M2},B2={unlockNeeds:"\u89E3\u9396\u9700\u8981",unlockWithJolicoin:"\u4F7F\u7528 Jolicoin \u89E3\u9396\u4EE5\u7372\u5F97\u66F4\u597D\u7684\u9AD4\u9A57",unlockWithJolicoinDescription:"\u6578\u4F4D\u7269\u54C1\u81EA\u52D5\u6263\u9664 Jolicoin",useJolicoin:"\u4F7F\u7528 Jolicoin",payAndUnlock:"\u4ED8\u6B3E\u4E26\u89E3\u9396",noWatchAds:"\u4E0D\uFF0C\u89C0\u770B\u5EE3\u544A",noThanks:"\u4E0D\u7528\u4E86\uFF0C\u8B1D\u8B1D",balance:"\u9918\u984D",coinUsed:"Jolicoin \u5DF2\u4F7F\u7528"},$2={jolicoin:B2},Px={en:{translations:ZE},en_GB:{translations:ZE},zh:{translations:ex},"zh-Hans":{translations:ex},"zh-Hant":{translations:$2},id:{translations:tx},in:{translations:tx},ms:{translations:rx},my:{translations:rx},th:{translations:C2},vi:{translations:P2},fil:{translations:nx},tl:{translations:nx},es:{translations:q2},ja:{translations:U2},pt:{translations:ix},pt_PT:{translations:ix},ko:{translations:F2}},Nx=yr(void 0),Dx=({definition:e,children:t})=>{let r={translations:e};return w(Nx.Provider,{value:r,children:t})},$u=null,J2={zh:"zh","zh-CN":"zh","zh-TW":"zh-Hant","zh-Hans":"zh",zh_Hans:"zh","zh-Hant":"zh-Hant",zh_Hant:"zh-Hant",id:"id",in:"id",ms:"ms",my:"ms",th:"th",vi:"vi",fil:"tl",tl:"tl",es:"es",ja:"ja",pt:"pt",pt_PT:"pt","pt-PT":"pt"},qx=e=>{$u=e},Lx=()=>{var e;if(typeof $u!="function")return console.warn("Language handler is not registered or is not a function. Defaulting to 'en'."),"en";try{let t=$u();return(e=J2[t])!=null?e:"en"}catch(t){return console.error("Error executing registered language handler:",t),"en"}},H2=({title:e,content:t,noHeader:r,height:n,padding:i="16px",footerButtons:o,onClose:a})=>{let s=sd(),l={container:D`
57
58
  display: flex;
58
59
  flex-direction: column;
59
60
  height: 100%;
60
61
  width: 100%;
61
62
  max-width: ${s==="portrait"?"440px":"75%"};
62
63
  margin: 0 auto;
63
- `,header:N`
64
+ `,header:D`
64
65
  padding: 16px;
65
66
  border-bottom: 1px solid #eee;
66
67
  display: flex;
67
68
  justify-content: space-between;
68
69
  align-items: center;
69
- `,content:N`
70
- padding: ${o};
70
+ `,content:D`
71
+ padding: ${i};
71
72
  flex: 1;
72
73
  overflow: auto;
73
- `,footer:N`
74
+ `,footer:D`
74
75
  padding: 16px;
75
76
  border-top: 1px solid #eee;
76
77
  display: flex;
77
78
  justify-content: flex-end;
78
79
  gap: 8px;
79
- `,closeButton:N`
80
+ `,closeButton:D`
80
81
  background: none;
81
82
  border: none;
82
83
  cursor: pointer;
83
84
  font-size: 20px;
84
- `,button:N`
85
+ `,button:D`
85
86
  padding: 8px 16px;
86
87
  border-radius: 4px;
87
88
  border: 1px solid #ddd;
88
89
  cursor: pointer;
89
- `};return b("div",{className:l.container,children:[!r&&b("div",{className:l.header,children:[b("h3",{children:e}),b("button",{className:l.closeButton,onClick:a,children:"\xD7"})]}),b("div",{className:l.content,children:t}),i&&i.length>0&&b("div",{className:l.footer,children:i.map((c,d)=>b("button",{className:N`
90
- ${l.button}
91
- background-color: ${c.variant==="primary"?"#1677ff":"#fff"};
92
- color: ${c.variant==="primary"?"#fff":"#333"};
93
- `,onClick:u=>{var h;return(h=c.onClick)==null?void 0:h.call(c,u,{hide:a})},children:c.text},d))})]})},WN=()=>{let e=document.createElement("iframe");return e.style.position="fixed",e.style.left="0",e.style.top="0",e.style.width="100vw",e.style.height="100vh",e.style.zIndex="99999999",e.style.border="none",e.style.background="transparent",e.setAttribute("allowtransparency","true"),document.body.appendChild(e),e};mc=e=>{let t=WN(),r=null,n=!1,o=!1,i=null,a=()=>{o||(n=!1,e.onClose&&e.onClose(),l(),setTimeout(()=>{o||(i&&i(),t.remove())},300))},s=()=>window.innerWidth>window.innerHeight,l=()=>{var c;!t.contentDocument||!t.contentWindow||(jb(t),nr(b(sN,{ref:d=>{r=d},isOpen:n,onClose:a,height:s()?"60vh":(c=e.height)!=null?c:"50vh",backdropColor:e.backdropColor,children:b(zN,q(R({},e),{onClose:a}))}),t.contentDocument.body))};return t.onload=()=>{i=QN(t),l()},t.src="about:blank",{show:()=>{o||(n=!0,l(),setTimeout(()=>{r&&(r.show(),e.onOpen&&e.onOpen())},0))},hide:()=>{o||r&&r.hide()},isOpen:()=>n,destroy:()=>{o=!0,i&&i(),t.remove()}}},XN=(e,t={threshold:.6})=>{let r=ri(null),n=ri(!1),o=Ke(i=>{let[a]=i;a.isIntersecting&&!n.current?(n.current=!0,e()):a.isIntersecting||(n.current=!1)},[e]);return Ut(()=>{if(r.current){let i=new IntersectionObserver(o,t);return i.observe(r.current),()=>{r.current&&i.unobserve(r.current)}}},[o,t]),r};Bb=i=>{var a=i,{children:e,fluid:t=!1,className:r="",style:n={}}=a,o=et(a,["children","fluid","className","style"]);let s=R({width:"100%",marginLeft:"auto",marginRight:"auto",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box",maxWidth:t?"100%":void 0},n);return b("div",q(R({className:r,style:s},o),{children:e}))},$b=s=>{var l=s,{children:e,gutter:t=0,justify:r="start",align:n="top",className:o="",style:i={}}=l,a=et(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=R({display:"flex",flexWrap:"wrap",boxSizing:"border-box",justifyContent:c[r],alignItems:d[n]},i);if(t){let p=Array.isArray(t)?t[0]:t,m=Array.isArray(t)?t[1]:0;p>0&&(u.marginLeft=`-${p/2}px`,u.marginRight=`-${p/2}px`),m>0&&(u.marginTop=`-${m/2}px`,u.marginBottom=`-${m/2}px`)}let h=t?eD(e,t):e;return b("div",q(R({className:o,style:u},a),{children:h}))};Hb=u=>{var h=u,{children:e,span:t,offset:r,xs:n,sm:o,md:i,lg:a,xl:s,className:l="",style:c={}}=h,d=et(h,["children","span","offset","xs","sm","md","lg","xl","className","style"]);let p=R({position:"relative",width:"100%",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box"},c);if(t!==void 0){let m=t/24*100;p.flex=`0 0 ${m}%`,p.maxWidth=`${m}%`}return r!==void 0&&(p.marginLeft=`${r/24*100}%`),b("div",q(R({className:l,style:p},d),{children:e}))},tD=({game:e,layerName:t,orientation:r,routeMode:n,onGameClick:o})=>{var s,l;let i=So(c=>{c.preventDefault(),o==null||o(e)},[o,e]),a=So(()=>{},[e,t]);return b(Hb,{span:r==="landscape"?4:8,className:"relative px-[4px] box-border mb-[8px]",style:{marginBottom:r==="landscape"?"8px":"16px"},onClick:i,role:"button",tabIndex:0,onTouchEnd:i,children:[b("div",{className:"relative w-full mb-[2px] ion-no-margin",children:b(ZN,{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)},rD=a=>{var s=a,{list:e,routeMode:t,layerName:r,onGameClick:n,orientation:o}=s,i=et(s,["list","routeMode","layerName","onGameClick","orientation"]);return b(Bb,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{maxWidth:o==="landscape"?"100%":"440px",minHeight:"1px"},children:b($b,{gutter:8,className:N`
94
- display: flex;
95
- flex-wrap: ${o==="landscape"?"nowrap":"wrap"};
96
- overflow-x: ${o==="landscape"?"auto":"visible"};
97
- padding-bottom: ${o==="landscape"?"10px":"0"};
98
- justify-content: ${o==="landscape"?"flex-start":"center"};
99
- `,children:e==null?void 0:e.map(l=>b(tD,{orientation:o,game:l,routeMode:t,layerName:r,onGameClick:n},l.gameId))})})},nD=Qs(rD),sc=(e=>(e.Dismiss="DISMISS",e.Quit="QUIT",e))(sc||{}),oD=e=>{let{games:t,title:r,buttons:n,onClose:o}=e,[i,a]=yt(null),s=Ke(u=>{o==null||o({type:u.type===sc.Quit?"quit":"dismiss"})},[o]),l=Ke(u=>{o==null||o({type:"navigate",data:{game:u}})},[o]),c=hc();if(!t.length)return b(it,{});let d=Ke(u=>{if(u!==null&&!u.shadowRoot){let h=u.attachShadow({mode:"open"}),p=document.createElement("style");p.textContent=`
90
+ `};return w("div",{className:l.container.name,children:[!r&&w("div",{className:l.header.name,children:[w("h3",{children:e}),w("button",{className:l.closeButton.name,onClick:a,children:"\xD7"})]}),w("div",{className:l.content.name,children:t}),o&&o.length>0&&w("div",{className:l.footer.name,children:o.map((c,d)=>w("button",{className:D`
91
+ ${l.button}
92
+ background-color: ${c.variant==="primary"?"#1677ff":"#fff"};
93
+ color: ${c.variant==="primary"?"#fff":"#333"};
94
+ `.name,onClick:u=>{var p;return(p=c.onClick)==null?void 0:p.call(c,u,{hide:a})},children:c.text},d))})]})},te=null,Ju=null,yi=null,Hu=null,Du=null;ld=e=>{let t=V2(),r=null,n=!1,i=Lx(),o=Px[i].translations,a=()=>window.innerWidth>window.innerHeight,s=u=>{var f;if(!t.contentDocument||!t.contentWindow||!Ju){console.error("[Modal] Iframe or emotion cache not ready for rendering Drawer.");return}Ux(t);let p=t.contentDocument.getElementById("drawer-container");p||(p=t.contentDocument.createElement("div"),p.id="drawer-container",t.contentDocument.body.appendChild(p)),Lr(w(v2,{value:Ju,children:w(Dx,{definition:o,children:w(AM,{ref:m=>{r=m},isOpen:u,onClose:l,height:a()?"60vh":(f=e.height)!=null?f:"50vh",backdropColor:e.backdropColor,children:w(H2,q(T({},e),{onClose:l}))})})}),p)},l=()=>{var u;n=!1,t.style.display="none",(u=e.onClose)==null||u.call(e)},c=()=>x(void 0,null,function*(){if(!Hu){console.error("[Modal] Iframe load promise not initialized!");return}yield Hu,n=!0,t.style.display="block",s(!0),setTimeout(()=>{var u;r&&r.show,(u=e.onOpen)==null||u.call(e)},50)}),d=()=>{r&&typeof r.hide=="function"?s(!1):l()};return{show:()=>{n||c()},hide:()=>{n&&d()},isOpen:()=>n,destroy:()=>{n&&d(),console.log("[Modal] Instance destroyed.")}}},K2=(e,t={threshold:.6})=>{let r=kr(null),n=kr(!1),i=ot(o=>{let[a]=o;a.isIntersecting&&!n.current?(n.current=!0,e()):a.isIntersecting||(n.current=!1)},[e]);return lr(()=>{if(r.current){let o=new IntersectionObserver(i,t);return o.observe(r.current),()=>{r.current&&o.unobserve(r.current)}}},[i,t]),r};jx=o=>{var a=o,{children:e,fluid:t=!1,className:r="",style:n={}}=a,i=pt(a,["children","fluid","className","style"]);let s=T({width:"100%",marginLeft:"auto",marginRight:"auto",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box",maxWidth:t?"100%":void 0},n);return w("div",q(T({className:r,style:s},i),{children:e}))},Mx=s=>{var l=s,{children:e,gutter:t=0,justify:r="start",align:n="top",className:i="",style:o={}}=l,a=pt(l,["children","gutter","justify","align","className","style"]);let c={start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between"},d={top:"flex-start",middle:"center",bottom:"flex-end"},u=T({display:"flex",flexWrap:"wrap",boxSizing:"border-box",justifyContent:c[r],alignItems:d[n]},o);if(t){let f=Array.isArray(t)?t[0]:t,m=Array.isArray(t)?t[1]:0;f>0&&(u.marginLeft=`-${f/2}px`,u.marginRight=`-${f/2}px`),m>0&&(u.marginTop=`-${m/2}px`,u.marginBottom=`-${m/2}px`)}let p=t?Y2(e,t):e;return w("div",q(T({className:i,style:u},a),{children:p}))};Fx=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=pt(p,["children","span","offset","xs","sm","md","lg","xl","className","style"]);let f=T({position:"relative",width:"100%",paddingLeft:"15px",paddingRight:"15px",boxSizing:"border-box"},c);if(t!==void 0){let m=t/24*100;f.flex=`0 0 ${m}%`,f.maxWidth=`${m}%`}return r!==void 0&&(f.marginLeft=`${r/24*100}%`),w("div",q(T({className:l,style:f},d),{children:e}))},Q2=({game:e,layerName:t,orientation:r,routeMode:n,onGameClick:i})=>{var s,l;let o=To(c=>{c.preventDefault(),i==null||i(e)},[i,e]),a=To(()=>{},[e,t]);return w(Fx,{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:[w("div",{className:"relative w-full mb-[2px] ion-no-margin",children:w(W2,{src:(l=(s=e.logo)!=null?s:e.cover)!=null?l:"",className:"w-full h-full absolute top-0 left-0 aspect-square rounded-[8px] object-cover",style:{display:"block",objectFit:"cover"},handleExposure:a})}),w("div",{className:"block text-white max-w-full text-[15px] leading-[1.2] overflow-hidden whitespace-nowrap text-ellipsis font-normal break-words",style:{display:"block",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",wordBreak:"break-word",color:"white",maxWidth:"100%",fontSize:r==="landscape"?"13px":"15px",lineHeight:1.2,fontWeight:"normal",marginTop:"6px",fontFamily:"PingFangSC-Regular"},children:e.name})]},e.gameId)},X2=a=>{var s=a,{list:e,routeMode:t,layerName:r,onGameClick:n,orientation:i}=s,o=pt(s,["list","routeMode","layerName","onGameClick","orientation"]);return w(jx,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{maxWidth:i==="landscape"?"100%":"440px",minHeight:"1px"},children:w(Mx,{gutter:8,style:{display:"flex",flexWrap:i==="landscape"?"nowrap":"wrap",overflowX:i==="landscape"?"auto":"visible",paddingBottom:i==="landscape"?"10px":"0",justifyContent:i==="landscape"?"flex-start":"center"},children:e==null?void 0:e.map(l=>w(Q2,{orientation:i,game:l,routeMode:t,layerName:r,onGameClick:n},l.gameId))})})},Z2=wc(X2),Vu=(e=>(e.Dismiss="DISMISS",e.Quit="QUIT",e))(Vu||{}),eF=e=>{let{games:t,title:r,buttons:n,onClose:i}=e,[o,a]=St(null),s=ot(u=>{i==null||i({type:u.type===Vu.Quit?"quit":"dismiss"})},[i]),l=ot(u=>{i==null||i({type:"navigate",data:{game:u}})},[i]),c=sd();if(!t.length)return w(We,{});let d=ot(u=>{if(u!==null&&!u.shadowRoot){let p=u.attachShadow({mode:"open"}),f=document.createElement("style");f.textContent=`
100
95
  .recommend-panel {
101
96
  display: flex;
102
97
  flex-direction: column;
@@ -156,7 +151,6 @@ var oE=Object.create;var Vn=Object.defineProperty,iE=Object.defineProperties,aE=
156
151
  padding-bottom: 16px;
157
152
  padding-left: 16px;
158
153
  padding-right: 16px;
159
- // background-color: #1a1a1a;
160
154
  display: flex;
161
155
  flex-direction: row;
162
156
  justify-content: space-between;
@@ -168,9 +162,6 @@ var oE=Object.create;var Vn=Object.defineProperty,iE=Object.defineProperties,aE=
168
162
  }
169
163
  }
170
164
  @media (orientation: landscape) {
171
- // .recommend-panel {
172
- // height: 50%;
173
- // }
174
165
  .buttons-container {
175
166
  bottom: 0;
176
167
  width: 80%;
@@ -198,7 +189,7 @@ var oE=Object.create;var Vn=Object.defineProperty,iE=Object.defineProperties,aE=
198
189
  cursor: pointer;
199
190
  flex: 1;
200
191
  text-align: center;
201
- font-size: 14px;
192
+ font-size: 16px;
202
193
  font-weight: normal;
203
194
  outline: none;
204
195
  overflow: hidden;
@@ -221,31 +212,36 @@ var oE=Object.create;var Vn=Object.defineProperty,iE=Object.defineProperties,aE=
221
212
  background-color: #7817FF;
222
213
  color: #fff;
223
214
  }
224
- `;let m=document.createElement("div");m.id="recommend-panel-content",h.appendChild(p),h.appendChild(m),a(h)}},[]);return Ut(()=>{if(i){let u=i.getElementById("recommend-panel-content");u&&nr(b("div",{className:"recommend-panel",children:b("div",{className:"container",children:[b("p",{className:"title",children:r}),b("div",{className:"games-container",children:b(nD,{list:t||[],routeMode:"REDIRECT",layerName:"RecommendedGuide",onGameClick:l,orientation:c})}),b("div",{className:"buttons-container",children:(n!=null?n:[]).map((h,p)=>b("div",{className:"button-wrapper",children:b("button",{className:`button ${h.type===sc.Quit?"quit-button":"action-button"}`,onClick:()=>s(h),children:b("span",{className:"button-text-ellipsis",children:h.text})})},p))})]})}),u)}},[i,t,r,n,s,l]),b("div",{ref:d})},Jb=e=>{let t=mc({title:e.title,content:b(oD,{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},Er="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=",_t={coinInfo:N`
215
+ `;let m=document.createElement("div");m.id="recommend-panel-content",p.appendChild(f),p.appendChild(m),a(p)}},[]);return lr(()=>{if(o){let u=o.getElementById("recommend-panel-content");u&&Lr(w("div",{className:"recommend-panel",children:w("div",{className:"container",children:[w("p",{className:"title",children:r}),w("div",{className:"games-container",children:w(Z2,{list:t||[],routeMode:"REDIRECT",layerName:"RecommendedGuide",onGameClick:l,orientation:c})}),w("div",{className:"buttons-container",children:(n!=null?n:[]).map((p,f)=>w("div",{className:"button-wrapper",children:w("button",{className:`button ${p.type===Vu.Quit?"quit-button":"action-button"}`,onClick:()=>s(p),children:w("span",{className:"button-text-ellipsis",children:p.text})})},f))})]})}),u)}},[o,t,r,n,s,l]),w("div",{ref:d})},Bx=e=>{let t=ld({title:e.title,content:w(eF,{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},sn="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=";ka=()=>{let e=yM(Nx);if(!e)throw new Error("useTranslations must be used within a LightIntlProvider");let{translations:t}=e;return{t:(r,n)=>{let i=tF(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}},ox=({text:e,initialFontSize:t,minFontSize:r=8,maxWidthPx:n,styles:i})=>{let[o,a]=St(t),s=kr(null),l=kr(null);return gM(()=>{let c=s.current,d=l.current;if(!c||!d)return;n&&n>0?c.style.maxWidth=`${n}px`:c.style.maxWidth="";let u=t;c.style.fontSize=`${u}px`;let p=requestAnimationFrame(()=>{if(d.clientWidth>0)for(;c.scrollWidth>d.clientWidth&&u>r;)u-=1,c.style.fontSize=`${u}px`;a(u)});return()=>cancelAnimationFrame(p)},[e,t,r,n]),w("span",{ref:l,style:i,children:w("span",{ref:s,style:{fontSize:`${o}px`,display:"inline-block",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"middle",maxWidth:"100%"},children:e})})},Mt={coinInfo:D`
225
216
  display: flex;
226
217
  gap: 24px;
227
- `,coinAmount:N`
218
+ width: 100%;
219
+ justify-content: space-between;
220
+ `,coinAmount:D`
228
221
  display: flex;
229
222
  flex-direction: row;
230
223
  gap: 4px;
231
- `,coinLabel:N`
232
- font-size: 13px;
224
+ align-items: center;
225
+ flex: 1;
226
+ min-width: 0;
227
+ `,coinLabelContainer:D`
233
228
  font-weight: 700;
234
229
  text-align: center;
235
- height: 36px;
236
- width: 100%;
237
- line-height: 36px;
238
- `,coinValue:N`
230
+ flex-shrink: 1;
231
+ flex-grow: 0;
232
+ min-width: 30px;
233
+ overflow: hidden;
234
+ `,coinValue:D`
239
235
  display: flex;
240
236
  align-items: center;
241
237
  gap: 8px;
242
238
  font-size: 25px;
243
239
  font-weight: 900;
244
- color: #ffd700;
245
- `,coinIcon:N`
240
+ color: #fdde9d;
241
+ `,coinIcon:D`
246
242
  width: 16px;
247
243
  height: 16px;
248
- `},Vb=({unlockNeedsAmount:e=0,balanceAmount:t=0,coinImage:r=Er,formatter:n=s=>s>999?`${s}+`:`${s}`,hideNeeds:o=!1,hideBalance:i=!1,className:a=""})=>{let s=n(t);return b("div",{className:`${_t.coinInfo} ${a}`,children:[!o&&b("div",{className:_t.coinAmount,children:[b("span",{className:_t.coinLabel,children:"Unlock needs"}),b("div",{className:_t.coinValue,children:[b("img",{src:r,alt:"Jolicoin",className:_t.coinIcon}),b("span",{children:e})]})]}),!i&&b("div",{className:_t.coinAmount,children:[b("span",{className:_t.coinLabel,children:"Balance"}),b("div",{className:_t.coinValue,children:[b("img",{src:r,alt:"Jolicoin",className:_t.coinIcon}),b("span",{children:s})]})]})]})},_r={card:N`
244
+ `},$x=({unlockNeedsAmount:e=0,balanceAmount:t=0,coinImage:r=sn,formatter:n=a=>a>999?`${a}+`:`${a}`,hideNeeds:i=!1,hideBalance:o=!1})=>{let a=n(t),{t:s}=ka(),l=13;return w("div",{style:Mt.coinInfo.styles,children:[!i&&w("div",{style:Mt.coinAmount.styles,children:[w(ox,{text:s("jolicoin.unlockNeeds"),initialFontSize:l,minFontSize:8,styles:Mt.coinLabelContainer.styles,maxWidthPx:140}),w("div",{style:Mt.coinValue.styles,children:[w("img",{src:r,alt:"Jolicoin",style:Mt.coinIcon.styles}),w("span",{children:e})]})]}),!o&&w("div",{style:Mt.coinAmount.styles,children:[w(ox,{text:s("jolicoin.balance"),initialFontSize:l,minFontSize:8,styles:Mt.coinLabelContainer.styles,maxWidthPx:140}),w("div",{style:Mt.coinValue.styles,children:[w("img",{src:r,alt:"Jolicoin",style:Mt.coinIcon.styles}),w("span",{children:a})]})]})]})},Zr={card:D`
249
245
  display: flex;
250
246
  flex-direction: column;
251
247
  align-items: center;
@@ -255,48 +251,49 @@ var oE=Object.create;var Vn=Object.defineProperty,iE=Object.defineProperties,aE=
255
251
  padding: 24px 16px;
256
252
  cursor: pointer;
257
253
  transition: all 0.2s ease;
254
+ border: 1px solid transparent;
258
255
 
259
256
  &:hover {
260
- background-color: #2a2a2a;
257
+ background: -webkit-linear-gradient(39.03deg, rgba(255, 255, 255, 0.24) 15.04%, rgba(192, 147, 255, 0.3) 73.25%) !important;
258
+ background: linear-gradient(39.03deg, rgba(255, 255, 255, 0.24) 15.04%, rgba(192, 147, 255, 0.3) 73.25%) !important;
261
259
  }
262
- `,selectedCard:N`
263
- background-color: rgba(106, 61, 232, 0.2);
260
+ `,selectedCard:D`
261
+ background: -webkit-linear-gradient(39.03deg, rgba(255, 255, 255, 0.24) 15.04%, rgba(192, 147, 255, 0.3) 73.25%) !important;
262
+ background: linear-gradient(39.03deg, rgba(255, 255, 255, 0.24) 15.04%, rgba(192, 147, 255, 0.3) 73.25%) !important;
264
263
  border: 1px solid #6a3de8;
265
264
 
266
265
  &:hover {
267
- background-color: rgba(106, 61, 232, 0.3);
266
+ background-color: linear-gradient(39.03deg, rgba(255, 255, 255, 0.24) 15.04%, rgba(192, 147, 255, 0.3) 73.25%) !important;
268
267
  }
269
- `,coinContainer:N`
268
+ `,coinContainer:D`
270
269
  display: flex;
271
270
  align-items: center;
272
271
  margin-bottom: 16px;
273
- `,coinIcon:N`
272
+ `,coinIcon:D`
274
273
  width: 21px;
275
274
  height: 21px;
276
- `,coinValue:N`
275
+ margin-right: 4px;
276
+ `,coinValue:D`
277
277
  font-size: 24px;
278
278
  font-weight: bold;
279
279
  color: white;
280
- `,price:N`
280
+ `,price:D`
281
281
  font-size: 16px;
282
282
  color: #a88aff;
283
283
  font-weight: bold;
284
- `},iD=N`
284
+ `},rF=D`
285
285
  padding: 5px;
286
286
  box-sizing: border-box;
287
287
  height: 100%;
288
288
  width: 100%;
289
289
  margin-bottom: 10px;
290
- `,aD=N`
290
+ `,nF=D`
291
291
  aspect-ratio: 1/1.1; // 强制 1:1 的宽高比
292
292
  height: 100%;
293
293
  display: flex;
294
294
  flex-direction: column;
295
295
  justify-content: center;
296
- `,sD=e=>b("div",{className:iD,children:b("div",{className:aD,children:b("div",{className:`${_r.card} ${e.option.id===e.selectedId?_r.selectedCard:""}`,onClick:()=>e.handleSelect(e.option),children:[b("div",{className:_r.coinContainer,children:[b("img",{src:Er,alt:"Coin",className:_r.coinIcon}),b("span",{className:_r.coinValue,children:e.option.coins})]}),b("div",{className:_r.price,children:e.option.price})]})})}),lD=({options:e,defaultSelectedId:t,onSelect:r})=>{let[n,o]=yt(t!=null?t:""),i=a=>{o(a.id),r==null||r(a)};return b(Bb,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{padding:"0px"},children:b($b,{gutter:[10,10],className:N`
297
- display: flex;
298
- flex-wrap: wrap;
299
- `,children:e.map(a=>b(Hb,{span:8,children:b(sD,{option:a,selectedId:n,coinImageSrc:Er,handleSelect:i})},a.id))})})},cD=Qs(lD),W={modal:N`
296
+ `,iF=e=>w("div",{style:rF.styles,children:w("div",{style:nF.styles,children:w("div",{style:`${Zr.card.styles} ${e.option.id===e.selectedId?Zr.selectedCard.styles:""}`,onClick:()=>e.handleSelect(e.option),children:[w("div",{style:Zr.coinContainer.styles,children:[w("img",{src:sn,alt:"Coin",style:Zr.coinIcon.styles}),w("span",{style:Zr.coinValue.styles,children:e.option.coins})]}),w("div",{style:Zr.price.styles,children:e.option.price})]})})}),oF=({options:e,defaultSelectedId:t,onSelect:r})=>{let[n,i]=St(t!=null?t:""),o=a=>{i(a.id),r==null||r(a)};return w(jx,{className:"w-full mx-auto flex-grow overflow-y-auto",style:{padding:"0px"},children:w(Mx,{gutter:[10,10],style:{display:"flex","flex-wrap":"wrap"},children:e.map(a=>w(Fx,{span:8,children:w(iF,{option:a,selectedId:n,coinImageSrc:sn,handleSelect:o})},a.id))})})},aF=wc(oF),re={modal:D`
300
297
  font-family: PingFangSC-Regular;
301
298
  background-color: #1a1a1a;
302
299
  color: white;
@@ -307,39 +304,39 @@ var oE=Object.create;var Vn=Object.defineProperty,iE=Object.defineProperties,aE=
307
304
  margin: 0 auto;
308
305
  display: flex;
309
306
  flex-direction: column;
310
- `,header:N`
307
+ `,header:D`
311
308
  display: flex;
312
309
  justify-content: space-between;
313
310
  align-items: center;
314
- `,closeButton:N`
311
+ `,closeButton:D`
315
312
  background: none;
316
313
  border: none;
317
314
  cursor: pointer;
318
315
  color: white;
319
316
  padding: 8px;
320
- `,content:N`
317
+ `,content:D`
321
318
  display: flex;
322
319
  flex-direction: column;
323
320
  gap: 16px;
324
- `,title:N`
321
+ `,title:D`
325
322
  font-size: 16px;
326
323
  font-weight: 600;
327
324
  line-height: 1.2;
328
325
  margin: 0;
329
- `,autoDeductOption:N`
326
+ `,autoDeductOption:D`
330
327
  display: flex;
331
328
  justify-content: space-between;
332
329
  align-items: center;
333
- `,toggleSwitch:N`
330
+ `,toggleSwitch:D`
334
331
  position: relative;
335
332
  display: inline-block;
336
333
  width: 33px;
337
334
  height: 18px;
338
- `,toggleInput:N`
335
+ `,toggleInput:D`
339
336
  opacity: 0;
340
337
  width: 0;
341
338
  height: 0;
342
- `,toggleSlider:N`
339
+ `,toggleSlider:D`
343
340
  position: absolute;
344
341
  cursor: pointer;
345
342
  top: 0;
@@ -361,13 +358,13 @@ var oE=Object.create;var Vn=Object.defineProperty,iE=Object.defineProperties,aE=
361
358
  transition: 0.4s;
362
359
  border-radius: 50%;
363
360
  }
364
- `,toggleSliderActive:N`
361
+ `,toggleSliderActive:D`
365
362
  background-color: #6a3de8;
366
363
 
367
364
  &:before {
368
365
  transform: translateX(18px);
369
366
  }
370
- `,confirmButton:N`
367
+ `,confirmButton:D`
371
368
  background-color: #6a3de8;
372
369
  color: white;
373
370
  border: none;
@@ -381,7 +378,7 @@ var oE=Object.create;var Vn=Object.defineProperty,iE=Object.defineProperties,aE=
381
378
  &:hover {
382
379
  background-color: #5730c5;
383
380
  }
384
- `,cancelButton:N`
381
+ `,cancelButton:D`
385
382
  background-color: transparent;
386
383
  color: white;
387
384
  border: 1px solid rgba(255, 255, 255, 0.2);
@@ -395,23 +392,23 @@ var oE=Object.create;var Vn=Object.defineProperty,iE=Object.defineProperties,aE=
395
392
  &:hover {
396
393
  background-color: rgba(255, 255, 255, 0.05);
397
394
  }
398
- `,bottomIndicator:N`
395
+ `,bottomIndicator:D`
399
396
  width: 40px;
400
397
  height: 4px;
401
398
  background-color: rgba(255, 255, 255, 0.3);
402
399
  border-radius: 2px;
403
400
  margin: 0 auto;
404
- `},uD=({unlockNeedsAmount:e=10,balanceAmount:t=999,defaultEnableAutoDeduct:r=!1,onConfirm:n,onClose:o,onEnableDeductChanged:i,confirmButtonText:a,cancelButtonText:s})=>{let[l,c]=yt(r),d=hc(),u=()=>{n(l)},h=Ke(()=>{c(!l),i(!l)},[l]);return b("div",{className:W.modal,style:{maxWidth:d==="portrait"?"440px":"75%"},children:[b("div",{className:W.header,children:[b(Vb,{unlockNeedsAmount:e,balanceAmount:t,coinImage:Er}),b("button",{className:W.closeButton,onClick:o,children:b("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:b("path",{d:"M18 6L6 18M6 6L18 18",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),b("div",{className:W.content,children:[b("h2",{className:W.title,children:"Unlock with Jolicoin for a better experience"}),!r&&b("div",{className:W.autoDeductOption,children:[b("span",{className:N`
405
- font-size: 14px;
406
- font-weight: 400;
407
- line-height: 1.2;
408
- `,children:"Deduct Jolicoin automatically for digital items"}),b("label",{className:W.toggleSwitch,children:[b("input",{className:W.toggleInput,type:"checkbox",checked:l,onChange:h}),b("span",{className:`${W.toggleSlider} ${l?W.toggleSliderActive:""}`})]})]}),b("button",{className:W.confirmButton,onClick:u,children:a}),b("button",{className:W.cancelButton,onClick:o,children:s})]})]})},dD=({unlockNeedsAmount:e=1,balanceAmount:t=0,defaultEnableAutoDeduct:r=!1,paymentChoices:n=[],onConfirm:o,onClose:i,onEnableDeductChanged:a,confirmButtonText:s,cancelButtonText:l})=>{let[c,d]=yt(r),[u,h]=yt(n[0].productId),p=()=>{o(u)},m=Ke(_=>{console.log(_),h(_)},[]),g=Ke(()=>{d(!c),a(!c)},[c]);return b("div",{className:W.modal,children:[b("div",{className:W.header,children:[b(Vb,{unlockNeedsAmount:e,balanceAmount:t,coinImage:Er}),b("button",{className:W.closeButton,onClick:i,children:b("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:b("path",{d:"M18 6L6 18M6 6L18 18",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),b("div",{className:W.content,children:[b("div",{className:N`
409
- padding: 0px;
410
- `,children:b(cD,{options:n.map(_=>({id:_.productId,coins:_.quantity,price:_.totalAmountStr})),defaultSelectedId:n[0].productId,onSelect:_=>m(_.id)})}),!r&&b("div",{className:W.autoDeductOption,children:[b("span",{className:N`
411
- font-size: 14px;
412
- font-weight: 400;
413
- line-height: 1.2;
414
- `,children:"Deduct Jolicoin automatically for digital items"}),b("label",{className:W.toggleSwitch,children:[b("input",{className:W.toggleInput,type:"checkbox",checked:c,onChange:g}),b("span",{className:`${W.toggleSlider} ${c?W.toggleSliderActive:""}`})]})]}),b("button",{className:W.confirmButton,onClick:p,children:s}),b("button",{className:W.cancelButton,onClick:i,children:l})]})]})},Gb=e=>{let t=mc({title:"",content:b(uD,{balanceAmount:e.data.userJolicoin.balance,unlockNeedsAmount:e.data.joliCoinQuantity,defaultEnableAutoDeduct:e.data.enableAutoDeduct,confirmButtonText:e.buttons.confirm.text,cancelButtonText: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},Kb=e=>{let t=mc({title:"",content:b(dD,{balanceAmount:e.data.userJolicoin.balance,unlockNeedsAmount:e.data.joliCoinQuantity,defaultEnableAutoDeduct:e.data.enableAutoDeduct,paymentChoices:e.data.paymentChoices,confirmButtonText:e.buttons.confirm.text,cancelButtonText: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:"520px",onClose:e.buttons.cancel.onPress.bind(null,{type:"CANCEL"})});return t.show(),t},zb=new Map,Wb=(e,t)=>{zb.set(e,t)};Wb(/^\{slot-checkmark\}/,(e,t)=>{var n,o;let r=(o=(n=t==null?void 0:t.customStyle)==null?void 0:n.mark)!=null?o:{};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"})})})]})})});Wb(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:Er;return b("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});fD=(e,t)=>{if(!e.includes("{slot-"))return e;let r=[],n=0;for(;n<e.length;){let i=null,a=1/0,s=null;for(let[l,c]of zb.entries()){let d=l.source.startsWith("^")?l.source.slice(1):l.source,u=new RegExp(d,"g");u.lastIndex=n;let h=u.exec(e);h&&h.index<a&&(i=h,a=h.index,s=c)}if(i&&s)a>n&&r.push(e.substring(n,a)),r.push(s(i,t)),n=a+i[0].length;else{r.push(e.substring(n));break}}let o=N`
401
+ `},sF=({unlockNeedsAmount:e=10,balanceAmount:t=999,defaultEnableAutoDeduct:r=!1,onConfirm:n,onClose:i,onEnableDeductChanged:o,confirmButtonKey:a,cancelButtonKey:s})=>{let[l,c]=St(r),d=sd(),{t:u}=ka(),p=()=>{n(l)},f=ot(()=>{c(!l),o(!l)},[l]);return w("div",{style:`${re.modal.styles} ${d==="portrait"?"max-width: 440px":"max-width: 75%"}`,children:[w("div",{style:re.header.styles,children:[w($x,{unlockNeedsAmount:e,balanceAmount:t,coinImage:sn}),w("button",{style:re.closeButton.styles,onClick:i.bind(null,{type:"CANCEL"}),children:w("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:w("path",{d:"M18 6L6 18M6 6L18 18",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),w("div",{style:re.content.styles,children:[w("h2",{style:re.title.styles,children:u("jolicoin.unlockWithJolicoin")}),!r&&w("div",{style:re.autoDeductOption.styles,children:[w("span",{style:D`
402
+ font-size: 14px;
403
+ font-weight: 400;
404
+ line-height: 1.2;
405
+ `.styles,children:u("jolicoin.unlockWithJolicoinDescription")}),w("label",{style:re.toggleSwitch.styles,children:[w("input",{style:re.toggleInput.styles,type:"checkbox",checked:l,onChange:f}),w("span",{style:`${re.toggleSlider.styles} ${l?re.toggleSliderActive.styles:""}`})]})]}),w("button",{style:re.confirmButton.styles,onClick:p,children:u(a)}),w("button",{style:re.cancelButton.styles,onClick:i.bind(null,{type:"FAILED"}),children:u(s)})]})]})},lF=({unlockNeedsAmount:e=1,balanceAmount:t=0,defaultEnableAutoDeduct:r=!1,paymentChoices:n=[],onConfirm:i,onClose:o,onEnableDeductChanged:a,confirmButtonKey:s,cancelButtonKey:l})=>{let[c,d]=St(r),{t:u}=ka(),[p,f]=St(n[0].productId),m=()=>{i(p)},g=ot(v=>{console.log(v),f(v)},[]),_=ot(()=>{d(!c),a(!c)},[c]);return w("div",{style:re.modal.styles,children:[w("div",{style:re.header.styles,children:[w($x,{unlockNeedsAmount:e,balanceAmount:t,coinImage:sn}),w("button",{style:re.closeButton.styles,onClick:o.bind(null,{type:"CANCEL"}),children:w("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:w("path",{d:"M18 6L6 18M6 6L18 18",stroke:"white",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})]}),w("div",{style:re.content.styles,children:[w("div",{style:D`
406
+ padding: 0px;
407
+ `.styles,children:w(aF,{options:n.map(v=>({id:v.productId,coins:v.quantity,price:v.totalAmountStr})),defaultSelectedId:n[0].productId,onSelect:v=>g(v.id)})}),!r&&w("div",{style:re.autoDeductOption.styles,children:[w("span",{style:D`
408
+ font-size: 14px;
409
+ font-weight: 400;
410
+ line-height: 1.2;
411
+ `.styles,children:u("jolicoin.unlockWithJolicoinDescription")}),w("label",{style:re.toggleSwitch.styles,children:[w("input",{style:re.toggleInput.styles,type:"checkbox",checked:c,onChange:_}),w("span",{style:`${re.toggleSlider.styles} ${c?re.toggleSliderActive.styles:""}`})]})]}),w("button",{style:re.confirmButton.styles,onClick:m,children:u(s)}),w("button",{style:re.cancelButton.styles,onClick:o.bind(null,{type:"FAILED"}),children:u(l)})]})]})},Jx=e=>{let t=ld({title:"",content:w(sF,{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},Hx=e=>{let t=ld({title:"",content:w(lF,{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}),backdropColor:"#1a1a1a",placement:"bottom",noHeader:!0,padding:"0px",height:"520px",onClose:e.buttons.cancel.onPress.bind(null,{type:"CANCEL"})});return t.show(),t},Vx=new Map,cd=(e,t)=>{Vx.set(e,t)};cd(/^\{slot-checkmark\}/,(e,t)=>{var n,i;let r=(i=(n=t==null?void 0:t.customStyle)==null?void 0:n.mark)!=null?i:{};return w("div",{style:r,children:w("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",style:{height:"24px",verticalAlign:"middle"},children:[w("g",{clipPath:"url(#clip0_2247_16523)",children:w("path",{d:"M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM9.29 16.29L5.7 12.7C5.31 12.31 5.31 11.68 5.7 11.29C6.09 10.9 6.72 10.9 7.11 11.29L10 14.17L16.88 7.29C17.27 6.9 17.9 6.9 18.29 7.29C18.68 7.68 18.68 8.31 18.29 8.7L10.7 16.29C10.32 16.68 9.68 16.68 9.29 16.29Z",fill:"white"})}),w("defs",{children:w("clipPath",{id:"clip0_2247_16523",children:w("rect",{width:"24",height:"24",fill:"white"})})})]})})});cd(/^\{slot-coin\}/,(e,t)=>{var n;let r=(n=t==null?void 0:t.coinImage)!=null?n:sn;return w("img",{src:r,alt:"\u{1FA99}",style:{height:"1em",verticalAlign:"middle"}})});cF=/^\{slot-i18n-(.+?)\}/,uF=({i18nKey:e,i18nParams:t,fallbackText:r})=>{let{t:n}=ka(),i=n(e,t);return w("span",{children:i||r})};cd(cF,(e,t)=>{var n;let r=e[1];return r?w(uF,{i18nKey:r,i18nParams:t==null?void 0:t.i18nParams,fallbackText:`[${r}]`}):(console.warn("No i18n key extracted from slot pattern:",e[0]),w("span",{children:(n=t==null?void 0:t.text)!=null?n:""}))});Le="-ms-",ba="-moz-",j="-webkit-",zx="comm",ud="rule",dd="decl",dF="@import",Gx="@keyframes",fF="@layer",pF=Math.abs,Ta=String.fromCharCode,hF=Qu.default;Ra=1,on=1,Wx=0,He=0,ve=0,ln="";RF=function(e,t,r){for(var n=0,i=0;n=i,i=At(),n===38&&i===12&&(t[r]=1),!Ti(i);)Xe();return Oi(e,He)},CF=function(e,t){var r=-1,n=44;do switch(Ti(n)){case 0:n===38&&At()===12&&(t[r]=1),e[r]+=RF(He-1,t,r);break;case 2:e[r]+=ma(n);break;case 4:if(n===44){e[++r]=At()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Ta(n)}while(n=Xe());return e},OF=function(e,t){return Qx(CF(Yx(e),t))},lx=new Yu.default,PF=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&&!lx.get(r))&&!n){lx.set(e,!0);for(var i=[],o=OF(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]}}},NF=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};DF=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case dd:e.return=Xx(e.value,e.length);break;case Gx:return rn([_i(e,{value:M(e.value,"@","@"+j)})],n);case ud:if(e.length)return gF(e.props,function(i){switch(vF(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return rn([_i(e,{props:[M(i,/:(read-\w+)/,":"+ba+"$1")]})],n);case"::placeholder":return rn([_i(e,{props:[M(i,/:(plac\w+)/,":"+j+"input-$1")]}),_i(e,{props:[M(i,/:(plac\w+)/,":"+ba+"$1")]}),_i(e,{props:[M(i,/:(plac\w+)/,Le+"input-$1")]})],n)}return""})}},qF=[DF],LF=function(e){var t=e.key;if(t==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");(0,Ee.default)(Array.prototype).call(r,function(m){var g=m.getAttribute("data-emotion");(0,Rr.default)(g).call(g," ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var n=e.stylisPlugins||qF,i={},o,a=[];o=e.container||document.head,(0,Ee.default)(Array.prototype).call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),_=1;_<g.length;_++)i[g[_]]=!0;a.push(m)});var s,l=[PF,NF];{var c,d=[IF,TF(function(m){c.insert(m)})],u=kF((0,wa.default)(l).call(l,n,d)),p=function(m){return rn(AF(m),u)};s=function(m,g,_,v){c=_,p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new _x({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};UF=function(e){var t=LF(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=ur(s,t.registered,void 0);return Sa(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=ur(s,t.registered),d="animation-"+c.name;return cx(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=ur(s,t.registered);cx(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,jF(s))};return{css:r,cx:o,injectGlobal:i,keyframes:n,hydrate:function(a){(0,Ee.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,Lu.default)(Si).call(Si,null,t.registered),merge:(0,Lu.default)(qu).call(qu,null,t.registered,r)}},jF=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,bi.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},MF=UF({key:"css"}),Zx=MF.css,FF=(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 Vx.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=Zx`
415
412
  display: 'flex',
416
413
  alignItems: 'center',
417
414
  gap: '4px',
@@ -422,7 +419,7 @@ var oE=Object.create;var Vn=Object.defineProperty,iE=Object.defineProperties,aE=
422
419
  fontWeight: 600,
423
420
  lineHeight: '18px',
424
421
  width: 'max-content'
425
- `;return r.length===1?r[0]:b("div",{className:o,children:r})},pD=({message:e,type:t="info",duration:r=3e3,onClose:n})=>{let[o,i]=yt(!0);Ut(()=>{let s=setTimeout(()=>{i(!1),setTimeout(()=>{n==null||n()},300)},r);return()=>clearTimeout(s)},[r,n]);let a=N`
422
+ `;return r.length===1?r[0]:w("div",{className:i,children:r})},BF=({message:e,type:t="info",duration:r=3e3,onClose:n})=>{let[i,o]=St(!0);lr(()=>{let s=setTimeout(()=>{o(!1),setTimeout(()=>{n==null||n()},300)},r);return()=>clearTimeout(s)},[r,n]);let a=Zx`
426
423
  position: fixed;
427
424
  top: max(20px, env(safe-area-inset-top));
428
425
  left: 50%;
@@ -437,13 +434,13 @@ var oE=Object.create;var Vn=Object.defineProperty,iE=Object.defineProperties,aE=
437
434
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
438
435
  z-index: 9999;
439
436
  transition: opacity 0.3s, transform 0.3s;
440
- opacity: ${o?1:0};
441
- transform: ${o?"translate(-50%, 0)":"translate(-50%, -20px)"};
437
+ opacity: ${i?1:0};
438
+ transform: ${i?"translate(-50%, 0)":"translate(-50%, -20px)"};
442
439
  text-align: center;
443
440
  word-wrap: break-word;
444
- `;return b("div",{className:`toast toast-${t} ${o?"toast-visible":"toast-hidden"} ${a}`,children:e})},Yb=(e,t)=>{let r=document.createElement("div");document.body.appendChild(r);let n=()=>{document.body.removeChild(r)},o=fD(e,t);nr(b(pD,{message:o,type:t==null?void 0:t.type,duration:t==null?void 0:t.duration,onClose:n}),r)}});function Qb(){return x(this,null,function*(){if(vc)return vc;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 ve(t);return vc=r,r})}function Xb(){return x(this,null,function*(){let e=new kt;if(S.mpType!=="game")return e.resolve(!1),e.promise;if(gc)return e.resolve(!0),e.promise;let t=yield Qb();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:o}=t.data;gc=!0;let i=Jb({games:r.games,title:n,buttons:o,onClose:a=>{var s;switch(gc=!1,a.type){case"quit":e.resolve(!1);break;case"dismiss":e.resolve(!0),i.hide();break;case"navigate":if((s=a.data)!=null&&s.game){let l=a.data.game;hD(l),setTimeout(()=>{e.resolve(!1)},0)}else e.resolve(!0);i.hide();break;default:e.resolve(!0);break}}});return e.promise})}var vc,hD,gc,Zb=T(()=>{"use strict";te();Ie();D();li();Vt();vc=null;Qb();hD=e=>{var a;let{data:t}=L("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 i=`${`https://${e.gameId}.content.jolibox.com/`}index.html?${n.toString()}`;L("openSchemaSync",{schema:i})},gc=!1});function vD(e){let t=R(R({},mD),e),{url:r,height:n,showCloseButton:o,enableDragClose:i,useAnimation:a,onClose:s,onLoad:l}=t,c=0,d=0,u=!1,h=()=>a?{overlayTransition:"opacity 0.3s ease",containerTransition:"transform 0.3s ease",iframeTransition:"opacity 0.3s ease"}:{overlayTransition:"none",containerTransition:"none",iframeTransition:"none"},p=()=>a?300:0;function m(){let{overlayTransition:y,containerTransition:A,iframeTransition:k}=h();G=document.createElement("div"),G.id="jolibox-modal-overlay",G.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:${y}; opacity:0; visibility:hidden;`,$=document.createElement("div"),$.id="jolibox-modal-container",$.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:${A};`;let O=document.createElement("div");O.id="jolibox-modal-loading",O.style.cssText="position:absolute; top:50%; left:50%; transform:translate(-50%, -50%); width:40px; height:40px; border:4px solid #f3f3f3; border-top:4px solid #3498db; border-radius:50%; animation:spin 1s linear infinite;";let I=document.createElement("style");I.textContent="@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }",document.head.appendChild(I);let w=document.createElement("div");if(w.style.cssText="width:100%; height:100%; display:flex; flex-direction:column; padding-bottom:env(safe-area-inset-bottom, 0); position:relative;",ze=document.createElement("iframe"),ze.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${k};`,ze.src=r,ze.onload=()=>{O.parentNode&&O.parentNode.removeChild(O),ze.style.opacity="1",g(),l==null||l(),de.emit("onModalIframeLoaded",{url:r})},w.appendChild(ze),w.appendChild(O),$.appendChild(w),o){let B=document.createElement("div");B.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;",B.innerHTML="\u2715",B.onclick=v,$.appendChild(B)}G.appendChild($),document.body.appendChild(G),G.addEventListener("click",function(B){B.target===G&&v()}),i&&_()}function g(){!G||!$||u||(G.style.visibility="visible",a?requestAnimationFrame(()=>{G&&(G.style.opacity="1"),$&&($.style.transform="translateY(0)"),u=!0}):(G&&(G.style.opacity="1"),$&&($.style.transform="translateY(0)"),u=!0),L("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:S.webviewId}))}function _(){if(!$)return;let y=O=>{c=O.touches[0].clientY},A=O=>{if(!u)return;d=O.touches[0].clientY;let I=d-c;I>0&&($&&($.style.transition="none",$.style.transform=`translateY(${I}px)`),O.preventDefault())},k=()=>{!u||!$||($.style.transition=a?"transform 0.3s ease":"none",d-c>80?v():$.style.transform="translateY(0)")};$.addEventListener("touchstart",y),$.addEventListener("touchmove",A),$.addEventListener("touchend",k)}function v(){!G||!$||!u||(a?($.style.transform="translateY(100%)",G.style.opacity="0"):G.style.visibility="hidden",u=!1,L("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:S.webviewId}),setTimeout(()=>{G&&(G.remove(),G=null,$=null,ze=null,s==null||s(),de.emit("onModalIframeClosed",{url:r}))},p()))}return m(),{close:v}}function e0(){return window.joliboxUI=q(R({},window.joliboxUI),{createIframeModal:vD}),()=>{window.joliboxUI=void 0,G&&G.parentNode&&G.parentNode.removeChild(G),$&&$.parentNode&&$.parentNode.removeChild($),ze&&ze.parentNode&&ze.parentNode.removeChild(ze),G=null,$=null,ze=null}}var mD,G,$,ze,t0=T(()=>{"use strict";Ie();te();D();mD={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},G=null,$=null,ze=null});var n0={};fu(n0,{config:()=>TD});function _D(){no.on("isAdShowing",e=>{di=e,Hr(di)&&L("updateContainerConfigSync",{displayCapsuleButton:!di,webviewId:S.webviewId})})}function yD(){de.on("onInterceptSystemExit",({intercept:e})=>{r0=e})}function bD(){de.on("onInterceptBackPress",({intercept:e})=>{gD=e}),Ve("onBeforeBackPress",({uuid:e})=>{var t,r;de.emit("onBackPress",{}),(r=(t=globalThis.joliboxJSCore)==null?void 0:t.doBackPress)==null||r.call(t,e)})}function wD(){de.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),Le("onDocumentReady",{start_timestamp:pi,timestamp:Date.now()})})}function ED(){Ve("onI18nChanged",({language:e})=>{de.emit("onI18nChanged",{i18n:e})})}function xD(e){S.mpType==="game"&&Oe.start(e)}function AD(){Ve("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&S.onEnvConfigChanged({hostUserInfo:e}),de.emit("LifecycleEvent.onReady",R({},S.hostUserInfo?S.hostUserInfo:{isLogin:!1})),Le("joliboxServiceReady",{start_timestamp:pi,timestamp:Date.now()}),xD(t)}),Ve("onBeforeExit",({uuid:e})=>{var t;(t=globalThis.joliboxJSCore)==null||t.doExit(e)})}function SD(){let e=()=>{Le("onBeforeExit",{timestamp:Date.now()}),ci==null||ci(),ui==null||ui(),Oe.close(Date.now()-pi)},t=()=>di||r0;Je.onDoExit(()=>x(this,null,function*(){return t()?!0:Hr(S.shouldInterupt)?(S.shouldInterupt||e(),S.shouldInterupt):fi!=null&&fi.canShowRecommended&&(yield Xb())?!0:(e(),!1)})),Je.onDoBackPress(()=>x(this,null,function*(){return!!t()}))}function ID(){return x(this,null,function*(){let e=`${S.baseApiHost}/api/fe-configs/js-sdk/basic-meta`,{response:{data:t}}=yield ve(e);t&&(fi=t)})}function TD(){pi=Date.now(),AD(),_D(),yD(),bD(),SD(),wD(),ED(),ID(),ui=e0(),ci=Id()}var ci,ui,pi,di,fi,r0,gD,o0=T(()=>{"use strict";Ie();te();D();Ot();Td();Ka();Zb();Vt();t0();di=!1,fi=null,r0=!1,gD=!1;Je.onReady(()=>{})});function i0(e){let t=Da.config[e];return t||(t={},Da.config[e]=t),(r,n)=>{if(t[r]){tt.warn(`[can i use] ${r} already registered`);return}t[r]=R({},n)}}var a0=T(()=>{"use strict";D()});function _c(e){s0=e}function hi(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>hi(t)):Object.keys(e).reduce((t,r)=>(t[r]=hi(e[r]),t),{})}function bt(e){return typeof e=="number"}function yc(e){let t=bc(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function bc(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var s0,ae,mi,vi,gi,_i,xr,yi,bi,wi,Ei,xi,Ai,Si,Ii,Ti,Ri,ki,Ci,wc=T(()=>{"use strict";s0=!1;ae=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(s0)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 ${yc(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return hi(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:hi(this._default)}optional(){return this._optional=!0,this}};mi=class extends ae{validate(t){return this._optional&&t===void 0?!0:bt(t)?bt(this._min)&&t<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):bt(this._max)&&t>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):bt(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}},vi=class extends ae{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},gi=class extends ae{validate(t){if(this._optional&&t===void 0)return!0;if(typeof t!="string")return this.fail({expect:"string",actual:t});if(bt(this._maxLength)&&t.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if(bt(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}},_i=class extends ae{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},xr=class extends ae{validate(t){return!0}},yi=class extends ae{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},bi=class extends ae{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},wi=class extends ae{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},Ei=class extends ae{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 ${yc(t)}`)}return!0}},xi=class extends ae{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(bt(this._minItems)&&r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if(bt(this._maxItems)&&r.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if(bt(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 o=!0;if(r.forEach((i,a)=>{if(n.path=`${this.path}[${a}]`,n.errors=this.errors,i===void 0&&n.hasDefault){r[a]=n.defaultValue;return}n.validate(i)||(n.hasFallback?r[a]=n.fallbackValue:o=!1)}),this._uniqueItems){let i=new Map;for(let a in r)i.has(r[a])?o=this.fail(`${this.path} should NOT have duplicate items (${this.path}[${i.get(r[a])}] and ${this.path}[${a}] are identical)`):i.set(r[a],a)}return o}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}},Ai=class extends ae{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(bc(r)!=="object")return this.fail({expect:"object",actual:r});let o=r,i=this._value;i.errors=this.errors;let a=!0;for(let s in o){let l=o[s];if(/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/.test(s)?i.path=`${this.path}.${s}`:i.path=`${this.path}["${s}"]`,!(l===void 0&&i._optional)){if(l===void 0&&i.hasDefault){o[s]=i.defaultValue;continue}i.validate(l)||(i.hasFallback?o[s]=i.fallbackValue:a=!1)}}return a}},Si=class extends ae{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(bc(r)!=="object")return this.fail({expect:"object",actual:r});let n=r,o=!0;for(let i in this._object){let a=n[i],s=this._object[i];if(s.errors=this.errors,/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/.test(i)?s.path=`${this.path}.${i}`:s.path=`${this.path}["${i}"]`,!(s._optional&&a===void 0)){if(a===void 0&&s.hasDefault){n[i]=s.defaultValue;continue}s.validate(a)||(s.hasFallback?n[i]=s.fallbackValue:o=!1)}}return o}},Ii=class extends ae{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:yc(this.value),actual:r}):!0}},Ti=class extends ae{constructor(...t){super(),this._items=t}validate(t){if(t===void 0&&this._optional)return!0;let r=[],n=!1,o=this._items.length;for(let i=0;i<o;i++){let a=this._items[i];if(a.errors=[],a.path=this.path,!a.validate(t))r.push(a.errors.join("; "));else if(!n){n=!0;break}}if(!n){let i=r.join(`
445
- or `);this.errors.push(i)}return n}},Ri=class extends ae{constructor(...t){super(),this._items=t;let r=0,n=t.length-1;for(;n>=0;n--){let o=t[n];if(o._optional||o.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,o)=>{if(n.path=`${this.path}[${o}]`,n.errors=this.errors,t[o]===void 0&&n.hasDefault){t[o]=n.defaultValue;return}n.validate(t[o])||(n.hasFallback?t[o]=n._fallback:r=!1)}),r}},ki=class extends ae{validate(t){return t===void 0&&this._optional||t instanceof ArrayBuffer?!0:this.fail({expect:"arraybuffer",actual:t})}},Ci=class extends ae{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 Ec(e,t,r="param"){if(e.errors=[],e.path=r,_c(!0),!e.validate(t)){let n=e.errors.join(`
446
- `);throw e.errors.length=0,_c(!1),new TypeError(n)}}var E,xc=T(()=>{"use strict";wc();wc();E={object(e){return new Si(e)},array(e){return new xi(e)},tuple(...e){return new Ri(...e)},literal(e){return new Ii(e)},or(...e){return new Ti(...e)},symbol(){return new _i},record(e){return new Ai(e)},function(){return new wi},boolean(){return new vi},string(){return new gi},number(){return new mi},undefined(){return new yi},null(){return new bi},unknown(){return new xr},any(){return new xr},as(){return new xr},arraybuffer(){return new ki},enum(...e){return new Ei(...e)},typedarray(e){return new Ci(e)}}});var Oi,l0,c0=T(()=>{"use strict";D();nt();xc();tr();Oi=1,l0=e=>{function t(n,o){return(...i)=>{var u,h,p,m;let a=Date.now(),s={method:n,trace_id:Oi};Oi+=1;let l="SUCCESS",c=`${n}:ok`,d=0;try{if(o.paramsSchema)try{Ec(o.paramsSchema,i,"params")}catch(y){throw $a(`${n}:fail ${y.message}`)}let g=o.implement(...i),_=g,v=`${n}:ok`;if(g&&"code"in g){let{code:y,data:A,message:k}=g;l=y,_=A,v=k}return{code:l,message:v,data:_}}catch(g){let _=g;d=(h=(u=_.code)!=null?u:_.errNo)!=null?h:2e3,l="FAILURE";let v=(m=(p=_.message)!=null?p:_.errMsg)!=null?m:`${g}`;return c=`${n}:${l} ${v.replace(/^\S+:(fail|cancel)\s?/,"")}`,Te(new Vr(c,d)),{code:l,message:c}}finally{let g=Date.now()-a;e("apiInvoked",q(R({},s),{duration:g,status:l}))}}}function r(n,o){return(...i)=>x(this,null,function*(){var h,p,m,g;let a=Mu(i)?i:[i],s=Date.now(),l={method:n,trace_id:Oi};Oi+=1;let c=`${n}:ok`,d="SUCCESS",u={code:d,message:c};try{if(o.paramsSchema)try{Ec(o.paramsSchema,a,"params")}catch(y){throw $a(y.message)}let v=yield o.implement(...a);if(v&&"code"in v){let{code:y,data:A,message:k}=v;d=y,c=k,v=A}return Object.assign(u,{code:d,message:c,data:v}),u}catch(_){let v=_,y=(p=(h=v.code)!=null?h:v.errNo)!=null?p:2e3;d="FAILURE";let A=(g=(m=v.message)!=null?m:v.errMsg)!=null?g:`${_}`,k=`${n}:${d} ${A.replace(/^\S+:(fail|cancel)\s?/,"")}`;return Object.assign(u,{code:d,message:k}),Te(new Vr(k,y)),u}finally{let _=Date.now()-s;e("apiInvoked",q(R({},l),{duration:_,status:d}))}})}return{createAPI:r,createSyncAPI:t}}});var se,J,P,lt=T(()=>{"use strict";a0();Ot();c0();xc();({createAPI:se,createSyncAPI:J}=l0(Le)),P=i0("native")});var u0,kD,CD,OD,PD,d0=T(()=>{"use strict";D();lt();Ie();u0=ee(),kD="env",CD="getSystemInfoSync",OD=J(CD,{implement:()=>{var r;let e=L("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}}}),PD=J(kD,{implement:()=>{var t;let e=L("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});u0.registerCommand("API.getSystemInfoSync",OD);u0.registerCommand("API.env",PD);P("env",{version:"1.0.0"});P("getSystemInfoSync",{version:"1.0.0"})});var f0=f(Ac=>{"use strict";D();lt();nt();Ie();Ot();te();var ND="exitGame",DD="onReady",qD="onJoliboxShow",LD="onJoliboxHide",Pi=ee(),Ni=Xn(Te),UD=se(ND,{paramsSchema:E.tuple(E.function(),E.boolean().optional().default(!1)),implement:(e,t=!1)=>x(Ac,null,function*(){Ni(e).call(Ac),Hr(S.shouldInterupt)&&!S.shouldInterupt&&S.from&&Nu("onRetentionResult",{shouldStay:t},S.from,!0),yield Ee("exitAppAsync")})}),MD=J(qD,{paramsSchema:E.tuple(E.function()),implement(e){let t=Ni(e);Ve("onJoliboxEnterForeground",()=>{t.call(this),Kr.emit("visible",!0)})}}),FD=J(LD,{paramsSchema:E.tuple(E.function()),implement(e){let t=Ni(e);Ve("onJoliboxEnterBackground",()=>{t.call(this),Kr.emit("visible",!1)})}}),jD=J(DD,{paramsSchema:E.tuple(E.function()),implement(e){let t=Ni(e);de.on("LifecycleEvent.onReady",r=>{t(r)})}});Pi.registerCommand("LifecycleSDK.exit",UD);Pi.registerCommand("LifecycleSDK.onReady",jD);Pi.registerCommand("LifecycleSDK.onJoliboxShow",MD);Pi.registerCommand("LifecycleSDK.onJoliboxHide",FD);P("lifeCycle.exit",{version:"1.0.0"});P("lifeCycle.onReady",{version:"1.0.0"});P("lifeCycle.onJoliboxShow",{version:"1.0.0"});P("lifeCycle.onJoliboxHide",{version:"1.0.0"})});function p0(e){let t={};if(!Ht(e))return t;for(let[r,n]of Object.entries(e)){let o=r.toLocaleLowerCase();n?typeof n=="object"?t[o]=Object.prototype.toString.call(n):t[o]=String(n):t[o]=""}return t}function h0(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 m0(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function v0(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!Ht(r))return e;let[n,o=""]=e.split("?"),i=new URLSearchParams(o);for(let[s,l]of Object.entries(r))l!=null&&i.append(s,String(l));let a=i.toString();return a?`${n}?${a}`:n}var g0=T(()=>{"use strict";D()});var BD,$D,Sc,Ic,_0,HD,JD,VD,y0=T(()=>{"use strict";tr();Va();lt();g0();D();nt();te();BD=15,$D=to("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:S.baseApiHost}),Sc=0,Ic=[],_0=Xn(Te),HD=(e,t)=>{let r=e.filter(t),n=e.filter(o=>!t(o));return e.length=0,e.push(...n),r},JD=e=>{let t=new kt,r=()=>{};return J("request",{paramsSchema:E.tuple(E.object({url:E.string(),method:E.string(),headers:E.object(),data:E.object().optional(),query:E.object().optional(),dataType:E.string().default("json"),responseType:E.string().default("text"),enableCache:E.boolean().default(!1),appendHostCookie:E.boolean().default(!0),timeout:E.number().default(3e4),success:E.function(),fail:E.function()})),implement(o){let i=()=>x(this,null,function*(){var s,l;let a=_0(o.fail);try{if(Sc+=1,t.state!=="pending")return;let{data:c,dataType:d,responseType:u,enableCache:h,appendHostCookie:p}=o,m=p0(o.headers),g=h0(o.method),_=m0(o.timeout),v=v0(o.url,g,c),y=_0(o.success),A=Object.assign({},o,{method:g,header:m,data:g==="GET"||g==="HEAD"?void 0:c,enableCache:h,query:(s=o.query)!=null?s:{},dataType:d,responseType:u,appendHostCookie:p});_&&(A.timeout=_);let k=$D(v,A);{let{response:O}=yield k,{code:I,data:w,message:B}=O;if(w&&typeof w=="object"&&"status"in w&&w.status!==200)throw Ct({code:w.status||-1,msg:`request:fail status ${w.status}`});t.resolve({code:I!=null?I:"SUCCESS",data:w,message:B!=null?B:"request:ok"}),y({code:"SUCCESS",message:"request:ok",data:w})}}catch(c){t.reject(c),a({code:"FAILURE",message:"httpRequst: failed"})}finally{Sc-=1,(l=Ic.shift())==null||l()}});return Sc>=BD?(r=()=>{HD(Ic,a=>a===i)},Ic.push(i)):i(),t.promise}})(e),{abort(){t.reject(Ct({code:-1,msg:"request:fail abort"})),r()}}},VD=ee();VD.registerCommand("HttpSDK.request",JD);P("request",{version:"1.0.0"})});function b0(e){let t=Object.prototype.toString.call(e).split(" ")[1].split("]")[0].toLocaleLowerCase();return YD.includes(t)?t:""}function w0(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 E0(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 Di,GD,KD,zD,WD,uH,dH,YD,Tn,Tc,Rc=T(()=>{"use strict";lt();Ie();D();Vt();te();Di=ee(),GD=se("getLocalStorage",{paramsSchema:E.tuple(E.string()),implement(e){return x(this,null,function*(){let{response:t}=yield ve(`/api/games/user-storage/${S.mpId}`,{method:"GET",responseType:"json",appendHostCookie:!0,query:{key:e}}),{data:{code:r,message:n,data:o}}=yield t;if(r==="SUCCESS")return{code:r,message:n,data:o==null?void 0:o.value};try{let{data:{data:i,dataType:a}}=yield Ee("getLocalStorageAsync",{key:e}),s=w0(i,a);return{code:r,message:`${n}. fallback to native`,data:s}}catch(i){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get local storage failed",data:null}}})}});Di.registerCommand("StorageSDK.getItem",GD);P("storage.getItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});KD=se("setStorage",{paramsSchema:E.tuple(E.string(),E.or(E.string(),E.boolean(),E.number())),implement(e,t){return x(this,null,function*(){let r=S.mpId,n=typeof t=="string"?t:String(t),{response:o}=yield ve(`/api/games/user-storage/${r}`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e,value:n}}),{data:{code:i,message:a}}=o,s=b0(t),l=E0(t,s);return yield Ee("setLocalStorageAsync",{key:e,data:l,dataType:s}),i=="SUCCESS"?{code:i,message:a}:{code:i,message:`${a}. fallback to native`}})}});Di.registerCommand("StorageSDK.setItem",KD);P("storage.setItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});zD=se("removeStorage",{paramsSchema:E.tuple(E.string()),implement(e){return x(this,null,function*(){let t=S.mpId,{response:r}=yield ve(`/api/games/user-storage/${t}/remove`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e}}),{data:{code:n,message:o}}=r;return yield Ee("removeLocalStorageAsync",{key:e}),n==="SUCCESS"?{code:n,message:o}:{code:n,message:"[Jolibox SDK] remove item succ"}})}});Di.registerCommand("StorageSDK.removeItem",zD);P("storage.removeItem",{version:"1.0.0",properties:{key:"1.0.0"}});WD=se("clearStorage",{implement(){return x(this,null,function*(){let e=S.mpId,{response:t}=yield ve(`/api/games/user-storage/${e}/clear`,{method:"POST",appendHostCookie:!0});Ee("clearLocalStorageAsync");let{data:{code:r,message:n}}=t;return r==="SUCCESS"?{code:r,message:n}:{code:r,message:`${n}.fallback to native`}})}});Di.registerCommand("StorageSDK.clear",WD);P("storage.clear",{version:"1.0.0"});uH=se("getStorageInfo",{implement(){return x(this,null,function*(){let{data:e}=yield Ee("getStorageInfoAsync");return e})}});P("getStorageInfo",{version:"1.0.0",success:{keys:"1.0.0",currentSize:"1.0.0",limitSize:"1.0.0"}});dH=J("getStorageInfoSync",{implement(){return L("getStorageInfoSync")}}),YD=["string","number","boolean","object",""];Tn=se("getGlobalStorage",{paramsSchema:E.tuple(E.string()),implement(e){return x(this,null,function*(){try{let{data:t,dataType:r}=yield Ee("getGlobalStorageAsync",{key:e});return{code:"SUCCESS",message:"success",data:w0(t,r)}}catch(t){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get global storage failed",data:null}}})}}),Tc=se("setGlobalStorage",{paramsSchema:E.tuple(E.string(),E.or(E.string(),E.boolean(),E.number())),implement(e,t){return x(this,null,function*(){try{let r=b0(t),n=E0(t,r);return yield Ee("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 QD,XD,ZD,kc,x0=T(()=>{"use strict";D();Ie();lt();QD=J("showKeyboard",{paramsSchema:E.tuple(E.object({defaultValue:E.string().optional().default(""),multiple:E.boolean().optional().default(!1),maxLength:E.unknown().optional().default(1e5)})),implement(e){var n;let t=Math.floor((n=Number(e.maxLength))!=null?n:1e5),{defaultValue:r}=e;r&&t&&(r=r.slice(0,t)),L("showKeyboardSync",q(R({},e),{defaultValue:r,maxLength:t}))}});P("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"}});XD=J("updateKeyboard",{paramsSchema:E.tuple(E.object({value:E.string()})),implement(e){L("updateKeyboardSync",e)}});P("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});ZD=J("hideKeyboard",{implement(){L("hideKeyboardSync")}});P("keyboard.hideKeyboard",{version:"1.0.0"});kc=ee();kc.registerCommand("KeyboardSDK.showKeyboard",QD);kc.registerCommand("KeyboardSDK.updateKeyboard",XD);kc.registerCommand("KeyboardSDK.hideKeyboard",ZD)});var A0=f(Yt=>{"use strict";D();lt();Ot();var Ar=ee(),eq=se("levelFinished",{paramsSchema:E.tuple(E.string(),E.object({result:E.boolean(),duration:E.number()})),implement:(e,t)=>x(Yt,null,function*(){let{result:r,duration:n}=t,o=[];o.push(Oe.tracker("LevelFinished",{levelId:e,result:r,duration:n})),o.push(Oe.reporter({event:"COMPLETE_GAME_LEVEL"})),yield Promise.all(o)})}),tq=se("taskFinished",{paramsSchema:E.tuple(E.string(),E.object({duration:E.number()})),implement:(e,t)=>x(Yt,null,function*(){let{duration:r}=t;return yield Oe.reportToNative({event:"TaskFinished",params:{duration:r,taskId:e}})})}),rq=se("levelUpgrade",{paramsSchema:E.tuple(E.string(),E.string()),implement:(e,t)=>x(Yt,null,function*(){let r=[];r.push(Oe.reportToNative({event:"LevelUpgrade",params:{name:t,levelId:e}})),yield Promise.all(r)})}),nq=se("onHistoryUserLevel",{paramsSchema:E.tuple(E.number()),implement:e=>x(Yt,null,function*(){return yield Oe.reportToNative({event:"HistoryUserLevel",params:{level:e}})})}),oq=se("onHistoryUserScore",{paramsSchema:E.tuple(E.number()),implement:e=>x(Yt,null,function*(){return yield Oe.reportToNative({event:"HistoryUserScore",params:{score:e}})})}),iq=se("taskEvent",{paramsSchema:E.tuple(E.string(),E.object({tools:E.array(E.object({id:E.string(),name:E.string(),count:E.number(),description:E.string().optional(),price:E.object({amount:E.number(),unit:E.string()}).optional()})).optional(),awards:E.array(E.object({id:E.string(),name:E.string()})).optional()})),implement:(e,t)=>x(Yt,null,function*(){var n,o;let r=[];r.push(Oe.reportToNative({event:"TaskEvent",params:R({taskId:e},t)})),(o=(n=t.tools)==null?void 0:n.length)!=null&&o&&(r.push(Oe.reporter({event:"USE_GAME_ITEM"})),r.push(Oe.reportToNative({event:"UseGameItem",params:R({taskId:e},t)}))),yield Promise.all(r)})});Ar.registerCommand("TaskTrackerSDK.levelFinished",eq);Ar.registerCommand("TaskTrackerSDK.taskFinished",tq);Ar.registerCommand("TaskTrackerSDK.levelUpgrade",rq);Ar.registerCommand("TaskTrackerSDK.historyUserLevel",nq);Ar.registerCommand("TaskTrackerSDK.historyUserScore",oq);Ar.registerCommand("TaskTrackerSDK.taskEvent",iq);P("TaskTrackerSDK.onLevelFinished",{version:"1.0.0",properties:{levelId:"1.0.0",params:{result:"1.0.0",duration:"1.0.0"}}});P("TaskTrackerSDK.onTaskFinished",{version:"1.0.0",properties:{taskId:"1.0.0",duration:"1.0.0"}});P("TaskTrackerSDK.onLevelUpgrade",{version:"1.0.0",properties:{levelId:"1.0.0",name:"1.0.0"}});P("TaskTrackerSDK.onHistoryUserLevel",{version:"1.0.0",properties:{level:"1.0.0"}});P("TaskTrackerSDK.onHistoryUserScore",{version:"1.0.0",properties:{score:"1.0.0"}});P("TaskTrackerSDK.onTaskEvent",{version:"1.0.0",properties:{taskId:"1.0.0",params:{tools:{id:"1.0.0",name:"1.0.0",count:"1.0.0",description:"1.0.0",price:{amount:"1.0.0",unit:"1.0.0"}},awards:{id:"1.0.0",name:"1.0.0"}}}})});var Cc,aq,S0,Oc=T(()=>{"use strict";te();Ie();lt();D();tr();P("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"}});P("checkSession",{version:"1.0.0",success:{errMsg:"1.0.0"}});Cc=se("login",{implement(){return x(this,null,function*(){var a;let{data:{isLogin:e}}=yield Ee("checkLoginAsync");if(e)return{isLogin:!0,token:(a=S.hostUserInfo)==null?void 0:a.token};Ve("onLoginStateChange",({isLogin:s,token:l,uuid:c})=>{c==r&&o({isLogin:s,token:l})});let t=L("loginSync"),{data:{uuid:r}}=t;if(!r)throw Ct({code:-1,msg:"login failed"});let{promise:n,resolve:o}=new kt,i=yield n;return S.onEnvConfigChanged({hostUserInfo:i}),de.emit("onLoginComplete",i),i})}}),aq=se("checkSession",{implement(){return x(this,null,function*(){let{data:{isLogin:e}}=yield Ee("checkLoginAsync");return{isLogin:e}})}}),S0=ee();S0.registerCommand("API.login",Cc);S0.registerCommand("API.checkSession",aq)});var Ir,qi,wt,Li,Tr,Ui,Sr,sq,V,Qt,Xt=T(()=>{"use strict";D();Ir="UNLOCK_OPTIONS_CHANGED",qi="INVOKE_PAYMENT",wt="ON_PAYMENT_RESULT",Li="ON_USE_MODAL_EVENT",Tr="ON_USE_MODAL_RESULT",Ui="ON_USE_MODAL_FREQUENCY",Sr=new rt,sq=()=>({on:Sr.on.bind(Sr),off:Sr.off.bind(Sr),emit:Sr.emit.bind(Sr)}),V=sq(),Qt={charge:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},useJolicoin:{dailyMaxPopUps:2,minInterval:8*60*60*1e3}}});function Et(e,t){let r=null,n=null,o=null,i=()=>{if(o){r=Promise.resolve(o);return}r=new Promise(a=>{n=a})};return i(),e.on(t,(...a)=>{let s=a[0];o=s,n&&(n(s),n=null)}),{getData:()=>(r||i(),r),getCachedData:()=>o,clearCache:()=>{o=null,r=null},getFreshData:()=>(o=null,r=null,i(),r)}}var Rn=T(()=>{"use strict"});var Pc,I0=T(()=>{"use strict";Pc=e=>{let t=new Date,r=new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime(),n=r+24*60*60*1e3;return e.filter(o=>o>=r&&o<n)}});var T0,R0,k0,C0,O0=T(()=>{"use strict";Rc();I0();T0=e=>x(void 0,null,function*(){let{dailyMaxPopUps:t,minInterval:r}=e,n=yield Tn("joli_coin_use_modal_frequency");if(!n.data)return!0;let o=n.data,i=Pc(o);return!(i.length>=t||Date.now()-i[i.length-1]<r)}),R0=()=>x(void 0,null,function*(){var n;let e=Date.now(),r=(n=(yield Tn("joli_coin_use_modal_frequency")).data)!=null?n:[];r.push(e),r.sort((o,i)=>i-o).splice(8),yield Tc("joli_coin_use_modal_frequency",r)}),k0=e=>x(void 0,null,function*(){let{dailyMaxPopUps:t,minInterval:r}=e,n=yield Tn("joli_coin_payment_frequency");if(!n.data)return!0;let o=n.data,i=Pc(o);return!(i.length>=t||Date.now()-i[i.length-1]<r)}),C0=()=>x(void 0,null,function*(){var n;let e=Date.now(),r=(n=(yield Tn("joli_coin_payment_frequency")).data)!=null?n:[];r.push(e),r.sort((o,i)=>i-o).splice(8),yield Tc("joli_coin_payment_frequency",r)})});var D0=f(xt=>{"use strict";Xt();li();Vt();te();Oc();Rn();O0();var Dc=Et(V,Ui);Dc.getData();var Nc=Promise.resolve(),N0=e=>x(xt,null,function*(){Nc=Nc.then(()=>x(xt,null,function*(){yield ve("/api/joli-coin/user-config",{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield Nc});V.on(Li,(e,t)=>x(xt,null,function*(){if(e==="ADS-JOLI_COIN"){console.log("use modal show by frequency");let n=yield Dc.getData();if(!(yield T0(n.joliCoinUseAndCharge.useJolicoin))){V.emit(Tr,{useModalResult:"CONFIRM"});return}}let r=Gb({data:{enableAutoDeduct:t.enableAutoDeduct,userJolicoin:t.userJoliCoin,joliCoinQuantity:t.joliCoinQuantity},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{V.emit(Tr,{useModalResult:"CONFIRM"}),r.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:n})=>{V.emit(Tr,{useModalResult:(n!=null?n:"")==="CANCEL"?"CANCEL":"FAILED"}),r.destroy()}},onEnableDeductChanged:n=>x(xt,null,function*(){yield N0(n)})}});yield R0()}));V.on(qi,(e,t)=>x(xt,null,function*(){try{if(e==="ADS-JOLI_COIN"){let o=yield Dc.getData();if(!(yield k0(o.joliCoinUseAndCharge.charge))){V.emit(wt,{paymentResult:"SUCCESS"});return}console.log("show by frequency")}let r=yield P0();if(!r){V.emit(wt,{paymentResult:"FAILED"});return}let n=Kb({data:{userJolicoin:t.userJoliCoin,joliCoinQuantity:t.joliCoinQuantity,paymentChoices:r.paymentChoices,enableAutoDeduct:r.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:o=>x(xt,null,function*(){var i,a;if(!((i=S.hostUserInfo)!=null&&i.isLogin)){let{data:s}=yield Cc();if(!(s!=null&&s.isLogin)){console.log("login failed");return}let l=yield P0();if(((a=l==null?void 0:l.balance)!=null?a:0)>=t.joliCoinQuantity&&t.enableAutoDeduct){V.emit(wt,{paymentResult:"SUCCESS"}),n.destroy();return}}console.log("invokeNativePayment",o),V.emit(wt,{paymentResult:"SUCCESS"}),n.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:o})=>{V.emit(wt,{paymentResult:(o!=null?o:"")==="CANCEL"?"CANCEL":"FAILED"}),n.destroy()}},onEnableDeductChanged:o=>x(xt,null,function*(){yield N0(o)})}});yield C0()}catch(r){console.info("payment failed",r),V.emit(wt,{paymentResult:"FAILED"})}}));var P0=()=>x(xt,null,function*(){var t;let{response:e}=yield ve("/api/joli-coin/balance-detail",{method:"GET",appendHostCookie:!0,responseType:"json"});return(t=e.data)==null?void 0:t.data})});function We(e,t,r){return(t=dq(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dq(e){var t=fq(e,"string");return typeof t=="symbol"?t:t+""}function fq(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 Mi(e,t,r){return(t=pq(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function pq(e){var t=hq(e,"string");return typeof t=="symbol"?t:t+""}function hq(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 xq(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function Aq(e){return typeof e=="string"}function Sq(e){return typeof e=="undefined"}function Iq(e){return Sq(e)||e===null}function Tq(e){return typeof e=="function"}function iw(e){let t=e,r=null,n=function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r||(r=new t(...i)),r};return n.prototype=t.prototype,n}function kn(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function Bi(e,t){return t.map(r=>{if(r==="params"&&e[r]){let n=e[r];return Object.keys(n).reduce((o,i)=>(o[i]=String(n[i]),o),{})}return e[r]})}function Nq(e){let t=e.location?Bi(e.location,F0):null,r=e.target?Bi(e.target,F0):null;return Bi(bq(yq({},e),{location:t,target:r}),Oq)}function Dq(e){let t=e.events.map(n=>Nq(n)),r=Bi(e.device,Pq);return[e.protocolVersion,t,r,e.project]}function qq(){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 jq(e){return new Promise(t=>cw(e)(t))}function cw(e){return function(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null,n=!1;return e(o=>{if(!n)return n=!0,t.call(r,o)},null)}}function Bq(e,t){return(r=>{let n={onWillAddFirstListener(){r(o.fire,o)}},o=new Dn(n);return o.event})(function(r){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return e(o=>t(o)&&r.call(n,o),null)})}function Hq(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)Jq(e[n],t[n])}function Jq(e,t){if(Aq(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(Tq(t)){try{if(e instanceof t)return}catch(r){}if(!Iq(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 Lc(e,t,r){return(t=Vq(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Vq(e){var t=Gq(e,"string");return typeof t=="symbol"?t:t+""}function Gq(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 Fi(e,t,r){return(t=Kq(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Kq(e){var t=zq(e,"string");return typeof t=="symbol"?t:t+""}function zq(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function At(e,t,r){return(t=Wq(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wq(e){var t=Yq(e,"string");return typeof t=="symbol"?t:t+""}function Yq(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 Qq(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 Xq(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 oL(e,t){return be(e,0)^45?(((t<<2^be(e,0))<<2^be(e,1))<<2^be(e,2))<<2^be(e,3):0}function fw(e){return e.trim()}function iL(e,t){return(e=t.exec(e))?e[0]:e}function j(e,t,r){return e.replace(t,r)}function Yc(e,t){return e.indexOf(t)}function be(e,t){return e.charCodeAt(t)|0}function qn(e,t,r){return e.slice(t,r)}function ct(e){return e.length}function au(e){return e.length}function ji(e,t){return t.push(e),e}function aL(e,t){return e.map(t).join("")}function ta(e,t,r,n,o,i,a){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:ea,column:kr,length:a,return:""}}function On(e,t){return nL(ta("",null,null,"",null,null,0),e,{length:-e.length},t)}function sL(){return ce}function lL(){return ce=qe>0?be(Cr,--qe):0,kr--,ce===10&&(kr=1,ea--),ce}function Be(){return ce=qe<pw?be(Cr,qe++):0,kr++,ce===10&&(kr=1,ea++),ce}function ut(){return be(Cr,qe)}function $i(){return qe}function Un(e,t){return qn(Cr,e,t)}function Ln(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 hw(e){return ea=kr=1,pw=ct(Cr=e),qe=0,[]}function mw(e){return Cr="",e}function Hi(e){return fw(Un(qe-1,Qc(e===91?e+2:e===40?e+1:e)))}function cL(e){for(;(ce=ut())&&ce<33;)Be();return Ln(e)>2||Ln(ce)>3?"":" "}function uL(e,t){for(;--t&&Be()&&!(ce<48||ce>102||ce>57&&ce<65||ce>70&&ce<97););return Un(e,$i()+(t<6&&ut()==32&&Be()==32))}function Qc(e){for(;Be();)switch(ce){case e:return qe;case 34:case 39:e!==34&&e!==39&&Qc(ce);break;case 40:e===41&&Qc(e);break;case 92:Be();break}return qe}function dL(e,t){for(;Be()&&e+ce!==57&&!(e+ce===84&&ut()===47););return"/*"+Un(t,qe-1)+"*"+Zi(e===47?e:Be())}function fL(e){for(;!Ln(ut());)Be();return Un(e,qe)}function pL(e){return mw(Ji("",null,null,null,[""],e=hw(e),0,[0],e))}function Ji(e,t,r,n,o,i,a,s,l){for(var c=0,d=0,u=a,h=0,p=0,m=0,g=1,_=1,v=1,y=0,A="",k=o,O=i,I=n,w=A;_;)switch(m=y,y=Be()){case 40:if(m!=108&&be(w,u-1)==58){Yc(w+=j(Hi(y),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:w+=Hi(y);break;case 9:case 10:case 13:case 32:w+=cL(m);break;case 92:w+=uL($i()-1,7);continue;case 47:switch(ut()){case 42:case 47:ji(hL(dL(Be(),$i()),t,r),l);break;default:w+="/"}break;case 123*g:s[c++]=ct(w)*v;case 125*g:case 59:case 0:switch(y){case 0:case 125:_=0;case 59+d:v==-1&&(w=j(w,/\f/g,"")),p>0&&ct(w)-u&&ji(p>32?$0(w+";",n,r,u-1):$0(j(w," ","")+";",n,r,u-2),l);break;case 59:w+=";";default:if(ji(I=B0(w,t,r,c,d,o,s,A,k=[],O=[],u),i),y===123)if(d===0)Ji(w,t,I,I,k,i,u,s,O);else switch(h===99&&be(w,3)===110?100:h){case 100:case 108:case 109:case 115:Ji(e,I,I,n&&ji(B0(e,I,I,0,0,o,s,A,o,k=[],u),O),o,O,u,s,n?k:O);break;default:Ji(w,I,I,I,[""],O,0,s,O)}}c=d=p=0,g=v=1,A=w="",u=a;break;case 58:u=1+ct(w),p=m;default:if(g<1){if(y==123)--g;else if(y==125&&g++==0&&lL()==125)continue}switch(w+=Zi(y),y*g){case 38:v=d>0?1:(w+="\f",-1);break;case 44:s[c++]=(ct(w)-1)*v,v=1;break;case 64:ut()===45&&(w+=Hi(Be())),h=ut(),d=u=ct(A=w+=fL($i())),y++;break;case 45:m===45&&ct(w)==2&&(g=0)}}return i}function B0(e,t,r,n,o,i,a,s,l,c,d){for(var u=o-1,h=o===0?i:[""],p=au(h),m=0,g=0,_=0;m<n;++m)for(var v=0,y=qn(e,u+1,u=rL(g=a[m])),A=e;v<p;++v)(A=fw(g>0?h[v]+" "+y:j(y,/&\f/g,h[v])))&&(l[_++]=A);return ta(e,t,r,o===0?ou:s,l,c,d)}function hL(e,t,r){return ta(e,t,r,uw,Zi(sL()),qn(e,2,-2),0)}function $0(e,t,r,n){return ta(e,t,r,iu,qn(e,0,n),qn(e,n+1,-1),n)}function Rr(e,t){for(var r="",n=au(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function mL(e,t,r,n){switch(e.type){case tL:if(e.children.length)break;case eL:case iu:return e.return=e.return||e.value;case uw:return"";case dw:return e.return=e.value+"{"+Rr(e.children,n)+"}";case ou:e.value=e.props.join(",")}return ct(r=Rr(e.children,n))?e.return=e.value+"{"+r+"}":""}function vL(e){var t=au(e);return function(r,n,o,i){for(var a="",s=0;s<t;s++)a+=e[s](r,n,o,i)||"";return a}}function gL(e){return function(t){t.root||(t=t.return)&&e(t)}}function _L(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function vw(e,t){switch(oL(e,t)){case 5103:return F+"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 F+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return F+e+Ki+e+Se+e+e;case 6828:case 4268:return F+e+Se+e+e;case 6165:return F+e+Se+"flex-"+e+e;case 5187:return F+e+j(e,/(\w+).+(:[^]+)/,F+"box-$1$2"+Se+"flex-$1$2")+e;case 5443:return F+e+Se+"flex-item-"+j(e,/flex-|-self/,"")+e;case 4675:return F+e+Se+"flex-line-pack"+j(e,/align-content|flex-|-self/,"")+e;case 5548:return F+e+Se+j(e,"shrink","negative")+e;case 5292:return F+e+Se+j(e,"basis","preferred-size")+e;case 6060:return F+"box-"+j(e,"-grow","")+F+e+Se+j(e,"grow","positive")+e;case 4554:return F+j(e,/([^-])(transform)/g,"$1"+F+"$2")+e;case 6187:return j(j(j(e,/(zoom-|grab)/,F+"$1"),/(image-set)/,F+"$1"),e,"")+e;case 5495:case 3959:return j(e,/(image-set\([^]*)/,F+"$1$`$1");case 4968:return j(j(e,/(.+:)(flex-)?(.*)/,F+"box-pack:$3"+Se+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+F+e+e;case 4095:case 3583:case 4068:case 2532:return j(e,/(.+)-inline(.+)/,F+"$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(be(e,t+1)){case 109:if(be(e,t+4)!==45)break;case 102:return j(e,/(.+:)(.+)-([^]+)/,"$1"+F+"$2-$3$1"+Ki+(be(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Yc(e,"stretch")?vw(j(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(be(e,t+1)!==115)break;case 6444:switch(be(e,ct(e)-3-(~Yc(e,"!important")&&10))){case 107:return j(e,":",":"+F)+e;case 101:return j(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+F+(be(e,14)===45?"inline-":"")+"box$3$1"+F+"$2$3$1"+Se+"$2box$3")+e}break;case 5936:switch(be(e,t+11)){case 114:return F+e+Se+j(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return F+e+Se+j(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return F+e+Se+j(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return F+e+Se+e+e}return e}function TL(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=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(o){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 zi(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 o=r;if(o.anim===1)return jt={name:o.name,styles:o.styles,next:jt},o.name;var i=r;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)jt={name:a.name,styles:a.styles,next:jt},a=a.next;var s=i.styles+";";return s}return OL(e,t,r)}}var l=r;if(t==null)return l;var c=t[l];return c!==void 0?c:l}function OL(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=zi(e,t,r[o])+";";else for(var i in r){var a=r[i];if(typeof a!="object"){var s=a;t!=null&&t[s]!==void 0?n+=i+"{"+t[s]+"}":J0(s)&&(n+=Uc(i)+":"+V0(i,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++)J0(a[l])&&(n+=Uc(i)+":"+V0(i,a[l])+";");else{var c=zi(e,t,a);switch(i){case"animation":case"animationName":{n+=Uc(i)+":"+c+";";break}default:n+=i+"{"+c+"}"}}}return n}function Mc(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,o="";jt=void 0;var i=e[0];if(i==null||i.raw===void 0)n=!1,o+=zi(r,t,i);else{var a=i;o+=a[0]}for(var s=1;s<e.length;s++)if(o+=zi(r,t,e[s]),n){var l=i;o+=l[s]}G0.lastIndex=0;for(var c="",d;(d=G0.exec(o))!==null;)c+="-"+d[1];var u=TL(o)+c;return{name:u,styles:o,next:jt}}function _w(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}function K0(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function z0(e,t,r){var n=[],o=_w(e,n,r);return n.length<2?r:o+t(n)}function bw(e,t){le.__h&&le.__h(De,e,Xc||t),Xc=0;var r=De.__H||(De.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function UL(e,t){var r=bw(Wi++,3);!le.__s&&ww(r.__H,t)&&(r.__=e,r.u=t,De.__H.__h.push(r))}function ML(e){return Xc=5,su(function(){return{current:e}},[])}function su(e,t){var r=bw(Wi++,7);return ww(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function FL(){for(var e;e=yw.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Vi),e.__H.__h.forEach(Zc),e.__H.__h=[]}catch(t){e.__H.__h=[],le.__e(t,e.__v)}}function jL(e){var t,r=function(){clearTimeout(n),rw&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);rw&&(t=requestAnimationFrame(r))}function Vi(e){var t=De,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),De=t}function Zc(e){var t=De;e.__c=e.__(),De=t}function ww(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function ra(){if(Bt>1)Bt--;else{for(var e,t=!1;Pn!==void 0;){var r=Pn;for(Pn=void 0,eu++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&xw(r))try{r.c()}catch(o){t||(e=o,t=!0)}r=n}}if(eu=0,Bt--,t)throw e}}function Ye(e){if(Bt>0)return e();Bt++;try{return e()}finally{ra()}}function Ew(e){if(H!==void 0){var t=e.n;if(t===void 0||t.t!==H)return t={i:0,S:e,p:H.s,n:void 0,t:H,e:void 0,x:void 0,r:t},H.s!==void 0&&(H.s.n=t),H.s=t,e.n=t,32&H.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=H.s,t.n=void 0,H.s.n=t,H.s=t),t}}function we(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function ye(e){return new we(e)}function xw(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 Aw(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 Sw(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 Or(e){we.call(this,void 0),this.x=e,this.s=void 0,this.g=Yi-1,this.f=4}function Nn(e){return new Or(e)}function Iw(e){var t=e.u;if(e.u=void 0,typeof t=="function"){Bt++;var r=H;H=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,lu(e),n}finally{H=r,ra()}}}function lu(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,Iw(e)}function $L(e){if(H!==this)throw new Error("Out-of-order effect");Sw(this),H=e,this.f&=-2,8&this.f&&lu(this),ra()}function Fn(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function Pr(e){var t=new Fn(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function Nr(e,t){C[e]=t.bind(null,C[e]||function(){})}function Qi(e){jc&&jc(),jc=e&&e.S()}function kw(e){var t=this,r=e.data,n=Cw(r);n.value=r;var o=su(function(){for(var s=t,l=t.__v;l=l.__;)if(l.__c){l.__c.__$f|=4;break}var c=Nn(function(){var p=n.value.value;return p===0?0:p===!0?"":p||""}),d=Nn(function(){return!Array.isArray(c.value)&&!Ya(c.value)}),u=Pr(function(){if(this.N=Ow,d.value){var p=c.value;s.__v&&s.__v.__e&&s.__v.__e.nodeType===3&&(s.__v.__e.data=p)}}),h=t.__$u.d;return t.__$u.d=function(){u(),h.call(this)},[d,c]},[]),i=o[0],a=o[1];return i.value?a.peek():a.value}function HL(e,t,r,n){var o=t in e&&e.ownerSVGElement===void 0,i=ye(r);return{o:function(a,s){i.value=a,n=s},d:Pr(function(){this.N=Ow;var a=i.value.value;n[t]!==a&&(n[t]=a,o?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function Cw(e){return su(function(){return ye(e)},[])}function GL(){Ye(function(){for(var e;e=Tw.shift();)cu.call(e)})}function KL(){Tw.push(this)===1&&(C.requestAnimationFrame||JL)(GL)}function zL(){Ye(function(){for(var e;e=Rw.shift();)cu.call(e)})}function Ow(){Rw.push(this)===1&&(C.requestAnimationFrame||VL)(zL)}function WL(e){var t=ML(e);t.current=e,UL(function(){return Pr(function(){return this.N=KL,t.current()})},[])}function YL(e,t){let r=Gs(e);Vs(()=>{r.current=e},[e]),Js(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function he(e,t,r,n,o,i){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:--QL,__i:-1,__u:0,__source:o,__self:i};if(typeof e=="function"&&(a=e.defaultProps))for(s in a)l[s]===void 0&&(l[s]=a[s]);return C.vnode&&C.vnode(c),c}function St(e,t,r){return(t=cU(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function cU(e){var t=uU(e,"string");return typeof t=="symbol"?t:t+""}function uU(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 Ft(e,t,r){return(t=dU(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dU(e){var t=fU(e,"string");return typeof t=="symbol"?t:t+""}function fU(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 q0,lq,cq,uq,Bc,$c,nw,mq,vq,L0,gq,_q,U0,yq,bq,wq,ow,Eq,Rq,kq,M0,Cq,aw,sw,lw,F0,Oq,Pq,Hc,Y,Lq,Uq,Cn,Dn,Mq,Vc,Fq,qc,$q,Gc,j0,Kc,zc,Wc,Zq,Se,Ki,F,uw,ou,iu,eL,dw,tL,rL,Zi,nL,ea,kr,pw,qe,ce,Cr,yL,bL,wL,H0,EL,xL,AL,SL,IL,RL,kL,CL,gw,J0,Uc,V0,G0,jt,PL,NL,DL,qL,LL,Mn,Wi,De,Fc,W0,Xc,yw,le,Y0,Q0,X0,Z0,ew,tw,rw,BL,H,Pn,Bt,eu,Yi,cu,jc,Tw,Rw,JL,VL,Ne,QL,XL,It,tu,ru,Gi,ZL,eU,tU,rU,nU,oU,iU,aU,sU,lU,nu,Xi,t4,Pw=T(()=>{"use strict";or();Xs();q0=Object.getOwnPropertySymbols,lq=Object.prototype.hasOwnProperty,cq=Object.prototype.propertyIsEnumerable,uq=(e,t)=>{var r={};for(var n in e)lq.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&q0)for(var n of q0(e))t.indexOf(n)<0&&cq.call(e,n)&&(r[n]=e[n]);return r};Bc=class{constructor(t){We(this,"context",void 0),We(this,"continueCallback",void 0),We(this,"isBeforeAdCalled",!1),We(this,"isBeforeRewardCalled",!1),We(this,"isAdDismissedCalled",!1),We(this,"isAdViewedCalled",!1),We(this,"isAfterAdCalled",!1),We(this,"currentProvider",void 0),We(this,"currentClientParams",void 0),We(this,"adsHasResponse",!1),We(this,"videoChecker",window.document.createElement("video")),We(this,"wrapShowAdFn",r=>()=>{this.adsHasResponse=!0;let n=!1;this.videoChecker.play().catch(()=>{n=!1}),n=!this.videoChecker.paused,this.videoChecker.pause(),this.context.track("CallShowAdFn",Object.assign({},{userEvent:n},this.paramsToTrack)),r()}),this.context=t}get paramsToTrack(){var t,r,n,o,i,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:((o=this.currentClientParams)==null?void 0:o.type)==="preroll"?null:(a=(i=this.currentClientParams)==null?void 0:i.name)!=null?a:""}}wrapBeforeAd(t){return()=>{this.adsHasResponse=!0,this.context.track("CallBeforeAd",this.paramsToTrack),this.isBeforeAdCalled||(this.isBeforeAdCalled=!0,t==null||t())}}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,o,i,a,s;switch(this.adsHasResponse=!0,this.context.track("CallAdBreakDone",{provider:(o=(n=this.currentProvider)==null?void 0:n.name)!=null?o:null,breakType:r.breakType,breakName:(i=r.breakName)!=null?i:"",breakFormat:r.breakFormat,breakStatus:r.breakStatus}),r.breakStatus){case"viewed":case"ignored":case"dismissed":case"error":{t==null||t(r),(a=this.continueCallback)==null||a.call(this,[!1,r]);break}default:{(s=this.continueCallback)==null||s.call(this,[!0,r]);break}}}}callAdBreakAndContinue(t,r,n){return x(this,null,function*(){return this.currentProvider=t,this.currentClientParams=r,this.adsHasResponse=!1,new Promise(o=>{this.continueCallback=o;let i;switch(r.type){case"preroll":{i={type:r.type,adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}case"reward":{i={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:{i={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 a,s,l,c;this.adsHasResponse||(this.context.track("CallAdBreakTimeout",{type:r.type,provider:(s=(a=this.currentProvider)==null?void 0:a.name)!=null?s:null}),(c=this.continueCallback)==null||c.call(this,[!0,{breakType:r.type,breakName:r.type==="preroll"?"":(l=r.name)!=null?l:"",breakFormat:r.type==="reward"?"reward":"interstitial",breakStatus:"timeout"}]))},5e3),this.context.track("CallAdBreak",this.paramsToTrack),t.adBreak(i,n),window.JoliTesterBridge&&console.log("joli-fullscreen-ad-show")})})}};$c=class{constructor(t){Mi(this,"context",void 0),Mi(this,"adBreakIsShowing",!1),Mi(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),Mi(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()})}},nw=Object.defineProperty,mq=Object.defineProperties,vq=Object.getOwnPropertyDescriptors,L0=Object.getOwnPropertySymbols,gq=Object.prototype.hasOwnProperty,_q=Object.prototype.propertyIsEnumerable,U0=(e,t,r)=>t in e?nw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yq=(e,t)=>{for(var r in t||(t={}))gq.call(t,r)&&U0(e,r,t[r]);if(L0)for(var r of L0(t))_q.call(t,r)&&U0(e,r,t[r]);return e},bq=(e,t)=>mq(e,vq(t)),wq=(e,t)=>{for(var r in t)nw(e,r,{get:t[r],enumerable:!0})},ow=(e,t,r,n)=>{for(var o=t,i=e.length-1,a;i>=0;i--)(a=e[i])&&(o=a(o)||o);return o},Eq=(e,t,r)=>new Promise((n,o)=>{var i=l=>{try{s(r.next(l))}catch(c){o(c)}},a=l=>{try{s(r.throw(l))}catch(c){o(c)}},s=l=>l.done?n(l.value):Promise.resolve(l.value).then(i,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 o=this._eventListeners[r].indexOf(n);o!==-1&&this._eventListeners[r].splice(o,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}Rq=(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))(Rq||{});kq={log:kn("log"),warn:kn("warn"),info:kn("info"),error:kn("error"),debug:kn("debug")};Object.assign(globalThis,{logger:kq});M0=Symbol.for("Jolibox.canIUseMap"),Cq={};globalThis[M0]||(globalThis[M0]=Cq);aw=(e=>(e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(aw||{}),sw=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(sw||{}),lw=(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))(lw||{}),F0=["name","params"],Oq=["name","type","location","target","extra","timestamp","userId"],Pq=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];qq();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");Hc=class Jc{constructor(t){this.element=t,this.next=Jc.Undefined,this.prev=Jc.Undefined}};Hc.Undefined=new Hc(void 0);Y=Hc,Lq=class{constructor(){this._first=Y.Undefined,this._last=Y.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===Y.Undefined}clear(){let e=this._first;for(;e!==Y.Undefined;){let t=e.next;e.prev=Y.Undefined,e.next=Y.Undefined,e=t}this._first=Y.Undefined,this._last=Y.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new Y(e);if(this._first===Y.Undefined)this._first=r,this._last=r;else if(t){let o=this._last;this._last=r,r.prev=o,o.next=r}else{let o=this._first;this._first=r,r.next=o,o.prev=r}this._size+=1;let n=!1;return()=>{n||(n=!0,this._remove(r))}}shift(){if(this._first!==Y.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==Y.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==Y.Undefined&&e.next!==Y.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===Y.Undefined&&e.next===Y.Undefined?(this._first=Y.Undefined,this._last=Y.Undefined):e.next===Y.Undefined?(this._last=this._last.prev,this._last.next=Y.Undefined):e.prev===Y.Undefined&&(this._first=this._first.next,this._first.prev=Y.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==Y.Undefined;)yield e.element,e=e.next}},Uq=0,Cn=class{constructor(e){this.value=e,this.id=Uq++}},Dn=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 Cn&&(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,o,i,a,s;if(this._disposed)return()=>{console.info("[Jolibox SDK] Emitter is _disposed")};t&&(e=e.bind(t));let l=new Cn(e);return this._listeners?this._listeners instanceof Cn?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,(i=(o=this.options)==null?void 0:o.onDidFirstListener)==null||i.call(o,this)),(s=(a=this.options)==null?void 0:a.onDidAddListener)==null||s.call(a,this),this._size++,()=>{var c,d,u,h;if(!this._disposed){if(this._listeners instanceof Cn)this._listeners.id===l.id&&(this._listeners=void 0,this._size=0,(d=(c=this.options)==null?void 0:c.onDidRemoveLastListener)==null||d.call(c));else if(this._listeners){let p=this._listeners.indexOf(l);p>=0&&(this._listeners.splice(p,1),this._size--,this._size===0&&((h=(u=this.options)==null?void 0:u.onDidRemoveLastListener)==null||h.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(o){n(o)}}fire(e){this._listeners&&(this._listeners instanceof Cn?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},Mq=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 o=(n=this.listeners.get(e))!=null?n:new Dn,i=l=>t(...l.args),a=o.event(i);this.listerHandlerMap.set(t,{handler:i,dispose:a}),this.listeners.set(e,o);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,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];r||(r=new Lq,this.cachedEventQueue.set(e,r)),r.push({args:o}),t&&t.fire({event:e,args:o})}once(e,t){var r=this;let n=function(){t(...arguments),r.off(e,n)};this.on(e,n,!1)}},Vc={};wq(Vc,{None:()=>Fq,filter:()=>Bq,once:()=>cw,toPromise:()=>jq});Fq=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});qc=Symbol.for("Jolibox.hostEmitter"),$q=()=>{let e=new Mq;return globalThis[qc]||(globalThis[qc]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[qc]};$q();Gc=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Dn,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 o of e.metadata.args)r.push(o.constraint);let n=e.handler;e.handler=function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return Hq(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}};Gc=ow([iw],Gc);j0=class{constructor(){this._onWillExecuteCommand=new Dn,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Dn,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Gc,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=xq(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 Eq(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),Vc.toPromise(Vc.filter(this.registry.onDidRegisterCommand,o=>o===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),o=1;o<r;o++)n[o-1]=arguments[o];this._onWillExecuteCommand.fire({commandId:e,args:n});let i=this.invokeFunction(t.handler,...n);return this._onDidExecuteCommand.fire({commandId:e,args:n}),i}_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{}}};j0=ow([iw],j0);Kc=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";Lc(this,"context",void 0),Lc(this,"placement","GAME"),Lc(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,o)=>{r[o]=n}),{name:this.placement==="GAME"?"GamePage":"DramaPage",params:r}}getDevice(){var t,r,n,o;return{platform:(t=this.contextInfo.platform)!=null?t:lw.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:(o=this.contextInfo.deviceBrand)!=null?o:"UnknownBrand",uuid:this.contextInfo.deviceId,jsSdkVersion:"1.0.0",extra:{}}}serialize(t,r){var n;let o={protocolVersion:"1.0.0",events:[{name:t,type:aw.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:sw.WebSDK};return Dq(o)}};zc=class{constructor(t){Fi(this,"configs",null),Fi(this,"firstRun",!0),Fi(this,"context",void 0),Fi(this,"contextInfo",void 0),this.context=t,this.contextInfo=this.context.getContextInfo(),this.init()}init(){return x(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 o=(t=this.contextInfo.channel)!=null?t:"",i=this.configs[o],a=(r=i==null?void 0:i.interstitialRate)!=null?r:1;n=Math.random()<a}return this.firstRun=!1,n}};Wc=class{constructor(t,r){At(this,"name","ADSENSE"),At(this,"context",void 0),At(this,"contextInfo",void 0),At(this,"configured",!1),At(this,"initParams",void 0),At(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),At(this,"adConfig",n=>{let o=n,{onReady:i}=o,a=uq(o,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),At(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),At(this,"adUnit",n=>x(this,null,function*(){var o,i,a,s;if(this.context.track("CallAdUnit",{adFormat:(i=(o=n.adFormat)==null?void 0:o.toString())!=null?i: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:h}=n,p;if(!l)throw new Error("targeting element is required");if(typeof l=="string"?p=document.querySelector(l):p=l,!p)throw new Error("targeting element not found");let m=c;if(m||(m=this.initParams.unitId),!m)throw new Error("slot is required");let g=typeof d=="object"&&Array.isArray(d)?d.join(", "):d,_=document.createElement("ins");if(_.className="adsbygoogle",_.id="jolibox-ads",_.style.display="block",_.setAttribute("data-ad-client",this.initParams.clientId),_.setAttribute("data-ad-slot",m),g&&_.setAttribute("data-ad-format",g),u&&_.setAttribute("data-full-width-responsive",u),h&&_.setAttribute("style",h),(s=this.contextInfo.testAdsMode)!=null?s:!1){let v=document.createElement("div");v.style.position="absolute",v.style.top="0",v.style.left="0",v.style.width="100%",v.style.height="100%",v.style.display="flex",v.style.justifyContent="center",v.style.alignItems="center",v.style.backgroundColor="rgba(0, 0, 0, 0.5)",v.style.color="white",v.innerHTML="Test Ad",_.style.position="relative",p.appendChild(_),_.appendChild(v)}else p.appendChild(_),new MutationObserver(v=>{v.forEach(y=>{if(y.type==="attributes"&&y.attributeName==="data-ad-status"){let A=_.getAttribute("data-ad-status");this.context.track("AdSenseUnitStatusChanged",{status:A!=null?A:"null"})}})}).observe(_,{attributes:!0,attributeFilter:["data-ad-status"]}),this.push({})})),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,window.adsbygoogle=window.adsbygoogle||[]}init(){return x(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 o=document.createElement("script");o.id=r,o.async=!0,o.crossOrigin="anonymous",o.src=`https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=${this.initParams.clientId}`,n&&o.setAttribute("data-adbreak-test","on"),this.initParams.channelId&&o.setAttribute("data-ad-channel",this.initParams.channelId),document.head.appendChild(o),this.context.track("LoadAdsenseCompleted",null)}})}};Zq=function(){function e(r){var n=this;this._insertTag=function(o){var i;n.tags.length===0?n.insertionPoint?i=n.insertionPoint.nextSibling:n.prepend?i=n.container.firstChild:i=n.before:i=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,i),n.tags.push(o)},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(Xq(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var o=Qq(n);try{o.insertRule(r,o.cssRules.length)}catch(i){}}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}(),Se="-ms-",Ki="-moz-",F="-webkit-",uw="comm",ou="rule",iu="decl",eL="@import",dw="@keyframes",tL="@layer",rL=Math.abs,Zi=String.fromCharCode,nL=Object.assign;ea=1,kr=1,pw=0,qe=0,ce=0,Cr="";yL=function(e,t,r){for(var n=0,o=0;n=o,o=ut(),n===38&&o===12&&(t[r]=1),!Ln(o);)Be();return Un(e,qe)},bL=function(e,t){var r=-1,n=44;do switch(Ln(n)){case 0:n===38&&ut()===12&&(t[r]=1),e[r]+=yL(qe-1,t,r);break;case 2:e[r]+=Hi(n);break;case 4:if(n===44){e[++r]=ut()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Zi(n)}while(n=Be());return e},wL=function(e,t){return mw(bL(hw(e),t))},H0=new WeakMap,EL=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&&!H0.get(r))&&!n){H0.set(e,!0);for(var o=[],i=wL(t,o),a=r.props,s=0,l=0;s<i.length;s++)for(var c=0;c<a.length;c++,l++)e.props[l]=o[s]?i[s].replace(/&\f/g,a[c]):a[c]+" "+i[s]}}},xL=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};AL=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case iu:e.return=vw(e.value,e.length);break;case dw:return Rr([On(e,{value:j(e.value,"@","@"+F)})],n);case ou:if(e.length)return aL(e.props,function(o){switch(iL(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Rr([On(e,{props:[j(o,/:(read-\w+)/,":"+Ki+"$1")]})],n);case"::placeholder":return Rr([On(e,{props:[j(o,/:(plac\w+)/,":"+F+"input-$1")]}),On(e,{props:[j(o,/:(plac\w+)/,":"+Ki+"$1")]}),On(e,{props:[j(o,/:(plac\w+)/,Se+"input-$1")]})],n)}return""})}},SL=[AL],IL=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||SL,o={},i,a=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),_=1;_<g.length;_++)o[g[_]]=!0;a.push(m)});var s,l=[EL,xL];{var c,d=[mL,gL(function(m){c.insert(m)})],u=vL(l.concat(n,d)),h=function(m){return Rr(pL(m),u)};s=function(m,g,_,v){c=_,h(m?m+"{"+g.styles+"}":g.styles),v&&(p.inserted[g.name]=!0)}}var p={key:t,sheet:new Zq({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:s};return p.sheet.hydrate(a),p};RL={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},kL=/[A-Z]|^ms/g,CL=/_EMO_([^_]+?)_([^]*?)_EMO_/g,gw=function(e){return e.charCodeAt(1)===45},J0=function(e){return e!=null&&typeof e!="boolean"},Uc=_L(function(e){return gw(e)?e:e.replace(kL,"-$&").toLowerCase()}),V0=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(CL,function(r,n,o){return jt={name:n,styles:o,next:jt},n})}return RL[e]!==1&&!gw(e)&&typeof t=="number"&&t!==0?t+"px":t};G0=/label:\s*([^\s;{]+)\s*(;|$)/g;PL=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},NL=function(e,t,r){PL(e,t);var n=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var o=t;do e.insert(t===o?"."+n:"",o,e.sheet,!0),o=o.next;while(o!==void 0)}};DL=function(e){var t=IL(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=Mc(s,t.registered,void 0);return NL(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=Mc(s,t.registered),d="animation-"+c.name;return K0(t,{name:c.name,styles:"@keyframes "+d+"{"+c.styles+"}"}),d},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var c=Mc(s,t.registered);K0(t,c)},i=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return z0(t.registered,r,qL(s))};return{css:r,cx:i,injectGlobal:o,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:_w.bind(null,t.registered),merge:z0.bind(null,t.registered,r)}},qL=function e(t){for(var r="",n=0;n<t.length;n++){var o=t[n];if(o!=null){var i=void 0;switch(typeof o){case"boolean":break;case"object":{if(Array.isArray(o))i=e(o);else{i="";for(var a in o)o[a]&&a&&(i&&(i+=" "),i+=a)}break}default:i=o}i&&(r&&(r+=" "),r+=i)}}return r},LL=DL({key:"css"}),Mn=LL.css,Xc=0,yw=[],le=C,Y0=le.__b,Q0=le.__r,X0=le.diffed,Z0=le.__c,ew=le.unmount,tw=le.__;le.__b=function(e){De=null,Y0&&Y0(e)},le.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),tw&&tw(e,t)},le.__r=function(e){Q0&&Q0(e),Wi=0;var t=(De=e.__c).__H;t&&(Fc===De?(t.__h=[],De.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(Vi),t.__h.forEach(Zc),t.__h=[],Wi=0)),Fc=De},le.diffed=function(e){X0&&X0(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(yw.push(t)!==1&&W0===le.requestAnimationFrame||((W0=le.requestAnimationFrame)||jL)(FL)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Fc=De=null},le.__c=function(e,t){t.some(function(r){try{r.__h.forEach(Vi),r.__h=r.__h.filter(function(n){return!n.__||Zc(n)})}catch(n){t.some(function(o){o.__h&&(o.__h=[])}),t=[],le.__e(n,r.__v)}}),Z0&&Z0(e,t)},le.unmount=function(e){ew&&ew(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{Vi(n)}catch(o){t=o}}),r.__H=void 0,t&&le.__e(t,r.__v))};rw=typeof requestAnimationFrame=="function";BL=Symbol.for("preact-signals");H=void 0,Pn=void 0,Bt=0,eu=0,Yi=0;we.prototype.brand=BL;we.prototype.h=function(){return!0};we.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)};we.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)}};we.prototype.subscribe=function(e){var t=this;return Pr(function(){var r=t.value,n=H;H=void 0;try{e(r)}finally{H=n}})};we.prototype.valueOf=function(){return this.value};we.prototype.toString=function(){return this.value+""};we.prototype.toJSON=function(){return this.value};we.prototype.peek=function(){var e=H;H=void 0;try{return this.value}finally{H=e}};Object.defineProperty(we.prototype,"value",{get:function(){var e=Ew(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(eu>100)throw new Error("Cycle detected");this.v=e,this.i++,Yi++,Bt++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{ra()}}}});(Or.prototype=new we).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Yi))return!0;if(this.g=Yi,this.f|=1,this.i>0&&!xw(this))return this.f&=-2,!0;var e=H;try{Aw(this),H=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 H=e,Sw(this),this.f&=-2,!0};Or.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)}we.prototype.S.call(this,e)};Or.prototype.U=function(e){if(this.t!==void 0&&(we.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)}};Or.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(Or.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=Ew(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});Fn.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()}};Fn.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,Iw(this),Aw(this),Bt++;var e=H;return H=this,$L.bind(this,e)};Fn.prototype.N=function(){2&this.f||(this.f|=2,this.o=Pn,Pn=this)};Fn.prototype.d=function(){this.f|=8,1&this.f||lu(this)};Tw=[],Rw=[];Pr(function(){cu=this.N})();kw.displayName="_st";Object.defineProperties(we.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:kw},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});Nr("__b",function(e,t){if(typeof t.type=="string"){var r,n=t.props;for(var o in n)if(o!=="children"){var i=n[o];i instanceof we&&(r||(t.__np=r={}),r[o]=i,n[o]=i.peek())}}e(t)});Nr("__r",function(e,t){Qi();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(o){var i;return Pr(function(){i=this}),i.c=function(){n.__$f|=1,n.setState({})},i}())),Qi(r),e(t)});Nr("__e",function(e,t,r,n){Qi(),e(t,r,n)});Nr("diffed",function(e,t){Qi();var r;if(typeof t.type=="string"&&(r=t.__e)){var n=t.__np,o=t.props;if(n){var i=r.U;if(i)for(var a in i){var s=i[a];s!==void 0&&!(a in n)&&(s.d(),i[a]=void 0)}else i={},r.U=i;for(var l in n){var c=i[l],d=n[l];c===void 0?(c=HL(r,l,d,o),i[l]=c):c.o(d,o)}}}e(t)});Nr("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 o in n){var i=n[o];i&&i.d()}}}}else{var a=t.__c;if(a){var s=a.__$u;s&&(a.__$u=void 0,s.d())}}e(t)});Nr("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});Ue.prototype.shouldComponentUpdate=function(e,t){var r=this.__$u,n=r&&r.s!==void 0;for(var o in t)return!0;if(this.__f||typeof this.u=="boolean"&&this.u===!0){var i=2&this.__$f;if(!(n||i||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};JL=typeof requestAnimationFrame=="undefined"?setTimeout:function(e){var t=function(){clearTimeout(r),cancelAnimationFrame(n),e()},r=setTimeout(t,100),n=requestAnimationFrame(t)},VL=function(e){queueMicrotask(function(){queueMicrotask(e)})};Ne=Mn`
441
+ `;return w("div",{className:`toast toast-${t} ${i?"toast-visible":"toast-hidden"} ${a}`,children:e})},eA=(e,t)=>{let r=document.createElement("div");document.body.appendChild(r);let n=()=>{document.body.removeChild(r)},i=FF(e,t),o=Lx(),a=Px[o].translations;Lr(w(Dx,{definition:a,children:w(BF,{message:i,type:t==null?void 0:t.type,duration:t==null?void 0:t.duration,onClose:n})}),r)}});function tA(){return x(this,null,function*(){if(pd)return pd;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 le(t);return pd=r,r})}function rA(){return x(this,null,function*(){let e=new Qt;if(S.mpType!=="game")return e.resolve(!1),e.promise;if(hd)return e.resolve(!0),e.promise;let t=yield tA();if(t.code!=="SUCCESS")return e.resolve(!1),e.promise;let{gameListInfo:r,title:n,buttons:i}=t.data;hd=!0;let o=Bx({games:r.games,title:n,buttons:i,onClose:a=>{var s;switch(hd=!1,a.type){case"quit":e.resolve(!1);break;case"dismiss":e.resolve(!0),o.hide();break;case"navigate":if((s=a.data)!=null&&s.game){let l=a.data.game;$F(l),setTimeout(()=>{e.resolve(!1)},0)}else e.resolve(!0);o.hide();break;default:e.resolve(!0);break}}});return e.promise})}var pd,$F,hd,nA=I(()=>{"use strict";se();Me();N();Pi();Ot();pd=null;tA();$F=e=>{var a;let{data:t}=L("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()}`;L("openSchemaSync",{schema:o})},hd=!1});function HF(e){let t=T(T({},JF),e),{url:r,height:n,showCloseButton:i,enableDragClose:o,useAnimation:a,onClose:s,onLoad:l}=t,c=0,d=0,u=!1,p=()=>a?{overlayTransition:"opacity 0.3s ease",containerTransition:"transform 0.3s ease",iframeTransition:"opacity 0.3s ease"}:{overlayTransition:"none",containerTransition:"none",iframeTransition:"none"},f=()=>a?300:0;function m(){let{overlayTransition:b,containerTransition:E,iframeTransition:k}=p();X=document.createElement("div"),X.id="jolibox-modal-overlay",X.style.cssText=`position:fixed; top:0; left:0; right:0; bottom:0; background:rgba(0,0,0,0.5); z-index:1000; display:flex; justify-content:center; align-items:flex-end; transition:${b}; opacity:0; visibility:hidden;`,H=document.createElement("div"),H.id="jolibox-modal-container",H.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:${E};`;let O=document.createElement("div");O.id="jolibox-modal-loading",O.style.cssText="position:absolute; top:50%; left:50%; transform:translate(-50%, -50%); width:40px; height:40px; border:4px solid #f3f3f3; border-top:4px solid #3498db; border-radius:50%; animation:spin 1s linear infinite;";let R=document.createElement("style");R.textContent="@keyframes spin { 0% { transform: translate(-50%, -50%) rotate(0deg); } 100% { transform: translate(-50%, -50%) rotate(360deg); } }",document.head.appendChild(R);let y=document.createElement("div");if(y.style.cssText="width:100%; height:100%; display:flex; flex-direction:column; padding-bottom:env(safe-area-inset-bottom, 0); position:relative;",at=document.createElement("iframe"),at.style.cssText=`width:100%; flex:1; border:none; opacity:0; transition:${k};`,at.src=r,at.onload=()=>{O.parentNode&&O.parentNode.removeChild(O),at.style.opacity="1",g(),l==null||l(),be.emit("onModalIframeLoaded",{url:r})},y.appendChild(at),y.appendChild(O),H.appendChild(y),i){let J=document.createElement("div");J.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;",J.innerHTML="\u2715",J.onclick=v,H.appendChild(J)}X.appendChild(H),document.body.appendChild(X),X.addEventListener("click",function(J){J.target===X&&v()}),o&&_()}function g(){!X||!H||u||(X.style.visibility="visible",a?requestAnimationFrame(()=>{X&&(X.style.opacity="1"),H&&(H.style.transform="translateY(0)"),u=!0}):(X&&(X.style.opacity="1"),H&&(H.style.transform="translateY(0)"),u=!0),L("updateContainerConfigSync",{displayCapsuleButton:!1,webviewId:S.webviewId}))}function _(){if(!H)return;let b=O=>{c=O.touches[0].clientY},E=O=>{if(!u)return;d=O.touches[0].clientY;let R=d-c;R>0&&(H&&(H.style.transition="none",H.style.transform=`translateY(${R}px)`),O.preventDefault())},k=()=>{!u||!H||(H.style.transition=a?"transform 0.3s ease":"none",d-c>80?v():H.style.transform="translateY(0)")};H.addEventListener("touchstart",b),H.addEventListener("touchmove",E),H.addEventListener("touchend",k)}function v(){!X||!H||!u||(a?(H.style.transform="translateY(100%)",X.style.opacity="0"):X.style.visibility="hidden",u=!1,L("updateContainerConfigSync",{displayCapsuleButton:!0,webviewId:S.webviewId}),setTimeout(()=>{X&&(X.remove(),X=null,H=null,at=null,s==null||s(),be.emit("onModalIframeClosed",{url:r}))},f()))}return m(),{close:v}}function iA(){return window.joliboxUI=q(T({},window.joliboxUI),{createIframeModal:HF}),()=>{window.joliboxUI=void 0,X&&X.parentNode&&X.parentNode.removeChild(X),H&&H.parentNode&&H.parentNode.removeChild(H),at&&at.parentNode&&at.parentNode.removeChild(at),X=null,H=null,at=null}}var JF,X,H,at,oA=I(()=>{"use strict";Me();se();N();JF={height:"50%",showCloseButton:!0,enableDragClose:!0,useAnimation:!0},X=null,H=null,at=null});var sA={};vf(sA,{config:()=>t5});function zF(){co.on("isAdShowing",e=>{Na=e,On(Na)&&L("updateContainerConfigSync",{displayCapsuleButton:!Na,webviewId:S.webviewId})})}function GF(){be.on("onInterceptSystemExit",({intercept:e})=>{aA=e})}function KF(){be.on("onInterceptBackPress",({intercept:e})=>{VF=e}),nt("onBeforeBackPress",({uuid:e})=>{var t,r;be.emit("onBackPress",{}),(r=(t=globalThis.joliboxJSCore)==null?void 0:t.doBackPress)==null||r.call(t,e)})}function WF(){be.on("onDocumentReady",()=>{var e;(e=globalThis.joliboxJSCore)==null||e.onDocumentReady(window.location.href),Ge("onDocumentReady",{start_timestamp:qa,timestamp:Date.now()})})}function YF(){nt("onI18nChanged",({language:e})=>{be.emit("onI18nChanged",{i18n:e})})}function QF(e){S.mpType==="game"&&Pt.start(e)}function XF(){nt("onJoliboxServiceReady",({runtimeInfo:e,loadDuration:t})=>{e&&S.onEnvConfigChanged({hostUserInfo:e}),be.emit("LifecycleEvent.onReady",T({},S.hostUserInfo?S.hostUserInfo:{isLogin:!1})),Ge("joliboxServiceReady",{start_timestamp:qa,timestamp:Date.now()}),QF(t),qx(()=>S.language)}),nt("onBeforeExit",({uuid:e})=>{var t;(t=globalThis.joliboxJSCore)==null||t.doExit(e)})}function ZF(){let e=()=>{Ge("onBeforeExit",{timestamp:Date.now()}),Oa==null||Oa(),Pa==null||Pa(),Pt.close(Date.now()-qa)},t=()=>Na||aA;rt.onDoExit(()=>x(this,null,function*(){return t()?!0:On(S.shouldInterupt)?(S.shouldInterupt||e(),S.shouldInterupt):Da!=null&&Da.canShowRecommended&&(yield rA())?!0:(e(),!1)})),rt.onDoBackPress(()=>x(this,null,function*(){return!!t()}))}function e5(){return x(this,null,function*(){let e=`${S.baseApiHost}/api/fe-configs/js-sdk/basic-meta`,{response:{data:t}}=yield le(e);t&&(Da=t)})}function t5(){qa=Date.now(),XF(),zF(),GF(),KF(),ZF(),WF(),YF(),e5(),Pa=iA(),Oa=Op()}var Oa,Pa,qa,Na,Da,aA,VF,lA=I(()=>{"use strict";Me();se();N();Zt();Pp();_l();nA();Ot();Pi();oA();Na=!1,Da=null,aA=!1,VF=!1;rt.onReady(()=>{})});function cA(e){let t=al.config[e];return t||(t={},al.config[e]=t),(r,n)=>{if(t[r]){ht.warn(`[can i use] ${r} already registered`);return}t[r]=T({},n)}}var uA=I(()=>{"use strict";N()});function md(e){dA=e}function La(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.map(t=>La(t)):Object.keys(e).reduce((t,r)=>(t[r]=La(e[r]),t),{})}function $t(e){return typeof e=="number"}function vd(e){let t=gd(e);switch(t){case"string":return`"${e}"`;case"number":case"boolean":case"null":case"undefined":return String(e);default:return`a(n) ${t}`}}function gd(e){return typeof e=="function"?"function":Object.prototype.toString.call(e).slice(8).slice(0,-1).toLowerCase()}var dA,ge,Ua,ja,Ma,Fa,cn,Ba,$a,Ja,Ha,Va,za,Ga,Ka,Wa,Ya,Qa,Xa,yd=I(()=>{"use strict";dA=!1;ge=class{constructor(){this.errors=[];this.hasFallback=!1;this.hasDefault=!1;this._optional=!1}fail(t){if(dA)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 ${vd(t.actual)}`,this.errors.push(r)}return!1}fallback(t){return this.hasFallback=!0,this._fallback=t,this}get fallbackValue(){return La(this._fallback)}default(t){return this.hasDefault=!0,this._default=t,this}get defaultValue(){return typeof this._default=="function"?this._default:La(this._default)}optional(){return this._optional=!0,this}};Ua=class extends ge{validate(t){return this._optional&&t===void 0?!0:$t(t)?$t(this._min)&&t<this._min?this.fail(`the value of ${this.path} should be greater than or equal to ${this._min}`):$t(this._max)&&t>this._max?this.fail(`the value of ${this.path} should be less than or equal to ${this._max}`):$t(this._greater)&&t<=this._greater?this.fail(`the value of ${this.path} should be greater than ${this._greater}`):this._isInt&&t!==Math.floor(t)?this.fail(`the value of ${this.path} should be integer but got ${t}`):!0:this.fail({expect:"number",actual:t})}min(t){return this._min=t,this}max(t){return this._max=t,this}isInt(t){return this._isInt=t,this}greater(t){return this._greater=t,this}},ja=class extends ge{validate(t){return this._optional&&t===void 0?!0:typeof t!="boolean"?this.fail({expect:"boolean",actual:t}):!0}},Ma=class extends ge{validate(t){if(this._optional&&t===void 0)return!0;if(typeof t!="string")return this.fail({expect:"string",actual:t});if($t(this._maxLength)&&t.length>this._maxLength)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxLength}`);if($t(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}},Fa=class extends ge{validate(t){return this._optional&&t===void 0?!0:typeof t!="symbol"?this.fail({expect:"symbol",actual:t}):!0}},cn=class extends ge{validate(t){return!0}},Ba=class extends ge{validate(t){return t!==void 0?this.fail({expect:"undefined",actual:t}):!0}},$a=class extends ge{validate(t){return this._optional&&t===void 0?!0:t!==null?this.fail({expect:"null",actual:t}):!0}},Ja=class extends ge{validate(t){return this._optional&&t===void 0?!0:typeof t!="function"?this.fail({expect:"function",actual:t}):!0}},Ha=class extends ge{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 ${vd(t)}`)}return!0}},Va=class extends ge{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($t(this._minItems)&&r.length<this._minItems)return this.fail(`the length of ${this.path} should be greater than or equal to ${this._minItems}`);if($t(this._maxItems)&&r.length>this._maxItems)return this.fail(`the length of ${this.path} should be less than or equal to ${this._maxItems}`);if($t(this._length)&&r.length!==this._length)return this.fail(`the length of ${this.path} should be equal to ${this._length}`);let n=this._item;if(!n)return!0;let i=!0;if(r.forEach((o,a)=>{if(n.path=`${this.path}[${a}]`,n.errors=this.errors,o===void 0&&n.hasDefault){r[a]=n.defaultValue;return}n.validate(o)||(n.hasFallback?r[a]=n.fallbackValue:i=!1)}),this._uniqueItems){let o=new Map;for(let a in r)o.has(r[a])?i=this.fail(`${this.path} should NOT have duplicate items (${this.path}[${o.get(r[a])}] and ${this.path}[${a}] are identical)`):o.set(r[a],a)}return i}minItems(r){return this._minItems=r,this}maxItems(r){return this._maxItems=r,this}uniqueItems(){return this._uniqueItems=!0,this}length(r){return this._length=r,this}},za=class extends ge{constructor(r){super();this._value=r}validate(r){if(this._optional&&r===void 0)return!0;if(gd(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}},Ga=class extends ge{constructor(r={}){super();this._object=r}validate(r){if(this._optional&&r===void 0)return!0;if(gd(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}},Ka=class extends ge{constructor(r){super();this.value=r}validate(r){return r===void 0&&this._optional?!0:r!==this.value?this.fail({expect:vd(this.value),actual:r}):!0}},Wa=class extends ge{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(`
442
+ or `);this.errors.push(o)}return n}},Ya=class extends ge{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}},Qa=class extends ge{validate(t){return t===void 0&&this._optional||t instanceof ArrayBuffer?!0:this.fail({expect:"arraybuffer",actual:t})}},Xa=class extends ge{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 _d(e,t,r="param"){if(e.errors=[],e.path=r,md(!0),!e.validate(t)){let n=e.errors.join(`
443
+ `);throw e.errors.length=0,md(!1),new TypeError(n)}}var A,bd=I(()=>{"use strict";yd();yd();A={object(e){return new Ga(e)},array(e){return new Va(e)},tuple(...e){return new Ya(...e)},literal(e){return new Ka(e)},or(...e){return new Wa(...e)},symbol(){return new Fa},record(e){return new za(e)},function(){return new Ja},boolean(){return new ja},string(){return new Ma},number(){return new Ua},undefined(){return new Ba},null(){return new $a},unknown(){return new cn},any(){return new cn},as(){return new cn},arraybuffer(){return new Qa},enum(...e){return new Ha(...e)},typedarray(e){return new Xa(e)}}});var Za,fA,pA=I(()=>{"use strict";N();lt();bd();Dr();Za=1,fA=e=>{function t(n,i){return(...o)=>{var u,p,f,m;let a=Date.now(),s={method:n,trace_id:Za};Za+=1;let l="SUCCESS",c=`${n}:ok`,d=0;try{if(i.paramsSchema)try{_d(i.paramsSchema,o,"params")}catch(b){throw hl(`${n}:fail ${b.message}`)}let g=i.implement(...o),_=g,v=`${n}:ok`;if(g&&"code"in g){let{code:b,data:E,message:k}=g;l=b,_=E,v=k}return{code:l,message:v,data:_}}catch(g){let _=g;d=(p=(u=_.code)!=null?u:_.errNo)!=null?p:2e3,l="FAILURE";let v=(m=(f=_.message)!=null?f:_.errMsg)!=null?m:`${g}`;return c=`${n}:${l} ${v.replace(/^\S+:(fail|cancel)\s?/,"")}`,Ae(new Nn(c,d)),{code:l,message:c}}finally{let g=Date.now()-a;e("apiInvoked",q(T({},s),{duration:g,status:l}))}}}function r(n,i){return(...o)=>x(this,null,function*(){var p,f,m,g;let a=$f(o)?o:[o],s=Date.now(),l={method:n,trace_id:Za};Za+=1;let c=`${n}:ok`,d="SUCCESS",u={code:d,message:c};try{if(i.paramsSchema)try{_d(i.paramsSchema,a,"params")}catch(b){throw hl(b.message)}let v=yield i.implement(...a);if(v&&"code"in v){let{code:b,data:E,message:k}=v;d=b,c=k,v=E}return Object.assign(u,{code:d,message:c,data:v}),u}catch(_){let v=_,b=(f=(p=v.code)!=null?p:v.errNo)!=null?f:2e3;d="FAILURE";let E=(g=(m=v.message)!=null?m:v.errMsg)!=null?g:`${_}`,k=`${n}:${d} ${E.replace(/^\S+:(fail|cancel)\s?/,"")}`;return Object.assign(u,{code:d,message:k}),Ae(new Nn(k,b)),u}finally{let _=Date.now()-s;e("apiInvoked",q(T({},l),{duration:_,status:d}))}})}return{createAPI:r,createSyncAPI:t}}});var Re,G,P,It=I(()=>{"use strict";uA();Zt();pA();bd();({createAPI:Re,createSyncAPI:G}=fA(Ge)),P=cA("native")});var hA,n5,i5,o5,a5,mA=I(()=>{"use strict";N();It();Me();hA=pe(),n5="env",i5="getSystemInfoSync",o5=G(i5,{implement:()=>{var r;let e=L("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}}}),a5=G(n5,{implement:()=>{var t;let e=L("envSync");return(t=e==null?void 0:e.data)!=null?t:void 0}});hA.registerCommand("API.getSystemInfoSync",o5);hA.registerCommand("API.env",a5);P("env",{version:"1.0.0"});P("getSystemInfoSync",{version:"1.0.0"})});var vA=h(wd=>{"use strict";N();It();lt();Me();Zt();se();var s5="exitGame",l5="onReady",c5="onJoliboxShow",u5="onJoliboxHide",es=pe(),ts=io(Ae),d5=Re(s5,{paramsSchema:A.tuple(A.function(),A.boolean().optional().default(!1)),implement:(e,t=!1)=>x(wd,null,function*(){ts(e).call(wd),On(S.shouldInterupt)&&!S.shouldInterupt&&S.from&&Uf("onRetentionResult",{shouldStay:t},S.from,!0),yield Pe("exitAppAsync")})}),f5=G(c5,{paramsSchema:A.tuple(A.function()),implement(e){let t=ts(e);nt("onJoliboxEnterForeground",()=>{t.call(this),qn.emit("visible",!0)})}}),p5=G(u5,{paramsSchema:A.tuple(A.function()),implement(e){let t=ts(e);nt("onJoliboxEnterBackground",()=>{t.call(this),qn.emit("visible",!1)})}}),h5=G(l5,{paramsSchema:A.tuple(A.function()),implement(e){let t=ts(e);be.on("LifecycleEvent.onReady",r=>{t(r)})}});es.registerCommand("LifecycleSDK.exit",d5);es.registerCommand("LifecycleSDK.onReady",h5);es.registerCommand("LifecycleSDK.onJoliboxShow",f5);es.registerCommand("LifecycleSDK.onJoliboxHide",p5);P("lifeCycle.exit",{version:"1.0.0"});P("lifeCycle.onReady",{version:"1.0.0"});P("lifeCycle.onJoliboxShow",{version:"1.0.0"});P("lifeCycle.onJoliboxHide",{version:"1.0.0"})});function gA(e){let t={};if(!mr(e))return t;for(let[r,n]of Object.entries(e)){let i=r.toLocaleLowerCase();n?typeof n=="object"?t[i]=Object.prototype.toString.call(n):t[i]=String(n):t[i]=""}return t}function yA(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 _A(e,t=!1){if(e)return t||e>0&&e<=6e4?Math.ceil(e):6e4}function bA(e,t,r){if(["POST","PUT","PATCH"].includes(t)||!mr(r))return e;let[n,i=""]=e.split("?"),o=new URLSearchParams(i);for(let[s,l]of Object.entries(r))l!=null&&o.append(s,String(l));let a=o.toString();return a?`${n}?${a}`:n}var wA=I(()=>{"use strict";N()});var m5,v5,Ed,xd,EA,g5,y5,_5,xA=I(()=>{"use strict";Dr();gl();It();wA();N();lt();se();m5=15,v5=so("createRequestTaskSync","operateRequestTaskSync",{type:"public",baseUrl:S.baseApiHost}),Ed=0,xd=[],EA=io(Ae),g5=(e,t)=>{let r=e.filter(t),n=e.filter(i=>!t(i));return e.length=0,e.push(...n),r},y5=e=>{let t=new Qt,r=()=>{};return G("request",{paramsSchema:A.tuple(A.object({url:A.string(),method:A.string(),headers:A.object(),data:A.object().optional(),query:A.object().optional(),dataType:A.string().default("json"),responseType:A.string().default("text"),enableCache:A.boolean().default(!1),appendHostCookie:A.boolean().default(!0),timeout:A.number().default(3e4),success:A.function(),fail:A.function()})),implement(i){let o=()=>x(this,null,function*(){var s,l;let a=EA(i.fail);try{if(Ed+=1,t.state!=="pending")return;let{data:c,dataType:d,responseType:u,enableCache:p,appendHostCookie:f}=i,m=gA(i.headers),g=yA(i.method),_=_A(i.timeout),v=bA(i.url,g,c),b=EA(i.success),E=Object.assign({},i,{method:g,header:m,data:g==="GET"||g==="HEAD"?void 0:c,enableCache:p,query:(s=i.query)!=null?s:{},dataType:d,responseType:u,appendHostCookie:f});_&&(E.timeout=_);let k=v5(v,E);{let{response:O}=yield k,{code:R,data:y,message:J}=O;if(y&&typeof y=="object"&&"status"in y&&y.status!==200)throw Xt({code:y.status||-1,msg:`request:fail status ${y.status}`});t.resolve({code:R!=null?R:"SUCCESS",data:y,message:J!=null?J:"request:ok"}),b({code:"SUCCESS",message:"request:ok",data:y})}}catch(c){t.reject(c),a({code:"FAILURE",message:"httpRequst: failed"})}finally{Ed-=1,(l=xd.shift())==null||l()}});return Ed>=m5?(r=()=>{g5(xd,a=>a===o)},xd.push(o)):o(),t.promise}})(e),{abort(){t.reject(Xt({code:-1,msg:"request:fail abort"})),r()}}},_5=pe();_5.registerCommand("HttpSDK.request",y5);P("request",{version:"1.0.0"})});function AA(e){let t=Object.prototype.toString.call(e).split(" ")[1].split("]")[0].toLocaleLowerCase();return t==="array"&&(t="object"),A5.includes(t)?t:""}function SA(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 IA(e,t){try{switch(t){case"string":case"number":case"boolean":return`${e}`;case"object":return JSON.stringify(e);default:return""}}catch(r){return""}}var rs,b5,w5,E5,x5,z8,G8,A5,Ni,Ad,Sd=I(()=>{"use strict";It();Me();N();Ot();se();rs=pe(),b5=Re("getLocalStorage",{paramsSchema:A.tuple(A.string()),implement(e){return x(this,null,function*(){let{response:t}=yield le(`/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 Pe("getLocalStorageAsync",{key:e}),s=SA(o,a);return{code:r,message:`${n}. fallback to native`,data:s}}catch(o){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get local storage failed",data:null}}})}});rs.registerCommand("StorageSDK.getItem",b5);P("storage.getItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});w5=Re("setStorage",{paramsSchema:A.tuple(A.string(),A.or(A.string(),A.boolean(),A.number())),implement(e,t){return x(this,null,function*(){let r=S.mpId,n=typeof t=="string"?t:String(t),{response:i}=yield le(`/api/games/user-storage/${r}`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e,value:n}}),{data:{code:o,message:a}}=i,s=AA(t),l=IA(t,s);return yield Pe("setLocalStorageAsync",{key:e,data:l,dataType:s}),o=="SUCCESS"?{code:o,message:a}:{code:o,message:`${a}. fallback to native`}})}});rs.registerCommand("StorageSDK.setItem",w5);P("storage.setItem",{version:"1.0.0",properties:{key:"1.0.0",value:"1.0.0"}});E5=Re("removeStorage",{paramsSchema:A.tuple(A.string()),implement(e){return x(this,null,function*(){let t=S.mpId,{response:r}=yield le(`/api/games/user-storage/${t}/remove`,{method:"POST",responseType:"json",appendHostCookie:!0,data:{key:e}}),{data:{code:n,message:i}}=r;return yield Pe("removeLocalStorageAsync",{key:e}),n==="SUCCESS"?{code:n,message:i}:{code:n,message:"[Jolibox SDK] remove item succ"}})}});rs.registerCommand("StorageSDK.removeItem",E5);P("storage.removeItem",{version:"1.0.0",properties:{key:"1.0.0"}});x5=Re("clearStorage",{implement(){return x(this,null,function*(){let e=S.mpId,{response:t}=yield le(`/api/games/user-storage/${e}/clear`,{method:"POST",appendHostCookie:!0});Pe("clearLocalStorageAsync");let{data:{code:r,message:n}}=t;return r==="SUCCESS"?{code:r,message:n}:{code:r,message:`${n}.fallback to native`}})}});rs.registerCommand("StorageSDK.clear",x5);P("storage.clear",{version:"1.0.0"});z8=Re("getStorageInfo",{implement(){return x(this,null,function*(){let{data:e}=yield Pe("getStorageInfoAsync");return e})}});P("getStorageInfo",{version:"1.0.0",success:{keys:"1.0.0",currentSize:"1.0.0",limitSize:"1.0.0"}});G8=G("getStorageInfoSync",{implement(){return L("getStorageInfoSync")}}),A5=["string","number","boolean","object",""];Ni=Re("getGlobalStorage",{paramsSchema:A.tuple(A.string()),implement(e){return x(this,null,function*(){try{let{data:{data:t,dataType:r}}=yield Pe("getGlobalStorageAsync",{key:e});return{code:"SUCCESS",message:"success",data:SA(t,r)}}catch(t){return{code:"INTERNAL_ERROR",message:"[Jolibox SDK] get global storage failed",data:null}}})}}),Ad=Re("setGlobalStorage",{paramsSchema:A.tuple(A.string(),A.or(A.string(),A.boolean(),A.number(),A.array())),implement(e,t){return x(this,null,function*(){try{let r=AA(t),n=IA(t,r);return yield Pe("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 S5,I5,k5,Id,kA=I(()=>{"use strict";N();Me();It();S5=G("showKeyboard",{paramsSchema:A.tuple(A.object({defaultValue:A.string().optional().default(""),multiple:A.boolean().optional().default(!1),maxLength:A.unknown().optional().default(1e5)})),implement(e){var n;let t=Math.floor((n=Number(e.maxLength))!=null?n:1e5),{defaultValue:r}=e;r&&t&&(r=r.slice(0,t)),L("showKeyboardSync",q(T({},e),{defaultValue:r,maxLength:t}))}});P("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"}});I5=G("updateKeyboard",{paramsSchema:A.tuple(A.object({value:A.string()})),implement(e){L("updateKeyboardSync",e)}});P("keyboard.updateKeyboard",{version:"1.0.0",properties:{params:{value:"1.0.0"}}});k5=G("hideKeyboard",{implement(){L("hideKeyboardSync")}});P("keyboard.hideKeyboard",{version:"1.0.0"});Id=pe();Id.registerCommand("KeyboardSDK.showKeyboard",S5);Id.registerCommand("KeyboardSDK.updateKeyboard",I5);Id.registerCommand("KeyboardSDK.hideKeyboard",k5)});var TA=h(ns=>{"use strict";N();It();Zt();var kd=pe(),T5=Re("levelFinished",{paramsSchema:A.tuple(A.object({levelId:A.or(A.string(),A.number()),duration:A.number().optional(),rating:A.number().optional(),score:A.number().optional()})),implement:e=>x(ns,null,function*(){let{levelId:t,duration:r,rating:n,score:i}=e,o=[];o.push(Pt.tracker("LevelFinished",{levelId:t,duration:r,rating:n,score:i})),o.push(Pt.reporter({event:"COMPLETE_GAME_LEVEL"})),yield Promise.all(o)})}),R5=Re("gamePlayEnded",{paramsSchema:A.tuple(A.object({duration:A.number().optional(),rating:A.number().optional(),score:A.number()})),implement:e=>x(ns,null,function*(){let{duration:t,rating:r,score:n}=e;return Pt.tracker("GamePlayEnded",{duration:t,rating:r,score:n})})}),C5=Re("levelUpgrade",{paramsSchema:A.tuple(A.object({levelId:A.or(A.string(),A.number()),name:A.string().optional()})),implement:r=>x(ns,[r],function*({levelId:e,name:t}){let n=[];n.push(Pt.tracker("LevelUpgrade",{name:t,levelId:e})),yield Promise.all(n)})});kd.registerCommand("TaskTrackerSDK.levelFinished",T5);kd.registerCommand("TaskTrackerSDK.gamePlayEnded",R5);kd.registerCommand("TaskTrackerSDK.levelUpgrade",C5);P("TaskTrackerSDK.onLevelFinished",{version:"1.1.25",properties:{params:{levelId:"1.1.25",duration:"1.1.25",rating:"1.1.25",score:"1.1.25"}}});P("TaskTrackerSDK.onGamePlayEnded",{version:"1.1.25",properties:{params:{duration:"1.1.25",rating:"1.1.25",score:"1.1.25"}}});P("TaskTrackerSDK.onLevelUpgrade",{version:"1.1.25",properties:{params:{levelId:"1.1.25",name:"1.1.25"}}})});var Td,O5,RA,Rd=I(()=>{"use strict";se();Me();It();N();Dr();P("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"}});P("checkSession",{version:"1.0.0",success:{errMsg:"1.0.0"}});Td=Re("login",{implement(){return x(this,null,function*(){var a;let{data:{isLogin:e}}=yield Pe("checkLoginAsync");if(e)return{isLogin:!0,token:(a=S.hostUserInfo)==null?void 0:a.token};nt("onLoginStateChange",({isLogin:s,token:l,uuid:c})=>{c==r&&i({isLogin:s,token:l})});let t=L("loginSync"),{data:{uuid:r}}=t;if(!r)throw Xt({code:-1,msg:"login failed"});let{promise:n,resolve:i}=new Qt,o=yield n;return S.onEnvConfigChanged({hostUserInfo:o}),be.emit("onLoginComplete",o),o})}}),O5=Re("checkSession",{implement(){return x(this,null,function*(){let{data:{isLogin:e}}=yield Pe("checkLoginAsync");return{isLogin:e}})}}),RA=pe();RA.registerCommand("API.login",Td);RA.registerCommand("API.checkSession",O5)});var dn,is,kt,os,fn,as,un,P5,K,Cr,Or=I(()=>{"use strict";N();dn="UNLOCK_OPTIONS_CHANGED",is="INVOKE_PAYMENT",kt="ON_PAYMENT_RESULT",os="ON_USE_MODAL_EVENT",fn="ON_USE_MODAL_RESULT",as="ON_USE_MODAL_FREQUENCY",un=new mt,P5=()=>({on:un.on.bind(un),off:un.off.bind(un),emit:un.emit.bind(un)}),K=P5(),Cr={charge:{dailyMaxPopUps:2,minInterval:8*60*60*1e3},useJolicoin:{dailyMaxPopUps:2,minInterval:8*60*60*1e3}}});function Jt(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 Di=I(()=>{"use strict"});var Cd,CA=I(()=>{"use strict";Cd=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 ss,OA,PA,NA,DA,qA=I(()=>{"use strict";Sd();CA();ss=e=>{let t;try{t=JSON.parse(e)}catch(r){t=[]}return t},OA=e=>x(void 0,null,function*(){let{dailyMaxPopUps:t,minInterval:r}=e,n=yield Ni("joli_coin_use_modal_frequency");if(!n.data)return!0;let i=ss(n.data),o=Cd(i);return!(o.length>=t||Date.now()-o[o.length-1]<r)}),PA=()=>x(void 0,null,function*(){var n;let e=Date.now(),t=yield Ni("joli_coin_use_modal_frequency"),r=ss((n=t.data)!=null?n:"[]");r.push(e),r.sort((i,o)=>o-i).splice(8),yield Ad("joli_coin_use_modal_frequency",JSON.stringify(r))}),NA=e=>x(void 0,null,function*(){let{dailyMaxPopUps:t,minInterval:r}=e,n=yield Ni("joli_coin_payment_frequency");if(!n.data)return!0;let i=ss(n.data),o=Cd(i);return!(o.length>=t||Date.now()-o[o.length-1]<r)}),DA=()=>x(void 0,null,function*(){var n;let e=Date.now(),t=yield Ni("joli_coin_payment_frequency"),r=ss((n=t.data)!=null?n:"[]");r.push(e),r.sort((i,o)=>o-i).splice(8),yield Ad("joli_coin_payment_frequency",JSON.stringify(r))})});function LA(){let e=new Map;return{registerPaymentHandler(r,n){e.set(r,n)},invokePayment(r,...n){return x(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 Ae(o),{code:"FAILED",message:`[joliboxSDK]: paymenterror ${o}`}}})}}}var UA=I(()=>{"use strict";lt()});var Od=I(()=>{"use strict"});var D5,ls,Pd,q5,cs,jA=I(()=>{"use strict";Od();N();se();Ot();D5=()=>{let[e,t]=[Kf,Yf].map(r=>(n,i,o)=>new r(n,i,o));return{createPaymentError:e,createPaymentInternalError:t}},{createPaymentError:ls,createPaymentInternalError:Pd}=D5(),q5=S.testMode?"https://stg-game.jolibox.com":"https://game.jolibox.com",cs=class{constructor(){this._orderId=null;this._orderStatus="INIT";this.startPayment=t=>x(this,null,function*(){this._orderId&&(yield this.cancelOrder(this.orderId));let{data:r,code:n,message:i}=yield this.placeOrder(t);if(n!=="SUCCESS"||!r||!r.orderId)throw ls(i,1001);if((r==null?void 0:r.status)!=="PENDING")throw Pd(`Place order failed, status: ${r==null?void 0:r.status}`,1001);let{orderId:o}=r;this._orderId=o;let a=this.generateCallbackUrl()});this.cancelOrder=t=>x(this,null,function*(){var n,i;let{response:r}=yield le(`/api/orders/${t}/cancel`,{method:"POST",data:{}});if(r.code!=="SUCCCESS")throw ls((i=(n=r.message)!=null?n:r.errMsg)!=null?i:"",1003)});this.generateCallbackUrl=()=>{let t=new URLSearchParams("");return t.set("utm_source",S.deviceInfo.platform),t.set("joliSource",S.encodeJoliSourceQuery(T({},this.generatePaymentContext()))),`${q5}//payment/callback?${t.toString()}`}}get orderId(){return this._orderId}get status(){return this._orderStatus}}});var Nd,MA,FA=I(()=>{"use strict";Ot();jA();Od();Nd=class extends cs{constructor(r){super();this.productId=r;this.generatePaymentContext=()=>({type:"JOLI_COIN_ORDER_CONTEXT",state:"TO_VALIDATE",productId:this.productId,orderId:this.orderId})}placeOrder(r){return x(this,null,function*(){var n,i,o,a;try{let{response:s}=yield le("/api/orders/checkout/joli-coin",{method:"POST",data:{productId:r.productId}});if(s.code!=="SUCCESS")throw ls((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),Pd((a=JSON.stringify(s))!=null?a:"jolicoin placeorder failed",1002)}})}},MA=()=>{let e=new Map;return t=>x(void 0,null,function*(){let r=e.get(t);return r||(r=new Nd(t),e.set(t,r)),yield r.startPayment({productId:t}),{code:"SUCCESS",message:"jolicoin payment success"}})}});var Dd,BA=I(()=>{"use strict";UA();FA();Dd=LA();Dd.registerPaymentHandler("JOLI_COIN",MA())});var HA=h(Ht=>{"use strict";Or();Pi();Ot();se();Rd();Di();qA();BA();var Ld=Jt(K,as);Ld.getData();var qd=Promise.resolve(),JA=e=>x(Ht,null,function*(){qd=qd.then(()=>x(Ht,null,function*(){yield le("/api/joli-coin/user-config",{method:"POST",appendHostCookie:!0,data:{enableAutoDeduct:e}})})),yield qd});K.on(os,(e,t)=>x(Ht,null,function*(){if(e==="ADS-JOLI_COIN"){console.log("use modal show by frequency");let n=yield Ld.getData();if(!(yield OA(n.joliCoinUseAndCharge.useJolicoin))){K.emit(fn,{useModalResult:"CONFIRM"});return}}let r=Jx({data:{enableAutoDeduct:t.enableAutoDeduct,userJolicoin:t.userJoliCoin,joliCoinQuantity:t.joliCoinQuantity},buttons:{confirm:{text:t.confirmButtonText,onPress:()=>{K.emit(fn,{useModalResult:"CONFIRM"}),r.destroy()}},cancel:{text:t.cancelButtonText,onPress:({type:n})=>{K.emit(fn,{useModalResult:(n!=null?n:"")==="CANCEL"?"CANCEL":"FAILED"}),r.destroy()}},onEnableDeductChanged:n=>x(Ht,null,function*(){yield JA(n)})}});yield PA()}));K.on(is,(e,t)=>x(Ht,null,function*(){try{if(e==="ADS-JOLI_COIN"){let i=yield Ld.getData();if(!(yield NA(i.joliCoinUseAndCharge.charge))){K.emit(kt,{paymentResult:"SUCCESS"});return}console.log("show by frequency")}let r=yield $A();if(!r){K.emit(kt,{paymentResult:"FAILED"});return}let n=Hx({data:{userJolicoin:t.userJoliCoin,joliCoinQuantity:t.joliCoinQuantity,paymentChoices:r.paymentChoices,enableAutoDeduct:r.enableAutoDeduct},buttons:{confirm:{text:t.confirmButtonText,onPress:i=>x(Ht,null,function*(){var a,s;if(!((a=S.hostUserInfo)!=null&&a.isLogin)){let{data:l}=yield Td();if(!(l!=null&&l.isLogin)){console.log("login failed");return}let c=yield $A();if(((s=c==null?void 0:c.balance)!=null?s:0)>=t.joliCoinQuantity){K.emit(kt,{paymentResult:"SUCCESS"}),n.destroy();return}}console.log("invokeNativePayment",i);let{code:o}=yield Dd.invokePayment("JOLI_COIN",i);if(o!=="SUCCESS"){K.emit(kt,{paymentResult:"FAILED"}),n.destroy();return}K.emit(kt,{paymentResult:"SUCCESS"}),n.destroy()})},cancel:{text:t.cancelButtonText,onPress:({type:i})=>{K.emit(kt,{paymentResult:(i!=null?i:"")==="CANCEL"?"CANCEL":"FAILED"}),n.destroy()}},onEnableDeductChanged:i=>x(Ht,null,function*(){yield JA(i)})}});yield DA()}catch(r){console.info("payment failed",r),K.emit(kt,{paymentResult:"FAILED"})}}));var $A=()=>x(Ht,null,function*(){var t;let{response:e}=yield le("/api/joli-coin/balance-detail",{method:"GET",appendHostCookie:!0,responseType:"json"});return(t=e.data)==null?void 0:t.data})});function st(e,t,r){return(t=M5(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function M5(e){var t=F5(e,"string");return typeof t=="symbol"?t:t+""}function F5(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 us(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=$5(e,"string");return typeof t=="symbol"?t:t+""}function $5(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 Q5(e){return new Promise(t=>{setTimeout(()=>{t()},e)})}function X5(e){return typeof e=="string"}function Z5(e){return typeof e=="undefined"}function eB(e){return Z5(e)||e===null}function tB(e){return typeof e=="function"}function mS(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 qi(e){return function(){var t,r;((r=(t=globalThis.VConsole)==null?void 0:t[e])!=null?r:globalThis.console[e])(...arguments)}}function ps(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 sB(e){let t=e.location?ps(e.location,WA):null,r=e.target?ps(e.target,WA):null;return ps(K5(G5({},e),{location:t,target:r}),oB)}function lB(e){let t=e.events.map(n=>sB(n)),r=ps(e.device,aB);return[e.protocolVersion,t,r,e.project]}function cB(){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 hB(e){return new Promise(t=>_S(e)(t))}function _S(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 mB(e,t){return(r=>{let n={onWillAddFirstListener(){r(i.fire,i)}},i=new Fi(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 gB(e,t){let r=Math.min(e.length,t.length);for(let n=0;n<r;n++)yB(e[n],t[n])}function yB(e,t){if(X5(t)){if(typeof e!==t)throw new Error(`argument does not match constraint: typeof ${t}`)}else if(tB(t)){try{if(e instanceof t)return}catch(r){}if(!eB(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 jd(e,t,r){return(t=_B(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _B(e){var t=bB(e,"string");return typeof t=="symbol"?t:t+""}function bB(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 ds(e,t,r){return(t=wB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function wB(e){var t=EB(e,"string");return typeof t=="symbol"?t:t+""}function EB(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Vt(e,t,r){return(t=xB(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function xB(e){var t=AB(e,"string");return typeof t=="symbol"?t:t+""}function AB(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 SB(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 IB(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 PB(e,t){return Ce(e,0)^45?(((t<<2^Ce(e,0))<<2^Ce(e,1))<<2^Ce(e,2))<<2^Ce(e,3):0}function ES(e){return e.trim()}function NB(e,t){return(e=t.exec(e))?e[0]:e}function B(e,t,r){return e.replace(t,r)}function Xd(e,t){return e.indexOf(t)}function Ce(e,t){return e.charCodeAt(t)|0}function Bi(e,t,r){return e.slice(t,r)}function Tt(e){return e.length}function uf(e){return e.length}function fs(e,t){return t.push(e),e}function DB(e,t){return e.map(t).join("")}function ks(e,t,r,n,i,o,a){return{value:e,root:t,parent:r,type:n,props:i,children:o,line:Is,column:vn,length:a,return:""}}function Ui(e,t){return OB(ks("",null,null,"",null,null,0),e,{length:-e.length},t)}function qB(){return _e}function LB(){return _e=ze>0?Ce(gn,--ze):0,vn--,_e===10&&(vn=1,Is--),_e}function Ze(){return _e=ze<xS?Ce(gn,ze++):0,vn++,_e===10&&(vn=1,Is++),_e}function Rt(){return Ce(gn,ze)}function hs(){return ze}function Ji(e,t){return Bi(gn,e,t)}function $i(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 AS(e){return Is=vn=1,xS=Tt(gn=e),ze=0,[]}function SS(e){return gn="",e}function ms(e){return ES(Ji(ze-1,Zd(e===91?e+2:e===40?e+1:e)))}function UB(e){for(;(_e=Rt())&&_e<33;)Ze();return $i(e)>2||$i(_e)>3?"":" "}function jB(e,t){for(;--t&&Ze()&&!(_e<48||_e>102||_e>57&&_e<65||_e>70&&_e<97););return Ji(e,hs()+(t<6&&Rt()==32&&Ze()==32))}function Zd(e){for(;Ze();)switch(_e){case e:return ze;case 34:case 39:e!==34&&e!==39&&Zd(_e);break;case 40:e===41&&Zd(e);break;case 92:Ze();break}return ze}function MB(e,t){for(;Ze()&&e+_e!==57&&!(e+_e===84&&Rt()===47););return"/*"+Ji(t,ze-1)+"*"+Ss(e===47?e:Ze())}function FB(e){for(;!$i(Rt());)Ze();return Ji(e,ze)}function BB(e){return SS(vs("",null,null,null,[""],e=AS(e),0,[0],e))}function vs(e,t,r,n,i,o,a,s,l){for(var c=0,d=0,u=a,p=0,f=0,m=0,g=1,_=1,v=1,b=0,E="",k=i,O=o,R=n,y=E;_;)switch(m=b,b=Ze()){case 40:if(m!=108&&Ce(y,u-1)==58){Xd(y+=B(ms(b),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:y+=ms(b);break;case 9:case 10:case 13:case 32:y+=UB(m);break;case 92:y+=jB(hs()-1,7);continue;case 47:switch(Rt()){case 42:case 47:fs($B(MB(Ze(),hs()),t,r),l);break;default:y+="/"}break;case 123*g:s[c++]=Tt(y)*v;case 125*g:case 59:case 0:switch(b){case 0:case 125:_=0;case 59+d:v==-1&&(y=B(y,/\f/g,"")),f>0&&Tt(y)-u&&fs(f>32?XA(y+";",n,r,u-1):XA(B(y," ","")+";",n,r,u-2),l);break;case 59:y+=";";default:if(fs(R=QA(y,t,r,c,d,i,s,E,k=[],O=[],u),o),b===123)if(d===0)vs(y,t,R,R,k,o,u,s,O);else switch(p===99&&Ce(y,3)===110?100:p){case 100:case 108:case 109:case 115:vs(e,R,R,n&&fs(QA(e,R,R,0,0,i,s,E,i,k=[],u),O),i,O,u,s,n?k:O);break;default:vs(y,R,R,R,[""],O,0,s,O)}}c=d=f=0,g=v=1,E=y="",u=a;break;case 58:u=1+Tt(y),f=m;default:if(g<1){if(b==123)--g;else if(b==125&&g++==0&&LB()==125)continue}switch(y+=Ss(b),b*g){case 38:v=d>0?1:(y+="\f",-1);break;case 44:s[c++]=(Tt(y)-1)*v,v=1;break;case 64:Rt()===45&&(y+=ms(Ze())),p=Rt(),d=u=Tt(E=y+=FB(hs())),b++;break;case 45:m===45&&Tt(y)==2&&(g=0)}}return o}function QA(e,t,r,n,i,o,a,s,l,c,d){for(var u=i-1,p=i===0?o:[""],f=uf(p),m=0,g=0,_=0;m<n;++m)for(var v=0,b=Bi(e,u+1,u=CB(g=a[m])),E=e;v<f;++v)(E=ES(g>0?p[v]+" "+b:B(b,/&\f/g,p[v])))&&(l[_++]=E);return ks(e,t,r,i===0?lf:s,l,c,d)}function $B(e,t,r){return ks(e,t,r,bS,Ss(qB()),Bi(e,2,-2),0)}function XA(e,t,r,n){return ks(e,t,r,cf,Bi(e,0,n),Bi(e,n+1,-1),n)}function mn(e,t){for(var r="",n=uf(e),i=0;i<n;i++)r+=t(e[i],i,e,t)||"";return r}function JB(e,t,r,n){switch(e.type){case RB:if(e.children.length)break;case TB:case cf:return e.return=e.return||e.value;case bS:return"";case wS:return e.return=e.value+"{"+mn(e.children,n)+"}";case lf:e.value=e.props.join(",")}return Tt(r=mn(e.children,n))?e.return=e.value+"{"+r+"}":""}function HB(e){var t=uf(e);return function(r,n,i,o){for(var a="",s=0;s<t;s++)a+=e[s](r,n,i,o)||"";return a}}function VB(e){return function(t){t.root||(t=t.return)&&e(t)}}function zB(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}function IS(e,t){switch(PB(e,t)){case 5103:return F+"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 F+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return F+e+_s+e+Ue+e+e;case 6828:case 4268:return F+e+Ue+e+e;case 6165:return F+e+Ue+"flex-"+e+e;case 5187:return F+e+B(e,/(\w+).+(:[^]+)/,F+"box-$1$2"+Ue+"flex-$1$2")+e;case 5443:return F+e+Ue+"flex-item-"+B(e,/flex-|-self/,"")+e;case 4675:return F+e+Ue+"flex-line-pack"+B(e,/align-content|flex-|-self/,"")+e;case 5548:return F+e+Ue+B(e,"shrink","negative")+e;case 5292:return F+e+Ue+B(e,"basis","preferred-size")+e;case 6060:return F+"box-"+B(e,"-grow","")+F+e+Ue+B(e,"grow","positive")+e;case 4554:return F+B(e,/([^-])(transform)/g,"$1"+F+"$2")+e;case 6187:return B(B(B(e,/(zoom-|grab)/,F+"$1"),/(image-set)/,F+"$1"),e,"")+e;case 5495:case 3959:return B(e,/(image-set\([^]*)/,F+"$1$`$1");case 4968:return B(B(e,/(.+:)(flex-)?(.*)/,F+"box-pack:$3"+Ue+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+F+e+e;case 4095:case 3583:case 4068:case 2532:return B(e,/(.+)-inline(.+)/,F+"$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(Tt(e)-1-t>6)switch(Ce(e,t+1)){case 109:if(Ce(e,t+4)!==45)break;case 102:return B(e,/(.+:)(.+)-([^]+)/,"$1"+F+"$2-$3$1"+_s+(Ce(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Xd(e,"stretch")?IS(B(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ce(e,t+1)!==115)break;case 6444:switch(Ce(e,Tt(e)-3-(~Xd(e,"!important")&&10))){case 107:return B(e,":",":"+F)+e;case 101:return B(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+F+(Ce(e,14)===45?"inline-":"")+"box$3$1"+F+"$2$3$1"+Ue+"$2box$3")+e}break;case 5936:switch(Ce(e,t+11)){case 114:return F+e+Ue+B(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return F+e+Ue+B(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return F+e+Ue+B(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return F+e+Ue+e+e}return e}function t3(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 bs(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return fr={name:i.name,styles:i.styles,next:fr},i.name;var o=r;if(o.styles!==void 0){var a=o.next;if(a!==void 0)for(;a!==void 0;)fr={name:a.name,styles:a.styles,next:fr},a=a.next;var s=o.styles+";";return s}return o3(e,t,r)}}var l=r;if(t==null)return l;var c=t[l];return c!==void 0?c:l}function o3(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=bs(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]+"}":eS(s)&&(n+=Md(o)+":"+tS(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++)eS(a[l])&&(n+=Md(o)+":"+tS(o,a[l])+";");else{var c=bs(e,t,a);switch(o){case"animation":case"animationName":{n+=Md(o)+":"+c+";";break}default:n+=o+"{"+c+"}"}}}return n}function Fd(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";fr=void 0;var o=e[0];if(o==null||o.raw===void 0)n=!1,i+=bs(r,t,o);else{var a=o;i+=a[0]}for(var s=1;s<e.length;s++)if(i+=bs(r,t,e[s]),n){var l=o;i+=l[s]}rS.lastIndex=0;for(var c="",d;(d=rS.exec(i))!==null;)c+="-"+d[1];var u=t3(i)+c;return{name:u,styles:i,next:fr}}function TS(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}function nS(e,t){if(e.inserted[t.name]===void 0)return e.insert("",t,e.sheet,!0)}function iS(e,t,r){var n=[],i=TS(e,n,r);return n.length<2?r:i+t(n)}function CS(e,t){ye.__h&&ye.__h(Ve,e,ef||t),ef=0;var r=Ve.__H||(Ve.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function d3(e,t){var r=CS(ws++,3);!ye.__s&&OS(r.__H,t)&&(r.__=e,r.u=t,Ve.__H.__h.push(r))}function f3(e){return ef=5,df(function(){return{current:e}},[])}function df(e,t){var r=CS(ws++,7);return OS(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function p3(){for(var e;e=RS.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(gs),e.__H.__h.forEach(tf),e.__H.__h=[]}catch(t){e.__H.__h=[],ye.__e(t,e.__v)}}function h3(e){var t,r=function(){clearTimeout(n),fS&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,100);fS&&(t=requestAnimationFrame(r))}function gs(e){var t=Ve,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),Ve=t}function tf(e){var t=Ve;e.__c=e.__(),Ve=t}function OS(e,t){return!e||e.length!==t.length||t.some(function(r,n){return r!==e[n]})}function Ts(){if(pr>1)pr--;else{for(var e,t=!1;ji!==void 0;){var r=ji;for(ji=void 0,rf++;r!==void 0;){var n=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&NS(r))try{r.c()}catch(i){t||(e=i,t=!0)}r=n}}if(rf=0,pr--,t)throw e}}function $e(e){if(pr>0)return e();pr++;try{return e()}finally{Ts()}}function PS(e){if(z!==void 0){var t=e.n;if(t===void 0||t.t!==z)return t={i:0,S:e,p:z.s,n:void 0,t:z,e:void 0,x:void 0,r:t},z.s!==void 0&&(z.s.n=t),z.s=t,e.n=t,32&z.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=z.s,t.n=void 0,z.s.n=t,z.s=t),t}}function Oe(e){this.v=e,this.i=0,this.n=void 0,this.t=void 0}function W(e){return new Oe(e)}function NS(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 DS(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 qS(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 _n(e){Oe.call(this,void 0),this.x=e,this.s=void 0,this.g=Es-1,this.f=4}function Mi(e){return new _n(e)}function LS(e){var t=e.u;if(e.u=void 0,typeof t=="function"){pr++;var r=z;z=void 0;try{t()}catch(n){throw e.f&=-2,e.f|=8,ff(e),n}finally{z=r,Ts()}}}function ff(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,LS(e)}function v3(e){if(z!==this)throw new Error("Out-of-order effect");qS(this),z=e,this.f&=-2,8&this.f&&ff(this),Ts()}function Hi(e){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32}function bn(e){var t=new Hi(e);try{t.c()}catch(r){throw t.d(),r}return t.d.bind(t)}function wn(e,t){C[e]=t.bind(null,C[e]||function(){})}function xs(e){$d&&$d(),$d=e&&e.S()}function MS(e){var t=this,r=e.data,n=FS(r);n.value=r;var i=df(function(){for(var s=t,l=t.__v;l=l.__;)if(l.__c){l.__c.__$f|=4;break}var c=Mi(function(){var f=n.value.value;return f===0?0:f===!0?"":f||""}),d=Mi(function(){return!Array.isArray(c.value)&&!xl(c.value)}),u=bn(function(){if(this.N=BS,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 g3(e,t,r,n){var i=t in e&&e.ownerSVGElement===void 0,o=W(r);return{o:function(a,s){o.value=a,n=s},d:bn(function(){this.N=BS;var a=o.value.value;n[t]!==a&&(n[t]=a,i?e[t]=a:a?e.setAttribute(t,a):e.removeAttribute(t))})}}function FS(e){return df(function(){return W(e)},[])}function b3(){$e(function(){for(var e;e=US.shift();)pf.call(e)})}function w3(){US.push(this)===1&&(C.requestAnimationFrame||y3)(b3)}function E3(){$e(function(){for(var e;e=jS.shift();)pf.call(e)})}function BS(){jS.push(this)===1&&(C.requestAnimationFrame||_3)(E3)}function x3(e){var t=f3(e);t.current=e,d3(function(){return bn(function(){return this.N=w3,t.current()})},[])}function A3(e,t){let r=ri(e);Gr(()=>{r.current=e},[e]),ko(()=>{if(t===null)return;let n=setInterval(()=>{r.current()},t);return()=>{clearInterval(n)}},[t])}function fe(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:--S3,__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 C.vnode&&C.vnode(c),c}function zt(e,t,r){return(t=U3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function U3(e){var t=j3(e,"string");return typeof t=="symbol"?t:t+""}function j3(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 Gt(e,t,r){return(t=$3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $3(e){var t=J3(e,"string");return typeof t=="symbol"?t:t+""}function J3(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dr(e,t,r){return(t=H3(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function H3(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)}var VA,L5,U5,j5,Jd,Hd,pS,J5,H5,zA,V5,z5,GA,G5,K5,W5,hS,Y5,rB,nB,KA,iB,vS,gS,yS,WA,oB,aB,Vd,ne,uB,dB,Li,Fi,fB,Gd,pB,Ud,vB,Kd,YA,Wd,Yd,Qd,kB,Ue,_s,F,bS,lf,cf,TB,wS,RB,CB,Ss,OB,Is,vn,xS,ze,_e,gn,GB,KB,WB,ZA,YB,QB,XB,ZB,e3,r3,n3,i3,kS,eS,Md,tS,rS,fr,a3,s3,l3,c3,u3,yn,ws,Ve,Bd,oS,ef,RS,ye,aS,sS,lS,cS,uS,dS,fS,m3,z,ji,pr,rf,Es,pf,$d,US,jS,y3,_3,je,S3,I3,Kt,nf,of,ys,k3,T3,R3,C3,O3,P3,N3,D3,q3,L3,af,hn,pn,M3,F3,B3,sf,As,nW,$S=I(()=>{"use strict";Ur();Co();VA=Object.getOwnPropertySymbols,L5=Object.prototype.hasOwnProperty,U5=Object.prototype.propertyIsEnumerable,j5=(e,t)=>{var r={};for(var n in e)L5.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&VA)for(var n of VA(e))t.indexOf(n)<0&&U5.call(e,n)&&(r[n]=e[n]);return r};Jd=class{constructor(t){st(this,"context",void 0),st(this,"continueCallback",void 0),st(this,"isBeforeAdCalled",!1),st(this,"isBeforeRewardCalled",!1),st(this,"isAdDismissedCalled",!1),st(this,"isAdViewedCalled",!1),st(this,"isAfterAdCalled",!1),st(this,"currentProvider",void 0),st(this,"currentClientParams",void 0),st(this,"adsHasResponse",!1),st(this,"videoChecker",window.document.createElement("video")),st(this,"wrapShowAdFn",r=>()=>{this.adsHasResponse=!0;let n=!1;this.videoChecker.play().catch(()=>{n=!1}),n=!this.videoChecker.paused,this.videoChecker.pause(),this.context.track("CallShowAdFn",Object.assign({},{userEvent:n},this.paramsToTrack)),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()=>{this.adsHasResponse=!0,this.context.track("CallBeforeAd",this.paramsToTrack),this.isBeforeAdCalled||(this.isBeforeAdCalled=!0,t==null||t())}}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;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.continueCallback)==null||a.call(this,[!1,r]);break}default:{(s=this.continueCallback)==null||s.call(this,[!0,r]);break}}}}callAdBreakAndContinue(t,r,n){return x(this,null,function*(){return this.currentProvider=t,this.currentClientParams=r,this.adsHasResponse=!1,new Promise(i=>{this.continueCallback=i;let o;switch(r.type){case"preroll":{o={type:r.type,adBreakDone:this.wrapAdBreakDone(r.adBreakDone)};break}case"reward":{o={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:{o={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 a,s,l,c;this.adsHasResponse||(this.context.track("CallAdBreakTimeout",{type:r.type,provider:(s=(a=this.currentProvider)==null?void 0:a.name)!=null?s:null}),(c=this.continueCallback)==null||c.call(this,[!0,{breakType:r.type,breakName:r.type==="preroll"?"":(l=r.name)!=null?l:"",breakFormat:r.type==="reward"?"reward":"interstitial",breakStatus:"timeout"}]))},5e3),this.context.track("CallAdBreak",this.paramsToTrack),t.adBreak(o,n),window.JoliTesterBridge&&console.log("joli-fullscreen-ad-show")})})}};Hd=class{constructor(t){us(this,"context",void 0),us(this,"adBreakIsShowing",!1),us(this,"reportPageJumpOut",()=>{this.context.track("AdBreakJumpOut",{context:"AdsActionDetection"})}),us(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()})}},pS=Object.defineProperty,J5=Object.defineProperties,H5=Object.getOwnPropertyDescriptors,zA=Object.getOwnPropertySymbols,V5=Object.prototype.hasOwnProperty,z5=Object.prototype.propertyIsEnumerable,GA=(e,t,r)=>t in e?pS(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)&&GA(e,r,t[r]);if(zA)for(var r of zA(t))z5.call(t,r)&&GA(e,r,t[r]);return e},K5=(e,t)=>J5(e,H5(t)),W5=(e,t)=>{for(var r in t)pS(e,r,{get:t[r],enumerable:!0})},hS=(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},Y5=(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}rB=(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))(rB||{});nB={log:qi("log"),warn:qi("warn"),info:qi("info"),error:qi("error"),debug:qi("debug")};Object.assign(globalThis,{logger:nB});KA=Symbol.for("Jolibox.canIUseMap"),iB={};globalThis[KA]||(globalThis[KA]=iB);vS=(e=>(e[e.System=1e3]="System",e[e.ErrorTrace=1001]="ErrorTrace",e[e.UserDefined=1002]="UserDefined",e))(vS||{}),gS=(e=>(e.MiniGame="mini-game",e.MiniDrama="mini-drama",e.App="app",e.WebSDK="web-sdk",e.AppSDK="app-sdk",e))(gS||{}),yS=(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))(yS||{}),WA=["name","params"],oB=["name","type","location","target","extra","timestamp","userId"],aB=["platform","os","appVersion","appId","model","brand","uuid","jsSdkVersion","extra"];cB();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");Vd=class zd{constructor(t){this.element=t,this.next=zd.Undefined,this.prev=zd.Undefined}};Vd.Undefined=new Vd(void 0);ne=Vd,uB=class{constructor(){this._first=ne.Undefined,this._last=ne.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ne.Undefined}clear(){let e=this._first;for(;e!==ne.Undefined;){let t=e.next;e.prev=ne.Undefined,e.next=ne.Undefined,e=t}this._first=ne.Undefined,this._last=ne.Undefined,this._size=0}unshift(e){return this._insert(e,!1)}push(e){return this._insert(e,!0)}_insert(e,t){let r=new ne(e);if(this._first===ne.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!==ne.Undefined){let e=this._first.element;return this._remove(this._first),e}}pop(){if(this._last!==ne.Undefined){let e=this._last.element;return this._remove(this._last),e}}_remove(e){if(e.prev!==ne.Undefined&&e.next!==ne.Undefined){let t=e.prev;t.next=e.next,e.next.prev=t}else e.prev===ne.Undefined&&e.next===ne.Undefined?(this._first=ne.Undefined,this._last=ne.Undefined):e.next===ne.Undefined?(this._last=this._last.prev,this._last.next=ne.Undefined):e.prev===ne.Undefined&&(this._first=this._first.next,this._first.prev=ne.Undefined);this._size-=1}*[Symbol.iterator](){let e=this._first;for(;e!==ne.Undefined;)yield e.element,e=e.next}},dB=0,Li=class{constructor(e){this.value=e,this.id=dB++}},Fi=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 Li&&(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 Li(e);return this._listeners?this._listeners instanceof Li?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 Li)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 Li?this._deliver(this._listeners,e):this._listeners.forEach(t=>this._deliver(t,e)))}hasListeners(){return this._size>0}},fB=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 Fi,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 uB,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)}},Gd={};W5(Gd,{None:()=>pB,filter:()=>mB,once:()=>_S,toPromise:()=>hB});pB=()=>(console.log("[Jolibox SDK] None Event"),()=>{console.log("[Jolibox SDK] None Event dispose")});Ud=Symbol.for("Jolibox.hostEmitter"),vB=()=>{let e=new fB;return globalThis[Ud]||(globalThis[Ud]={on:e.on.bind(e),off:e.off.bind(e),emit:e.emit.bind(e),once:e.once.bind(e)}),globalThis[Ud]};vB();Kd=class{constructor(){this._commands=new Map,this._onDidRegisterCommand=new Fi,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 gB(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}};Kd=hS([mS],Kd);YA=class{constructor(){this._onWillExecuteCommand=new Fi,this.onWillExecuteCommand=this._onWillExecuteCommand.event,this._onDidExecuteCommand=new Fi,this.onDidExecuteCommand=this._onDidExecuteCommand.event,this.registry=new Kd,this._starActivation=null}_activateStar(){return this._starActivation||(this._starActivation=Q5(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 Y5(this,null,function*(){return this.registry.getCommand(e)?this._tryExecuteCommand(e,r):(yield Promise.all([Promise.race([this._activateStar(),Gd.toPromise(Gd.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{}}};YA=hS([mS],YA);Wd=class{constructor(t){let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"GAME";jd(this,"context",void 0),jd(this,"placement","GAME"),jd(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:yS.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:vS.System,location:this.getLocation(),target:null,extra:r,timestamp:Date.now(),userId:(n=this.contextInfo.userId)!=null?n:null}],device:this.getDevice(),project:gS.WebSDK};return lB(i)}};Yd=class{constructor(t){ds(this,"configs",null),ds(this,"firstRun",!0),ds(this,"context",void 0),ds(this,"contextInfo",void 0),this.context=t,this.contextInfo=this.context.getContextInfo(),this.init()}init(){return x(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}};Qd=class{constructor(t,r){Vt(this,"name","ADSENSE"),Vt(this,"context",void 0),Vt(this,"contextInfo",void 0),Vt(this,"configured",!1),Vt(this,"initParams",void 0),Vt(this,"push",function(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};window.adsbygoogle.push(n)}),Vt(this,"adConfig",n=>{let i=n,{onReady:o}=i,a=j5(i,["onReady"]);this.context.track("CallAdConfig",a),this.configured?console.warn("Ad config already set, skipping"):(this.configured=!0,this.push(n))}),Vt(this,"adBreak",n=>{if(!this.contextInfo.objectId){console.warn("Game ID is not set, skip calling adBreak");return}this.push(n)}),Vt(this,"adUnit",n=>x(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,_=document.createElement("ins");if(_.className="adsbygoogle",_.id="jolibox-ads",_.style.display="block",_.setAttribute("data-ad-client",this.initParams.clientId),_.setAttribute("data-ad-slot",m),g&&_.setAttribute("data-ad-format",g),u&&_.setAttribute("data-full-width-responsive",u),p&&_.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",_.style.position="relative",f.appendChild(_),_.appendChild(v)}else f.appendChild(_),new MutationObserver(v=>{v.forEach(b=>{if(b.type==="attributes"&&b.attributeName==="data-ad-status"){let E=_.getAttribute("data-ad-status");this.context.track("AdSenseUnitStatusChanged",{status:E!=null?E:"null"})}})}).observe(_,{attributes:!0,attributeFilter:["data-ad-status"]}),this.push({})})),this.context=t,this.contextInfo=this.context.getContextInfo(),this.initParams=r,window.adsbygoogle=window.adsbygoogle||[]}init(){return x(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),document.head.appendChild(i),this.context.track("LoadAdsenseCompleted",null)}})}};kB=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(IB(this));var n=this.tags[this.tags.length-1];if(this.isSpeedy){var i=SB(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-",_s="-moz-",F="-webkit-",bS="comm",lf="rule",cf="decl",TB="@import",wS="@keyframes",RB="@layer",CB=Math.abs,Ss=String.fromCharCode,OB=Object.assign;Is=1,vn=1,xS=0,ze=0,_e=0,gn="";GB=function(e,t,r){for(var n=0,i=0;n=i,i=Rt(),n===38&&i===12&&(t[r]=1),!$i(i);)Ze();return Ji(e,ze)},KB=function(e,t){var r=-1,n=44;do switch($i(n)){case 0:n===38&&Rt()===12&&(t[r]=1),e[r]+=GB(ze-1,t,r);break;case 2:e[r]+=ms(n);break;case 4:if(n===44){e[++r]=Rt()===58?"&\f":"",t[r]=e[r].length;break}default:e[r]+=Ss(n)}while(n=Ze());return e},WB=function(e,t){return SS(KB(AS(e),t))},ZA=new WeakMap,YB=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&&!ZA.get(r))&&!n){ZA.set(e,!0);for(var i=[],o=WB(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]}}},QB=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};XB=function(e,t,r,n){if(e.length>-1&&!e.return)switch(e.type){case cf:e.return=IS(e.value,e.length);break;case wS:return mn([Ui(e,{value:B(e.value,"@","@"+F)})],n);case lf:if(e.length)return DB(e.props,function(i){switch(NB(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return mn([Ui(e,{props:[B(i,/:(read-\w+)/,":"+_s+"$1")]})],n);case"::placeholder":return mn([Ui(e,{props:[B(i,/:(plac\w+)/,":"+F+"input-$1")]}),Ui(e,{props:[B(i,/:(plac\w+)/,":"+_s+"$1")]}),Ui(e,{props:[B(i,/:(plac\w+)/,Ue+"input-$1")]})],n)}return""})}},ZB=[XB],e3=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||ZB,i={},o,a=[];o=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var g=m.getAttribute("data-emotion").split(" "),_=1;_<g.length;_++)i[g[_]]=!0;a.push(m)});var s,l=[YB,QB];{var c,d=[JB,VB(function(m){c.insert(m)})],u=HB(l.concat(n,d)),p=function(m){return mn(BB(m),u)};s=function(m,g,_,v){c=_,p(m?m+"{"+g.styles+"}":g.styles),v&&(f.inserted[g.name]=!0)}}var f={key:t,sheet:new kB({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};r3={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},n3=/[A-Z]|^ms/g,i3=/_EMO_([^_]+?)_([^]*?)_EMO_/g,kS=function(e){return e.charCodeAt(1)===45},eS=function(e){return e!=null&&typeof e!="boolean"},Md=zB(function(e){return kS(e)?e:e.replace(n3,"-$&").toLowerCase()}),tS=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(i3,function(r,n,i){return fr={name:n,styles:i,next:fr},n})}return r3[e]!==1&&!kS(e)&&typeof t=="number"&&t!==0?t+"px":t};rS=/label:\s*([^\s;{]+)\s*(;|$)/g;a3=function(e,t,r){var n=e.key+"-"+t.name;e.registered[n]===void 0&&(e.registered[n]=t.styles)},s3=function(e,t,r){a3(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)}};l3=function(e){var t=e3(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=Fd(s,t.registered,void 0);return s3(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=Fd(s,t.registered),d="animation-"+c.name;return nS(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=Fd(s,t.registered);nS(t,c)},o=function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];return iS(t.registered,r,c3(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:TS.bind(null,t.registered),merge:iS.bind(null,t.registered,r)}},c3=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},u3=l3({key:"css"}),yn=u3.css,ef=0,RS=[],ye=C,aS=ye.__b,sS=ye.__r,lS=ye.diffed,cS=ye.__c,uS=ye.unmount,dS=ye.__;ye.__b=function(e){Ve=null,aS&&aS(e)},ye.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),dS&&dS(e,t)},ye.__r=function(e){sS&&sS(e),ws=0;var t=(Ve=e.__c).__H;t&&(Bd===Ve?(t.__h=[],Ve.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.u=r.__N=void 0})):(t.__h.forEach(gs),t.__h.forEach(tf),t.__h=[],ws=0)),Bd=Ve},ye.diffed=function(e){lS&&lS(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(RS.push(t)!==1&&oS===ye.requestAnimationFrame||((oS=ye.requestAnimationFrame)||h3)(p3)),t.__H.__.forEach(function(r){r.u&&(r.__H=r.u),r.u=void 0})),Bd=Ve=null},ye.__c=function(e,t){t.some(function(r){try{r.__h.forEach(gs),r.__h=r.__h.filter(function(n){return!n.__||tf(n)})}catch(n){t.some(function(i){i.__h&&(i.__h=[])}),t=[],ye.__e(n,r.__v)}}),cS&&cS(e,t)},ye.unmount=function(e){uS&&uS(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(n){try{gs(n)}catch(i){t=i}}),r.__H=void 0,t&&ye.__e(t,r.__v))};fS=typeof requestAnimationFrame=="function";m3=Symbol.for("preact-signals");z=void 0,ji=void 0,pr=0,rf=0,Es=0;Oe.prototype.brand=m3;Oe.prototype.h=function(){return!0};Oe.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)};Oe.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)}};Oe.prototype.subscribe=function(e){var t=this;return bn(function(){var r=t.value,n=z;z=void 0;try{e(r)}finally{z=n}})};Oe.prototype.valueOf=function(){return this.value};Oe.prototype.toString=function(){return this.value+""};Oe.prototype.toJSON=function(){return this.value};Oe.prototype.peek=function(){var e=z;z=void 0;try{return this.value}finally{z=e}};Object.defineProperty(Oe.prototype,"value",{get:function(){var e=PS(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(rf>100)throw new Error("Cycle detected");this.v=e,this.i++,Es++,pr++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{Ts()}}}});(_n.prototype=new Oe).h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===Es))return!0;if(this.g=Es,this.f|=1,this.i>0&&!NS(this))return this.f&=-2,!0;var e=z;try{DS(this),z=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 z=e,qS(this),this.f&=-2,!0};_n.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)}Oe.prototype.S.call(this,e)};_n.prototype.U=function(e){if(this.t!==void 0&&(Oe.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)}};_n.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(_n.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=PS(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});Hi.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()}};Hi.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,LS(this),DS(this),pr++;var e=z;return z=this,v3.bind(this,e)};Hi.prototype.N=function(){2&this.f||(this.f|=2,this.o=ji,ji=this)};Hi.prototype.d=function(){this.f|=8,1&this.f||ff(this)};US=[],jS=[];bn(function(){pf=this.N})();MS.displayName="_st";Object.defineProperties(Oe.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:MS},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});wn("__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 Oe&&(r||(t.__np=r={}),r[i]=o,n[i]=o.peek())}}e(t)});wn("__r",function(e,t){xs();var r,n=t.__c;n&&(n.__$f&=-2,(r=n.__$u)===void 0&&(n.__$u=r=function(i){var o;return bn(function(){o=this}),o.c=function(){n.__$f|=1,n.setState({})},o}())),xs(r),e(t)});wn("__e",function(e,t,r,n){xs(),e(t,r,n)});wn("diffed",function(e,t){xs();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=g3(r,l,d,i),o[l]=c):c.o(d,i)}}}e(t)});wn("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)});wn("__h",function(e,t,r,n){(n<3||n===9)&&(t.__$f|=2),e(t,r,n)});Ke.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};y3=typeof requestAnimationFrame=="undefined"?setTimeout:function(e){var t=function(){clearTimeout(r),cancelAnimationFrame(n),e()},r=setTimeout(t,100),n=requestAnimationFrame(t)},_3=function(e){queueMicrotask(function(){queueMicrotask(e)})};je=yn`
447
444
  inset: 0;
448
445
  clear: none;
449
446
  float: none;
@@ -461,8 +458,8 @@ or `);this.errors.push(i)}return n}},Ri=class extends ae{constructor(...t){super
461
458
  text-decoration: none;
462
459
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
463
460
  'Helvetica Neue', sans-serif;
464
- `;QL=0;XL=Mn`
465
- ${Ne}
461
+ `;S3=0;I3=yn`
462
+ ${je}
466
463
  position: fixed;
467
464
  top: 0;
468
465
  left: 0;
@@ -475,7 +472,7 @@ or `);this.errors.push(i)}return n}},Ri=class extends ae{constructor(...t){super
475
472
  height: 100vh;
476
473
 
477
474
  .card-wrapper {
478
- ${Ne}
475
+ ${je}
479
476
  position: relative;
480
477
  display: flex;
481
478
  flex-direction: column;
@@ -489,7 +486,7 @@ or `);this.errors.push(i)}return n}},Ri=class extends ae{constructor(...t){super
489
486
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
490
487
 
491
488
  .body {
492
- ${Ne}
489
+ ${je}
493
490
  display: flex;
494
491
  flex-direction: column;
495
492
  width: 100%;
@@ -498,7 +495,7 @@ or `);this.errors.push(i)}return n}},Ri=class extends ae{constructor(...t){super
498
495
  box-sizing: border-box;
499
496
  justify-content: center;
500
497
  .title {
501
- ${Ne}
498
+ ${je}
502
499
  text-align: center;
503
500
  font-size: 16px;
504
501
  font-weight: bold;
@@ -506,7 +503,7 @@ or `);this.errors.push(i)}return n}},Ri=class extends ae{constructor(...t){super
506
503
  }
507
504
 
508
505
  .content {
509
- ${Ne}
506
+ ${je}
510
507
  font-size: 14px;
511
508
  color: #888;
512
509
  margin-bottom: 16px;
@@ -514,13 +511,13 @@ or `);this.errors.push(i)}return n}},Ri=class extends ae{constructor(...t){super
514
511
  }
515
512
 
516
513
  .footer {
517
- ${Ne}
514
+ ${je}
518
515
  display: flex;
519
516
  align-items: center;
520
517
  width: 100%;
521
518
  height: 40px;
522
519
  button {
523
- ${Ne}
520
+ ${je}
524
521
  border: none;
525
522
  outline: none;
526
523
  height: 100%;
@@ -536,8 +533,8 @@ or `);this.errors.push(i)}return n}},Ri=class extends ae{constructor(...t){super
536
533
  }
537
534
  }
538
535
  }
539
- `,It=ye(null),tu=ye(""),ru=ye(""),Gi=ye(!1),ZL=()=>{var e;(e=It.value)==null||e.call(It,!1)},eU=()=>{var e;(e=It.value)==null||e.call(It,!0)},tU=e=>x(void 0,null,function*(){let{title:t,content:r}=e;return It.value&&(It.value(!1),Ye(()=>{It.value=null,Gi.value=!1})),Ye(()=>{tu.value=t||"",ru.value=r||"",Gi.value=!0}),new Promise(n=>{It.value=o=>{Ye(()=>{It.value=null,Gi.value=!1,tu.value="",ru.value=""}),n(o)}})}),rU=()=>Gi.value?he("div",{className:XL,children:he("div",{className:"card-wrapper",children:[he("div",{className:"body",children:[he("div",{className:"title",children:tu.value}),he("div",{className:"content",children:ru.value})]}),he("div",{className:"footer",children:[he("button",{onClick:ZL,className:"cancel-btn",children:"Cancel"}),he("button",{onClick:eU,className:"confirm-btm",children:"Confirm"})]})]})}):null,nU=Mn`
540
- ${Ne}
536
+ `,Kt=W(null),nf=W(""),of=W(""),ys=W(!1),k3=()=>{var e;(e=Kt.value)==null||e.call(Kt,!1)},T3=()=>{var e;(e=Kt.value)==null||e.call(Kt,!0)},R3=e=>x(void 0,null,function*(){let{title:t,content:r}=e;return Kt.value&&(Kt.value(!1),$e(()=>{Kt.value=null,ys.value=!1})),$e(()=>{nf.value=t||"",of.value=r||"",ys.value=!0}),new Promise(n=>{Kt.value=i=>{$e(()=>{Kt.value=null,ys.value=!1,nf.value="",of.value=""}),n(i)}})}),C3=()=>ys.value?fe("div",{className:I3,children:fe("div",{className:"card-wrapper",children:[fe("div",{className:"body",children:[fe("div",{className:"title",children:nf.value}),fe("div",{className:"content",children:of.value})]}),fe("div",{className:"footer",children:[fe("button",{onClick:k3,className:"cancel-btn",children:"Cancel"}),fe("button",{onClick:T3,className:"confirm-btm",children:"Confirm"})]})]})}):null,O3=yn`
537
+ ${je}
541
538
  position: relative;
542
539
  display: flex;
543
540
  align-items: center;
@@ -555,7 +552,7 @@ or `);this.errors.push(i)}return n}},Ri=class extends ae{constructor(...t){super
555
552
  }
556
553
 
557
554
  button {
558
- ${Ne}
555
+ ${je}
559
556
  padding: 0 20px;
560
557
  height: 30px;
561
558
  line-height: 30px;
@@ -569,8 +566,27 @@ or `);this.errors.push(i)}return n}},Ri=class extends ae{constructor(...t){super
569
566
  cursor: not-allowed;
570
567
  }
571
568
  }
572
- `,oU=()=>{let e=ye(!1),t=ye(null);return{timerPaused:e,startTimestamp:t,startTimer:()=>{Ye(()=>{t.value=Date.now(),e.value=!1})}}},iU=e=>{let{countdown:t=0,mode:r,onClose:n,state:o}=e,{startTimestamp:i,timerPaused:a}=o,s=Cw(t);WL(()=>{i.value&&(s.value=t)}),YL(()=>{s.value>0?s.value-=1:Ye(()=>{a.value=!0,s.value=0})},a.value?null:1e3);let l=Nn(()=>{if(r==="interstitial"||r==="rewarded_insterstitial"||!i.value)return!1;let p=Date.now()-i.value;return s.value>0&&t-s.value>=5&&p>=5e3}),c=Nn(()=>{if(r==="interstitial")return!0;if(!i.value)return!1;let p=Date.now()-i.value;return s.value<=0&&p>=(t-1)*1e3&&t>5}),d=Nn(()=>r==="interstitial"?!1:!l.value&&!c.value),u=()=>x(void 0,null,function*(){if(a.value=!0,!(yield tU({title:"Are you sure?",content:"You will lose your reward if you dismiss this Ad."}))){a.value=!1;return}n("dismiss"),Ye(()=>{a.value=!0,s.value=0,i.value=null})}),h=()=>{n("viewed"),Ye(()=>{a.value=!0,s.value=0,i.value=null})};return he("div",{className:nU,children:[s.value>0&&r!=="interstitial"&&he("div",{className:"timer",children:[s.value,"s"]}),he("button",{onClick:l.value?u:c.value?h: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"})})})]})},aU=()=>{let e=ye(),t=ye(),r=ye(),n=ye(),o=ye(),i=ye(!1),a=ye(15),s=ye(""),l=ye("reward");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:o,visible:i,countdown:a,src:s,mode:l}},sU=Mn`
573
- ${Ne}
569
+ `,P3=()=>{let e=W(!1),t=W(null);return{timerPaused:e,startTimestamp:t,startTimer:()=>{$e(()=>{t.value=Date.now(),e.value=!1})}}},N3=e=>{let{countdown:t=0,mode:r,onClose:n,state:i}=e,{startTimestamp:o,timerPaused:a}=i,s=FS(t);x3(()=>{o.value&&(s.value=t)}),A3(()=>{s.value>0?s.value-=1:$e(()=>{a.value=!0,s.value=0})},a.value?null:1e3);let l=Mi(()=>{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=Mi(()=>{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=Mi(()=>r==="interstitial"?!1:!l.value&&!c.value),u=()=>x(void 0,null,function*(){if(a.value=!0,!(yield R3({title:"Are you sure?",content:"You will lose your reward if you dismiss this Ad."}))){a.value=!1;return}n("dismiss"),$e(()=>{a.value=!0,s.value=0,o.value=null})}),p=()=>{n("viewed"),$e(()=>{a.value=!0,s.value=0,o.value=null})};return fe("div",{className:O3,children:[s.value>0&&r!=="interstitial"&&fe("div",{className:"timer",children:[s.value,"s"]}),fe("button",{onClick:l.value?u:c.value?p:void 0,disabled:d.value,children:fe("svg",{width:"12",height:"12",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:fe("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"})})})]})},D3=()=>{let e=W(),t=W(),r=W(),n=W(),i=W(),o=W(!1),a=W(15),s=W(""),l=W("reward");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,visible:o,countdown:a,src:s,mode:l}},q3=yn`
570
+ ${je}
571
+ position: fixed;
572
+ z-index: 2147483647;
573
+ background: white;
574
+ width: 100vw;
575
+ height: 100vh;
576
+ display: flex;
577
+ flex-direction: column;
578
+
579
+ iframe {
580
+ ${je}
581
+ flex: 1;
582
+ position: relative;
583
+ display: block;
584
+ background: white;
585
+ width: 100%;
586
+ height: 100%;
587
+ }
588
+ `,L3=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=ni(()=>P3(),[]),p=m=>{var g,_,v,b;s.value=!1,m==="dismiss"?(g=n.value)==null||g.call(n):m==="viewed"&&((_=i.value)==null||_.call(i)),(v=r.value)==null||v.call(r),(b=o.value)==null||b.call(o)},f=()=>{var m;(d.value==="reward"||d.value==="rewarded_insterstitial")&&setTimeout(()=>{u.startTimer()},100),(m=a.value)==null||m.call(a)};return s.value?fe("div",{className:q3,children:[fe(N3,{mode:d.value,onClose:p,countdown:l.value,state:u}),s.value&&fe("iframe",{src:c.value,onLoad:f,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"}),fe(C3,{})]}):null};af=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",D3()),this.context=t,this.initParams=r}init(){return x(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg"),xc(fe(L3,{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 x(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"})};$e(()=>{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)};$e(()=>{this.state.afterAd.value=u,this.state.adDismissed.value=f,this.state.adViewed.value=m,this.state.adBreakDone.value=g});let _=()=>{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,$e(()=>{var b;this.state.countdown.value=(b=r.params.countdown)!=null?b:15,this.state.src.value=r.params.url,this.state.mode.value="reward",this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,_);break}}})}},hn={};window.addEventListener("message",e=>{e.origin!=="https://ads.appsrockets.com"&&e.origin!=="https://stg-ads.appsrockets.com"||hn[e.data.type]&&hn[e.data.type].forEach(t=>{t(e.data.data)})});pn=(e,t)=>{ko(()=>(hn[e]||(hn[e]=new Set),hn[e].add(t),()=>{hn[e].delete(t)}),[e,t])},M3=()=>{let e=W(),t=W(),r=W(),n=W(),i=W(),o=W(),a=W(),s=W(!1),l=W("");return{afterAd:e,adDismissed:t,adViewed:r,adBreakDone:n,adLoaded:i,adLinkClicked:o,adError:a,visible:s,src:l}},F3=yn`
589
+ ${je}
574
590
  position: fixed;
575
591
  z-index: 2147483647;
576
592
  background: white;
@@ -580,7 +596,7 @@ or `);this.errors.push(i)}return n}},Ri=class extends ae{constructor(...t){super
580
596
  flex-direction: column;
581
597
 
582
598
  iframe {
583
- ${Ne}
599
+ ${je}
584
600
  flex: 1;
585
601
  position: relative;
586
602
  display: block;
@@ -588,8 +604,8 @@ or `);this.errors.push(i)}return n}},Ri=class extends ae{constructor(...t){super
588
604
  width: 100%;
589
605
  height: 100%;
590
606
  }
591
- `,lU=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:o,adBreakDone:i,adLoaded:a,visible:s,countdown:l,src:c,mode:d}=t,u=dn(()=>oU(),[]),h=m=>{var g,_,v,y;s.value=!1,m==="dismiss"?(g=n.value)==null||g.call(n):m==="viewed"&&((_=o.value)==null||_.call(o)),(v=r.value)==null||v.call(r),(y=i.value)==null||y.call(i)},p=()=>{var m;(d.value==="reward"||d.value==="rewarded_insterstitial")&&setTimeout(()=>{u.startTimer()},100),(m=a.value)==null||m.call(a)};return s.value?he("div",{className:sU,children:[he(iU,{mode:d.value,onClose:h,countdown:l.value,state:u}),s.value&&he("iframe",{src:c.value,onLoad:p,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(rU,{})]}):null};nu=class{constructor(t,r){St(this,"name","OKSPIN"),St(this,"initialized",!1),St(this,"initCompleter",null),St(this,"context",void 0),St(this,"initParams",void 0),St(this,"adsOverlay",null),St(this,"adsIsShowing",!1),St(this,"lastUnDisplayedAdBreak",null),St(this,"state",aU()),this.context=t,this.initParams=r}init(){return x(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg"),qm(he(lU,{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 x(this,null,function*(){var n,o,i,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){(o=t.adBreakDone)==null||o.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":{(i=t.adBreakDone)==null||i.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 p;this.adsIsShowing=!1,(p=t.afterAd)==null||p.call(t)},h=()=>{var p;this.adsIsShowing=!1,(p=t.adBreakDone)==null||p.call(t,{breakType:t.type,breakName:t.name,breakFormat:"interstitial",breakStatus:"viewed"})};Ye(()=>{this.adsIsShowing=!0,this.state.afterAd.value=u,this.state.adBreakDone.value=h,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)},h={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},p=()=>{var v;this.adsIsShowing=!1,h.breakStatus="dismissed",(v=t.adDismissed)==null||v.call(t)},m=()=>{var v;this.adsIsShowing=!1,h.breakStatus="viewed",(v=t.adViewed)==null||v.call(t)},g=()=>{var v;this.adsIsShowing=!1,(v=t.adBreakDone)==null||v.call(t,h)};Ye(()=>{this.state.afterAd.value=u,this.state.adDismissed.value=p,this.state.adViewed.value=m,this.state.adBreakDone.value=g});let _=()=>{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,Ye(()=>{var y;this.state.countdown.value=(y=r.params.countdown)!=null?y:15,this.state.src.value=r.params.url,this.state.mode.value="reward",this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,_);break}}})}};Xi=class{constructor(t){if(Ft(this,"context",void 0),Ft(this,"contextInfo",void 0),Ft(this,"providers",{}),Ft(this,"channelPolicy",void 0),Ft(this,"adsActionDetection",void 0),Ft(this,"adsTrackSerializer",void 0),Ft(this,"initialized",!1),Ft(this,"initializedTimeStamp",Date.now()),t)this.context=t,this.channelPolicy=new zc(this.context),this.adsActionDetection=new $c(this.context),this.adsTrackSerializer=new Kc(this.context),this.contextInfo=this.context.getContextInfo();else throw new Error("JoliboxAdsForGame requires a configuration object")}getRequestContextData(t){var r,n;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"}}getRequestBizParams(){return{objectType:this.contextInfo.objectType,objectId:this.contextInfo.objectId}}init(t){return x(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":{let o=new Wc(this.context,n.params);yield o.init(),this.providers.ADSENSE=o;break}case"OKSPIN":{let o=new nu(this.context,n.params);yield o.init(),this.providers.OKSPIN=o;break}}this.initialized=!0})}adConfig(t){this.providers.ADSENSE?this.providers.ADSENSE.adConfig(t):window.adsbygoogle.push(t)}adBreak(t){return x(this,null,function*(){var r,n,o,i,a,s,l,c,d;if(Date.now()-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.initialized||(yield this.init()),t.type!=="reward"&&!this.channelPolicy.shouldBypassCallingInterstitial()){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:"skipInterstitials",breakFormat:"interstitial",breakStatus:"viewed"});return}if(!this.context.checkNetwork()){(o=t.adBreakDone)==null||o.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:u,code:h}=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(h!=="SUCCESS"){(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:"noAdPreloaded"});return}else{let p=u;if(p.length===0){(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}let m=!0,g=null,_=new Bc(this.context);for((s=this.context.eventEmitter)==null||s.emit("isAdShowing",!0),this.adsActionDetection.adBreakIsShowing=!0;p.length>0;){let v=p.shift(),y=this.providers[v.provider];if(y){let[A,k]=yield _.callAdBreakAndContinue(y,t,v);m=A,g=k}else m=!0,g={breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"};if(!m)break}m&&g&&((l=t.adBreakDone)==null||l.call(t,g))}}catch(u){(c=t.adBreakDone)==null||c.call(t,{breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}finally{(d=this.context.eventEmitter)==null||d.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.")}},t4=Mn`
592
- ${Ne}
607
+ `,B3=e=>{let{state:t}=e,{afterAd:r,adDismissed:n,adViewed:i,adBreakDone:o,adLoaded:a,adLinkClicked:s,visible:l,src:c}=t,[d,u]=mc(!1),p=m=>{var g,_,v,b;u(!1),l.value=!1,m==="dismiss"?(g=n.value)==null||g.call(n):m==="viewed"&&((_=i.value)==null||_.call(i)),(v=r.value)==null||v.call(r),(b=o.value)==null||b.call(o)},f=()=>{var m;(m=a.value)==null||m.call(a)};return pn("appsrockets_ad_dismissed",()=>p("dismiss")),pn("appsrockets_ad_rewarded",()=>p("viewed")),pn("appsrockets_ad_completed",()=>p("viewed")),pn("appsrockets_ad_skipped",()=>p("viewed")),pn("appsrockets_ad_clicked",m=>{var g;return(g=s.value)==null?void 0:g.call(s,m)}),pn("appsrockets_ad_loaded",()=>u(!0)),l.value?fe("div",{className:F3,style:{display:d?"flex":"none"},children:l.value&&fe("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};sf=class{constructor(t,r){Gt(this,"name","APPSROCKETS"),Gt(this,"initialized",!1),Gt(this,"initCompleter",null),Gt(this,"context",void 0),Gt(this,"adsOverlay",null),Gt(this,"adsIsShowing",!1),Gt(this,"lastUnDisplayedAdBreak",null),Gt(this,"state",M3()),Gt(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 x(this,null,function*(){var t;this.adsOverlay=document.createElement("div"),this.adsOverlay.setAttribute("data-placement-info","afg-appsrockets"),xc(fe(B3,{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"})};$e(()=>{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 E;this.adsIsShowing=!1,(E=t.afterAd)==null||E.call(t)},f={breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"ignored"},m=()=>{var E;this.adsIsShowing=!1,f.breakStatus="dismissed",(E=t.adDismissed)==null||E.call(t)},g=()=>{var E;this.adsIsShowing=!1,f.breakStatus="viewed",(E=t.adViewed)==null||E.call(t)},_=()=>{var E;this.adsIsShowing=!1,(E=t.adBreakDone)==null||E.call(t,f)},v=()=>{this.adsIsShowing=!1,f.breakStatus="noAdPreloaded"};$e(()=>{this.state.afterAd.value=p,this.state.adDismissed.value=m,this.state.adViewed.value=g,this.state.adBreakDone.value=_,this.state.adLinkClicked.value=u,this.state.adError.value=v});let b=()=>{var E;if(this.lastUnDisplayedAdBreak=null,!this.adsOverlay){(E=t.adBreakDone)==null||E.call(t,{breakType:t.type,breakName:t.name,breakFormat:"reward",breakStatus:"notReady"});return}this.adsIsShowing=!0,$e(()=>{this.state.src.value=this.processUrl(r.params.url),this.state.visible.value=!0})};this.lastUnDisplayedAdBreak=t,(d=t.beforeReward)==null||d.call(t,b);break}}}};As=class{constructor(t){if(dr(this,"context",void 0),dr(this,"contextInfo",void 0),dr(this,"providers",{}),dr(this,"channelPolicy",void 0),dr(this,"adsActionDetection",void 0),dr(this,"adsTrackSerializer",void 0),dr(this,"initialized",!1),dr(this,"initializedTimeStamp",Date.now()),t)this.context=t,this.channelPolicy=new Yd(this.context),this.adsActionDetection=new Hd(this.context),this.adsTrackSerializer=new Wd(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 x(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":{let i=new Qd(this.context,n.params);yield i.init(),this.providers.ADSENSE=i;break}case"OKSPIN":{let i=new af(this.context,n.params);yield i.init(),this.providers.OKSPIN=i;break}case"APPSROCKETS":{let i=new sf(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 x(this,null,function*(){var r,n,i,o,a,s,l,c,d;if(Date.now()-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.initialized||(yield this.init()),t.type!=="reward"&&!this.channelPolicy.shouldBypassCallingInterstitial()){(n=t.adBreakDone)==null||n.call(t,{breakType:t.type,breakName:"skipInterstitials",breakFormat:"interstitial",breakStatus:"viewed"});return}if(!this.context.checkNetwork()){(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:"noAdPreloaded"});return}try{let{data:u,code:p}=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(p!=="SUCCESS"){(o=t.adBreakDone)==null||o.call(t,{breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"});return}else{let f=u==null?void 0:u.sort((v,b)=>v.seq-b.seq);if(f.length===0){(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}let m=!0,g=null,_=new Jd(this.context);for((s=this.context.eventEmitter)==null||s.emit("isAdShowing",!0),this.adsActionDetection.adBreakIsShowing=!0;f.length>0;){let v=f.shift(),b=this.providers[v.provider];if(b){let[E,k]=yield _.callAdBreakAndContinue(b,t,v);m=E,g=k}else m=!0,g={breakType:t.type,breakName:t.type==="preroll"?void 0:t.name,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"notReady"};if(!m)break}m&&g&&((l=t.adBreakDone)==null||l.call(t,g))}}catch(u){(c=t.adBreakDone)==null||c.call(t,{breakType:t.type,breakFormat:t.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})}finally{(d=this.context.eventEmitter)==null||d.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.")}},nW=yn`
608
+ ${je}
593
609
  position: fixed;
594
610
  left: 0;
595
611
  top: 0;
@@ -604,7 +620,7 @@ or `);this.errors.push(i)}return n}},Ri=class extends ae{constructor(...t){super
604
620
  }
605
621
 
606
622
  .ads-wrapper {
607
- ${Ne}
623
+ ${je}
608
624
  position: relative;
609
625
  width: 100%;
610
626
  height: 100%;
@@ -627,7 +643,7 @@ or `);this.errors.push(i)}return n}},Ri=class extends ae{constructor(...t){super
627
643
  }
628
644
 
629
645
  .retry-button {
630
- ${Ne}
646
+ ${je}
631
647
  position: absolute;
632
648
  width: 100%;
633
649
  height: 100%;
@@ -637,4 +653,4 @@ or `);this.errors.push(i)}return n}},Ri=class extends ae{constructor(...t){super
637
653
  cursor: pointer;
638
654
  }
639
655
  }
640
- `});function Dw(){let e=new Map,t,r;return{registerRewardHandler(o,i){e.set(o,i)},handleReward(o,...i){return x(this,null,function*(){return yield o.reduce((s,l)=>x(this,null,function*(){let c=yield s;if(c===!0)return!0;Nw&&console.log(`handleReward ${l}`);let d=e.get(l),u=d?yield d(...i):c;return Nw&&console.log(`handleReward ${l} ${u}`),u}),Promise.resolve(!1))})},registerRewardsFetcher(o){return x(this,null,function*(){t=(...i)=>x(this,null,function*(){try{return yield o(...i)}catch(a){return console.error("getRewardOptions error:",a),["ADS"]}})})},registerRewardFrequencyConfigFetcher(o){return x(this,null,function*(){r=(...i)=>x(this,null,function*(){try{return yield o(...i)}catch(a){return console.error("getRewardOptions error:",a),{joliCoinUseAndCharge:Qt}}})})},getRewardsTypes(...o){return x(this,null,function*(){return t?yield t(...o):["ADS"]})},getRewardFrequencyConfig(...o){return x(this,null,function*(){return r?yield r(...o):{joliCoinUseAndCharge:Qt}})}}}var Nw,qw=T(()=>{"use strict";te();Xt();Nw=S.testMode});var pU,hU,Lw,Uw,Mw=T(()=>{"use strict";Xt();pU=()=>(e,t)=>e==="JOLI_COIN"&&t==="ADS"?-1:e==="ADS"&&t==="JOLI_COIN"?1:0,hU=e=>e.length?e.includes("JOLI_COIN")&&e.length<=1?["JOLI_COIN_ONLY"]:e.sort(pU()):["ADS"],Lw=e=>{e.registerRewardsFetcher(t=>x(void 0,null,function*(){var n,o,i,a;let r=["ADS"];try{let s=yield t.post("/api/games/unlock-options",{});if(s.code!=="SUCCESS")return r;V.emit(Ir,{options:((n=s.data)==null?void 0:n.unlockOptions)||[],userJoliCoin:((o=s.extra)==null?void 0:o.joliCoin)||{balance:0,enableAutoDeduct:!1}});let l=((a=(i=s.data)==null?void 0:i.unlockOptions)==null?void 0:a.map(c=>c.type))||Array.from(r);return hU(l)}catch(s){return console.error("getRewardOptions error:",s),r}}))},Uw=e=>{e.registerRewardFrequencyConfigFetcher(t=>x(void 0,null,function*(){var n,o;let r=yield t.get("/api/fe-configs/web-common/global-config",{});return r.code!=="SUCCESS"?{joliCoinUseAndCharge:Qt}:(V.emit(Ui,{joliCoinUseAndCharge:((n=r.data)==null?void 0:n.joliCoinUseAndCharge)||Qt}),{joliCoinUseAndCharge:((o=r.data)==null?void 0:o.joliCoinUseAndCharge)||Qt})}))}});var Fw,jw=T(()=>{"use strict";Fw=e=>t=>x(void 0,null,function*(){return e.adBreak(t),!0})});var Bw,$w=T(()=>{"use strict";Bw=(e,t)=>e.some(r=>r.type==="JOLI_COIN"&&r.joliCoinChoices.some(n=>{var o;return n.joliCoinQuantity<=((o=t==null?void 0:t.balance)!=null?o:0)}))});var na,oa,Hw,ia,aa=T(()=>{"use strict";te();D();Xt();$w();Rn();na=(e,t)=>r=>x(void 0,null,function*(){let n=Et(V,wt);return V.emit(qi,e,{userJoliCoin:r.userJoliCoin,joliCoinQuantity:r.joliCoinQuantity,enableAutoDeduct:r.userJoliCoin.enableAutoDeduct,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).paymentResult}),oa=(e,t)=>r=>x(void 0,null,function*(){let n=Et(V,Tr);return V.emit(Li,e,{enableAutoDeduct:r.enableAutoDeduct,userJoliCoin:r.userJoliCoin,joliCoinQuantity:r.joliCoinQuantity,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).useModalResult}),Hw=e=>{if(e=="CANCEL")throw new Error("CANCEL")},ia=(e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:r,unlockOptionsHandler:n,initiateAndAwaitPayment:o,showUnlockWithJolicoinModal:i}})=>a=>x(void 0,null,function*(){var s,l,c,d,u,h,p;try{let m=!1,g=yield n.getData(),_=(c=(l=(s=g==null?void 0:g.options)==null?void 0:s.find(A=>A.type==="JOLI_COIN"))==null?void 0:l.joliCoinChoices[0].joliCoinQuantity)!=null?c:0;if(!Bw((g==null?void 0:g.options)||[],g==null?void 0:g.userJoliCoin)){let A=yield o({userJoliCoin:g==null?void 0:g.userJoliCoin,joliCoinQuantity:_});if(Hw(A),A!=="SUCCESS")return r==null||r(a),!1;m=!0}let v=!!((d=g==null?void 0:g.userJoliCoin)!=null&&d.enableAutoDeduct);if(!m){let A=yield i({enableAutoDeduct:v,userJoliCoin:g==null?void 0:g.userJoliCoin,joliCoinQuantity:_});if(Hw(A),A!=="CONFIRM")return r==null||r(a),!1}let y=yield e.post("/api/joli-coin/unlock",{data:{type:"GAME_REWARD",reqId:`${Zn()}-${S.mpType}-${Date.now()}`,gameInfo:{gameId:S.mpId}}});return y.code=="SUCCESS"?((h=a.adBreakDone)==null||h.call(a,{breakType:a.type,breakName:"name"in a&&(u=a.name)!=null?u:"",breakFormat:"reward",breakStatus:"viewed"}),"adViewed"in a&&((p=a.adViewed)==null||p.call(a)),t==null||t({quantity:y.data.quantity,balance:y.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 Jw,Vw=T(()=>{"use strict";Xt();Rn();aa();aa();Jw=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=Et(V,Ir),o=()=>{r==null||r()},i=oa("ADS-JOLI_COIN",{confirmButtonText:"Use Jolicoin",cancelButtonText:"No watch ads"}),a=na("ADS-JOLI_COIN",{confirmButtonText:"Pay and unlock",cancelButtonText:"No watch ads"});return ia(e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:o,unlockOptionsHandler:n,initiateAndAwaitPayment:a,showUnlockWithJolicoinModal:i}})}});var Gw,Kw=T(()=>{"use strict";Xt();aa();Rn();Gw=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=Et(V,Ir),o=l=>{var c;r==null||r(),(c=l.adBreakDone)==null||c.call(l,{breakType:l.type,breakFormat:l.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})},i=oa("JOLI_COIN",{confirmButtonText:"Use Jolicoin",cancelButtonText:"No thanks"}),a=na("JOLI_COIN",{confirmButtonText:"Pay and unlock",cancelButtonText:"No thanks"});return ia(e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:o,unlockOptionsHandler:n,initiateAndAwaitPayment:a,showUnlockWithJolicoinModal:i}})}});var Tt,zw=T(()=>{"use strict";qw();Mw();jw();Vw();Kw();Tt=Dw();Lw(Tt);Uw(Tt)});var eJ,sa,mU,jn,vU,Bn,Ww,gU,_U,yU,bU,Yw=T(()=>{"use strict";D();lt();li();eJ=ue(D0());Pw();Ot();te();Vt();Ie();zw();Ka();sa=ee(),mU=()=>{let{data:e}=L("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},jn={get:(e,t)=>ve(e,R({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>ve(e,R({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},vU={httpClient:jn,checkNetwork:mU,track:Le,eventEmitter:no,getContextInfo:()=>{var e,t,r,n,o,i,a,s;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:(o=S.sessionId)!=null?o:"",userId:(a=(i=S.hostUserInfo)==null?void 0:i.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}}},Bn=new Xi(vU);Tt.getRewardFrequencyConfig(jn).then(e=>{console.log("getRewardFrequencyConfig",e)});Tt.registerRewardHandler("ADS",Fw(Bn));Tt.registerRewardHandler("JOLI_COIN",Jw(jn,{onUnlockSuccess:e=>{Ww(e)},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));Tt.registerRewardHandler("JOLI_COIN_ONLY",Gw(jn,{onUnlockSuccess:e=>{Ww(e)},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));Ww=e=>{let{quantity:t}=e,r=`{slot-coin} ${t} JoliCoins used`;Yb(r,{customStyle:{mark:{marginRight:"8px"}}})},gU=J("adInit",{implement:e=>{Bn.init(e)}}),_U=J("adConfig",{implement:e=>{Bn.adConfig(e)}}),yU=J("adBreak",{implement:e=>{e.type==="reward"?Tt.getRewardsTypes(jn).then(t=>{Tt.handleReward(t,e).catch(r=>{var n;console.info("handleReward failed in native",r),(n=e.adBreakDone)==null||n.call(e,{breakType:e.type,breakFormat:e.type==="reward"?"reward":"interstitial",breakStatus:"noAdPreloaded"})})}):Bn.adBreak(e)}}),bU=J("adUnit",{implement:e=>{Bn.adUnit(e)}});sa.registerCommand("AdsSDK.init",gU);sa.registerCommand("AdsSDK.adConfig",_U);sa.registerCommand("AdsSDK.adBreak",yU);sa.registerCommand("AdsSDK.adUnit",bU);P("AdsSDK.init",{version:"1.0.0"});P("AdsSDK.adConfig",{version:"1.0.0"});P("AdsSDK.adBreak",{version:"1.0.0"});P("AdsSDK.adUnit",{version:"1.0.0"})});var $n,wU,EU,xU,AU,SU,Qw=T(()=>{"use strict";D();Ie();lt();te();$n=ee(),wU=J("openSchemaSync",{paramsSchema:E.tuple(E.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${S.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=L("openSchemaSync",{schema:t});if(r.errNo!==0)throw new er(r.errMsg,r.errNo)}}),EU=J("openPageSync",{paramsSchema:E.tuple(E.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=L("openPageSync",{url:e});if(t!==0||!n)throw new er(r,t);return{webviewId:n.webviewId}}}),xU=J("closePageSync",{paramsSchema:E.tuple(E.number()),implement:e=>{let{errNo:t,errMsg:r}=L("closePageSync",{webviewId:e});if(t!==0)throw new er(r,t)}}),AU=J("interceptSystemExitSync",{paramsSchema:E.tuple(E.boolean()),implement:e=>{de.emit("onInterceptSystemExit",{intercept:e}),de.emit("onInterceptBackPress",{intercept:e})}}),SU=J("navigateToNativePage",{paramsSchema:E.tuple(E.enum("openHistory"),E.object()),implement:(e,t)=>{let{errNo:r,errMsg:n}=L("callHostMethodAsync",{method:e,params:R({},t)});if(r!==0)throw new er(n,r)}});$n.registerCommand("RouterSDK.openSchema",wU);$n.registerCommand("RouterSDK.openPage",EU);$n.registerCommand("RouterSDK.closePage",xU);$n.registerCommand("RouterSDK.interceptSystemExit",AU);$n.registerCommand("RouterSDK.navigateToNativePage",SU);P("router.openSchema",{version:"1.1.10"});P("router.openPage",{version:"1.1.10"});P("router.closePage",{version:"1.1.10"});P("router.interceptSystemExit",{version:"1.1.18"});P("router.navigateToNativePage",{version:"1.1.19"})});var IU={};var mJ,yJ,Xw=T(()=>{"use strict";d0();mJ=ue(f0());y0();Rc();x0();yJ=ue(A0());Oc();Yw();Qw()});var Zw=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[Zw])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[Zw]=!0;x(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(o0(),n0)),Promise.resolve().then(()=>(Xw(),IU)),Promise.resolve().then(()=>(Ot(),Sd))]);e()});
656
+ `});function HS(){let e=new Map,t,r;return{registerRewardHandler(i,o){e.set(i,o)},handleReward(i,...o){return x(this,null,function*(){return yield i.reduce((s,l)=>x(this,null,function*(){let c=yield s;if(c===!0)return!0;JS&&console.log(`handleReward ${l}`);let d=e.get(l),u=d?yield d(...o):c;return JS&&console.log(`handleReward ${l} ${u}`),u}),Promise.resolve(!1))})},registerRewardsFetcher(i){return x(this,null,function*(){t=(...o)=>x(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),["ADS"]}})})},registerRewardFrequencyConfigFetcher(i){return x(this,null,function*(){r=(...o)=>x(this,null,function*(){try{return yield i(...o)}catch(a){return console.error("getRewardOptions error:",a),{joliCoinUseAndCharge:Cr}}})})},getRewardsTypes(...i){return x(this,null,function*(){return t?yield t(...i):["ADS"]})},getRewardFrequencyConfig(...i){return x(this,null,function*(){return r?yield r(...i):{joliCoinUseAndCharge:Cr}})}}}var JS,VS=I(()=>{"use strict";se();Or();JS=S.testMode});var z3,G3,zS,GS,KS=I(()=>{"use strict";Or();z3=()=>(e,t)=>e==="JOLI_COIN"&&t==="ADS"?-1:e==="ADS"&&t==="JOLI_COIN"?1:0,G3=e=>e.length?e.includes("JOLI_COIN")&&e.length<=1?["JOLI_COIN_ONLY"]:e.sort(z3()):["ADS"],zS=e=>{e.registerRewardsFetcher(t=>x(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;K.emit(dn,{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 G3(l)}catch(s){return console.error("getRewardOptions error:",s),r}}))},GS=e=>{e.registerRewardFrequencyConfigFetcher(t=>x(void 0,null,function*(){var n,i;let r=yield t.get("/api/fe-configs/web-common/global-config",{});return r.code!=="SUCCESS"?{joliCoinUseAndCharge:Cr}:(K.emit(as,{joliCoinUseAndCharge:((n=r.data)==null?void 0:n.joliCoinUseAndCharge)||Cr}),{joliCoinUseAndCharge:((i=r.data)==null?void 0:i.joliCoinUseAndCharge)||Cr})}))}});var WS,YS=I(()=>{"use strict";WS=e=>t=>x(void 0,null,function*(){return e.adBreak(t),!0})});var QS,XS=I(()=>{"use strict";QS=(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 Rs,Cs,ZS,Os,Ps=I(()=>{"use strict";se();N();Or();XS();Di();Rs=(e,t)=>r=>x(void 0,null,function*(){let n=Jt(K,kt);return K.emit(is,e,{userJoliCoin:r.userJoliCoin,joliCoinQuantity:r.joliCoinQuantity,enableAutoDeduct:r.userJoliCoin.enableAutoDeduct,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).paymentResult}),Cs=(e,t)=>r=>x(void 0,null,function*(){let n=Jt(K,fn);return K.emit(os,e,{enableAutoDeduct:r.enableAutoDeduct,userJoliCoin:r.userJoliCoin,joliCoinQuantity:r.joliCoinQuantity,confirmButtonText:t.confirmButtonText,cancelButtonText:t.cancelButtonText}),(yield n.getFreshData()).useModalResult}),ZS=e=>{if(e=="CANCEL")throw new Error("CANCEL")},Os=(e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:r,unlockOptionsHandler:n,initiateAndAwaitPayment:i,showUnlockWithJolicoinModal:o}})=>a=>x(void 0,null,function*(){var s,l,c,d,u,p,f;try{let m=!1,g=yield n.getData(),_=(c=(l=(s=g==null?void 0:g.options)==null?void 0:s.find(E=>E.type==="JOLI_COIN"))==null?void 0:l.joliCoinChoices[0].joliCoinQuantity)!=null?c:0;if(!QS((g==null?void 0:g.options)||[],g==null?void 0:g.userJoliCoin)){let E=yield i({userJoliCoin:g==null?void 0:g.userJoliCoin,joliCoinQuantity:_});if(ZS(E),E!=="SUCCESS")return r==null||r(a),!1;m=!0}let v=!!((d=g==null?void 0:g.userJoliCoin)!=null&&d.enableAutoDeduct);if(!m){let E=yield o({enableAutoDeduct:v,userJoliCoin:g==null?void 0:g.userJoliCoin,joliCoinQuantity:_});if(ZS(E),E!=="CONFIRM")return r==null||r(a),!1}let b=yield e.post("/api/joli-coin/unlock",{data:{type:"GAME_REWARD",reqId:`${oo()}-${S.mpType}-${Date.now()}`,gameInfo:{gameId:S.mpId}}});return b.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:b.data.quantity,balance:b.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 eI,tI=I(()=>{"use strict";Or();Di();Ps();Ps();eI=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=Jt(K,dn),i=()=>{r==null||r()},o=Cs("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noWatchAds"}),a=Rs("ADS-JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noWatchAds"});return Os(e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:n,initiateAndAwaitPayment:a,showUnlockWithJolicoinModal:o}})}});var rI,nI=I(()=>{"use strict";Or();Ps();Di();rI=(e,{onUnlockSuccess:t,onUnlockFailed:r})=>{let n=Jt(K,dn),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=Cs("JOLI_COIN",{confirmButtonText:"jolicoin.useJolicoin",cancelButtonText:"jolicoin.noThanks"}),a=Rs("JOLI_COIN",{confirmButtonText:"jolicoin.payAndUnlock",cancelButtonText:"jolicoin.noThanks"});return Os(e,{handlers:{handleUnlockSuccess:t,handleUnlockFailed:i,unlockOptionsHandler:n,initiateAndAwaitPayment:a,showUnlockWithJolicoinModal:o}})}});var Wt,iI=I(()=>{"use strict";VS();KS();YS();tI();nI();Wt=HS();zS(Wt);GS(Wt)});var r7,Ns,K3,Vi,W3,zi,oI,Y3,Q3,X3,Z3,aI=I(()=>{"use strict";N();It();Pi();r7=ae(HA());$S();Zt();se();Ot();Me();iI();_l();Ns=pe(),K3=()=>{let{data:e}=L("getNetworkStatusSync");return!!(e!=null&&e.isConnected)},Vi={get:(e,t)=>le(e,T({method:"GET",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data),post:(e,t)=>le(e,T({method:"POST",responseType:"json",appendHostCookie:!0},t)).then(r=>r.response.data)},W3={httpClient:Vi,checkNetwork:K3,track:Ge,eventEmitter:co,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:""}}},zi=new As(W3);Wt.getRewardFrequencyConfig(Vi).then(e=>{console.log("getRewardFrequencyConfig",e)});Wt.registerRewardHandler("ADS",WS(zi));Wt.registerRewardHandler("JOLI_COIN",eI(Vi,{onUnlockSuccess:e=>{oI(e)},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));Wt.registerRewardHandler("JOLI_COIN_ONLY",rI(Vi,{onUnlockSuccess:e=>{oI(e)},onUnlockFailed:()=>{console.log("onUnlockFailed")}}));oI=e=>{let{quantity:t}=e,r=`{slot-coin} ${t} {slot-i18n-jolicoin.coinUsed}`;eA(r,{customStyle:{mark:{marginRight:"8px"}},i18nParams:{text:"Jolicoin Used"}})},Y3=G("adInit",{implement:e=>{zi.init(e)}}),Q3=G("adConfig",{implement:e=>{zi.adConfig(e)}}),X3=G("adBreak",{implement:e=>{e.type==="reward"?Wt.getRewardsTypes(Vi).then(t=>{Wt.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"})})}):zi.adBreak(e)}}),Z3=G("adUnit",{implement:e=>{zi.adUnit(e)}});Ns.registerCommand("AdsSDK.init",Y3);Ns.registerCommand("AdsSDK.adConfig",Q3);Ns.registerCommand("AdsSDK.adBreak",X3);Ns.registerCommand("AdsSDK.adUnit",Z3);P("AdsSDK.init",{version:"1.0.0"});P("AdsSDK.adConfig",{version:"1.0.0"});P("AdsSDK.adBreak",{version:"1.0.0"});P("AdsSDK.adUnit",{version:"1.0.0"})});var Gi,e4,t4,r4,n4,i4,sI=I(()=>{"use strict";N();Me();It();se();Gi=pe(),e4=G("openSchemaSync",{paramsSchema:A.tuple(A.string()),implement:e=>{let t=e;e.match(/^https?:\/\//)||(t=`https://${S.mpId}.app.jolibox.com${e.startsWith("/")?"":"/"}${e}`);let r=L("openSchemaSync",{schema:t});if(r.errNo!==0)throw new Nr(r.errMsg,r.errNo)}}),t4=G("openPageSync",{paramsSchema:A.tuple(A.string()),implement:e=>{let{errNo:t,errMsg:r,data:n}=L("openPageSync",{url:e});if(t!==0||!n)throw new Nr(r,t);return{webviewId:n.webviewId}}}),r4=G("closePageSync",{paramsSchema:A.tuple(A.number()),implement:e=>{let{errNo:t,errMsg:r}=L("closePageSync",{webviewId:e});if(t!==0)throw new Nr(r,t)}}),n4=G("interceptSystemExitSync",{paramsSchema:A.tuple(A.boolean()),implement:e=>{be.emit("onInterceptSystemExit",{intercept:e}),be.emit("onInterceptBackPress",{intercept:e})}}),i4=G("navigateToNativePage",{paramsSchema:A.tuple(A.enum("openHistory"),A.object()),implement:(e,t)=>{let{errNo:r,errMsg:n}=L("callHostMethodAsync",{method:e,params:T({},t)});if(r!==0)throw new Nr(n,r)}});Gi.registerCommand("RouterSDK.openSchema",e4);Gi.registerCommand("RouterSDK.openPage",t4);Gi.registerCommand("RouterSDK.closePage",r4);Gi.registerCommand("RouterSDK.interceptSystemExit",n4);Gi.registerCommand("RouterSDK.navigateToNativePage",i4);P("router.openSchema",{version:"1.1.10"});P("router.openPage",{version:"1.1.10"});P("router.closePage",{version:"1.1.10"});P("router.interceptSystemExit",{version:"1.1.18"});P("router.navigateToNativePage",{version:"1.1.19"})});var o4={};var g7,w7,lI=I(()=>{"use strict";mA();g7=ae(vA());xA();Sd();kA();w7=ae(TA());Rd();aI();sI()});var cI=Symbol.for("JOLIBOX_IMPLEMENT_INIT");if(window[cI])throw console.info("Jolibox Implement Already Initialized"),new Error("Jolibox Implement Already Initialized");window[cI]=!0;x(void 0,null,function*(){let[{config:e}]=yield Promise.all([Promise.resolve().then(()=>(lA(),sA)),Promise.resolve().then(()=>(lI(),o4)),Promise.resolve().then(()=>(Zt(),Cp))]);e()});