@banou/stub 0.0.23 → 0.0.25

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 (47) hide show
  1. package/build/assets/account-BENsgVNM.js +1 -0
  2. package/build/assets/account-DlIk6xHa.js +1 -0
  3. package/build/assets/api-BdTgLphT-N3l6mbjo.js +3 -0
  4. package/build/assets/api-D1AUDaGk.js +1 -0
  5. package/build/assets/build-CQLpK1BK.js +1 -0
  6. package/build/assets/embed-BiH-YCjQ.js +1461 -0
  7. package/build/assets/index-js0hDSG0.js +2126 -0
  8. package/build/assets/lib-Co-0V6DV.js +71 -0
  9. package/build/assets/{lib-account-DncELSPq.js → lib-account-BUymp__o.js} +12 -12
  10. package/build/assets/lib-account-zcRp2Stn.js +2 -0
  11. package/build/assets/{lib-api-BdTgLphT-CAZBNIQ5.js → lib-api-BdTgLphT-DSr8Qbeb.js} +353 -367
  12. package/build/assets/lib-api-MaBk5T3E.js +2 -0
  13. package/build/assets/{lib-rolldown-runtime-B1bRi_D7.js → lib-rolldown-runtime-Cb76FRpK.js} +2 -2
  14. package/build/assets/{lib-worker-0qYIS3eh.js → lib-worker-BGozEgr9.js} +148 -140
  15. package/build/assets/{lib-worker-Cv77f0ZX.js → lib-worker-GYQJyD7j.js} +1 -1
  16. package/build/assets/lib-worker-index-B4F7kvUH.js +2126 -0
  17. package/build/assets/main-CSyC6ryz.css +1 -0
  18. package/build/assets/main-CzEKJyQ-.js +3844 -0
  19. package/build/assets/remote-CVVOdyaq.js +1 -0
  20. package/build/assets/remote-VQoP8ehb.js +1 -0
  21. package/build/assets/uri-DvH8-88e.js +1 -0
  22. package/build/assets/{worker-BCl_Bm_R.js → worker-BwFHZ688.js} +1 -1
  23. package/build/assets/{worker-BsQDcd-k.js → worker-CT1T8vTt.js} +1 -1
  24. package/build/embed.html +8 -39
  25. package/build/index.html +9 -9
  26. package/build/index.js +2664 -2655
  27. package/package.json +10 -8
  28. package/build/.well-known/fkn.json +0 -1
  29. package/build/_headers +0 -5
  30. package/build/assets/account-B0kxAr97.js +0 -1
  31. package/build/assets/account-DjnuxpAV.js +0 -1
  32. package/build/assets/api-BdTgLphT-QGKmIqNg.js +0 -3
  33. package/build/assets/api-DsRXk6Ul.js +0 -1
  34. package/build/assets/build-BuC_lDPE.js +0 -1
  35. package/build/assets/embed-k24RBb_R.js +0 -1461
  36. package/build/assets/index-CPsp3E-B.js +0 -1964
  37. package/build/assets/lib-BqoXHewM.js +0 -71
  38. package/build/assets/lib-account-cGGxEwWz.js +0 -2
  39. package/build/assets/lib-api-Bi9f-0mj.js +0 -2
  40. package/build/assets/lib-worker-index-rcCwnCgE.js +0 -1964
  41. package/build/assets/main-Cpi6zSh1.js +0 -3844
  42. package/build/assets/main-DZ0Ws1xk.css +0 -1
  43. package/build/assets/remote-CW2xewp5.js +0 -1
  44. package/build/assets/remote-DNcNpuT3.js +0 -1
  45. package/build/assets/uri-BYw9k-7q.js +0 -1
  46. package/build/fkn.json +0 -1
  47. package/fkn.json +0 -1
