BetterChat

Screenshot Freely, Save Media, Bypass Presence Detection and more!

// ==UserScript==
// @name         BetterChat
// @version      1.5.0
// @description  Screenshot Freely, Save Media, Bypass Presence Detection and more!
// @author       [email protected]
// @match        https://*.snapchat.com/*
// @icon         https://better-chat.pages.dev/logo128.png
// @run-at       document-start
// @grant        GM_addElement
// @connect      better-chat.vasp.dev
// @license      MIT
// @namespace    https://better-chat.vasp.dev
// ==/UserScript==

GM_addElement('script', {
  type: 'text/javascript',
  textContent: "\"use strict\";(()=>{var yy=Object.create;var fr=Object.defineProperty,Sy=Object.defineProperties,Cy=Object.getOwnPropertyDescriptor,wy=Object.getOwnPropertyDescriptors,_y=Object.getOwnPropertyNames,ma=Object.getOwnPropertySymbols,Fy=Object.getPrototypeOf,ll=Object.prototype.hasOwnProperty,yc=Object.prototype.propertyIsEnumerable;var vc=(e,o,t)=>o in e?fr(e,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[o]=t,u=(e,o)=>{for(var t in o||(o={}))ll.call(o,t)&&vc(e,t,o[t]);if(ma)for(var t of ma(o))yc.call(o,t)&&vc(e,t,o[t]);return e},g=(e,o)=>Sy(e,wy(o));var C=(e,o)=>{var t={};for(var r in e)ll.call(e,r)&&o.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&ma)for(var r of ma(e))o.indexOf(r)<0&&yc.call(e,r)&&(t[r]=e[r]);return t};var d=(e,o)=>()=>(e&&(o=e(e=0)),o);var Ct=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports),Z=(e,o)=>{for(var t in o)fr(e,t,{get:o[t],enumerable:!0})},Sc=(e,o,t,r)=>{if(o&&typeof o==\"object\"||typeof o==\"function\")for(let a of _y(o))!ll.call(e,a)&&a!==t&&fr(e,a,{get:()=>o[a],enumerable:!(r=Cy(o,a))||r.enumerable});return e};var v=(e,o,t)=>(t=e!=null?yy(Fy(e)):{},Sc(o||!e||!e.__esModule?fr(t,\"default\",{value:e,enumerable:!0}):t,e)),Cc=e=>Sc(fr({},\"__esModule\",{value:!0}),e);function sl(){var o;if(pa!=null)return pa;let e=document.createElement(\"iframe\");return e.style.display=\"none\",((o=document.head)!=null?o:document.documentElement).appendChild(e),pa=e.contentWindow,pa}function Qo(...e){let{console:o}=sl();o.log(`%c${fl}`,\"color: #3b5bdb\",...e)}function wc(...e){let{console:o}=sl();o.warn(fl,...e)}function _c(...e){let{console:o}=sl();o.error(fl,...e)}var fl,pa,xa=d(()=>{\"use strict\";fl=\"[Better-Chat]\",pa=null});var Rc=Ct((G_,Fc)=>{\"use strict\";Fc.exports=function e(o,t){if(o===t)return!0;if(o&&t&&typeof o==\"object\"&&typeof t==\"object\"){if(o.constructor!==t.constructor)return!1;var r,a,n;if(Array.isArray(o)){if(r=o.length,r!=t.length)return!1;for(a=r;a--!==0;)if(!e(o[a],t[a]))return!1;return!0}if(o.constructor===RegExp)return o.source===t.source&&o.flags===t.flags;if(o.valueOf!==Object.prototype.valueOf)return o.valueOf()===t.valueOf();if(o.toString!==Object.prototype.toString)return o.toString()===t.toString();if(n=Object.keys(o),r=n.length,r!==Object.keys(t).length)return!1;for(a=r;a--!==0;)if(!Object.prototype.hasOwnProperty.call(t,n[a]))return!1;for(a=r;a--!==0;){var l=n[a];if(!e(o[l],t[l]))return!1}return!0}return o!==o&&t!==t}});var Mc=Ct(($_,Ec)=>{var Pc=\"Expected a function\",Bc=NaN,Ry=\"[object Symbol]\",By=/^\\s+|\\s+$/g,Ay=/^[-+]0x[0-9a-f]+$/i,Py=/^0b[01]+$/i,Ey=/^0o[0-7]+$/i,My=parseInt,Ty=typeof global==\"object\"&&global&&global.Object===Object&&global,Dy=typeof self==\"object\"&&self&&self.Object===Object&&self,ky=Ty||Dy||Function(\"return this\")(),Ly=Object.prototype,Oy=Ly.toString,Ny=Math.max,Hy=Math.min,il=function(){return ky.Date.now()};function zy(e,o,t){var r,a,n,l,f,s,i=0,m=!1,c=!1,x=!0;if(typeof e!=\"function\")throw new TypeError(Pc);o=Ac(o)||0,Ia(t)&&(m=!!t.leading,c=\"maxWait\"in t,n=c?Ny(Ac(t.maxWait)||0,o):n,x=\"trailing\"in t?!!t.trailing:x);function I(O){var A=r,E=a;return r=a=void 0,i=O,l=e.apply(E,A),l}function h(O){return i=O,f=setTimeout(w,o),m?I(O):l}function b(O){var A=O-s,E=O-i,T=o-A;return c?Hy(T,n-E):T}function S(O){var A=O-s,E=O-i;return s===void 0||A>=o||A<0||c&&E>=n}function w(){var O=il();if(S(O))return F(O);f=setTimeout(w,b(O))}function F(O){return f=void 0,x&&r?I(O):(r=a=void 0,l)}function B(){f!==void 0&&clearTimeout(f),i=0,r=s=a=f=void 0}function P(){return f===void 0?l:F(il())}function D(){var O=il(),A=S(O);if(r=arguments,a=this,s=O,A){if(f===void 0)return h(s);if(c)return f=setTimeout(w,o),I(s)}return f===void 0&&(f=setTimeout(w,o)),l}return D.cancel=B,D.flush=P,D}function Wy(e,o,t){var r=!0,a=!0;if(typeof e!=\"function\")throw new TypeError(Pc);return Ia(t)&&(r=\"leading\"in t?!!t.leading:r,a=\"trailing\"in t?!!t.trailing:a),zy(e,o,{leading:r,maxWait:o,trailing:a})}function Ia(e){var o=typeof e;return!!e&&(o==\"object\"||o==\"function\")}function Uy(e){return!!e&&typeof e==\"object\"}function Vy(e){return typeof e==\"symbol\"||Uy(e)&&Oy.call(e)==Ry}function Ac(e){if(typeof e==\"number\")return e;if(Vy(e))return Bc;if(Ia(e)){var o=typeof e.valueOf==\"function\"?e.valueOf():e;e=Ia(o)?o+\"\":o}if(typeof e!=\"string\")return e===0?e:+e;e=e.replace(By,\"\");var t=Py.test(e);return t||Ey.test(e)?My(e.slice(2),t?2:8):Ay.test(e)?Bc:+e}Ec.exports=Wy});var Dc=Ct((q_,cl)=>{\"use strict\";var Gy=Object.prototype.hasOwnProperty,ze=\"~\";function sr(){}Object.create&&(sr.prototype=Object.create(null),new sr().__proto__||(ze=!1));function $y(e,o,t){this.fn=e,this.context=o,this.once=t||!1}function Tc(e,o,t,r,a){if(typeof t!=\"function\")throw new TypeError(\"The listener must be a function\");var n=new $y(t,r||e,a),l=ze?ze+o:o;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],n]:e._events[l].push(n):(e._events[l]=n,e._eventsCount++),e}function ha(e,o){--e._eventsCount===0?e._events=new sr:delete e._events[o]}function Le(){this._events=new sr,this._eventsCount=0}Le.prototype.eventNames=function(){var o=[],t,r;if(this._eventsCount===0)return o;for(r in t=this._events)Gy.call(t,r)&&o.push(ze?r.slice(1):r);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(t)):o};Le.prototype.listeners=function(o){var t=ze?ze+o:o,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var a=0,n=r.length,l=new Array(n);a<n;a++)l[a]=r[a].fn;return l};Le.prototype.listenerCount=function(o){var t=ze?ze+o:o,r=this._events[t];return r?r.fn?1:r.length:0};Le.prototype.emit=function(o,t,r,a,n,l){var f=ze?ze+o:o;if(!this._events[f])return!1;var s=this._events[f],i=arguments.length,m,c;if(s.fn){switch(s.once&&this.removeListener(o,s.fn,void 0,!0),i){case 1:return s.fn.call(s.context),!0;case 2:return s.fn.call(s.context,t),!0;case 3:return s.fn.call(s.context,t,r),!0;case 4:return s.fn.call(s.context,t,r,a),!0;case 5:return s.fn.call(s.context,t,r,a,n),!0;case 6:return s.fn.call(s.context,t,r,a,n,l),!0}for(c=1,m=new Array(i-1);c<i;c++)m[c-1]=arguments[c];s.fn.apply(s.context,m)}else{var x=s.length,I;for(c=0;c<x;c++)switch(s[c].once&&this.removeListener(o,s[c].fn,void 0,!0),i){case 1:s[c].fn.call(s[c].context);break;case 2:s[c].fn.call(s[c].context,t);break;case 3:s[c].fn.call(s[c].context,t,r);break;case 4:s[c].fn.call(s[c].context,t,r,a);break;default:if(!m)for(I=1,m=new Array(i-1);I<i;I++)m[I-1]=arguments[I];s[c].fn.apply(s[c].context,m)}}return!0};Le.prototype.on=function(o,t,r){return Tc(this,o,t,r,!1)};Le.prototype.once=function(o,t,r){return Tc(this,o,t,r,!0)};Le.prototype.removeListener=function(o,t,r,a){var n=ze?ze+o:o;if(!this._events[n])return this;if(!t)return ha(this,n),this;var l=this._events[n];if(l.fn)l.fn===t&&(!a||l.once)&&(!r||l.context===r)&&ha(this,n);else{for(var f=0,s=[],i=l.length;f<i;f++)(l[f].fn!==t||a&&!l[f].once||r&&l[f].context!==r)&&s.push(l[f]);s.length?this._events[n]=s.length===1?s[0]:s:ha(this,n)}return this};Le.prototype.removeAllListeners=function(o){var t;return o?(t=ze?ze+o:o,this._events[t]&&ha(this,t)):(this._events=new sr,this._eventsCount=0),this};Le.prototype.off=Le.prototype.removeListener;Le.prototype.addListener=Le.prototype.on;Le.prefixed=ze;Le.EventEmitter=Le;typeof cl<\"u\"&&(cl.exports=Le)});var kc,Lc,Oc=d(()=>{kc=v(Dc(),1),Lc=kc.default});var ce,ir,Nc,ga,co=d(()=>{\"use strict\";ce={BITMOJI_PRESENCE:\"BITMOJI_PRESENCE\",ALLOW_SCREENSHOT:\"ALLOW_SCREENSHOT\",SAVE_IMAGE:\"SAVE_IMAGE\",ALWAYS_PRESENT:\"ALWAYS_PRESENT\",SEND_UNSAVEABLE_MESSAGES:\"SEND_UNSAVEABLE_MESSAGES\",SNAP_AS_MOBILE:\"SNAP_AS_MOBILE\",PRIVATE_STORIES:\"PRIVATE_STORIES\",UPLOAD_SNAPS:\"UPLOAD_SNAPS\",PREVENT_TYPING_NOTIFICATION:\"PREVENT_TYPING_NOTIFICATION\",PREVENT_TYPING:\"PREVENT_TYPING\",HIDE_BITMOJI:\"HIDE_BITMOJI\",MOBILE_BITMOJI:\"MOBILE_BITMOJI\",AUTO_SAVE_CHATS:\"AUTO_SAVE_CHATS\",SHOW_STREAKS:\"SHOW_STREAKS\",PREVENT_CHAT_READ_RECEIPTS:\"PREVENT_CHAT_READ_RECEIPTS\",UNLIMITED_FILE_SIZE:\"UNLIMITED_FILE_SIZE\",ALLOW_CROSS_TAB:\"ALLOW_CROSS_TAB\",PREVENT_STORY_READ_RECEIPTS:\"PREVENT_STORY_READ_RECEIPTS\",HALF_SWIPE_NOTIFICATION:\"HALF_SWIPE_NOTIFICATION\",OPEN_CHAT_NOTIFICATION:\"OPEN_CHAT_NOTIFICATION\",CHAT_HANDLING:\"CHAT_HANDLING\",PRESENCE_LOGGING:\"PRESENCE_LOGGING\",SETTINGS_BUTTON_LAYOUT:\"SETTINGS_BUTTON_LAYOUT\"},ir={[ce.ALLOW_SCREENSHOT]:!0,[ce.SAVE_IMAGE]:!0,[ce.ALWAYS_PRESENT]:!0,[ce.SEND_UNSAVEABLE_MESSAGES]:!1,[ce.SNAP_AS_MOBILE]:!1,[ce.PRIVATE_STORIES]:!1,[ce.UPLOAD_SNAPS]:!1,[ce.PREVENT_TYPING_NOTIFICATION]:!1,[ce.PREVENT_TYPING]:!1,[ce.HIDE_BITMOJI]:!1,[ce.MOBILE_BITMOJI]:!1,[ce.AUTO_SAVE_CHATS]:!1,[ce.SHOW_STREAKS]:!0,[ce.PREVENT_CHAT_READ_RECEIPTS]:!1,[ce.UNLIMITED_FILE_SIZE]:!1,[ce.ALLOW_CROSS_TAB]:!0,[ce.PREVENT_STORY_READ_RECEIPTS]:!1,[ce.HALF_SWIPE_NOTIFICATION]:!1,[ce.OPEN_CHAT_NOTIFICATION]:!1,[ce.BITMOJI_PRESENCE]:\"DEFAULT\",[ce.CHAT_HANDLING]:\"DEFAULT\",[ce.PRESENCE_LOGGING]:!1,[ce.SETTINGS_BUTTON_LAYOUT]:\"RIGHT\"},Nc={DISCORD:\"https://discord.gg/hpmjAJZR3H\",GITHUB:\"https://github.com/dclstn/better-chat\",GITHUB_DCLSTN:\"https://github.com/dclstn\",BUY_ME_A_COFFEE:\"https://www.buymeacoffee.com/dclstn\"},ga={TYPING:e=>`Typing in ${e}`,IDLE:e=>`Idle in ${e}`,PEEKING:e=>`Peeked at ${e}`}});var Hc=Ct((cr,ba)=>{(function(e,o){\"use strict\";var t=function(a){if(typeof a.document!=\"object\")throw new Error(\"Cookies.js requires a `window` with a `document` object\");var n=function(l,f,s){return arguments.length===1?n.get(l):n.set(l,f,s)};return n._document=a.document,n._cacheKeyPrefix=\"cookey.\",n._maxExpireDate=new Date(\"Fri, 31 Dec 9999 23:59:59 UTC\"),n.defaults={path:\"/\",secure:!1},n.get=function(l){n._cachedDocumentCookie!==n._document.cookie&&n._renewCache();var f=n._cache[n._cacheKeyPrefix+l];return f===o?o:decodeURIComponent(f)},n.set=function(l,f,s){return s=n._getExtendedOptions(s),s.expires=n._getExpiresDate(f===o?-1:s.expires),n._document.cookie=n._generateCookieString(l,f,s),n},n.expire=function(l,f){return n.set(l,o,f)},n._getExtendedOptions=function(l){return{path:l&&l.path||n.defaults.path,domain:l&&l.domain||n.defaults.domain,expires:l&&l.expires||n.defaults.expires,secure:l&&l.secure!==o?l.secure:n.defaults.secure}},n._isValidDate=function(l){return Object.prototype.toString.call(l)===\"[object Date]\"&&!isNaN(l.getTime())},n._getExpiresDate=function(l,f){if(f=f||new Date,typeof l==\"number\"?l=l===1/0?n._maxExpireDate:new Date(f.getTime()+l*1e3):typeof l==\"string\"&&(l=new Date(l)),l&&!n._isValidDate(l))throw new Error(\"`expires` parameter cannot be converted to a valid Date instance\");return l},n._generateCookieString=function(l,f,s){l=l.replace(/[^#$&+\\^`|]/g,encodeURIComponent),l=l.replace(/\\(/g,\"%28\").replace(/\\)/g,\"%29\"),f=(f+\"\").replace(/[^!#$&-+\\--:<-\\[\\]-~]/g,encodeURIComponent),s=s||{};var i=l+\"=\"+f;return i+=s.path?\";path=\"+s.path:\"\",i+=s.domain?\";domain=\"+s.domain:\"\",i+=s.expires?\";expires=\"+s.expires.toUTCString():\"\",i+=s.secure?\";secure\":\"\",i},n._getCacheFromString=function(l){for(var f={},s=l?l.split(\"; \"):[],i=0;i<s.length;i++){var m=n._getKeyValuePairFromCookieString(s[i]);f[n._cacheKeyPrefix+m.key]===o&&(f[n._cacheKeyPrefix+m.key]=m.value)}return f},n._getKeyValuePairFromCookieString=function(l){var f=l.indexOf(\"=\");f=f<0?l.length:f;var s=l.substr(0,f),i;try{i=decodeURIComponent(s)}catch(m){console&&typeof console.error==\"function\"&&console.error('Could not decode cookie with key \"'+s+'\"',m)}return{key:i,value:l.substr(f+1)}},n._renewCache=function(){n._cache=n._getCacheFromString(n._document.cookie),n._cachedDocumentCookie=n._document.cookie},n._areEnabled=function(){var l=\"cookies.js\",f=n.set(l,1).get(l)===\"1\";return n.expire(l),f},n.enabled=n._areEnabled(),n},r=e&&typeof e.document==\"object\"?t(e):t;typeof define==\"function\"&&define.amd?define(function(){return r}):typeof cr==\"object\"?(typeof ba==\"object\"&&typeof ba.exports==\"object\"&&(cr=ba.exports=r),cr.Cookies=r):e.Cookies=r})(typeof window>\"u\"?cr:window)});var ul,zc,dl,ml,Wc=d(()=>{\"use strict\";ul=v(Hc()),zc=\"bs_\",dl=class{constructor(){this.localStorageSupport=!0;try{window.localStorage.setItem(\"local_storage_test\",\"it works!\"),window.localStorage.removeItem(\"local_storage_test\")}catch(o){this.localStorageSupport=!1}}get(o,t=zc){let r=o;t!=null&&(r=`${t}${r}`);try{let a=this.localStorageSupport?window.localStorage.getItem(r):ul.default.get(r);return a==null?null:JSON.parse(a)}catch(a){return null}}set(o,t,r=zc){let a=o;r!=null&&(a=`${r}${a}`);let n=JSON.stringify(t);this.localStorageSupport?window.localStorage.setItem(a,n):ul.default.set(a,t,{expires:1/0})}},ml=new dl});var pl,N,Oe=d(()=>{\"use strict\";Oc();co();Wc();pl=class{constructor(){this.eventEmitter=new Lc;let o=ml.get(\"settings\");o!=null?this.settings=new Map(Object.entries(o)):this.settings=new Map}setSetting(o,t){this.settings.get(o)!==t&&(this.settings.set(o,t),ml.set(\"settings\",Object.fromEntries(this.settings)),this.eventEmitter.emit(`${o}.setting:update`,t),this.eventEmitter.emit(\"setting:update\",o,t))}getSetting(o){let t=this.settings.get(o);return t==null?(this.setSetting(o,ir[o]),ir[o]):t}getSettings(){return Object.fromEntries(this.settings)}setSettings(o){for(let[t,r]of Object.entries(o))this.setSetting(t,r)}on(o,t){this.eventEmitter.on(o,t)}off(o,t){this.eventEmitter.off(o,t)}},N=new pl});function Uc(e,o=0){return(Te[e[o+0]]+Te[e[o+1]]+Te[e[o+2]]+Te[e[o+3]]+\"-\"+Te[e[o+4]]+Te[e[o+5]]+\"-\"+Te[e[o+6]]+Te[e[o+7]]+\"-\"+Te[e[o+8]]+Te[e[o+9]]+\"-\"+Te[e[o+10]]+Te[e[o+11]]+Te[e[o+12]]+Te[e[o+13]]+Te[e[o+14]]+Te[e[o+15]]).toLowerCase()}var Te,Vc=d(()=>{Te=[];for(let e=0;e<256;++e)Te.push((e+256).toString(16).slice(1))});function Il(){if(!xl){if(typeof crypto>\"u\"||!crypto.getRandomValues)throw new Error(\"crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported\");xl=crypto.getRandomValues.bind(crypto)}return xl(qy)}var xl,qy,Gc=d(()=>{qy=new Uint8Array(16)});var jy,hl,$c=d(()=>{jy=typeof crypto<\"u\"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),hl={randomUUID:jy}});function Xy(e,o,t){var a,n,l;if(hl.randomUUID&&!o&&!e)return hl.randomUUID();e=e||{};let r=(l=(n=e.random)!=null?n:(a=e.rng)==null?void 0:a.call(e))!=null?l:Il();if(r.length<16)throw new Error(\"Random bytes length must be >= 16\");if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,o){if(t=t||0,t<0||t+16>o.length)throw new RangeError(`UUID byte range ${t}:${t+15} is out of buffer bounds`);for(let f=0;f<16;++f)o[t+f]=r[f];return o}return Uc(r)}var ur,qc=d(()=>{$c();Gc();Vc();ur=Xy});var gl=d(()=>{qc()});function bl(){if(va!=null)return va;let e=ur().replace(/-/g,\"\");return window.webpackChunk_snapchat_web_calling_app.push([[e],{[e]:(o,t,r)=>{va=r}},o=>o(e)]),va}function vl(e){let o=null;for(let t of window.webpackChunk_snapchat_web_calling_app){if(!Array.isArray(t))continue;let[,r]=t;for(let a of Object.keys(r)){let n=r[a],l=n==null?void 0:n.toString();if(!(l==null||!e(l,a))){o=a;break}}if(o!=null)break}return o}function Be(){if(ya!=null)return ya;let e=bl(),o=vl(r=>r.includes(\"broadcastTypingActivity\"));if(e==null||o==null)return null;let t=e(o);return ya=Object.values(t).find(r=>r.getState!=null&&r.setState!=null),ya}function jc(){if(Sa!=null)return Sa;let e=bl(),o=vl(r=>r.includes(\"cof_targeting_query_attempt\"));if(e==null||o==null)return null;let t=e(o);return Sa=Object.values(t).find(r=>r.getState!=null&&r.setState!=null),Sa}function yl(){let e=bl(),o=vl(a=>a.includes(\"SNAPCHAT_WEB_APP\"));if(e==null||o==null)return null;let t=e(o);return Object.values(t).find(a=>a.SNAPCHAT_WEB_APP!=null&&a.SNAPCHAT_WEB_APP!=null)}async function Ca(e,o=!0){let{fetchPublicInfo:t,publicUsers:r}=Be().getState().user;if(t==null||r==null)return null;let a=r.entries().find(([{str:n}])=>n===e);if(a==null&&o){let n=Ky(e);return await t([n]),Ca(e,!1)}return a!=null?a[1]:null}function Ky(e){let o=e.replace(/-/g,\"\"),t=new Uint8Array(16);for(let r=0;r<16;r++)t[r]=parseInt(o.slice(r*2,r*2+2),16);return{id:t,str:e}}function Xc(e){let{conversations:o}=Be().getState().messaging;return o==null?null:o[e]}var va,ya,Sa,ro=d(()=>{\"use strict\";gl();va=null;ya=null;Sa=null});var te,je=d(()=>{\"use strict\";xa();te=class{constructor(o){this.name=o;try{this.load(),Qo(`Loaded: ${this.name}`)}catch(t){_c(`Error loading module ${this.name}:`,t)}}load(){throw new Error(\"load() method must be implemented in subclass\")}}});var wl={};Z(wl,{default:()=>Qy});var Qc,Jc,Zy,Sl,dr,Kc,Yc,Zc,Cl,Qy,eu=d(()=>{\"use strict\";Qc=v(Rc()),Jc=v(Mc());Oe();co();ro();je();Zy=500,Sl=Be(),dr=null,Kc=null,Yc=null,Zc=(0,Jc.default)((e,o)=>{let{updateMessage:t}=Sl.getState().messaging;t(e,o,3)},Zy,{leading:!1,trailing:!0}),Cl=class extends te{constructor(){super(\"Auto Save Messages\"),N.on(\"CHAT_HANDLING.setting:update\",this.load.bind(this))}load(){let t=N.getSetting(\"CHAT_HANDLING\")===\"AUTO_SAVE\";!t&&dr!=null&&(dr(),dr=null),t&&dr==null&&(this.saveActiveConversationMessages(),dr=Sl.subscribe(r=>r.messaging.conversations,this.saveActiveConversationMessages.bind(this)))}saveActiveConversationMessages(o){if(o=o!=null?o:Sl.getState().messaging.conversations,o==null)return;let t=Object.entries(o).find(([,f])=>f.isActive);if(t==null)return;let[r,a]=t,n=Array.from(a.messages);if(r===Kc&&(0,Qc.default)(n,Yc))return;Kc=r,Yc=n;let{conversation:{conversationId:l}}=a;Zc.cancel();for(let[f,s]of n)if(!(s.metadata.savedBy.length>0))try{Zc(l,f)}catch(i){}}},Qy=new Cl});var Rl={};Z(Rl,{default:()=>Jy});var _l,mr,wa,Fl,Jy,tu=d(()=>{\"use strict\";co();Oe();je();ro();_l=Be(),mr=null,wa=null,Fl=class extends te{constructor(){super(\"Bitmoji Hide\"),_l.subscribe(o=>o.talk,this.load.bind(this)),N.on(\"BITMOJI_PRESENCE.setting:update\",()=>this.load())}load(o){if(o=o!=null?o:_l.getState().talk,(o==null?void 0:o.client)==null)return;let r=N.getSetting(\"BITMOJI_PRESENCE\")===\"HIDE\",a={};r&&o.client.createPresenceSession!==wa&&(mr=o.client.createPresenceSession,wa=new Proxy(mr,{apply:function(n,l,f){let s=Reflect.apply(n,l,f);return s.activate=()=>{},s}}),a.createPresenceSession=wa),!r&&mr!=null&&(a.createPresenceSession=mr,mr=null,wa=null),Object.keys(a).length!==0&&_l.setState({talk:g(u({},o),{client:u(u({},o.client),a)})})}},Jy=new Fl});function ru(e,o){for(let t=0;t<=e.length-o.length;t++){let r=!0;for(let a=0;a<o.length;a++)if(e[t+a]!==o[a]){r=!1;break}if(r)return!0}return!1}var au=d(()=>{\"use strict\"});var Al={};Z(Al,{default:()=>tS});function oS(e){for(let o=0;o<e.length-1;o++)e[o]===64&&e[o+1]===2&&(e[o+1]=1);return e}var wt,eS,Bl,tS,nu=d(()=>{\"use strict\";co();Oe();au();je();wt=null,eS=new Uint8Array([112,114,101,115,101,110,99,101]);Bl=class extends te{constructor(){super(\"Bitmoji Mobile\"),N.on(\"BITMOJI_PRESENCE.setting:update\",this.load)}load(){let t=N.getSetting(\"BITMOJI_PRESENCE\")===\"MOBILE\";t&&wt==null&&(wt=Uint8Array.prototype.slice,Uint8Array.prototype.slice=new Proxy(wt,{apply:function(r,a,n){return ru(a,eS)&&(a=oS(a)),Reflect.apply(r,a,n)}})),!t&&wt!=null&&(Uint8Array.prototype.slice=wt,wt=null)}},tS=new Bl});var Ml={};Z(Ml,{default:()=>rS});var Pl,_a,lu,El,rS,fu=d(()=>{\"use strict\";Oe();je();ro();Pl=Be(),_a=null,lu=()=>{},El=class extends te{constructor(){super(\"Bitmoji Typing Notification\"),Pl.subscribe(o=>o.messaging,this.load),N.on(\"PREVENT_TYPING_NOTIFICATION.setting:update\",()=>this.load())}load(o){if(o=o!=null?o:Pl.getState().messaging,o==null)return;let t=N.getSetting(\"PREVENT_TYPING_NOTIFICATION\"),r={};t&&o.sendTypingNotification!==lu&&(_a=o.sendTypingNotification,r.sendTypingNotification=lu),!t&&_a!=null&&(r.sendTypingNotification=_a,_a=null),Object.keys(r).length!==0&&Pl.setState({messaging:u(u({},o),r)})}},rS=new El});var kl={};Z(kl,{default:()=>aS});var Tl,pr,Fa,Dl,aS,su=d(()=>{\"use strict\";Oe();je();ro();Tl=jc(),pr=null,Fa=null,Dl=class extends te{constructor(){super(\"Condition Onset Flags\"),Tl.subscribe(({getClientCofValue:o})=>o,this.load.bind(this)),N.on(\"SNAP_AS_MOBILE.setting:update\",this.load.bind(this)),N.on(\"PRIVATE_STORIES.setting:update\",this.load.bind(this))}load(){let o=Tl.getState();if((o==null?void 0:o.getClientCofValue)==null)return;let t=N.getSetting(\"SNAP_AS_MOBILE\"),r=N.getSetting(\"PRIVATE_STORIES\"),a=t||r,n={};a&&o.getClientCofValue!==Fa&&(pr=o.getClientCofValue,Fa=new Proxy(pr,{apply(l,f,s){let i=Reflect.apply(l,f,s);if(s.length===0||s[0]==null)return i;let[m]=s;return N.getSetting(\"SNAP_AS_MOBILE\")&&m===\"DWEB_SNAP_SENDING_CONTEXT\"?!0:N.getSetting(\"PRIVATE_STORIES\")&&m===\"DWEB_PRIVATE_STORIES_VIEWING\"?{value:\"enabled\"}:i}}),n.getClientCofValue=Fa),!a&&pr!=null&&(n.getClientCofValue=pr,pr=null,Fa=null),Object.keys(n).length!==0&&Tl.setState(n)}},aS=new Dl});var Ol={};Z(Ol,{default:()=>nS});var xr,Ll,nS,iu=d(()=>{\"use strict\";Oe();je();xr=null,Ll=class extends te{constructor(){super(\"Media Restrictions\"),N.on(\"UNLIMITED_FILE_SIZE.setting:update\",this.load)}load(){let o=N.getSetting(\"UNLIMITED_FILE_SIZE\");o&&xr==null&&(xr=window.File.prototype,Object.defineProperty(window.File.prototype,\"size\",{get:()=>500})),!o&&xr!=null&&(window.File.prototype=xr,xr=null)}},nS=new Ll});var cu,uu=d(()=>{\"use strict\";cu=\"div>img{user-select:none;pointer-events:unset!important}div>img:hover{cursor:pointer}div video{user-select:none;pointer-events:unset!important}div video:hover{cursor:pointer}div:has(video):has(img)>img{pointer-events:none!important}\"});var Hl={};Z(Hl,{default:()=>lS});function du(e){e.stopImmediatePropagation()}var Ra,Jo,Nl,lS,mu=d(()=>{\"use strict\";Oe();je();uu();Ra=!1;Jo=null,Nl=class extends te{constructor(){super(\"Media Saving\"),N.on(\"SAVE_IMAGE.setting:update\",this.load)}load(){let o=N.getSetting(\"SAVE_IMAGE\");!Ra&&o&&(Ra=!0,window.addEventListener(\"contextmenu\",du,!0)),Ra&&!o&&(Ra=!1,window.removeEventListener(\"contextmenu\",du,!0)),Jo!=null&&!o&&(Jo.remove(),Jo=null),Jo==null&&o&&(Jo=document.createElement(\"style\"),Jo.textContent=cu,document.head.appendChild(Jo))}},lS=new Nl});var Ul={};Z(Ul,{default:()=>iS});function fS(e){return e=e.slice(2),e[0]=90,e}function sS(e){return new Proxy(e,{get(o,t,r){return t!==\"sendMessageWithContent\"?Reflect.get(o,t,r):new Proxy(o[t],{apply(a,n,l){let[,f]=l;return N.getSetting(\"UPLOAD_SNAPS\")&&f.contentType===3&&(f.contentType=1,f.savePolicy=2,f.platformAnalytics.metricsMessageType=3,f.content=fS(f.content)),N.getSetting(\"SEND_UNSAVEABLE_MESSAGES\")&&(f.savePolicy=0),Reflect.apply(a,n,l)}})}})}var zl,Ir,Ba,Wl,iS,pu=d(()=>{\"use strict\";Oe();je();ro();zl=Be();Ir=null,Ba=null;Wl=class extends te{constructor(){super(\"Message Content\"),zl.subscribe(o=>o.messaging,this.load.bind(this)),N.on(\"UPLOAD_SNAPS.setting:update\",()=>this.load()),N.on(\"SEND_UNSAVEABLE_MESSAGES.setting:update\",()=>this.load())}load(){let o=zl.getState().messaging;if((o==null?void 0:o.client)==null)return;let t=N.getSetting(\"UPLOAD_SNAPS\"),r=N.getSetting(\"SEND_UNSAVEABLE_MESSAGES\"),a=t||r,n={};!a&&Ir!=null&&(n.getConversationManager=Ir,Ir=null,Ba=null),a&&o.client.getConversationManager!==Ba&&(Ir=o.client.getConversationManager,Ba=new Proxy(Ir,{apply:(l,f,s)=>{let i=Reflect.apply(l,f,s);return sS(i)}}),n.getConversationManager=Ba),Object.keys(n).length!==0&&zl.setState({messaging:g(u({},o),{client:u(u({},o.client),n)})})}},iS=new Wl});var $l={};Z($l,{default:()=>cS});var Aa,Pa,Ea,xu,Iu,hu,Vl,Gl,cS,gu=d(()=>{\"use strict\";Oe();je();ro();Aa=null,Pa=null,Ea=null,xu=()=>{},Iu=()=>{},hu=()=>{},Vl=Be(),Gl=class extends te{constructor(){super(\"Presence Detection\"),Vl.subscribe(o=>o.presence,this.load),N.on(\"ALWAYS_PRESENT.setting:update\",()=>this.load()),N.on(\"ALLOW_SCREENSHOT.setting:update\",()=>this.load()),N.on(\"PREVENT_TYPING.setting:update\",()=>this.load())}load(o){if(o=o!=null?o:Vl.getState().presence,o==null)return;let t=N.getSetting(\"ALWAYS_PRESENT\"),r=N.getSetting(\"ALLOW_SCREENSHOT\"),a=N.getSetting(\"PREVENT_TYPING\"),n={};t&&o.setAwayState!==xu&&(Aa=o.setAwayState,n.setAwayState=xu,n.awayState=0),!t&&Aa!=null&&(n.setAwayState=Aa,Aa=null),r&&o.setScreenshotDetected!==Iu&&(Pa=o.setScreenshotDetected,n.setScreenshotDetected=Iu,n.screenshotDetected=!1),!r&&Pa!=null&&(n.setScreenshotDetected=Pa,Pa=null),a&&o.broadcastTypingActivity!==hu&&(Ea=o.broadcastTypingActivity,n.broadcastTypingActivity=hu),!a&&Ea!=null&&(n.broadcastTypingActivity=Ea,Ea=null),Object.keys(n).length!==0&&Vl.setState({presence:u(u({},o),n)})}},cS=new Gl});var Kl={};Z(Kl,{default:()=>mS});function uS({user:e,presenceState:o,conversation:t,conversationId:r}){var h;let{username:a,bitmoji_avatar_id:n,bitmoji_selfie_id:l,display_name:f}=e,s=(h=t==null?void 0:t.title)!=null?h:\"your Chat\",i=`/web/${r}`,m=ga[o](s),c;l!=null&&n!=null?c=`https://sdk.bitmoji.com/render/panel/${l}-${n}-v1.webp?transparent=1&trim=circle&scale=1`:n!=null&&(c=`https://sdk.bitmoji.com/render/panel/${n}-v1.webp?transparent=1&trim=circle&scale=1`);let x={body:m,icon:c,data:{url:i}},I=new Notification(f!=null?f:a,x);return I.addEventListener(\"click\",b=>{b.preventDefault(),window.focus(),window.history.pushState({},\"\",i),window.dispatchEvent(new PopStateEvent(\"popstate\")),I.close()},{once:!0}),I}async function dS(e){var r,a,n,l;let o=N.getSetting(\"HALF_SWIPE_NOTIFICATION\"),t=N.getSetting(\"PRESENCE_LOGGING\");for(let[f,{peekingParticipants:s,typingParticipants:i}]of e.entries()){let m=(r=Xc(f))==null?void 0:r.conversation,c=(a=m==null?void 0:m.title)!=null?a:\"your Chat\";for(let x of s){let I=await Ca(x),h=bu(x,f),b=gr.get(h);if(t){let S=ga.PEEKING(c);Qo(`${(n=I.display_name)!=null?n:I.username}:`,S)}b!==\"PEEKING\"&&(o&&uS({user:I,conversation:m,conversationId:f,presenceState:\"PEEKING\"}),gr.set(h,\"PEEKING\"))}for(let{userId:x,typingState:I}of i){let h=await Ca(x),b=I===1?\"TYPING\":\"IDLE\",S=bu(x,f),w=gr.get(S);if(t){let F=ga[b](c);Qo(`${(l=h.display_name)!=null?l:h.username}:`,F)}w!==b&&gr.set(S,b)}}}var ql,hr,jl,gr,bu,Xl,mS,vu=d(()=>{\"use strict\";Oe();je();ro();xa();co();ql=Be(),hr=null,jl=null;gr=new Map,bu=(e,o)=>`${e}:${o!=null?o:\"direct\"}`;Xl=class extends te{constructor(){super(\"Presence Logging\"),ql.subscribe(o=>o.presence,this.load),N.on(\"PRESENCE_LOGGING.setting:update\",()=>this.load()),N.on(\"HALF_SWIPE_NOTIFICATION.setting:update\",()=>this.load())}load(o){if(o=o!=null?o:ql.getState().presence,o==null)return;let t=N.getSetting(\"HALF_SWIPE_NOTIFICATION\"),r=N.getSetting(\"PRESENCE_LOGGING\"),a=t||r,n={};a&&o.onActiveConversationInfoUpdated!==jl&&(hr=o.onActiveConversationInfoUpdated,jl=new Proxy(hr,{apply(l,f,[s,...i]){return dS(s),Reflect.apply(l,f,[s,...i])}}),n.onActiveConversationInfoUpdated=jl),!a&&hr!=null&&(n.onActiveConversationInfoUpdated=hr,hr=null,gr.clear()),Object.keys(n).length!==0&&ql.setState({presence:u(u({},o),n)})}},mS=new Xl});var Zl={};Z(Zl,{default:()=>pS});var _t,Yl,pS,yu=d(()=>{\"use strict\";Oe();je();ro();_t=null,Yl=class extends te{constructor(){super(\"Provenance Constants\"),N.on(\"SNAP_AS_MOBILE.setting:update\",this.load)}load(){let o=N.getSetting(\"SNAP_AS_MOBILE\");if(o&&_t==null){let t=yl();_t=t.SNAPCHAT_WEB_APP,t.SNAPCHAT_WEB_APP=0,t[0]=\"SNAPCHAT_WEB_APP\"}if(!o&&_t!=null){let t=yl();t.SNAPCHAT_WEB_APP=_t,t[_t]=\"SNAPCHAT_WEB_APP\",_t=null}}},pS=new Yl});var zu={};Z(zu,{Component:()=>vr,Fragment:()=>we,cloneElement:()=>yS,createContext:()=>SS,createElement:()=>Da,createRef:()=>IS,h:()=>Da,hydrate:()=>Hu,isValidElement:()=>Fu,options:()=>oe,render:()=>ka,toChildArray:()=>ku});function uo(e,o){for(var t in o)e[t]=o[t];return e}function tf(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Da(e,o,t){var r,a,n,l={};for(n in o)n==\"key\"?r=o[n]:n==\"ref\"?a=o[n]:l[n]=o[n];if(arguments.length>2&&(l.children=arguments.length>3?Sr.call(arguments,2):t),typeof e==\"function\"&&e.defaultProps!=null)for(n in e.defaultProps)l[n]===void 0&&(l[n]=e.defaultProps[n]);return br(e,l,r,a,null)}function br(e,o,t,r,a){var n={type:e,props:o,key:t,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:a==null?++_u:a,__i:-1,__u:0};return a==null&&oe.vnode!=null&&oe.vnode(n),n}function IS(){return{current:null}}function we(e){return e.children}function vr(e,o){this.props=e,this.context=o}function Ft(e,o){if(o==null)return e.__?Ft(e.__,e.__i+1):null;for(var t;o<e.__k.length;o++)if((t=e.__k[o])!=null&&t.__e!=null)return t.__e;return typeof e.type==\"function\"?Ft(e):null}function Mu(e){var o,t;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,o=0;o<e.__k.length;o++)if((t=e.__k[o])!=null&&t.__e!=null){e.__e=e.__c.base=t.__e;break}return Mu(e)}}function ef(e){(!e.__d&&(e.__d=!0)&&et.push(e)&&!Ta.__r++||Su!=oe.debounceRendering)&&((Su=oe.debounceRendering)||Ru)(Ta)}function Ta(){for(var e,o,t,r,a,n,l,f=1;et.length;)et.length>f&&et.sort(Bu),e=et.shift(),f=et.length,e.__d&&(t=void 0,a=(r=(o=e).__v).__e,n=[],l=[],o.__P&&((t=uo({},r)).__v=r.__v+1,oe.vnode&&oe.vnode(t),rf(o.__P,t,r,o.__n,o.__P.namespaceURI,32&r.__u?[a]:null,n,a==null?Ft(r):a,!!(32&r.__u),l),t.__v=r.__v,t.__.__k[t.__i]=t,Lu(n,t,l),t.__e!=a&&Mu(t)));Ta.__r=0}function Tu(e,o,t,r,a,n,l,f,s,i,m){var c,x,I,h,b,S,w=r&&r.__k||Eu,F=o.length;for(s=hS(t,o,w,s,F),c=0;c<F;c++)(I=t.__k[c])!=null&&(x=I.__i==-1?yr:w[I.__i]||yr,I.__i=c,S=rf(e,I,x,a,n,l,f,s,i,m),h=I.__e,I.ref&&x.ref!=I.ref&&(x.ref&&af(x.ref,null,I),m.push(I.ref,I.__c||h,I)),b==null&&h!=null&&(b=h),4&I.__u||x.__k===I.__k?s=Du(I,s,e):typeof I.type==\"function\"&&S!==void 0?s=S:h&&(s=h.nextSibling),I.__u&=-7);return t.__e=b,s}function hS(e,o,t,r,a){var n,l,f,s,i,m=t.length,c=m,x=0;for(e.__k=new Array(a),n=0;n<a;n++)(l=o[n])!=null&&typeof l!=\"boolean\"&&typeof l!=\"function\"?(s=n+x,(l=e.__k[n]=typeof l==\"string\"||typeof l==\"number\"||typeof l==\"bigint\"||l.constructor==String?br(null,l,null,null,null):Cr(l)?br(we,{children:l},null,null,null):l.constructor==null&&l.__b>0?br(l.type,l.props,l.key,l.ref?l.ref:null,l.__v):l).__=e,l.__b=e.__b+1,f=null,(i=l.__i=gS(l,t,s,c))!=-1&&(c--,(f=t[i])&&(f.__u|=2)),f==null||f.__v==null?(i==-1&&(a>m?x--:a<m&&x++),typeof l.type!=\"function\"&&(l.__u|=4)):i!=s&&(i==s-1?x--:i==s+1?x++:(i>s?x--:x++,l.__u|=4))):e.__k[n]=null;if(c)for(n=0;n<m;n++)(f=t[n])!=null&&(2&f.__u)==0&&(f.__e==r&&(r=Ft(f)),Nu(f,f));return r}function Du(e,o,t){var r,a;if(typeof e.type==\"function\"){for(r=e.__k,a=0;r&&a<r.length;a++)r[a]&&(r[a].__=e,o=Du(r[a],o,t));return o}e.__e!=o&&(o&&e.type&&!t.contains(o)&&(o=Ft(e)),t.insertBefore(e.__e,o||null),o=e.__e);do o=o&&o.nextSibling;while(o!=null&&o.nodeType==8);return o}function ku(e,o){return o=o||[],e==null||typeof e==\"boolean\"||(Cr(e)?e.some(function(t){ku(t,o)}):o.push(e)),o}function gS(e,o,t,r){var a,n,l=e.key,f=e.type,s=o[t];if(s===null&&e.key==null||s&&l==s.key&&f==s.type&&(2&s.__u)==0)return t;if(r>(s!=null&&(2&s.__u)==0?1:0))for(a=t-1,n=t+1;a>=0||n<o.length;){if(a>=0){if((s=o[a])&&(2&s.__u)==0&&l==s.key&&f==s.type)return a;a--}if(n<o.length){if((s=o[n])&&(2&s.__u)==0&&l==s.key&&f==s.type)return n;n++}}return-1}function Cu(e,o,t){o[0]==\"-\"?e.setProperty(o,t==null?\"\":t):e[o]=t==null?\"\":typeof t!=\"number\"||xS.test(o)?t:t+\"px\"}function Ma(e,o,t,r,a){var n,l;e:if(o==\"style\")if(typeof t==\"string\")e.style.cssText=t;else{if(typeof r==\"string\"&&(e.style.cssText=r=\"\"),r)for(o in r)t&&o in t||Cu(e.style,o,\"\");if(t)for(o in t)r&&t[o]==r[o]||Cu(e.style,o,t[o])}else if(o[0]==\"o\"&&o[1]==\"n\")n=o!=(o=o.replace(Au,\"$1\")),l=o.toLowerCase(),o=l in e||o==\"onFocusOut\"||o==\"onFocusIn\"?l.slice(2):o.slice(2),e.l||(e.l={}),e.l[o+n]=t,t?r?t.u=r.u:(t.u=of,e.addEventListener(o,n?Jl:Ql,n)):e.removeEventListener(o,n?Jl:Ql,n);else{if(a==\"http://www.w3.org/2000/svg\")o=o.replace(/xlink(H|:h)/,\"h\").replace(/sName$/,\"s\");else if(o!=\"width\"&&o!=\"height\"&&o!=\"href\"&&o!=\"list\"&&o!=\"form\"&&o!=\"tabIndex\"&&o!=\"download\"&&o!=\"rowSpan\"&&o!=\"colSpan\"&&o!=\"role\"&&o!=\"popover\"&&o in e)try{e[o]=t==null?\"\":t;break e}catch(f){}typeof t==\"function\"||(t==null||t===!1&&o[4]!=\"-\"?e.removeAttribute(o):e.setAttribute(o,o==\"popover\"&&t==1?\"\":t))}}function wu(e){return function(o){if(this.l){var t=this.l[o.type+e];if(o.t==null)o.t=of++;else if(o.t<t.u)return;return t(oe.event?oe.event(o):o)}}}function rf(e,o,t,r,a,n,l,f,s,i){var m,c,x,I,h,b,S,w,F,B,P,D,O,A,E,T,U,V=o.type;if(o.constructor!=null)return null;128&t.__u&&(s=!!(32&t.__u),n=[f=o.__e=t.__e]),(m=oe.__b)&&m(o);e:if(typeof V==\"function\")try{if(w=o.props,F=\"prototype\"in V&&V.prototype.render,B=(m=V.contextType)&&r[m.__c],P=m?B?B.props.value:m.__:r,t.__c?S=(c=o.__c=t.__c).__=c.__E:(F?o.__c=c=new V(w,P):(o.__c=c=new vr(w,P),c.constructor=V,c.render=vS),B&&B.sub(c),c.props=w,c.state||(c.state={}),c.context=P,c.__n=r,x=c.__d=!0,c.__h=[],c._sb=[]),F&&c.__s==null&&(c.__s=c.state),F&&V.getDerivedStateFromProps!=null&&(c.__s==c.state&&(c.__s=uo({},c.__s)),uo(c.__s,V.getDerivedStateFromProps(w,c.__s))),I=c.props,h=c.state,c.__v=o,x)F&&V.getDerivedStateFromProps==null&&c.componentWillMount!=null&&c.componentWillMount(),F&&c.componentDidMount!=null&&c.__h.push(c.componentDidMount);else{if(F&&V.getDerivedStateFromProps==null&&w!==I&&c.componentWillReceiveProps!=null&&c.componentWillReceiveProps(w,P),!c.__e&&c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(w,c.__s,P)===!1||o.__v==t.__v){for(o.__v!=t.__v&&(c.props=w,c.state=c.__s,c.__d=!1),o.__e=t.__e,o.__k=t.__k,o.__k.some(function($){$&&($.__=o)}),D=0;D<c._sb.length;D++)c.__h.push(c._sb[D]);c._sb=[],c.__h.length&&l.push(c);break e}c.componentWillUpdate!=null&&c.componentWillUpdate(w,c.__s,P),F&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(I,h,b)})}if(c.context=P,c.props=w,c.__P=e,c.__e=!1,O=oe.__r,A=0,F){for(c.state=c.__s,c.__d=!1,O&&O(o),m=c.render(c.props,c.state,c.context),E=0;E<c._sb.length;E++)c.__h.push(c._sb[E]);c._sb=[]}else do c.__d=!1,O&&O(o),m=c.render(c.props,c.state,c.context),c.state=c.__s;while(c.__d&&++A<25);c.state=c.__s,c.getChildContext!=null&&(r=uo(uo({},r),c.getChildContext())),F&&!x&&c.getSnapshotBeforeUpdate!=null&&(b=c.getSnapshotBeforeUpdate(I,h)),T=m,m!=null&&m.type===we&&m.key==null&&(T=Ou(m.props.children)),f=Tu(e,Cr(T)?T:[T],o,t,r,a,n,l,f,s,i),c.base=o.__e,o.__u&=-161,c.__h.length&&l.push(c),S&&(c.__E=c.__=null)}catch($){if(o.__v=null,s||n!=null)if($.then){for(o.__u|=s?160:128;f&&f.nodeType==8&&f.nextSibling;)f=f.nextSibling;n[n.indexOf(f)]=null,o.__e=f}else for(U=n.length;U--;)tf(n[U]);else o.__e=t.__e,o.__k=t.__k;oe.__e($,o,t)}else n==null&&o.__v==t.__v?(o.__k=t.__k,o.__e=t.__e):f=o.__e=bS(t.__e,o,t,r,a,n,l,s,i);return(m=oe.diffed)&&m(o),128&o.__u?void 0:f}function Lu(e,o,t){for(var r=0;r<t.length;r++)af(t[r],t[++r],t[++r]);oe.__c&&oe.__c(o,e),e.some(function(a){try{e=a.__h,a.__h=[],e.some(function(n){n.call(a)})}catch(n){oe.__e(n,a.__v)}})}function Ou(e){return typeof e!=\"object\"||e==null||e.__b&&e.__b>0?e:Cr(e)?e.map(Ou):uo({},e)}function bS(e,o,t,r,a,n,l,f,s){var i,m,c,x,I,h,b,S=t.props,w=o.props,F=o.type;if(F==\"svg\"?a=\"http://www.w3.org/2000/svg\":F==\"math\"?a=\"http://www.w3.org/1998/Math/MathML\":a||(a=\"http://www.w3.org/1999/xhtml\"),n!=null){for(i=0;i<n.length;i++)if((I=n[i])&&\"setAttribute\"in I==!!F&&(F?I.localName==F:I.nodeType==3)){e=I,n[i]=null;break}}if(e==null){if(F==null)return document.createTextNode(w);e=document.createElementNS(a,F,w.is&&w),f&&(oe.__m&&oe.__m(o,n),f=!1),n=null}if(F==null)S===w||f&&e.data==w||(e.data=w);else{if(n=n&&Sr.call(e.childNodes),S=t.props||yr,!f&&n!=null)for(S={},i=0;i<e.attributes.length;i++)S[(I=e.attributes[i]).name]=I.value;for(i in S)if(I=S[i],i!=\"children\"){if(i==\"dangerouslySetInnerHTML\")c=I;else if(!(i in w)){if(i==\"value\"&&\"defaultValue\"in w||i==\"checked\"&&\"defaultChecked\"in w)continue;Ma(e,i,null,I,a)}}for(i in w)I=w[i],i==\"children\"?x=I:i==\"dangerouslySetInnerHTML\"?m=I:i==\"value\"?h=I:i==\"checked\"?b=I:f&&typeof I!=\"function\"||S[i]===I||Ma(e,i,I,S[i],a);if(m)f||c&&(m.__html==c.__html||m.__html==e.innerHTML)||(e.innerHTML=m.__html),o.__k=[];else if(c&&(e.innerHTML=\"\"),Tu(o.type==\"template\"?e.content:e,Cr(x)?x:[x],o,t,r,F==\"foreignObject\"?\"http://www.w3.org/1999/xhtml\":a,n,l,n?n[0]:t.__k&&Ft(t,0),f,s),n!=null)for(i=n.length;i--;)tf(n[i]);f||(i=\"value\",F==\"progress\"&&h==null?e.removeAttribute(\"value\"):h!=null&&(h!==e[i]||F==\"progress\"&&!h||F==\"option\"&&h!=S[i])&&Ma(e,i,h,S[i],a),i=\"checked\",b!=null&&b!=e[i]&&Ma(e,i,b,S[i],a))}return e}function af(e,o,t){try{if(typeof e==\"function\"){var r=typeof e.__u==\"function\";r&&e.__u(),r&&o==null||(e.__u=e(o))}else e.current=o}catch(a){oe.__e(a,t)}}function Nu(e,o,t){var r,a;if(oe.unmount&&oe.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||af(r,null,o)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(n){oe.__e(n,o)}r.base=r.__P=null}if(r=e.__k)for(a=0;a<r.length;a++)r[a]&&Nu(r[a],o,t||typeof e.type!=\"function\");t||tf(e.__e),e.__c=e.__=e.__e=void 0}function vS(e,o,t){return this.constructor(e,t)}function ka(e,o,t){var r,a,n,l;o==document&&(o=document.documentElement),oe.__&&oe.__(e,o),a=(r=typeof t==\"function\")?null:t&&t.__k||o.__k,n=[],l=[],rf(o,e=(!r&&t||o).__k=Da(we,null,[e]),a||yr,yr,o.namespaceURI,!r&&t?[t]:a?null:o.firstChild?Sr.call(o.childNodes):null,n,!r&&t?t:a?a.__e:o.firstChild,r,l),Lu(n,e,l)}function Hu(e,o){ka(e,o,Hu)}function yS(e,o,t){var r,a,n,l,f=uo({},e.props);for(n in e.type&&e.type.defaultProps&&(l=e.type.defaultProps),o)n==\"key\"?r=o[n]:n==\"ref\"?a=o[n]:f[n]=o[n]===void 0&&l!=null?l[n]:o[n];return arguments.length>2&&(f.children=arguments.length>3?Sr.call(arguments,2):t),br(e.type,f,r||e.key,a||e.ref,null)}function SS(e){function o(t){var r,a;return this.getChildContext||(r=new Set,(a={})[o.__c]=this,this.getChildContext=function(){return a},this.componentWillUnmount=function(){r=null},this.shouldComponentUpdate=function(n){this.props.value!=n.value&&r.forEach(function(l){l.__e=!0,ef(l)})},this.sub=function(n){r.add(n);var l=n.componentWillUnmount;n.componentWillUnmount=function(){r&&r.delete(n),l&&l.call(n)}}),t.children}return o.__c=\"__cC\"+Pu++,o.__=e,o.Provider=o.__l=(o.Consumer=function(t,r){return t.children(r)}).contextType=o,o}var Sr,oe,_u,Fu,et,Su,Ru,Bu,Au,of,Ql,Jl,Pu,yr,Eu,xS,Cr,Rt=d(()=>{yr={},Eu=[],xS=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Cr=Array.isArray;Sr=Eu.slice,oe={__e:function(e,o,t,r){for(var a,n,l;o=o.__;)if((a=o.__c)&&!a.__)try{if((n=a.constructor)&&n.getDerivedStateFromError!=null&&(a.setState(n.getDerivedStateFromError(e)),l=a.__d),a.componentDidCatch!=null&&(a.componentDidCatch(e,r||{}),l=a.__d),l)return a.__E=a}catch(f){e=f}throw e}},_u=0,Fu=function(e){return e!=null&&e.constructor==null},vr.prototype.setState=function(e,o){var t;t=this.__s!=null&&this.__s!=this.state?this.__s:this.__s=uo({},this.state),typeof e==\"function\"&&(e=e(uo({},t),this.props)),e&&uo(t,e),e!=null&&this.__v&&(o&&this._sb.push(o),ef(this))},vr.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ef(this))},vr.prototype.render=we,et=[],Ru=typeof Promise==\"function\"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Bu=function(e,o){return e.__v.__b-o.__v.__b},Ta.__r=0,Au=/(PointerCapture)$|Capture$/i,of=0,Ql=wu(!1),Jl=wu(!0),Pu=0});function Wu(){return`${String.fromCharCode(Math.floor(Math.random()*26)+97)}${ur()}`}var Uu=d(()=>{\"use strict\";gl()});var td={};Z(td,{useCallback:()=>FS,useContext:()=>RS,useDebugValue:()=>BS,useEffect:()=>CS,useErrorBoundary:()=>AS,useId:()=>PS,useImperativeHandle:()=>_S,useLayoutEffect:()=>ed,useMemo:()=>ff,useReducer:()=>Ju,useRef:()=>wS,useState:()=>Qu});function ot(e,o){pe.__h&&pe.__h(le,e,Bt||o),Bt=0;var t=le.__H||(le.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({}),t.__[e]}function Qu(e){return Bt=1,Ju(od,e)}function Ju(e,o,t){var r=ot(wo++,2);if(r.t=e,!r.__c&&(r.__=[t?t(o):od(void 0,o),function(f){var s=r.__N?r.__N[0]:r.__[0],i=r.t(s,f);s!==i&&(r.__N=[i,r.__[1]],r.__c.setState({}))}],r.__c=le,!le.__f)){var a=function(f,s,i){if(!r.__c.__H)return!0;var m=r.__c.__H.__.filter(function(x){return!!x.__c});if(m.every(function(x){return!x.__N}))return!n||n.call(this,f,s,i);var c=r.__c.props!==f;return m.forEach(function(x){if(x.__N){var I=x.__[0];x.__=x.__N,x.__N=void 0,I!==x.__[0]&&(c=!0)}}),n&&n.call(this,f,s,i)||c};le.__f=!0;var n=le.shouldComponentUpdate,l=le.componentWillUpdate;le.componentWillUpdate=function(f,s,i){if(this.__e){var m=n;n=void 0,a(f,s,i),n=m}l&&l.call(this,f,s,i)},le.shouldComponentUpdate=a}return r.__N||r.__}function CS(e,o){var t=ot(wo++,3);!pe.__s&&sf(t.__H,o)&&(t.__=e,t.u=o,le.__H.__h.push(t))}function ed(e,o){var t=ot(wo++,4);!pe.__s&&sf(t.__H,o)&&(t.__=e,t.u=o,le.__h.push(t))}function wS(e){return Bt=5,ff(function(){return{current:e}},[])}function _S(e,o,t){Bt=6,ed(function(){if(typeof e==\"function\"){var r=e(o());return function(){e(null),r&&typeof r==\"function\"&&r()}}if(e)return e.current=o(),function(){return e.current=null}},t==null?t:t.concat(e))}function ff(e,o){var t=ot(wo++,7);return sf(t.__H,o)&&(t.__=e(),t.__H=o,t.__h=e),t.__}function FS(e,o){return Bt=8,ff(function(){return e},o)}function RS(e){var o=le.context[e.__c],t=ot(wo++,9);return t.c=e,o?(t.__==null&&(t.__=!0,o.sub(le)),o.props.value):e.__}function BS(e,o){pe.useDebugValue&&pe.useDebugValue(o?o(e):e)}function AS(e){var o=ot(wo++,10),t=Qu();return o.__=e,le.componentDidCatch||(le.componentDidCatch=function(r,a){o.__&&o.__(r,a),t[1](r)}),[t[0],function(){t[1](void 0)}]}function PS(){var e=ot(wo++,11);if(!e.__){for(var o=le.__v;o!==null&&!o.__m&&o.__!==null;)o=o.__;var t=o.__m||(o.__m=[0,0]);e.__=\"P\"+t[0]+\"-\"+t[1]++}return e.__}function ES(){for(var e;e=Zu.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(La),e.__H.__h.forEach(lf),e.__H.__h=[]}catch(o){e.__H.__h=[],pe.__e(o,e.__v)}}function MS(e){var o,t=function(){clearTimeout(r),Yu&&cancelAnimationFrame(o),setTimeout(e)},r=setTimeout(t,35);Yu&&(o=requestAnimationFrame(t))}function La(e){var o=le,t=e.__c;typeof t==\"function\"&&(e.__c=void 0,t()),le=o}function lf(e){var o=le;e.__c=e.__(),le=o}function sf(e,o){return!e||e.length!==o.length||o.some(function(t,r){return t!==e[r]})}function od(e,o){return typeof o==\"function\"?o(e):o}var wo,le,nf,Vu,Bt,Zu,pe,Gu,$u,qu,ju,Xu,Ku,Yu,rd=d(()=>{Rt();Bt=0,Zu=[],pe=oe,Gu=pe.__b,$u=pe.__r,qu=pe.diffed,ju=pe.__c,Xu=pe.unmount,Ku=pe.__;pe.__b=function(e){le=null,Gu&&Gu(e)},pe.__=function(e,o){e&&o.__k&&o.__k.__m&&(e.__m=o.__k.__m),Ku&&Ku(e,o)},pe.__r=function(e){$u&&$u(e),wo=0;var o=(le=e.__c).__H;o&&(nf===le?(o.__h=[],le.__h=[],o.__.forEach(function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0})):(o.__h.forEach(La),o.__h.forEach(lf),o.__h=[],wo=0)),nf=le},pe.diffed=function(e){qu&&qu(e);var o=e.__c;o&&o.__H&&(o.__H.__h.length&&(Zu.push(o)!==1&&Vu===pe.requestAnimationFrame||((Vu=pe.requestAnimationFrame)||MS)(ES)),o.__H.__.forEach(function(t){t.u&&(t.__H=t.u),t.u=void 0})),nf=le=null},pe.__c=function(e,o){o.some(function(t){try{t.__h.forEach(La),t.__h=t.__h.filter(function(r){return!r.__||lf(r)})}catch(r){o.some(function(a){a.__h&&(a.__h=[])}),o=[],pe.__e(r,t.__v)}}),ju&&ju(e,o)},pe.unmount=function(e){Xu&&Xu(e);var o,t=e.__c;t&&t.__H&&(t.__H.__.forEach(function(r){try{La(r)}catch(a){o=a}}),t.__H=void 0,o&&pe.__e(o,t.__v))};Yu=typeof requestAnimationFrame==\"function\"});var y=Ct(K=>{var z=(Rt(),Cc(zu)),ae=(rd(),Cc(td));function dd(e,o){for(var t in o)e[t]=o[t];return e}function uf(e,o){for(var t in e)if(t!==\"__source\"&&!(t in o))return!0;for(var r in o)if(r!==\"__source\"&&e[r]!==o[r])return!0;return!1}function df(e,o){var t=o(),r=ae.useState({t:{__:t,u:o}}),a=r[0].t,n=r[1];return ae.useLayoutEffect(function(){a.__=t,a.u=o,cf(a)&&n({t:a})},[e,t,o]),ae.useEffect(function(){return cf(a)&&n({t:a}),e(function(){cf(a)&&n({t:a})})},[e]),t}function cf(e){var o,t,r=e.u,a=e.__;try{var n=r();return!((o=a)===(t=n)&&(o!==0||1/o==1/t)||o!=o&&t!=t)}catch(l){return!0}}function mf(e){e()}function pf(e){return e}function xf(){return[!1,mf]}var If=ae.useLayoutEffect;function Oa(e,o){this.props=e,this.context=o}function md(e,o){function t(a){var n=this.props.ref,l=n==a.ref;return!l&&n&&(n.call?n(null):n.current=null),o?!o(this.props,a)||!l:uf(this.props,a)}function r(a){return this.shouldComponentUpdate=t,z.createElement(e,a)}return r.displayName=\"Memo(\"+(e.displayName||e.name)+\")\",r.prototype.isReactComponent=!0,r.__f=!0,r}(Oa.prototype=new z.Component).isPureReactComponent=!0,Oa.prototype.shouldComponentUpdate=function(e,o){return uf(this.props,e)||uf(this.state,o)};var ad=z.options.__b;z.options.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),ad&&ad(e)};var TS=typeof Symbol<\"u\"&&Symbol.for&&Symbol.for(\"react.forward_ref\")||3911;function pd(e){function o(t){var r=dd({},t);return delete r.ref,e(r,t.ref||null)}return o.$$typeof=TS,o.render=o,o.prototype.isReactComponent=o.__f=!0,o.displayName=\"ForwardRef(\"+(e.displayName||e.name)+\")\",o}var nd=function(e,o){return e==null?null:z.toChildArray(z.toChildArray(e).map(o))},xd={map:nd,forEach:nd,count:function(e){return e?z.toChildArray(e).length:0},only:function(e){var o=z.toChildArray(e);if(o.length!==1)throw\"Children.only\";return o[0]},toArray:z.toChildArray},DS=z.options.__e;z.options.__e=function(e,o,t,r){if(e.then){for(var a,n=o;n=n.__;)if((a=n.__c)&&a.__c)return o.__e==null&&(o.__e=t.__e,o.__k=t.__k),a.__c(e,o)}DS(e,o,t,r)};var ld=z.options.unmount;function Id(e,o,t){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(r){typeof r.__c==\"function\"&&r.__c()}),e.__c.__H=null),(e=dd({},e)).__c!=null&&(e.__c.__P===t&&(e.__c.__P=o),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return Id(r,o,t)})),e}function hd(e,o,t){return e&&t&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return hd(r,o,t)}),e.__c&&e.__c.__P===o&&(e.__e&&t.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=t)),e}function wr(){this.__u=0,this.o=null,this.__b=null}function gd(e){var o=e.__.__c;return o&&o.__a&&o.__a(e)}function bd(e){var o,t,r;function a(n){if(o||(o=e()).then(function(l){t=l.default||l},function(l){r=l}),r)throw r;if(!t)throw o;return z.createElement(t,n)}return a.displayName=\"Lazy\",a.__f=!0,a}function At(){this.i=null,this.l=null}z.options.unmount=function(e){var o=e.__c;o&&o.__R&&o.__R(),o&&32&e.__u&&(e.type=null),ld&&ld(e)},(wr.prototype=new z.Component).__c=function(e,o){var t=o.__c,r=this;r.o==null&&(r.o=[]),r.o.push(t);var a=gd(r.__v),n=!1,l=function(){n||(n=!0,t.__R=null,a?a(f):f())};t.__R=l;var f=function(){if(!--r.__u){if(r.state.__a){var s=r.state.__a;r.__v.__k[0]=hd(s,s.__c.__P,s.__c.__O)}var i;for(r.setState({__a:r.__b=null});i=r.o.pop();)i.forceUpdate()}};r.__u++||32&o.__u||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(l,l)},wr.prototype.componentWillUnmount=function(){this.o=[]},wr.prototype.render=function(e,o){if(this.__b){if(this.__v.__k){var t=document.createElement(\"div\"),r=this.__v.__k[0].__c;this.__v.__k[0]=Id(this.__b,t,r.__O=r.__P)}this.__b=null}var a=o.__a&&z.createElement(z.Fragment,null,e.fallback);return a&&(a.__u&=-33),[z.createElement(z.Fragment,null,o.__a?null:e.children),a]};var fd=function(e,o,t){if(++t[1]===t[0]&&e.l.delete(o),e.props.revealOrder&&(e.props.revealOrder[0]!==\"t\"||!e.l.size))for(t=e.i;t;){for(;t.length>3;)t.pop()();if(t[1]<t[0])break;e.i=t=t[2]}};function kS(e){return this.getChildContext=function(){return e.context},e.children}function LS(e){var o=this,t=e.p;if(o.componentWillUnmount=function(){z.render(null,o.h),o.h=null,o.p=null},o.p&&o.p!==t&&o.componentWillUnmount(),!o.h){for(var r=o.__v;r!==null&&!r.__m&&r.__!==null;)r=r.__;o.p=t,o.h={nodeType:1,parentNode:t,childNodes:[],__k:{__m:r.__m},contains:function(){return!0},insertBefore:function(a,n){this.childNodes.push(a),o.p.insertBefore(a,n)},removeChild:function(a){this.childNodes.splice(this.childNodes.indexOf(a)>>>1,1),o.p.removeChild(a)}}}z.render(z.createElement(kS,{context:o.context},e.__v),o.h)}function vd(e,o){var t=z.createElement(LS,{__v:e,p:o});return t.containerInfo=o,t}(At.prototype=new z.Component).__a=function(e){var o=this,t=gd(o.__v),r=o.l.get(e);return r[0]++,function(a){var n=function(){o.props.revealOrder?(r.push(a),fd(o,e,r)):a()};t?t(n):n()}},At.prototype.render=function(e){this.i=null,this.l=new Map;var o=z.toChildArray(e.children);e.revealOrder&&e.revealOrder[0]===\"b\"&&o.reverse();for(var t=o.length;t--;)this.l.set(o[t],this.i=[1,0,this.i]);return e.children},At.prototype.componentDidUpdate=At.prototype.componentDidMount=function(){var e=this;this.l.forEach(function(o,t){fd(e,t,o)})};var yd=typeof Symbol<\"u\"&&Symbol.for&&Symbol.for(\"react.element\")||60103,OS=/^(?: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]/,NS=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,HS=/[A-Z0-9]/g,zS=typeof document<\"u\",WS=function(e){return(typeof Symbol<\"u\"&&typeof Symbol()==\"symbol\"?/fil|che|rad/:/fil|che|ra/).test(e)};function Sd(e,o,t){return o.__k==null&&(o.textContent=\"\"),z.render(e,o),typeof t==\"function\"&&t(),e?e.__c:null}function Cd(e,o,t){return z.hydrate(e,o),typeof t==\"function\"&&t(),e?e.__c:null}z.Component.prototype.isReactComponent={},[\"componentWillMount\",\"componentWillReceiveProps\",\"componentWillUpdate\"].forEach(function(e){Object.defineProperty(z.Component.prototype,e,{configurable:!0,get:function(){return this[\"UNSAFE_\"+e]},set:function(o){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:o})}})});var sd=z.options.event;function US(){}function VS(){return this.cancelBubble}function GS(){return this.defaultPrevented}z.options.event=function(e){return sd&&(e=sd(e)),e.persist=US,e.isPropagationStopped=VS,e.isDefaultPrevented=GS,e.nativeEvent=e};var hf,$S={enumerable:!1,configurable:!0,get:function(){return this.class}},id=z.options.vnode;z.options.vnode=function(e){typeof e.type==\"string\"&&function(o){var t=o.props,r=o.type,a={},n=r.indexOf(\"-\")===-1;for(var l in t){var f=t[l];if(!(l===\"value\"&&\"defaultValue\"in t&&f==null||zS&&l===\"children\"&&r===\"noscript\"||l===\"class\"||l===\"className\")){var s=l.toLowerCase();l===\"defaultValue\"&&\"value\"in t&&t.value==null?l=\"value\":l===\"download\"&&f===!0?f=\"\":s===\"translate\"&&f===\"no\"?f=!1:s[0]===\"o\"&&s[1]===\"n\"?s===\"ondoubleclick\"?l=\"ondblclick\":s!==\"onchange\"||r!==\"input\"&&r!==\"textarea\"||WS(t.type)?s===\"onfocus\"?l=\"onfocusin\":s===\"onblur\"?l=\"onfocusout\":NS.test(l)&&(l=s):s=l=\"oninput\":n&&OS.test(l)?l=l.replace(HS,\"-$&\").toLowerCase():f===null&&(f=void 0),s===\"oninput\"&&a[l=s]&&(l=\"oninputCapture\"),a[l]=f}}r==\"select\"&&a.multiple&&Array.isArray(a.value)&&(a.value=z.toChildArray(t.children).forEach(function(i){i.props.selected=a.value.indexOf(i.props.value)!=-1})),r==\"select\"&&a.defaultValue!=null&&(a.value=z.toChildArray(t.children).forEach(function(i){i.props.selected=a.multiple?a.defaultValue.indexOf(i.props.value)!=-1:a.defaultValue==i.props.value})),t.class&&!t.className?(a.class=t.class,Object.defineProperty(a,\"className\",$S)):(t.className&&!t.class||t.class&&t.className)&&(a.class=a.className=t.className),o.props=a}(e),e.$$typeof=yd,id&&id(e)};var cd=z.options.__r;z.options.__r=function(e){cd&&cd(e),hf=e.__c};var ud=z.options.diffed;z.options.diffed=function(e){ud&&ud(e);var o=e.props,t=e.__e;t!=null&&e.type===\"textarea\"&&\"value\"in o&&o.value!==t.value&&(t.value=o.value==null?\"\":o.value),hf=null};var wd={ReactCurrentDispatcher:{current:{readContext:function(e){return hf.__n[e.__c].props.value},useCallback:ae.useCallback,useContext:ae.useContext,useDebugValue:ae.useDebugValue,useDeferredValue:pf,useEffect:ae.useEffect,useId:ae.useId,useImperativeHandle:ae.useImperativeHandle,useInsertionEffect:If,useLayoutEffect:ae.useLayoutEffect,useMemo:ae.useMemo,useReducer:ae.useReducer,useRef:ae.useRef,useState:ae.useState,useSyncExternalStore:df,useTransition:xf}}};function _d(e){return z.createElement.bind(null,e)}function _r(e){return!!e&&e.$$typeof===yd}function Fd(e){return _r(e)&&e.type===z.Fragment}function Rd(e){return!!e&&!!e.displayName&&(typeof e.displayName==\"string\"||e.displayName instanceof String)&&e.displayName.startsWith(\"Memo(\")}function Bd(e){return _r(e)?z.cloneElement.apply(null,arguments):e}function Ad(e){return!!e.__k&&(z.render(null,e),!0)}function Pd(e){return e&&(e.base||e.nodeType===1&&e)||null}var Ed=function(e,o){return e(o)},Md=function(e,o){return e(o)},Td=z.Fragment,Dd=_r,qS={useState:ae.useState,useId:ae.useId,useReducer:ae.useReducer,useEffect:ae.useEffect,useLayoutEffect:ae.useLayoutEffect,useInsertionEffect:If,useTransition:xf,useDeferredValue:pf,useSyncExternalStore:df,startTransition:mf,useRef:ae.useRef,useImperativeHandle:ae.useImperativeHandle,useMemo:ae.useMemo,useCallback:ae.useCallback,useContext:ae.useContext,useDebugValue:ae.useDebugValue,version:\"18.3.1\",Children:xd,render:Sd,hydrate:Cd,unmountComponentAtNode:Ad,createPortal:vd,createElement:z.createElement,createContext:z.createContext,createFactory:_d,cloneElement:Bd,createRef:z.createRef,Fragment:z.Fragment,isValidElement:_r,isElement:Dd,isFragment:Fd,isMemo:Rd,findDOMNode:Pd,Component:z.Component,PureComponent:Oa,memo:md,forwardRef:pd,flushSync:Md,unstable_batchedUpdates:Ed,StrictMode:Td,Suspense:wr,SuspenseList:At,lazy:bd,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:wd};Object.defineProperty(K,\"Component\",{enumerable:!0,get:function(){return z.Component}}),Object.defineProperty(K,\"Fragment\",{enumerable:!0,get:function(){return z.Fragment}}),Object.defineProperty(K,\"createContext\",{enumerable:!0,get:function(){return z.createContext}}),Object.defineProperty(K,\"createElement\",{enumerable:!0,get:function(){return z.createElement}}),Object.defineProperty(K,\"createRef\",{enumerable:!0,get:function(){return z.createRef}}),K.Children=xd,K.PureComponent=Oa,K.StrictMode=Td,K.Suspense=wr,K.SuspenseList=At,K.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=wd,K.cloneElement=Bd,K.createFactory=_d,K.createPortal=vd,K.default=qS,K.findDOMNode=Pd,K.flushSync=Md,K.forwardRef=pd,K.hydrate=Cd,K.isElement=Dd,K.isFragment=Fd,K.isMemo=Rd,K.isValidElement=_r,K.lazy=bd,K.memo=md,K.render=Sd,K.startTransition=mf,K.unmountComponentAtNode=Ad,K.unstable_batchedUpdates=Ed,K.useDeferredValue=pf,K.useInsertionEffect=If,K.useSyncExternalStore=df,K.useTransition=xf,K.version=\"18.3.1\",Object.keys(ae).forEach(function(e){e===\"default\"||K.hasOwnProperty(e)||Object.defineProperty(K,e,{enumerable:!0,get:function(){return ae[e]}})})});function Na(e,o){var t={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&o.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==\"function\")for(var a=0,r=Object.getOwnPropertySymbols(e);a<r.length;a++)o.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(t[r[a]]=e[r[a]]);return t}function kd(e,o,t){if(t||arguments.length===2)for(var r=0,a=o.length,n;r<a;r++)(n||!(r in o))&&(n||(n=Array.prototype.slice.call(o,0,r)),n[r]=o[r]);return e.concat(n||Array.prototype.slice.call(o))}var Xe,Pt=d(()=>{Xe=function(){return Xe=Object.assign||function(o){for(var t,r=1,a=arguments.length;r<a;r++){t=arguments[r];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(o[n]=t[n])}return o},Xe.apply(this,arguments)}});var tt,rt,gf,bf,Ha=d(()=>{tt=\"right-scroll-bar-position\",rt=\"width-before-scroll-bar\",gf=\"with-scroll-bars-hidden\",bf=\"--removed-body-scroll-bar-size\"});function za(e,o){return typeof e==\"function\"?e(o):e&&(e.current=o),e}var Ld=d(()=>{});function Nd(e,o){var t=(0,Od.useState)(function(){return{value:e,callback:o,facade:{get current(){return t.value},set current(r){var a=t.value;a!==r&&(t.value=r,t.callback(r,a))}}}})[0];return t.callback=o,t.facade}var Od,Hd=d(()=>{Od=v(y())});function vf(e,o){var t=Nd(o||null,function(r){return e.forEach(function(a){return za(a,r)})});return jS(function(){var r=zd.get(t);if(r){var a=new Set(r),n=new Set(e),l=t.current;a.forEach(function(f){n.has(f)||za(f,null)}),n.forEach(function(f){a.has(f)||za(f,l)})}zd.set(t,e)},[e]),t}var Wa,jS,zd,Wd=d(()=>{Wa=v(y());Ld();Hd();jS=typeof window<\"u\"?Wa.useLayoutEffect:Wa.useEffect,zd=new WeakMap});var Ud=d(()=>{Wd()});function XS(e){return e}function KS(e,o){o===void 0&&(o=XS);var t=[],r=!1,a={read:function(){if(r)throw new Error(\"Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.\");return t.length?t[t.length-1]:e},useMedium:function(n){var l=o(n,r);return t.push(l),function(){t=t.filter(function(f){return f!==l})}},assignSyncMedium:function(n){for(r=!0;t.length;){var l=t;t=[],l.forEach(n)}t={push:function(f){return n(f)},filter:function(){return t}}},assignMedium:function(n){r=!0;var l=[];if(t.length){var f=t;t=[],f.forEach(n),l=t}var s=function(){var m=l;l=[],m.forEach(n)},i=function(){return Promise.resolve().then(s)};i(),t={push:function(m){l.push(m),i()},filter:function(m){return l=l.filter(m),t}}}};return a}function yf(e){e===void 0&&(e={});var o=KS(null);return o.options=Xe({async:!0,ssr:!1},e),o}var Vd=d(()=>{Pt()});function Sf(e,o){return e.useMedium(o),$d}var Gd,$d,qd=d(()=>{Pt();Gd=v(y()),$d=function(e){var o=e.sideCar,t=Na(e,[\"sideCar\"]);if(!o)throw new Error(\"Sidecar: please provide `sideCar` property to import the right car\");var r=o.read();if(!r)throw new Error(\"Sidecar medium not found\");return Gd.createElement(r,Xe({},t))};$d.isSideCarExport=!0});var Cf=d(()=>{Vd();qd()});var Ua,wf=d(()=>{Cf();Ua=yf()});var Ne,_f,Fr,jd=d(()=>{Pt();Ne=v(y());Ha();Ud();wf();_f=function(){},Fr=Ne.forwardRef(function(e,o){var t=Ne.useRef(null),r=Ne.useState({onScrollCapture:_f,onWheelCapture:_f,onTouchMoveCapture:_f}),a=r[0],n=r[1],l=e.forwardProps,f=e.children,s=e.className,i=e.removeScrollBar,m=e.enabled,c=e.shards,x=e.sideCar,I=e.noIsolation,h=e.inert,b=e.allowPinchZoom,S=e.as,w=S===void 0?\"div\":S,F=e.gapMode,B=Na(e,[\"forwardProps\",\"children\",\"className\",\"removeScrollBar\",\"enabled\",\"shards\",\"sideCar\",\"noIsolation\",\"inert\",\"allowPinchZoom\",\"as\",\"gapMode\"]),P=x,D=vf([t,o]),O=Xe(Xe({},B),a);return Ne.createElement(Ne.Fragment,null,m&&Ne.createElement(P,{sideCar:Ua,removeScrollBar:i,shards:c,noIsolation:I,inert:h,setCallbacks:n,allowPinchZoom:!!b,lockRef:t,gapMode:F}),l?Ne.cloneElement(Ne.Children.only(f),Xe(Xe({},O),{ref:D})):Ne.createElement(w,Xe({},O,{className:s,ref:D}),f))});Fr.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Fr.classNames={fullWidth:rt,zeroRight:tt}});var Xd,Kd,Yd=d(()=>{Kd=function(){if(Xd)return Xd;if(typeof __webpack_nonce__<\"u\")return __webpack_nonce__}});function YS(){if(!document)return null;var e=document.createElement(\"style\");e.type=\"text/css\";var o=Kd();return o&&e.setAttribute(\"nonce\",o),e}function ZS(e,o){e.styleSheet?e.styleSheet.cssText=o:e.appendChild(document.createTextNode(o))}function QS(e){var o=document.head||document.getElementsByTagName(\"head\")[0];o.appendChild(e)}var Ff,Rf=d(()=>{Yd();Ff=function(){var e=0,o=null;return{add:function(t){e==0&&(o=YS())&&(ZS(o,t),QS(o)),e++},remove:function(){e--,!e&&o&&(o.parentNode&&o.parentNode.removeChild(o),o=null)}}}});var Zd,Bf,Af=d(()=>{Zd=v(y());Rf();Bf=function(){var e=Ff();return function(o,t){Zd.useEffect(function(){return e.add(o),function(){e.remove()}},[o&&t])}}});var Rr,Qd=d(()=>{Af();Rr=function(){var e=Bf(),o=function(t){var r=t.styles,a=t.dynamic;return e(r,a),null};return o}});var Pf=d(()=>{Qd();Rf();Af()});var JS,Ef,eC,Mf,Tf=d(()=>{JS={left:0,top:0,right:0,gap:0},Ef=function(e){return parseInt(e||\"\",10)||0},eC=function(e){var o=window.getComputedStyle(document.body),t=o[e===\"padding\"?\"paddingLeft\":\"marginLeft\"],r=o[e===\"padding\"?\"paddingTop\":\"marginTop\"],a=o[e===\"padding\"?\"paddingRight\":\"marginRight\"];return[Ef(t),Ef(r),Ef(a)]},Mf=function(e){if(e===void 0&&(e=\"margin\"),typeof window>\"u\")return JS;var o=eC(e),t=document.documentElement.clientWidth,r=window.innerWidth;return{left:o[0],top:o[1],right:o[2],gap:Math.max(0,r-t+o[2]-o[0])}}});var Mt,oC,Et,tC,Jd,rC,Df,em=d(()=>{Mt=v(y());Pf();Ha();Tf();oC=Rr(),Et=\"data-scroll-locked\",tC=function(e,o,t,r){var a=e.left,n=e.top,l=e.right,f=e.gap;return t===void 0&&(t=\"margin\"),`\n  .`.concat(gf,` {\n   overflow: hidden `).concat(r,`;\n   padding-right: `).concat(f,\"px \").concat(r,`;\n  }\n  body[`).concat(Et,`] {\n    overflow: hidden `).concat(r,`;\n    overscroll-behavior: contain;\n    `).concat([o&&\"position: relative \".concat(r,\";\"),t===\"margin\"&&`\n    padding-left: `.concat(a,`px;\n    padding-top: `).concat(n,`px;\n    padding-right: `).concat(l,`px;\n    margin-left:0;\n    margin-top:0;\n    margin-right: `).concat(f,\"px \").concat(r,`;\n    `),t===\"padding\"&&\"padding-right: \".concat(f,\"px \").concat(r,\";\")].filter(Boolean).join(\"\"),`\n  }\n  \n  .`).concat(tt,` {\n    right: `).concat(f,\"px \").concat(r,`;\n  }\n  \n  .`).concat(rt,` {\n    margin-right: `).concat(f,\"px \").concat(r,`;\n  }\n  \n  .`).concat(tt,\" .\").concat(tt,` {\n    right: 0 `).concat(r,`;\n  }\n  \n  .`).concat(rt,\" .\").concat(rt,` {\n    margin-right: 0 `).concat(r,`;\n  }\n  \n  body[`).concat(Et,`] {\n    `).concat(bf,\": \").concat(f,`px;\n  }\n`)},Jd=function(){var e=parseInt(document.body.getAttribute(Et)||\"0\",10);return isFinite(e)?e:0},rC=function(){Mt.useEffect(function(){return document.body.setAttribute(Et,(Jd()+1).toString()),function(){var e=Jd()-1;e<=0?document.body.removeAttribute(Et):document.body.setAttribute(Et,e.toString())}},[])},Df=function(e){var o=e.noRelative,t=e.noImportant,r=e.gapMode,a=r===void 0?\"margin\":r;rC();var n=Mt.useMemo(function(){return Mf(a)},[a]);return Mt.createElement(oC,{styles:tC(n,!o,a,t?\"\":\"!important\")})}});var om=d(()=>{em();Ha();Tf()});var kf,Br,at,tm=d(()=>{kf=!1;if(typeof window<\"u\")try{Br=Object.defineProperty({},\"passive\",{get:function(){return kf=!0,!0}}),window.addEventListener(\"test\",Br,Br),window.removeEventListener(\"test\",Br,Br)}catch(e){kf=!1}at=kf?{passive:!1}:!1});var aC,rm,nC,lC,Lf,fC,sC,am,nm,iC,lm,fm=d(()=>{aC=function(e){return e.tagName===\"TEXTAREA\"},rm=function(e,o){if(!(e instanceof Element))return!1;var t=window.getComputedStyle(e);return t[o]!==\"hidden\"&&!(t.overflowY===t.overflowX&&!aC(e)&&t[o]===\"visible\")},nC=function(e){return rm(e,\"overflowY\")},lC=function(e){return rm(e,\"overflowX\")},Lf=function(e,o){var t=o.ownerDocument,r=o;do{typeof ShadowRoot<\"u\"&&r instanceof ShadowRoot&&(r=r.host);var a=am(e,r);if(a){var n=nm(e,r),l=n[1],f=n[2];if(l>f)return!0}r=r.parentNode}while(r&&r!==t.body);return!1},fC=function(e){var o=e.scrollTop,t=e.scrollHeight,r=e.clientHeight;return[o,t,r]},sC=function(e){var o=e.scrollLeft,t=e.scrollWidth,r=e.clientWidth;return[o,t,r]},am=function(e,o){return e===\"v\"?nC(o):lC(o)},nm=function(e,o){return e===\"v\"?fC(o):sC(o)},iC=function(e,o){return e===\"h\"&&o===\"rtl\"?-1:1},lm=function(e,o,t,r,a){var n=iC(e,window.getComputedStyle(o).direction),l=n*r,f=t.target,s=o.contains(f),i=!1,m=l>0,c=0,x=0;do{var I=nm(e,f),h=I[0],b=I[1],S=I[2],w=b-S-n*h;(h||w)&&am(e,f)&&(c+=w,x+=h),f instanceof ShadowRoot?f=f.host:f=f.parentNode}while(!s&&f!==document.body||s&&(o.contains(f)||o===f));return(m&&(a&&Math.abs(c)<1||!a&&l>c)||!m&&(a&&Math.abs(x)<1||!a&&-l>x))&&(i=!0),i}});function cm(e){var o=ue.useRef([]),t=ue.useRef([0,0]),r=ue.useRef(),a=ue.useState(dC++)[0],n=ue.useState(Rr)[0],l=ue.useRef(e);ue.useEffect(function(){l.current=e},[e]),ue.useEffect(function(){if(e.inert){document.body.classList.add(\"block-interactivity-\".concat(a));var b=kd([e.lockRef.current],(e.shards||[]).map(im),!0).filter(Boolean);return b.forEach(function(S){return S.classList.add(\"allow-interactivity-\".concat(a))}),function(){document.body.classList.remove(\"block-interactivity-\".concat(a)),b.forEach(function(S){return S.classList.remove(\"allow-interactivity-\".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var f=ue.useCallback(function(b,S){if(\"touches\"in b&&b.touches.length===2||b.type===\"wheel\"&&b.ctrlKey)return!l.current.allowPinchZoom;var w=Va(b),F=t.current,B=\"deltaX\"in b?b.deltaX:F[0]-w[0],P=\"deltaY\"in b?b.deltaY:F[1]-w[1],D,O=b.target,A=Math.abs(B)>Math.abs(P)?\"h\":\"v\";if(\"touches\"in b&&A===\"h\"&&O.type===\"range\")return!1;var E=Lf(A,O);if(!E)return!0;if(E?D=A:(D=A===\"v\"?\"h\":\"v\",E=Lf(A,O)),!E)return!1;if(!r.current&&\"changedTouches\"in b&&(B||P)&&(r.current=D),!D)return!0;var T=r.current||D;return lm(T,S,b,T===\"h\"?B:P,!0)},[]),s=ue.useCallback(function(b){var S=b;if(!(!Tt.length||Tt[Tt.length-1]!==n)){var w=\"deltaY\"in S?sm(S):Va(S),F=o.current.filter(function(D){return D.name===S.type&&(D.target===S.target||S.target===D.shadowParent)&&cC(D.delta,w)})[0];if(F&&F.should){S.cancelable&&S.preventDefault();return}if(!F){var B=(l.current.shards||[]).map(im).filter(Boolean).filter(function(D){return D.contains(S.target)}),P=B.length>0?f(S,B[0]):!l.current.noIsolation;P&&S.cancelable&&S.preventDefault()}}},[]),i=ue.useCallback(function(b,S,w,F){var B={name:b,delta:S,target:w,should:F,shadowParent:mC(w)};o.current.push(B),setTimeout(function(){o.current=o.current.filter(function(P){return P!==B})},1)},[]),m=ue.useCallback(function(b){t.current=Va(b),r.current=void 0},[]),c=ue.useCallback(function(b){i(b.type,sm(b),b.target,f(b,e.lockRef.current))},[]),x=ue.useCallback(function(b){i(b.type,Va(b),b.target,f(b,e.lockRef.current))},[]);ue.useEffect(function(){return Tt.push(n),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:x}),document.addEventListener(\"wheel\",s,at),document.addEventListener(\"touchmove\",s,at),document.addEventListener(\"touchstart\",m,at),function(){Tt=Tt.filter(function(b){return b!==n}),document.removeEventListener(\"wheel\",s,at),document.removeEventListener(\"touchmove\",s,at),document.removeEventListener(\"touchstart\",m,at)}},[]);var I=e.removeScrollBar,h=e.inert;return ue.createElement(ue.Fragment,null,h?ue.createElement(n,{styles:uC(a)}):null,I?ue.createElement(Df,{gapMode:e.gapMode}):null)}function mC(e){for(var o=null;e!==null;)e instanceof ShadowRoot&&(o=e.host,e=e.host),e=e.parentNode;return o}var ue,Va,sm,im,cC,uC,dC,Tt,um=d(()=>{Pt();ue=v(y());om();Pf();tm();fm();Va=function(e){return\"changedTouches\"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},sm=function(e){return[e.deltaX,e.deltaY]},im=function(e){return e&&\"current\"in e?e.current:e},cC=function(e,o){return e[0]===o[0]&&e[1]===o[1]},uC=function(e){return`\n  .block-interactivity-`.concat(e,` {pointer-events: none;}\n  .allow-interactivity-`).concat(e,` {pointer-events: all;}\n`)},dC=0,Tt=[]});var dm,mm=d(()=>{Cf();um();wf();dm=Sf(Ua,cm)});var Ga,pm,Of,xm=d(()=>{Pt();Ga=v(y());jd();mm();pm=Ga.forwardRef(function(e,o){return Ga.createElement(Fr,Xe({},e,{ref:o,sideCar:dm}))});pm.classNames=Fr.classNames;Of=pm});var Im=d(()=>{xm()});function We(e){return Object.keys(e)}var Dt=d(()=>{\"use client\"});function Nf(e){return e&&typeof e==\"object\"&&!Array.isArray(e)}function Ar(e,o){let t=u({},e),r=o;return Nf(e)&&Nf(o)&&Object.keys(o).forEach(a=>{Nf(r[a])&&a in e?t[a]=Ar(t[a],r[a]):t[a]=r[a]}),t}var Hf=d(()=>{});function hm(e){return e.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`)}var gm=d(()=>{\"use client\"});function pC(e){var o;return typeof e!=\"string\"||!e.includes(\"var(--mantine-scale)\")?e:(o=e.match(/^calc\\((.*?)\\)$/))==null?void 0:o[1].split(\"*\")[0].trim()}function bm(e){let o=pC(e);return typeof o==\"number\"?o:typeof o==\"string\"?o.includes(\"calc\")||o.includes(\"var\")?o:o.includes(\"px\")?Number(o.replace(\"px\",\"\")):o.includes(\"rem\")?Number(o.replace(\"rem\",\"\"))*16:o.includes(\"em\")?Number(o.replace(\"em\",\"\"))*16:Number(o):NaN}var vm=d(()=>{});function ym(e){return e===\"0rem\"?\"0rem\":`calc(${e} * var(--mantine-scale))`}function Sm(e,{shouldScale:o=!1}={}){function t(r){if(r===0||r===\"0\")return`0${e}`;if(typeof r==\"number\"){let a=`${r/16}${e}`;return o?ym(a):a}if(typeof r==\"string\"){if(r===\"\"||r.startsWith(\"calc(\")||r.startsWith(\"clamp(\")||r.includes(\"rgba(\"))return r;if(r.includes(\",\"))return r.split(\",\").map(n=>t(n)).join(\",\");if(r.includes(\" \"))return r.split(\" \").map(n=>t(n)).join(\" \");let a=r.replace(\"px\",\"\");if(!Number.isNaN(Number(a))){let n=`${Number(a)/16}${e}`;return o?ym(n):n}}return r}return t}var _,zf,xe=d(()=>{_=Sm(\"rem\",{shouldScale:!0}),zf=Sm(\"em\")});function kt(e){return Object.keys(e).reduce((o,t)=>(e[t]!==void 0&&(o[t]=e[t]),o),{})}var $a=d(()=>{\"use client\"});function qa(e){if(typeof e==\"number\")return!0;if(typeof e==\"string\"){if(e.startsWith(\"calc(\")||e.startsWith(\"var(\")||e.includes(\" \")&&e.trim()!==\"\")return!0;let o=/^[+-]?[0-9]+(\\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\\s+/).every(r=>o.test(r))}return!1}var Wf=d(()=>{\"use client\"});function wm(e){return Array.isArray(e)||e===null?!1:typeof e==\"object\"?e.type!==Cm.Fragment:!1}var Cm,_m=d(()=>{\"use client\";Cm=v(y(),1)});function p(e,o,t,r,a,n){o||(o={});var l,f,s=o;if(\"ref\"in s)for(f in s={},o)f==\"ref\"?l=o[f]:s[f]=o[f];var i={type:e,props:s,key:t,ref:l,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--xC,__i:-1,__u:0,__source:a,__self:n};if(typeof e==\"function\"&&(l=e.defaultProps))for(f in l)s[f]===void 0&&(s[f]=l[f]);return oe.vnode&&oe.vnode(i),i}var xC,AB,Fm=d(()=>{Rt();Rt();xC=0,AB=Array.isArray});var R=d(()=>{Fm()});function No(e){let o=(0,ja.createContext)(null);return[({children:a,value:n})=>p(o.Provider,{value:n,children:a}),()=>{let a=(0,ja.useContext)(o);if(a===null)throw new Error(e);return a}]}var ja,Pr=d(()=>{\"use client\";R();ja=v(y(),1)});function mo(e=null){let o=(0,Xa.createContext)(e);return[({children:a,value:n})=>p(o.Provider,{value:n,children:a}),()=>(0,Xa.useContext)(o)]}var Xa,Lt=d(()=>{\"use client\";R();Xa=v(y(),1)});function ao(e){return IC[e]}var IC,Ot=d(()=>{\"use client\";IC={app:100,modal:200,popover:300,overlay:400,max:9999}});function j(e,o=\"size\",t=!0){if(e!==void 0)return qa(e)?t?_(e):e:`var(--${o}-${e})`}function Ka(e){return j(e,\"mantine-spacing\")}function ie(e){return e===void 0?\"var(--mantine-radius-default)\":j(e,\"mantine-radius\")}function de(e){return j(e,\"mantine-font-size\")}function Rm(e){return j(e,\"mantine-line-height\",!1)}function Ya(e){if(e)return j(e,\"mantine-shadow\",!1)}var Ie=d(()=>{\"use client\";Wf();xe()});function Bm(e=\"mantine-\"){return`${e}${Math.random().toString(36).slice(2,11)}`}var Am=d(()=>{\"use client\"});function no(e){let o=(0,Nt.useRef)(e);return(0,Nt.useEffect)(()=>{o.current=e}),(0,Nt.useMemo)(()=>(...t)=>{var r;return(r=o.current)==null?void 0:r.call(o,...t)},[])}var Nt,Uf=d(()=>{\"use client\";Nt=v(y(),1)});function _o(e,o){let t=typeof o==\"number\"?o:o.delay,r=typeof o==\"number\"?!1:o.flushOnUnmount,a=typeof o==\"number\"?!1:o.leading,n=no(e),l=(0,Ho.useRef)(0),f=(0,Ho.useRef)(()=>{}),s=(0,Ho.useRef)(a),i=Object.assign((0,Ho.useCallback)((...m)=>{if(window.clearTimeout(l.current),a&&s.current){s.current=!1,n(...m);return}let c=()=>{l.current!==0&&(l.current=0,s.current=!0,n(...m))};f.current=c,i.flush=c,l.current=window.setTimeout(c,t),s.current=!1},[n,t,a]),{flush:f.current});return(0,Ho.useEffect)(()=>()=>{window.clearTimeout(l.current),r&&i.flush()},[i,r]),i}var Ho,Pm=d(()=>{\"use client\";Ho=v(y(),1);Uf()});function hC(e,o){try{return e.addEventListener(\"change\",o),()=>e.removeEventListener(\"change\",o)}catch(t){return e.addListener(o),()=>e.removeListener(o)}}function gC(e,o){return typeof window<\"u\"&&\"matchMedia\"in window?window.matchMedia(e).matches:!1}function Em(e,o,{getInitialValueInEffect:t}={getInitialValueInEffect:!0}){let[r,a]=(0,Ht.useState)(t?o:gC(e)),n=(0,Ht.useRef)(null);return(0,Ht.useEffect)(()=>{if(\"matchMedia\"in window)return n.current=window.matchMedia(e),a(n.current.matches),hC(n.current,l=>a(l.matches))},[e]),r}var Ht,Mm=d(()=>{\"use client\";Ht=v(y(),1)});var Za,lo,Vf=d(()=>{\"use client\";Za=v(y(),1),lo=typeof document<\"u\"?Za.useLayoutEffect:Za.useEffect});function Mr(e,o){let t=(0,Er.useRef)(!1);(0,Er.useEffect)(()=>()=>{t.current=!1},[]),(0,Er.useEffect)(()=>{if(t.current)return e();t.current=!0},o)}var Er,Gf=d(()=>{\"use client\";Er=v(y(),1)});function $f({opened:e,shouldReturnFocus:o=!0}){let t=(0,Tm.useRef)(null),r=()=>{var a;t.current&&\"focus\"in t.current&&typeof t.current.focus==\"function\"&&((a=t.current)==null||a.focus({preventScroll:!0}))};return Mr(()=>{let a=-1,n=l=>{l.key===\"Tab\"&&window.clearTimeout(a)};return document.addEventListener(\"keydown\",n),e?t.current=document.activeElement:o&&(a=window.setTimeout(r,10)),()=>{window.clearTimeout(a),document.removeEventListener(\"keydown\",n)}},[e,o]),r}var Tm,Dm=d(()=>{\"use client\";Tm=v(y(),1);Gf()});function vC(e){return e.style.display===\"none\"}function yC(e){if(e.getAttribute(\"aria-hidden\")||e.getAttribute(\"hidden\")||e.getAttribute(\"type\")===\"hidden\")return!1;let t=e;for(;t&&!(t===document.body||t.nodeType===11);){if(vC(t))return!1;t=t.parentNode}return!0}function km(e){let o=e.getAttribute(\"tabindex\");return o===null&&(o=void 0),parseInt(o,10)}function Qa(e){let o=e.nodeName.toLowerCase(),t=!Number.isNaN(km(e));return(bC.test(o)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||t)&&yC(e)}function jf(e){let o=km(e);return(Number.isNaN(o)||o>=0)&&Qa(e)}function Lm(e){return Array.from(e.querySelectorAll(qf)).filter(jf)}var bC,qf,Xf=d(()=>{\"use client\";bC=/input|select|textarea|button|object/,qf=\"a, input, select, textarea, button, object, [tabindex]\"});function Om(e,o){let t=Lm(e);if(!t.length){o.preventDefault();return}let r=t[o.shiftKey?0:t.length-1],a=e.getRootNode(),n=r===a.activeElement||e===a.activeElement,l=a.activeElement;if(l.tagName===\"INPUT\"&&l.getAttribute(\"type\")===\"radio\"&&(n=t.filter(m=>m.getAttribute(\"type\")===\"radio\"&&m.getAttribute(\"name\")===l.getAttribute(\"name\")).includes(r)),!n)return;o.preventDefault();let s=t[o.shiftKey?t.length-1:0];s&&s.focus()}var Nm=d(()=>{\"use client\";Xf()});function Kf(e=!0){let o=(0,zt.useRef)(null),t=a=>{let n=a.querySelector(\"[data-autofocus]\");if(!n){let l=Array.from(a.querySelectorAll(qf));n=l.find(jf)||l.find(Qa)||null,!n&&Qa(a)&&(n=a)}n&&n.focus({preventScroll:!0})},r=(0,zt.useCallback)(a=>{e&&a!==null&&o.current!==a&&(a?(setTimeout(()=>{a.getRootNode()&&t(a)}),o.current=a):o.current=null)},[e]);return(0,zt.useEffect)(()=>{if(!e)return;o.current&&setTimeout(()=>t(o.current));let a=n=>{n.key===\"Tab\"&&o.current&&Om(o.current,n)};return document.addEventListener(\"keydown\",a),()=>document.removeEventListener(\"keydown\",a)},[e]),r}var zt,Hm=d(()=>{\"use client\";zt=v(y(),1);Nm();Xf()});function Wm(){let e=SC();return e?`mantine-${e.replace(/:/g,\"\")}`:\"\"}var zm,SC,Um=d(()=>{\"use client\";zm=v(y(),1),SC=zm.default.useId||(()=>{})});function fo(e){let o=Wm(),[t,r]=(0,Vm.useState)(o);return lo(()=>{r(Bm())},[]),typeof e==\"string\"?e:typeof window>\"u\"?o:t}var Vm,Gm=d(()=>{\"use client\";Vm=v(y(),1);Vf();Am();Um()});function Yf(e,o,t){(0,$m.useEffect)(()=>(window.addEventListener(e,o,t),()=>window.removeEventListener(e,o,t)),[e,o])}var $m,qm=d(()=>{\"use client\";$m=v(y(),1)});function Tr(e,o){if(typeof e==\"function\")return e(o);typeof e==\"object\"&&e!==null&&\"current\"in e&&(e.current=o)}function Xm(...e){let o=new Map;return t=>{if(e.forEach(r=>{let a=Tr(r,t);a&&o.set(r,a)}),o.size>0)return()=>{e.forEach(r=>{let a=o.get(r);a?a():Tr(r,null)}),o.clear()}}}function Ue(...e){return(0,jm.useCallback)(Xm(...e),e)}var jm,Km=d(()=>{\"use client\";jm=v(y(),1)});function nt({value:e,defaultValue:o,finalValue:t,onChange:r=()=>{}}){let[a,n]=(0,Ym.useState)(o!==void 0?o:t),l=(f,...s)=>{n(f),r==null||r(f,...s)};return e!==void 0?[e,r,!0]:[a,l,!1]}var Ym,Zm=d(()=>{\"use client\";Ym=v(y(),1)});function Dr(e,o){return Em(\"(prefers-reduced-motion: reduce)\",e,o)}var Qm=d(()=>{\"use client\";Mm()});function Zf(e=!1,o){let{onOpen:t,onClose:r}=o||{},[a,n]=(0,Wt.useState)(e),l=(0,Wt.useCallback)(()=>{n(i=>i||(t==null||t(),!0))},[t]),f=(0,Wt.useCallback)(()=>{n(i=>i&&(r==null||r(),!1))},[r]),s=(0,Wt.useCallback)(()=>{a?f():l()},[f,l,a]);return[a,{open:l,close:f,toggle:s}]}var Wt,Jm=d(()=>{\"use client\";Wt=v(y(),1)});var he=d(()=>{Uf();Pm();Dm();Gf();Hm();Gm();Vf();Km();Qm();Zm();qm();Jm()});function ep(e){var o,t,r=\"\";if(typeof e==\"string\"||typeof e==\"number\")r+=e;else if(typeof e==\"object\")if(Array.isArray(e)){var a=e.length;for(o=0;o<a;o++)e[o]&&(t=ep(e[o]))&&(r&&(r+=\" \"),r+=t)}else for(t in e)e[t]&&(r&&(r+=\" \"),r+=t);return r}function CC(){for(var e,o,t=0,r=\"\",a=arguments.length;t<a;t++)(e=arguments[t])&&(o=ep(e))&&(r&&(r+=\" \"),r+=o);return r}var fe,L=d(()=>{fe=CC});function _C(e){let o={};return e.forEach(t=>{Object.entries(t).forEach(([r,a])=>{o[r]?o[r]=fe(o[r],a):o[r]=a})}),o}function zo({theme:e,classNames:o,props:t,stylesCtx:r}){let n=(Array.isArray(o)?o:[o]).map(l=>typeof l==\"function\"?l(e,t,r):l||wC);return _C(n)}var wC,kr=d(()=>{\"use client\";L();wC={}});function lt({theme:e,styles:o,props:t,stylesCtx:r}){return(Array.isArray(o)?o:[o]).reduce((n,l)=>typeof l==\"function\"?u(u({},n),l(e,t,r)):u(u({},n),l),{})}var Ja=d(()=>{\"use client\"});function Wo(){let e=(0,en.useContext)(on);if(!e)throw new Error(\"[@mantine/core] MantineProvider was not found in tree\");return e}function op(){return Wo().cssVariablesResolver}function tp(){return Wo().classNamesPrefix}function Ut(){return Wo().getStyleNonce}function rp(){return Wo().withStaticClasses}function ap(){return Wo().headless}function np(){var e;return(e=Wo().stylesTransform)==null?void 0:e.sx}function lp(){var e;return(e=Wo().stylesTransform)==null?void 0:e.styles}function tn(){return Wo().env||\"default\"}var en,on,po=d(()=>{\"use client\";en=v(y(),1),on=(0,en.createContext)(null)});function FC(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function RC(e){let o=e.replace(\"#\",\"\");if(o.length===3){let l=o.split(\"\");o=[l[0],l[0],l[1],l[1],l[2],l[2]].join(\"\")}if(o.length===8){let l=parseInt(o.slice(6,8),16)/255;return{r:parseInt(o.slice(0,2),16),g:parseInt(o.slice(2,4),16),b:parseInt(o.slice(4,6),16),a:l}}let t=parseInt(o,16),r=t>>16&255,a=t>>8&255,n=t&255;return{r,g:a,b:n,a:1}}function BC(e){let[o,t,r,a]=e.replace(/[^0-9,./]/g,\"\").split(/[/,]/).map(Number);return{r:o,g:t,b:r,a:a||1}}function AC(e){let o=/^hsla?\\(\\s*(\\d+)\\s*,\\s*(\\d+%)\\s*,\\s*(\\d+%)\\s*(,\\s*(0?\\.\\d+|\\d+(\\.\\d+)?))?\\s*\\)$/i,t=e.match(o);if(!t)return{r:0,g:0,b:0,a:1};let r=parseInt(t[1],10),a=parseInt(t[2],10)/100,n=parseInt(t[3],10)/100,l=t[5]?parseFloat(t[5]):void 0,f=(1-Math.abs(2*n-1))*a,s=r/60,i=f*(1-Math.abs(s%2-1)),m=n-f/2,c,x,I;return s>=0&&s<1?(c=f,x=i,I=0):s>=1&&s<2?(c=i,x=f,I=0):s>=2&&s<3?(c=0,x=f,I=i):s>=3&&s<4?(c=0,x=i,I=f):s>=4&&s<5?(c=i,x=0,I=f):(c=f,x=0,I=i),{r:Math.round((c+m)*255),g:Math.round((x+m)*255),b:Math.round((I+m)*255),a:l||1}}function Vt(e){return FC(e)?RC(e):e.startsWith(\"rgb\")?BC(e):e.startsWith(\"hsl\")?AC(e):{r:0,g:0,b:0,a:1}}var rn=d(()=>{});function Lr(e,o){if(e.startsWith(\"var(\"))return`color-mix(in srgb, ${e}, black ${o*100}%)`;let{r:t,g:r,b:a,a:n}=Vt(e),l=1-o,f=s=>Math.round(s*l);return`rgba(${f(t)}, ${f(r)}, ${f(a)}, ${n})`}var fp=d(()=>{rn()});function Fo(e,o){return typeof e.primaryShade==\"number\"?e.primaryShade:o===\"dark\"?e.primaryShade.dark:e.primaryShade.light}var Or=d(()=>{\"use client\"});function Qf(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function PC(e){let o=e.match(/oklch\\((.*?)%\\s/);return o?parseFloat(o[1]):null}function EC(e){if(e.startsWith(\"oklch(\"))return(PC(e)||0)/100;let{r:o,g:t,b:r}=Vt(e),a=o/255,n=t/255,l=r/255,f=Qf(a),s=Qf(n),i=Qf(l);return .2126*f+.7152*s+.0722*i}function Gt(e,o=.179){return e.startsWith(\"var(\")?!1:EC(e)>o}var sp=d(()=>{rn()});function Ye({color:e,theme:o,colorScheme:t}){if(typeof e!=\"string\")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e===\"bright\")return{color:e,value:t===\"dark\"?o.white:o.black,shade:void 0,isThemeColor:!1,isLight:Gt(t===\"dark\"?o.white:o.black,o.luminanceThreshold),variable:\"--mantine-color-bright\"};if(e===\"dimmed\")return{color:e,value:t===\"dark\"?o.colors.dark[2]:o.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:Gt(t===\"dark\"?o.colors.dark[2]:o.colors.gray[6],o.luminanceThreshold),variable:\"--mantine-color-dimmed\"};if(e===\"white\"||e===\"black\")return{color:e,value:e===\"white\"?o.white:o.black,shade:void 0,isThemeColor:!1,isLight:Gt(e===\"white\"?o.white:o.black,o.luminanceThreshold),variable:`--mantine-color-${e}`};let[r,a]=e.split(\".\"),n=a?Number(a):void 0,l=r in o.colors;if(l){let f=n!==void 0?o.colors[r][n]:o.colors[r][Fo(o,t||\"light\")];return{color:r,value:f,shade:n,isThemeColor:l,isLight:Gt(f,o.luminanceThreshold),variable:a?`--mantine-color-${r}-${n}`:`--mantine-color-${r}-filled`}}return{color:e,value:e,isThemeColor:l,isLight:Gt(e,o.luminanceThreshold),shade:n,variable:void 0}}var ft=d(()=>{\"use client\";Or();sp()});function Ve(e,o){let t=Ye({color:e||o.primaryColor,theme:o});return t.variable?`var(${t.variable})`:e}var st=d(()=>{\"use client\";ft()});function Nr(e,o){var n,l;let t={from:(e==null?void 0:e.from)||o.defaultGradient.from,to:(e==null?void 0:e.to)||o.defaultGradient.to,deg:(l=(n=e==null?void 0:e.deg)!=null?n:o.defaultGradient.deg)!=null?l:0},r=Ve(t.from,o),a=Ve(t.to,o);return`linear-gradient(${t.deg}deg, ${r} 0%, ${a} 100%)`}var Jf=d(()=>{\"use client\";st()});function eo(e,o){if(typeof e!=\"string\"||o>1||o<0)return\"rgba(0, 0, 0, 1)\";if(e.startsWith(\"var(\")){let n=(1-o)*100;return`color-mix(in srgb, ${e}, transparent ${n}%)`}if(e.startsWith(\"oklch\"))return e.includes(\"/\")?e.replace(/\\/\\s*[\\d.]+\\s*\\)/,`/ ${o})`):e.replace(\")\",` / ${o})`);let{r:t,g:r,b:a}=Vt(e);return`rgba(${t}, ${r}, ${a}, ${o})`}var it,an=d(()=>{rn();it=eo});var KA,ip,cp=d(()=>{\"use client\";xe();KA=v(y(),1);R();fp();Jf();ft();an();ip=({color:e,theme:o,variant:t,gradient:r,autoContrast:a})=>{let n=Ye({color:e,theme:o}),l=typeof a==\"boolean\"?a:o.autoContrast;if(t===\"none\")return{background:\"transparent\",hover:\"transparent\",color:\"inherit\",border:\"none\"};if(t===\"filled\"){let f=l&&n.isLight?\"var(--mantine-color-black)\":\"var(--mantine-color-white)\";return n.isThemeColor?n.shade===void 0?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:f,border:`${_(1)} solid transparent`}:{background:`var(--mantine-color-${n.color}-${n.shade})`,hover:`var(--mantine-color-${n.color}-${n.shade===9?8:n.shade+1})`,color:f,border:`${_(1)} solid transparent`}:{background:e,hover:Lr(e,.1),color:f,border:`${_(1)} solid transparent`}}if(t===\"light\"){if(n.isThemeColor){if(n.shade===void 0)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${_(1)} solid transparent`};let f=o.colors[n.color][n.shade];return{background:eo(f,.1),hover:eo(f,.12),color:`var(--mantine-color-${n.color}-${Math.min(n.shade,6)})`,border:`${_(1)} solid transparent`}}return{background:eo(e,.1),hover:eo(e,.12),color:e,border:`${_(1)} solid transparent`}}if(t===\"outline\")return n.isThemeColor?n.shade===void 0?{background:\"transparent\",hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${_(1)} solid var(--mantine-color-${e}-outline)`}:{background:\"transparent\",hover:eo(o.colors[n.color][n.shade],.05),color:`var(--mantine-color-${n.color}-${n.shade})`,border:`${_(1)} solid var(--mantine-color-${n.color}-${n.shade})`}:{background:\"transparent\",hover:eo(e,.05),color:e,border:`${_(1)} solid ${e}`};if(t===\"subtle\"){if(n.isThemeColor){if(n.shade===void 0)return{background:\"transparent\",hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${_(1)} solid transparent`};let f=o.colors[n.color][n.shade];return{background:\"transparent\",hover:eo(f,.12),color:`var(--mantine-color-${n.color}-${Math.min(n.shade,6)})`,border:`${_(1)} solid transparent`}}return{background:\"transparent\",hover:eo(e,.12),color:e,border:`${_(1)} solid transparent`}}return t===\"transparent\"?n.isThemeColor?n.shade===void 0?{background:\"transparent\",hover:\"transparent\",color:`var(--mantine-color-${e}-light-color)`,border:`${_(1)} solid transparent`}:{background:\"transparent\",hover:\"transparent\",color:`var(--mantine-color-${n.color}-${Math.min(n.shade,6)})`,border:`${_(1)} solid transparent`}:{background:\"transparent\",hover:\"transparent\",color:e,border:`${_(1)} solid transparent`}:t===\"white\"?n.isThemeColor?n.shade===void 0?{background:\"var(--mantine-color-white)\",hover:Lr(o.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${_(1)} solid transparent`}:{background:\"var(--mantine-color-white)\",hover:Lr(o.white,.01),color:`var(--mantine-color-${n.color}-${n.shade})`,border:`${_(1)} solid transparent`}:{background:\"var(--mantine-color-white)\",hover:Lr(o.white,.01),color:e,border:`${_(1)} solid transparent`}:t===\"gradient\"?{background:Nr(r,o),hover:Nr(r,o),color:\"var(--mantine-color-white)\",border:\"none\"}:t===\"default\"?{background:\"var(--mantine-color-default)\",hover:\"var(--mantine-color-default-hover)\",color:\"var(--mantine-color-default-color)\",border:`${_(1)} solid var(--mantine-color-default-border)`}:{}}});var up,dp=d(()=>{up={dark:[\"#C9C9C9\",\"#b8b8b8\",\"#828282\",\"#696969\",\"#424242\",\"#3b3b3b\",\"#2e2e2e\",\"#242424\",\"#1f1f1f\",\"#141414\"],gray:[\"#f8f9fa\",\"#f1f3f5\",\"#e9ecef\",\"#dee2e6\",\"#ced4da\",\"#adb5bd\",\"#868e96\",\"#495057\",\"#343a40\",\"#212529\"],red:[\"#fff5f5\",\"#ffe3e3\",\"#ffc9c9\",\"#ffa8a8\",\"#ff8787\",\"#ff6b6b\",\"#fa5252\",\"#f03e3e\",\"#e03131\",\"#c92a2a\"],pink:[\"#fff0f6\",\"#ffdeeb\",\"#fcc2d7\",\"#faa2c1\",\"#f783ac\",\"#f06595\",\"#e64980\",\"#d6336c\",\"#c2255c\",\"#a61e4d\"],grape:[\"#f8f0fc\",\"#f3d9fa\",\"#eebefa\",\"#e599f7\",\"#da77f2\",\"#cc5de8\",\"#be4bdb\",\"#ae3ec9\",\"#9c36b5\",\"#862e9c\"],violet:[\"#f3f0ff\",\"#e5dbff\",\"#d0bfff\",\"#b197fc\",\"#9775fa\",\"#845ef7\",\"#7950f2\",\"#7048e8\",\"#6741d9\",\"#5f3dc4\"],indigo:[\"#edf2ff\",\"#dbe4ff\",\"#bac8ff\",\"#91a7ff\",\"#748ffc\",\"#5c7cfa\",\"#4c6ef5\",\"#4263eb\",\"#3b5bdb\",\"#364fc7\"],blue:[\"#e7f5ff\",\"#d0ebff\",\"#a5d8ff\",\"#74c0fc\",\"#4dabf7\",\"#339af0\",\"#228be6\",\"#1c7ed6\",\"#1971c2\",\"#1864ab\"],cyan:[\"#e3fafc\",\"#c5f6fa\",\"#99e9f2\",\"#66d9e8\",\"#3bc9db\",\"#22b8cf\",\"#15aabf\",\"#1098ad\",\"#0c8599\",\"#0b7285\"],teal:[\"#e6fcf5\",\"#c3fae8\",\"#96f2d7\",\"#63e6be\",\"#38d9a9\",\"#20c997\",\"#12b886\",\"#0ca678\",\"#099268\",\"#087f5b\"],green:[\"#ebfbee\",\"#d3f9d8\",\"#b2f2bb\",\"#8ce99a\",\"#69db7c\",\"#51cf66\",\"#40c057\",\"#37b24d\",\"#2f9e44\",\"#2b8a3e\"],lime:[\"#f4fce3\",\"#e9fac8\",\"#d8f5a2\",\"#c0eb75\",\"#a9e34b\",\"#94d82d\",\"#82c91e\",\"#74b816\",\"#66a80f\",\"#5c940d\"],yellow:[\"#fff9db\",\"#fff3bf\",\"#ffec99\",\"#ffe066\",\"#ffd43b\",\"#fcc419\",\"#fab005\",\"#f59f00\",\"#f08c00\",\"#e67700\"],orange:[\"#fff4e6\",\"#ffe8cc\",\"#ffd8a8\",\"#ffc078\",\"#ffa94d\",\"#ff922b\",\"#fd7e14\",\"#f76707\",\"#e8590c\",\"#d9480f\"]}});var aP,mp,Hr,es=d(()=>{xe();aP=v(y(),1);R();cp();dp();mp=\"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji\",Hr={scale:1,fontSmoothing:!0,focusRing:\"auto\",white:\"#fff\",black:\"#000\",colors:up,primaryShade:{light:6,dark:8},primaryColor:\"blue\",variantColorResolver:ip,autoContrast:!1,luminanceThreshold:.3,fontFamily:mp,fontFamilyMonospace:\"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace\",respectReducedMotion:!1,cursorType:\"default\",defaultGradient:{from:\"blue\",to:\"cyan\",deg:45},defaultRadius:\"sm\",activeClassName:\"mantine-active\",focusClassName:\"\",headings:{fontFamily:mp,fontWeight:\"700\",textWrap:\"wrap\",sizes:{h1:{fontSize:_(34),lineHeight:\"1.3\"},h2:{fontSize:_(26),lineHeight:\"1.35\"},h3:{fontSize:_(22),lineHeight:\"1.4\"},h4:{fontSize:_(18),lineHeight:\"1.45\"},h5:{fontSize:_(16),lineHeight:\"1.5\"},h6:{fontSize:_(14),lineHeight:\"1.5\"}}},fontSizes:{xs:_(12),sm:_(14),md:_(16),lg:_(18),xl:_(20)},lineHeights:{xs:\"1.4\",sm:\"1.45\",md:\"1.55\",lg:\"1.6\",xl:\"1.65\"},radius:{xs:_(2),sm:_(4),md:_(8),lg:_(16),xl:_(32)},spacing:{xs:_(10),sm:_(12),md:_(16),lg:_(20),xl:_(32)},breakpoints:{xs:\"36em\",sm:\"48em\",md:\"62em\",lg:\"75em\",xl:\"88em\"},shadows:{xs:`0 ${_(1)} ${_(3)} rgba(0, 0, 0, 0.05), 0 ${_(1)} ${_(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${_(1)} ${_(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${_(10)} ${_(15)} ${_(-5)}, rgba(0, 0, 0, 0.04) 0 ${_(7)} ${_(7)} ${_(-5)}`,md:`0 ${_(1)} ${_(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${_(20)} ${_(25)} ${_(-5)}, rgba(0, 0, 0, 0.04) 0 ${_(10)} ${_(10)} ${_(-5)}`,lg:`0 ${_(1)} ${_(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${_(28)} ${_(23)} ${_(-7)}, rgba(0, 0, 0, 0.04) 0 ${_(12)} ${_(12)} ${_(-7)}`,xl:`0 ${_(1)} ${_(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${_(36)} ${_(28)} ${_(-7)}, rgba(0, 0, 0, 0.04) 0 ${_(17)} ${_(17)} ${_(-7)}`},other:{},components:{}}});function os(e){return e===\"auto\"||e===\"dark\"||e===\"light\"}var pp=d(()=>{\"use client\"});function xp({key:e=\"mantine-color-scheme-value\"}={}){let o;return{get:t=>{if(typeof window>\"u\")return t;try{let r=window.localStorage.getItem(e);return os(r)?r:t}catch(r){return t}},set:t=>{try{window.localStorage.setItem(e,t)}catch(r){console.warn(\"[@mantine/core] Local storage color scheme manager was unable to save color scheme.\",r)}},subscribe:t=>{o=r=>{r.storageArea===window.localStorage&&r.key===e&&os(r.newValue)&&t(r.newValue)},window.addEventListener(\"storage\",o)},unsubscribe:()=>{window.removeEventListener(\"storage\",o)},clear:()=>{window.localStorage.removeItem(e)}}}var Ip=d(()=>{\"use client\";pp()});function ts(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function gp(e){if(!(e.primaryColor in e.colors))throw new Error(MC);if(typeof e.primaryShade==\"object\"&&(!ts(e.primaryShade.dark)||!ts(e.primaryShade.light)))throw new Error(hp);if(typeof e.primaryShade==\"number\"&&!ts(e.primaryShade))throw new Error(hp)}function bp(e,o){var r;if(!o)return gp(e),e;let t=Ar(e,o);return o.fontFamily&&!((r=o.headings)!=null&&r.fontFamily)&&(t.headings.fontFamily=o.fontFamily),gp(t),t}var mP,MC,hp,vp=d(()=>{Hf();mP=v(y(),1);R();MC=\"[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more \\u2013 https://mantine.dev/theming/colors/#primary-color\",hp=\"[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }\"});function He(){let e=(0,ct.useContext)(rs);if(!e)throw new Error(\"@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app\");return e}function nn({theme:e,children:o,inherit:t=!0}){let r=TC(),a=(0,ct.useMemo)(()=>bp(t?r:Hr,e),[e,r,t]);return p(rs.Provider,{value:a,children:o})}var ct,rs,TC,xo=d(()=>{\"use client\";R();ct=v(y(),1);es();vp();rs=(0,ct.createContext)(null),TC=()=>(0,ct.useContext)(rs)||Hr;nn.displayName=\"@mantine/core/MantineThemeProvider\"});function yp(){let e=He(),o=Ut(),t=We(e.breakpoints).reduce((r,a)=>{let n=e.breakpoints[a].includes(\"px\"),l=bm(e.breakpoints[a]),f=n?`${l-.1}px`:zf(l-.1),s=n?`${l}px`:zf(l);return`${r}@media (max-width: ${f}) {.mantine-visible-from-${a} {display: none !important;}}@media (min-width: ${s}) {.mantine-hidden-from-${a} {display: none !important;}}`},\"\");return p(\"style\",{\"data-mantine-styles\":\"classes\",nonce:o==null?void 0:o(),dangerouslySetInnerHTML:{__html:t}})}var wP,Sp=d(()=>{\"use client\";R();Dt();vm();xe();wP=v(y(),1);po();xo()});function ln(e){return Object.entries(e).map(([o,t])=>`${o}: ${t};`).join(\"\")}var Cp=d(()=>{\"use client\"});function $t(e,o){return(Array.isArray(e)?e:[e]).reduce((r,a)=>`${a}{${r}}`,o)}var wp=d(()=>{\"use client\"});function _p(e,o){let t=ln(e.variables),r=t?$t(o,t):\"\",a=ln(e.dark),n=ln(e.light),l=a?o===\":host\"?$t(`${o}([data-mantine-color-scheme=\"dark\"])`,a):$t(`${o}[data-mantine-color-scheme=\"dark\"]`,a):\"\",f=n?o===\":host\"?$t(`${o}([data-mantine-color-scheme=\"light\"])`,n):$t(`${o}[data-mantine-color-scheme=\"light\"]`,n):\"\";return`${r}${l}${f}`}var Fp=d(()=>{\"use client\";Cp();wp()});function zr({color:e,theme:o,autoContrast:t}){return(typeof t==\"boolean\"?t:o.autoContrast)&&Ye({color:e||o.primaryColor,theme:o}).isLight?\"var(--mantine-color-black)\":\"var(--mantine-color-white)\"}function as(e,o){return zr({color:e.colors[e.primaryColor][Fo(e,o)],theme:e,autoContrast:null})}var fn=d(()=>{\"use client\";Or();ft()});function Wr({theme:e,color:o,colorScheme:t,name:r=o,withColorValues:a=!0}){if(!e.colors[o])return{};if(t===\"light\"){let f=Fo(e,\"light\"),s={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-filled)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${f})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${f===9?8:f+1})`,[`--mantine-color-${r}-light`]:it(e.colors[o][f],.1),[`--mantine-color-${r}-light-hover`]:it(e.colors[o][f],.12),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${f})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${f})`,[`--mantine-color-${r}-outline-hover`]:it(e.colors[o][f],.05)};return a?u({[`--mantine-color-${r}-0`]:e.colors[o][0],[`--mantine-color-${r}-1`]:e.colors[o][1],[`--mantine-color-${r}-2`]:e.colors[o][2],[`--mantine-color-${r}-3`]:e.colors[o][3],[`--mantine-color-${r}-4`]:e.colors[o][4],[`--mantine-color-${r}-5`]:e.colors[o][5],[`--mantine-color-${r}-6`]:e.colors[o][6],[`--mantine-color-${r}-7`]:e.colors[o][7],[`--mantine-color-${r}-8`]:e.colors[o][8],[`--mantine-color-${r}-9`]:e.colors[o][9]},s):s}let n=Fo(e,\"dark\"),l={[`--mantine-color-${r}-text`]:`var(--mantine-color-${r}-4)`,[`--mantine-color-${r}-filled`]:`var(--mantine-color-${r}-${n})`,[`--mantine-color-${r}-filled-hover`]:`var(--mantine-color-${r}-${n===9?8:n+1})`,[`--mantine-color-${r}-light`]:it(e.colors[o][Math.max(0,n-2)],.15),[`--mantine-color-${r}-light-hover`]:it(e.colors[o][Math.max(0,n-2)],.2),[`--mantine-color-${r}-light-color`]:`var(--mantine-color-${r}-${Math.max(n-5,0)})`,[`--mantine-color-${r}-outline`]:`var(--mantine-color-${r}-${Math.max(n-4,0)})`,[`--mantine-color-${r}-outline-hover`]:it(e.colors[o][Math.max(n-4,0)],.05)};return a?u({[`--mantine-color-${r}-0`]:e.colors[o][0],[`--mantine-color-${r}-1`]:e.colors[o][1],[`--mantine-color-${r}-2`]:e.colors[o][2],[`--mantine-color-${r}-3`]:e.colors[o][3],[`--mantine-color-${r}-4`]:e.colors[o][4],[`--mantine-color-${r}-5`]:e.colors[o][5],[`--mantine-color-${r}-6`]:e.colors[o][6],[`--mantine-color-${r}-7`]:e.colors[o][7],[`--mantine-color-${r}-8`]:e.colors[o][8],[`--mantine-color-${r}-9`]:e.colors[o][9]},l):l}var OP,Rp=d(()=>{\"use client\";Or();OP=v(y(),1);R();an()});function Bp(e){return!!e&&typeof e==\"object\"&&\"mantine-virtual-color\"in e}var UP,Ap=d(()=>{UP=v(y(),1);R()});function qt(e,o,t){We(o).forEach(r=>Object.assign(e,{[`--mantine-${t}-${r}`]:o[r]}))}var jP,sn,ns=d(()=>{\"use client\";Dt();xe();jP=v(y(),1);R();Or();fn();Rp();Ap();sn=e=>{let o=Fo(e,\"light\"),t=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:_(e.defaultRadius),r={variables:{\"--mantine-scale\":e.scale.toString(),\"--mantine-cursor-type\":e.cursorType,\"--mantine-color-scheme\":\"light dark\",\"--mantine-webkit-font-smoothing\":e.fontSmoothing?\"antialiased\":\"unset\",\"--mantine-moz-font-smoothing\":e.fontSmoothing?\"grayscale\":\"unset\",\"--mantine-color-white\":e.white,\"--mantine-color-black\":e.black,\"--mantine-line-height\":e.lineHeights.md,\"--mantine-font-family\":e.fontFamily,\"--mantine-font-family-monospace\":e.fontFamilyMonospace,\"--mantine-font-family-headings\":e.headings.fontFamily,\"--mantine-heading-font-weight\":e.headings.fontWeight,\"--mantine-heading-text-wrap\":e.headings.textWrap,\"--mantine-radius-default\":t,\"--mantine-primary-color-filled\":`var(--mantine-color-${e.primaryColor}-filled)`,\"--mantine-primary-color-filled-hover\":`var(--mantine-color-${e.primaryColor}-filled-hover)`,\"--mantine-primary-color-light\":`var(--mantine-color-${e.primaryColor}-light)`,\"--mantine-primary-color-light-hover\":`var(--mantine-color-${e.primaryColor}-light-hover)`,\"--mantine-primary-color-light-color\":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{\"--mantine-primary-color-contrast\":as(e,\"light\"),\"--mantine-color-bright\":\"var(--mantine-color-black)\",\"--mantine-color-text\":e.black,\"--mantine-color-body\":e.white,\"--mantine-color-error\":\"var(--mantine-color-red-6)\",\"--mantine-color-placeholder\":\"var(--mantine-color-gray-5)\",\"--mantine-color-anchor\":`var(--mantine-color-${e.primaryColor}-${o})`,\"--mantine-color-default\":\"var(--mantine-color-white)\",\"--mantine-color-default-hover\":\"var(--mantine-color-gray-0)\",\"--mantine-color-default-color\":\"var(--mantine-color-black)\",\"--mantine-color-default-border\":\"var(--mantine-color-gray-4)\",\"--mantine-color-dimmed\":\"var(--mantine-color-gray-6)\",\"--mantine-color-disabled\":\"var(--mantine-color-gray-2)\",\"--mantine-color-disabled-color\":\"var(--mantine-color-gray-5)\",\"--mantine-color-disabled-border\":\"var(--mantine-color-gray-3)\"},dark:{\"--mantine-primary-color-contrast\":as(e,\"dark\"),\"--mantine-color-bright\":\"var(--mantine-color-white)\",\"--mantine-color-text\":\"var(--mantine-color-dark-0)\",\"--mantine-color-body\":\"var(--mantine-color-dark-7)\",\"--mantine-color-error\":\"var(--mantine-color-red-8)\",\"--mantine-color-placeholder\":\"var(--mantine-color-dark-3)\",\"--mantine-color-anchor\":`var(--mantine-color-${e.primaryColor}-4)`,\"--mantine-color-default\":\"var(--mantine-color-dark-6)\",\"--mantine-color-default-hover\":\"var(--mantine-color-dark-5)\",\"--mantine-color-default-color\":\"var(--mantine-color-white)\",\"--mantine-color-default-border\":\"var(--mantine-color-dark-4)\",\"--mantine-color-dimmed\":\"var(--mantine-color-dark-2)\",\"--mantine-color-disabled\":\"var(--mantine-color-dark-6)\",\"--mantine-color-disabled-color\":\"var(--mantine-color-dark-3)\",\"--mantine-color-disabled-border\":\"var(--mantine-color-gray-6)\"}};qt(r.variables,e.breakpoints,\"breakpoint\"),qt(r.variables,e.spacing,\"spacing\"),qt(r.variables,e.fontSizes,\"font-size\"),qt(r.variables,e.lineHeights,\"line-height\"),qt(r.variables,e.shadows,\"shadow\"),qt(r.variables,e.radius,\"radius\"),e.colors[e.primaryColor].forEach((n,l)=>{r.variables[`--mantine-primary-color-${l}`]=`var(--mantine-color-${e.primaryColor}-${l})`}),We(e.colors).forEach(n=>{let l=e.colors[n];if(Bp(l)){Object.assign(r.light,Wr({theme:e,name:l.name,color:l.light,colorScheme:\"light\",withColorValues:!0})),Object.assign(r.dark,Wr({theme:e,name:l.name,color:l.dark,colorScheme:\"dark\",withColorValues:!0}));return}l.forEach((f,s)=>{r.variables[`--mantine-color-${n}-${s}`]=f}),Object.assign(r.light,Wr({theme:e,color:n,colorScheme:\"light\",withColorValues:!1})),Object.assign(r.dark,Wr({theme:e,color:n,colorScheme:\"dark\",withColorValues:!1}))});let a=e.headings.sizes;return We(a).forEach(n=>{r.variables[`--mantine-${n}-font-size`]=a[n].fontSize,r.variables[`--mantine-${n}-line-height`]=a[n].lineHeight,r.variables[`--mantine-${n}-font-weight`]=a[n].fontWeight||e.headings.fontWeight}),r}});function Pp({theme:e,generator:o}){let t=sn(e),r=o==null?void 0:o(e);return r?Ar(t,r):t}var oE,Ep=d(()=>{\"use client\";Hf();oE=v(y(),1);R();ns()});function Mp(e){let o={variables:{},light:{},dark:{}};return We(e.variables).forEach(t=>{ls.variables[t]!==e.variables[t]&&(o.variables[t]=e.variables[t])}),We(e.light).forEach(t=>{ls.light[t]!==e.light[t]&&(o.light[t]=e.light[t])}),We(e.dark).forEach(t=>{ls.dark[t]!==e.dark[t]&&(o.dark[t]=e.dark[t])}),o}var lE,ls,Tp=d(()=>{\"use client\";Dt();lE=v(y(),1);R();es();ns();ls=sn(Hr)});function DC(e){return`\n  ${e}[data-mantine-color-scheme=\"dark\"] { --mantine-color-scheme: dark; }\n  ${e}[data-mantine-color-scheme=\"light\"] { --mantine-color-scheme: light; }\n`}function fs({cssVariablesSelector:e,deduplicateCssVariables:o}){let t=He(),r=Ut(),a=op(),n=Pp({theme:t,generator:a}),l=e===\":root\"&&o,f=l?Mp(n):n,s=_p(f,e);return s?p(\"style\",{\"data-mantine-styles\":!0,nonce:r==null?void 0:r(),dangerouslySetInnerHTML:{__html:`${s}${l?\"\":DC(e)}`}}):null}var Dp=d(()=>{\"use client\";R();Fp();po();xo();Ep();Tp();fs.displayName=\"@mantine/CssVariables\"});function jt(e,o){var a,n;let t=typeof window<\"u\"&&\"matchMedia\"in window&&((a=window.matchMedia(\"(prefers-color-scheme: dark)\"))==null?void 0:a.matches),r=e!==\"auto\"?e:t?\"dark\":\"light\";(n=o())==null||n.setAttribute(\"data-mantine-color-scheme\",r)}function kp({manager:e,defaultColorScheme:o,getRootElement:t,forceColorScheme:r}){let a=(0,Io.useRef)(null),[n,l]=(0,Io.useState)(()=>e.get(o)),f=r||n,s=(0,Io.useCallback)(m=>{r||(jt(m,t),l(m),e.set(m))},[e.set,f,r]),i=(0,Io.useCallback)(()=>{l(o),jt(o,t),e.clear()},[e.clear,o]);return(0,Io.useEffect)(()=>(e.subscribe(s),e.unsubscribe),[e.subscribe,e.unsubscribe]),lo(()=>{jt(e.get(o),t)},[]),(0,Io.useEffect)(()=>{var c;if(r)return jt(r,t),()=>{};r===void 0&&jt(n,t),typeof window<\"u\"&&\"matchMedia\"in window&&(a.current=window.matchMedia(\"(prefers-color-scheme: dark)\"));let m=x=>{n===\"auto\"&&jt(x.matches?\"dark\":\"light\",t)};return(c=a.current)==null||c.addEventListener(\"change\",m),()=>{var x;return(x=a.current)==null?void 0:x.removeEventListener(\"change\",m)}},[n,r]),{colorScheme:f,setColorScheme:s,clearColorScheme:i}}var Io,Lp=d(()=>{\"use client\";Io=v(y(),1);he()});function Op({respectReducedMotion:e,getRootElement:o}){lo(()=>{var t;e&&((t=o())==null||t.setAttribute(\"data-respect-reduced-motion\",\"true\"))},[e])}var Np=d(()=>{\"use client\";he()});function cn({theme:e,children:o,getStyleNonce:t,withStaticClasses:r=!0,withGlobalClasses:a=!0,deduplicateCssVariables:n=!0,withCssVariables:l=!0,cssVariablesSelector:f=\":root\",classNamesPrefix:s=\"mantine\",colorSchemeManager:i=xp(),defaultColorScheme:m=\"light\",getRootElement:c=()=>document.documentElement,cssVariablesResolver:x,forceColorScheme:I,stylesTransform:h,env:b}){let{colorScheme:S,setColorScheme:w,clearColorScheme:F}=kp({defaultColorScheme:m,forceColorScheme:I,manager:i,getRootElement:c});return Op({respectReducedMotion:(e==null?void 0:e.respectReducedMotion)||!1,getRootElement:c}),p(on.Provider,{value:{colorScheme:S,setColorScheme:w,clearColorScheme:F,getRootElement:c,classNamesPrefix:s,getStyleNonce:t,cssVariablesResolver:x,cssVariablesSelector:f,withStaticClasses:r,stylesTransform:h,env:b},children:p(nn,{theme:e,children:[l&&p(fs,{cssVariablesSelector:f,deduplicateCssVariables:n}),a&&p(yp,{}),o]})})}function Hp({children:e,theme:o}){return p(on.Provider,{value:{colorScheme:\"auto\",setColorScheme:()=>{},clearColorScheme:()=>{},getRootElement:()=>document.documentElement,classNamesPrefix:\"mantine\",cssVariablesSelector:\":root\",withStaticClasses:!1,headless:!0},children:p(nn,{theme:o,children:e})})}var RE,zp=d(()=>{\"use client\";R();Ip();po();Sp();Dp();RE=v(y(),1);xo();Lp();Np();cn.displayName=\"@mantine/core/MantineProvider\";Hp.displayName=\"@mantine/core/HeadlessMantineProvider\"});function Wp({classNames:e,styles:o,props:t,stylesCtx:r}){let a=He();return{resolvedClassNames:zo({theme:a,classNames:e,props:t,stylesCtx:r||void 0}),resolvedStyles:lt({theme:a,styles:o,props:t,stylesCtx:r||void 0})}}var ME,Up=d(()=>{\"use client\";ME=v(y(),1);R();xo();kr();Ja()});function Vp({theme:e,options:o,unstyled:t}){return fe((o==null?void 0:o.focusable)&&!t&&(e.focusClassName||kC[e.focusRing]),(o==null?void 0:o.active)&&!t&&e.activeClassName)}var kC,Gp=d(()=>{\"use client\";L();kC={always:\"mantine-focus-always\",auto:\"mantine-focus-auto\",never:\"mantine-focus-never\"}});function $p({selector:e,stylesCtx:o,options:t,props:r,theme:a}){return zo({theme:a,classNames:t==null?void 0:t.classNames,props:(t==null?void 0:t.props)||r,stylesCtx:o})[e]}var qp=d(()=>{\"use client\";kr()});function ss({selector:e,stylesCtx:o,theme:t,classNames:r,props:a}){return zo({theme:t,classNames:r,props:a,stylesCtx:o})[e]}var jp=d(()=>{\"use client\";kr()});function Xp({rootSelector:e,selector:o,className:t}){return e===o?t:void 0}var Kp=d(()=>{\"use client\"});function Yp({selector:e,classes:o,unstyled:t}){return t?void 0:o[e]}var Zp=d(()=>{\"use client\"});function Qp({themeName:e,classNamesPrefix:o,selector:t,withStaticClass:r}){return r===!1?[]:e.map(a=>`${o}-${a}-${t}`)}var Jp=d(()=>{\"use client\"});function ex({themeName:e,theme:o,selector:t,props:r,stylesCtx:a}){return e.map(n=>{var l,f;return(f=zo({theme:o,classNames:(l=o.components[n])==null?void 0:l.classNames,props:r,stylesCtx:a}))==null?void 0:f[t]})}var ox=d(()=>{\"use client\";kr()});function tx({options:e,classes:o,selector:t,unstyled:r}){return e!=null&&e.variant&&!r?o[`${t}--${e.variant}`]:void 0}var rx=d(()=>{\"use client\"});function ax({theme:e,options:o,themeName:t,selector:r,classNamesPrefix:a,classNames:n,classes:l,unstyled:f,className:s,rootSelector:i,props:m,stylesCtx:c,withStaticClasses:x,headless:I,transformedStyles:h}){return fe(Vp({theme:e,options:o,unstyled:f||I}),ex({theme:e,themeName:t,selector:r,props:m,stylesCtx:c}),tx({options:o,classes:l,selector:r,unstyled:f}),ss({selector:r,stylesCtx:c,theme:e,classNames:n,props:m}),ss({selector:r,stylesCtx:c,theme:e,classNames:h,props:m}),$p({selector:r,stylesCtx:c,options:o,props:m,theme:e}),Xp({rootSelector:i,selector:r,className:s}),Yp({selector:r,classes:l,unstyled:f||I}),x&&!I&&Qp({themeName:t,classNamesPrefix:a,selector:r,withStaticClass:o==null?void 0:o.withStaticClass}),o==null?void 0:o.className)}var nx=d(()=>{\"use client\";L();Gp();qp();jp();Kp();Zp();Jp();ox();rx()});function lx({theme:e,themeName:o,props:t,stylesCtx:r,selector:a}){return o.map(n=>{var l;return lt({theme:e,styles:(l=e.components[n])==null?void 0:l.styles,props:t,stylesCtx:r})[a]}).reduce((n,l)=>u(u({},n),l),{})}var fx=d(()=>{\"use client\";Ja()});function un({style:e,theme:o}){return Array.isArray(e)?[...e].reduce((t,r)=>u(u({},t),un({style:r,theme:o})),{}):typeof e==\"function\"?e(o):e==null?{}:e}var sx=d(()=>{\"use client\"});function ix(e){return e.reduce((o,t)=>(t&&Object.keys(t).forEach(r=>{o[r]=u(u({},o[r]),kt(t[r]))}),o),{})}var dM,cx=d(()=>{\"use client\";$a();dM=v(y(),1);R()});function ux({vars:e,varsResolver:o,theme:t,props:r,stylesCtx:a,selector:n,themeName:l,headless:f}){var s;return(s=ix([f?{}:o==null?void 0:o(t,r,a),...l.map(i=>{var m,c,x;return(x=(c=(m=t.components)==null?void 0:m[i])==null?void 0:c.vars)==null?void 0:x.call(c,t,r,a)}),e==null?void 0:e(t,r,a)]))==null?void 0:s[n]}var dx=d(()=>{\"use client\";cx()});function mx({theme:e,themeName:o,selector:t,options:r,props:a,stylesCtx:n,rootSelector:l,styles:f,style:s,vars:i,varsResolver:m,headless:c,withStylesTransform:x}){return u(u(u(u(u(u({},!x&&lx({theme:e,themeName:o,props:a,stylesCtx:n,selector:t})),!x&&lt({theme:e,styles:f,props:a,stylesCtx:n})[t]),!x&&lt({theme:e,styles:r==null?void 0:r.styles,props:(r==null?void 0:r.props)||a,stylesCtx:n})[t]),ux({theme:e,props:a,stylesCtx:n,vars:i,varsResolver:m,selector:t,themeName:o,headless:c})),l===t?un({style:s,theme:e}):null),un({style:r==null?void 0:r.style,theme:e}))}var px=d(()=>{\"use client\";fx();sx();Ja();dx()});function xx({props:e,stylesCtx:o,themeName:t}){var l;let r=He(),a=(l=lp())==null?void 0:l();return{getTransformedStyles:f=>a?[...f.map(i=>a(i,{props:e,theme:r,ctx:o})),...t.map(i=>{var m;return a((m=r.components[i])==null?void 0:m.styles,{props:e,theme:r,ctx:o})})].filter(Boolean):[],withStylesTransform:!!a}}var wM,Ix=d(()=>{\"use client\";wM=v(y(),1);R();po();xo()});function W({name:e,classes:o,props:t,stylesCtx:r,className:a,style:n,rootSelector:l=\"root\",unstyled:f,classNames:s,styles:i,vars:m,varsResolver:c}){let x=He(),I=tp(),h=rp(),b=ap(),S=(Array.isArray(e)?e:[e]).filter(B=>B),{withStylesTransform:w,getTransformedStyles:F}=xx({props:t,stylesCtx:r,themeName:S});return(B,P)=>({className:ax({theme:x,options:P,themeName:S,selector:B,classNamesPrefix:I,classNames:s,classes:o,unstyled:f,className:a,rootSelector:l,props:t,stylesCtx:r,withStaticClasses:h,headless:b,transformedStyles:F([P==null?void 0:P.styles,i])}),style:mx({theme:x,themeName:S,selector:B,options:P,props:t,stylesCtx:r,rootSelector:l,styles:i,style:n,vars:m,varsResolver:c,headless:b,withStylesTransform:w})})}var AM,ne=d(()=>{\"use client\";AM=v(y(),1);R();po();xo();nx();px();Ix()});function dn(e,o){return typeof e==\"boolean\"?e:o.autoContrast}var is=d(()=>{\"use client\"});function M(e,o,t){var l;let r=He(),a=(l=r.components[e])==null?void 0:l.defaultProps,n=typeof a==\"function\"?a(r):a;return u(u(u({},o),n),kt(t))}var HM,q=d(()=>{\"use client\";$a();HM=v(y(),1);R();xo()});function mn(e){return We(e).reduce((o,t)=>e[t]!==void 0?`${o}${hm(t)}:${e[t]};`:o,\"\").trim()}var qM,hx=d(()=>{\"use client\";Dt();gm();qM=v(y(),1);R()});function gx({selector:e,styles:o,media:t,container:r}){let a=o?mn(o):\"\",n=Array.isArray(t)?t.map(f=>`@media${f.query}{${e}{${mn(f.styles)}}}`):[],l=Array.isArray(r)?r.map(f=>`@container ${f.query}{${e}{${mn(f.styles)}}}`):[];return`${a?`${e}{${a}}`:\"\"}${n.join(\"\")}${l.join(\"\")}`.trim()}var bx=d(()=>{\"use client\";hx()});function vx(e){let o=Ut();return p(\"style\",{\"data-mantine-styles\":\"inline\",nonce:o==null?void 0:o(),dangerouslySetInnerHTML:{__html:gx(e)}})}var QM,yx=d(()=>{\"use client\";R();QM=v(y(),1);po();bx()});function Uo(e){let bc=e,{m:o,mx:t,my:r,mt:a,mb:n,ml:l,mr:f,me:s,ms:i,p:m,px:c,py:x,pt:I,pb:h,pl:b,pr:S,pe:w,ps:F,bd:B,bg:P,c:D,opacity:O,ff:A,fz:E,fw:T,lts:U,ta:V,lh:$,fs:me,tt:Y,td:ve,w:re,miw:Se,maw:ke,h:Me,mih:be,mah:qe,bgsz:Yo,bgp:Ce,bgr:Lo,bga:Je,pos:Oo,top:Zo,left:St,bottom:da,right:nl,inset:dy,display:my,flex:py,hiddenFrom:xy,visibleFrom:Iy,lightHidden:hy,darkHidden:gy,sx:by}=bc,vy=C(bc,[\"m\",\"mx\",\"my\",\"mt\",\"mb\",\"ml\",\"mr\",\"me\",\"ms\",\"p\",\"px\",\"py\",\"pt\",\"pb\",\"pl\",\"pr\",\"pe\",\"ps\",\"bd\",\"bg\",\"c\",\"opacity\",\"ff\",\"fz\",\"fw\",\"lts\",\"ta\",\"lh\",\"fs\",\"tt\",\"td\",\"w\",\"miw\",\"maw\",\"h\",\"mih\",\"mah\",\"bgsz\",\"bgp\",\"bgr\",\"bga\",\"pos\",\"top\",\"left\",\"bottom\",\"right\",\"inset\",\"display\",\"flex\",\"hiddenFrom\",\"visibleFrom\",\"lightHidden\",\"darkHidden\",\"sx\"]);return{styleProps:kt({m:o,mx:t,my:r,mt:a,mb:n,ml:l,mr:f,me:s,ms:i,p:m,px:c,py:x,pt:I,pb:h,pl:b,pr:S,pe:w,ps:F,bd:B,bg:P,c:D,opacity:O,ff:A,fz:E,fw:T,lts:U,ta:V,lh:$,fs:me,tt:Y,td:ve,w:re,miw:Se,maw:ke,h:Me,mih:be,mah:qe,bgsz:Yo,bgp:Ce,bgr:Lo,bga:Je,pos:Oo,top:Zo,left:St,bottom:da,right:nl,inset:dy,display:my,flex:py,hiddenFrom:xy,visibleFrom:Iy,lightHidden:hy,darkHidden:gy,sx:by}),rest:vy}}var rT,Ur=d(()=>{\"use client\";$a();rT=v(y(),1);R()});var Sx,Cx=d(()=>{\"use client\";Sx={m:{type:\"spacing\",property:\"margin\"},mt:{type:\"spacing\",property:\"marginTop\"},mb:{type:\"spacing\",property:\"marginBottom\"},ml:{type:\"spacing\",property:\"marginLeft\"},mr:{type:\"spacing\",property:\"marginRight\"},ms:{type:\"spacing\",property:\"marginInlineStart\"},me:{type:\"spacing\",property:\"marginInlineEnd\"},mx:{type:\"spacing\",property:\"marginInline\"},my:{type:\"spacing\",property:\"marginBlock\"},p:{type:\"spacing\",property:\"padding\"},pt:{type:\"spacing\",property:\"paddingTop\"},pb:{type:\"spacing\",property:\"paddingBottom\"},pl:{type:\"spacing\",property:\"paddingLeft\"},pr:{type:\"spacing\",property:\"paddingRight\"},ps:{type:\"spacing\",property:\"paddingInlineStart\"},pe:{type:\"spacing\",property:\"paddingInlineEnd\"},px:{type:\"spacing\",property:\"paddingInline\"},py:{type:\"spacing\",property:\"paddingBlock\"},bd:{type:\"border\",property:\"border\"},bg:{type:\"color\",property:\"background\"},c:{type:\"textColor\",property:\"color\"},opacity:{type:\"identity\",property:\"opacity\"},ff:{type:\"fontFamily\",property:\"fontFamily\"},fz:{type:\"fontSize\",property:\"fontSize\"},fw:{type:\"identity\",property:\"fontWeight\"},lts:{type:\"size\",property:\"letterSpacing\"},ta:{type:\"identity\",property:\"textAlign\"},lh:{type:\"lineHeight\",property:\"lineHeight\"},fs:{type:\"identity\",property:\"fontStyle\"},tt:{type:\"identity\",property:\"textTransform\"},td:{type:\"identity\",property:\"textDecoration\"},w:{type:\"spacing\",property:\"width\"},miw:{type:\"spacing\",property:\"minWidth\"},maw:{type:\"spacing\",property:\"maxWidth\"},h:{type:\"spacing\",property:\"height\"},mih:{type:\"spacing\",property:\"minHeight\"},mah:{type:\"spacing\",property:\"maxHeight\"},bgsz:{type:\"size\",property:\"backgroundSize\"},bgp:{type:\"identity\",property:\"backgroundPosition\"},bgr:{type:\"identity\",property:\"backgroundRepeat\"},bga:{type:\"identity\",property:\"backgroundAttachment\"},pos:{type:\"identity\",property:\"position\"},top:{type:\"size\",property:\"top\"},left:{type:\"size\",property:\"left\"},bottom:{type:\"size\",property:\"bottom\"},right:{type:\"size\",property:\"right\"},inset:{type:\"size\",property:\"inset\"},display:{type:\"identity\",property:\"display\"},flex:{type:\"identity\",property:\"flex\"}}});function Vr(e,o){let t=Ye({color:e,theme:o});return t.color===\"dimmed\"?\"var(--mantine-color-dimmed)\":t.color===\"bright\"?\"var(--mantine-color-bright)\":t.variable?`var(${t.variable})`:t.color}function wx(e,o){let t=Ye({color:e,theme:o});return t.isThemeColor&&t.shade===void 0?`var(--mantine-color-${t.color}-text)`:Vr(e,o)}var iT,cs=d(()=>{\"use client\";ft();iT=v(y(),1);R()});function _x(e,o){if(typeof e==\"number\")return _(e);if(typeof e==\"string\"){let[t,r,...a]=e.split(\" \").filter(l=>l.trim()!==\"\"),n=`${_(t)}`;return r&&(n+=` ${r}`),a.length>0&&(n+=` ${Vr(a.join(\" \"),o)}`),n.trim()}return e}var mT,Fx=d(()=>{\"use client\";xe();mT=v(y(),1);R();cs()});function Bx(e){return typeof e==\"string\"&&e in Rx?Rx[e]:e}var Rx,Ax=d(()=>{\"use client\";Rx={text:\"var(--mantine-font-family)\",mono:\"var(--mantine-font-family-monospace)\",monospace:\"var(--mantine-font-family-monospace)\",heading:\"var(--mantine-font-family-headings)\",headings:\"var(--mantine-font-family-headings)\"}});function Px(e,o){return typeof e==\"string\"&&e in o.fontSizes?`var(--mantine-font-size-${e})`:typeof e==\"string\"&&LC.includes(e)?`var(--mantine-${e}-font-size)`:typeof e==\"number\"?_(e):typeof e==\"string\"?_(e):e}var bT,LC,Ex=d(()=>{\"use client\";xe();bT=v(y(),1);R();LC=[\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\"]});function Mx(e){return e}var Tx=d(()=>{\"use client\"});function Dx(e,o){return typeof e==\"string\"&&e in o.lineHeights?`var(--mantine-line-height-${e})`:typeof e==\"string\"&&OC.includes(e)?`var(--mantine-${e}-line-height)`:e}var OC,kx=d(()=>{\"use client\";OC=[\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\"]});function Lx(e){return typeof e==\"number\"?_(e):e}var _T,Ox=d(()=>{\"use client\";xe();_T=v(y(),1);R()});function Nx(e,o){if(typeof e==\"number\")return _(e);if(typeof e==\"string\"){let t=e.replace(\"-\",\"\");if(!(t in o.spacing))return _(e);let r=`--mantine-spacing-${t}`;return e.startsWith(\"-\")?`calc(var(${r}) * -1)`:`var(${r})`}return e}var AT,Hx=d(()=>{\"use client\";xe();AT=v(y(),1);R()});var pn,zx=d(()=>{\"use client\";Fx();cs();Ax();Ex();Tx();kx();Ox();Hx();pn={color:Vr,textColor:wx,fontSize:Px,spacing:Nx,identity:Mx,size:Lx,lineHeight:Dx,fontFamily:Bx,border:_x}});function Wx(e){return e.replace(\"(min-width: \",\"\").replace(\"em)\",\"\")}function Ux(t){var r=t,{media:e}=r,o=C(r,[\"media\"]);let n=Object.keys(e).sort((l,f)=>Number(Wx(l))-Number(Wx(f))).map(l=>({query:l,styles:e[l]}));return g(u({},o),{media:n})}var Vx=d(()=>{\"use client\"});function NC(e){if(typeof e!=\"object\"||e===null)return!1;let o=Object.keys(e);return!(o.length===1&&o[0]===\"base\")}function HC(e){return typeof e==\"object\"&&e!==null?\"base\"in e?e.base:void 0:e}function zC(e){return typeof e==\"object\"&&e!==null?We(e).filter(o=>o!==\"base\"):[]}function WC(e,o){return typeof e==\"object\"&&e!==null&&o in e?e[o]:e}function Gx({styleProps:e,data:o,theme:t}){return Ux(We(e).reduce((r,a)=>{if(a===\"hiddenFrom\"||a===\"visibleFrom\"||a===\"sx\")return r;let n=o[a],l=Array.isArray(n.property)?n.property:[n.property],f=HC(e[a]);if(!NC(e[a]))return l.forEach(i=>{r.inlineStyles[i]=pn[n.type](f,t)}),r;r.hasResponsiveStyles=!0;let s=zC(e[a]);return l.forEach(i=>{f&&(r.styles[i]=pn[n.type](f,t)),s.forEach(m=>{let c=`(min-width: ${t.breakpoints[m]})`;r.media[c]=g(u({},r.media[c]),{[i]:pn[n.type](WC(e[a],m),t)})})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}var GT,$x=d(()=>{\"use client\";Dt();GT=v(y(),1);R();zx();Vx()});function jx(){return`__m__-${(0,qx.useId)().replace(/:/g,\"\")}`}var qx,Xx=d(()=>{\"use client\";qx=v(y(),1)});function Kx(e){return e.startsWith(\"data-\")?e:`data-${e}`}function UC(e){return Object.keys(e).reduce((o,t)=>{let r=e[t];return r===void 0||r===\"\"||r===!1||r===null||(o[Kx(t)]=e[t]),o},{})}function us(e){return e?typeof e==\"string\"?{[Kx(e)]:!0}:Array.isArray(e)?[...e].reduce((o,t)=>u(u({},o),us(t)),{}):UC(e):null}var Yx=d(()=>{\"use client\"});function ds(e,o){return Array.isArray(e)?[...e].reduce((t,r)=>u(u({},t),ds(r,o)),{}):typeof e==\"function\"?e(o):e==null?{}:e}function Zx({theme:e,style:o,vars:t,styleProps:r}){let a=ds(o,e),n=ds(t,e);return u(u(u({},a),n),r)}var Qx=d(()=>{\"use client\"});var Jx,eI,k,Q=d(()=>{\"use client\";R();Jx=v(y(),1);L();yx();Wf();po();xo();Yx();Qx();Ur();Cx();$x();Xx();eI=(0,Jx.forwardRef)((b,h)=>{var S=b,{component:e,style:o,__vars:t,className:r,variant:a,mod:n,size:l,hiddenFrom:f,visibleFrom:s,lightHidden:i,darkHidden:m,renderRoot:c,__size:x}=S,I=C(S,[\"component\",\"style\",\"__vars\",\"className\",\"variant\",\"mod\",\"size\",\"hiddenFrom\",\"visibleFrom\",\"lightHidden\",\"darkHidden\",\"renderRoot\",\"__size\"]);var U;let w=He(),F=e||\"div\",{styleProps:B,rest:P}=Uo(I),D=np(),O=(U=D==null?void 0:D())==null?void 0:U(B.sx),A=jx(),E=Gx({styleProps:B,theme:w,data:Sx}),T=u(u({ref:h,style:Zx({theme:w,style:o,vars:t,styleProps:E.inlineStyles}),className:fe(r,O,{[A]:E.hasResponsiveStyles,\"mantine-light-hidden\":i,\"mantine-dark-hidden\":m,[`mantine-hidden-from-${f}`]:f,[`mantine-visible-from-${s}`]:s}),\"data-variant\":a,\"data-size\":qa(l)?void 0:l||void 0,size:x},us(n)),P);return p(we,{children:[E.hasResponsiveStyles&&p(vx,{selector:`.${A}`,styles:E.styles,media:E.media}),typeof c==\"function\"?c(T):p(F,u({},T))]})});eI.displayName=\"@mantine/core/Box\";k=eI});function ps(e){return e}function H(e){let o=(0,ms.forwardRef)(e);return o.extend=ps,o.withProps=t=>{let r=(0,ms.forwardRef)((a,n)=>p(o,g(u(u({},t),a),{ref:n})));return r.extend=o.extend,r.displayName=`WithProps(${o.displayName})`,r},o}var ms,ee=d(()=>{\"use client\";R();ms=v(y(),1)});function Ae(e){let o=(0,xs.forwardRef)(e);return o.withProps=t=>{let r=(0,xs.forwardRef)((a,n)=>p(o,g(u(u({},t),a),{ref:n})));return r.extend=o.extend,r.displayName=`WithProps(${o.displayName})`,r},o.extend=ps,o}var xs,ho=d(()=>{\"use client\";R();xs=v(y(),1);ee()});function xn(){return(0,Gr.useContext)(VC)}var Gr,VC,Is=d(()=>{\"use client\";R();Gr=v(y(),1),VC=(0,Gr.createContext)({dir:\"ltr\",toggleDirection:()=>{},setDirection:()=>{}})});function tI(e){return Ke.useMemo(()=>e.every(o=>o==null)?null:o=>{e.forEach(t=>{typeof t==\"function\"?t(o):t!=null&&(t.current=o)})},e)}var Ke,hs,oI,rI,_D,GC,$C,qC,jC,XC,KC,FD,RD,aI=d(()=>{Ke=v(y(),1),hs=v(y(),1),oI=v(y(),1);rI=u({},Ke),_D=rI.useInsertionEffect,GC=\"ArrowUp\",$C=\"ArrowDown\",qC=\"ArrowLeft\",jC=\"ArrowRight\",XC=[qC,jC],KC=[GC,$C],FD=[...XC,...KC],RD=rI.useId});var PD,nI,ge,Ze=d(()=>{\"use client\";PD=v(y(),1);Pr();R();L();[nI,ge]=No(\"ScrollArea.Root component was not found in tree\")});function Ro(e,o){let t=no(o);lo(()=>{let r=0;if(e){let a=new ResizeObserver(()=>{cancelAnimationFrame(r),r=window.requestAnimationFrame(t)});return a.observe(e),()=>{window.cancelAnimationFrame(r),a.unobserve(e)}}},[e,t])}var In=d(()=>{\"use client\";he()});var Xt,YC,lI,fI=d(()=>{\"use client\";R();Xt=v(y(),1);Ze();In();YC=(0,Xt.forwardRef)((e,o)=>{let m=e,{style:t}=m,r=C(m,[\"style\"]),a=ge(),[n,l]=(0,Xt.useState)(0),[f,s]=(0,Xt.useState)(0),i=!!(n&&f);return Ro(a.scrollbarX,()=>{var x;let c=((x=a.scrollbarX)==null?void 0:x.offsetHeight)||0;a.onCornerHeightChange(c),s(c)}),Ro(a.scrollbarY,()=>{var x;let c=((x=a.scrollbarY)==null?void 0:x.offsetWidth)||0;a.onCornerWidthChange(c),l(c)}),i?p(\"div\",g(u({},r),{ref:o,style:g(u({},t),{width:n,height:f})})):null}),lI=(0,Xt.forwardRef)((e,o)=>{let t=ge(),r=!!(t.scrollbarX&&t.scrollbarY);return t.type!==\"scroll\"&&r?p(YC,g(u({},e),{ref:o})):null})});var oo,ZC,gs,sI=d(()=>{\"use client\";R();oo=v(y(),1);he();L();q();Q();Ze();ZC={scrollHideDelay:1e3,type:\"hover\"},gs=(0,oo.forwardRef)((e,o)=>{let U=M(\"ScrollAreaRoot\",ZC,e),{type:t,scrollHideDelay:r,scrollbars:a,getStyles:n}=U,l=C(U,[\"type\",\"scrollHideDelay\",\"scrollbars\",\"getStyles\"]),[f,s]=(0,oo.useState)(null),[i,m]=(0,oo.useState)(null),[c,x]=(0,oo.useState)(null),[I,h]=(0,oo.useState)(null),[b,S]=(0,oo.useState)(null),[w,F]=(0,oo.useState)(0),[B,P]=(0,oo.useState)(0),[D,O]=(0,oo.useState)(!1),[A,E]=(0,oo.useState)(!1),T=Ue(o,V=>s(V));return p(nI,{value:{type:t,scrollHideDelay:r,scrollArea:f,viewport:i,onViewportChange:m,content:c,onContentChange:x,scrollbarX:I,onScrollbarXChange:h,scrollbarXEnabled:D,onScrollbarXEnabledChange:O,scrollbarY:b,onScrollbarYChange:S,scrollbarYEnabled:A,onScrollbarYEnabledChange:E,onCornerWidthChange:F,onCornerHeightChange:P,getStyles:n},children:p(k,g(u({},l),{ref:T,__vars:{\"--sa-corner-width\":a!==\"xy\"?\"0px\":`${w}px`,\"--sa-corner-height\":a!==\"xy\"?\"0px\":`${B}px`}}))})});gs.displayName=\"@mantine/core/ScrollAreaRoot\"});function hn(e,o){let t=e/o;return Number.isNaN(t)?0:t}var bs=d(()=>{\"use client\"});function Vo(e){let o=hn(e.viewport,e.content),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-t)*o;return Math.max(r,18)}var $r=d(()=>{\"use client\";bs()});function gn(e,o){return t=>{if(e[0]===e[1]||o[0]===o[1])return o[0];let r=(o[1]-o[0])/(e[1]-e[0]);return o[0]+r*(t-e[0])}}var vs=d(()=>{\"use client\"});function QC(e,[o,t]){return Math.min(t,Math.max(o,e))}function ys(e,o,t=\"ltr\"){let r=Vo(o),a=o.scrollbar.paddingStart+o.scrollbar.paddingEnd,n=o.scrollbar.size-a,l=o.content-o.viewport,f=n-r,s=t===\"ltr\"?[0,l]:[l*-1,0],i=QC(e,s);return gn([0,l],[0,f])(i)}var iI=d(()=>{\"use client\";$r();vs()});function cI(e,o,t,r=\"ltr\"){let a=Vo(t),n=a/2,l=o||n,f=a-l,s=t.scrollbar.paddingStart+l,i=t.scrollbar.size-t.scrollbar.paddingEnd-f,m=t.content-t.viewport,c=r===\"ltr\"?[0,m]:[m*-1,0];return gn([s,i],c)(e)}var uI=d(()=>{\"use client\";$r();vs()});function bn(e,o){return e>0&&e<o}var Ss=d(()=>{\"use client\"});function Kt(e){return e?parseInt(e,10):0}var Cs=d(()=>{\"use client\"});function go(e,o,{checkForDefaultPrevented:t=!0}={}){return r=>{e==null||e(r),(t===!1||!r.defaultPrevented)&&(o==null||o(r))}}var vn=d(()=>{\"use client\"});var i1,dI,ws,_s=d(()=>{\"use client\";i1=v(y(),1);Pr();R();L();[dI,ws]=No(\"ScrollAreaScrollbar was not found in tree\")});var bo,yn,Fs=d(()=>{\"use client\";R();bo=v(y(),1);he();Ze();In();vn();_s();yn=(0,bo.forwardRef)((e,o)=>{let E=e,{sizes:t,hasThumb:r,onThumbChange:a,onThumbPointerUp:n,onThumbPointerDown:l,onThumbPositionChange:f,onDragScroll:s,onWheelScroll:i,onResize:m}=E,c=C(E,[\"sizes\",\"hasThumb\",\"onThumbChange\",\"onThumbPointerUp\",\"onThumbPointerDown\",\"onThumbPositionChange\",\"onDragScroll\",\"onWheelScroll\",\"onResize\"]),x=ge(),[I,h]=(0,bo.useState)(null),b=Ue(o,T=>h(T)),S=(0,bo.useRef)(null),w=(0,bo.useRef)(\"\"),{viewport:F}=x,B=t.content-t.viewport,P=no(i),D=no(f),O=_o(m,10),A=T=>{if(S.current){let U=T.clientX-S.current.left,V=T.clientY-S.current.top;s({x:U,y:V})}};return(0,bo.useEffect)(()=>{let T=U=>{let V=U.target;(I==null?void 0:I.contains(V))&&P(U,B)};return document.addEventListener(\"wheel\",T,{passive:!1}),()=>document.removeEventListener(\"wheel\",T,{passive:!1})},[F,I,B,P]),(0,bo.useEffect)(D,[t,D]),Ro(I,O),Ro(x.content,O),p(dI,{value:{scrollbar:I,hasThumb:r,onThumbChange:no(a),onThumbPointerUp:no(n),onThumbPositionChange:D,onThumbPointerDown:no(l)},children:p(\"div\",g(u({},c),{ref:b,\"data-mantine-scrollbar\":!0,style:u({position:\"absolute\"},c.style),onPointerDown:go(e.onPointerDown,T=>{T.preventDefault(),T.button===0&&(T.target.setPointerCapture(T.pointerId),S.current=I.getBoundingClientRect(),w.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect=\"none\",A(T))}),onPointerMove:go(e.onPointerMove,A),onPointerUp:go(e.onPointerUp,T=>{let U=T.target;U.hasPointerCapture(T.pointerId)&&(T.preventDefault(),U.releasePointerCapture(T.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=w.current,S.current=null}}))})})});var Go,Rs,mI=d(()=>{\"use client\";R();Go=v(y(),1);he();Ze();Ss();$r();Cs();Fs();Rs=(0,Go.forwardRef)((e,o)=>{let c=e,{sizes:t,onSizesChange:r,style:a}=c,n=C(c,[\"sizes\",\"onSizesChange\",\"style\"]),l=ge(),[f,s]=(0,Go.useState)(),i=(0,Go.useRef)(null),m=Ue(o,i,l.onScrollbarXChange);return(0,Go.useEffect)(()=>{i.current&&s(getComputedStyle(i.current))},[i]),p(yn,g(u({\"data-orientation\":\"horizontal\"},n),{ref:m,sizes:t,style:g(u({},a),{\"--sa-thumb-width\":`${Vo(t)}px`}),onThumbPointerDown:x=>e.onThumbPointerDown(x.x),onDragScroll:x=>e.onDragScroll(x.x),onWheelScroll:(x,I)=>{if(l.viewport){let h=l.viewport.scrollLeft+x.deltaX;e.onWheelScroll(h),bn(h,I)&&x.preventDefault()}},onResize:()=>{i.current&&l.viewport&&f&&r({content:l.viewport.scrollWidth,viewport:l.viewport.offsetWidth,scrollbar:{size:i.current.clientWidth,paddingStart:Kt(f.paddingLeft),paddingEnd:Kt(f.paddingRight)}})}}))});Rs.displayName=\"@mantine/core/ScrollAreaScrollbarX\"});var $o,Bs,pI=d(()=>{\"use client\";R();$o=v(y(),1);he();Ze();Ss();$r();Cs();Fs();Bs=(0,$o.forwardRef)((e,o)=>{let c=e,{sizes:t,onSizesChange:r,style:a}=c,n=C(c,[\"sizes\",\"onSizesChange\",\"style\"]),l=ge(),[f,s]=(0,$o.useState)(),i=(0,$o.useRef)(null),m=Ue(o,i,l.onScrollbarYChange);return(0,$o.useEffect)(()=>{i.current&&s(window.getComputedStyle(i.current))},[]),p(yn,g(u({},n),{\"data-orientation\":\"vertical\",ref:m,sizes:t,style:u({\"--sa-thumb-height\":`${Vo(t)}px`},a),onThumbPointerDown:x=>e.onThumbPointerDown(x.y),onDragScroll:x=>e.onDragScroll(x.y),onWheelScroll:(x,I)=>{if(l.viewport){let h=l.viewport.scrollTop+x.deltaY;e.onWheelScroll(h),bn(h,I)&&x.preventDefault()}},onResize:()=>{i.current&&l.viewport&&f&&r({content:l.viewport.scrollHeight,viewport:l.viewport.offsetHeight,scrollbar:{size:i.current.clientHeight,paddingStart:Kt(f.paddingTop),paddingEnd:Kt(f.paddingBottom)}})}}))});Bs.displayName=\"@mantine/core/ScrollAreaScrollbarY\"});var ut,dt,Sn=d(()=>{\"use client\";R();ut=v(y(),1);L();Is();Ze();bs();iI();uI();mI();pI();dt=(0,ut.forwardRef)((e,o)=>{let I=e,{orientation:t=\"vertical\"}=I,r=C(I,[\"orientation\"]),{dir:a}=xn(),n=ge(),l=(0,ut.useRef)(null),f=(0,ut.useRef)(0),[s,i]=(0,ut.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),m=hn(s.viewport,s.content),c=g(u({},r),{sizes:s,onSizesChange:i,hasThumb:m>0&&m<1,onThumbChange:h=>{l.current=h},onThumbPointerUp:()=>{f.current=0},onThumbPointerDown:h=>{f.current=h}}),x=(h,b)=>cI(h,f.current,s,b);return t===\"horizontal\"?p(Rs,g(u({},c),{ref:o,onThumbPositionChange:()=>{if(n.viewport&&l.current){let h=n.viewport.scrollLeft,b=ys(h,s,a);l.current.style.transform=`translate3d(${b}px, 0, 0)`}},onWheelScroll:h=>{n.viewport&&(n.viewport.scrollLeft=h)},onDragScroll:h=>{n.viewport&&(n.viewport.scrollLeft=x(h,a))}})):t===\"vertical\"?p(Bs,g(u({},c),{ref:o,onThumbPositionChange:()=>{if(n.viewport&&l.current){let h=n.viewport.scrollTop,b=ys(h,s);s.scrollbar.size===0?l.current.style.setProperty(\"--thumb-opacity\",\"0\"):l.current.style.setProperty(\"--thumb-opacity\",\"1\"),l.current.style.transform=`translate3d(0, ${b}px, 0)`}},onWheelScroll:h=>{n.viewport&&(n.viewport.scrollTop=h)},onDragScroll:h=>{n.viewport&&(n.viewport.scrollTop=x(h))}})):null});dt.displayName=\"@mantine/core/ScrollAreaScrollbarVisible\"});var Cn,qr,As=d(()=>{\"use client\";R();Cn=v(y(),1);he();Ze();In();Sn();qr=(0,Cn.forwardRef)((e,o)=>{let t=ge(),i=e,{forceMount:r}=i,a=C(i,[\"forceMount\"]),[n,l]=(0,Cn.useState)(!1),f=e.orientation===\"horizontal\",s=_o(()=>{if(t.viewport){let m=t.viewport.offsetWidth<t.viewport.scrollWidth,c=t.viewport.offsetHeight<t.viewport.scrollHeight;l(f?m:c)}},10);return Ro(t.viewport,s),Ro(t.content,s),r||n?p(dt,g(u({\"data-state\":n?\"visible\":\"hidden\"},a),{ref:o})):null});qr.displayName=\"@mantine/core/ScrollAreaScrollbarAuto\"});var Yt,Ps,xI=d(()=>{\"use client\";R();Yt=v(y(),1);Ze();As();Ps=(0,Yt.forwardRef)((e,o)=>{let f=e,{forceMount:t}=f,r=C(f,[\"forceMount\"]),a=ge(),[n,l]=(0,Yt.useState)(!1);return(0,Yt.useEffect)(()=>{let{scrollArea:s}=a,i=0;if(s){let m=()=>{window.clearTimeout(i),l(!0)},c=()=>{i=window.setTimeout(()=>l(!1),a.scrollHideDelay)};return s.addEventListener(\"pointerenter\",m),s.addEventListener(\"pointerleave\",c),()=>{window.clearTimeout(i),s.removeEventListener(\"pointerenter\",m),s.removeEventListener(\"pointerleave\",c)}}},[a.scrollArea,a.scrollHideDelay]),t||n?p(qr,g(u({\"data-state\":n?\"visible\":\"hidden\"},r),{ref:o})):null});Ps.displayName=\"@mantine/core/ScrollAreaScrollbarHover\"});var mt,II,hI=d(()=>{\"use client\";R();mt=v(y(),1);he();Ze();vn();Sn();II=(0,mt.forwardRef)((e,o)=>{let i=e,{forceMount:t}=i,r=C(i,[\"forceMount\"]),a=ge(),n=e.orientation===\"horizontal\",[l,f]=(0,mt.useState)(\"hidden\"),s=_o(()=>f(\"idle\"),100);return(0,mt.useEffect)(()=>{if(l===\"idle\"){let m=window.setTimeout(()=>f(\"hidden\"),a.scrollHideDelay);return()=>window.clearTimeout(m)}},[l,a.scrollHideDelay]),(0,mt.useEffect)(()=>{let{viewport:m}=a,c=n?\"scrollLeft\":\"scrollTop\";if(m){let x=m[c],I=()=>{let h=m[c];x!==h&&(f(\"scrolling\"),s()),x=h};return m.addEventListener(\"scroll\",I),()=>m.removeEventListener(\"scroll\",I)}},[a.viewport,n,s]),t||l!==\"hidden\"?p(dt,g(u({\"data-state\":l===\"hidden\"?\"hidden\":\"visible\"},r),{ref:o,onPointerEnter:go(e.onPointerEnter,()=>f(\"interacting\")),onPointerLeave:go(e.onPointerLeave,()=>f(\"idle\"))})):null})});var wn,_n,gI=d(()=>{\"use client\";R();wn=v(y(),1);Ze();As();xI();hI();Sn();_n=(0,wn.forwardRef)((e,o)=>{let s=e,{forceMount:t}=s,r=C(s,[\"forceMount\"]),a=ge(),{onScrollbarXEnabledChange:n,onScrollbarYEnabledChange:l}=a,f=e.orientation===\"horizontal\";return(0,wn.useEffect)(()=>(f?n(!0):l(!0),()=>{f?n(!1):l(!1)}),[f,n,l]),a.type===\"hover\"?p(Ps,g(u({},r),{ref:o,forceMount:t})):a.type===\"scroll\"?p(II,g(u({},r),{ref:o,forceMount:t})):a.type===\"auto\"?p(qr,g(u({},r),{ref:o,forceMount:t})):a.type===\"always\"?p(dt,g(u({},r),{ref:o})):null});_n.displayName=\"@mantine/core/ScrollAreaScrollbar\"});function bI(e,o=()=>{}){let t={left:e.scrollLeft,top:e.scrollTop},r=0;return function a(){let n={left:e.scrollLeft,top:e.scrollTop},l=t.left!==n.left,f=t.top!==n.top;(l||f)&&o(),t=n,r=window.requestAnimationFrame(a)}(),()=>window.cancelAnimationFrame(r)}var vI=d(()=>{\"use client\"});var pt,yI,Fn,SI=d(()=>{\"use client\";R();pt=v(y(),1);he();Ze();_s();vn();vI();yI=(0,pt.forwardRef)((e,o)=>{let m=e,{style:t}=m,r=C(m,[\"style\"]),a=ge(),n=ws(),{onThumbPositionChange:l}=n,f=Ue(o,c=>n.onThumbChange(c)),s=(0,pt.useRef)(void 0),i=_o(()=>{s.current&&(s.current(),s.current=void 0)},100);return(0,pt.useEffect)(()=>{let{viewport:c}=a;if(c){let x=()=>{if(i(),!s.current){let I=bI(c,l);s.current=I,l()}};return l(),c.addEventListener(\"scroll\",x),()=>c.removeEventListener(\"scroll\",x)}},[a.viewport,i,l]),p(\"div\",g(u({\"data-state\":n.hasThumb?\"visible\":\"hidden\"},r),{ref:f,style:u({width:\"var(--sa-thumb-width)\",height:\"var(--sa-thumb-height)\"},t),onPointerDownCapture:go(e.onPointerDownCapture,c=>{let I=c.target.getBoundingClientRect(),h=c.clientX-I.left,b=c.clientY-I.top;n.onThumbPointerDown({x:h,y:b})}),onPointerUp:go(e.onPointerUp,n.onThumbPointerUp)}))});yI.displayName=\"@mantine/core/ScrollAreaThumb\";Fn=(0,pt.forwardRef)((e,o)=>{let n=e,{forceMount:t}=n,r=C(n,[\"forceMount\"]),a=ws();return t||a.hasThumb?p(yI,u({ref:o},r)):null});Fn.displayName=\"@mantine/core/ScrollAreaThumb\"});var CI,Es,wI=d(()=>{\"use client\";R();CI=v(y(),1);he();L();Q();Ze();Es=(0,CI.forwardRef)((a,r)=>{var n=a,{children:e,style:o}=n,t=C(n,[\"children\",\"style\"]);let l=ge(),f=Ue(r,l.onViewportChange);return p(k,g(u({},t),{ref:f,style:u({overflowX:l.scrollbarXEnabled?\"scroll\":\"hidden\",overflowY:l.scrollbarYEnabled?\"scroll\":\"hidden\"},o),children:p(\"div\",g(u({},l.getStyles(\"content\")),{ref:l.onContentChange,children:e}))}))});Es.displayName=\"@mantine/core/ScrollAreaViewport\"});var Rn,_I=d(()=>{\"use client\";Rn={root:\"m_d57069b5\",viewport:\"m_c0783ff9\",viewportInner:\"m_f8f631dd\",scrollbar:\"m_c44ba933\",thumb:\"m_d8b5e363\",corner:\"m_21657268\",content:\"m_b1336c6\"}});var qo,FI,JC,Zt,Ms,RI=d(()=>{\"use client\";R();qo=v(y(),1);aI();xe();L();q();ne();Q();ee();fI();sI();gI();SI();wI();_I();FI={scrollHideDelay:1e3,type:\"hover\",scrollbars:\"xy\"},JC=(e,{scrollbarSize:o,overscrollBehavior:t})=>({root:{\"--scrollarea-scrollbar-size\":_(o),\"--scrollarea-over-scroll-behavior\":t}}),Zt=H((e,o)=>{let t=M(\"ScrollArea\",FI,e),ve=t,{classNames:r,className:a,style:n,styles:l,unstyled:f,scrollbarSize:s,vars:i,type:m,scrollHideDelay:c,viewportProps:x,viewportRef:I,onScrollPositionChange:h,children:b,offsetScrollbars:S,scrollbars:w,onBottomReached:F,onTopReached:B,overscrollBehavior:P}=ve,D=C(ve,[\"classNames\",\"className\",\"style\",\"styles\",\"unstyled\",\"scrollbarSize\",\"vars\",\"type\",\"scrollHideDelay\",\"viewportProps\",\"viewportRef\",\"onScrollPositionChange\",\"children\",\"offsetScrollbars\",\"scrollbars\",\"onBottomReached\",\"onTopReached\",\"overscrollBehavior\"]),[O,A]=(0,qo.useState)(!1),[E,T]=(0,qo.useState)(!1),[U,V]=(0,qo.useState)(!1),$=W({name:\"ScrollArea\",props:t,classes:Rn,className:a,style:n,classNames:r,styles:l,unstyled:f,vars:i,varsResolver:JC}),me=(0,qo.useRef)(null),Y=tI([I,me]);return(0,qo.useEffect)(()=>{if(!me.current||S!==\"present\")return;let re=me.current,Se=new ResizeObserver(()=>{let{scrollHeight:ke,clientHeight:Me,scrollWidth:be,clientWidth:qe}=re;T(ke>Me),V(be>qe)});return Se.observe(re),()=>Se.disconnect()},[me,S]),p(gs,g(u(u({getStyles:$,type:m===\"never\"?\"always\":m,scrollHideDelay:c,ref:o,scrollbars:w},$(\"root\")),D),{children:[p(Es,g(u(u({},x),$(\"viewport\",{style:x==null?void 0:x.style})),{ref:Y,\"data-offset-scrollbars\":S===!0?\"xy\":S||void 0,\"data-scrollbars\":w||void 0,\"data-horizontal-hidden\":S===\"present\"&&!U?\"true\":void 0,\"data-vertical-hidden\":S===\"present\"&&!E?\"true\":void 0,onScroll:re=>{var be;(be=x==null?void 0:x.onScroll)==null||be.call(x,re),h==null||h({x:re.currentTarget.scrollLeft,y:re.currentTarget.scrollTop});let{scrollTop:Se,scrollHeight:ke,clientHeight:Me}=re.currentTarget;Se-(ke-Me)>=0&&(F==null||F()),Se===0&&(B==null||B())},children:b})),(w===\"xy\"||w===\"x\")&&p(_n,g(u({},$(\"scrollbar\")),{orientation:\"horizontal\",\"data-hidden\":m===\"never\"||S===\"present\"&&!U?!0:void 0,forceMount:!0,onMouseEnter:()=>A(!0),onMouseLeave:()=>A(!1),children:p(Fn,u({},$(\"thumb\")))})),(w===\"xy\"||w===\"y\")&&p(_n,g(u({},$(\"scrollbar\")),{orientation:\"vertical\",\"data-hidden\":m===\"never\"||S===\"present\"&&!E?!0:void 0,forceMount:!0,onMouseEnter:()=>A(!0),onMouseLeave:()=>A(!1),children:p(Fn,u({},$(\"thumb\")))})),p(lI,g(u({},$(\"corner\")),{\"data-hovered\":O||void 0,\"data-hidden\":m===\"never\"||void 0}))]}))});Zt.displayName=\"@mantine/core/ScrollArea\";Ms=H((e,o)=>{let D=M(\"ScrollAreaAutosize\",FI,e),{children:t,classNames:r,styles:a,scrollbarSize:n,scrollHideDelay:l,type:f,dir:s,offsetScrollbars:i,viewportRef:m,onScrollPositionChange:c,unstyled:x,variant:I,viewportProps:h,scrollbars:b,style:S,vars:w,onBottomReached:F,onTopReached:B}=D,P=C(D,[\"children\",\"classNames\",\"styles\",\"scrollbarSize\",\"scrollHideDelay\",\"type\",\"dir\",\"offsetScrollbars\",\"viewportRef\",\"onScrollPositionChange\",\"unstyled\",\"variant\",\"viewportProps\",\"scrollbars\",\"style\",\"vars\",\"onBottomReached\",\"onTopReached\"]);return p(k,g(u({},P),{ref:o,style:[{display:\"flex\",overflow:\"auto\"},S],children:p(k,{style:{display:\"flex\",flexDirection:\"column\",flex:1},children:p(Zt,{classNames:r,styles:a,scrollHideDelay:l,scrollbarSize:n,type:f,dir:s,offsetScrollbars:i,viewportRef:m,onScrollPositionChange:c,unstyled:x,variant:I,viewportProps:h,vars:w,scrollbars:b,onBottomReached:F,onTopReached:B,children:t})})}))});Zt.classes=Rn;Ms.displayName=\"@mantine/core/ScrollAreaAutosize\";Ms.classes=Rn;Zt.Autosize=Ms});var Ts,BI=d(()=>{\"use client\";Ts={root:\"m_87cf2631\"}});var nL,e0,vo,jr=d(()=>{\"use client\";R();nL=v(y(),1);L();q();ne();Q();ho();BI();e0={__staticSelector:\"UnstyledButton\"},vo=Ae((e,o)=>{let t=M(\"UnstyledButton\",e0,e),x=t,{className:r,component:a=\"button\",__staticSelector:n,unstyled:l,classNames:f,styles:s,style:i}=x,m=C(x,[\"className\",\"component\",\"__staticSelector\",\"unstyled\",\"classNames\",\"styles\",\"style\"]),c=W({name:n,props:t,classes:Ts,className:r,style:i,classNames:f,styles:s,unstyled:l});return p(k,u(g(u({},c(\"root\",{focusable:!0})),{component:a,ref:o,type:a===\"button\"?\"button\":void 0}),m))});vo.classes=Ts;vo.displayName=\"@mantine/core/UnstyledButton\"});var Ds,AI=d(()=>{\"use client\";Ds={root:\"m_515a97f8\"}});var IL,o0,Bn,PI=d(()=>{\"use client\";R();IL=v(y(),1);L();q();ne();Q();ee();AI();o0={},Bn=H((e,o)=>{let t=M(\"VisuallyHidden\",o0,e),c=t,{classNames:r,className:a,style:n,styles:l,unstyled:f,vars:s}=c,i=C(c,[\"classNames\",\"className\",\"style\",\"styles\",\"unstyled\",\"vars\"]),m=W({name:\"VisuallyHidden\",classes:Ds,props:t,className:a,style:n,classNames:r,styles:l,unstyled:f});return p(k,u(u({component:\"span\",ref:o},m(\"root\")),i))});Bn.classes=Ds;Bn.displayName=\"@mantine/core/VisuallyHidden\"});var ks,EI=d(()=>{\"use client\";ks={root:\"m_1b7284a3\"}});var RL,t0,r0,An,MI=d(()=>{\"use client\";R();RL=v(y(),1);Ie();L();q();ne();Q();ho();EI();t0={},r0=(e,{radius:o,shadow:t})=>({root:{\"--paper-radius\":o===void 0?void 0:ie(o),\"--paper-shadow\":Ya(t)}}),An=Ae((e,o)=>{let t=M(\"Paper\",t0,e),S=t,{classNames:r,className:a,style:n,styles:l,unstyled:f,withBorder:s,vars:i,radius:m,shadow:c,variant:x,mod:I}=S,h=C(S,[\"classNames\",\"className\",\"style\",\"styles\",\"unstyled\",\"withBorder\",\"vars\",\"radius\",\"shadow\",\"variant\",\"mod\"]),b=W({name:\"Paper\",props:t,classes:ks,className:a,style:n,classNames:r,styles:l,unstyled:f,vars:i,varsResolver:r0});return p(k,u(g(u({ref:o,mod:[{\"data-with-border\":s},I]},b(\"root\")),{variant:x}),h))});An.classes=ks;An.displayName=\"@mantine/core/Paper\"});var Ls,TI=d(()=>{\"use client\";Ls={root:\"m_9814e45f\"}});var zL,a0,n0,Pn,DI=d(()=>{\"use client\";R();xe();zL=v(y(),1);Ot();Ie();L();an();q();ne();Q();ho();TI();a0={zIndex:ao(\"modal\")},n0=(e,{gradient:o,color:t,backgroundOpacity:r,blur:a,radius:n,zIndex:l})=>({root:{\"--overlay-bg\":o||(t!==void 0||r!==void 0)&&eo(t||\"#000\",r!=null?r:.6)||void 0,\"--overlay-filter\":a?`blur(${_(a)})`:void 0,\"--overlay-radius\":n===void 0?void 0:ie(n),\"--overlay-z-index\":l==null?void 0:l.toString()}}),Pn=Ae((e,o)=>{let t=M(\"Overlay\",a0,e),D=t,{classNames:r,className:a,style:n,styles:l,unstyled:f,vars:s,fixed:i,center:m,children:c,radius:x,zIndex:I,gradient:h,blur:b,color:S,backgroundOpacity:w,mod:F}=D,B=C(D,[\"classNames\",\"className\",\"style\",\"styles\",\"unstyled\",\"vars\",\"fixed\",\"center\",\"children\",\"radius\",\"zIndex\",\"gradient\",\"blur\",\"color\",\"backgroundOpacity\",\"mod\"]),P=W({name:\"Overlay\",props:t,classes:Ls,className:a,style:n,classNames:r,styles:l,unstyled:f,vars:s,varsResolver:n0});return p(k,g(u(g(u({ref:o},P(\"root\")),{mod:[{center:m,fixed:i},F]}),B),{children:c}))});Pn.classes=Ls;Pn.displayName=\"@mantine/core/Overlay\"});function Os(e){let o=document.createElement(\"div\");return o.setAttribute(\"data-portal\",\"true\"),typeof e.className==\"string\"&&o.classList.add(...e.className.split(\" \").filter(Boolean)),typeof e.style==\"object\"&&Object.assign(o.style,e.style),typeof e.id==\"string\"&&o.setAttribute(\"id\",e.id),o}function l0(r){var a=r,{target:e,reuseTargetNode:o}=a,t=C(a,[\"target\",\"reuseTargetNode\"]);if(e)return typeof e==\"string\"?document.querySelector(e)||Os(t):e;if(o){let n=document.querySelector(\"[data-mantine-shared-portal-node]\");if(n)return n;let l=Os(t);return l.setAttribute(\"data-mantine-shared-portal-node\",\"true\"),document.body.appendChild(l),l}return Os(t)}var En,kI,f0,Ns,LI=d(()=>{\"use client\";R();En=v(y(),1),kI=v(y(),1);he();L();q();ee();f0={reuseTargetNode:!0},Ns=H((e,o)=>{let i=M(\"Portal\",f0,e),{children:t,target:r,reuseTargetNode:a}=i,n=C(i,[\"children\",\"target\",\"reuseTargetNode\"]),[l,f]=(0,En.useState)(!1),s=(0,En.useRef)(null);return lo(()=>(f(!0),s.current=l0(u({target:r,reuseTargetNode:a},n)),Tr(o,s.current),!r&&!a&&s.current&&document.body.appendChild(s.current),()=>{!r&&!a&&s.current&&document.body.removeChild(s.current)}),[r]),!l||!s.current?null:(0,kI.createPortal)(p(we,{children:t}),s.current)});Ns.displayName=\"@mantine/core/Portal\"});var lO,Hs,OI=d(()=>{\"use client\";R();lO=v(y(),1);L();po();ee();LI();Hs=H((a,r)=>{var n=a,{withinPortal:e=!0,children:o}=n,t=C(n,[\"withinPortal\",\"children\"]);return tn()===\"test\"||!e?p(we,{children:o}):p(Ns,g(u({ref:r},t),{children:o}))});Hs.displayName=\"@mantine/core/OptionalPortal\"});var Xr,Kr,NI=d(()=>{\"use client\";Xr=e=>({in:{opacity:1,transform:\"scale(1)\"},out:{opacity:0,transform:`scale(.9) translateY(${e===\"bottom\"?10:-10}px)`},transitionProperty:\"transform, opacity\"}),Kr={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:\"opacity\"},\"fade-up\":{in:{opacity:1,transform:\"translateY(0)\"},out:{opacity:0,transform:\"translateY(30px)\"},transitionProperty:\"opacity, transform\"},\"fade-down\":{in:{opacity:1,transform:\"translateY(0)\"},out:{opacity:0,transform:\"translateY(-30px)\"},transitionProperty:\"opacity, transform\"},\"fade-left\":{in:{opacity:1,transform:\"translateX(0)\"},out:{opacity:0,transform:\"translateX(30px)\"},transitionProperty:\"opacity, transform\"},\"fade-right\":{in:{opacity:1,transform:\"translateX(0)\"},out:{opacity:0,transform:\"translateX(-30px)\"},transitionProperty:\"opacity, transform\"},scale:{in:{opacity:1,transform:\"scale(1)\"},out:{opacity:0,transform:\"scale(0)\"},common:{transformOrigin:\"top\"},transitionProperty:\"transform, opacity\"},\"scale-y\":{in:{opacity:1,transform:\"scaleY(1)\"},out:{opacity:0,transform:\"scaleY(0)\"},common:{transformOrigin:\"top\"},transitionProperty:\"transform, opacity\"},\"scale-x\":{in:{opacity:1,transform:\"scaleX(1)\"},out:{opacity:0,transform:\"scaleX(0)\"},common:{transformOrigin:\"left\"},transitionProperty:\"transform, opacity\"},\"skew-up\":{in:{opacity:1,transform:\"translateY(0) skew(0deg, 0deg)\"},out:{opacity:0,transform:\"translateY(-20px) skew(-10deg, -5deg)\"},common:{transformOrigin:\"top\"},transitionProperty:\"transform, opacity\"},\"skew-down\":{in:{opacity:1,transform:\"translateY(0) skew(0deg, 0deg)\"},out:{opacity:0,transform:\"translateY(20px) skew(-10deg, -5deg)\"},common:{transformOrigin:\"bottom\"},transitionProperty:\"transform, opacity\"},\"rotate-left\":{in:{opacity:1,transform:\"translateY(0) rotate(0deg)\"},out:{opacity:0,transform:\"translateY(20px) rotate(-5deg)\"},common:{transformOrigin:\"bottom\"},transitionProperty:\"transform, opacity\"},\"rotate-right\":{in:{opacity:1,transform:\"translateY(0) rotate(0deg)\"},out:{opacity:0,transform:\"translateY(20px) rotate(5deg)\"},common:{transformOrigin:\"top\"},transitionProperty:\"transform, opacity\"},\"slide-down\":{in:{opacity:1,transform:\"translateY(0)\"},out:{opacity:0,transform:\"translateY(-100%)\"},common:{transformOrigin:\"top\"},transitionProperty:\"transform, opacity\"},\"slide-up\":{in:{opacity:1,transform:\"translateY(0)\"},out:{opacity:0,transform:\"translateY(100%)\"},common:{transformOrigin:\"bottom\"},transitionProperty:\"transform, opacity\"},\"slide-left\":{in:{opacity:1,transform:\"translateX(0)\"},out:{opacity:0,transform:\"translateX(100%)\"},common:{transformOrigin:\"left\"},transitionProperty:\"transform, opacity\"},\"slide-right\":{in:{opacity:1,transform:\"translateX(0)\"},out:{opacity:0,transform:\"translateX(-100%)\"},common:{transformOrigin:\"right\"},transitionProperty:\"transform, opacity\"},pop:g(u({},Xr(\"bottom\")),{common:{transformOrigin:\"center center\"}}),\"pop-bottom-left\":g(u({},Xr(\"bottom\")),{common:{transformOrigin:\"bottom left\"}}),\"pop-bottom-right\":g(u({},Xr(\"bottom\")),{common:{transformOrigin:\"bottom right\"}}),\"pop-top-left\":g(u({},Xr(\"top\")),{common:{transformOrigin:\"top left\"}}),\"pop-top-right\":g(u({},Xr(\"top\")),{common:{transformOrigin:\"top right\"}})}});function zI({transition:e,state:o,duration:t,timingFunction:r}){let a={WebkitBackfaceVisibility:\"hidden\",willChange:\"transform, opacity\",transitionDuration:`${t}ms`,transitionTimingFunction:r};return typeof e==\"string\"?e in Kr?u(u(u({transitionProperty:Kr[e].transitionProperty},a),Kr[e].common),Kr[e][HI[o]]):{}:u(u(u({transitionProperty:e.transitionProperty},a),e.common),e[HI[o]])}var HI,WI=d(()=>{\"use client\";NI();HI={entering:\"in\",entered:\"in\",exiting:\"out\",exited:\"out\",\"pre-exiting\":\"out\",\"pre-entering\":\"out\"}});function VI({duration:e,exitDuration:o,timingFunction:t,mounted:r,onEnter:a,onExit:n,onEntered:l,onExited:f,enterDelay:s,exitDelay:i}){let m=He(),c=Dr(),x=m.respectReducedMotion?c:!1,[I,h]=(0,Bo.useState)(x?0:e),[b,S]=(0,Bo.useState)(r?\"entered\":\"exited\"),w=(0,Bo.useRef)(-1),F=(0,Bo.useRef)(-1),B=(0,Bo.useRef)(-1);function P(){window.clearTimeout(w.current),window.clearTimeout(F.current),cancelAnimationFrame(B.current)}let D=A=>{P();let E=A?a:n,T=A?l:f,U=x?0:A?e:o;h(U),U===0?(typeof E==\"function\"&&E(),typeof T==\"function\"&&T(),S(A?\"entered\":\"exited\")):B.current=requestAnimationFrame(()=>{UI.default.flushSync(()=>{S(A?\"pre-entering\":\"pre-exiting\")}),B.current=requestAnimationFrame(()=>{typeof E==\"function\"&&E(),S(A?\"entering\":\"exiting\"),w.current=window.setTimeout(()=>{typeof T==\"function\"&&T(),S(A?\"entered\":\"exited\")},U)})})},O=A=>{if(P(),typeof(A?s:i)!=\"number\"){D(A);return}F.current=window.setTimeout(()=>{D(A)},A?s:i)};return Mr(()=>{O(r)},[r]),(0,Bo.useEffect)(()=>()=>{P()},[]),{transitionDuration:I,transitionStatus:b,transitionTimingFunction:t||\"ease\"}}var Bo,UI,GI=d(()=>{\"use client\";Bo=v(y(),1),UI=v(y(),1);he();R();L();xo()});function Ao({keepMounted:e,transition:o=\"fade\",duration:t=250,exitDuration:r=t,mounted:a,children:n,timingFunction:l=\"ease\",onExit:f,onEntered:s,onEnter:i,onExited:m,enterDelay:c,exitDelay:x}){let I=tn(),{transitionDuration:h,transitionStatus:b,transitionTimingFunction:S}=VI({mounted:a,exitDuration:r,duration:t,timingFunction:l,onExit:f,onEntered:s,onEnter:i,onExited:m,enterDelay:c,exitDelay:x});return h===0||I===\"test\"?a?p(we,{children:n({})}):e?n({display:\"none\"}):null:b===\"exited\"?e?n({display:\"none\"}):null:p(we,{children:n(zI({transition:o,duration:h,state:b,timingFunction:S}))})}var wO,Yr=d(()=>{\"use client\";R();wO=v(y(),1);L();po();WI();GI();Ao.displayName=\"@mantine/core/Transition\"});function xt({children:e,active:o=!0,refProp:t=\"ref\",innerRef:r}){let a=Kf(o),n=Ue(a,r);return wm(e)?(0,$I.cloneElement)(e,{[t]:n}):e}function zs(e){return p(Bn,u({tabIndex:-1,\"data-autofocus\":!0},e))}var $I,Ws=d(()=>{\"use client\";R();$I=v(y(),1);he();_m();L();PI();xt.displayName=\"@mantine/core/FocusTrap\";zs.displayName=\"@mantine/core/FocusTrapInitialFocus\";xt.InitialFocus=zs});var Ge,Zr=d(()=>{\"use client\";Ge={root:\"m_5ae2e3c\",barsLoader:\"m_7a2bd4cd\",bar:\"m_870bb79\",\"bars-loader-animation\":\"m_5d2b3b9d\",dotsLoader:\"m_4e3f22d7\",dot:\"m_870c4af\",\"loader-dots-animation\":\"m_aac34a1\",ovalLoader:\"m_b34414df\",\"oval-loader-animation\":\"m_f8e89c4b\"}});var qI,Us,jI=d(()=>{\"use client\";R();qI=v(y(),1);L();Q();Zr();Us=(0,qI.forwardRef)((r,t)=>{var a=r,{className:e}=a,o=C(a,[\"className\"]);return p(k,g(u({component:\"span\",className:fe(Ge.barsLoader,e)},o),{ref:t,children:[p(\"span\",{className:Ge.bar}),p(\"span\",{className:Ge.bar}),p(\"span\",{className:Ge.bar})]}))});Us.displayName=\"@mantine/core/Bars\"});var XI,Vs,KI=d(()=>{\"use client\";R();XI=v(y(),1);L();Q();Zr();Vs=(0,XI.forwardRef)((r,t)=>{var a=r,{className:e}=a,o=C(a,[\"className\"]);return p(k,g(u({component:\"span\",className:fe(Ge.dotsLoader,e)},o),{ref:t,children:[p(\"span\",{className:Ge.dot}),p(\"span\",{className:Ge.dot}),p(\"span\",{className:Ge.dot})]}))});Vs.displayName=\"@mantine/core/Dots\"});var YI,Gs,ZI=d(()=>{\"use client\";R();YI=v(y(),1);L();Q();Zr();Gs=(0,YI.forwardRef)((r,t)=>{var a=r,{className:e}=a,o=C(a,[\"className\"]);return p(k,g(u({component:\"span\",className:fe(Ge.ovalLoader,e)},o),{ref:t}))});Gs.displayName=\"@mantine/core/Oval\"});var rN,QI,s0,i0,It,$s=d(()=>{\"use client\";R();rN=v(y(),1);Ie();L();st();q();ne();Q();ee();jI();KI();ZI();Zr();QI={bars:Us,oval:Gs,dots:Vs},s0={loaders:QI,type:\"oval\"},i0=(e,{size:o,color:t})=>({root:{\"--loader-size\":j(o,\"loader-size\"),\"--loader-color\":t?Ve(t,e):void 0}}),It=H((e,o)=>{let t=M(\"Loader\",s0,e),w=t,{size:r,color:a,type:n,vars:l,className:f,style:s,classNames:i,styles:m,unstyled:c,loaders:x,variant:I,children:h}=w,b=C(w,[\"size\",\"color\",\"type\",\"vars\",\"className\",\"style\",\"classNames\",\"styles\",\"unstyled\",\"loaders\",\"variant\",\"children\"]),S=W({name:\"Loader\",props:t,classes:Ge,className:f,style:s,classNames:i,styles:m,unstyled:c,vars:l,varsResolver:i0});return h?p(k,g(u(g(u({},S(\"root\")),{ref:o}),b),{children:h})):p(k,u(g(u({},S(\"root\")),{ref:o,component:x[n],variant:I,size:r}),b))});It.defaultLoaders=QI;It.classes=Ge;It.displayName=\"@mantine/core/Loader\"});var Po,Mn=d(()=>{\"use client\";Po={root:\"m_8d3f4000\",icon:\"m_8d3afb97\",loader:\"m_302b9fb1\",group:\"m_1a0f1b21\",groupSection:\"m_437b6484\"}});var vN,JI,c0,Tn,eh=d(()=>{\"use client\";R();xe();vN=v(y(),1);L();q();ne();Q();ee();Mn();JI={orientation:\"horizontal\"},c0=(e,{borderWidth:o})=>({group:{\"--ai-border-width\":_(o)}}),Tn=H((e,o)=>{let t=M(\"ActionIconGroup\",JI,e),b=M(\"ActionIconGroup\",JI,e),{className:r,style:a,classNames:n,styles:l,unstyled:f,orientation:s,vars:i,borderWidth:m,variant:c,mod:x}=b,I=C(b,[\"className\",\"style\",\"classNames\",\"styles\",\"unstyled\",\"orientation\",\"vars\",\"borderWidth\",\"variant\",\"mod\"]),h=W({name:\"ActionIconGroup\",props:t,classes:Po,className:r,style:a,classNames:n,styles:l,unstyled:f,vars:i,varsResolver:c0,rootSelector:\"group\"});return p(k,u(g(u({},h(\"group\")),{ref:o,variant:c,mod:[{\"data-orientation\":s},x],role:\"group\"}),I))});Tn.classes=Po;Tn.displayName=\"@mantine/core/ActionIconGroup\"});var PN,oh,u0,Dn,th=d(()=>{\"use client\";R();PN=v(y(),1);Ie();L();q();ne();Q();ee();Mn();oh={},u0=(e,{radius:o,color:t,gradient:r,variant:a,autoContrast:n,size:l})=>{let f=e.variantColorResolver({color:t||e.primaryColor,theme:e,gradient:r,variant:a||\"filled\",autoContrast:n});return{groupSection:{\"--section-height\":j(l,\"section-height\"),\"--section-padding-x\":j(l,\"section-padding-x\"),\"--section-fz\":de(l),\"--section-radius\":o===void 0?void 0:ie(o),\"--section-bg\":t||a?f.background:void 0,\"--section-color\":f.color,\"--section-bd\":t||a?f.border:void 0}}},Dn=H((e,o)=>{let t=M(\"ActionIconGroupSection\",oh,e),b=M(\"ActionIconGroupSection\",oh,e),{className:r,style:a,classNames:n,styles:l,unstyled:f,vars:s,variant:i,gradient:m,radius:c,autoContrast:x}=b,I=C(b,[\"className\",\"style\",\"classNames\",\"styles\",\"unstyled\",\"vars\",\"variant\",\"gradient\",\"radius\",\"autoContrast\"]),h=W({name:\"ActionIconGroupSection\",props:t,classes:Po,className:r,style:a,classNames:n,styles:l,unstyled:f,vars:s,varsResolver:u0,rootSelector:\"groupSection\"});return p(k,u(g(u({},h(\"groupSection\")),{ref:o,variant:i}),I))});Dn.classes=Po;Dn.displayName=\"@mantine/core/ActionIconGroupSection\"});var WN,d0,m0,jo,rh=d(()=>{\"use client\";R();WN=v(y(),1);Ie();L();q();ne();Q();ho();$s();Yr();jr();eh();th();Mn();d0={},m0=(e,{size:o,radius:t,variant:r,gradient:a,color:n,autoContrast:l})=>{let f=e.variantColorResolver({color:n||e.primaryColor,theme:e,gradient:a,variant:r||\"filled\",autoContrast:l});return{root:{\"--ai-size\":j(o,\"ai-size\"),\"--ai-radius\":t===void 0?void 0:ie(t),\"--ai-bg\":n||r?f.background:void 0,\"--ai-hover\":n||r?f.hover:void 0,\"--ai-hover-color\":n||r?f.hoverColor:void 0,\"--ai-color\":f.color,\"--ai-bd\":n||r?f.border:void 0}}},jo=Ae((e,o)=>{let t=M(\"ActionIcon\",d0,e),E=t,{className:r,unstyled:a,variant:n,classNames:l,styles:f,style:s,loading:i,loaderProps:m,size:c,color:x,radius:I,__staticSelector:h,gradient:b,vars:S,children:w,disabled:F,\"data-disabled\":B,autoContrast:P,mod:D}=E,O=C(E,[\"className\",\"unstyled\",\"variant\",\"classNames\",\"styles\",\"style\",\"loading\",\"loaderProps\",\"size\",\"color\",\"radius\",\"__staticSelector\",\"gradient\",\"vars\",\"children\",\"disabled\",\"data-disabled\",\"autoContrast\",\"mod\"]),A=W({name:[\"ActionIcon\",h],props:t,className:r,style:s,classes:Po,classNames:l,styles:f,unstyled:a,vars:S,varsResolver:m0});return p(vo,g(u(u({},A(\"root\",{active:!F&&!i&&!B})),O),{unstyled:a,variant:n,size:c,disabled:F||i,ref:o,mod:[{loading:i,disabled:F||B},D],children:[p(Ao,{mounted:!!i,transition:\"slide-down\",duration:150,children:T=>p(k,g(u({component:\"span\"},A(\"loader\",{style:T})),{\"aria-hidden\":!0,children:p(It,u({color:\"var(--ai-color)\",size:\"calc(var(--ai-size) * 0.55)\"},m))}))}),p(k,g(u({component:\"span\",mod:{loading:i}},A(\"icon\")),{children:w}))]}))});jo.classes=Po;jo.displayName=\"@mantine/core/ActionIcon\";jo.Group=Tn;jo.GroupSection=Dn});var ah,qs,nh=d(()=>{\"use client\";R();ah=v(y(),1),qs=(0,ah.forwardRef)((a,r)=>{var n=a,{size:e=\"var(--cb-icon-size, 70%)\",style:o}=n,t=C(n,[\"size\",\"style\"]);return p(\"svg\",g(u({viewBox:\"0 0 15 15\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:g(u({},o),{width:e,height:e}),ref:r},t),{children:p(\"path\",{d:\"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z\",fill:\"currentColor\",fillRule:\"evenodd\",clipRule:\"evenodd\"})}))});qs.displayName=\"@mantine/core/CloseIcon\"});var js,lh=d(()=>{\"use client\";js={root:\"m_86a44da5\",\"root--subtle\":\"m_220c80f2\"}});var s2,p0,x0,Qt,Xs=d(()=>{\"use client\";R();xe();s2=v(y(),1);Ie();L();q();ne();ho();jr();nh();lh();p0={variant:\"subtle\"},x0=(e,{size:o,radius:t,iconSize:r})=>({root:{\"--cb-size\":j(o,\"cb-size\"),\"--cb-radius\":t===void 0?void 0:ie(t),\"--cb-icon-size\":_(r)}}),Qt=Ae((e,o)=>{let t=M(\"CloseButton\",p0,e),P=t,{iconSize:r,children:a,vars:n,radius:l,className:f,classNames:s,style:i,styles:m,unstyled:c,\"data-disabled\":x,disabled:I,variant:h,icon:b,mod:S,__staticSelector:w}=P,F=C(P,[\"iconSize\",\"children\",\"vars\",\"radius\",\"className\",\"classNames\",\"style\",\"styles\",\"unstyled\",\"data-disabled\",\"disabled\",\"variant\",\"icon\",\"mod\",\"__staticSelector\"]),B=W({name:w||\"CloseButton\",props:t,className:f,style:i,classes:js,classNames:s,styles:m,unstyled:c,vars:n,varsResolver:x0});return p(vo,g(u(g(u({ref:o},F),{unstyled:c,variant:h,disabled:I,mod:[{disabled:I||x},S]}),B(\"root\",{variant:h,active:!I&&!x})),{children:[b||p(qs,{}),a]}))});Qt.classes=js;Qt.displayName=\"@mantine/core/CloseButton\"});var b2,fh,Pe,so=d(()=>{\"use client\";b2=v(y(),1);Pr();R();L();[fh,Pe]=No(\"ModalBase component was not found in tree\")});function sh({opened:e,transitionDuration:o}){let[t,r]=(0,Jt.useState)(e),a=(0,Jt.useRef)(-1),l=Dr()?0:o;return(0,Jt.useEffect)(()=>(e?(r(!0),window.clearTimeout(a.current)):l===0?r(!1):a.current=window.setTimeout(()=>r(!1),l),()=>window.clearTimeout(a.current)),[e,l]),t}var Jt,ih=d(()=>{\"use client\";Jt=v(y(),1);he()});function ch({id:e,transitionProps:o,opened:t,trapFocus:r,closeOnEscape:a,onClose:n,returnFocus:l}){let f=fo(e),[s,i]=(0,Ks.useState)(!1),[m,c]=(0,Ks.useState)(!1),x=typeof(o==null?void 0:o.duration)==\"number\"?o==null?void 0:o.duration:200,I=sh({opened:t,transitionDuration:x});return Yf(\"keydown\",h=>{var b;h.key===\"Escape\"&&a&&!h.isComposing&&t&&((b=h.target)==null?void 0:b.getAttribute(\"data-mantine-stop-propagation\"))!==\"true\"&&n()},{capture:!0}),$f({opened:t,shouldReturnFocus:r&&l}),{_id:f,titleMounted:s,bodyMounted:m,shouldLockScroll:I,setTitleMounted:i,setBodyMounted:c}}var Ks,uh=d(()=>{\"use client\";Ks=v(y(),1);he();ih()});var dh,Ys,mh=d(()=>{\"use client\";R();dh=v(y(),1);Im();Ot();Ie();L();Q();OI();so();uh();Ys=(0,dh.forwardRef)((A,O)=>{var E=A,{keepMounted:e,opened:o,onClose:t,id:r,transitionProps:a,onExitTransitionEnd:n,onEnterTransitionEnd:l,trapFocus:f,closeOnEscape:s,returnFocus:i,closeOnClickOutside:m,withinPortal:c,portalProps:x,lockScroll:I,children:h,zIndex:b,shadow:S,padding:w,__vars:F,unstyled:B,removeScrollProps:P}=E,D=C(E,[\"keepMounted\",\"opened\",\"onClose\",\"id\",\"transitionProps\",\"onExitTransitionEnd\",\"onEnterTransitionEnd\",\"trapFocus\",\"closeOnEscape\",\"returnFocus\",\"closeOnClickOutside\",\"withinPortal\",\"portalProps\",\"lockScroll\",\"children\",\"zIndex\",\"shadow\",\"padding\",\"__vars\",\"unstyled\",\"removeScrollProps\"]);let{_id:T,titleMounted:U,bodyMounted:V,shouldLockScroll:$,setTitleMounted:me,setBodyMounted:Y}=ch({id:r,transitionProps:a,opened:o,trapFocus:f,closeOnEscape:s,onClose:t,returnFocus:i}),Se=P||{},{key:ve}=Se,re=C(Se,[\"key\"]);return p(Hs,g(u({},x),{withinPortal:c,children:p(fh,{value:{opened:o,onClose:t,closeOnClickOutside:m,onExitTransitionEnd:n,onEnterTransitionEnd:l,transitionProps:g(u({},a),{keepMounted:e}),getTitleId:()=>`${T}-title`,getBodyId:()=>`${T}-body`,titleMounted:U,bodyMounted:V,setTitleMounted:me,setBodyMounted:Y,trapFocus:f,closeOnEscape:s,zIndex:b,unstyled:B},children:p(Of,g(u({enabled:$&&I},re),{children:p(k,g(u({ref:O},D),{__vars:g(u({},F),{\"--mb-z-index\":(b||ao(\"modal\")).toString(),\"--mb-shadow\":Ya(S),\"--mb-padding\":Ka(w)}),children:h}))}),ve)})}))});Ys.displayName=\"@mantine/core/ModalBase\"});function xh(){let e=Pe();return(0,ph.useEffect)(()=>(e.setBodyMounted(!0),()=>e.setBodyMounted(!1)),[]),e.getBodyId()}var ph,Ih=d(()=>{\"use client\";ph=v(y(),1);so()});var io,er=d(()=>{\"use client\";io={title:\"m_615af6c9\",header:\"m_b5489c3c\",inner:\"m_60c222c7\",content:\"m_fd1ab0aa\",close:\"m_606cb269\",body:\"m_5df29311\"}});var hh,Zs,gh=d(()=>{\"use client\";R();hh=v(y(),1);L();Q();so();Ih();er();Zs=(0,hh.forwardRef)((r,t)=>{var a=r,{className:e}=a,o=C(a,[\"className\"]);let n=xh(),l=Pe();return p(k,g(u({ref:t},o),{id:n,className:fe({[io.body]:!l.unstyled},e)}))});Zs.displayName=\"@mantine/core/ModalBaseBody\"});var bh,Qs,vh=d(()=>{\"use client\";R();bh=v(y(),1);L();Xs();so();er();Qs=(0,bh.forwardRef)((a,r)=>{var n=a,{className:e,onClick:o}=n,t=C(n,[\"className\",\"onClick\"]);let l=Pe();return p(Qt,g(u({ref:r},t),{onClick:f=>{l.onClose(),o==null||o(f)},className:fe({[io.close]:!l.unstyled},e),unstyled:l.unstyled}))});Qs.displayName=\"@mantine/core/ModalBaseCloseButton\"});var yh,Js,Sh=d(()=>{\"use client\";R();yh=v(y(),1);L();Ws();MI();Yr();so();er();Js=(0,yh.forwardRef)((f,l)=>{var s=f,{transitionProps:e,className:o,innerProps:t,onKeyDown:r,style:a}=s,n=C(s,[\"transitionProps\",\"className\",\"innerProps\",\"onKeyDown\",\"style\"]);let i=Pe();return p(Ao,g(u(g(u({mounted:i.opened,transition:\"pop\"},i.transitionProps),{onExited:()=>{var m,c,x;(m=i.onExitTransitionEnd)==null||m.call(i),(x=(c=i.transitionProps)==null?void 0:c.onExited)==null||x.call(c)},onEntered:()=>{var m,c,x;(m=i.onEnterTransitionEnd)==null||m.call(i),(x=(c=i.transitionProps)==null?void 0:c.onEntered)==null||x.call(c)}}),e),{children:m=>p(\"div\",g(u({},t),{className:fe({[io.inner]:!i.unstyled},t.className),children:p(xt,{active:i.opened&&i.trapFocus,innerRef:l,children:p(An,g(u({},n),{component:\"section\",role:\"dialog\",tabIndex:-1,\"aria-modal\":!0,\"aria-describedby\":i.bodyMounted?i.getBodyId():void 0,\"aria-labelledby\":i.titleMounted?i.getTitleId():void 0,style:[a,m],className:fe({[io.content]:!i.unstyled},o),unstyled:i.unstyled,children:n.children}))})}))}))});Js.displayName=\"@mantine/core/ModalBaseContent\"});var Ch,ei,wh=d(()=>{\"use client\";R();Ch=v(y(),1);L();Q();so();er();ei=(0,Ch.forwardRef)((r,t)=>{var a=r,{className:e}=a,o=C(a,[\"className\"]);let n=Pe();return p(k,u({component:\"header\",ref:t,className:fe({[io.header]:!n.unstyled},e)},o))});ei.displayName=\"@mantine/core/ModalBaseHeader\"});function _h(e){let o=Pe();return u(u(u({},I0),o.transitionProps),e)}var I0,Fh=d(()=>{\"use client\";so();I0={duration:200,timingFunction:\"ease\",transition:\"fade\"}});var Rh,oi,Bh=d(()=>{\"use client\";R();Rh=v(y(),1);DI();Yr();so();Fh();oi=(0,Rh.forwardRef)((l,n)=>{var f=l,{onClick:e,transitionProps:o,style:t,visible:r}=f,a=C(f,[\"onClick\",\"transitionProps\",\"style\",\"visible\"]);let s=Pe(),i=_h(o);return p(Ao,g(u({mounted:r!==void 0?r:s.opened},i),{transition:\"fade\",children:m=>p(Pn,u({ref:n,fixed:!0,style:[t,m],zIndex:s.zIndex,unstyled:s.unstyled,onClick:c=>{e==null||e(c),s.closeOnClickOutside&&s.onClose()}},a))}))});oi.displayName=\"@mantine/core/ModalBaseOverlay\"});function Ph(){let e=Pe();return(0,Ah.useEffect)(()=>(e.setTitleMounted(!0),()=>e.setTitleMounted(!1)),[]),e.getTitleId()}var Ah,Eh=d(()=>{\"use client\";Ah=v(y(),1);so()});var Mh,ti,Th=d(()=>{\"use client\";R();Mh=v(y(),1);L();Q();so();Eh();er();ti=(0,Mh.forwardRef)((r,t)=>{var a=r,{className:e}=a,o=C(a,[\"className\"]);let n=Ph(),l=Pe();return p(k,g(u({component:\"h2\",ref:t,className:fe({[io.title]:!l.unstyled},e)},o),{id:n}))});ti.displayName=\"@mantine/core/ModalBaseTitle\"});function Dh({children:e}){return p(we,{children:e})}var kh=d(()=>{\"use client\";R()});var UH,Lh,Oh,ri=d(()=>{\"use client\";UH=v(y(),1);R();Lt();L();[Lh,Oh]=mo({size:\"sm\"})});var XH,h0,ai,Nh=d(()=>{\"use client\";R();XH=v(y(),1);L();Up();q();ee();Xs();ri();h0={},ai=H((e,o)=>{let t=M(\"InputClearButton\",h0,e),x=t,{size:r,variant:a,vars:n,classNames:l,styles:f}=x,s=C(x,[\"size\",\"variant\",\"vars\",\"classNames\",\"styles\"]),i=Oh(),{resolvedClassNames:m,resolvedStyles:c}=Wp({classNames:l,styles:f,props:t});return p(Qt,u({variant:a||\"transparent\",ref:o,size:r||(i==null?void 0:i.size)||\"sm\",classNames:m,styles:c,__staticSelector:\"InputClearButton\"},s))});ai.displayName=\"@mantine/core/InputClearButton\"});var r3,Hh,yo,ht=d(()=>{\"use client\";r3=v(y(),1);R();Lt();L();[Hh,yo]=mo({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0})});var Ee,gt=d(()=>{\"use client\";Ee={wrapper:\"m_6c018570\",input:\"m_8fb7ebe7\",section:\"m_82577fc2\",placeholder:\"m_88bacfd0\",root:\"m_46b77525\",label:\"m_8fdc1311\",required:\"m_78a94662\",error:\"m_8f816625\",description:\"m_fe47ce59\"}});var u3,zh,g0,or,ni=d(()=>{\"use client\";R();xe();u3=v(y(),1);Ie();L();q();ne();Q();ee();ht();gt();zh={},g0=(e,{size:o})=>({description:{\"--input-description-size\":o===void 0?void 0:`calc(${de(o)} - ${_(2)})`}}),or=H((e,o)=>{let t=M(\"InputDescription\",zh,e),w=M(\"InputDescription\",zh,t),{classNames:r,className:a,style:n,styles:l,unstyled:f,vars:s,size:i,__staticSelector:m,__inheritStyles:c=!0,variant:x}=w,I=C(w,[\"classNames\",\"className\",\"style\",\"styles\",\"unstyled\",\"vars\",\"size\",\"__staticSelector\",\"__inheritStyles\",\"variant\"]),h=yo(),b=W({name:[\"InputWrapper\",m],props:t,classes:Ee,className:a,style:n,classNames:r,styles:l,unstyled:f,rootSelector:\"description\",vars:s,varsResolver:g0}),S=c&&(h==null?void 0:h.getStyles)||b;return p(k,u(u({component:\"p\",ref:o,variant:x,size:i},S(\"description\",h!=null&&h.getStyles?{className:a,style:n}:void 0)),I))});or.classes=Ee;or.displayName=\"@mantine/core/InputDescription\"});var w3,b0,v0,tr,li=d(()=>{\"use client\";R();xe();w3=v(y(),1);Ie();L();q();ne();Q();ee();ht();gt();b0={},v0=(e,{size:o})=>({error:{\"--input-error-size\":o===void 0?void 0:`calc(${de(o)} - ${_(2)})`}}),tr=H((e,o)=>{let t=M(\"InputError\",b0,e),w=t,{classNames:r,className:a,style:n,styles:l,unstyled:f,vars:s,size:i,__staticSelector:m,__inheritStyles:c=!0,variant:x}=w,I=C(w,[\"classNames\",\"className\",\"style\",\"styles\",\"unstyled\",\"vars\",\"size\",\"__staticSelector\",\"__inheritStyles\",\"variant\"]),h=W({name:[\"InputWrapper\",m],props:t,classes:Ee,className:a,style:n,classNames:r,styles:l,unstyled:f,rootSelector:\"error\",vars:s,varsResolver:v0}),b=yo(),S=c&&(b==null?void 0:b.getStyles)||h;return p(k,u(u({component:\"p\",ref:o,variant:x,size:i},S(\"error\",b!=null&&b.getStyles?{className:a,style:n}:void 0)),I))});tr.classes=Ee;tr.displayName=\"@mantine/core/InputError\"});var L3,Wh,y0,rr,fi=d(()=>{\"use client\";R();L3=v(y(),1);Ie();L();q();ne();Q();ee();ht();gt();Wh={labelElement:\"label\"},y0=(e,{size:o})=>({label:{\"--input-label-size\":de(o),\"--input-asterisk-color\":void 0}}),rr=H((e,o)=>{let t=M(\"InputLabel\",Wh,e),O=M(\"InputLabel\",Wh,t),{classNames:r,className:a,style:n,styles:l,unstyled:f,vars:s,labelElement:i,size:m,required:c,htmlFor:x,onMouseDown:I,children:h,__staticSelector:b,variant:S,mod:w}=O,F=C(O,[\"classNames\",\"className\",\"style\",\"styles\",\"unstyled\",\"vars\",\"labelElement\",\"size\",\"required\",\"htmlFor\",\"onMouseDown\",\"children\",\"__staticSelector\",\"variant\",\"mod\"]),B=W({name:[\"InputWrapper\",b],props:t,classes:Ee,className:a,style:n,classNames:r,styles:l,unstyled:f,rootSelector:\"label\",vars:s,varsResolver:y0}),P=yo(),D=(P==null?void 0:P.getStyles)||B;return p(k,g(u(g(u({},D(\"label\",P!=null&&P.getStyles?{className:a,style:n}:void 0)),{component:i,variant:S,size:m,ref:o,htmlFor:i===\"label\"?x:void 0,mod:[{required:c},w],onMouseDown:A=>{I==null||I(A),!A.defaultPrevented&&A.detail>1&&A.preventDefault()}}),F),{children:[h,c&&p(\"span\",g(u({},D(\"required\")),{\"aria-hidden\":!0,children:\" *\"}))]}))});rr.classes=Ee;rr.displayName=\"@mantine/core/InputLabel\"});var X3,Uh,kn,Vh=d(()=>{\"use client\";R();X3=v(y(),1);L();q();ne();Q();ee();gt();Uh={},kn=H((e,o)=>{let t=M(\"InputPlaceholder\",Uh,e),b=M(\"InputPlaceholder\",Uh,t),{classNames:r,className:a,style:n,styles:l,unstyled:f,vars:s,__staticSelector:i,variant:m,error:c,mod:x}=b,I=C(b,[\"classNames\",\"className\",\"style\",\"styles\",\"unstyled\",\"vars\",\"__staticSelector\",\"variant\",\"error\",\"mod\"]),h=W({name:[\"InputPlaceholder\",i],props:t,classes:Ee,className:a,style:n,classNames:r,styles:l,unstyled:f,rootSelector:\"placeholder\"});return p(k,u(g(u({},h(\"placeholder\")),{mod:[{error:!!c},x],component:\"span\",variant:m,ref:o}),I))});kn.classes=Ee;kn.displayName=\"@mantine/core/InputPlaceholder\"});function Gh(e,{hasDescription:o,hasError:t}){let r=e.findIndex(s=>s===\"input\"),a=e.slice(0,r),n=e.slice(r+1),l=o&&a.includes(\"description\")||t&&a.includes(\"error\");return{offsetBottom:o&&n.includes(\"description\")||t&&n.includes(\"error\"),offsetTop:l}}var $h=d(()=>{\"use client\"});var Ln,S0,C0,bt,si=d(()=>{\"use client\";R();Ln=v(y(),1);he();xe();Ie();L();q();ne();Q();ee();ni();li();fi();ht();$h();gt();S0={labelElement:\"label\",inputContainer:e=>e,inputWrapperOrder:[\"label\",\"description\",\"input\",\"error\"]},C0=(e,{size:o})=>({label:{\"--input-label-size\":de(o),\"--input-asterisk-color\":void 0},error:{\"--input-error-size\":o===void 0?void 0:`calc(${de(o)} - ${_(2)})`},description:{\"--input-description-size\":o===void 0?void 0:`calc(${de(o)} - ${_(2)})`}}),bt=H((e,o)=>{let t=M(\"InputWrapper\",S0,e),da=t,{classNames:r,className:a,style:n,styles:l,unstyled:f,vars:s,size:i,variant:m,__staticSelector:c,inputContainer:x,inputWrapperOrder:I,label:h,error:b,description:S,labelProps:w,descriptionProps:F,errorProps:B,labelElement:P,children:D,withAsterisk:O,id:A,required:E,__stylesApiProps:T,mod:U}=da,V=C(da,[\"classNames\",\"className\",\"style\",\"styles\",\"unstyled\",\"vars\",\"size\",\"variant\",\"__staticSelector\",\"inputContainer\",\"inputWrapperOrder\",\"label\",\"error\",\"description\",\"labelProps\",\"descriptionProps\",\"errorProps\",\"labelElement\",\"children\",\"withAsterisk\",\"id\",\"required\",\"__stylesApiProps\",\"mod\"]),$=W({name:[\"InputWrapper\",c],props:T||t,classes:Ee,className:a,style:n,classNames:r,styles:l,unstyled:f,vars:s,varsResolver:C0}),me={size:i,variant:m,__staticSelector:c},Y=fo(A),ve=typeof O==\"boolean\"?O:E,re=(B==null?void 0:B.id)||`${Y}-error`,Se=(F==null?void 0:F.id)||`${Y}-description`,ke=Y,Me=!!b&&typeof b!=\"boolean\",be=!!S,qe=`${Me?re:\"\"} ${be?Se:\"\"}`,Yo=qe.trim().length>0?qe.trim():void 0,Ce=(w==null?void 0:w.id)||`${Y}-label`,Lo=h&&p(rr,g(u(u({labelElement:P,id:Ce,htmlFor:ke,required:ve},me),w),{children:h}),\"label\"),Je=be&&p(or,g(u(u({},F),me),{size:(F==null?void 0:F.size)||me.size,id:(F==null?void 0:F.id)||Se,children:S}),\"description\"),Oo=p(Ln.Fragment,{children:x(D)},\"input\"),Zo=Me&&(0,Ln.createElement)(tr,g(u(u({},B),me),{size:(B==null?void 0:B.size)||me.size,key:\"error\",id:(B==null?void 0:B.id)||re}),b),St=I.map(nl=>{switch(nl){case\"label\":return Lo;case\"input\":return Oo;case\"description\":return Je;case\"error\":return Zo;default:return null}});return p(Hh,{value:u({getStyles:$,describedBy:Yo,inputId:ke,labelId:Ce},Gh(I,{hasDescription:be,hasError:Me})),children:p(k,g(u(u({ref:o,variant:m,size:i,mod:[{error:!!b},U]},$(\"root\")),V),{children:St}))})});bt.classes=Ee;bt.displayName=\"@mantine/core/InputWrapper\"});var C4,w0,_0,_e,Qr=d(()=>{\"use client\";R();xe();C4=v(y(),1);Ie();L();q();ne();Ur();Q();ho();ri();Nh();ni();li();fi();Vh();ht();si();gt();w0={variant:\"default\",leftSectionPointerEvents:\"none\",rightSectionPointerEvents:\"none\",withAria:!0,withErrorStyles:!0},_0=(e,o,t)=>({wrapper:{\"--input-margin-top\":t.offsetTop?\"calc(var(--mantine-spacing-xs) / 2)\":void 0,\"--input-margin-bottom\":t.offsetBottom?\"calc(var(--mantine-spacing-xs) / 2)\":void 0,\"--input-height\":j(o.size,\"input-height\"),\"--input-fz\":de(o.size),\"--input-radius\":o.radius===void 0?void 0:ie(o.radius),\"--input-left-section-width\":o.leftSectionWidth!==void 0?_(o.leftSectionWidth):void 0,\"--input-right-section-width\":o.rightSectionWidth!==void 0?_(o.rightSectionWidth):void 0,\"--input-padding-y\":o.multiline?j(o.size,\"input-padding-y\"):void 0,\"--input-left-section-pointer-events\":o.leftSectionPointerEvents,\"--input-right-section-pointer-events\":o.rightSectionPointerEvents}}),_e=Ae((e,o)=>{let t=M(\"Input\",w0,e),St=t,{classNames:r,className:a,style:n,styles:l,unstyled:f,required:s,__staticSelector:i,__stylesApiProps:m,size:c,wrapperProps:x,error:I,disabled:h,leftSection:b,leftSectionProps:S,leftSectionWidth:w,rightSection:F,rightSectionProps:B,rightSectionWidth:P,rightSectionPointerEvents:D,leftSectionPointerEvents:O,variant:A,vars:E,pointer:T,multiline:U,radius:V,id:$,withAria:me,withErrorStyles:Y,mod:ve,inputSize:re,__clearSection:Se,__clearable:ke,__defaultRightSection:Me}=St,be=C(St,[\"classNames\",\"className\",\"style\",\"styles\",\"unstyled\",\"required\",\"__staticSelector\",\"__stylesApiProps\",\"size\",\"wrapperProps\",\"error\",\"disabled\",\"leftSection\",\"leftSectionProps\",\"leftSectionWidth\",\"rightSection\",\"rightSectionProps\",\"rightSectionWidth\",\"rightSectionPointerEvents\",\"leftSectionPointerEvents\",\"variant\",\"vars\",\"pointer\",\"multiline\",\"radius\",\"id\",\"withAria\",\"withErrorStyles\",\"mod\",\"inputSize\",\"__clearSection\",\"__clearable\",\"__defaultRightSection\"]),{styleProps:qe,rest:Yo}=Uo(be),Ce=yo(),Lo={offsetBottom:Ce==null?void 0:Ce.offsetBottom,offsetTop:Ce==null?void 0:Ce.offsetTop},Je=W({name:[\"Input\",i],props:m||t,classes:Ee,className:a,style:n,classNames:r,styles:l,unstyled:f,stylesCtx:Lo,rootSelector:\"wrapper\",vars:E,varsResolver:_0}),Oo=me?{required:s,disabled:h,\"aria-invalid\":!!I,\"aria-describedby\":Ce==null?void 0:Ce.describedBy,id:(Ce==null?void 0:Ce.inputId)||$}:{},Zo=F||ke&&Se||Me;return p(Lh,{value:{size:c||\"sm\"},children:p(k,g(u(u(u({},Je(\"wrapper\")),qe),x),{mod:[{error:!!I&&Y,pointer:T,disabled:h,multiline:U,\"data-with-right-section\":!!Zo,\"data-with-left-section\":!!b},ve],variant:A,size:c,children:[b&&p(\"div\",g(u(g(u({},S),{\"data-position\":\"left\"}),Je(\"section\",{className:S==null?void 0:S.className,style:S==null?void 0:S.style})),{children:b})),p(k,u(g(u(u({component:\"input\"},Yo),Oo),{ref:o,required:s,mod:{disabled:h,error:!!I&&Y},variant:A,__size:re}),Je(\"input\"))),Zo&&p(\"div\",g(u(g(u({},B),{\"data-position\":\"right\"}),Je(\"section\",{className:B==null?void 0:B.className,style:B==null?void 0:B.style})),{children:Zo}))]}))})});_e.classes=Ee;_e.Wrapper=bt;_e.Label=rr;_e.Error=tr;_e.Description=or;_e.Placeholder=kn;_e.ClearButton=ai;_e.displayName=\"@mantine/core/Input\"});var ii,qh=d(()=>{\"use client\";ii={root:\"m_b6d8b162\"}});function F0(e){if(e===\"start\")return\"start\";if(e===\"end\"||e)return\"end\"}var G4,R0,B0,Xo,ci=d(()=>{\"use client\";R();G4=v(y(),1);Ie();L();st();Jf();q();ne();Q();ho();qh();R0={inherit:!1},B0=(e,{variant:o,lineClamp:t,gradient:r,size:a,color:n})=>({root:{\"--text-fz\":de(a),\"--text-lh\":Rm(a),\"--text-gradient\":o===\"gradient\"?Nr(r,e):void 0,\"--text-line-clamp\":typeof t==\"number\"?t.toString():void 0,\"--text-color\":n?Ve(n,e):void 0}}),Xo=Ae((e,o)=>{let t=M(\"Text\",R0,e),D=t,{lineClamp:r,truncate:a,inline:n,inherit:l,gradient:f,span:s,__staticSelector:i,vars:m,className:c,style:x,classNames:I,styles:h,unstyled:b,variant:S,mod:w,size:F}=D,B=C(D,[\"lineClamp\",\"truncate\",\"inline\",\"inherit\",\"gradient\",\"span\",\"__staticSelector\",\"vars\",\"className\",\"style\",\"classNames\",\"styles\",\"unstyled\",\"variant\",\"mod\",\"size\"]),P=W({name:[\"Text\",i],props:t,classes:ii,className:c,style:x,classNames:I,styles:h,unstyled:b,vars:m,varsResolver:B0});return p(k,u(g(u({},P(\"root\",{focusable:!0})),{ref:o,component:s?\"span\":\"p\",variant:S,mod:[{\"data-truncate\":F0(a),\"data-line-clamp\":typeof r==\"number\",\"data-inline\":n,\"data-inherit\":l},w],size:F}),B))});Xo.classes=ii;Xo.displayName=\"@mantine/core/Text\"});var ui,jh=d(()=>{\"use client\";ui={root:\"m_849cf0da\"}});var n6,A0,Jr,Xh=d(()=>{\"use client\";R();L();n6=v(y(),1);q();ho();ci();jh();A0={underline:\"hover\"},Jr=Ae((e,o)=>{let f=M(\"Anchor\",A0,e),{underline:t,className:r,unstyled:a,mod:n}=f,l=C(f,[\"underline\",\"className\",\"unstyled\",\"mod\"]);return p(Xo,g(u({component:\"a\",ref:o,className:fe({[ui.root]:!a},r)},l),{mod:[{underline:t},n],__staticSelector:\"Anchor\",unstyled:a}))});Jr.classes=ui;Jr.displayName=\"@mantine/core/Anchor\"});var di,Kh=d(()=>{\"use client\";di={root:\"m_5f75b09e\",body:\"m_5f6e695e\",labelWrapper:\"m_d3ea56bb\",label:\"m_8ee546b8\",description:\"m_328f68c0\",error:\"m_8e8a99cc\"}});var Yh,Zh,ea,mi=d(()=>{\"use client\";R();Yh=v(y(),1);Ie();L();ne();Q();Qr();Kh();Zh=di,ea=(0,Yh.forwardRef)((O,D)=>{var A=O,{__staticSelector:e,__stylesApiProps:o,className:t,classNames:r,styles:a,unstyled:n,children:l,label:f,description:s,id:i,disabled:m,error:c,size:x,labelPosition:I=\"left\",bodyElement:h=\"div\",labelElement:b=\"label\",variant:S,style:w,vars:F,mod:B}=A,P=C(A,[\"__staticSelector\",\"__stylesApiProps\",\"className\",\"classNames\",\"styles\",\"unstyled\",\"children\",\"label\",\"description\",\"id\",\"disabled\",\"error\",\"size\",\"labelPosition\",\"bodyElement\",\"labelElement\",\"variant\",\"style\",\"vars\",\"mod\"]);let E=W({name:e,props:o,className:t,style:w,classes:di,classNames:r,styles:a,unstyled:n});return p(k,g(u(g(u({},E(\"root\")),{ref:D,__vars:{\"--label-fz\":de(x),\"--label-lh\":j(x,\"label-lh\")},mod:[{\"label-position\":I},B],variant:S,size:x}),P),{children:p(k,g(u({component:h,htmlFor:h===\"label\"?i:void 0},E(\"body\")),{children:[l,p(\"div\",g(u({},E(\"labelWrapper\")),{\"data-disabled\":m||void 0,children:[f&&p(k,g(u({component:b,htmlFor:b===\"label\"?i:void 0},E(\"label\")),{\"data-disabled\":m||void 0,children:f})),s&&p(_e.Description,g(u({size:x,__inheritStyles:!1},E(\"description\")),{children:s})),c&&typeof c!=\"boolean\"&&p(_e.Error,g(u({size:x,__inheritStyles:!1},E(\"error\")),{children:c}))]}))]}))}))});ea.displayName=\"@mantine/core/InlineInput\"});function On({children:e,role:o}){let t=yo();return t?p(\"div\",{role:o,\"aria-labelledby\":t.labelId,\"aria-describedby\":t.describedBy,children:e}):p(we,{children:e})}var C6,pi=d(()=>{\"use client\";R();C6=v(y(),1);L();ht()});var Eo,Nn=d(()=>{\"use client\";Eo={root:\"m_77c9d27d\",inner:\"m_80f1301b\",label:\"m_811560b9\",section:\"m_a74036a\",loader:\"m_a25b86ee\",group:\"m_80d6d844\",groupSection:\"m_70be2a01\"}});var P6,Qh,P0,Hn,Jh=d(()=>{\"use client\";R();xe();P6=v(y(),1);L();q();ne();Q();ee();Nn();Qh={orientation:\"horizontal\"},P0=(e,{borderWidth:o})=>({group:{\"--button-border-width\":_(o)}}),Hn=H((e,o)=>{let t=M(\"ButtonGroup\",Qh,e),b=M(\"ButtonGroup\",Qh,e),{className:r,style:a,classNames:n,styles:l,unstyled:f,orientation:s,vars:i,borderWidth:m,variant:c,mod:x}=b,I=C(b,[\"className\",\"style\",\"classNames\",\"styles\",\"unstyled\",\"orientation\",\"vars\",\"borderWidth\",\"variant\",\"mod\"]),h=W({name:\"ButtonGroup\",props:t,classes:Eo,className:r,style:a,classNames:n,styles:l,unstyled:f,vars:i,varsResolver:P0,rootSelector:\"group\"});return p(k,u(g(u({},h(\"group\")),{ref:o,variant:c,mod:[{\"data-orientation\":s},x],role:\"group\"}),I))});Hn.classes=Eo;Hn.displayName=\"@mantine/core/ButtonGroup\"});var z6,eg,E0,zn,og=d(()=>{\"use client\";R();z6=v(y(),1);Ie();L();q();ne();Q();ee();Nn();eg={},E0=(e,{radius:o,color:t,gradient:r,variant:a,autoContrast:n,size:l})=>{let f=e.variantColorResolver({color:t||e.primaryColor,theme:e,gradient:r,variant:a||\"filled\",autoContrast:n});return{groupSection:{\"--section-height\":j(l,\"section-height\"),\"--section-padding-x\":j(l,\"section-padding-x\"),\"--section-fz\":l!=null&&l.includes(\"compact\")?de(l.replace(\"compact-\",\"\")):de(l),\"--section-radius\":o===void 0?void 0:ie(o),\"--section-bg\":t||a?f.background:void 0,\"--section-color\":f.color,\"--section-bd\":t||a?f.border:void 0}}},zn=H((e,o)=>{let t=M(\"ButtonGroupSection\",eg,e),b=M(\"ButtonGroupSection\",eg,e),{className:r,style:a,classNames:n,styles:l,unstyled:f,vars:s,variant:i,gradient:m,radius:c,autoContrast:x}=b,I=C(b,[\"className\",\"style\",\"classNames\",\"styles\",\"unstyled\",\"vars\",\"variant\",\"gradient\",\"radius\",\"autoContrast\"]),h=W({name:\"ButtonGroupSection\",props:t,classes:Eo,className:r,style:a,classNames:n,styles:l,unstyled:f,vars:s,varsResolver:E0,rootSelector:\"groupSection\"});return p(k,u(g(u({},h(\"groupSection\")),{ref:o,variant:i}),I))});zn.classes=Eo;zn.displayName=\"@mantine/core/ButtonGroupSection\"});var Q6,M0,T0,D0,vt,tg=d(()=>{\"use client\";R();xe();Q6=v(y(),1);Ie();L();q();ne();Q();ho();$s();Yr();jr();Jh();og();Nn();M0={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${_(1)}))`},out:{opacity:0,transform:\"translate(-50%, -200%)\"},common:{transformOrigin:\"center\"},transitionProperty:\"transform, opacity\"},T0={},D0=(e,{radius:o,color:t,gradient:r,variant:a,size:n,justify:l,autoContrast:f})=>{let s=e.variantColorResolver({color:t||e.primaryColor,theme:e,gradient:r,variant:a||\"filled\",autoContrast:f});return{root:{\"--button-justify\":l,\"--button-height\":j(n,\"button-height\"),\"--button-padding-x\":j(n,\"button-padding-x\"),\"--button-fz\":n!=null&&n.includes(\"compact\")?de(n.replace(\"compact-\",\"\")):de(n),\"--button-radius\":o===void 0?void 0:ie(o),\"--button-bg\":t||a?s.background:void 0,\"--button-hover\":t||a?s.hover:void 0,\"--button-color\":s.color,\"--button-bd\":t||a?s.border:void 0,\"--button-hover-color\":t||a?s.hoverColor:void 0}}},vt=Ae((e,o)=>{let t=M(\"Button\",T0,e),V=t,{style:r,vars:a,className:n,color:l,disabled:f,children:s,leftSection:i,rightSection:m,fullWidth:c,variant:x,radius:I,loading:h,loaderProps:b,gradient:S,classNames:w,styles:F,unstyled:B,\"data-disabled\":P,autoContrast:D,mod:O}=V,A=C(V,[\"style\",\"vars\",\"className\",\"color\",\"disabled\",\"children\",\"leftSection\",\"rightSection\",\"fullWidth\",\"variant\",\"radius\",\"loading\",\"loaderProps\",\"gradient\",\"classNames\",\"styles\",\"unstyled\",\"data-disabled\",\"autoContrast\",\"mod\"]),E=W({name:\"Button\",props:t,classes:Eo,className:n,style:r,classNames:w,styles:F,unstyled:B,vars:a,varsResolver:D0}),T=!!i,U=!!m;return p(vo,g(u(g(u({ref:o},E(\"root\",{active:!f&&!h&&!P})),{unstyled:B,variant:x,disabled:f||h,mod:[{disabled:f||P,loading:h,block:c,\"with-left-section\":T,\"with-right-section\":U},O]}),A),{children:[p(Ao,{mounted:!!h,transition:M0,duration:150,children:$=>p(k,g(u({component:\"span\"},E(\"loader\",{style:$})),{\"aria-hidden\":!0,children:p(It,u({color:\"var(--button-color)\",size:\"calc(var(--button-height) / 1.8)\"},b))}))}),p(\"span\",g(u({},E(\"inner\")),{children:[i&&p(k,g(u({component:\"span\"},E(\"section\")),{mod:{position:\"left\"},children:i})),p(k,g(u({component:\"span\",mod:{loading:h}},E(\"label\")),{children:s})),m&&p(k,g(u({component:\"span\"},E(\"section\")),{mod:{position:\"right\"},children:m}))]}))]}))});vt.classes=Eo;vt.displayName=\"@mantine/core/Button\";vt.Group=Hn;vt.GroupSection=zn});var m5,rg,to,Ko=d(()=>{\"use client\";m5=v(y(),1);Pr();R();L();[rg,to]=No(\"Modal component was not found in tree\")});var De,Mo=d(()=>{\"use client\";De={root:\"m_9df02822\",content:\"m_54c44539\",inner:\"m_1f958f16\",header:\"m_d0e2b9cd\"}});var v5,k0,oa,ag=d(()=>{\"use client\";R();v5=v(y(),1);L();q();ee();gh();Ko();Mo();k0={},oa=H((e,o)=>{let m=M(\"ModalBody\",k0,e),{classNames:r,className:a,style:n,styles:l,vars:f}=m,s=C(m,[\"classNames\",\"className\",\"style\",\"styles\",\"vars\"]),i=to();return p(Zs,u(u({ref:o},i.getStyles(\"body\",{classNames:r,style:n,styles:l,className:a})),s))});oa.classes=De;oa.displayName=\"@mantine/core/ModalBody\"});var P5,L0,ta,ng=d(()=>{\"use client\";R();P5=v(y(),1);L();q();ee();vh();Ko();Mo();L0={},ta=H((e,o)=>{let m=M(\"ModalCloseButton\",L0,e),{classNames:r,className:a,style:n,styles:l,vars:f}=m,s=C(m,[\"classNames\",\"className\",\"style\",\"styles\",\"vars\"]),i=to();return p(Qs,u(u({ref:o},i.getStyles(\"close\",{classNames:r,style:n,styles:l,className:a})),s))});ta.classes=De;ta.displayName=\"@mantine/core/ModalCloseButton\"});var W5,O0,ra,lg=d(()=>{\"use client\";R();xe();W5=v(y(),1);L();q();ee();Sh();kh();Ko();Mo();O0={},ra=H((e,o)=>{let I=M(\"ModalContent\",O0,e),{classNames:r,className:a,style:n,styles:l,vars:f,children:s,__hidden:i}=I,m=C(I,[\"classNames\",\"className\",\"style\",\"styles\",\"vars\",\"children\",\"__hidden\"]),c=to(),x=c.scrollAreaComponent||Dh;return p(Js,g(u(g(u({},c.getStyles(\"content\",{className:a,style:n,styles:l,classNames:r})),{innerProps:c.getStyles(\"inner\",{className:a,style:n,styles:l,classNames:r}),\"data-full-screen\":c.fullScreen||void 0,\"data-modal-content\":!0,\"data-hidden\":i||void 0,ref:o}),m),{children:p(x,{style:{maxHeight:c.fullScreen?\"100dvh\":`calc(100dvh - (${_(c.yOffset)} * 2))`},children:s})}))});ra.classes=De;ra.displayName=\"@mantine/core/ModalContent\"});var Q5,N0,aa,fg=d(()=>{\"use client\";R();Q5=v(y(),1);L();q();ee();wh();Ko();Mo();N0={},aa=H((e,o)=>{let m=M(\"ModalHeader\",N0,e),{classNames:r,className:a,style:n,styles:l,vars:f}=m,s=C(m,[\"classNames\",\"className\",\"style\",\"styles\",\"vars\"]),i=to();return p(ei,u(u({ref:o},i.getStyles(\"header\",{classNames:r,style:n,styles:l,className:a})),s))});aa.classes=De;aa.displayName=\"@mantine/core/ModalHeader\"});var s8,H0,na,sg=d(()=>{\"use client\";R();s8=v(y(),1);L();q();ee();Bh();Ko();Mo();H0={},na=H((e,o)=>{let m=M(\"ModalOverlay\",H0,e),{classNames:r,className:a,style:n,styles:l,vars:f}=m,s=C(m,[\"classNames\",\"className\",\"style\",\"styles\",\"vars\"]),i=to();return p(oi,u(u({ref:o},i.getStyles(\"overlay\",{classNames:r,style:n,styles:l,className:a})),s))});na.classes=De;na.displayName=\"@mantine/core/ModalOverlay\"});var b8,z0,W0,la,ig=d(()=>{\"use client\";R();xe();b8=v(y(),1);Ot();Ie();L();q();ne();ee();mh();RI();Ko();Mo();z0={__staticSelector:\"Modal\",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:ao(\"modal\"),transitionProps:{duration:200,transition:\"fade-down\"},yOffset:\"5dvh\"},W0=(e,{radius:o,size:t,yOffset:r,xOffset:a})=>({root:{\"--modal-radius\":o===void 0?void 0:ie(o),\"--modal-size\":j(t,\"modal-size\"),\"--modal-y-offset\":_(r),\"--modal-x-offset\":_(a)}}),la=H((e,o)=>{let t=M(\"ModalRoot\",z0,e),F=t,{classNames:r,className:a,style:n,styles:l,unstyled:f,vars:s,yOffset:i,scrollAreaComponent:m,radius:c,fullScreen:x,centered:I,xOffset:h,__staticSelector:b}=F,S=C(F,[\"classNames\",\"className\",\"style\",\"styles\",\"unstyled\",\"vars\",\"yOffset\",\"scrollAreaComponent\",\"radius\",\"fullScreen\",\"centered\",\"xOffset\",\"__staticSelector\"]),w=W({name:b,classes:De,props:t,className:a,style:n,classNames:r,styles:l,unstyled:f,vars:s,varsResolver:W0});return p(rg,{value:{yOffset:i,scrollAreaComponent:m,getStyles:w,fullScreen:x},children:p(Ys,u(g(u({ref:o},w(\"root\")),{\"data-full-screen\":x||void 0,\"data-centered\":I||void 0,\"data-offset-scrollbars\":m===Zt.Autosize||void 0,unstyled:f}),S))})});la.classes=De;la.displayName=\"@mantine/core/ModalRoot\"});function Ii({children:e}){let[o,t]=(0,xi.useState)([]),[r,a]=(0,xi.useState)(ao(\"modal\"));return p(U0,{value:{stack:o,addModal:(n,l)=>{t(f=>[...new Set([...f,n])]),a(f=>typeof l==\"number\"&&typeof f==\"number\"?Math.max(f,l):f)},removeModal:n=>t(l=>l.filter(f=>f!==n)),getZIndex:n=>`calc(${r} + ${o.indexOf(n)} + 1)`,currentId:o[o.length-1],maxZIndex:r},children:e})}var xi,U0,cg,ug=d(()=>{\"use client\";R();xi=v(y(),1);Lt();Ot();L();[U0,cg]=mo();Ii.displayName=\"@mantine/core/ModalStack\"});var N8,V0,fa,dg=d(()=>{\"use client\";R();N8=v(y(),1);L();q();ee();Th();Ko();Mo();V0={},fa=H((e,o)=>{let m=M(\"ModalTitle\",V0,e),{classNames:r,className:a,style:n,styles:l,vars:f}=m,s=C(m,[\"classNames\",\"className\",\"style\",\"styles\",\"vars\"]),i=to();return p(ti,u(u({ref:o},i.getStyles(\"title\",{classNames:r,style:n,styles:l,className:a})),s))});fa.classes=De;fa.displayName=\"@mantine/core/ModalTitle\"});var mg,G0,$e,pg=d(()=>{\"use client\";R();mg=v(y(),1);Ot();L();q();ee();ag();ng();lg();fg();sg();ig();ug();dg();Mo();G0={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:ao(\"modal\"),transitionProps:{duration:200,transition:\"fade-down\"},withOverlay:!0,withCloseButton:!0},$e=H((e,o)=>{let w=M(\"Modal\",G0,e),{title:t,withOverlay:r,overlayProps:a,withCloseButton:n,closeButtonProps:l,children:f,radius:s,opened:i,stackId:m,zIndex:c}=w,x=C(w,[\"title\",\"withOverlay\",\"overlayProps\",\"withCloseButton\",\"closeButtonProps\",\"children\",\"radius\",\"opened\",\"stackId\",\"zIndex\"]),I=cg(),h=!!t||n,b=I&&m?{closeOnEscape:I.currentId===m,trapFocus:I.currentId===m,zIndex:I.getZIndex(m)}:{},S=r===!1?!1:m&&I?I.currentId===m:i;return(0,mg.useEffect)(()=>{I&&m&&(i?I.addModal(m,c||ao(\"modal\")):I.removeModal(m))},[i,m,c]),p(la,g(u(u({ref:o,radius:s,opened:i,zIndex:I&&m?I.getZIndex(m):c},x),b),{children:[r&&p(na,u({visible:S,transitionProps:I&&m?{duration:0}:void 0},a)),p(ra,{radius:s,__hidden:I&&m&&i?m!==I.currentId:!1,children:[h&&p(aa,{children:[t&&p(fa,{children:t}),n&&p(ta,u({},l))]}),p(oa,{children:f})]})]}))});$e.classes=De;$e.displayName=\"@mantine/core/Modal\";$e.Root=la;$e.Overlay=na;$e.Content=ra;$e.Body=oa;$e.Header=aa;$e.Title=fa;$e.CloseButton=ta;$e.Stack=Ii});var i7,xg,Wn,Un=d(()=>{\"use client\";i7=v(y(),1);R();Lt();L();[xg,Wn]=mo()});var p7,Ig,hg,hi=d(()=>{\"use client\";p7=v(y(),1);R();Lt();L();[Ig,hg]=mo()});var gi,gg=d(()=>{\"use client\";gi={card:\"m_9dc8ae12\"}});var y7,$0,q0,Vn,bg=d(()=>{\"use client\";R();y7=v(y(),1);Ie();L();q();ne();ee();Is();jr();Un();hi();gg();$0={withBorder:!0},q0=(e,{radius:o})=>({card:{\"--card-radius\":ie(o)}}),Vn=H((e,o)=>{let t=M(\"RadioCard\",$0,e),A=t,{classNames:r,className:a,style:n,styles:l,unstyled:f,vars:s,checked:i,mod:m,withBorder:c,value:x,onClick:I,name:h,onKeyDown:b}=A,S=C(A,[\"classNames\",\"className\",\"style\",\"styles\",\"unstyled\",\"vars\",\"checked\",\"mod\",\"withBorder\",\"value\",\"onClick\",\"name\",\"onKeyDown\"]),w=W({name:\"RadioCard\",classes:gi,props:t,className:a,style:n,classNames:r,styles:l,unstyled:f,vars:s,varsResolver:q0,rootSelector:\"card\"}),{dir:F}=xn(),B=Wn(),P=typeof i==\"boolean\"?i:(B==null?void 0:B.value)===x||!1,D=h||(B==null?void 0:B.name),O=E=>{if(b==null||b(E),[\"ArrowDown\",\"ArrowUp\",\"ArrowLeft\",\"ArrowRight\"].includes(E.nativeEvent.code)){E.preventDefault();let T=Array.from(document.querySelectorAll(`[role=\"radio\"][name=\"${D||\"__mantine\"}\"]`)),U=T.findIndex(me=>me===E.target),V=U+1>=T.length?0:U+1,$=U-1<0?T.length-1:U-1;E.nativeEvent.code===\"ArrowDown\"&&(T[V].focus(),T[V].click()),E.nativeEvent.code===\"ArrowUp\"&&(T[$].focus(),T[$].click()),E.nativeEvent.code===\"ArrowLeft\"&&(T[F===\"ltr\"?$:V].focus(),T[F===\"ltr\"?$:V].click()),E.nativeEvent.code===\"ArrowRight\"&&(T[F===\"ltr\"?V:$].focus(),T[F===\"ltr\"?V:$].click())}};return p(Ig,{value:{checked:P},children:p(vo,g(u(u({ref:o,mod:[{\"with-border\":c,checked:P},m]},w(\"card\")),S),{role:\"radio\",\"aria-checked\":P,name:D,onClick:E=>{I==null||I(E),B==null||B.onChange(x||\"\")},onKeyDown:O}))})});Vn.displayName=\"@mantine/core/RadioCard\";Vn.classes=gi});var L7,j0,Gn,vg=d(()=>{\"use client\";R();he();L7=v(y(),1);L();q();ee();Qr();pi();Un();j0={},Gn=H((e,o)=>{let b=M(\"RadioGroup\",j0,e),{value:t,defaultValue:r,onChange:a,size:n,wrapperProps:l,children:f,name:s,readOnly:i}=b,m=C(b,[\"value\",\"defaultValue\",\"onChange\",\"size\",\"wrapperProps\",\"children\",\"name\",\"readOnly\"]),c=fo(s),[x,I]=nt({value:t,defaultValue:r,finalValue:\"\",onChange:a});return p(xg,{value:{value:x,onChange:S=>!i&&I(typeof S==\"string\"?S:S.currentTarget.value),size:n,name:c},children:p(_e.Wrapper,g(u(u({size:n,ref:o},l),m),{labelElement:\"div\",__staticSelector:\"RadioGroup\",children:p(On,{role:\"radiogroup\",children:f})}))})});Gn.classes=_e.Wrapper.classes;Gn.displayName=\"@mantine/core/RadioGroup\"});function $n(r){var a=r,{size:e,style:o}=a,t=C(a,[\"size\",\"style\"]);return p(\"svg\",g(u({xmlns:\"http://www.w3.org/2000/svg\",fill:\"none\",viewBox:\"0 0 5 5\",style:u({width:_(e),height:_(e)},o),\"aria-hidden\":!0},t),{children:p(\"circle\",{cx:\"2.5\",cy:\"2.5\",r:\"2.5\",fill:\"currentColor\"})}))}var j7,bi=d(()=>{\"use client\";R();xe();j7=v(y(),1);L()});var vi,yg=d(()=>{\"use client\";vi={indicator:\"m_717d7ff6\",icon:\"m_3e4da632\",\"indicator--outline\":\"m_2980836c\"}});var J7,X0,K0,qn,Sg=d(()=>{\"use client\";R();J7=v(y(),1);Ie();L();ft();st();fn();is();q();ne();Q();ee();hi();bi();yg();X0={icon:$n},K0=(e,{radius:o,color:t,size:r,iconColor:a,variant:n,autoContrast:l})=>{let f=Ye({color:t||e.primaryColor,theme:e}),s=f.isThemeColor&&f.shade===void 0?`var(--mantine-color-${f.color}-outline)`:f.color;return{indicator:{\"--radio-size\":j(r,\"radio-size\"),\"--radio-radius\":o===void 0?void 0:ie(o),\"--radio-color\":n===\"outline\"?s:Ve(t,e),\"--radio-icon-size\":j(r,\"radio-icon-size\"),\"--radio-icon-color\":a?Ve(a,e):dn(l,e)?zr({color:t,theme:e,autoContrast:l}):void 0}}},qn=H((e,o)=>{let t=M(\"RadioIndicator\",X0,e),A=t,{classNames:r,className:a,style:n,styles:l,unstyled:f,vars:s,icon:i,radius:m,color:c,iconColor:x,autoContrast:I,checked:h,mod:b,variant:S,disabled:w}=A,F=C(A,[\"classNames\",\"className\",\"style\",\"styles\",\"unstyled\",\"vars\",\"icon\",\"radius\",\"color\",\"iconColor\",\"autoContrast\",\"checked\",\"mod\",\"variant\",\"disabled\"]),B=i,P=W({name:\"RadioIndicator\",classes:vi,props:t,className:a,style:n,classNames:r,styles:l,unstyled:f,vars:s,varsResolver:K0,rootSelector:\"indicator\"}),D=hg(),O=typeof h==\"boolean\"?h:(D==null?void 0:D.checked)||!1;return p(k,g(u(g(u({ref:o},P(\"indicator\",{variant:S})),{variant:S,mod:[{checked:O,disabled:w},b]}),F),{children:p(B,u({},P(\"icon\")))}))});qn.displayName=\"@mantine/core/RadioIndicator\";qn.classes=vi});var yi,Cg=d(()=>{\"use client\";yi={root:\"m_f3f1af94\",inner:\"m_89c4f5e4\",icon:\"m_f3ed6b2b\",radio:\"m_8a3dbb89\",\"radio--outline\":\"m_1bfe9d39\"}});var gz,Y0,Z0,ye,wg=d(()=>{\"use client\";R();he();gz=v(y(),1);Ie();L();ft();st();fn();is();q();ne();Ur();Q();ee();mi();bg();Un();vg();bi();Sg();Cg();Y0={labelPosition:\"right\"},Z0=(e,{size:o,radius:t,color:r,iconColor:a,variant:n,autoContrast:l})=>{let f=Ye({color:r||e.primaryColor,theme:e}),s=f.isThemeColor&&f.shade===void 0?`var(--mantine-color-${f.color}-outline)`:f.color;return{root:{\"--radio-size\":j(o,\"radio-size\"),\"--radio-radius\":t===void 0?void 0:ie(t),\"--radio-color\":n===\"outline\"?s:Ve(r,e),\"--radio-icon-color\":a?Ve(a,e):dn(l,e)?zr({color:r,theme:e,autoContrast:l}):void 0,\"--radio-icon-size\":j(o,\"radio-icon-size\")}}},ye=H((e,o)=>{var Me,be;let t=M(\"Radio\",Y0,e),ke=t,{classNames:r,className:a,style:n,styles:l,unstyled:f,vars:s,id:i,size:m,label:c,labelPosition:x,description:I,error:h,radius:b,color:S,variant:w,disabled:F,wrapperProps:B,icon:P=$n,rootRef:D,iconColor:O,onChange:A,mod:E}=ke,T=C(ke,[\"classNames\",\"className\",\"style\",\"styles\",\"unstyled\",\"vars\",\"id\",\"size\",\"label\",\"labelPosition\",\"description\",\"error\",\"radius\",\"color\",\"variant\",\"disabled\",\"wrapperProps\",\"icon\",\"rootRef\",\"iconColor\",\"onChange\",\"mod\"]),U=W({name:\"Radio\",classes:yi,props:t,className:a,style:n,classNames:r,styles:l,unstyled:f,vars:s,varsResolver:Z0}),V=Wn(),$=(Me=V==null?void 0:V.size)!=null?Me:m,me=t.size?m:$,{styleProps:Y,rest:ve}=Uo(T),re=fo(i),Se=V?{checked:V.value===ve.value,name:(be=ve.name)!=null?be:V.name,onChange:qe=>{V.onChange(qe),A==null||A(qe)}}:{};return p(ea,g(u(u(g(u({},U(\"root\")),{__staticSelector:\"Radio\",__stylesApiProps:t,id:re,size:me,labelPosition:x,label:c,description:I,error:h,disabled:F,classNames:r,styles:l,unstyled:f,\"data-checked\":Se.checked||void 0,variant:w,ref:D,mod:E}),Y),B),{children:p(k,g(u({},U(\"inner\")),{mod:{\"label-position\":x},children:[p(k,g(u(u(g(u({},U(\"radio\",{focusable:!0,variant:w})),{onChange:A}),ve),Se),{component:\"input\",mod:{error:!!h},ref:o,id:re,disabled:F,type:\"radio\"})),p(P,g(u({},U(\"icon\")),{\"aria-hidden\":!0}))]}))}))});ye.classes=yi;ye.displayName=\"@mantine/core/Radio\";ye.Group=Gn;ye.Card=Vn;ye.Indicator=qn});var Si,_g=d(()=>{\"use client\";Si={root:\"m_6d731127\"}});var Wz,Q0,J0,To,Fg=d(()=>{\"use client\";R();Wz=v(y(),1);Ie();L();q();ne();Q();ee();_g();Q0={gap:\"md\",align:\"stretch\",justify:\"flex-start\"},J0=(e,{gap:o,align:t,justify:r})=>({root:{\"--stack-gap\":Ka(o),\"--stack-align\":t,\"--stack-justify\":r}}),To=H((e,o)=>{let t=M(\"Stack\",Q0,e),b=t,{classNames:r,className:a,style:n,styles:l,unstyled:f,vars:s,align:i,justify:m,gap:c,variant:x}=b,I=C(b,[\"classNames\",\"className\",\"style\",\"styles\",\"unstyled\",\"vars\",\"align\",\"justify\",\"gap\",\"variant\"]),h=W({name:\"Stack\",props:t,classes:Si,className:a,style:n,classNames:r,styles:l,unstyled:f,vars:s,varsResolver:J0});return p(k,u(g(u({ref:o},h(\"root\")),{variant:x}),I))});To.classes=Si;To.displayName=\"@mantine/core/Stack\"});var jn,Rg,Bg,Ag,Ci=d(()=>{\"use client\";jn=v(y(),1),Rg=(0,jn.createContext)(null),Bg=Rg.Provider,Ag=()=>(0,jn.useContext)(Rg)});var e9,ew,Xn,Pg=d(()=>{\"use client\";R();he();e9=v(y(),1);L();q();ee();Qr();pi();Ci();ew={},Xn=H((e,o)=>{let I=M(\"SwitchGroup\",ew,e),{value:t,defaultValue:r,onChange:a,size:n,wrapperProps:l,children:f,readOnly:s}=I,i=C(I,[\"value\",\"defaultValue\",\"onChange\",\"size\",\"wrapperProps\",\"children\",\"readOnly\"]),[m,c]=nt({value:t,defaultValue:r,finalValue:[],onChange:a});return p(Bg,{value:{value:m,onChange:h=>{let b=h.currentTarget.value;!s&&c(m.includes(b)?m.filter(S=>S!==b):[...m,b])},size:n},children:p(_e.Wrapper,g(u(u({size:n,ref:o},l),i),{labelElement:\"div\",__staticSelector:\"SwitchGroup\",children:p(On,{role:\"group\",children:f})}))})});Xn.classes=_e.Wrapper.classes;Xn.displayName=\"@mantine/core/SwitchGroup\"});var wi,Eg=d(()=>{\"use client\";wi={root:\"m_5f93f3bb\",input:\"m_926b4011\",track:\"m_9307d992\",thumb:\"m_93039a1d\",trackLabel:\"m_8277e082\"}});var d9,ow,tw,J,Mg=d(()=>{\"use client\";R();he();d9=v(y(),1);Ie();L();st();q();ne();Ur();Q();ee();mi();Ci();Pg();Eg();ow={labelPosition:\"right\",withThumbIndicator:!0},tw=(e,{radius:o,color:t,size:r})=>({root:{\"--switch-radius\":o===void 0?void 0:ie(o),\"--switch-height\":j(r,\"switch-height\"),\"--switch-width\":j(r,\"switch-width\"),\"--switch-thumb-size\":j(r,\"switch-thumb-size\"),\"--switch-label-font-size\":j(r,\"switch-label-font-size\"),\"--switch-track-label-padding\":j(r,\"switch-track-label-padding\"),\"--switch-color\":t?Ve(t,e):void 0}}),J=H((e,o)=>{var Lo;let t=M(\"Switch\",ow,e),Ce=t,{classNames:r,className:a,style:n,styles:l,unstyled:f,vars:s,color:i,label:m,offLabel:c,onLabel:x,id:I,size:h,radius:b,wrapperProps:S,thumbIcon:w,checked:F,defaultChecked:B,onChange:P,labelPosition:D,description:O,error:A,disabled:E,variant:T,rootRef:U,mod:V,withThumbIndicator:$}=Ce,me=C(Ce,[\"classNames\",\"className\",\"style\",\"styles\",\"unstyled\",\"vars\",\"color\",\"label\",\"offLabel\",\"onLabel\",\"id\",\"size\",\"radius\",\"wrapperProps\",\"thumbIcon\",\"checked\",\"defaultChecked\",\"onChange\",\"labelPosition\",\"description\",\"error\",\"disabled\",\"variant\",\"rootRef\",\"mod\",\"withThumbIndicator\"]),Y=Ag(),ve=h||(Y==null?void 0:Y.size),re=W({name:\"Switch\",props:t,classes:wi,className:a,style:n,classNames:r,styles:l,unstyled:f,vars:s,varsResolver:tw}),{styleProps:Se,rest:ke}=Uo(me),Me=fo(I),be=Y?{checked:Y.value.includes(ke.value),onChange:Y.onChange}:{},[qe,Yo]=nt({value:(Lo=be.checked)!=null?Lo:F,defaultValue:B,finalValue:!1});return p(ea,g(u(u(g(u({},re(\"root\")),{__staticSelector:\"Switch\",__stylesApiProps:t,id:Me,size:ve,labelPosition:D,label:m,description:O,error:A,disabled:E,bodyElement:\"label\",labelElement:\"span\",classNames:r,styles:l,unstyled:f,\"data-checked\":be.checked||F||void 0,variant:T,ref:U,mod:V}),Se),S),{children:[p(\"input\",u(g(u({},ke),{disabled:E,checked:qe,\"data-checked\":be.checked||F||void 0,onChange:Je=>{var Oo;Y?(Oo=be.onChange)==null||Oo.call(be,Je):P==null||P(Je),Yo(Je.currentTarget.checked)},id:Me,ref:o,type:\"checkbox\",role:\"switch\"}),re(\"input\"))),p(k,g(u({\"aria-hidden\":\"true\",component:\"span\",mod:{error:A,\"label-position\":D,\"without-labels\":!x&&!c}},re(\"track\")),{children:[p(k,g(u({component:\"span\",mod:{\"reduce-motion\":!0,\"with-thumb-indicator\":$&&!w}},re(\"thumb\")),{children:w})),p(\"span\",g(u({},re(\"trackLabel\")),{children:qe?x:c}))]}))]}))});J.classes=u(u({},wi),Zh);J.displayName=\"@mantine/core/Switch\";J.Group=Xn});var Fe=d(()=>{zp();rh();Qr();si();Xh();tg();Ws();pg();wg();Fg();Mg();ci()});var Tg,Dg=d(()=>{Tg={outline:{xmlns:\"http://www.w3.org/2000/svg\",width:24,height:24,viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:2,strokeLinecap:\"round\",strokeLinejoin:\"round\"},filled:{xmlns:\"http://www.w3.org/2000/svg\",width:24,height:24,viewBox:\"0 0 24 24\",fill:\"currentColor\",stroke:\"none\"}}});var ar,nr,Kn=d(()=>{ar=v(y(),1);Dg();nr=(e,o,t,r)=>{let a=(0,ar.forwardRef)((I,x)=>{var h=I,{color:n=\"currentColor\",size:l=24,stroke:f=2,title:s,className:i,children:m}=h,c=C(h,[\"color\",\"size\",\"stroke\",\"title\",\"className\",\"children\"]);return(0,ar.createElement)(\"svg\",u(u(g(u({ref:x},Tg[e]),{width:l,height:l,className:[\"tabler-icon\",`tabler-icon-${o}`,i].join(\" \")}),e===\"filled\"?{fill:n}:{strokeWidth:f,stroke:n}),c),[s&&(0,ar.createElement)(\"title\",{key:\"svg-title\"},s),...r.map(([b,S])=>(0,ar.createElement)(b,S)),...Array.isArray(m)?m:[m]])});return a.displayName=`${t}`,a}});var _i,kg=d(()=>{Kn();_i=nr(\"outline\",\"search\",\"IconSearch\",[[\"path\",{d:\"M10 10m-7 0a7 7 0 1 0 14 0a7 7 0 1 0 -14 0\",key:\"svg-0\"}],[\"path\",{d:\"M21 21l-6 -6\",key:\"svg-1\"}]])});var Fi,Lg=d(()=>{Kn();Fi=nr(\"outline\",\"x\",\"IconX\",[[\"path\",{d:\"M18 6l-12 12\",key:\"svg-0\"}],[\"path\",{d:\"M6 6l12 12\",key:\"svg-1\"}]])});var Ri,Og=d(()=>{Kn();Ri=nr(\"filled\",\"settings-filled\",\"IconSettingsFilled\",[[\"path\",{d:\"M14.647 4.081a.724 .724 0 0 0 1.08 .448c2.439 -1.485 5.23 1.305 3.745 3.744a.724 .724 0 0 0 .447 1.08c2.775 .673 2.775 4.62 0 5.294a.724 .724 0 0 0 -.448 1.08c1.485 2.439 -1.305 5.23 -3.744 3.745a.724 .724 0 0 0 -1.08 .447c-.673 2.775 -4.62 2.775 -5.294 0a.724 .724 0 0 0 -1.08 -.448c-2.439 1.485 -5.23 -1.305 -3.745 -3.744a.724 .724 0 0 0 -.447 -1.08c-2.775 -.673 -2.775 -4.62 0 -5.294a.724 .724 0 0 0 .448 -1.08c-1.485 -2.439 1.305 -5.23 3.744 -3.745a.722 .722 0 0 0 1.08 -.447c.673 -2.775 4.62 -2.775 5.294 0zm-2.647 4.919a3 3 0 1 0 0 6a3 3 0 0 0 0 -6z\",key:\"svg-0\"}]])});var Ng=d(()=>{kg();Lg();Og();});function Ai({size:e}){return Bi.default.createElement(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 127.14 96.36\",width:e,height:e},Bi.default.createElement(\"path\",{fill:\"currentColor\",d:\"M107.7,8.07A105.15,105.15,0,0,0,81.47,0a72.06,72.06,0,0,0-3.36,6.83A97.68,97.68,0,0,0,49,6.83,72.37,72.37,0,0,0,45.64,0,105.89,105.89,0,0,0,19.39,8.09C2.79,32.65-1.71,56.6.54,80.21h0A105.73,105.73,0,0,0,32.71,96.36,77.7,77.7,0,0,0,39.6,85.25a68.42,68.42,0,0,1-10.85-5.18c.91-.66,1.8-1.34,2.66-2a75.57,75.57,0,0,0,64.32,0c.87.71,1.76,1.39,2.66,2a68.68,68.68,0,0,1-10.87,5.19,77,77,0,0,0,6.89,11.1A105.25,105.25,0,0,0,126.6,80.22h0C129.24,52.84,122.09,29.11,107.7,8.07ZM42.45,65.69C36.18,65.69,31,60,31,53s5-12.74,11.43-12.74S54,46,53.89,53,48.84,65.69,42.45,65.69Zm42.24,0C78.41,65.69,73.25,60,73.25,53s5-12.74,11.44-12.74S96.23,46,96.12,53,91.08,65.69,84.69,65.69Z\"}))}var Bi,Hg=d(()=>{\"use strict\";Bi=v(y())});function Do(e){return Array.isArray?Array.isArray(e):jg(e)===\"[object Array]\"}function aw(e){if(typeof e==\"string\")return e;let o=e+\"\";return o==\"0\"&&1/e==-rw?\"-0\":o}function nw(e){return e==null?\"\":aw(e)}function So(e){return typeof e==\"string\"}function $g(e){return typeof e==\"number\"}function lw(e){return e===!0||e===!1||fw(e)&&jg(e)==\"[object Boolean]\"}function qg(e){return typeof e==\"object\"}function fw(e){return qg(e)&&e!==null}function Qe(e){return e!=null}function Pi(e){return!e.trim().length}function jg(e){return e==null?e===void 0?\"[object Undefined]\":\"[object Null]\":Object.prototype.toString.call(e)}function Xg(e){let o=null,t=null,r=null,a=1,n=null;if(So(e)||Do(e))r=e,o=Wg(e),t=Mi(e);else{if(!zg.call(e,\"name\"))throw new Error(uw(\"name\"));let l=e.name;if(r=l,zg.call(e,\"weight\")&&(a=e.weight,a<=0))throw new Error(dw(l));o=Wg(l),t=Mi(l),n=e.getFn}return{path:o,id:t,weight:a,src:r,getFn:n}}function Wg(e){return Do(e)?e:e.split(\".\")}function Mi(e){return Do(e)?e.join(\".\"):e}function mw(e,o){let t=[],r=!1,a=(n,l,f)=>{if(Qe(n))if(!l[f])t.push(n);else{let s=l[f],i=n[s];if(!Qe(i))return;if(f===l.length-1&&(So(i)||$g(i)||lw(i)))t.push(nw(i));else if(Do(i)){r=!0;for(let m=0,c=i.length;m<c;m+=1)a(i[m],l,f+1)}else l.length&&a(i,l,f+1)}};return a(e,So(o)?o.split(\".\"):o,0),r?t:t[0]}function bw(e=1,o=3){let t=new Map,r=Math.pow(10,o);return{get(a){let n=a.match(gw).length;if(t.has(n))return t.get(n);let l=1/Math.pow(n,.5*e),f=parseFloat(Math.round(l*r)/r);return t.set(n,f),f},clear(){t.clear()}}}function Kg(e,o,{getFn:t=G.getFn,fieldNormWeight:r=G.fieldNormWeight}={}){let a=new sa({getFn:t,fieldNormWeight:r});return a.setKeys(e.map(Xg)),a.setSources(o),a.create(),a}function vw(e,{getFn:o=G.getFn,fieldNormWeight:t=G.fieldNormWeight}={}){let{keys:r,records:a}=e,n=new sa({getFn:o,fieldNormWeight:t});return n.setKeys(r),n.setIndexRecords(a),n}function Yn(e,{errors:o=0,currentLocation:t=0,expectedLocation:r=0,distance:a=G.distance,ignoreLocation:n=G.ignoreLocation}={}){let l=o/e.length;if(n)return l;let f=Math.abs(r-t);return a?l+f/a:f?1:l}function yw(e=[],o=G.minMatchCharLength){let t=[],r=-1,a=-1,n=0;for(let l=e.length;n<l;n+=1){let f=e[n];f&&r===-1?r=n:!f&&r!==-1&&(a=n-1,a-r+1>=o&&t.push([r,a]),r=-1)}return e[n-1]&&n-r>=o&&t.push([r,n-1]),t}function Sw(e,o,t,{location:r=G.location,distance:a=G.distance,threshold:n=G.threshold,findAllMatches:l=G.findAllMatches,minMatchCharLength:f=G.minMatchCharLength,includeMatches:s=G.includeMatches,ignoreLocation:i=G.ignoreLocation}={}){if(o.length>yt)throw new Error(cw(yt));let m=o.length,c=e.length,x=Math.max(0,Math.min(r,c)),I=n,h=x,b=f>1||s,S=b?Array(c):[],w;for(;(w=e.indexOf(o,h))>-1;){let A=Yn(o,{currentLocation:w,expectedLocation:x,distance:a,ignoreLocation:i});if(I=Math.min(A,I),h=w+m,b){let E=0;for(;E<m;)S[w+E]=1,E+=1}}h=-1;let F=[],B=1,P=m+c,D=1<<m-1;for(let A=0;A<m;A+=1){let E=0,T=P;for(;E<T;)Yn(o,{errors:A,currentLocation:x+T,expectedLocation:x,distance:a,ignoreLocation:i})<=I?E=T:P=T,T=Math.floor((P-E)/2+E);P=T;let U=Math.max(1,x-T+1),V=l?c:Math.min(x+T,c)+m,$=Array(V+2);$[V+1]=(1<<A)-1;for(let Y=V;Y>=U;Y-=1){let ve=Y-1,re=t[e.charAt(ve)];if(b&&(S[ve]=+!!re),$[Y]=($[Y+1]<<1|1)&re,A&&($[Y]|=(F[Y+1]|F[Y])<<1|1|F[Y+1]),$[Y]&D&&(B=Yn(o,{errors:A,currentLocation:ve,expectedLocation:x,distance:a,ignoreLocation:i}),B<=I)){if(I=B,h=ve,h<=x)break;U=Math.max(1,2*x-h)}}if(Yn(o,{errors:A+1,currentLocation:x,expectedLocation:x,distance:a,ignoreLocation:i})>I)break;F=$}let O={isMatch:h>=0,score:Math.max(.001,B)};if(b){let A=yw(S,f);A.length?s&&(O.indices=A):O.isMatch=!1}return O}function Cw(e){let o={};for(let t=0,r=e.length;t<r;t+=1){let a=e.charAt(t);o[a]=(o[a]||0)|1<<r-t-1}return o}function Ug(e,o){let t=e.match(o);return t?t[1]:null}function Fw(e,o={}){return e.split(_w).map(t=>{let r=t.trim().split(ww).filter(n=>n&&!!n.trim()),a=[];for(let n=0,l=r.length;n<l;n+=1){let f=r[n],s=!1,i=-1;for(;!s&&++i<Vg;){let m=Hi[i],c=m.isMultiMatch(f);c&&(a.push(new m(c,o)),s=!0)}if(!s)for(i=-1;++i<Vg;){let m=Hi[i],c=m.isSingleMatch(f);if(c){a.push(new m(c,o));break}}}return a})}function Bw(...e){Wi.push(...e)}function Ui(e,o){for(let t=0,r=Wi.length;t<r;t+=1){let a=Wi[t];if(a.condition(e,o))return new a(e,o)}return new Qn(e,o)}function Yg(e,o,{auto:t=!0}={}){let r=a=>{let n=Object.keys(a),l=Aw(a);if(!l&&n.length>1&&!Gi(a))return r(Gg(a));if(Pw(a)){let s=l?a[Vi.PATH]:n[0],i=l?a[Vi.PATTERN]:a[s];if(!So(i))throw new Error(iw(s));let m={keyId:Mi(s),pattern:i};return t&&(m.searcher=Ui(i,o)),m}let f={children:[],operator:n[0]};return n.forEach(s=>{let i=a[s];Do(i)&&i.forEach(m=>{f.children.push(r(m))})}),f};return Gi(e)||(e=Gg(e)),r(e)}function Ew(e,{ignoreFieldNorm:o=G.ignoreFieldNorm}){e.forEach(t=>{let r=1;t.matches.forEach(({key:a,norm:n,score:l})=>{let f=a?a.weight:null;r*=Math.pow(l===0&&f?Number.EPSILON:l,(f||1)*(o?1:n))}),t.score=r})}function Mw(e,o){let t=e.matches;o.matches=[],Qe(t)&&t.forEach(r=>{if(!Qe(r.indices)||!r.indices.length)return;let{indices:a,value:n}=r,l={indices:a,value:n};r.key&&(l.key=r.key.src),r.idx>-1&&(l.refIndex=r.idx),o.matches.push(l)})}function Tw(e,o){o.score=e.score}function Dw(e,o,{includeMatches:t=G.includeMatches,includeScore:r=G.includeScore}={}){let a=[];return t&&a.push(Mw),r&&a.push(Tw),e.map(n=>{let{idx:l}=n,f={item:o[l],refIndex:l};return a.length&&a.forEach(s=>{s(n,f)}),f})}var rw,sw,iw,cw,uw,dw,zg,Ei,pw,xw,Iw,hw,G,gw,sa,yt,Zn,Qn,Co,Ti,Di,ki,Li,Oi,Ni,Jn,el,Hi,Vg,ww,_w,Rw,zi,Wi,ol,Vi,Gi,Aw,Pw,Gg,ko,Zg=d(()=>{rw=1/0;sw=\"Incorrect 'index' type\",iw=e=>`Invalid value for key ${e}`,cw=e=>`Pattern length exceeds max of ${e}.`,uw=e=>`Missing ${e} property in key`,dw=e=>`Property 'weight' in key '${e}' must be a positive integer`,zg=Object.prototype.hasOwnProperty,Ei=class{constructor(o){this._keys=[],this._keyMap={};let t=0;o.forEach(r=>{let a=Xg(r);this._keys.push(a),this._keyMap[a.id]=a,t+=a.weight}),this._keys.forEach(r=>{r.weight/=t})}get(o){return this._keyMap[o]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}};pw={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},xw={isCaseSensitive:!1,ignoreDiacritics:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,o)=>e.score===o.score?e.idx<o.idx?-1:1:e.score<o.score?-1:1},Iw={location:0,threshold:.6,distance:100},hw={useExtendedSearch:!1,getFn:mw,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},G=u(u(u(u({},xw),pw),Iw),hw),gw=/[^ ]+/g;sa=class{constructor({getFn:o=G.getFn,fieldNormWeight:t=G.fieldNormWeight}={}){this.norm=bw(t,3),this.getFn=o,this.isCreated=!1,this.setIndexRecords()}setSources(o=[]){this.docs=o}setIndexRecords(o=[]){this.records=o}setKeys(o=[]){this.keys=o,this._keysMap={},o.forEach((t,r)=>{this._keysMap[t.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,So(this.docs[0])?this.docs.forEach((o,t)=>{this._addString(o,t)}):this.docs.forEach((o,t)=>{this._addObject(o,t)}),this.norm.clear())}add(o){let t=this.size();So(o)?this._addString(o,t):this._addObject(o,t)}removeAt(o){this.records.splice(o,1);for(let t=o,r=this.size();t<r;t+=1)this.records[t].i-=1}getValueForItemAtKeyId(o,t){return o[this._keysMap[t]]}size(){return this.records.length}_addString(o,t){if(!Qe(o)||Pi(o))return;let r={v:o,i:t,n:this.norm.get(o)};this.records.push(r)}_addObject(o,t){let r={i:t,$:{}};this.keys.forEach((a,n)=>{let l=a.getFn?a.getFn(o):this.getFn(o,a.path);if(Qe(l)){if(Do(l)){let f=[],s=[{nestedArrIndex:-1,value:l}];for(;s.length;){let{nestedArrIndex:i,value:m}=s.pop();if(Qe(m))if(So(m)&&!Pi(m)){let c={v:m,i,n:this.norm.get(m)};f.push(c)}else Do(m)&&m.forEach((c,x)=>{s.push({nestedArrIndex:x,value:c})})}r.$[n]=f}else if(So(l)&&!Pi(l)){let f={v:l,n:this.norm.get(l)};r.$[n]=f}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}};yt=32;Zn=String.prototype.normalize?e=>e.normalize(\"NFD\").replace(/[\\u0300-\\u036F\\u0483-\\u0489\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u0610-\\u061A\\u064B-\\u065F\\u0670\\u06D6-\\u06DC\\u06DF-\\u06E4\\u06E7\\u06E8\\u06EA-\\u06ED\\u0711\\u0730-\\u074A\\u07A6-\\u07B0\\u07EB-\\u07F3\\u07FD\\u0816-\\u0819\\u081B-\\u0823\\u0825-\\u0827\\u0829-\\u082D\\u0859-\\u085B\\u08D3-\\u08E1\\u08E3-\\u0903\\u093A-\\u093C\\u093E-\\u094F\\u0951-\\u0957\\u0962\\u0963\\u0981-\\u0983\\u09BC\\u09BE-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CD\\u09D7\\u09E2\\u09E3\\u09FE\\u0A01-\\u0A03\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A70\\u0A71\\u0A75\\u0A81-\\u0A83\\u0ABC\\u0ABE-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AE2\\u0AE3\\u0AFA-\\u0AFF\\u0B01-\\u0B03\\u0B3C\\u0B3E-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B56\\u0B57\\u0B62\\u0B63\\u0B82\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD7\\u0C00-\\u0C04\\u0C3E-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C62\\u0C63\\u0C81-\\u0C83\\u0CBC\\u0CBE-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CE2\\u0CE3\\u0D00-\\u0D03\\u0D3B\\u0D3C\\u0D3E-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4D\\u0D57\\u0D62\\u0D63\\u0D82\\u0D83\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DF2\\u0DF3\\u0E31\\u0E34-\\u0E3A\\u0E47-\\u0E4E\\u0EB1\\u0EB4-\\u0EB9\\u0EBB\\u0EBC\\u0EC8-\\u0ECD\\u0F18\\u0F19\\u0F35\\u0F37\\u0F39\\u0F3E\\u0F3F\\u0F71-\\u0F84\\u0F86\\u0F87\\u0F8D-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u102B-\\u103E\\u1056-\\u1059\\u105E-\\u1060\\u1062-\\u1064\\u1067-\\u106D\\u1071-\\u1074\\u1082-\\u108D\\u108F\\u109A-\\u109D\\u135D-\\u135F\\u1712-\\u1714\\u1732-\\u1734\\u1752\\u1753\\u1772\\u1773\\u17B4-\\u17D3\\u17DD\\u180B-\\u180D\\u1885\\u1886\\u18A9\\u1920-\\u192B\\u1930-\\u193B\\u1A17-\\u1A1B\\u1A55-\\u1A5E\\u1A60-\\u1A7C\\u1A7F\\u1AB0-\\u1ABE\\u1B00-\\u1B04\\u1B34-\\u1B44\\u1B6B-\\u1B73\\u1B80-\\u1B82\\u1BA1-\\u1BAD\\u1BE6-\\u1BF3\\u1C24-\\u1C37\\u1CD0-\\u1CD2\\u1CD4-\\u1CE8\\u1CED\\u1CF2-\\u1CF4\\u1CF7-\\u1CF9\\u1DC0-\\u1DF9\\u1DFB-\\u1DFF\\u20D0-\\u20F0\\u2CEF-\\u2CF1\\u2D7F\\u2DE0-\\u2DFF\\u302A-\\u302F\\u3099\\u309A\\uA66F-\\uA672\\uA674-\\uA67D\\uA69E\\uA69F\\uA6F0\\uA6F1\\uA802\\uA806\\uA80B\\uA823-\\uA827\\uA880\\uA881\\uA8B4-\\uA8C5\\uA8E0-\\uA8F1\\uA8FF\\uA926-\\uA92D\\uA947-\\uA953\\uA980-\\uA983\\uA9B3-\\uA9C0\\uA9E5\\uAA29-\\uAA36\\uAA43\\uAA4C\\uAA4D\\uAA7B-\\uAA7D\\uAAB0\\uAAB2-\\uAAB4\\uAAB7\\uAAB8\\uAABE\\uAABF\\uAAC1\\uAAEB-\\uAAEF\\uAAF5\\uAAF6\\uABE3-\\uABEA\\uABEC\\uABED\\uFB1E\\uFE00-\\uFE0F\\uFE20-\\uFE2F]/g,\"\"):e=>e,Qn=class{constructor(o,{location:t=G.location,threshold:r=G.threshold,distance:a=G.distance,includeMatches:n=G.includeMatches,findAllMatches:l=G.findAllMatches,minMatchCharLength:f=G.minMatchCharLength,isCaseSensitive:s=G.isCaseSensitive,ignoreDiacritics:i=G.ignoreDiacritics,ignoreLocation:m=G.ignoreLocation}={}){if(this.options={location:t,threshold:r,distance:a,includeMatches:n,findAllMatches:l,minMatchCharLength:f,isCaseSensitive:s,ignoreDiacritics:i,ignoreLocation:m},o=s?o:o.toLowerCase(),o=i?Zn(o):o,this.pattern=o,this.chunks=[],!this.pattern.length)return;let c=(I,h)=>{this.chunks.push({pattern:I,alphabet:Cw(I),startIndex:h})},x=this.pattern.length;if(x>yt){let I=0,h=x%yt,b=x-h;for(;I<b;)c(this.pattern.substr(I,yt),I),I+=yt;if(h){let S=x-yt;c(this.pattern.substr(S),S)}}else c(this.pattern,0)}searchIn(o){let{isCaseSensitive:t,ignoreDiacritics:r,includeMatches:a}=this.options;if(o=t?o:o.toLowerCase(),o=r?Zn(o):o,this.pattern===o){let b={isMatch:!0,score:0};return a&&(b.indices=[[0,o.length-1]]),b}let{location:n,distance:l,threshold:f,findAllMatches:s,minMatchCharLength:i,ignoreLocation:m}=this.options,c=[],x=0,I=!1;this.chunks.forEach(({pattern:b,alphabet:S,startIndex:w})=>{let{isMatch:F,score:B,indices:P}=Sw(o,b,S,{location:n+w,distance:l,threshold:f,findAllMatches:s,minMatchCharLength:i,includeMatches:a,ignoreLocation:m});F&&(I=!0),x+=B,F&&P&&(c=[...c,...P])});let h={isMatch:I,score:I?x/this.chunks.length:1};return I&&a&&(h.indices=c),h}},Co=class{constructor(o){this.pattern=o}static isMultiMatch(o){return Ug(o,this.multiRegex)}static isSingleMatch(o){return Ug(o,this.singleRegex)}search(){}};Ti=class extends Co{constructor(o){super(o)}static get type(){return\"exact\"}static get multiRegex(){return/^=\"(.*)\"$/}static get singleRegex(){return/^=(.*)$/}search(o){let t=o===this.pattern;return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},Di=class extends Co{constructor(o){super(o)}static get type(){return\"inverse-exact\"}static get multiRegex(){return/^!\"(.*)\"$/}static get singleRegex(){return/^!(.*)$/}search(o){let r=o.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,o.length-1]}}},ki=class extends Co{constructor(o){super(o)}static get type(){return\"prefix-exact\"}static get multiRegex(){return/^\\^\"(.*)\"$/}static get singleRegex(){return/^\\^(.*)$/}search(o){let t=o.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,this.pattern.length-1]}}},Li=class extends Co{constructor(o){super(o)}static get type(){return\"inverse-prefix-exact\"}static get multiRegex(){return/^!\\^\"(.*)\"$/}static get singleRegex(){return/^!\\^(.*)$/}search(o){let t=!o.startsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,o.length-1]}}},Oi=class extends Co{constructor(o){super(o)}static get type(){return\"suffix-exact\"}static get multiRegex(){return/^\"(.*)\"\\$$/}static get singleRegex(){return/^(.*)\\$$/}search(o){let t=o.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[o.length-this.pattern.length,o.length-1]}}},Ni=class extends Co{constructor(o){super(o)}static get type(){return\"inverse-suffix-exact\"}static get multiRegex(){return/^!\"(.*)\"\\$$/}static get singleRegex(){return/^!(.*)\\$$/}search(o){let t=!o.endsWith(this.pattern);return{isMatch:t,score:t?0:1,indices:[0,o.length-1]}}},Jn=class extends Co{constructor(o,{location:t=G.location,threshold:r=G.threshold,distance:a=G.distance,includeMatches:n=G.includeMatches,findAllMatches:l=G.findAllMatches,minMatchCharLength:f=G.minMatchCharLength,isCaseSensitive:s=G.isCaseSensitive,ignoreDiacritics:i=G.ignoreDiacritics,ignoreLocation:m=G.ignoreLocation}={}){super(o),this._bitapSearch=new Qn(o,{location:t,threshold:r,distance:a,includeMatches:n,findAllMatches:l,minMatchCharLength:f,isCaseSensitive:s,ignoreDiacritics:i,ignoreLocation:m})}static get type(){return\"fuzzy\"}static get multiRegex(){return/^\"(.*)\"$/}static get singleRegex(){return/^(.*)$/}search(o){return this._bitapSearch.searchIn(o)}},el=class extends Co{constructor(o){super(o)}static get type(){return\"include\"}static get multiRegex(){return/^'\"(.*)\"$/}static get singleRegex(){return/^'(.*)$/}search(o){let t=0,r,a=[],n=this.pattern.length;for(;(r=o.indexOf(this.pattern,t))>-1;)t=r+n,a.push([r,t-1]);let l=!!a.length;return{isMatch:l,score:l?0:1,indices:a}}},Hi=[Ti,el,ki,Li,Ni,Oi,Di,Jn],Vg=Hi.length,ww=/ +(?=(?:[^\\\"]*\\\"[^\\\"]*\\\")*[^\\\"]*$)/,_w=\"|\";Rw=new Set([Jn.type,el.type]),zi=class{constructor(o,{isCaseSensitive:t=G.isCaseSensitive,ignoreDiacritics:r=G.ignoreDiacritics,includeMatches:a=G.includeMatches,minMatchCharLength:n=G.minMatchCharLength,ignoreLocation:l=G.ignoreLocation,findAllMatches:f=G.findAllMatches,location:s=G.location,threshold:i=G.threshold,distance:m=G.distance}={}){this.query=null,this.options={isCaseSensitive:t,ignoreDiacritics:r,includeMatches:a,minMatchCharLength:n,findAllMatches:f,ignoreLocation:l,location:s,threshold:i,distance:m},o=t?o:o.toLowerCase(),o=r?Zn(o):o,this.pattern=o,this.query=Fw(this.pattern,this.options)}static condition(o,t){return t.useExtendedSearch}searchIn(o){let t=this.query;if(!t)return{isMatch:!1,score:1};let{includeMatches:r,isCaseSensitive:a,ignoreDiacritics:n}=this.options;o=a?o:o.toLowerCase(),o=n?Zn(o):o;let l=0,f=[],s=0;for(let i=0,m=t.length;i<m;i+=1){let c=t[i];f.length=0,l=0;for(let x=0,I=c.length;x<I;x+=1){let h=c[x],{isMatch:b,indices:S,score:w}=h.search(o);if(b){if(l+=1,s+=w,r){let F=h.constructor.type;Rw.has(F)?f=[...f,...S]:f.push(S)}}else{s=0,l=0,f.length=0;break}}if(l){let x={isMatch:!0,score:s/l};return r&&(x.indices=f),x}}return{isMatch:!1,score:1}}},Wi=[];ol={AND:\"$and\",OR:\"$or\"},Vi={PATH:\"$path\",PATTERN:\"$val\"},Gi=e=>!!(e[ol.AND]||e[ol.OR]),Aw=e=>!!e[Vi.PATH],Pw=e=>!Do(e)&&qg(e)&&!Gi(e),Gg=e=>({[ol.AND]:Object.keys(e).map(o=>({[o]:e[o]}))});ko=class{constructor(o,t={},r){this.options=u(u({},G),t),this.options.useExtendedSearch,this._keyStore=new Ei(this.options.keys),this.setCollection(o,r)}setCollection(o,t){if(this._docs=o,t&&!(t instanceof sa))throw new Error(sw);this._myIndex=t||Kg(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(o){Qe(o)&&(this._docs.push(o),this._myIndex.add(o))}remove(o=()=>!1){let t=[];for(let r=0,a=this._docs.length;r<a;r+=1){let n=this._docs[r];o(n,r)&&(this.removeAt(r),r-=1,a-=1,t.push(n))}return t}removeAt(o){this._docs.splice(o,1),this._myIndex.removeAt(o)}getIndex(){return this._myIndex}search(o,{limit:t=-1}={}){let{includeMatches:r,includeScore:a,shouldSort:n,sortFn:l,ignoreFieldNorm:f}=this.options,s=So(o)?So(this._docs[0])?this._searchStringList(o):this._searchObjectList(o):this._searchLogical(o);return Ew(s,{ignoreFieldNorm:f}),n&&s.sort(l),$g(t)&&t>-1&&(s=s.slice(0,t)),Dw(s,this._docs,{includeMatches:r,includeScore:a})}_searchStringList(o){let t=Ui(o,this.options),{records:r}=this._myIndex,a=[];return r.forEach(({v:n,i:l,n:f})=>{if(!Qe(n))return;let{isMatch:s,score:i,indices:m}=t.searchIn(n);s&&a.push({item:n,idx:l,matches:[{score:i,value:n,norm:f,indices:m}]})}),a}_searchLogical(o){let t=Yg(o,this.options),r=(f,s,i)=>{if(!f.children){let{keyId:c,searcher:x}=f,I=this._findMatches({key:this._keyStore.get(c),value:this._myIndex.getValueForItemAtKeyId(s,c),searcher:x});return I&&I.length?[{idx:i,item:s,matches:I}]:[]}let m=[];for(let c=0,x=f.children.length;c<x;c+=1){let I=f.children[c],h=r(I,s,i);if(h.length)m.push(...h);else if(f.operator===ol.AND)return[]}return m},a=this._myIndex.records,n={},l=[];return a.forEach(({$:f,i:s})=>{if(Qe(f)){let i=r(t,f,s);i.length&&(n[s]||(n[s]={idx:s,item:f,matches:[]},l.push(n[s])),i.forEach(({matches:m})=>{n[s].matches.push(...m)}))}}),l}_searchObjectList(o){let t=Ui(o,this.options),{keys:r,records:a}=this._myIndex,n=[];return a.forEach(({$:l,i:f})=>{if(!Qe(l))return;let s=[];r.forEach((i,m)=>{s.push(...this._findMatches({key:i,value:l[m],searcher:t}))}),s.length&&n.push({idx:f,item:l,matches:s})}),n}_findMatches({key:o,value:t,searcher:r}){if(!Qe(t))return[];let a=[];if(Do(t))t.forEach(({v:n,i:l,n:f})=>{if(!Qe(n))return;let{isMatch:s,score:i,indices:m}=r.searchIn(n);s&&a.push({score:i,key:o,value:n,idx:l,norm:f,indices:m})});else{let{v:n,n:l}=t,{isMatch:f,score:s,indices:i}=r.searchIn(n);f&&a.push({score:s,key:o,value:n,norm:l,indices:i})}return a}};ko.version=\"7.1.0\";ko.createIndex=Kg;ko.parseIndex=vw;ko.config=G;ko.parseQuery=Yg;Bw(zi)});function X(e){let[o,t]=$i.default.useState(()=>N.getSetting(e));$i.default.useEffect(()=>{function a(n){t(n)}return N.on(`${e}.setting:update`,a),()=>{N.off(`${e}.setting:update`,a)}},[e]);function r(a){t(a),N.setSetting(e,a)}return[o,r]}var $i,Re=d(()=>{\"use strict\";$i=v(y());Oe()});var qi={};Z(qi,{default:()=>Lw});function kw(){let[e,o]=X(\"ALWAYS_PRESENT\");return Qg.default.createElement(J,{label:Jg,description:eb,checked:e,onChange:()=>o(!e)})}var Qg,Jg,eb,Lw,ob=d(()=>{\"use strict\";Qg=v(y());Re();Fe();Jg=\"Always Present\",eb=\"Bypass Snapchat's presence detection.\";Lw={name:Jg,description:eb,component:kw}});var ji={};Z(ji,{default:()=>zw});function Hw(){let[e,o]=X(\"BITMOJI_PRESENCE\");return lr.default.createElement(ye.Group,{label:tb,value:e,onChange:t=>o(t)},lr.default.createElement(To,null,lr.default.createElement(ye,{value:\"DEFAULT\",label:rb,description:ab}),lr.default.createElement(ye,{value:\"MOBILE\",label:Ow,description:Nw}),lr.default.createElement(ye,{value:\"HIDE\",label:nb,description:lb})))}var lr,tb,rb,ab,nb,lb,Ow,Nw,zw,fb=d(()=>{\"use strict\";lr=v(y());Fe();Re();co();tb=\"Bitmoji Presence\",rb=\"Default\",ab=\"Do what Snapchat normally does.\",nb=\"Invisible\",lb=\"Hide your bitmoji from chat.\",Ow=\"Mobile\",Nw=\"Appear as if you are on mobile.\";zw={name:[tb,rb,nb],description:[ab,lb],component:Hw}});var Xi={};Z(Xi,{default:()=>Gw});function Vw(){let[e,o]=X(\"CHAT_HANDLING\");return ia.default.createElement(ye.Group,{label:sb,value:e,onChange:t=>o(t)},ia.default.createElement(To,null,ia.default.createElement(ye,{value:\"DEFAULT\",label:ib,description:cb}),ia.default.createElement(ye,{value:\"AUTO_SAVE\",label:ub,description:db})))}var ia,sb,ib,cb,ub,db,Ww,Uw,Gw,mb=d(()=>{\"use strict\";ia=v(y());Fe();Re();co();sb=\"Message Handling\",ib=\"Default\",cb=\"Do what Snapchat normally does.\",ub=\"Auto-Save Messages\",db=\"Automatically save all messages to your history.\",Ww=\"Unread\",Uw=\"Prevent others from knowing you read their message.\";Gw={name:[sb,ib,ub,Ww],description:[cb,db,Uw],component:Vw}});var Ki={};Z(Ki,{default:()=>qw});function $w(){let[e,o]=X(\"ALLOW_CROSS_TAB\");return pb.default.createElement(J,{label:xb,description:Ib,checked:e,onChange:()=>o(!e)})}var pb,xb,Ib,qw,hb=d(()=>{\"use strict\";pb=v(y());Re();Fe();xb=\"Multiple Snapchat Tabs\",Ib=\"Allow multiple tabs of Snapchat to be open at once.\";qw={name:xb,description:Ib,component:$w}});var Yi={};Z(Yi,{default:()=>Xw});function jw(){let[e,o]=X(\"SAVE_IMAGE\");return gb.default.createElement(J,{label:bb,description:vb,checked:e,onChange:()=>o(!e)})}var gb,bb,vb,Xw,yb=d(()=>{\"use strict\";gb=v(y());Re();Fe();bb=\"Media Saving\",vb=\"Enable right-click saving of images and videos.\";Xw={name:bb,description:vb,component:jw}});var Qi={};Z(Qi,{default:()=>Yw});function Kw(){let[e,o]=X(\"HALF_SWIPE_NOTIFICATION\"),t=Zi.default.useCallback(async r=>{r&&Notification.permission!==\"granted\"&&await Notification.requestPermission(),o(r)},[o]);return Zi.default.createElement(J,{label:Sb,description:Cb,checked:e,onChange:()=>t(!e)})}var Zi,Sb,Cb,Yw,wb=d(()=>{\"use strict\";Zi=v(y());Re();Fe();Sb=\"Peeking Notification\",Cb=\"Receive a notification when someone is peeking at a conversation.\";Yw={name:Sb,description:Cb,component:Kw}});var Ji={};Z(Ji,{default:()=>Qw});function Zw(){let[e,o]=X(\"PRESENCE_LOGGING\");return _b.default.createElement(J,{label:Fb,description:Rb,checked:e,onChange:()=>o(!e)})}var _b,Fb,Rb,Qw,Bb=d(()=>{\"use strict\";_b=v(y());Re();Fe();Fb=\"Presence Logging\",Rb=\"Log presence changes to the dev-console.\";Qw={name:Fb,description:Rb,component:Zw}});var ec={};Z(ec,{default:()=>e_});function Jw(){let[e,o]=X(\"ALLOW_SCREENSHOT\");return Ab.default.createElement(J,{label:Pb,description:Eb,checked:e,onChange:()=>o(!e)})}var Ab,Pb,Eb,e_,Mb=d(()=>{\"use strict\";Ab=v(y());Re();Fe();Pb=\"Screenshots\",Eb=\"Bypass Snapchat's screenshot detection.\";e_={name:Pb,description:Eb,component:Jw}});var oc={};Z(oc,{default:()=>t_});function o_(){let[e,o]=X(\"SNAP_AS_MOBILE\");return Tb.default.createElement(J,{label:Db,description:kb,checked:e,onChange:()=>o(!e)})}var Tb,Db,kb,t_,Lb=d(()=>{\"use strict\";Tb=v(y());Re();Fe();Db=\"Send Snaps as Mobile\",kb=\"Snaps sent will appear sent from Mobile.\";t_={name:Db,description:kb,component:o_}});var tc={};Z(tc,{default:()=>a_});function r_(){let[e,o]=X(\"SEND_UNSAVEABLE_MESSAGES\");return Ob.default.createElement(J,{label:Nb,description:Hb,checked:e,onChange:()=>o(!e)})}var Ob,Nb,Hb,a_,zb=d(()=>{\"use strict\";Ob=v(y());Re();Fe();Nb=\"Send Messages as Unsaveable\",Hb=\"Chats and Snaps will be sent as unsaveable.\";a_={name:Nb,description:Hb,component:r_}});var rc={};Z(rc,{default:()=>f_});function l_(){let[e,o]=X(\"SETTINGS_BUTTON_LAYOUT\");return ca.default.createElement(ye.Group,{label:Wb,value:e,onChange:t=>o(t)},ca.default.createElement(To,null,ca.default.createElement(ye,{value:\"RIGHT\",label:Ub,description:Vb}),ca.default.createElement(ye,{value:\"HIDDEN\",label:Gb,description:$b})))}var ca,Wb,Ub,Vb,Gb,$b,f_,qb=d(()=>{\"use strict\";ca=v(y());Fe();Re();co();Wb=\"Settings Button Layout\",Ub=\"Right\",Vb=\"Show Settings button on the right side of the screen.\",Gb=\"Hidden\",$b=\"Hide Settings button completely. (Shift + Q to Open)\";f_={name:[Wb,Ub,Gb],description:[Vb,$b],component:l_}});var ac={};Z(ac,{default:()=>i_});function s_(){let[e,o]=X(\"PREVENT_STORY_READ_RECEIPTS\");return jb.default.createElement(J,{label:Xb,description:Kb,checked:!e,onChange:()=>o(!e)})}var jb,Xb,Kb,i_,Yb=d(()=>{\"use strict\";jb=v(y());Re();Fe();Xb=\"Story View-Receipts\",Kb=\"Let others know you have viewed their story.\";i_={name:Xb,description:Kb,component:s_}});var nc={};Z(nc,{default:()=>u_});function c_(){let[e,o]=X(\"PREVENT_TYPING\"),[t]=X(\"HIDE_BITMOJI\");return Zb.default.createElement(J,{disabled:t,label:Qb,description:Jb,checked:!e,onChange:()=>o(!e)})}var Zb,Qb,Jb,u_,ev=d(()=>{\"use strict\";Zb=v(y());Re();Fe();Qb=\"Actively Typing Animation\",Jb=\"Let others know when you are typing.\";u_={name:Qb,description:Jb,component:c_}});var lc={};Z(lc,{default:()=>m_});function d_(){let[e,o]=X(\"PREVENT_TYPING_NOTIFICATION\");return ov.default.createElement(J,{label:tv,description:rv,checked:!e,onChange:()=>o(!e)})}var ov,tv,rv,m_,av=d(()=>{\"use strict\";ov=v(y());Re();Fe();tv=\"Started Typing Notification\",rv=\"Let others know when you are typing by push-notification.\";m_={name:tv,description:rv,component:d_}});var fc={};Z(fc,{default:()=>x_});function p_(){let[e,o]=X(\"UNLIMITED_FILE_SIZE\");return nv.default.createElement(J,{label:lv,description:fv,checked:e,onChange:()=>o(!e)})}var nv,lv,fv,x_,sv=d(()=>{\"use strict\";nv=v(y());Re();Fe();lv=\"Unrestricted Files\",fv=\"Enable sending media of any size.\";x_={name:lv,description:fv,component:p_}});var sc={};Z(sc,{default:()=>h_});function I_(){let[e,o]=X(\"UPLOAD_SNAPS\");return iv.default.createElement(J,{label:cv,description:uv,checked:e,onChange:()=>o(!e)})}var iv,cv,uv,h_,dv=d(()=>{\"use strict\";iv=v(y());Re();Fe();cv=\"Upload Images as Snaps\",uv=\"Uploaded images will be sent as snaps.\";h_={name:cv,description:uv,component:I_}});var ic={};Z(ic,{default:()=>b_});function g_(){let[e,o]=X(\"PRIVATE_STORIES\");return mv.default.createElement(J,{label:pv,description:xv,checked:e,onChange:()=>o(!e)})}var mv,pv,xv,b_,Iv=d(()=>{\"use strict\";mv=v(y());Re();Fe();pv=\"Private Stories\",xv=\"Interact with private stories on web.\";b_={name:pv,description:xv,component:g_}});var cc={};Z(cc,{default:()=>y_,filenames:()=>S_});var v_,y_,S_,hv=d(()=>{ob();fb();mb();hb();yb();wb();Bb();Mb();Lb();zb();qb();Yb();ev();av();sv();dv();Iv();v_=[qi,ji,Xi,Ki,Yi,Qi,Ji,ec,oc,tc,rc,ac,nc,lc,fc,sc,ic],y_=v_,S_=[\"./settings/AlwaysPresent.tsx\",\"./settings/BitmojiPresence.tsx\",\"./settings/ChatHandling.tsx\",\"./settings/CrossTabSupport.tsx\",\"./settings/MediaSaving.tsx\",\"./settings/PeekingNotification.tsx\",\"./settings/PresenceLogging.tsx\",\"./settings/ScreenshotPrevention.tsx\",\"./settings/SendSnapsAsMobile.tsx\",\"./settings/SendUnsaveableMessages.tsx\",\"./settings/SettingsButton.tsx\",\"./settings/StoryReadReceipt.tsx\",\"./settings/TypingAnimation.tsx\",\"./settings/TypingNotification.tsx\",\"./settings/UnlimitedFileSize.tsx\",\"./settings/UploadImageSnaps.tsx\",\"./settings/ViewPrivateStories.tsx\"]});function bv(){return window.matchMedia(\"(prefers-color-scheme: dark)\").matches?\"dark\":\"light\"}function __(t){var r=t,{children:e}=r,o=C(r,[\"children\"]);let a=tl.default.useRef(null);return tl.default.createElement(cn,u({defaultColorScheme:\"light\",colorSchemeManager:w_,theme:C_,cssVariablesSelector:\":host > main\",withGlobalClasses:!1,withCssVariables:!0,getRootElement:()=>a.current},o),tl.default.createElement(\"main\",{ref:a},e))}var tl,gv,ua,C_,w_,vv,yv=d(()=>{\"use strict\";tl=v(y());Fe();ro();gv=Be(),C_={primaryColor:\"indigo\",cursorType:\"pointer\",components:{Radio:ye.extend({defaultProps:{size:\"md\",color:\"indigo\"}}),Switch:J.extend({defaultProps:{size:\"md\",color:\"indigo\"},styles:()=>({body:{alignItems:\"center\",gap:4},track:{\"--switch-width\":\"40px\"}})}),InputWrapper:bt.extend({styles:()=>({label:{marginBottom:16}})}),Modal:$e.extend({styles:()=>({body:{display:\"flex\",flexDirection:\"column\",gap:20,padding:20},content:{borderRadius:12,borderWidth:1,borderStyle:\"solid\",borderColor:\"var(--mantine-color-gray-light)\"}})})}};w_={set:()=>{},get:()=>{let e=gv.getState().localSettings.appTheme;return e===\"system\"?bv():e},subscribe:e=>{ua=gv.subscribe((o,t)=>{o.localSettings.appTheme!==t.localSettings.appTheme&&(o.localSettings.appTheme===\"system\"?e(bv()):e(o.localSettings.appTheme))})},unsubscribe:()=>{ua==null||ua(),ua=void 0},clear:()=>{}};vv=__});function R_({search:e}){let o=se.default.useMemo(()=>new ko(Sv,{keys:[\"name\",\"description\"]}),[]),t=se.default.useMemo(()=>e.length>0?o.search(e).map(r=>r.item):Sv,[e,o]);return se.default.createElement(\"div\",{className:\"modalSettings\"},e.length>0&&t.length===0?se.default.createElement(Xo,{className:\"emptySettings\"},'No settings found matching \"',e,'\".'):null,t.map(r=>{let a=r.component,n=Array.isArray(r.name)?r.name.join(\"-\"):r.name;return se.default.createElement(a,{key:n})}),e.length===0?se.default.createElement(Jr,{className:\"resetButton\",component:\"button\",onClick:()=>N.setSettings(ir)},\"Reset Settings\"):null)}function B_({onClose:e,search:o,setSearch:t}){return se.default.createElement(\"div\",{className:\"modalSection\"},se.default.createElement(xt,{active:!0},se.default.createElement(_e,{variant:\"default\",size:\"sm\",autoFocus:!0,placeholder:\"Search settings\",leftSection:se.default.createElement(_i,{size:16}),value:o,onChange:r=>t(r.currentTarget.value)})),se.default.createElement(jo,{size:\"md\",color:\"gray\",variant:\"transparent\",onClick:e,className:\"closeButton\"},se.default.createElement(Fi,null)))}function A_({isOpen:e,onClose:o}){let[t,r]=se.default.useState(\"\");return se.default.createElement($e,{withCloseButton:!1,opened:e,onClose:o,centered:!0,size:\"lg\",lockScroll:!1,withinPortal:!1},se.default.createElement(B_,{onClose:o,search:t,setSearch:r}),se.default.createElement(R_,{search:t}),se.default.createElement(\"div\",{className:\"modalSection\"},se.default.createElement(vt,{leftSection:se.default.createElement(Ai,{size:18}),variant:\"light\",component:\"a\",href:Nc.DISCORD},\"Join our Discord\"),se.default.createElement(Xo,{className:\"footerText\",component:\"a\",href:\"https://github.com/dclstn/better-chat/releases/tag/v1.5.0\"},\"BetterChat v\",\"1.5.0\",\" \\u2764\\uFE0F\")))}function E_(){let[e,{toggle:o,close:t}]=Zf(!1),[r]=X(ce.SETTINGS_BUTTON_LAYOUT);return se.default.useEffect(()=>{function a(n){!n.shiftKey||n.key!==\"Q\"||(o(),n.preventDefault(),n.stopPropagation())}return window.addEventListener(\"keydown\",a),()=>window.removeEventListener(\"keydown\",a)},[o]),se.default.createElement(vv,null,r!==\"HIDDEN\"?se.default.createElement(jo,{size:\"xl\",radius:\"md\",className:\"settingsButton\",variant:\"filled\",onClick:o},se.default.createElement(Ri,{size:18})):null,se.default.createElement(P_,{isOpen:e,onClose:t}))}var se,F_,Sv,P_,Cv,wv=d(()=>{\"use strict\";se=v(y());Fe();Ng();Hg();Zg();hv();co();Oe();yv();he();Re();({default:F_}=cc),Sv=F_.map(({default:e})=>e);P_=se.default.memo(A_,(e,o)=>e.isOpen===o.isOpen&&e.onClose===o.onClose);Cv=E_});var _v,Fv=d(()=>{_v=\".m_9814e45f{background:var(--overlay-bg,#0009);-webkit-backdrop-filter:var(--overlay-filter);border-radius:var(--overlay-radius,0);z-index:var(--overlay-z-index);position:absolute;inset:0}.m_9814e45f:where([data-fixed]){position:fixed}.m_9814e45f:where([data-center]){justify-content:center;align-items:center;display:flex}\"});var Rv,Bv=d(()=>{Rv=\".m_615af6c9{font-weight:400;line-height:1;font-size:var(--mantine-font-size-md);margin:0;padding:0}.m_b5489c3c{padding:var(--mb-padding,var(--mantine-spacing-md));background-color:var(--mantine-color-body);z-index:1000;justify-content:space-between;align-items:center;min-height:60px;padding-inline-end:calc(var(--mb-padding,var(--mantine-spacing-md)) - calc(.3125rem*var(--mantine-scale)));transition:padding-inline-end .1s;display:flex;position:sticky;top:0}.m_60c222c7{width:100%;z-index:var(--mb-z-index);pointer-events:none;position:fixed;top:0;bottom:0}.m_fd1ab0aa{pointer-events:all;box-shadow:var(--mb-shadow,var(--mantine-shadow-xl))}.m_fd1ab0aa [data-mantine-scrollbar]{z-index:1001}[data-offset-scrollbars] .m_fd1ab0aa:has([data-mantine-scrollbar]) .m_b5489c3c{padding-inline-end:calc(var(--mb-padding,var(--mantine-spacing-md)) + calc(.3125rem*var(--mantine-scale)))}.m_606cb269{margin-inline-start:auto}.m_5df29311{padding:var(--mb-padding,var(--mantine-spacing-md));padding-top:var(--mb-padding,var(--mantine-spacing-md))}.m_5df29311:where(:not(:only-child)){padding-top:0}\"});var Av,Pv=d(()=>{Av=\".m_87cf2631{cursor:pointer;appearance:none;font-size:var(--mantine-font-size-md);text-align:left;color:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent;background-color:#0000;border:0;padding:0;text-decoration:none}:where([dir=rtl]) .m_87cf2631{text-align:right}\"});var Ev,Mv=d(()=>{Ev=\".m_6c018570{margin-top:var(--input-margin-top,0rem);margin-bottom:var(--input-margin-bottom,0rem);--input-height-xs:30px;--input-height-sm:36px;--input-height-md:42px;--input-height-lg:50px;--input-height-xl:60px;--input-padding-y-xs:5px;--input-padding-y-sm:6px;--input-padding-y-md:8px;--input-padding-y-lg:10px;--input-padding-y-xl:13px;--input-height:var(--input-height-sm);--input-radius:var(--mantine-radius-default);--input-cursor:text;--input-text-align:left;--input-line-height:calc(var(--input-height) - calc(.125rem*var(--mantine-scale)));--input-padding:calc(var(--input-height)/3);--input-padding-inline-start:var(--input-padding);--input-padding-inline-end:var(--input-padding);--input-placeholder-color:var(--mantine-color-placeholder);--input-color:var(--mantine-color-text);--input-disabled-bg:var(--mantine-color-disabled);--input-disabled-color:var(--mantine-color-disabled-color);--input-left-section-size:var(--input-left-section-width,calc(var(--input-height) - calc(.125rem*var(--mantine-scale))));--input-right-section-size:var(--input-right-section-width,calc(var(--input-height) - calc(.125rem*var(--mantine-scale))));--input-size:var(--input-height);--section-y:1px;--left-section-start:1px;--left-section-border-radius:var(--input-radius)0 0 var(--input-radius);--right-section-end:1px;--right-section-border-radius:0 var(--input-radius)var(--input-radius)0;position:relative}.m_6c018570[data-variant=unstyled]{--input-padding:0;--input-padding-y:0;--input-padding-inline-start:0;--input-padding-inline-end:0}.m_6c018570[data-pointer]{--input-cursor:pointer}.m_6c018570[data-multiline]{--input-padding-y-xs:4.5px;--input-padding-y-sm:5.5px;--input-padding-y-md:7px;--input-padding-y-lg:9.5px;--input-padding-y-xl:13px;--input-size:auto;--input-line-height:var(--mantine-line-height);--input-padding-y:var(--input-padding-y-sm)}.m_6c018570[data-with-left-section]{--input-padding-inline-start:var(--input-left-section-size)}.m_6c018570[data-with-right-section]{--input-padding-inline-end:var(--input-right-section-size)}[data-mantine-color-scheme=light] .m_6c018570[data-variant=default]{--input-bd:var(--mantine-color-gray-4);--input-bg:var(--mantine-color-white);--input-bd-focus:var(--mantine-primary-color-filled)}[data-mantine-color-scheme=light] .m_6c018570[data-variant=filled]{--input-bd:transparent;--input-bg:var(--mantine-color-gray-1);--input-bd-focus:var(--mantine-primary-color-filled)}[data-mantine-color-scheme=light] .m_6c018570[data-variant=unstyled]{--input-bd:transparent;--input-bg:transparent;--input-bd-focus:transparent}[data-mantine-color-scheme=dark] .m_6c018570[data-variant=default]{--input-bd:var(--mantine-color-dark-4);--input-bg:var(--mantine-color-dark-6);--input-bd-focus:var(--mantine-primary-color-filled)}[data-mantine-color-scheme=dark] .m_6c018570[data-variant=filled]{--input-bd:transparent;--input-bg:var(--mantine-color-dark-5);--input-bd-focus:var(--mantine-primary-color-filled)}[data-mantine-color-scheme=dark] .m_6c018570[data-variant=unstyled]{--input-bd:transparent;--input-bg:transparent;--input-bd-focus:transparent}[data-mantine-color-scheme] .m_6c018570[data-error]:not([data-variant=unstyled]){--input-bd:var(--mantine-color-error)}[data-mantine-color-scheme] .m_6c018570[data-error]{--input-color:var(--mantine-color-error);--input-placeholder-color:var(--mantine-color-error);--input-section-color:var(--mantine-color-error)}:where([dir=rtl]) .m_6c018570{--input-text-align:right;--left-section-border-radius:0 var(--input-radius)var(--input-radius)0;--right-section-border-radius:var(--input-radius)0 0 var(--input-radius)}.m_8fb7ebe7{-webkit-tap-highlight-color:transparent;appearance:none;resize:var(--input-resize,none);width:100%;text-align:var(--input-text-align);color:var(--input-color);border:calc(.0625rem*var(--mantine-scale))solid var(--input-bd);background-color:var(--input-bg);font-family:var(--input-font-family,var(--mantine-font-family));height:var(--input-size);min-height:var(--input-height);line-height:var(--input-line-height);font-size:var(--input-fz,var(--input-fz,var(--mantine-font-size-sm)));border-radius:var(--input-radius);padding-inline-start:var(--input-padding-inline-start);padding-inline-end:var(--input-padding-inline-end);padding-top:var(--input-padding-y,0rem);padding-bottom:var(--input-padding-y,0rem);cursor:var(--input-cursor);overflow:var(--input-overflow);transition:border-color .1s;display:block}.m_8fb7ebe7[data-no-overflow]{--input-overflow:hidden}.m_8fb7ebe7[data-monospace]{--input-font-family:var(--mantine-font-family-monospace);--input-fz:calc(var(--input-fz,var(--mantine-font-size-sm)) - calc(.125rem*var(--mantine-scale)))}.m_8fb7ebe7:focus,.m_8fb7ebe7:focus-within{--input-bd:var(--input-bd-focus);outline:none}[data-error] .m_8fb7ebe7:focus,[data-error] .m_8fb7ebe7:focus-within{--input-bd:var(--mantine-color-error)}.m_8fb7ebe7::placeholder{color:var(--input-placeholder-color);opacity:1}.m_8fb7ebe7::-webkit-inner-spin-button,.m_8fb7ebe7::-webkit-outer-spin-button,.m_8fb7ebe7::-webkit-search-decoration,.m_8fb7ebe7::-webkit-search-cancel-button,.m_8fb7ebe7::-webkit-search-results-button,.m_8fb7ebe7::-webkit-search-results-decoration{appearance:none}.m_8fb7ebe7[type=number]{-moz-appearance:textfield}.m_8fb7ebe7:disabled,.m_8fb7ebe7[data-disabled],.m_8fb7ebe7:has(input:disabled){cursor:not-allowed;opacity:.6;background-color:var(--input-disabled-bg);color:var(--input-disabled-color)}.m_82577fc2{pointer-events:var(--section-pointer-events);z-index:1;inset-inline-start:var(--section-start);inset-inline-end:var(--section-end);bottom:var(--section-y);top:var(--section-y);width:var(--section-size);border-radius:var(--section-border-radius);color:var(--input-section-color,var(--mantine-color-dimmed));justify-content:center;align-items:center;display:flex;position:absolute}.m_82577fc2[data-position=right]{--section-pointer-events:var(--input-right-section-pointer-events);--section-end:var(--right-section-end);--section-size:var(--input-right-section-size);--section-border-radius:var(--right-section-border-radius)}.m_82577fc2[data-position=left]{--section-pointer-events:var(--input-left-section-pointer-events);--section-start:var(--left-section-start);--section-size:var(--input-left-section-size);--section-border-radius:var(--left-section-border-radius)}.m_88bacfd0{color:var(--input-placeholder-color,var(--mantine-color-placeholder))}[data-error] .m_88bacfd0{--input-placeholder-color:var(--input-color,var(--mantine-color-placeholder))}.m_46b77525{line-height:var(--mantine-line-height)}.m_8fdc1311{word-break:break-word;cursor:default;-webkit-tap-highlight-color:transparent;font-weight:500;font-size:var(--input-label-size,var(--mantine-font-size-sm));display:inline-block}.m_78a94662{color:var(--input-asterisk-color,var(--mantine-color-error))}.m_8f816625,.m_fe47ce59{word-wrap:break-word;margin:0;padding:0;line-height:1.2;display:block}.m_8f816625{color:var(--mantine-color-error);font-size:var(--input-error-size,calc(var(--mantine-font-size-sm) - calc(.125rem*var(--mantine-scale))))}.m_fe47ce59{color:var(--mantine-color-dimmed);font-size:var(--input-description-size,calc(var(--mantine-font-size-sm) - calc(.125rem*var(--mantine-scale))))}\"});var Tv,Dv=d(()=>{Tv=\".m_8bffd616{display:flex}\"});var kv,Lv=d(()=>{kv=\".m_8d3f4000{--ai-size-xs:18px;--ai-size-sm:22px;--ai-size-md:28px;--ai-size-lg:34px;--ai-size-xl:44px;--ai-size-input-xs:30px;--ai-size-input-sm:36px;--ai-size-input-md:42px;--ai-size-input-lg:50px;--ai-size-input-xl:60px;--ai-size:var(--ai-size-md);--ai-color:var(--mantine-color-white);user-select:none;width:var(--ai-size);height:var(--ai-size);min-width:var(--ai-size);min-height:var(--ai-size);border-radius:var(--ai-radius,var(--mantine-radius-default));background:var(--ai-bg,var(--mantine-primary-color-filled));color:var(--ai-color,var(--mantine-color-white));border:var(--ai-bd,calc(.0625rem*var(--mantine-scale))solid transparent);cursor:pointer;justify-content:center;align-items:center;line-height:1;display:inline-flex;position:relative;overflow:hidden}@media (hover:hover){.m_8d3f4000:hover:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--ai-hover,var(--mantine-primary-color-filled-hover));color:var(--ai-hover-color,var(--ai-color))}}@media (hover:none){.m_8d3f4000:active:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--ai-hover,var(--mantine-primary-color-filled-hover));color:var(--ai-hover-color,var(--ai-color))}}.m_8d3f4000[data-loading]{cursor:not-allowed}.m_8d3f4000[data-loading] .m_8d3afb97{opacity:0;transform:translateY(100%)}.m_8d3f4000:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){cursor:not-allowed;color:var(--mantine-color-disabled-color);background-color:var(--mantine-color-disabled);border:1px solid #0000}.m_8d3f4000:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])):active{transform:none}.m_302b9fb1{border-radius:var(--ai-radius,var(--mantine-radius-default));justify-content:center;align-items:center;display:flex;position:absolute;inset:-1px}:where([data-mantine-color-scheme=light]) .m_302b9fb1{background-color:#ffffff26}:where([data-mantine-color-scheme=dark]) .m_302b9fb1{background-color:#00000026}.m_1a0f1b21{--ai-border-width:1px;display:flex}.m_1a0f1b21 :where(*):focus{z-index:1;position:relative}.m_1a0f1b21[data-orientation=horizontal]{flex-direction:row}.m_1a0f1b21[data-orientation=horizontal] .m_8d3f4000:not(:only-child):first-child,.m_1a0f1b21[data-orientation=horizontal] .m_437b6484:not(:only-child):first-child{border-inline-end-width:calc(var(--ai-border-width)/2);border-start-end-radius:0;border-end-end-radius:0}.m_1a0f1b21[data-orientation=horizontal] .m_8d3f4000:not(:only-child):last-child,.m_1a0f1b21[data-orientation=horizontal] .m_437b6484:not(:only-child):last-child{border-inline-start-width:calc(var(--ai-border-width)/2);border-start-start-radius:0;border-end-start-radius:0}.m_1a0f1b21[data-orientation=horizontal] .m_8d3f4000:not(:only-child):not(:first-child):not(:last-child),.m_1a0f1b21[data-orientation=horizontal] .m_437b6484:not(:only-child):not(:first-child):not(:last-child){border-inline-width:calc(var(--ai-border-width)/2);border-radius:0}.m_1a0f1b21[data-orientation=vertical]{flex-direction:column}.m_1a0f1b21[data-orientation=vertical] .m_8d3f4000:not(:only-child):first-child,.m_1a0f1b21[data-orientation=vertical] .m_437b6484:not(:only-child):first-child{border-bottom-width:calc(var(--ai-border-width)/2);border-end-end-radius:0;border-end-start-radius:0}.m_1a0f1b21[data-orientation=vertical] .m_8d3f4000:not(:only-child):last-child,.m_1a0f1b21[data-orientation=vertical] .m_437b6484:not(:only-child):last-child{border-top-width:calc(var(--ai-border-width)/2);border-start-start-radius:0;border-start-end-radius:0}.m_1a0f1b21[data-orientation=vertical] .m_8d3f4000:not(:only-child):not(:first-child):not(:last-child),.m_1a0f1b21[data-orientation=vertical] .m_437b6484:not(:only-child):not(:first-child):not(:last-child){border-bottom-width:calc(var(--ai-border-width)/2);border-top-width:calc(var(--ai-border-width)/2);border-radius:0}.m_8d3afb97{justify-content:center;align-items:center;width:100%;height:100%;transition:transform .15s,opacity .1s;display:flex}.m_437b6484{--section-height-xs:18px;--section-height-sm:22px;--section-height-md:28px;--section-height-lg:34px;--section-height-xl:44px;--section-height-input-xs:30px;--section-height-input-sm:36px;--section-height-input-md:42px;--section-height-input-lg:50px;--section-height-input-xl:60px;--section-padding-x-xs:6px;--section-padding-x-sm:8px;--section-padding-x-md:10px;--section-padding-x-lg:12px;--section-padding-x-xl:16px;--section-height:var(--section-height-sm);--section-padding-x:var(--section-padding-x-sm);--section-color:var(--mantine-color-white);border-radius:var(--section-radius,var(--mantine-radius-default));width:auto;font-weight:600;font-size:var(--section-fz,var(--mantine-font-size-sm));background:var(--section-bg,var(--mantine-primary-color-filled));border:var(--section-bd,calc(.0625rem*var(--mantine-scale))solid transparent);color:var(--section-color,var(--mantine-color-white));height:var(--section-height,var(--section-height-sm));padding-inline:var(--section-padding-x,var(--section-padding-x-sm));vertical-align:middle;justify-content:center;align-items:center;line-height:1;display:inline-flex}\"});var Ov,Nv=d(()=>{Ov=\".m_9df02822{--modal-size-xs:320px;--modal-size-sm:380px;--modal-size-md:440px;--modal-size-lg:620px;--modal-size-xl:780px;--modal-size:var(--modal-size-md);--modal-y-offset:5dvh;--modal-x-offset:5vw}.m_9df02822[data-full-screen]{--modal-border-radius:0!important}.m_9df02822[data-full-screen] .m_54c44539{--modal-content-flex:0 0 100%;--modal-content-max-height:auto;--modal-content-height:100dvh}.m_9df02822[data-full-screen] .m_1f958f16{--modal-inner-y-offset:0;--modal-inner-x-offset:0}.m_9df02822[data-centered] .m_1f958f16{--modal-inner-align:center}.m_d0e2b9cd{border-start-start-radius:var(--modal-radius,var(--mantine-radius-default));border-start-end-radius:var(--modal-radius,var(--mantine-radius-default))}.m_54c44539{flex:var(--modal-content-flex,0 0 var(--modal-size));max-width:100%;max-height:var(--modal-content-max-height,calc(100dvh - var(--modal-y-offset)*2));height:var(--modal-content-height,auto);overflow-y:auto}.m_54c44539[data-full-screen]{border-radius:0}.m_54c44539[data-hidden]{pointer-events:none;opacity:0!important}.m_1f958f16{justify-content:center;align-items:var(--modal-inner-align,flex-start);padding-top:var(--modal-inner-y-offset,var(--modal-y-offset));padding-bottom:var(--modal-inner-y-offset,var(--modal-y-offset));padding-inline:var(--modal-inner-x-offset,var(--modal-x-offset));display:flex}\"});var Hv,zv=d(()=>{Hv=\".m_5f75b09e{--label-lh-xs:16px;--label-lh-sm:20px;--label-lh-md:24px;--label-lh-lg:30px;--label-lh-xl:36px;--label-lh:var(--label-lh-sm)}.m_5f75b09e[data-label-position=left]{--label-order:1;--label-offset-end:var(--mantine-spacing-sm);--label-offset-start:0}.m_5f75b09e[data-label-position=right]{--label-order:2;--label-offset-end:0;--label-offset-start:var(--mantine-spacing-sm)}.m_5f6e695e{display:flex}.m_d3ea56bb{--label-cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent;font-size:var(--label-fz,var(--mantine-font-size-sm));line-height:var(--label-lh);cursor:var(--label-cursor);flex-direction:column;order:var(--label-order);display:inline-flex}fieldset:disabled .m_d3ea56bb,.m_d3ea56bb[data-disabled]{--label-cursor:not-allowed}.m_8ee546b8{cursor:var(--label-cursor);color:inherit;padding-inline-start:var(--label-offset-start);padding-inline-end:var(--label-offset-end)}fieldset:disabled .m_8ee546b8,.m_8ee546b8:where([data-disabled]){color:var(--mantine-color-disabled-color)}.m_328f68c0,.m_8e8a99cc{margin-top:calc(var(--mantine-spacing-xs)/2);padding-inline-start:var(--label-offset-start);padding-inline-end:var(--label-offset-end)}\"});var Wv,Uv=d(()=>{Wv='.m_77c9d27d{--button-height-xs:30px;--button-height-sm:36px;--button-height-md:42px;--button-height-lg:50px;--button-height-xl:60px;--button-height-compact-xs:22px;--button-height-compact-sm:26px;--button-height-compact-md:30px;--button-height-compact-lg:34px;--button-height-compact-xl:40px;--button-padding-x-xs:14px;--button-padding-x-sm:18px;--button-padding-x-md:22px;--button-padding-x-lg:26px;--button-padding-x-xl:32px;--button-padding-x-compact-xs:7px;--button-padding-x-compact-sm:8px;--button-padding-x-compact-md:10px;--button-padding-x-compact-lg:12px;--button-padding-x-compact-xl:14px;--button-height:var(--button-height-sm);--button-padding-x:var(--button-padding-x-sm);--button-color:var(--mantine-color-white);user-select:none;text-align:center;cursor:pointer;border-radius:var(--button-radius,var(--mantine-radius-default));width:auto;font-weight:600;line-height:1;font-size:var(--button-fz,var(--mantine-font-size-sm));background:var(--button-bg,var(--mantine-primary-color-filled));border:var(--button-bd,calc(.0625rem*var(--mantine-scale))solid transparent);color:var(--button-color,var(--mantine-color-white));height:var(--button-height,var(--button-height-sm));padding-inline:var(--button-padding-x,var(--button-padding-x-sm));vertical-align:middle;display:inline-block;position:relative;overflow:hidden}.m_77c9d27d:where([data-block]){width:100%;display:block}.m_77c9d27d:where([data-with-left-section]){padding-inline-start:calc(var(--button-padding-x)/1.5)}.m_77c9d27d:where([data-with-right-section]){padding-inline-end:calc(var(--button-padding-x)/1.5)}.m_77c9d27d:where(:disabled:not([data-loading]),[data-disabled]:not([data-loading])){cursor:not-allowed;color:var(--mantine-color-disabled-color);background:var(--mantine-color-disabled);border:1px solid #0000;transform:none}.m_77c9d27d:before{content:\"\";pointer-events:none;border-radius:var(--button-radius,var(--mantine-radius-default));opacity:0;filter:blur(12px);transition:transform .15s,opacity .1s;position:absolute;inset:-1px;transform:translateY(-100%)}:where([data-mantine-color-scheme=light]) .m_77c9d27d:before{background-color:#ffffff26}:where([data-mantine-color-scheme=dark]) .m_77c9d27d:before{background-color:#00000026}.m_77c9d27d:where([data-loading]){cursor:not-allowed;transform:none}.m_77c9d27d:where([data-loading]):before{opacity:1;transform:translateY(0)}.m_77c9d27d:where([data-loading]) .m_80f1301b{opacity:0;transform:translateY(100%)}@media (hover:hover){.m_77c9d27d:hover:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--button-hover,var(--mantine-primary-color-filled-hover));color:var(--button-hover-color,var(--button-color))}}@media (hover:none){.m_77c9d27d:active:where(:not([data-loading],:disabled,[data-disabled])){background-color:var(--button-hover,var(--mantine-primary-color-filled-hover));color:var(--button-hover-color,var(--button-color))}}.m_80f1301b{align-items:center;justify-content:var(--button-justify,center);height:100%;transition:transform .15s,opacity .1s;display:flex;overflow:visible}.m_811560b9{white-space:nowrap;opacity:1;align-items:center;height:100%;display:flex;overflow:hidden}.m_811560b9:where([data-loading]){opacity:.2}.m_a74036a{align-items:center;display:flex}.m_a74036a:where([data-position=left]){margin-inline-end:var(--mantine-spacing-xs)}.m_a74036a:where([data-position=right]){margin-inline-start:var(--mantine-spacing-xs)}.m_a25b86ee{position:absolute;top:50%;left:50%}.m_80d6d844{--button-border-width:1px;display:flex}.m_80d6d844 :where(.m_77c9d27d):focus{z-index:1;position:relative}.m_80d6d844[data-orientation=horizontal]{flex-direction:row}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):first-child,.m_80d6d844[data-orientation=horizontal] .m_70be2a01:not(:only-child):first-child{border-inline-end-width:calc(var(--button-border-width)/2);border-start-end-radius:0;border-end-end-radius:0}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):last-child,.m_80d6d844[data-orientation=horizontal] .m_70be2a01:not(:only-child):last-child{border-inline-start-width:calc(var(--button-border-width)/2);border-start-start-radius:0;border-end-start-radius:0}.m_80d6d844[data-orientation=horizontal] .m_77c9d27d:not(:only-child):not(:first-child):not(:last-child),.m_80d6d844[data-orientation=horizontal] .m_70be2a01:not(:only-child):not(:first-child):not(:last-child){border-inline-width:calc(var(--button-border-width)/2);border-radius:0}.m_80d6d844[data-orientation=vertical]{flex-direction:column}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):first-child,.m_80d6d844[data-orientation=vertical] .m_70be2a01:not(:only-child):first-child{border-bottom-width:calc(var(--button-border-width)/2);border-end-end-radius:0;border-end-start-radius:0}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):last-child,.m_80d6d844[data-orientation=vertical] .m_70be2a01:not(:only-child):last-child{border-top-width:calc(var(--button-border-width)/2);border-start-start-radius:0;border-start-end-radius:0}.m_80d6d844[data-orientation=vertical] .m_77c9d27d:not(:only-child):not(:first-child):not(:last-child),.m_80d6d844[data-orientation=vertical] .m_70be2a01:not(:only-child):not(:first-child):not(:last-child){border-bottom-width:calc(var(--button-border-width)/2);border-top-width:calc(var(--button-border-width)/2);border-radius:0}.m_70be2a01{--section-height-xs:30px;--section-height-sm:36px;--section-height-md:42px;--section-height-lg:50px;--section-height-xl:60px;--section-height-compact-xs:22px;--section-height-compact-sm:26px;--section-height-compact-md:30px;--section-height-compact-lg:34px;--section-height-compact-xl:40px;--section-padding-x-xs:14px;--section-padding-x-sm:18px;--section-padding-x-md:22px;--section-padding-x-lg:26px;--section-padding-x-xl:32px;--section-padding-x-compact-xs:7px;--section-padding-x-compact-sm:8px;--section-padding-x-compact-md:10px;--section-padding-x-compact-lg:12px;--section-padding-x-compact-xl:14px;--section-height:var(--section-height-sm);--section-padding-x:var(--section-padding-x-sm);--section-color:var(--mantine-color-white);border-radius:var(--section-radius,var(--mantine-radius-default));width:auto;font-weight:600;font-size:var(--section-fz,var(--mantine-font-size-sm));background:var(--section-bg,var(--mantine-primary-color-filled));border:var(--section-bd,calc(.0625rem*var(--mantine-scale))solid transparent);color:var(--section-color,var(--mantine-color-white));height:var(--section-height,var(--section-height-sm));padding-inline:var(--section-padding-x,var(--section-padding-x-sm));vertical-align:middle;justify-content:center;align-items:center;line-height:1;display:inline-flex}'});var Vv,Gv=d(()=>{Vv=\".m_1b7284a3{--paper-radius:var(--mantine-radius-default);-webkit-tap-highlight-color:transparent;touch-action:manipulation;border-radius:var(--paper-radius);box-shadow:var(--paper-shadow);background-color:var(--mantine-color-body);outline:0;text-decoration:none;display:block}[data-mantine-color-scheme=light] .m_1b7284a3{--paper-border-color:var(--mantine-color-gray-3)}[data-mantine-color-scheme=dark] .m_1b7284a3{--paper-border-color:var(--mantine-color-dark-4)}.m_1b7284a3:where([data-with-border]){border:calc(.0625rem*var(--mantine-scale))solid var(--paper-border-color)}\"});var $v,qv=d(()=>{$v=\".m_6d731127{align-items:var(--stack-align,stretch);justify-content:var(--stack-justify,flex-start);gap:var(--stack-gap,var(--mantine-spacing-md));flex-direction:column;display:flex}\"});var jv,Xv=d(()=>{jv=\".m_f3f1af94{--radio-size-xs:16px;--radio-size-sm:20px;--radio-size-md:24px;--radio-size-lg:30px;--radio-size-xl:36px;--radio-size:var(--radio-size-sm);--radio-icon-size-xs:6px;--radio-icon-size-sm:8px;--radio-icon-size-md:10px;--radio-icon-size-lg:14px;--radio-icon-size-xl:16px;--radio-icon-size:var(--radio-icon-size-sm);--radio-icon-color:var(--mantine-color-white)}.m_89c4f5e4{width:var(--radio-size);height:var(--radio-size);order:1;position:relative}.m_89c4f5e4:where([data-label-position=left]){order:2}.m_f3ed6b2b{color:var(--radio-icon-color);opacity:var(--radio-icon-opacity,0);transform:var(--radio-icon-transform,scale(.2)translateY(calc(.625rem*var(--mantine-scale))));pointer-events:none;width:var(--radio-icon-size);height:var(--radio-icon-size);top:calc(50% - var(--radio-icon-size)/2);left:calc(50% - var(--radio-icon-size)/2);transition:opacity .1s,transform .2s;position:absolute}.m_8a3dbb89{appearance:none;width:var(--radio-size);height:var(--radio-size);border-radius:var(--radio-radius,var(--radio-size));cursor:var(--mantine-cursor-type);-webkit-tap-highlight-color:transparent;border:1px solid;justify-content:center;align-items:center;margin:0;transition-property:background-color,border-color;transition-duration:.1s;transition-timing-function:ease;display:flex;position:relative}:where([data-mantine-color-scheme=light]) .m_8a3dbb89{background-color:var(--mantine-color-white);border-color:var(--mantine-color-gray-4)}:where([data-mantine-color-scheme=dark]) .m_8a3dbb89{background-color:var(--mantine-color-dark-6);border-color:var(--mantine-color-dark-4)}.m_8a3dbb89:checked{background-color:var(--radio-color,var(--mantine-primary-color-filled));border-color:var(--radio-color,var(--mantine-primary-color-filled))}.m_8a3dbb89:checked+.m_f3ed6b2b{--radio-icon-opacity:1;--radio-icon-transform:scale(1)}.m_8a3dbb89:disabled{cursor:not-allowed;background-color:var(--mantine-color-disabled);border-color:var(--mantine-color-disabled-border)}.m_8a3dbb89:disabled+.m_f3ed6b2b{--radio-icon-color:var(--mantine-color-disabled-color)}.m_8a3dbb89:where([data-error]){border-color:var(--mantine-color-error)}.m_1bfe9d39+.m_f3ed6b2b{--radio-icon-color:var(--radio-color)}.m_1bfe9d39:checked:not(:disabled){border-color:var(--radio-color);background-color:#0000}.m_1bfe9d39:checked:not(:disabled)+.m_f3ed6b2b{--radio-icon-color:var(--radio-color);--radio-icon-opacity:1;--radio-icon-transform:none}\"});var Kv,Yv=d(()=>{Kv='.m_5f93f3bb{--switch-height-xs:16px;--switch-height-sm:20px;--switch-height-md:24px;--switch-height-lg:30px;--switch-height-xl:36px;--switch-width-xs:32px;--switch-width-sm:38px;--switch-width-md:46px;--switch-width-lg:56px;--switch-width-xl:72px;--switch-thumb-size-xs:12px;--switch-thumb-size-sm:14px;--switch-thumb-size-md:18px;--switch-thumb-size-lg:22px;--switch-thumb-size-xl:28px;--switch-label-font-size-xs:5px;--switch-label-font-size-sm:6px;--switch-label-font-size-md:7px;--switch-label-font-size-lg:9px;--switch-label-font-size-xl:11px;--switch-track-label-padding-xs:2px;--switch-track-label-padding-sm:2.5px;--switch-track-label-padding-md:3px;--switch-track-label-padding-lg:3px;--switch-track-label-padding-xl:3.5px;--switch-height:var(--switch-height-sm);--switch-width:var(--switch-width-sm);--switch-thumb-size:var(--switch-thumb-size-sm);--switch-label-font-size:var(--switch-label-font-size-sm);--switch-track-label-padding:var(--switch-track-label-padding-sm);--switch-radius:1000px;--switch-color:var(--mantine-primary-color-filled);--switch-disabled-color:var(--mantine-color-disabled);position:relative}.m_926b4011{opacity:0;white-space:nowrap;width:0;height:0;margin:0;padding:0;position:absolute;overflow:hidden}.m_9307d992{-webkit-tap-highlight-color:transparent;cursor:var(--switch-cursor,var(--mantine-cursor-type));border-radius:var(--switch-radius);background-color:var(--switch-bg);height:var(--switch-height);min-width:var(--switch-width);appearance:none;font-size:var(--switch-label-font-size);order:var(--switch-order,1);user-select:none;z-index:0;color:var(--switch-text-color);align-items:center;margin:0;font-weight:600;line-height:0;transition:background-color .15s,border-color .15s;display:flex;position:relative;overflow:hidden}.m_9307d992:where([data-without-labels]){width:var(--switch-width)}.m_926b4011:focus-visible+.m_9307d992{outline:2px solid var(--mantine-primary-color-filled);outline-offset:2px}.m_926b4011:checked+.m_9307d992{--switch-bg:var(--switch-color);--switch-text-color:var(--mantine-color-white)}.m_926b4011:disabled+.m_9307d992,.m_926b4011[data-disabled]+.m_9307d992{--switch-bg:var(--switch-disabled-color);--switch-cursor:not-allowed}[data-mantine-color-scheme=light] .m_9307d992{--switch-bg:var(--mantine-color-gray-3);--switch-text-color:var(--mantine-color-gray-6)}[data-mantine-color-scheme=dark] .m_9307d992{--switch-bg:var(--mantine-color-dark-5);--switch-text-color:var(--mantine-color-dark-1)}.m_9307d992[data-label-position=left]{--switch-order:2}.m_93039a1d{z-index:1;border-radius:var(--switch-radius);background-color:var(--switch-thumb-bg,var(--mantine-color-white));height:var(--switch-thumb-size);width:var(--switch-thumb-size);transition:inset-inline-start .15s;display:flex;position:absolute;inset-inline-start:var(--switch-thumb-start,var(--switch-track-label-padding))}.m_93039a1d:where([data-with-thumb-indicator]):before{content:\"\";background-color:var(--switch-bg);border-radius:var(--switch-radius);width:40%;height:40%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.m_93039a1d>*{margin:auto}.m_926b4011:checked+*>.m_93039a1d{--switch-thumb-start:calc(100% - var(--switch-thumb-size) - var(--switch-track-label-padding))}.m_926b4011:disabled+*>.m_93039a1d,.m_926b4011[data-disabled]+*>.m_93039a1d{--switch-thumb-bg:var(--switch-thumb-bg-disabled)}[data-mantine-color-scheme=light] .m_93039a1d{--switch-thumb-bg-disabled:var(--mantine-color-gray-0)}[data-mantine-color-scheme=dark] .m_93039a1d{--switch-thumb-bg-disabled:var(--mantine-color-dark-3)}.m_8277e082{height:100%;min-width:calc(var(--switch-width) - var(--switch-thumb-size));padding-inline:var(--switch-track-label-padding);place-content:center;margin-inline-start:calc(var(--switch-thumb-size) + var(--switch-track-label-padding));transition:margin .15s;display:grid}.m_926b4011:checked+*>.m_8277e082{margin-inline-start:0;margin-inline-end:calc(var(--switch-thumb-size) + var(--switch-track-label-padding))}'});var Zv,Qv=d(()=>{Zv=\".m_849cf0da{color:var(--mantine-color-anchor);appearance:none;cursor:pointer;background-color:#0000;border:none;margin:0;padding:0;text-decoration:none;display:inline}@media (hover:hover){.m_849cf0da:where([data-underline=hover]):hover{text-decoration:underline}}@media (hover:none){.m_849cf0da:where([data-underline=hover]):active{text-decoration:underline}}.m_849cf0da:where([data-underline=not-hover]){text-decoration:underline}@media (hover:hover){.m_849cf0da:where([data-underline=not-hover]):hover{text-decoration:none}}@media (hover:none){.m_849cf0da:where([data-underline=not-hover]):active{text-decoration:none}}.m_849cf0da:where([data-underline=always]){text-decoration:underline}.m_849cf0da:where([data-variant=gradient]),.m_849cf0da:where([data-variant=gradient]):hover{text-decoration:none}.m_849cf0da:where([data-line-clamp]){display:-webkit-box}\"});var Jv,ey=d(()=>{\"use strict\";Jv=\":host{font-family:Inter,sans-serif}.settingsButton{z-index:9999;transition-property:scale;transition-duration:.2s;transition-timing-function:cubic-bezier(.4,0,.2,1);position:fixed;top:50%;right:0}.settingsButton:active{scale:.95}.modalSettings{flex-direction:column;gap:20px;height:380px;display:flex;overflow-y:scroll}.modalSettings::-webkit-scrollbar{background:unset;border:unset;width:8px}.modalSettings::-webkit-scrollbar-thumb{background-color:var(--mantine-color-gray-light);border-radius:8px}.modalSettings::-webkit-scrollbar-button{display:none}.modalSection{align-items:center;gap:20px;display:flex}.closeButton{margin-left:auto}.searchInput{height:20px}.logo{padding:0}.footerText{color:inherit;margin:0 0 0 auto;text-decoration:none}.footerText:hover{text-decoration:underline}.emptySettings{margin:0}.resetButton{text-align:left;margin:0}\"});var oy,ty=d(()=>{\"use strict\";Fv();Bv();Pv();Mv();Dv();Lv();Nv();zv();Uv();Gv();qv();Xv();Yv();Qv();ey();oy=[_v,Rv,Av,Ev,Tv,kv,Ov,Hv,Wv,Vv,$v,jv,Kv,Zv,Jv]});var mc={};Z(mc,{default:()=>M_});var ry,rl,uc,dc,M_,ay=d(()=>{\"use strict\";Rt();je();Uu();wv();ty();ry=Wu(),rl=null,uc=class extends HTMLElement{constructor(){super()}};customElements.define(ry,uc);dc=class extends te{constructor(){super(\"Settings Menu\")}load(){if(rl!=null)return;rl=document.createElement(ry);let o=rl.attachShadow({mode:\"closed\"});for(let t of oy){let r=new CSSStyleSheet;r.replaceSync(t),o.adoptedStyleSheets.push(r)}document.documentElement.appendChild(rl),ka(Da(Cv,{}),o)}},M_=new dc});var Ic={};Z(Ic,{default:()=>T_});var al,ny,pc,xc,T_,ly=d(()=>{\"use strict\";Oe();je();ro();al=null,ny=()=>{},pc=Be(),xc=class extends te{constructor(){super(\"Story Read Receipts\"),pc.subscribe(o=>o.friendStories,this.load),N.on(\"PREVENT_STORY_READ_RECEIPTS.setting:update\",()=>this.load())}load(o){if(o=o!=null?o:pc.getState().friendStories,o==null)return;let t=N.getSetting(\"PREVENT_STORY_READ_RECEIPTS\"),r={};t&&o.updatePlaybackData!==ny&&(al=o.updatePlaybackData,r.updatePlaybackData=ny),!t&&al!=null&&(r.updatePlaybackData=al,al=null),Object.keys(r).length!==0&&pc.setState({friendStories:u(u({},o),r)})}},T_=new xc});var hc={};Z(hc,{default:()=>k_,filenames:()=>L_});var D_,k_,L_,gc=d(()=>{eu();tu();nu();fu();su();iu();mu();pu();gu();vu();yu();ay();ly();D_=[wl,Rl,Al,Ml,kl,Ol,Hl,Ul,$l,Kl,Zl,mc,Ic],k_=D_,L_=[\"./modules/auto-save-messages/index.ts\",\"./modules/bitmoji-hide/index.ts\",\"./modules/bitmoji-mobile/index.ts\",\"./modules/bitmoji-typing-notification/index.ts\",\"./modules/condition-onset-flags/index.ts\",\"./modules/media-restrictions/index.ts\",\"./modules/media-saving/index.ts\",\"./modules/message-content/index.ts\",\"./modules/presence-detection/index.ts\",\"./modules/presence-logging/index.ts\",\"./modules/provenance-constants/index.ts\",\"./modules/settings-menu/index.ts\",\"./modules/story-read-receipts/index.ts\"]});var fy={};var sy=d(()=>{\"use strict\";Oe();(()=>{let e=\"cross_tab\",o=window.BroadcastChannel;window.BroadcastChannel=class extends window.BroadcastChannel{constructor(r){super(r),r===e&&(window.BroadcastChannel=o)}addEventListener(r,a){return this.name!==e?super.addEventListener(r,a):super.addEventListener(r,n=>{N.getSetting(\"ALLOW_CROSS_TAB\")&&n.data.type===\"CLAIM_ACTIVE\"||a(n)})}}})()});var iy=Ct(()=>{\"use strict\";(()=>{if(!navigator.userAgent.toLowerCase().includes(\"firefox\"))return;let e=[\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.6312.86 Safari/537.36\",\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.94 Safari/537.36\",\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.6167.184 Safari/537.36\",\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.6099.110 Safari/537.36\",\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.6045.159 Safari/537.36\",\"Mozilla/5.0 (Macintosh; Intel Mac OS X 13_6_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.6312.122 Safari/537.36\",\"Mozilla/5.0 (Macintosh; Intel Mac OS X 12_7_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.128 Safari/537.36\",\"Mozilla/5.0 (Macintosh; Intel Mac OS X 11_7_10) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.6167.139 Safari/537.36\",\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.6099.130 Safari/537.36\",\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.6045.105 Safari/537.36\",\"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.6312.105 Safari/537.36\",\"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.57 Safari/537.36\",\"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.6167.85 Safari/537.36\",\"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.6099.71 Safari/537.36\",\"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.6045.199 Safari/537.36\"],o=e[Math.floor(Math.random()*e.length)];if(Object.defineProperty(Navigator.prototype,\"userAgent\",{get:()=>o}),\"permissions\"in navigator&&typeof navigator.permissions.query==\"function\"){let r=function(){return new Promise(a=>{var n,l;((l=(n=navigator.getUserMedia)!=null?n:navigator.webkitGetUserMedia)!=null?l:navigator.mozGetUserMedia).getUserMedia({audio:!0,video:!0},()=>a({state:\"granted\"}),()=>a({state:\"denied\"}))})};var t=r;navigator.permissions.query=new Proxy(navigator.permissions.query,{apply:async(a,n,l)=>{let[f]=l;return f.name===\"camera\"||f.name===\"microphone\"?r():a.apply(n,l)}})}})()});var cy={};Z(cy,{default:()=>H_,filenames:()=>z_});var O_,N_,H_,z_,uy=d(()=>{sy();O_=v(iy()),N_=[fy,O_],H_=N_,z_=[\"./patches/cross-tab.ts\",\"./patches/firefox.ts\"]});xa();(async()=>{let{hostname:e,pathname:o}=new URL(location.href);[\"web.snapchat.com\",\"www.snapchat.com\"].includes(e)&&(e===\"www.snapchat.com\"&&!o.startsWith(\"/web\")||(Qo(\"BetterChat v1.5.0\"),document.readyState===\"complete\"?(wc(\"BetterChat did not inject immediately, page was already loaded.\"),Promise.resolve().then(()=>(gc(),hc))):(Promise.resolve().then(()=>uy()),document.addEventListener(\"DOMContentLoaded\",()=>Promise.resolve().then(()=>(gc(),hc)),{once:!0}))))})();})();\n/*! Bundled license information:\n\n@tabler/icons-react/dist/esm/defaultAttributes.mjs:\n@tabler/icons-react/dist/esm/createReactComponent.mjs:\n@tabler/icons-react/dist/esm/icons/IconSearch.mjs:\n@tabler/icons-react/dist/esm/icons/IconX.mjs:\n@tabler/icons-react/dist/esm/icons/IconSettingsFilled.mjs:\n@tabler/icons-react/dist/esm/tabler-icons-react.mjs:\n  (**\n   * @license @tabler/icons-react v3.33.0 - MIT\n   *\n   * This source code is licensed under the MIT license.\n   * See the LICENSE file in the root directory of this source tree.\n   *)\n*/\n"
});

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址