@@ -0,0 +1 @@
1
+ import{a as e}from"./build-CQLpK1BK.js";var t=[`loadstart`,`loadedmetadata`,`loadeddata`,`durationchange`,`timeupdate`,`play`,`playing`,`pause`,`seeking`,`seeked`,`progress`,`ratechange`,`volumechange`,`ended`,`waiting`,`stalled`,`suspend`,`canplay`,`canplaythrough`,`emptied`,`resize`,`error`],n=[`currentTime`,`volume`,`muted`,`playbackRate`],r=[`play`,`pause`,`load`],i=e=>[`loadstart`,...e.readyState>=1?[`loadedmetadata`,`durationchange`]:[],...e.readyState>=2?[`loadeddata`]:[],...e.readyState>=3?[`canplay`]:[],`volumechange`,`ratechange`,`progress`,`resize`,e.paused?`pause`:`playing`,...e.ended?[`ended`]:[],...e.error?[`error`]:[]],a=e=>{if(!e)return[];let t=[];for(let n=0;n<e.length;n++)t.push([e.start(n),e.end(n)]);return t},o=e=>({currentTime:s(e.currentTime),duration:s(e.duration),paused:e.paused,ended:e.ended??!1,seeking:e.seeking,readyState:e.readyState,volume:e.volume??1,muted:e.muted??!1,playbackRate:e.playbackRate??1,src:e.src??``,currentSrc:e.currentSrc??``,buffered:a(e.buffered),seekable:a(e.seekable),error:e.error?{code:e.error.code,message:e.error.message}:null,videoWidth:e.videoWidth??0,videoHeight:e.videoHeight??0}),s=e=>Number.isNaN(e)?0:e,c={currentTime:0,duration:0,paused:!0,ended:!1,seeking:!1,readyState:0,volume:1,muted:!1,playbackRate:1,src:``,currentSrc:``,buffered:[],seekable:[],error:null,videoWidth:0,videoHeight:0},l=e=>({length:e.length,start:t=>e[t]?.[0]??0,end:t=>e[t]?.[1]??0}),u=1e4,d=1500,f=()=>new DOMException(`the far player did not start playing`,`NotAllowedError`),p=8,m=32,h=(e,t={})=>{C(t.origin);let n=typeof window<`u`&&window.parent!==window;return!t.transport&&!n?()=>{}:v(t).serve(e,t)},g=new WeakMap,_=new Map,v=a=>{let s=a.channel??`banou-media-player`,l=a.transport,u=`${s}|${a.origin??`*`}`,d=l?g.get(l)??(g.set(l,new Map),g.get(l)):_,f=d.get(u);if(f)return f;let h=new Map,v=new Map,y=e=>v.get(e)??v.set(e,new Set).get(e),b=(e,t)=>{v.get(e)?.delete(t);try{t.onmessage=null,t.close()}catch{}},x=(e,t,n)=>{for(let r of n?[n]:[...y(e)])try{r.postMessage(t)}catch{b(e,r)}},S=e=>{let t=h.get(e);return t?o(t):void 0},C=(e,t)=>{if(!v.get(e)?.size)return;let n=S(e);n&&x(e,{event:t,snapshot:n})},w={subscribe:(e,t)=>{if(typeof e!=`string`)throw TypeError(`a player id must be a string`);if(typeof MessagePort<`u`&&!(t instanceof MessagePort))throw TypeError(`subscribe takes a MessagePort`);if(!v.has(e)&&v.size>=m)throw RangeError(`too many players on this channel`);let n=y(e);if(n.size>=p)throw RangeError(`too many embedders for this player`);n.add(t),t.onmessage=()=>b(e,t),t.start?.();let r=S(e);r&&x(e,{event:`loadstart`,snapshot:r},t)},set:(e,t,r)=>{let i=h.get(e);if(i&&n.includes(t))try{i[t]=r}catch{}},call:async(e,t)=>{let n=h.get(e);if(n&&r.includes(t))try{t===`play`?await n.play():t===`pause`?n.pause():n.load?.()}finally{C(e,`timeupdate`)}}},T=new AbortController;T.signal.addEventListener(`abort`,()=>{d.delete(u);for(let[e,t]of v)for(let n of[...t])b(e,n);v.clear(),h.clear()},{once:!0}),e(w,{transport:a.transport??{emit:window.parent,receive:O(()=>window.parent,a.origin)},origin:a.origin,key:s,unregisterSignal:T.signal});let E={serve:(e,n)=>{let r=n.id??`default`,a=t.map(t=>[t,()=>{h.get(r)===e&&C(r,t)}]);for(let[t,n]of a)e.addEventListener(t,n);let s=h.has(r);h.set(r,e),s&&x(r,{event:`emptied`,snapshot:{...c}});for(let t of i(o(e)))C(r,t);let l=()=>{for(let[t,n]of a)e.removeEventListener(t,n);h.get(r)===e&&(h.delete(r),x(r,{event:`emptied`,snapshot:{...c}}))},u=()=>{l(),T.abort()};return n.signal&&(n.signal.aborted?u():n.signal.addEventListener(`abort`,u,{once:!0})),l}};return d.set(u,E),E},y=new WeakMap,b=(t,n)=>{let r=n.channel??`banou-media-player`,i=`${r}|${n.origin??`*`}`,a=y.get(t)??(y.set(t,new Map),y.get(t)),o=a.get(i);if(o)return o;let s=E(t,n.origin),c=new Set,l=new AbortController,u,d=e=>{try{e.port?.postMessage(`close`)}catch{}try{e.port?.close()}catch{}e.port=void 0},f=async e=>{d(e);let{port1:t,port2:n}=new MessageChannel;e.port=t,t.onmessage=({data:t})=>{l.signal.aborted||e.update(t)},await S(()=>u.subscribe(e.id,n)).catch(t=>{throw d(e),t})},p=()=>{l.abort();for(let e of c)d(e);c.clear(),a.delete(i)};(async()=>{for await(let t of e({},{transport:s,origin:n.origin,key:r,unregisterSignal:l.signal})){if(l.signal.aborted)return;u=t;for(let e of c)e.reset();await Promise.allSettled([...c].map(e=>f(e)))}u=void 0;for(let e of c)e.reset()})().catch(()=>{u=void 0;for(let e of c)e.reset()});let m={attach:e=>(c.add(e),u&&f(e).catch(()=>{}),()=>{d(e),c.delete(e),c.size||p()}),set:(e,t,n)=>u?.set(e,t,n),call:async(e,t)=>{if(!u)throw new DOMException(`the remote player was closed`,`AbortError`);await u.call(e,t)}};return a.set(i,m),m},x=(e,t={})=>{C(t.origin);let r=new AbortController,a=t.signal?AbortSignal.any([t.signal,r.signal]):r.signal,o=t.id??`default`,s={...c},u=new EventTarget,p=e=>u.dispatchEvent(new Event(e)),m,h,g=new Promise((e,t)=>{m=e,h=t});g.catch(()=>{});let _=()=>new DOMException(`the remote player was closed`,`AbortError`),v=new Set,y=()=>{for(let e of[...v])e(_());v.clear()},x=new Map,S=!1,w=b(e,t).attach({id:o,reset:()=>{S=!1,y()},update:({event:e,snapshot:t})=>{let n=!S;S=!0,Object.assign(s,t);for(let[e,t]of x)s[e]=t;if(!n){p(e);return}for(let e of i(s))p(e);m()}}),T=()=>{w(),y(),h(_())};a.aborted?queueMicrotask(T):a.addEventListener(`abort`,T,{once:!0});let E=(e,t)=>Object.defineProperty(u,e,{get:()=>t?t(s[e]):s[e],enumerable:!0});for(let e of[`duration`,`paused`,`ended`,`seeking`,`readyState`,`src`,`currentSrc`,`error`,`videoWidth`,`videoHeight`])E(e);E(`buffered`,l),E(`seekable`,l);let D=e=>g.then(()=>a.aborted?void 0:e()).catch(()=>{}),O=b(e,t);for(let e of n)Object.defineProperty(u,e,{get:()=>s[e],set:t=>{s[e]=t,x.set(e,t),D(async()=>{await O.set(o,e,t),x.get(e)===t&&x.delete(e)})},enumerable:!0});let k=e=>g.then(()=>{if(a.aborted)throw _();let t=O.call(o,e);return new Promise((e,n)=>{v.add(n),t.then(()=>{v.delete(n),e()},e=>{v.delete(n),n(a.aborted?_():e)})})});u.play=()=>(s.paused=!1,k(`play`).catch(e=>{throw s.paused=!0,e}));let A=()=>new Promise(e=>{let t=t=>{clearTimeout(r),u.removeEventListener(`playing`,n),u.removeEventListener(`play`,n),e(t)},n=()=>t(!0);u.addEventListener(`playing`,n),u.addEventListener(`play`,n);let r=setTimeout(()=>t(!s.paused),d)}),j=async()=>{let e=!s.paused,t;try{await u.play()}catch(e){t=e}return e?{started:!0,refusal:t}:{started:await A(),refusal:t}};return u.autoplay=async()=>{let e=await j();if(e.started)return{muted:u.muted};if(u.muted||a.aborted)throw e.refusal??f();u.muted=!0;let t=await j();if(t.started)return{muted:!0};throw u.muted=!1,e.refusal??t.refusal??f()},u.pause=()=>{s.paused=!0,k(`pause`).catch(()=>{})},u.load=()=>{k(`load`).catch(()=>{})},Object.defineProperty(u,"ready",{value:g,enumerable:!1}),u.destroy=()=>r.abort(),u},S=async e=>{let t;try{return await Promise.race([e(),new Promise((e,n)=>{t=setTimeout(()=>n(Error(`the player did not answer`)),u)})])}finally{t&&clearTimeout(t)}},C=e=>{if(e===void 0||e===`*`)return;if(e===`null`)throw TypeError('an opaque origin ("null") cannot be spoken to; leave `origin` unset and the sender check stands alone');let t;try{t=new URL(e)}catch{throw TypeError(`\`origin\` must be an origin like https://example.com, not ${e}`)}if(t.origin!==e)throw TypeError(`\`origin\` must be an origin like ${t.origin}, not ${e}`)},w=e=>{try{return!!e&&typeof e==`object`&&e.window===e}catch{return!1}},T=e=>{if(w(e))return!1;try{return!!e&&typeof e==`object`&&`contentWindow`in e}catch{return!1}},E=(e,t)=>{if(w(e)){let n=D(t);return{emit:(t,r)=>{e.postMessage(t,n.target(),r??[])},receive:O(()=>e,t,n)}}if(T(e)){if(!e.contentWindow)throw TypeError(`mediaPlayer: the iframe has no window yet; append it to a document first`);let n=()=>e.contentWindow,r=D(t);return{emit:(e,t)=>{n()?.postMessage(e,r.target(),t??[])},receive:O(n,t,r)}}return e},D=e=>{let t=e&&e!==`*`?e:void 0;return{target:()=>t&&t!==`null`?t:`*`,admits:e=>t?e===t:(e&&(t=e),!0)}},O=(e,t,n=D(t))=>t=>{let r=r=>{r.source===e()&&n.admits(r.origin)&&t(r.data,{source:r.source,origin:r.origin,receiveTransport:window})};return window.addEventListener(`message`,r),()=>window.removeEventListener(`message`,r)};export{h as n,t as r,x as t};
@@ -0,0 +1 @@
1
+ import{n as e}from"./remote-CVVOdyaq.js";export{e as exposePlayer};
@@ -0,0 +1 @@
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,o)=>(o=n==null?{}:e(i(n)),l(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e);(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();function f(e){e&&e.parentNode&&e.remove()}function p(e,t,n){var r,i,a,o={};for(a in t)a==`key`?r=t[a]:a==`ref`&&typeof e!=`function`?i=t[a]:o[a]=t[a];return arguments.length>2&&(o.children=arguments.length>3?Ce.call(arguments,2):n),m(e,o,r,i,null)}function m(e,t,n,r,i){var a={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:i??++ue,__i:-1,__u:0};return i==null&&M.vnode!=null&&M.vnode(a),a}function h(){return{current:null}}function g(e){return e.children}function _(e,t){this.props=e,this.context=t,this.__g=0}function v(e,t){if(t==null)return e.__?v(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type==`function`?v(e):null}function y(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=n.__e;break}return y(e)}}function b(e){(8&e.__g||!(e.__g|=8)||!de.push(e)||pe++)&&fe==M.debounceRendering||((fe=M.debounceRendering)||queueMicrotask)(x)}function x(){for(var e,t,n,r,i,a,o,s,c=1;de.length;)de.length>c&&de.sort(me),e=de.shift(),c=de.length,8&e.__g&&(n=void 0,i=(r=(t=e).__v).__e,a=[],o=[],(s=t.__P)&&((n=N({},r)).__v=r.__v+1,M.vnode&&M.vnode(n),D(s,n,r,t.__n,s.namespaceURI,32&r.__u?[i]:null,a,i??v(r),!!(32&r.__u),o,s.ownerDocument),n.__v=r.__v,n.__.__k[n.__i]=n,O(a,n,o),n.__e!=i&&y(n)));pe=0}function S(e,t,n,r,i,a,o,s,c,l,u,d){var f,p,m,h,g,_,v,y=r&&r.__k||xe,b=t.length;for(c=C(n,t,y,c,b),f=0;f<b;f++)(m=n.__k[f])!=null&&(p=m.__i==-1?be:y[m.__i]||be,m.__i=f,_=D(e,m,p,i,a,o,s,c,l,u,d),h=m.__e,m.ref&&p.ref!=m.ref&&(p.ref&&oe(p.ref,null,m),u.push(m.ref,m.__c||h,m)),g==null&&h!=null&&(g=h),(v=!!(4&m.__u))||p.__k===m.__k?c=w(m,c,e,v):typeof m.type==`function`&&_!==void 0?c=_:h&&(c=h.nextSibling),m.__u&=-7);return n.__e=g,c}function C(e,t,n,r,i){var a,o,s,c,l,u=n.length,d=u,f=0;for(e.__k=Array(i),a=0;a<i;a++)(o=t[a])!=null&&typeof o!=`boolean`&&typeof o!=`function`?(c=a+f,(o=e.__k[a]=typeof o==`string`||typeof o==`number`||typeof o==`bigint`||o.constructor==String?m(null,o,null,null,null):Se(o)?m(g,{children:o},null,null,null):o.constructor==null&&o.__b>0?m(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o).__=e,o.__b=e.__b+1,s=null,(l=o.__i=ee(o,n,c,d))!=-1&&(d--,(s=n[l])&&(s.__u|=2)),s==null||s.__v==null?(l==-1&&(i>u?f--:i<u&&f++),typeof o.type!=`function`&&(o.__u|=4)):l!=c&&(l==c-1?f--:l==c+1?f++:(l>c?f--:f++,o.__u|=4))):e.__k[a]=null;if(d)for(a=0;a<u;a++)(s=n[a])!=null&&!(2&s.__u)&&(s.__e==r&&(r=v(s)),k(s,s));return r}function w(e,t,n,r){var i,a;if(typeof e.type==`function`){for(i=e.__k,a=0;i&&a<i.length;a++)i[a]&&(i[a].__=e,t=w(i[a],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=v(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do t&&=t.nextSibling;while(t!=null&&t.nodeType==8);return t}function T(e,t){return t||=[],e==null||typeof e==`boolean`||(Se(e)?e.some(function(e){T(e,t)}):t.push(e)),t}function ee(e,t,n,r){var i,a,o,s=e.key,c=e.type,l=t[n],u=l!=null&&!(2&l.__u);if(l===null&&e.key==null||u&&s==l.key&&c==l.type)return n;if(r>+!!u){for(i=n-1,a=n+1;i>=0||a<t.length;)if((l=t[o=i>=0?i--:a++])!=null&&!(2&l.__u)&&s==l.key&&c==l.type)return o}return-1}function te(e,t,n){t[0]==`-`?e.setProperty(t,n??``):e[t]=n??``}function E(e,t,n,r,i){var a;n:if(t==`style`){if(typeof n==`string`)e.style.cssText=n;else{if(typeof r==`string`&&(e.style.cssText=r=``),r)for(t in r)n&&t in n||te(e.style,t,``);if(n)for(t in n)r&&n[t]==r[t]||te(e.style,t,n[t])}}else if(t[0]==`o`&&t[1]==`n`)a=t!=(t=t.replace(he,`$1`)),(t=t.slice(2))[0].toLowerCase()!=t[0]&&(t=t.toLowerCase()),e.__l||={},e.__l[t+a]=n,n?r?n.l=r.l:(n.l=ge,e.addEventListener(t,a?ve:_e,a)):e.removeEventListener(t,a?ve:_e,a);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]=n??``;break n}catch{}typeof n==`function`||(n==null||!1===n&&t[4]!=`-`?e.removeAttribute(t):e.setAttribute(t,t==`popover`&&n==1?``:n))}}function ne(e){return function(t){if(this.__l){var n=this.__l[t.type+e];if(t.u==null)t.u=ge++;else if(t.u<n.l)return;return n(M.event?M.event(t):t)}}}function D(e,t,n,r,i,a,o,s,c,l,u){var d,p,m,h,v,y,b,x,C,w,T,ee,te,E,ne,D,O,oe,k,A,ce,j=t.type;if(t.constructor!=null)return null;128&n.__u&&(c=!!(32&n.__u),n.__c.__z&&(s=t.__e=n.__e=(a=n.__c.__z)[0],n.__c.__z=null)),(d=M.__b)&&d(t);n:if(typeof j==`function`)try{if(x=t.props,C=`prototype`in j&&j.prototype.render,w=(d=j.contextType)&&r[d.__c],T=d?w?w.props.value:d.__:r,n.__c?2&(p=t.__c=n.__c).__g&&(p.__g|=1,b=!0):(C?t.__c=p=new j(x,T):(t.__c=p=new _(x,T),p.constructor=j,p.render=se),w&&w.sub(p),p.props=x,p.state||(p.state={}),p.context=T,p.__n=r,m=!0,p.__g|=8,p.__h=[],p._sb=[]),C&&p.__s==null&&(p.__s=p.state),C&&j.getDerivedStateFromProps!=null&&(p.__s==p.state&&(p.__s=N({},p.__s)),N(p.__s,j.getDerivedStateFromProps(x,p.__s))),h=p.props,v=p.state,p.__v=t,m)C&&j.getDerivedStateFromProps==null&&p.componentWillMount!=null&&p.componentWillMount(),C&&p.componentDidMount!=null&&p.__h.push(p.componentDidMount);else{if(C&&j.getDerivedStateFromProps==null&&x!==h&&p.componentWillReceiveProps!=null&&p.componentWillReceiveProps(x,T),!(4&p.__g)&&p.shouldComponentUpdate!=null&&!1===p.shouldComponentUpdate(x,p.__s,T)||t.__v==n.__v){for(t.__v!=n.__v&&(p.props=x,p.state=p.__s,p.__g&=-9),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),ee=0;ee<p._sb.length;ee++)p.__h.push(p._sb[ee]);p._sb=[],p.__h.length&&o.push(p);break n}p.componentWillUpdate!=null&&p.componentWillUpdate(x,p.__s,T),C&&p.componentDidUpdate!=null&&p.__h.push(function(){p.componentDidUpdate(h,v,y)})}if(p.context=T,p.props=x,p.__P=e,p.__g&=-5,te=M.__r,E=0,C){for(p.state=p.__s,p.__g&=-9,te&&te(t),d=p.render(p.props,p.state,p.context),ne=0;ne<p._sb.length;ne++)p.__h.push(p._sb[ne]);p._sb=[]}else do p.__g&=-9,te&&te(t),d=p.render(p.props,p.state,p.context),p.state=p.__s;while(8&p.__g&&++E<25);p.state=p.__s,p.getChildContext!=null&&(r=N({},r,p.getChildContext())),C&&!m&&p.getSnapshotBeforeUpdate!=null&&(y=p.getSnapshotBeforeUpdate(h,v)),D=d,d!=null&&d.type===g&&d.key==null&&(D=ie(d.props.children)),s=S(e,Se(D)?D:[D],t,n,r,i,a,o,s,c,l,u),t.__u&=-161,p.__h.length&&o.push(p),b&&(p.__g&=-4)}catch(e){if(t.__v=null,c||a!=null){if(e.then){for(O=0,oe=!1,t.__u|=c?160:128,t.__c.__z=[],k=0;k<a.length;k++)(A=a[k])==null||oe||(A.nodeType==8&&A.data==`$s`?(O>0&&t.__c.__z.push(A),O++,a[k]=null):A.nodeType==8&&A.data==`/$s`?(--O>0&&t.__c.__z.push(A),oe=O===0,s=a[k],a[k]=null):O>0&&(t.__c.__z.push(A),a[k]=null));if(!oe){for(;s&&s.nodeType==8&&s.nextSibling;)s=s.nextSibling;a[a.indexOf(s)]=null,t.__c.__z=[s]}t.__e=s}else{for(ce=a.length;ce--;)f(a[ce]);re(t)}}else t.__e=n.__e,t.__k=n.__k,e.then||re(t);M.__e(e,t,n)}else s=t.__e=ae(n.__e,t,n,r,i,a,o,c,l,u);return(d=M.diffed)&&d(t),128&t.__u?void 0:s}function re(e){e&&e.__c&&(e.__c.__g|=4),e&&e.__k&&e.__k.forEach(re)}function O(e,t,n){for(var r=0;r<n.length;r++)oe(n[r],n[++r],n[++r]);M.__c&&M.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){M.__e(e,t.__v)}})}function ie(e){return typeof e!=`object`||!e||e.__b&&e.__b>0?e:Se(e)?e.map(ie):N({},e)}function ae(e,t,n,r,i,a,o,s,c,l){var u,d,p,m,h,g,_,y,b=n.props,x=t.props,C=t.type;if(C==`svg`?i=`http://www.w3.org/2000/svg`:C==`math`?i=`http://www.w3.org/1998/Math/MathML`:i||=`http://www.w3.org/1999/xhtml`,a!=null){for(u=0;u<a.length;u++)if((h=a[u])&&`setAttribute`in h==!!C&&(C?h.localName==C:h.nodeType==3)){e=h,a[u]=null;break}}if(e==null){if(C==null)return l.createTextNode(x);e=l.createElementNS(i,C,x.is&&x),s&&=(M.__m&&M.__m(t,a),!1),a=null}if(C==null)b===x||s&&e.data==x||(e.data=x);else{if(a&&=Ce.call(e.childNodes),b=n.props||be,!s&&a!=null)for(b={},u=0;u<e.attributes.length;u++)b[(h=e.attributes[u]).name]=h.value;for(u in b)if(h=b[u],u!=`children`){if(u==`dangerouslySetInnerHTML`)p=h;else if(!(u in x)){if(u==`value`&&`defaultValue`in x||u==`checked`&&`defaultChecked`in x)continue;E(e,u,null,h,i)}}for(u in y=1&n.__u,x)h=x[u],u==`children`?m=h:u==`dangerouslySetInnerHTML`?d=h:u==`value`?g=h:u==`checked`?_=h:s&&typeof h!=`function`||b[u]===h&&!y||E(e,u,h,b[u],i);if(d)s||p&&(d.__html==p.__html||d.__html==e.innerHTML)||(e.innerHTML=d.__html),t.__k=[];else if(p&&(e.innerHTML=``),S(C==`template`?e.content:e,Se(m)?m:[m],t,n,r,C==`foreignObject`?`http://www.w3.org/1999/xhtml`:i,a,o,a?a[0]:n.__k&&v(n,0),s,c,l),a!=null)for(u=a.length;u--;)f(a[u]);s||(u=`value`,C==`progress`&&g==null?e.removeAttribute(`value`):g==null||g===e[u]&&(C!==`progress`||g)||E(e,u,g,b[u],i),u=`checked`,_!=null&&_!=e[u]&&E(e,u,_,b[u],i))}return e}function oe(e,t,n){try{if(typeof e==`function`){var r=typeof e.__u==`function`;r&&e.__u(),r&&t==null||(e.__u=e(t))}else e.current=t}catch(e){M.__e(e,n)}}function k(e,t,n){var r,i;if(M.unmount&&M.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||oe(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){M.__e(e,t)}r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&k(r[i],t,n||typeof e.type!=`function`);n||f(e.__e),e.__e&&e.__e.__l&&(e.__e.__l=null),e.__e=e.__c=e.__=null}function se(e,t,n){return this.constructor(e,n)}function A(e,t){var n,r,i,a;t==document&&(t=document.documentElement),M.__&&M.__(e,t),r=(n=!!(e&&32&e.__u))?null:t.__k,e=t.__k=p(g,null,[e]),i=[],a=[],D(t,e,r||be,be,t.namespaceURI,r?null:t.firstChild?Ce.call(t.childNodes):null,i,r?r.__e:t.firstChild,n,a,t.ownerDocument),O(i,e,a)}function ce(e,t){e.__u|=32,A(e,t)}function j(e,t,n){var r,i,a,o=N({},e.props);for(a in t)a==`key`?r=t[a]:a==`ref`&&typeof e.type!=`function`?i=t[a]:o[a]=t[a];return arguments.length>2&&(o.children=arguments.length>3?Ce.call(arguments,2):n),m(e.type,o,r||e.key,i||e.ref,null)}function le(e){function t(e){var n,r;return this.getChildContext||(n=new Set,(r={})[t.__c]=this,this.getChildContext=function(){return r},this.componentWillUnmount=function(){n=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&n.forEach(function(e){e.__g|=4,b(e)})},this.sub=function(e){n.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n&&n.delete(e),t&&t.call(e)}}),e.children}return t.__c=`__cC`+ye++,t.__=e,t.Provider=t.__l=(t.Consumer=function(e,t){return e.children(t)}).contextType=t,t}var M,ue,de,fe,pe,me,he,ge,_e,ve,ye,be,xe,Se,Ce,N,we=o((()=>{be={},xe=[],Se=Array.isArray,Ce=xe.slice,N=Object.assign,M={__e:function(e,t,n,r){for(var i,a,o;t=t.__;)if((i=t.__c)&&!(1&i.__g)){i.__g|=4;try{if((a=i.constructor)&&a.getDerivedStateFromError!=null&&(i.setState(a.getDerivedStateFromError(e)),o=8&i.__g),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),o=8&i.__g),o)return void(i.__g|=2)}catch(t){e=t}}throw pe=0,e}},ue=0,_.prototype.setState=function(e,t){var n=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=N({},this.state);typeof e==`function`&&(e=e(N({},n),this.props)),e&&N(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),b(this))},_.prototype.forceUpdate=function(e){this.__v&&(this.__g|=4,e&&this.__h.push(e),b(this))},_.prototype.render=g,de=[],pe=0,me=function(e,t){return e.__v.__b-t.__v.__b},he=/(PointerCapture)$|Capture$/i,ge=0,_e=ne(!1),ve=ne(!0),ye=0}));function Te(e,t){I.__h&&I.__h(F,e,qe||t),qe=0;var n=F.__H||(F.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Ee(e){return qe=1,De(Ue,e)}function De(e,t,n){var r=Te(P++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Ue(void 0,t),function(e){var t=r.__N?r.__N[0]:r.__[0],n=r.t(t,e);Ke(t,n)||(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=F,!F.__f)){var i=function(e,t,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter(function(e){return!!e.__c});if(i.every(function(e){return!e.__N}))return!a||a.call(this,e,t,n);var o=r.__c.props!==e;return i.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,Ke(t,e.__[0])||(o=!0)}}),a&&a.call(this,e,t,n)||o};F.__f=!0;var a=F.shouldComponentUpdate,o=F.componentWillUpdate;F.componentWillUpdate=function(e,t,n){if(4&this.__g){var r=a;a=void 0,i(e,t,n),a=r}o&&o.call(this,e,t,n)},F.shouldComponentUpdate=i}return r.__N||r.__}function Oe(e,t){var n=Te(P++,3);!I.__s&&He(n.__H,t)&&(n.__=e,n.u=t,F.__H.__h.push(n))}function ke(e,t){var n=Te(P++,4);!I.__s&&He(n.__H,t)&&(n.__=e,n.u=t,F.__h.push(n))}function Ae(e){return qe=5,Me(function(){return{current:e}},[])}function je(e,t,n){qe=6,ke(function(){if(typeof e==`function`){var n=e(t());return function(){e(null),n&&typeof n==`function`&&n()}}if(e)return e.current=t(),function(){return e.current=null}},n==null?n:n.concat(e))}function Me(e,t){var n=Te(P++,7);return He(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Ne(e,t){return qe=8,Me(function(){return e},t)}function Pe(e){var t=F.context[e.__c],n=Te(P++,9);return n.c=e,t?(n.__??(n.__=!0,t.sub(F)),t.props.value):e.__}function Fe(e,t){I.useDebugValue&&I.useDebugValue(t?t(e):e)}function Ie(e){var t=Te(P++,10),n=Ee();return t.__=e,F.componentDidCatch||(F.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function Le(){var e=Te(P++,11);if(!e.__){for(var t=F.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__=`P`+n[0]+`-`+n[1]++}return e.__}function Re(){for(var e;e=Je.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Be),e.__H.__h.forEach(Ve),e.__H.__h=[]}catch(t){e.__H.__h=[],I.__e(t,e.__v)}}function ze(e){var t,n=function(){clearTimeout(r),tt&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);tt&&(t=requestAnimationFrame(n))}function Be(e){var t=F,n=e.__c;typeof n==`function`&&(e.__c=void 0,n()),F=t}function Ve(e){var t=F;e.__c=e.__(),F=t}function He(e,t){return!e||e.length!==t.length||t.some(function(t,n){return!Ke(t,e[n])})}function Ue(e,t){return typeof t==`function`?t(e):t}var P,F,We,Ge,Ke,qe,Je,I,Ye,Xe,Ze,Qe,$e,et,tt,nt=o((()=>{we(),Ke=Object.is,qe=0,Je=[],I=M,Ye=I.__b,Xe=I.__r,Ze=I.diffed,Qe=I.__c,$e=I.unmount,et=I.__,I.__b=function(e){F=null,Ye&&Ye(e)},I.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),et&&et(e,t)},I.__r=function(e){Xe&&Xe(e),P=0;var t=(F=e.__c).__H;t&&(We===F?(t.__h=[],F.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.forEach(Be),t.__h.forEach(Ve),t.__h=[],P=0)),We=F},I.diffed=function(e){Ze&&Ze(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(Je.push(t)!==1&&Ge===I.requestAnimationFrame||((Ge=I.requestAnimationFrame)||ze)(Re)),t.__H.__.forEach(function(e){e.u&&(e.__H=e.u),e.u=void 0})),We=F=null},I.__c=function(e,t){t.some(function(e){try{e.__h.forEach(Be),e.__h=e.__h.filter(function(e){return!e.__||Ve(e)})}catch(n){t.some(function(e){e.__h&&=[]}),t=[],I.__e(n,e.__v)}}),Qe&&Qe(e,t)},I.unmount=function(e){$e&&$e(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{Be(e)}catch(e){t=e}}),n.__H=void 0,t&&I.__e(t,n.__v))},tt=typeof requestAnimationFrame==`function`})),rt=c({Children:()=>Rt,Component:()=>_,Fragment:()=>g,PureComponent:()=>ut,StrictMode:()=>tn,Suspense:()=>ht,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:()=>Qt,cloneElement:()=>kt,createContext:()=>le,createElement:()=>p,createFactory:()=>Tt,createPortal:()=>yt,createRef:()=>h,default:()=>rn,findDOMNode:()=>jt,flushSync:()=>en,forwardRef:()=>ft,hydrate:()=>xt,isElement:()=>nn,isFragment:()=>Dt,isMemo:()=>Ot,isValidElement:()=>Et,lazy:()=>gt,memo:()=>dt,render:()=>bt,startTransition:()=>ot,unmountComponentAtNode:()=>At,unstable_batchedUpdates:()=>Mt,useCallback:()=>Ne,useContext:()=>Pe,useDebugValue:()=>Fe,useDeferredValue:()=>st,useEffect:()=>Oe,useErrorBoundary:()=>Ie,useId:()=>Le,useImperativeHandle:()=>je,useInsertionEffect:()=>Nt,useLayoutEffect:()=>ke,useMemo:()=>Me,useReducer:()=>De,useRef:()=>Ae,useState:()=>Ee,useSyncExternalStore:()=>it,useTransition:()=>ct,version:()=>$t});function it(e,t){var n=t(),r=Ee({t:{__:n,u:t}}),i=r[0].t,a=r[1];return ke(function(){i.__=n,i.u=t,at(i)&&a({t:i})},[e,n,t]),Oe(function(){return at(i)&&a({t:i}),e(function(){at(i)&&a({t:i})})},[e]),n}function at(e){var t=e.u,n=e.__;try{var r=t();return!Object.is(n,r)}catch{return!0}}function ot(e){e()}function st(e){return e}function ct(){return[!1,ot]}function lt(e,t){for(var n in e)if(n!==`__source`&&!(n in t))return!0;for(var r in t)if(r!==`__source`&&e[r]!==t[r])return!0;return!1}function ut(e,t){this.props=e,this.context=t}function dt(e,t){function n(e){var n=this.props.ref,r=n==e.ref;return!r&&n&&(n.call?n(null):n.current=null),t?!t(this.props,e)||!r:lt(this.props,e)}function r(t){return this.shouldComponentUpdate=n,p(e,t)}return r.displayName=`Memo(`+(e.displayName||e.name)+`)`,r.prototype.isReactComponent=!0,r.type=e,r}function ft(e){function t(t){var n=Pt({},t);return delete n.ref,e(n,t.ref||null)}return t.$$typeof=It,t.render=e,t.prototype.isReactComponent=!0,t.displayName=`ForwardRef(`+(e.displayName||e.name)+`)`,t}function pt(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(e){typeof e.__c==`function`&&e.__c()}),e.__c.__H=null),(e=Pt({},e)).__c!=null&&(e.__c.__P===n&&(e.__c.__P=t),e.__c.__g|=4,e.__c=null),e.__k=e.__k&&e.__k.map(function(e){return pt(e,t,n)})),e}function mt(e,t,n){return e&&n&&(typeof e.type==`string`&&(e.__u|=1),e.__v=null,e.__k=e.__k&&e.__k.map(function(e){return mt(e,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.appendChild(e.__e),e.__c.__g|=4,e.__c.__P=n)),e}function ht(){this.__u=0,this.o=null,this.__b=null}function gt(e){var t,n,r;function i(i){if(t||(t=e()).then(function(e){n=e.default||e},function(e){r=e}),r)throw r;if(!n)throw t;return p(n,i)}return i.displayName=`Lazy`,i}function _t(e){return this.getChildContext=function(){return e.context},e.children}function vt(e){var t=this,n=e.i;if(t.componentWillUnmount=function(){A(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),!t.l){for(var r=t.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],__k:{__m:r.__m},ownerDocument:n.ownerDocument,insertBefore:function(e,n){this.childNodes.push(e),t.i.insertBefore(e,n)}}}A(p(_t,{context:t.context},e.__v),t.l)}function yt(e,t){var n=p(vt,{__v:e,i:t});return n.containerInfo=t,n}function bt(e,t,n){return t.__k??(t.textContent=``),A(e,t),typeof n==`function`&&n(),e?e.__c:null}function xt(e,t,n){return ce(e,t),typeof n==`function`&&n(),e?e.__c:null}function St(){}function Ct(){return this.cancelBubble}function wt(){return this.defaultPrevented}function Tt(e){return p.bind(null,e)}function Et(e){return!!e&&e.$$typeof===Vt}function Dt(e){return Et(e)&&e.type===g}function Ot(e){return!!e&&!!e.displayName&&(typeof e.displayName==`string`||e.displayName instanceof String)&&e.displayName.startsWith(`Memo(`)}function kt(e){return Et(e)?j.apply(null,arguments):e}function At(e){return!!e.__k&&(A(null,e),!0)}function jt(e){return e&&(e.__v&&e.__v.__e||e.nodeType===1&&e)||null}function Mt(e,t){return e(t)}var Nt,Pt,Ft,It,Lt,Rt,zt,Bt,Vt,Ht,Ut,Wt,Gt,Kt,qt,Jt,Yt,Xt,Zt,Qt,$t,en,tn,nn,rn,an=o((()=>{we(),nt(),nt(),Nt=ke,Pt=Object.assign,Ft=/^(-|f[lo].*[^se]$|g.{5,}[^ps]$|z|o[pr]|(W.{5})?[lL]i.*(t|mp)$|an|(bo|s).{4}Im|sca|m.{6}[ds]|ta|c.*[st]$|wido|ini)/,(ut.prototype=new _).isPureReactComponent=!0,ut.prototype.shouldComponentUpdate=function(e,t){return lt(this.props,e)||lt(this.state,t)},It=Symbol.for(`react.forward_ref`),Lt=function(e,t,n){return e==null?null:T(T(e).map(t.bind(n)))},Rt={map:Lt,forEach:Lt,count:function(e){return e?T(e).length:0},only:function(e){var t=T(e);if(t.length!==1)throw`Children.only`;return t[0]},toArray:T},zt=M.__e,M.__e=function(e,t,n,r){if(e.then){for(var i,a=t;a=a.__;)if((i=a.__c)&&i.__c)return t.__e??(t.__e=n.__e,t.__k=n.__k),i.__c(e,t)}zt(e,t,n,r)},Bt=M.unmount,M.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),Bt&&Bt(e)},(ht.prototype=new _).__c=function(e,t){var n=t.__c,r=this;r.o??=[],r.o.push(n);var i=!1,a=function(){i||(i=!0,n.__R=null,o())};n.__R=a;var o=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=mt(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.o.pop();)t.forceUpdate()}};r.__u++||32&t.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},ht.prototype.componentWillUnmount=function(){this.o=[]},ht.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement(`div`),r=this.__v.__k[0].__c;this.__v.__k[0]=pt(this.__b,n,r.__O=r.__P)}this.__b=null}return[p(g,null,t.__a?null:e.children),t.__a&&p(g,null,e.fallback)]},Vt=Symbol.for(`react.element`),Ht=/^(?: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]/,Ut=/[A-Z0-9]/g,Wt=typeof document<`u`,Gt=function(e){return/fil|che|rad/.test(e)},_.prototype.isReactComponent={},[`componentWillMount`,`componentWillReceiveProps`,`componentWillUpdate`].forEach(function(e){Object.defineProperty(_.prototype,e,{configurable:!0,get:function(){return this[`UNSAFE_`+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}),Kt=M.event,M.event=function(e){return Kt&&(e=Kt(e)),e.persist=St,e.isPropagationStopped=Ct,e.isDefaultPrevented=wt,e.nativeEvent=e},Jt={enumerable:!1,configurable:!0,get:function(){return this.class}},Yt=M.vnode,M.vnode=function(e){if(typeof e.type==`string`)(function(e){var t=e.props,n=e.type,r={},i=n.indexOf(`-`)===-1;for(var a in t){var o=t[a];if(!(a===`value`&&`defaultValue`in t&&o==null||Wt&&a===`children`&&n===`noscript`||a===`class`||a===`className`)){if(a===`style`&&typeof o==`object`)for(var s in o)typeof o[s]!=`number`||Ft.test(s)||(o[s]+=`px`);else if(a===`defaultValue`&&`value`in t&&t.value==null)a=`value`;else if(a===`download`&&!0===o)o=``;else if(a===`translate`&&o===`no`)o=!1;else if(a[0]===`o`&&a[1]===`n`){var c=a.toLowerCase();c===`ondoubleclick`?a=`ondblclick`:c!==`onchange`||n!==`input`&&n!==`textarea`||Gt(t.type)?c===`onfocus`?a=`onfocusin`:c===`onblur`&&(a=`onfocusout`):c=a=`oninput`,c===`oninput`&&r[a=c]&&(a=`oninputCapture`)}else i&&Ht.test(a)?a=a.replace(Ut,`-$&`).toLowerCase():o===null&&(o=void 0);r[a]=o}}n==`select`&&r.multiple&&Array.isArray(r.value)&&(r.value=T(t.children).forEach(function(e){e.props.selected=r.value.indexOf(e.props.value)!=-1})),n==`select`&&r.defaultValue!=null&&(r.value=T(t.children).forEach(function(e){e.props.selected=r.multiple?r.defaultValue.indexOf(e.props.value)!=-1:r.defaultValue==e.props.value})),t.class&&!t.className?(r.class=t.class,Object.defineProperty(r,"className",Jt)):(t.className&&!t.class||t.class&&t.className)&&(r.class=r.className=t.className),e.props=r})(e);else if(typeof e.type==`function`&&(`ref`in e.props&&`prototype`in e.type&&e.type.prototype.render&&(e.ref=e.props.ref,delete e.props.ref),e.type.defaultProps)){var t=Pt({},e.props);for(var n in e.type.defaultProps)t[n]===void 0&&(t[n]=e.type.defaultProps[n]);e.props=t}e.$$typeof=Vt,Yt&&Yt(e)},Xt=M.__r,M.__r=function(e){Xt&&Xt(e),qt=e.__c},Zt=M.diffed,M.diffed=function(e){Zt&&Zt(e);var t=e.props,n=e.__e;n!=null&&e.type===`textarea`&&`value`in t&&t.value!==n.value&&(n.value=t.value==null?``:t.value),qt=null},Qt={ReactCurrentDispatcher:{current:{readContext:function(e){return qt.__n[e.__c].props.value},useCallback:Ne,useContext:Pe,useDebugValue:Fe,useDeferredValue:st,useEffect:Oe,useId:Le,useImperativeHandle:je,useInsertionEffect:Nt,useLayoutEffect:ke,useMemo:Me,useReducer:De,useRef:Ae,useState:Ee,useSyncExternalStore:it,useTransition:ct}}},$t=`18.3.1`,en=function(e,t){return e(t)},tn=g,nn=Et,rn={useState:Ee,useId:Le,useReducer:De,useEffect:Oe,useLayoutEffect:ke,useInsertionEffect:Nt,useTransition:ct,useDeferredValue:st,useSyncExternalStore:it,startTransition:ot,useRef:Ae,useImperativeHandle:je,useMemo:Me,useCallback:Ne,useContext:Pe,useDebugValue:Fe,version:`18.3.1`,Children:Rt,render:bt,hydrate:xt,unmountComponentAtNode:At,createPortal:yt,createElement:p,createContext:le,createFactory:Tt,cloneElement:kt,createRef:h,Fragment:g,isValidElement:Et,isElement:nn,isFragment:Dt,isMemo:Ot,findDOMNode:jt,Component:_,PureComponent:ut,memo:dt,forwardRef:ft,flushSync:en,unstable_batchedUpdates:Mt,StrictMode:tn,Suspense:ht,lazy:gt,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Qt}}));an();function on(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 sn(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}var cn=function(){function e(e){var t=this;this._insertTag=function(e){var n=t.tags.length===0?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling;t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=e.speedy===void 0||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(sn(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=on(t);try{n.insertRule(e,n.cssRules.length)}catch{}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode?.removeChild(e)}),this.tags=[],this.ctr=0},e}(),L=`-ms-`,ln=`-moz-`,R=`-webkit-`,un=`comm`,dn=`rule`,fn=`decl`,pn=`@import`,mn=`@keyframes`,hn=`@layer`,gn=Math.abs,_n=String.fromCharCode,vn=Object.assign;function yn(e,t){return B(e,0)^45?(((t<<2^B(e,0))<<2^B(e,1))<<2^B(e,2))<<2^B(e,3):0}function bn(e){return e.trim()}function xn(e,t){return(e=t.exec(e))?e[0]:e}function z(e,t,n){return e.replace(t,n)}function Sn(e,t){return e.indexOf(t)}function B(e,t){return e.charCodeAt(t)|0}function Cn(e,t,n){return e.slice(t,n)}function V(e){return e.length}function wn(e){return e.length}function Tn(e,t){return t.push(e),e}function En(e,t){return e.map(t).join(``)}var Dn=1,On=1,kn=0,H=0,U=0,An=``;function jn(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Dn,column:On,length:o,return:``}}function Mn(e,t){return vn(jn(``,null,null,``,null,null,0),e,{length:-e.length},t)}function Nn(){return U}function Pn(){return U=H>0?B(An,--H):0,On--,U===10&&(On=1,Dn--),U}function W(){return U=H<kn?B(An,H++):0,On++,U===10&&(On=1,Dn++),U}function G(){return B(An,H)}function Fn(){return H}function In(e,t){return Cn(An,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 Rn(e){return Dn=On=1,kn=V(An=e),H=0,[]}function zn(e){return An=``,e}function Bn(e){return bn(In(H-1,Un(e===91?e+2:e===40?e+1:e)))}function Vn(e){for(;(U=G())&&U<33;)W();return Ln(e)>2||Ln(U)>3?``:` `}function Hn(e,t){for(;--t&&W()&&!(U<48||U>102||U>57&&U<65||U>70&&U<97););return In(e,Fn()+(t<6&&G()==32&&W()==32))}function Un(e){for(;W();)switch(U){case e:return H;case 34:case 39:e!==34&&e!==39&&Un(U);break;case 40:e===41&&Un(e);break;case 92:W()}return H}function Wn(e,t){for(;W()&&e+U!==57&&(e+U!==84||G()!==47););return`/*`+In(t,H-1)+`*`+_n(e===47?e:W())}function Gn(e){for(;!Ln(G());)W();return In(e,H)}function Kn(e){return zn(qn(``,null,null,null,[``],e=Rn(e),0,[0],e))}function qn(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=W()){case 40:if(m!=108&&B(C,d-1)==58){Sn(C+=z(Bn(v),`&`,`&\f`),`&\f`)!=-1&&(_=-1);break}case 34:case 39:case 91:C+=Bn(v);break;case 9:case 10:case 13:case 32:C+=Vn(m);break;case 92:C+=Hn(Fn()-1,7);continue;case 47:switch(G()){case 42:case 47:Tn(Yn(Wn(W(),Fn()),t,n),c);break;default:C+=`/`}break;case 123*h:s[l++]=V(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=z(C,/\f/g,``)),p>0&&V(C)-d&&Tn(p>32?Xn(C+`;`,r,n,d-1):Xn(z(C,` `,``)+`;`,r,n,d-2),c);break;case 59:C+=`;`;default:if(Tn(S=Jn(C,t,n,l,u,i,s,y,b=[],x=[],d),a),v===123){if(u===0)qn(C,t,S,S,b,a,d,s,x);else switch(f===99&&B(C,3)===110?100:f){case 100:case 108:case 109:case 115:qn(e,S,S,r&&Tn(Jn(e,S,S,0,0,i,s,y,i,b=[],d),x),i,x,d,s,r?b:x);break;default:qn(C,S,S,S,[``],x,0,s,x)}}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+V(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&Pn()==125)continue}switch(C+=_n(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(V(C)-1)*_,_=1;break;case 64:G()===45&&(C+=Bn(W())),f=G(),u=d=V(y=C+=Gn(Fn())),v++;break;case 45:m===45&&V(C)==2&&(h=0)}}return a}function Jn(e,t,n,r,i,a,o,s,c,l,u){for(var d=i-1,f=i===0?a:[``],p=wn(f),m=0,h=0,g=0;m<r;++m)for(var _=0,v=Cn(e,d+1,d=gn(h=o[m])),y=e;_<p;++_)(y=bn(h>0?f[_]+` `+v:z(v,/&\f/g,f[_])))&&(c[g++]=y);return jn(e,t,n,i===0?dn:s,c,l,u)}function Yn(e,t,n){return jn(e,t,n,un,_n(Nn()),Cn(e,2,-2),0)}function Xn(e,t,n,r){return jn(e,t,n,fn,Cn(e,0,r),Cn(e,r+1,-1),r)}function Zn(e,t){for(var n=``,r=wn(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||``;return n}function Qn(e,t,n,r){switch(e.type){case hn:if(e.children.length)break;case pn:case fn:return e.return=e.return||e.value;case un:return``;case mn:return e.return=e.value+`{`+Zn(e.children,r)+`}`;case dn:e.value=e.props.join(`,`)}return V(n=Zn(e.children,r))?e.return=e.value+`{`+n+`}`:``}function $n(e){var t=wn(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function er(e){return function(t){t.root||(t=t.return)&&e(t)}}function tr(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var nr=function(e,t,n){for(var r=0,i=0;r=i,i=G(),r===38&&i===12&&(t[n]=1),!Ln(i);)W();return In(e,H)},rr=function(e,t){var n=-1,r=44;do switch(Ln(r)){case 0:r===38&&G()===12&&(t[n]=1),e[n]+=nr(H-1,t,n);break;case 2:e[n]+=Bn(r);break;case 4:if(r===44){e[++n]=G()===58?`&\f`:``,t[n]=e[n].length;break}default:e[n]+=_n(r)}while(r=W());return e},ir=function(e,t){return zn(rr(Rn(e),t))},ar=new WeakMap,or=function(e){if(!(e.type!==`rule`||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!==`rule`;)if(n=n.parent,!n)return;if((e.props.length!==1||t.charCodeAt(0)===58||ar.get(n))&&!r){ar.set(e,!0);for(var i=[],a=ir(t,i),o=n.props,s=0,c=0;s<a.length;s++)for(var l=0;l<o.length;l++,c++)e.props[c]=i[s]?a[s].replace(/&\f/g,o[l]):o[l]+` `+a[s]}}},sr=function(e){if(e.type===`decl`){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return=``,e.value=``)}};function cr(e,t){switch(yn(e,t)){case 5103:return R+`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 R+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return R+e+ln+e+L+e+e;case 6828:case 4268:return R+e+L+e+e;case 6165:return R+e+L+`flex-`+e+e;case 5187:return R+e+z(e,/(\w+).+(:[^]+)/,R+`box-$1$2`+L+`flex-$1$2`)+e;case 5443:return R+e+L+`flex-item-`+z(e,/flex-|-self/,``)+e;case 4675:return R+e+L+`flex-line-pack`+z(e,/align-content|flex-|-self/,``)+e;case 5548:return R+e+L+z(e,`shrink`,`negative`)+e;case 5292:return R+e+L+z(e,`basis`,`preferred-size`)+e;case 6060:return R+`box-`+z(e,`-grow`,``)+R+e+L+z(e,`grow`,`positive`)+e;case 4554:return R+z(e,/([^-])(transform)/g,`$1`+R+`$2`)+e;case 6187:return z(z(z(e,/(zoom-|grab)/,R+`$1`),/(image-set)/,R+`$1`),e,``)+e;case 5495:case 3959:return z(e,/(image-set\([^]*)/,R+"$1$`$1");case 4968:return z(z(e,/(.+:)(flex-)?(.*)/,R+`box-pack:$3`+L+`flex-pack:$3`),/s.+-b[^;]+/,`justify`)+R+e+e;case 4095:case 3583:case 4068:case 2532:return z(e,/(.+)-inline(.+)/,R+`$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(V(e)-1-t>6)switch(B(e,t+1)){case 109:if(B(e,t+4)!==45)break;case 102:return z(e,/(.+:)(.+)-([^]+)/,`$1`+R+`$2-$3$1`+ln+(B(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~Sn(e,`stretch`)?cr(z(e,`stretch`,`fill-available`),t)+e:e}break;case 4949:if(B(e,t+1)!==115)break;case 6444:switch(B(e,V(e)-3-(~Sn(e,`!important`)&&10))){case 107:return z(e,`:`,`:`+R)+e;case 101:return z(e,/(.+:)([^;!]+)(;|!.+)?/,`$1`+R+(B(e,14)===45?`inline-`:``)+`box$3$1`+R+`$2$3$1`+L+`$2box$3`)+e}break;case 5936:switch(B(e,t+11)){case 114:return R+e+L+z(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return R+e+L+z(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return R+e+L+z(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}return R+e+L+e+e}return e}var lr=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case fn:e.return=cr(e.value,e.length);break;case mn:return Zn([Mn(e,{value:z(e.value,`@`,`@`+R)})],r);case dn:if(e.length)return En(e.props,function(t){switch(xn(t,/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:return Zn([Mn(e,{props:[z(t,/:(read-\w+)/,`:`+ln+`$1`)]})],r);case`::placeholder`:return Zn([Mn(e,{props:[z(t,/:(plac\w+)/,`:`+R+`input-$1`)]}),Mn(e,{props:[z(t,/:(plac\w+)/,`:`+ln+`$1`)]}),Mn(e,{props:[z(t,/:(plac\w+)/,L+`input-$1`)]})],r)}return``})}}],ur=function(e){var t=e.key;if(t===`css`){var n=document.querySelectorAll(`style[data-emotion]:not([data-s])`);Array.prototype.forEach.call(n,function(e){e.getAttribute(`data-emotion`).indexOf(` `)!==-1&&(document.head.appendChild(e),e.setAttribute(`data-s`,``))})}var r=e.stylisPlugins||lr,i={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll(`style[data-emotion^="`+t+` "]`),function(e){for(var t=e.getAttribute(`data-emotion`).split(` `),n=1;n<t.length;n++)i[t[n]]=!0;o.push(e)});var s,c=[or,sr],l,u=[Qn,er(function(e){l.insert(e)})],d=$n(c.concat(r,u)),f=function(e){return Zn(Kn(e),d)};s=function(e,t,n,r){l=n,f(e?e+`{`+t.styles+`}`:t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new cn({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return p.sheet.hydrate(o),p},dr=s((e=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),fr=s(((e,t)=>{t.exports=dr()})),pr=s(((e,t)=>{var n=fr(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[n.ForwardRef]=a,s[n.Memo]=o;function c(e){return n.isMemo(e)?o:s[e.$$typeof]||r}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function h(e,t,n){if(typeof t!=`string`){if(m){var r=p(t);r&&r!==m&&h(e,r,n)}var a=u(t);d&&(a=a.concat(d(t)));for(var o=c(e),s=c(t),g=0;g<a.length;++g){var _=a[g];if(!i[_]&&!(n&&n[_])&&!(s&&s[_])&&!(o&&o[_])){var v=f(t,_);try{l(e,_,v)}catch{}}}}return e}t.exports=h}));function mr(e,t,n){var r=``;return n.split(` `).forEach(function(n){e[n]===void 0?n&&(r+=n+` `):t.push(e[n]+`;`)}),r}var hr=function(e,t,n){var r=e.key+`-`+t.name;n===!1&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},gr=function(e,t,n){hr(e,t,n);var r=e.key+`-`+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?`.`+r:``,i,e.sheet,!0),i=i.next;while(i!==void 0)}};function _r(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&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)}var vr={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},yr=/[A-Z]|^ms/g,br=/_EMO_([^_]+?)_([^]*?)_EMO_/g,xr=function(e){return e.charCodeAt(1)===45},Sr=function(e){return e!=null&&typeof e!=`boolean`},Cr=tr(function(e){return xr(e)?e:e.replace(yr,`-$&`).toLowerCase()}),wr=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(br,function(e,t,n){return K={name:t,styles:n,next:K},t})}return vr[e]!==1&&!xr(e)&&typeof t==`number`&&t!==0?t+`px`:t};function Tr(e,t,n){if(n==null)return``;var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case`boolean`:return``;case`object`:var i=n;if(i.anim===1)return K={name:i.name,styles:i.styles,next:K},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)K={name:o.name,styles:o.styles,next:K},o=o.next;return a.styles+`;`}return Er(e,t,n);case`function`:if(e!==void 0){var s=K,c=n(e);return K=s,Tr(e,t,c)}}var l=n;if(t==null)return l;var u=t[l];return u===void 0?l:u}function Er(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Tr(e,t,n[i])+`;`;else for(var a in n){var o=n[a];if(typeof o!=`object`){var s=o;t!=null&&t[s]!==void 0?r+=a+`{`+t[s]+`}`:Sr(s)&&(r+=Cr(a)+`:`+wr(a,s)+`;`)}else if(Array.isArray(o)&&typeof o[0]==`string`&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)Sr(o[c])&&(r+=Cr(a)+`:`+wr(a,o[c])+`;`);else{var l=Tr(e,t,o);switch(a){case`animation`:case`animationName`:r+=Cr(a)+`:`+l+`;`;break;default:r+=a+`{`+l+`}`}}}return r}var Dr=/label:\s*([^\s;{]+)\s*(;|$)/g,K;function Or(e,t,n){if(e.length===1&&typeof e[0]==`object`&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i=``;K=void 0;var a=e[0];a==null||a.raw===void 0?(r=!1,i+=Tr(n,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=Tr(n,t,e[o]),r&&(i+=a[o]);Dr.lastIndex=0;for(var s=``,c;(c=Dr.exec(i))!==null;)s+=`-`+c[1];return{name:_r(i)+s,styles:i,next:K}}var kr=function(e){return e()},Ar=Nt||!1,jr=Ar||kr,Mr=Ar||ke;an();var Nr=le(typeof HTMLElement<`u`?ur({key:`css`}):null);Nr.Provider;var Pr=function(e){return ft(function(t,n){return e(t,Pe(Nr),n)})},Fr=le({}),Ir={}.hasOwnProperty,Lr=`__EMOTION_TYPE_PLEASE_DO_NOT_USE__`,Rr=function(e,t){var n={};for(var r in t)Ir.call(t,r)&&(n[r]=t[r]);return n[Lr]=e,n},zr=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return hr(t,n,r),jr(function(){return gr(t,n,r)}),null},Br=Pr(function(e,t,n){var r=e.css;typeof r==`string`&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[Lr],a=[r],o=``;typeof e.className==`string`?o=mr(t.registered,a,e.className):e.className!=null&&(o=e.className+` `);var s=Or(a,void 0,Pe(Fr));o+=t.key+`-`+s.name;var c={};for(var l in e)Ir.call(e,l)&&l!==`css`&&l!==Lr&&(c[l]=e[l]);return c.className=o,n&&(c.ref=n),p(g,null,p(zr,{cache:t,serialized:s,isStringTag:typeof i==`string`}),p(i,c))});an(),pr();var Vr=function(e,t){var n=arguments;if(t==null||!Ir.call(t,`css`))return p.apply(void 0,n);var r=n.length,i=Array(r);i[0]=Br,i[1]=Rr(e,t);for(var a=2;a<r;a++)i[a]=n[a];return p.apply(null,i)};(function(e){var t;t||=e.JSX||={}})(Vr||={});var Hr=Pr(function(e,t){var n=e.styles,r=Or([n],void 0,Pe(Fr)),i=Ae();return Mr(function(){var e=t.key+`-global`,n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,o=document.querySelector(`style[data-emotion="`+e+` `+r.name+`"]`);return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),o!==null&&(a=!0,o.setAttribute(`data-emotion`,e),n.hydrate([o])),i.current=[n,a],function(){n.flush()}},[t]),Mr(function(){var e=i.current,n=e[0];if(e[1]){e[1]=!1;return}r.next!==void 0&&gr(t,r.next,!0),n.tags.length&&(n.before=n.tags[n.tags.length-1].nextElementSibling,n.flush()),t.insert(``,r,n,!1)},[t,r.name]),null});function Ur(){return Or([...arguments])}function Wr(){var e=Ur.apply(void 0,arguments),t=`animation-`+e.name;return{name:t,styles:`@keyframes `+t+`{`+e.styles+`}`,anim:1,toString:function(){return`_EMO_`+this.name+`_`+this.styles+`_EMO_`}}}function Gr(){return typeof window<`u`}function Kr(e){return qr(e)?(e.nodeName||``).toLowerCase():`#document`}function q(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function J(e){return((qr(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function qr(e){return Gr()?e instanceof Node||e instanceof q(e).Node:!1}function Y(e){return Gr()?e instanceof Element||e instanceof q(e).Element:!1}function X(e){return Gr()?e instanceof HTMLElement||e instanceof q(e).HTMLElement:!1}function Jr(e){return!Gr()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof q(e).ShadowRoot}var Yr=new Set([`inline`,`contents`]);function Xr(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=Z(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!Yr.has(i)}var Zr=new Set([`table`,`td`,`th`]);function Qr(e){return Zr.has(Kr(e))}var $r=[`:popover-open`,`:modal`];function ei(e){return $r.some(t=>{try{return e.matches(t)}catch{return!1}})}var ti=[`transform`,`translate`,`scale`,`rotate`,`perspective`],ni=[`transform`,`translate`,`scale`,`rotate`,`perspective`,`filter`],ri=[`paint`,`layout`,`strict`,`content`];function ii(e){let t=oi(),n=Y(e)?Z(e):e;return ti.some(e=>n[e]?n[e]!==`none`:!1)||(n.containerType?n.containerType!==`normal`:!1)||!t&&(n.backdropFilter?n.backdropFilter!==`none`:!1)||!t&&(n.filter?n.filter!==`none`:!1)||ni.some(e=>(n.willChange||``).includes(e))||ri.some(e=>(n.contain||``).includes(e))}function ai(e){let t=ui(e);for(;X(t)&&!ci(t);){if(ii(t))return t;if(ei(t))return null;t=ui(t)}return null}function oi(){return typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter`,`none`)}var si=new Set([`html`,`body`,`#document`]);function ci(e){return si.has(Kr(e))}function Z(e){return q(e).getComputedStyle(e)}function li(e){return Y(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ui(e){if(Kr(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Jr(e)&&e.host||J(e);return Jr(t)?t.host:t}function di(e){let t=ui(e);return ci(t)?e.ownerDocument?e.ownerDocument.body:e.body:X(t)&&Xr(t)?t:di(t)}function fi(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=di(e),i=r===e.ownerDocument?.body,a=q(r);if(i){let e=pi(a);return t.concat(a,a.visualViewport||[],Xr(r)?r:[],e&&n?fi(e):[])}return t.concat(r,fi(r,[],n))}function pi(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var mi=Math.min,Q=Math.max,hi=Math.round,gi=Math.floor,$=e=>({x:e,y:e}),_i={left:`right`,right:`left`,bottom:`top`,top:`bottom`},vi={start:`end`,end:`start`};function yi(e,t,n){return Q(e,mi(t,n))}function bi(e,t){return typeof e==`function`?e(t):e}function xi(e){return e.split(`-`)[0]}function Si(e){return e.split(`-`)[1]}function Ci(e){return e===`x`?`y`:`x`}function wi(e){return e===`y`?`height`:`width`}var Ti=new Set([`top`,`bottom`]);function Ei(e){return Ti.has(xi(e))?`y`:`x`}function Di(e){return Ci(Ei(e))}function Oi(e,t,n){n===void 0&&(n=!1);let r=Si(e),i=Di(e),a=wi(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=Li(o)),[o,Li(o)]}function ki(e){let t=Li(e);return[Ai(e),t,Ai(t)]}function Ai(e){return e.replace(/start|end/g,e=>vi[e])}var ji=[`left`,`right`],Mi=[`right`,`left`],Ni=[`top`,`bottom`],Pi=[`bottom`,`top`];function Fi(e,t,n){switch(e){case`top`:case`bottom`:return n?t?Mi:ji:t?ji:Mi;case`left`:case`right`:return t?Ni:Pi;default:return[]}}function Ii(e,t,n,r){let i=Si(e),a=Fi(xi(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(Ai)))),a}function Li(e){return e.replace(/left|right|bottom|top/g,e=>_i[e])}function Ri(e){return{top:0,right:0,bottom:0,left:0,...e}}function zi(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:Ri(e)}function Bi(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}we();var Vi=0;Array.isArray;function Hi(e,t,n,r,i,a){t||={};var o,s,c=t;if(`ref`in c&&typeof e!=`function`)for(s in c={},t)s==`ref`?o=t[s]:c[s]=t[s];var l={type:e,props:c,key:n,ref:o,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Vi,__i:-1,__u:0,__source:i,__self:a};return M.vnode&&M.vnode(l),l}an();function Ui(e,t,n){let{reference:r,floating:i}=e,a=Ei(t),o=Di(t),s=wi(o),c=xi(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}switch(Si(t)){case`start`:p[o]-=f*(n&&l?-1:1);break;case`end`:p[o]+=f*(n&&l?-1:1)}return p}var Wi=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=a.filter(Boolean),c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=Ui(l,r,c),f=r,p={},m=0;for(let n=0;n<s.length;n++){let{name:a,fn:h}=s[n],{x:g,y:_,data:v,reset:y}=await h({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:p,rects:l,platform:o,elements:{reference:e,floating:t}});u=g??u,d=_??d,p={...p,[a]:{...p[a],...v}},y&&m<=50&&(m++,typeof y==`object`&&(y.placement&&(f=y.placement),y.rects&&(l=y.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):y.rects),{x:u,y:d}=Ui(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:p}};async function Gi(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=bi(t,e),p=zi(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=Bi(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=Bi(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var Ki=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=bi(e,t)||{};if(l==null)return{};let d=zi(u),f={x:n,y:r},p=Di(i),m=wi(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,ee=mi(d[_],T),te=mi(d[v],T),E=ee,ne=C-h[m]-te,D=C/2-h[m]/2+w,re=yi(E,D,ne),O=!c.arrow&&Si(i)!=null&&D!==re&&a.reference[m]/2-(D<E?ee:te)-h[m]/2<0,ie=O?D<E?D-E:D-ne:0;return{[p]:f[p]+ie,data:{[p]:re,centerOffset:D-re-ie,...O&&{alignmentOffset:ie}},reset:O}}}),qi=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=bi(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=xi(r),_=Ei(o),v=xi(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[Li(o)]:ki(o)),x=p!==`none`;!d&&x&&b.push(...Ii(o,m,p,y));let S=[o,...b],C=await Gi(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=Oi(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===Ei(t)||T.every(e=>Ei(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=Ei(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}},Ji=new Set([`left`,`top`]);async function Yi(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=xi(n),s=Si(n),c=Ei(n)===`y`,l=Ji.has(o)?-1:1,u=a&&c?-1:1,d=bi(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Xi=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await Yi(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},Zi=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i}=t,{mainAxis:a=!0,crossAxis:o=!1,limiter:s={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=bi(e,t),l={x:n,y:r},u=await Gi(t,c),d=Ei(xi(i)),f=Ci(d),p=l[f],m=l[d];if(a){let e=f===`y`?`top`:`left`,t=f===`y`?`bottom`:`right`,n=p+u[e],r=p-u[t];p=yi(n,p,r)}if(o){let e=d===`y`?`top`:`left`,t=d===`y`?`bottom`:`right`,n=m+u[e],r=m-u[t];m=yi(n,m,r)}let h=s.fn({...t,[f]:p,[d]:m});return{...h,data:{x:h.x-n,y:h.y-r,enabled:{[f]:a,[d]:o}}}}}},Qi=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){var n,r;let{placement:i,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=bi(e,t),u=await Gi(t,l),d=xi(i),f=Si(i),p=Ei(i)===`y`,{width:m,height:h}=a.floating,g,_;d===`top`||d===`bottom`?(g=d,_=f===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(_=d,g=f===`end`?`top`:`bottom`);let v=h-u.top-u.bottom,y=m-u.left-u.right,b=mi(h-u[g],v),x=mi(m-u[_],y),S=!t.middlewareData.shift,C=b,w=x;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(w=y),(r=t.middlewareData.shift)!=null&&r.enabled.y&&(C=v),S&&!f){let e=Q(u.left,0),t=Q(u.right,0),n=Q(u.top,0),r=Q(u.bottom,0);p?w=m-2*(e!==0||t!==0?e+t:Q(u.left,u.right)):C=h-2*(n!==0||r!==0?n+r:Q(u.top,u.bottom))}await c({...t,availableWidth:w,availableHeight:C});let T=await o.getDimensions(s.floating);return m!==T.width||h!==T.height?{reset:{rects:!0}}:{}}}};function $i(e){let t=Z(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=X(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=hi(n)!==a||hi(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function ea(e){return Y(e)?e:e.contextElement}function ta(e){let t=ea(e);if(!X(t))return $(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=$i(t),o=(a?hi(n.width):n.width)/r,s=(a?hi(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var na=$(0);function ra(e){let t=q(e);return!oi()||!t.visualViewport?na:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ia(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==q(e)?!1:t}function aa(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=ea(e),o=$(1);t&&(r?Y(r)&&(o=ta(r)):o=ta(e));let s=ia(a,n,r)?ra(a):$(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a){let e=q(a),t=r&&Y(r)?q(r):r,n=e,i=pi(n);for(;i&&r&&t!==n;){let e=ta(i),t=i.getBoundingClientRect(),r=Z(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=q(i),i=pi(n)}}return Bi({width:u,height:d,x:c,y:l})}function oa(e,t){let n=li(e).scrollLeft;return t?t.left+n:aa(J(e)).left+n}function sa(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-oa(e,n),y:n.top+t.scrollTop}}function ca(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=J(r),s=t?ei(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=$(1),u=$(0),d=X(r);if((d||!d&&!a)&&((Kr(r)!==`body`||Xr(o))&&(c=li(r)),X(r))){let e=aa(r);l=ta(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?sa(o,c):$(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function la(e){return Array.from(e.getClientRects())}function ua(e){let t=J(e),n=li(e),r=e.ownerDocument.body,i=Q(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=Q(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),o=-n.scrollLeft+oa(e),s=-n.scrollTop;return Z(r).direction===`rtl`&&(o+=Q(t.clientWidth,r.clientWidth)-i),{width:i,height:a,x:o,y:s}}var da=25;function fa(e,t){let n=q(e),r=J(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;let e=oi();(!e||e&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}let l=oa(r);if(l<=0){let e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(r.clientWidth-t.clientWidth-i);o<=da&&(a-=o)}else l<=da&&(a+=l);return{width:a,height:o,x:s,y:c}}var pa=new Set([`absolute`,`fixed`]);function ma(e,t){let n=aa(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=X(e)?ta(e):$(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function ha(e,t,n){let r;if(t===`viewport`)r=fa(e,n);else if(t===`document`)r=ua(J(e));else if(Y(t))r=ma(t,n);else{let n=ra(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Bi(r)}function ga(e,t){let n=ui(e);return n===t||!Y(n)||ci(n)?!1:Z(n).position===`fixed`||ga(n,t)}function _a(e,t){let n=t.get(e);if(n)return n;let r=fi(e,[],!1).filter(e=>Y(e)&&Kr(e)!==`body`),i=null,a=Z(e).position===`fixed`,o=a?ui(e):e;for(;Y(o)&&!ci(o);){let t=Z(o),n=ii(o);!n&&t.position===`fixed`&&(i=null),(a?!n&&!i:!n&&t.position===`static`&&i&&pa.has(i.position)||Xr(o)&&!n&&ga(e,o))?r=r.filter(e=>e!==o):i=t,o=ui(o)}return t.set(e,r),r}function va(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?ei(t)?[]:_a(t,this._c):[].concat(n),r],o=a[0],s=a.reduce((e,n)=>{let r=ha(t,n,i);return e.top=Q(r.top,e.top),e.right=mi(r.right,e.right),e.bottom=mi(r.bottom,e.bottom),e.left=Q(r.left,e.left),e},ha(t,o,i));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function ya(e){let{width:t,height:n}=$i(e);return{width:t,height:n}}function ba(e,t,n){let r=X(t),i=J(t),a=n===`fixed`,o=aa(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=$(0);function l(){c.x=oa(i)}if(r||!r&&!a){if((Kr(t)!==`body`||Xr(i))&&(s=li(t)),r){let e=aa(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l()}a&&!r&&i&&l();let u=i&&!r&&!a?sa(i,s):$(0);return{x:o.left+s.scrollLeft-c.x-u.x,y:o.top+s.scrollTop-c.y-u.y,width:o.width,height:o.height}}function xa(e){return Z(e).position===`static`}function Sa(e,t){if(!X(e)||Z(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return J(e)===n&&(n=n.ownerDocument.body),n}function Ca(e,t){let n=q(e);if(ei(e))return n;if(!X(e)){let t=ui(e);for(;t&&!ci(t);){if(Y(t)&&!xa(t))return t;t=ui(t)}return n}let r=Sa(e,t);for(;r&&Qr(r)&&xa(r);)r=Sa(r,t);return r&&ci(r)&&xa(r)&&!ii(r)?n:r||ai(e)||n}var wa=async function(e){let t=this.getOffsetParent||Ca,n=this.getDimensions,r=await n(e.floating);return{reference:ba(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ta(e){return Z(e).direction===`rtl`}var Ea={convertOffsetParentRelativeRectToViewportRelativeRect:ca,getDocumentElement:J,getClippingRect:va,getOffsetParent:Ca,getElementRects:wa,getClientRects:la,getDimensions:ya,getScale:ta,isElement:Y,isRTL:Ta};function Da(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Oa(e,t){let n=null,r,i=J(e);function a(){var e;clearTimeout(r),(e=n)==null||e.disconnect(),n=null}function o(s,c){s===void 0&&(s=!1),c===void 0&&(c=1),a();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(s||t(),!f||!p)return;let m=gi(d),h=gi(i.clientWidth-(u+f)),g=gi(i.clientHeight-(d+p)),_=gi(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:Q(0,mi(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(n!==c){if(!y)return o();n?o(!1,n):r=setTimeout(()=>{o(!1,1e-7)},1e3)}n===1&&!Da(l,e.getBoundingClientRect())&&o(),y=!1}try{n=new IntersectionObserver(b,{...v,root:i.ownerDocument})}catch{n=new IntersectionObserver(b,v)}n.observe(e)}return o(!0),a}function ka(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=ea(e),u=i||a?[...l?fi(l):[],...fi(t)]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n,{passive:!0}),a&&e.addEventListener(`resize`,n)});let d=l&&s?Oa(l,n):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let m,h=c?aa(e):null;c&&g();function g(){let t=aa(e);h&&!Da(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Aa=Xi,ja=Zi,Ma=qi,Na=Qi,Pa=Ki,Fa=(e,t,n)=>{let r=new Map,i={platform:Ea,...n},a={...i.platform,_c:r};return Wi(e,t,{...i,platform:a})};an();var Ia=g,La=function(e,t,n){return Ir.call(t,`css`)?Hi(Br,Rr(e,t),n):Hi(e,t,n)},Ra=function(e,t,n){return Ir.call(t,`css`)?Hi(Br,Rr(e,t),n):Hi(e,t,n)},za=e=>{let[t,n]=e.split(`:`);return{origin:t,id:n}},Ba=(e,t)=>{let n=e.split(`,`).filter(Boolean).map(e=>za(e));return t?n.find(({origin:e})=>e===t):n},Va=({origin:e,id:t})=>`${e}:${t}`,Ha=e=>e.join(`,`),Ua=e=>{let t=e.split(`:`).filter(e=>e.length);if(t[1]?.includes(`,`))throw Error(`Invalid uri: ${e}, contains "," character in id`);return t.length===2},Wa=/[,/()]/,Ga=e=>{let t=e.indexOf(`:`);return t>0&&!Wa.test(e.slice(t+1))},Ka=e=>e.split(`,`).every(Ua),qa=/ag:\((.*)\)(?:-(.*))?/,Ja=e=>{if(!e?.startsWith(`ag:`))return!1;let t=e.match(qa);if(!t)return!1;let n=t?.[1];return!n||Ka(n)},Ya=e=>Ja(e)||!Ga(e)||!Ua(e)?e:Qa([e]),Xa=(e,t)=>{if(!e||!t||!Ja(e)||!Ja(t)||!to(e,t))return!1;let n=eo(e)?.handleUris??[],r=eo(t)?.handleUris??[];return n.length>r.length},Za=e=>{if(!e||Ua(e)||Ja(e))return e;try{let t=decodeURIComponent(e);return Ua(t)||Ja(t)?t:e}catch{return e}},Qa=(e,t)=>`ag:(${$a(e)})${t?`-${t}`:``}`,$a=(e,t=!0)=>t?$a(Ba(Array.isArray(e)?e.join(`,`):e).filter(e=>e.origin&&e.id).sort((e,t)=>e.id.localeCompare(t.id)).sort((e,t)=>e.origin.localeCompare(t.origin)).map(Va),!1):encodeURI(Array.isArray(e)?e.join(`,`):e),eo=e=>{if(typeof e!=`string`)return;let t=e.match(qa);if(!t)return;let n=Ba(t[1]).filter(e=>e.origin&&e.id).sort((e,t)=>e.id.localeCompare(t.id)).sort((e,t)=>e.origin.localeCompare(t.origin));return t&&{uri:`ag:(${Ha(n.map(Va))})`,origin:`ag`,id:`(${Ha(n.map(Va))})`,handleUris:n.map(Va),handleUrisString:Ha(n.map(Va)),handleUrisValues:n,episodeId:t[2]}},to=(e,t)=>{let n=eo(e),r=eo(t);return!n||!r?!1:n.handleUris.some(e=>r.handleUris.some(t=>e===t))};export{Pe as $,Hr as A,rt as B,ui as C,qr as D,ci as E,rn as F,ke as G,an as H,Rt as I,je as J,Ae as K,yt as L,Wr as M,dt as N,Jr as O,it as P,nt as Q,ft as R,fi as S,X as T,Et as U,kt as V,Nt as W,Ne as X,Oe as Y,Ee as Z,ja as _,Ja as a,we as at,Z as b,Xa as c,s as ct,Ra as d,d as dt,Me as et,Pa as f,u as ft,Aa as g,Ma as h,za as i,p as it,Ur as j,oi as k,Ia as l,o as lt,Fa as m,Za as n,A as nt,Ga as o,g as ot,ka as p,Le as q,eo as r,le as rt,to as s,_ as st,Ya as t,De as tt,La as u,c as ut,Na as v,Y as w,Kr as x,Hi as y,en as z};
@@ -1 +1 @@
1
- import{o as e}from"./lib-BqoXHewM.js";import{a as t}from"./build-BuC_lDPE.js";function n(e){return new Worker(`/assets/index-CPsp3E-B.js`,{type:`module`,name:e?.name})}var r=(t,n)=>e.fetch(t,n),i=`banou26/stub`,a=`season-seed`,o=e=>`https://github.com/${i}/releases/download/${a}/${e}`,s=e=>e.startsWith(o(``)),c=`export`,l=`store`,u=`answers`,d=(e,t,n)=>{try{return new URL(e,n).searchParams.getAll(c).includes(t)}catch{return!1}},f=(e,t)=>d(e,l,t),p=(e,t)=>d(e,u,t),m=`query`,h=(e,t)=>d(e,m,t),g=`store`,_=`legacy`,v=(e,t)=>{try{return new URL(e,t).searchParams.get(g)===_}catch{return!1}},y=`trace`,b=(e,t)=>{try{return new URL(e,t).searchParams.getAll(y).includes(`1`)}catch{return!1}},x=`seed`,S=(e,t)=>{try{return new URL(e,t).searchParams.getAll(x).includes(`off`)}catch{return!1}},C=e=>typeof e==`string`?e:e instanceof URL?e.href:e.url,w=(e,t)=>S(e)&&s(C(t)),T=new n;t({fetch:(e,t)=>w(location.href,e)?new Response(null,{status:404,statusText:`the season seed is switched off for this page`}):r(e,t)},{transport:T,key:`fetch`});var{handleRequest:E,setUserKeys:D,registerRemoteSource:O,unregisterRemoteSource:k,remotePicker:A,remotePlayer:j,selectRemoteRelease:M,exportStore:N,exportAnswers:P,exportAsks:F,graphCounts:I,traceGraph:L,traceAnswer:R,setGraphEnabled:z,setReadStore:B}=await t({},{transport:T,key:`yoga`}),V=new URLSearchParams(location.search);v(location.href)?z(V.has(`graph`)):await B(`graph`);export{b as _,E as a,j as c,R as d,L as f,h as g,f as h,I as i,M as l,p as m,F as n,O as o,k as p,N as r,A as s,P as t,D as u};
1
+ import{a as e}from"./build-CQLpK1BK.js";import{a as t}from"./lib-Co-0V6DV.js";function n(e){return new Worker(`/assets/index-js0hDSG0.js`,{type:`module`,name:e?.name})}var r=(e,n)=>t.fetch(e,n),i=`banou26/stub`,a=`season-seed`,o=e=>`https://github.com/${i}/releases/download/${a}/${e}`,s=e=>e.startsWith(o(``)),c=`export`,l=`store`,u=`answers`,d=(e,t,n)=>{try{return new URL(e,n).searchParams.getAll(c).includes(t)}catch{return!1}},f=(e,t)=>d(e,l,t),p=(e,t)=>d(e,u,t),m=`query`,h=(e,t)=>d(e,m,t),g=`store`,_=`legacy`,v=(e,t)=>{try{return new URL(e,t).searchParams.get(g)===_}catch{return!1}},y=`trace`,b=(e,t)=>{try{return new URL(e,t).searchParams.getAll(y).includes(`1`)}catch{return!1}},x=`seed`,S=(e,t)=>{try{return new URL(e,t).searchParams.getAll(x).includes(`off`)}catch{return!1}},C=e=>typeof e==`string`?e:e instanceof URL?e.href:e.url,w=(e,t)=>S(e)&&s(C(t)),T=new n;e({fetch:(e,t)=>w(location.href,e)?new Response(null,{status:404,statusText:`the season seed is switched off for this page`}):r(e,t)},{transport:T,key:`fetch`});var{handleRequest:E,setUserKeys:D,registerRemoteSource:O,unregisterRemoteSource:k,remotePicker:A,remotePlayer:j,selectRemoteRelease:M,exportStore:N,exportAnswers:P,exportAsks:F,graphCounts:I,traceGraph:L,traceAnswer:R,setGraphEnabled:z,setReadStore:B}=await e({},{transport:T,key:`yoga`}),V=new URLSearchParams(location.search);v(location.href)?z(V.has(`graph`)):await B(`graph`);export{b as _,E as a,j as c,R as d,L as f,h as g,f as h,I as i,M as l,p as m,F as n,O as o,k as p,N as r,A as s,P as t,D as u};
@@ -1 +1 @@
1
- import{a as e,c as t,d as n,f as r,i,l as a,n as o,o as s,p as c,r as l,s as u,t as d,u as f}from"./worker-BCl_Bm_R.js";export{d as exportAnswers,o as exportAsks,l as exportStore,i as graphCounts,e as handleRequest,s as registerRemoteSource,u as remotePicker,t as remotePlayer,a as selectRemoteRelease,f as setUserKeys,n as traceAnswer,r as traceGraph,c as unregisterRemoteSource};
1
+ import{a as e,c as t,d as n,f as r,i,l as a,n as o,o as s,p as c,r as l,s as u,t as d,u as f}from"./worker-BwFHZ688.js";export{d as exportAnswers,o as exportAsks,l as exportStore,i as graphCounts,e as handleRequest,s as registerRemoteSource,u as remotePicker,t as remotePlayer,a as selectRemoteRelease,f as setUserKeys,n as traceAnswer,r as traceGraph,c as unregisterRemoteSource};
package/build/embed.html CHANGED
@@ -4,45 +4,14 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>Stub - Embed</title>
7
- <style>
8
- * {
9
- margin: 0;
10
- padding: 0;
11
- box-sizing: border-box;
12
- user-select: none;
13
- -webkit-user-select: none;
14
- }
15
- ::selection {
16
- background: transparent;
17
- }
18
- ::-moz-selection {
19
- background: transparent;
20
- }
21
- html, body {
22
- width: 100%;
23
- height: 100%;
24
- background: #000;
25
- overflow: hidden;
26
- -webkit-tap-highlight-color: transparent;
27
- }
28
- #app, #app > div {
29
- width: 100%;
30
- height: 100%;
31
- }
32
- #app > div > iframe {
33
- width: 100% !important;
34
- height: 100% !important;
35
- aspect-ratio: unset !important;
36
- border-radius: 0 !important;
37
- }
38
- </style>
39
- <script type="module" crossorigin src="/assets/embed-k24RBb_R.js"></script>
40
- <link rel="modulepreload" crossorigin href="/assets/build-BuC_lDPE.js">
41
- <link rel="modulepreload" crossorigin href="/assets/api-BdTgLphT-QGKmIqNg.js">
42
- <link rel="modulepreload" crossorigin href="/assets/account-DjnuxpAV.js">
43
- <link rel="modulepreload" crossorigin href="/assets/lib-BqoXHewM.js">
44
- <link rel="modulepreload" crossorigin href="/assets/uri-BYw9k-7q.js">
45
- <link rel="modulepreload" crossorigin href="/assets/remote-CW2xewp5.js">
7
+ <style>*{box-sizing:border-box;-webkit-user-select:none;user-select:none;margin:0;padding:0}::selection{background:0 0}::selection{background:0 0}html,body{-webkit-tap-highlight-color:transparent;background:#000;width:100%;height:100%;overflow:hidden}#app,#app>div{width:100%;height:100%}#app>div>iframe{width:100%!important;height:100%!important;aspect-ratio:unset!important;border-radius:0!important}</style>
8
+ <script type="module" crossorigin src="/assets/embed-BiH-YCjQ.js"></script>
9
+ <link rel="modulepreload" crossorigin href="/assets/uri-DvH8-88e.js">
10
+ <link rel="modulepreload" crossorigin href="/assets/build-CQLpK1BK.js">
11
+ <link rel="modulepreload" crossorigin href="/assets/api-BdTgLphT-N3l6mbjo.js">
12
+ <link rel="modulepreload" crossorigin href="/assets/account-BENsgVNM.js">
13
+ <link rel="modulepreload" crossorigin href="/assets/lib-Co-0V6DV.js">
14
+ <link rel="modulepreload" crossorigin href="/assets/remote-CVVOdyaq.js">
46
15
  <link rel="stylesheet" crossorigin href="/assets/embed-3a7RYKgR.css">
47
16
  </head>
48
17
  <body>
package/build/index.html CHANGED
@@ -4,15 +4,15 @@
4
4
  <meta charset="UTF-8" />
5
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
6
  <title>Stub</title>
7
- <script type="module" crossorigin src="/assets/main-Cpi6zSh1.js"></script>
8
- <link rel="modulepreload" crossorigin href="/assets/build-BuC_lDPE.js">
9
- <link rel="modulepreload" crossorigin href="/assets/api-BdTgLphT-QGKmIqNg.js">
10
- <link rel="modulepreload" crossorigin href="/assets/account-DjnuxpAV.js">
11
- <link rel="modulepreload" crossorigin href="/assets/lib-BqoXHewM.js">
12
- <link rel="modulepreload" crossorigin href="/assets/uri-BYw9k-7q.js">
13
- <link rel="modulepreload" crossorigin href="/assets/worker-BCl_Bm_R.js">
14
- <link rel="modulepreload" crossorigin href="/assets/remote-CW2xewp5.js">
15
- <link rel="stylesheet" crossorigin href="/assets/main-DZ0Ws1xk.css">
7
+ <script type="module" crossorigin src="/assets/main-CzEKJyQ-.js"></script>
8
+ <link rel="modulepreload" crossorigin href="/assets/uri-DvH8-88e.js">
9
+ <link rel="modulepreload" crossorigin href="/assets/build-CQLpK1BK.js">
10
+ <link rel="modulepreload" crossorigin href="/assets/api-BdTgLphT-N3l6mbjo.js">
11
+ <link rel="modulepreload" crossorigin href="/assets/account-BENsgVNM.js">
12
+ <link rel="modulepreload" crossorigin href="/assets/lib-Co-0V6DV.js">
13
+ <link rel="modulepreload" crossorigin href="/assets/worker-BwFHZ688.js">
14
+ <link rel="modulepreload" crossorigin href="/assets/remote-CVVOdyaq.js">
15
+ <link rel="stylesheet" crossorigin href="/assets/main-CSyC6ryz.css">
16
16
  </head>
17
17
  <body>
18
18
  <iframe src="https://fkn.app/api" style="position: fixed; top: 0; left: 0; width: 100%; height: 100%; border: none; clip-path: inset(100%);"></iframe>