// ==UserScript==
// @name BetterSnap - Make Snapchat Web Better
// @version 1.4.2
// @description Screenshot Freely, Save Media, Bypass Presence Detection and more! Previously known as Better Snapchat.
// @author [email protected]
// @match https://*.snapchat.com/*
// @icon https://better-snapchat.pages.dev/logo128.png
// @run-at document-start
// @grant GM_addElement
// @connect better-snapchat.vasp.dev
// @license MIT
// @namespace https://better-snapchat.vasp.dev
// ==/UserScript==
GM_addElement('script', {
type: 'text/javascript',
textContent: "\"use strict\";(()=>{var vy=Object.create;var fr=Object.defineProperty,yy=Object.defineProperties,Sy=Object.getOwnPropertyDescriptor,Cy=Object.getOwnPropertyDescriptors,wy=Object.getOwnPropertyNames,pa=Object.getOwnPropertySymbols,_y=Object.getPrototypeOf,sl=Object.prototype.hasOwnProperty,Bc=Object.prototype.propertyIsEnumerable;var Rc=(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={}))sl.call(o,t)&&Rc(e,t,o[t]);if(pa)for(var t of pa(o))Bc.call(o,t)&&Rc(e,t,o[t]);return e},g=(e,o)=>yy(e,Cy(o));var C=(e,o)=>{var t={};for(var r in e)sl.call(e,r)&&o.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&pa)for(var r of pa(e))o.indexOf(r)<0&&Bc.call(e,r)&&(t[r]=e[r]);return t};var d=(e,o)=>()=>(e&&(o=e(e=0)),o);var sr=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports),X=(e,o)=>{for(var t in o)fr(e,t,{get:o[t],enumerable:!0})},Pc=(e,o,t,r)=>{if(o&&typeof o==\"object\"||typeof o==\"function\")for(let a of wy(o))!sl.call(e,a)&&a!==t&&fr(e,a,{get:()=>o[a],enumerable:!(r=Sy(o,a))||r.enumerable});return e};var v=(e,o,t)=>(t=e!=null?vy(_y(e)):{},Pc(o||!e||!e.__esModule?fr(t,\"default\",{value:e,enumerable:!0}):t,e)),Ac=e=>Pc(fr({},\"__esModule\",{value:!0}),e);function cl(){var o;if(xa!=null)return xa;let e=document.createElement(\"iframe\");return e.style.display=\"none\",((o=document.head)!=null?o:document.documentElement).appendChild(e),xa=e.contentWindow,xa}function wo(...e){let{console:o}=cl();o.log(`%c${il}`,\"color: #3b5bdb\",...e)}function Ec(...e){let{console:o}=cl();o.warn(il,...e)}function Ia(...e){let{console:o}=cl();o.error(il,...e)}var il,xa,ir=d(()=>{\"use strict\";il=\"[Better-Snap]\",xa=null});var Tc=sr((W_,Mc)=>{\"use strict\";Mc.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 Nc=sr((V_,Oc)=>{var kc=\"Expected a function\",Dc=NaN,Fy=\"[object Symbol]\",Ry=/^\\s+|\\s+$/g,By=/^[-+]0x[0-9a-f]+$/i,Py=/^0b[01]+$/i,Ay=/^0o[0-7]+$/i,Ey=parseInt,My=typeof global==\"object\"&&global&&global.Object===Object&&global,Ty=typeof self==\"object\"&&self&&self.Object===Object&&self,Dy=My||Ty||Function(\"return this\")(),Ly=Object.prototype,ky=Ly.toString,Oy=Math.max,Ny=Math.min,ul=function(){return Dy.Date.now()};function Hy(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(kc);o=Lc(o)||0,ha(t)&&(m=!!t.leading,c=\"maxWait\"in t,n=c?Oy(Lc(t.maxWait)||0,o):n,x=\"trailing\"in t?!!t.trailing:x);function I(O){var P=r,E=a;return r=a=void 0,i=O,l=e.apply(E,P),l}function h(O){return i=O,f=setTimeout(w,o),m?I(O):l}function b(O){var P=O-s,E=O-i,T=o-P;return c?Ny(T,n-E):T}function S(O){var P=O-s,E=O-i;return s===void 0||P>=o||P<0||c&&E>=n}function w(){var O=ul();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 A(){return f===void 0?l:F(ul())}function D(){var O=ul(),P=S(O);if(r=arguments,a=this,s=O,P){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=A,D}function zy(e,o,t){var r=!0,a=!0;if(typeof e!=\"function\")throw new TypeError(kc);return ha(t)&&(r=\"leading\"in t?!!t.leading:r,a=\"trailing\"in t?!!t.trailing:a),Hy(e,o,{leading:r,maxWait:o,trailing:a})}function ha(e){var o=typeof e;return!!e&&(o==\"object\"||o==\"function\")}function Uy(e){return!!e&&typeof e==\"object\"}function Wy(e){return typeof e==\"symbol\"||Uy(e)&&ky.call(e)==Fy}function Lc(e){if(typeof e==\"number\")return e;if(Wy(e))return Dc;if(ha(e)){var o=typeof e.valueOf==\"function\"?e.valueOf():e;e=ha(o)?o+\"\":o}if(typeof e!=\"string\")return e===0?e:+e;e=e.replace(Ry,\"\");var t=Py.test(e);return t||Ay.test(e)?Ey(e.slice(2),t?2:8):By.test(e)?Dc:+e}Oc.exports=zy});var zc=sr(($_,dl)=>{\"use strict\";var Vy=Object.prototype.hasOwnProperty,ze=\"~\";function cr(){}Object.create&&(cr.prototype=Object.create(null),new cr().__proto__||(ze=!1));function $y(e,o,t){this.fn=e,this.context=o,this.once=t||!1}function Hc(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 ga(e,o){--e._eventsCount===0?e._events=new cr:delete e._events[o]}function Le(){this._events=new cr,this._eventsCount=0}Le.prototype.eventNames=function(){var o=[],t,r;if(this._eventsCount===0)return o;for(r in t=this._events)Vy.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 Hc(this,o,t,r,!1)};Le.prototype.once=function(o,t,r){return Hc(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 ga(this,n),this;var l=this._events[n];if(l.fn)l.fn===t&&(!a||l.once)&&(!r||l.context===r)&&ga(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:ga(this,n)}return this};Le.prototype.removeAllListeners=function(o){var t;return o?(t=ze?ze+o:o,this._events[t]&&ga(this,t)):(this._events=new cr,this._eventsCount=0),this};Le.prototype.off=Le.prototype.removeListener;Le.prototype.addListener=Le.prototype.on;Le.prefixed=ze;Le.EventEmitter=Le;typeof dl<\"u\"&&(dl.exports=Le)});var Uc,Wc,Vc=d(()=>{Uc=v(zc(),1),Wc=Uc.default});var be,ur,ml,ba,_o=d(()=>{\"use strict\";be={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\"},ur={[be.ALLOW_SCREENSHOT]:!0,[be.SAVE_IMAGE]:!0,[be.ALWAYS_PRESENT]:!0,[be.SEND_UNSAVEABLE_MESSAGES]:!1,[be.SNAP_AS_MOBILE]:!1,[be.PRIVATE_STORIES]:!1,[be.UPLOAD_SNAPS]:!1,[be.PREVENT_TYPING_NOTIFICATION]:!1,[be.PREVENT_TYPING]:!1,[be.HIDE_BITMOJI]:!1,[be.MOBILE_BITMOJI]:!1,[be.AUTO_SAVE_CHATS]:!1,[be.SHOW_STREAKS]:!0,[be.PREVENT_CHAT_READ_RECEIPTS]:!1,[be.UNLIMITED_FILE_SIZE]:!1,[be.ALLOW_CROSS_TAB]:!0,[be.PREVENT_STORY_READ_RECEIPTS]:!1,[be.HALF_SWIPE_NOTIFICATION]:!1,[be.OPEN_CHAT_NOTIFICATION]:!1,[be.BITMOJI_PRESENCE]:\"DEFAULT\",[be.CHAT_HANDLING]:\"DEFAULT\",[be.PRESENCE_LOGGING]:!1},ml={DISCORD:\"https://discord.gg/hpmjAJZR3H\",GITHUB:\"https://github.com/dclstn/better-snapchat\",GITHUB_DCLSTN:\"https://github.com/dclstn\",BUY_ME_A_COFFEE:\"https://www.buymeacoffee.com/dclstn\"},ba={TYPING:e=>`Typing in ${e}`,IDLE:e=>`Idle in ${e}`,PEEKING:e=>`Peeked at ${e}`}});var $c=sr((dr,va)=>{(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 dr==\"object\"?(typeof va==\"object\"&&typeof va.exports==\"object\"&&(dr=va.exports=r),dr.Cookies=r):e.Cookies=r})(typeof window>\"u\"?dr:window)});var pl,qc,xl,Il,jc=d(()=>{\"use strict\";pl=v($c()),qc=\"bs_\",xl=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=qc){let r=o;t!=null&&(r=`${t}${r}`);try{let a=this.localStorageSupport?window.localStorage.getItem(r):pl.default.get(r);return a==null?null:JSON.parse(a)}catch(a){return null}}set(o,t,r=qc){let a=o;r!=null&&(a=`${r}${a}`);let n=JSON.stringify(t);this.localStorageSupport?window.localStorage.setItem(a,n):pl.default.set(a,t,{expires:1/0})}},Il=new xl});var hl,H,ke=d(()=>{\"use strict\";Vc();_o();jc();hl=class{constructor(){this.eventEmitter=new Wc;let o=Il.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),Il.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,ur[o]),ur[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)}},H=new hl});function Gc(e,o=0){return(Ae[e[o+0]]+Ae[e[o+1]]+Ae[e[o+2]]+Ae[e[o+3]]+\"-\"+Ae[e[o+4]]+Ae[e[o+5]]+\"-\"+Ae[e[o+6]]+Ae[e[o+7]]+\"-\"+Ae[e[o+8]]+Ae[e[o+9]]+\"-\"+Ae[e[o+10]]+Ae[e[o+11]]+Ae[e[o+12]]+Ae[e[o+13]]+Ae[e[o+14]]+Ae[e[o+15]]).toLowerCase()}var Ae,Xc=d(()=>{Ae=[];for(let e=0;e<256;++e)Ae.push((e+256).toString(16).slice(1))});function bl(){if(!gl){if(typeof crypto>\"u\"||!crypto.getRandomValues)throw new Error(\"crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported\");gl=crypto.getRandomValues.bind(crypto)}return gl(qy)}var gl,qy,Kc=d(()=>{qy=new Uint8Array(16)});var jy,vl,Yc=d(()=>{jy=typeof crypto<\"u\"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),vl={randomUUID:jy}});function Gy(e,o,t){var a,n,l;if(vl.randomUUID&&!o&&!e)return vl.randomUUID();e=e||{};let r=(l=(n=e.random)!=null?n:(a=e.rng)==null?void 0:a.call(e))!=null?l:bl();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 Gc(r)}var mr,Zc=d(()=>{Yc();Kc();Xc();mr=Gy});var yl=d(()=>{Zc()});function Sl(){if(ya!=null)return ya;let e=mr().replace(/-/g,\"\");return window.webpackChunk_snapchat_web_calling_app.push([[e],{[e]:(o,t,r)=>{ya=r}},o=>o(e)]),ya}function Cl(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 Oe(){if(Sa!=null)return Sa;let e=Sl(),o=Cl(r=>r.includes(\"broadcastTypingActivity\"));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 Qc(){if(Ca!=null)return Ca;let e=Sl(),o=Cl(r=>r.includes(\"cof_targeting_query_attempt\"));if(e==null||o==null)return null;let t=e(o);return Ca=Object.values(t).find(r=>r.getState!=null&&r.setState!=null),Ca}function wl(){let e=Sl(),o=Cl(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 wa(e,o=!0){let{fetchPublicInfo:t,publicUsers:r}=Oe().getState().user;if(t==null||r==null)return null;let a=r.entries().find(([{str:n}])=>n===e);if(a==null&&o){let n=Xy(e);return await t([n]),wa(e,!1)}return a!=null?a[1]:null}function Xy(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 Jc(e){let{conversations:o}=Oe().getState().messaging;return o==null?null:o[e]}var ya,Sa,Ca,co=d(()=>{\"use strict\";yl();ya=null;Sa=null;Ca=null});var le,Ke=d(()=>{\"use strict\";ir();le=class{constructor(o){this.name=o;try{this.load(),wo(`Loaded: ${this.name}`)}catch(t){Ia(`Error loading module ${this.name}:`,t)}}load(){throw new Error(\"load() method must be implemented in subclass\")}}});var Rl={};X(Rl,{default:()=>Zy});var ru,au,Yy,_l,pr,eu,ou,tu,Fl,Zy,nu=d(()=>{\"use strict\";ru=v(Tc()),au=v(Nc());ke();_o();co();Ke();Yy=500,_l=Oe(),pr=null,eu=null,ou=null,tu=(0,au.default)((e,o)=>{let{updateMessage:t}=_l.getState().messaging;t(e,o,3)},Yy,{leading:!1,trailing:!0}),Fl=class extends le{constructor(){super(\"Auto Save Messages\"),H.on(\"CHAT_HANDLING.setting:update\",this.load.bind(this))}load(){let t=H.getSetting(\"CHAT_HANDLING\")===\"AUTO_SAVE\";!t&&pr!=null&&(pr(),pr=null),t&&pr==null&&(this.saveActiveConversationMessages(),pr=_l.subscribe(r=>r.messaging.conversations,this.saveActiveConversationMessages.bind(this)))}saveActiveConversationMessages(o){if(o=o!=null?o:_l.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===eu&&(0,ru.default)(n,ou))return;eu=r,ou=n;let{conversation:{conversationId:l}}=a;tu.cancel();for(let[f,s]of n)if(!(s.metadata.savedBy.length>0))try{tu(l,f)}catch(i){}}},Zy=new Fl});var Al={};X(Al,{default:()=>Qy});var Bl,xr,_a,Pl,Qy,fu=d(()=>{\"use strict\";_o();ke();Ke();co();Bl=Oe(),xr=null,_a=null,Pl=class extends le{constructor(){super(\"Bitmoji Hide\"),Bl.subscribe(o=>o.talk,this.load.bind(this)),H.on(\"BITMOJI_PRESENCE.setting:update\",()=>this.load())}load(o){if(o=o!=null?o:Bl.getState().talk,(o==null?void 0:o.client)==null)return;let r=H.getSetting(\"BITMOJI_PRESENCE\")===\"HIDE\",a={};r&&o.client.createPresenceSession!==_a&&(xr=o.client.createPresenceSession,_a=new Proxy(xr,{apply:function(n,l,f){let s=Reflect.apply(n,l,f);return s.activate=()=>{},s}}),a.createPresenceSession=_a),!r&&xr!=null&&(a.createPresenceSession=xr,xr=null,_a=null),Object.keys(a).length!==0&&Bl.setState({talk:g(u({},o),{client:u(u({},o.client),a)})})}},Qy=new Pl});function su(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 iu=d(()=>{\"use strict\"});var Ml={};X(Ml,{default:()=>oS});function eS(e){for(let o=0;o<e.length-1;o++)e[o]===64&&e[o+1]===2&&(e[o+1]=1);return e}var _t,Jy,El,oS,cu=d(()=>{\"use strict\";_o();ke();iu();Ke();_t=null,Jy=new Uint8Array([112,114,101,115,101,110,99,101]);El=class extends le{constructor(){super(\"Bitmoji Mobile\"),H.on(\"BITMOJI_PRESENCE.setting:update\",this.load)}load(){let t=H.getSetting(\"BITMOJI_PRESENCE\")===\"MOBILE\";t&&_t==null&&(_t=Uint8Array.prototype.slice,Uint8Array.prototype.slice=new Proxy(_t,{apply:function(r,a,n){return su(a,Jy)&&(a=eS(a)),Reflect.apply(r,a,n)}})),!t&&_t!=null&&(Uint8Array.prototype.slice=_t,_t=null)}},oS=new El});var Ll={};X(Ll,{default:()=>tS});var Tl,Fa,uu,Dl,tS,du=d(()=>{\"use strict\";ke();Ke();co();Tl=Oe(),Fa=null,uu=()=>{},Dl=class extends le{constructor(){super(\"Bitmoji Typing Notification\"),Tl.subscribe(o=>o.messaging,this.load),H.on(\"PREVENT_TYPING_NOTIFICATION.setting:update\",()=>this.load())}load(o){if(o=o!=null?o:Tl.getState().messaging,o==null)return;let t=H.getSetting(\"PREVENT_TYPING_NOTIFICATION\"),r={};t&&o.sendTypingNotification!==uu&&(Fa=o.sendTypingNotification,r.sendTypingNotification=uu),!t&&Fa!=null&&(r.sendTypingNotification=Fa,Fa=null),Object.keys(r).length!==0&&Tl.setState({messaging:u(u({},o),r)})}},tS=new Dl});var Nl={};X(Nl,{default:()=>rS});var kl,Ir,Ra,Ol,rS,mu=d(()=>{\"use strict\";ke();Ke();co();kl=Qc(),Ir=null,Ra=null,Ol=class extends le{constructor(){super(\"Condition Onset Flags\"),kl.subscribe(({getClientCofValue:o})=>o,this.load.bind(this)),H.on(\"SNAP_AS_MOBILE.setting:update\",this.load.bind(this)),H.on(\"PRIVATE_STORIES.setting:update\",this.load.bind(this))}load(){let o=kl.getState();if((o==null?void 0:o.getClientCofValue)==null)return;let t=H.getSetting(\"SNAP_AS_MOBILE\"),r=H.getSetting(\"PRIVATE_STORIES\"),a=t||r,n={};a&&o.getClientCofValue!==Ra&&(Ir=o.getClientCofValue,Ra=new Proxy(Ir,{apply(l,f,s){let i=Reflect.apply(l,f,s);if(s.length===0||s[0]==null)return i;let[m]=s;return H.getSetting(\"SNAP_AS_MOBILE\")&&m===\"DWEB_SNAP_SENDING_CONTEXT\"?!0:H.getSetting(\"PRIVATE_STORIES\")&&m===\"DWEB_PRIVATE_STORIES_VIEWING\"?{value:\"enabled\"}:i}}),n.getClientCofValue=Ra),!a&&Ir!=null&&(n.getClientCofValue=Ir,Ir=null,Ra=null),Object.keys(n).length!==0&&kl.setState(n)}},rS=new Ol});var zl={};X(zl,{default:()=>aS});var hr,Hl,aS,pu=d(()=>{\"use strict\";ke();Ke();hr=null,Hl=class extends le{constructor(){super(\"Media Restrictions\"),H.on(\"UNLIMITED_FILE_SIZE.setting:update\",this.load)}load(){let o=H.getSetting(\"UNLIMITED_FILE_SIZE\");o&&hr==null&&(hr=window.File.prototype,Object.defineProperty(window.File.prototype,\"size\",{get:()=>500})),!o&&hr!=null&&(window.File.prototype=hr,hr=null)}},aS=new Hl});var xu,Iu=d(()=>{\"use strict\";xu=\"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 Wl={};X(Wl,{default:()=>nS});function hu(e){e.stopImmediatePropagation()}var Ba,et,Ul,nS,gu=d(()=>{\"use strict\";ke();Ke();Iu();Ba=!1;et=null,Ul=class extends le{constructor(){super(\"Media Saving\"),H.on(\"SAVE_IMAGE.setting:update\",this.load)}load(){let o=H.getSetting(\"SAVE_IMAGE\");!Ba&&o&&(Ba=!0,window.addEventListener(\"contextmenu\",hu,!0)),Ba&&!o&&(Ba=!1,window.removeEventListener(\"contextmenu\",hu,!0)),et!=null&&!o&&(et.remove(),et=null),et==null&&o&&(et=document.createElement(\"style\"),et.textContent=xu,document.head.appendChild(et))}},nS=new Ul});var ql={};X(ql,{default:()=>sS});function lS(e){return e=e.slice(2),e[0]=90,e}function fS(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 H.getSetting(\"UPLOAD_SNAPS\")&&f.contentType===3&&(f.contentType=1,f.savePolicy=2,f.platformAnalytics.metricsMessageType=3,f.content=lS(f.content)),H.getSetting(\"SEND_UNSAVEABLE_MESSAGES\")&&(f.savePolicy=0),Reflect.apply(a,n,l)}})}})}var Vl,gr,Pa,$l,sS,bu=d(()=>{\"use strict\";ke();Ke();co();Vl=Oe();gr=null,Pa=null;$l=class extends le{constructor(){super(\"Message Content\"),Vl.subscribe(o=>o.messaging,this.load.bind(this)),H.on(\"UPLOAD_SNAPS.setting:update\",()=>this.load()),H.on(\"SEND_UNSAVEABLE_MESSAGES.setting:update\",()=>this.load())}load(){let o=Vl.getState().messaging;if((o==null?void 0:o.client)==null)return;let t=H.getSetting(\"UPLOAD_SNAPS\"),r=H.getSetting(\"SEND_UNSAVEABLE_MESSAGES\"),a=t||r,n={};!a&&gr!=null&&(n.getConversationManager=gr,gr=null,Pa=null),a&&o.client.getConversationManager!==Pa&&(gr=o.client.getConversationManager,Pa=new Proxy(gr,{apply:(l,f,s)=>{let i=Reflect.apply(l,f,s);return fS(i)}}),n.getConversationManager=Pa),Object.keys(n).length!==0&&Vl.setState({messaging:g(u({},o),{client:u(u({},o.client),n)})})}},sS=new $l});var Xl={};X(Xl,{default:()=>iS});var Aa,Ea,Ma,vu,yu,Su,jl,Gl,iS,Cu=d(()=>{\"use strict\";ke();Ke();co();Aa=null,Ea=null,Ma=null,vu=()=>{},yu=()=>{},Su=()=>{},jl=Oe(),Gl=class extends le{constructor(){super(\"Presence Detection\"),jl.subscribe(o=>o.presence,this.load),H.on(\"ALWAYS_PRESENT.setting:update\",()=>this.load()),H.on(\"ALLOW_SCREENSHOT.setting:update\",()=>this.load()),H.on(\"PREVENT_TYPING.setting:update\",()=>this.load())}load(o){if(o=o!=null?o:jl.getState().presence,o==null)return;let t=H.getSetting(\"ALWAYS_PRESENT\"),r=H.getSetting(\"ALLOW_SCREENSHOT\"),a=H.getSetting(\"PREVENT_TYPING\"),n={};t&&o.setAwayState!==vu&&(Aa=o.setAwayState,n.setAwayState=vu,n.awayState=0),!t&&Aa!=null&&(n.setAwayState=Aa,Aa=null),r&&o.setScreenshotDetected!==yu&&(Ea=o.setScreenshotDetected,n.setScreenshotDetected=yu,n.screenshotDetected=!1),!r&&Ea!=null&&(n.setScreenshotDetected=Ea,Ea=null),a&&o.broadcastTypingActivity!==Su&&(Ma=o.broadcastTypingActivity,n.broadcastTypingActivity=Su),!a&&Ma!=null&&(n.broadcastTypingActivity=Ma,Ma=null),Object.keys(n).length!==0&&jl.setState({presence:u(u({},o),n)})}},iS=new Gl});var Ql={};X(Ql,{default:()=>dS});function cS({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=ba[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 uS(e){var r,a,n,l;let o=H.getSetting(\"HALF_SWIPE_NOTIFICATION\"),t=H.getSetting(\"PRESENCE_LOGGING\");for(let[f,{peekingParticipants:s,typingParticipants:i}]of e.entries()){let m=(r=Jc(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 wa(x),h=wu(x,f),b=vr.get(h);if(t){let S=ba.PEEKING(c);wo(`${(n=I.display_name)!=null?n:I.username}:`,S)}b!==\"PEEKING\"&&(o&&cS({user:I,conversation:m,conversationId:f,presenceState:\"PEEKING\"}),vr.set(h,\"PEEKING\"))}for(let{userId:x,typingState:I}of i){let h=await wa(x),b=I===1?\"TYPING\":\"IDLE\",S=wu(x,f),w=vr.get(S);if(t){let F=ba[b](c);wo(`${(l=h.display_name)!=null?l:h.username}:`,F)}w!==b&&vr.set(S,b)}}}var Kl,br,Yl,vr,wu,Zl,dS,_u=d(()=>{\"use strict\";ke();Ke();co();ir();_o();Kl=Oe(),br=null,Yl=null;vr=new Map,wu=(e,o)=>`${e}:${o!=null?o:\"direct\"}`;Zl=class extends le{constructor(){super(\"Presence Logging\"),Kl.subscribe(o=>o.presence,this.load),H.on(\"PRESENCE_LOGGING.setting:update\",()=>this.load()),H.on(\"HALF_SWIPE_NOTIFICATION.setting:update\",()=>this.load())}load(o){if(o=o!=null?o:Kl.getState().presence,o==null)return;let t=H.getSetting(\"HALF_SWIPE_NOTIFICATION\"),r=H.getSetting(\"PRESENCE_LOGGING\"),a=t||r,n={};a&&o.onActiveConversationInfoUpdated!==Yl&&(br=o.onActiveConversationInfoUpdated,Yl=new Proxy(br,{apply(l,f,[s,...i]){return uS(s),Reflect.apply(l,f,[s,...i])}}),n.onActiveConversationInfoUpdated=Yl),!a&&br!=null&&(n.onActiveConversationInfoUpdated=br,br=null,vr.clear()),Object.keys(n).length!==0&&Kl.setState({presence:u(u({},o),n)})}},dS=new Zl});var ef={};X(ef,{default:()=>mS});var Ft,Jl,mS,Fu=d(()=>{\"use strict\";ke();Ke();co();Ft=null,Jl=class extends le{constructor(){super(\"Provenance Constants\"),H.on(\"SNAP_AS_MOBILE.setting:update\",this.load)}load(){let o=H.getSetting(\"SNAP_AS_MOBILE\");if(o&&Ft==null){let t=wl();Ft=t.SNAPCHAT_WEB_APP,t.SNAPCHAT_WEB_APP=0,t[0]=\"SNAPCHAT_WEB_APP\"}if(!o&&Ft!=null){let t=wl();t.SNAPCHAT_WEB_APP=Ft,t[Ft]=\"SNAPCHAT_WEB_APP\",Ft=null}}},mS=new Jl});var qu={};X(qu,{Component:()=>Sr,Fragment:()=>Ce,cloneElement:()=>vS,createContext:()=>yS,createElement:()=>La,createRef:()=>xS,h:()=>La,hydrate:()=>$u,isValidElement:()=>Eu,options:()=>oe,render:()=>ka,toChildArray:()=>zu});function uo(e,o){for(var t in o)e[t]=o[t];return e}function nf(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function La(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?wr.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 yr(e,l,r,a,null)}function yr(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?++Au:a,__i:-1,__u:0};return a==null&&oe.vnode!=null&&oe.vnode(n),n}function xS(){return{current:null}}function Ce(e){return e.children}function Sr(e,o){this.props=e,this.context=o}function Rt(e,o){if(o==null)return e.__?Rt(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\"?Rt(e):null}function Ou(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 Ou(e)}}function rf(e){(!e.__d&&(e.__d=!0)&&ot.push(e)&&!Da.__r++||Ru!==oe.debounceRendering)&&((Ru=oe.debounceRendering)||Mu)(Da)}function Da(){for(var e,o,t,r,a,n,l,f=1;ot.length;)ot.length>f&&ot.sort(Tu),e=ot.shift(),f=ot.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),lf(o.__P,t,r,o.__n,o.__P.namespaceURI,32&r.__u?[a]:null,n,a==null?Rt(r):a,!!(32&r.__u),l),t.__v=r.__v,t.__.__k[t.__i]=t,Uu(n,t,l),t.__e!=a&&Ou(t)));Da.__r=0}function Nu(e,o,t,r,a,n,l,f,s,i,m){var c,x,I,h,b,S,w=r&&r.__k||ku,F=o.length;for(s=IS(t,o,w,s,F),c=0;c<F;c++)(I=t.__k[c])!=null&&(x=I.__i===-1?Cr:w[I.__i]||Cr,I.__i=c,S=lf(e,I,x,a,n,l,f,s,i,m),h=I.__e,I.ref&&x.ref!=I.ref&&(x.ref&&ff(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=Hu(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 IS(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?yr(null,l,null,null,null):_r(l)?yr(Ce,{children:l},null,null,null):l.constructor===void 0&&l.__b>0?yr(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=hS(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=Rt(f)),Vu(f,f));return r}function Hu(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=Hu(r[a],o,t));return o}e.__e!=o&&(o&&e.type&&!t.contains(o)&&(o=Rt(e)),t.insertBefore(e.__e,o||null),o=e.__e);do o=o&&o.nextSibling;while(o!=null&&o.nodeType==8);return o}function zu(e,o){return o=o||[],e==null||typeof e==\"boolean\"||(_r(e)?e.some(function(t){zu(t,o)}):o.push(e)),o}function hS(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 Bu(e,o,t){o[0]==\"-\"?e.setProperty(o,t==null?\"\":t):e[o]=t==null?\"\":typeof t!=\"number\"||pS.test(o)?t:t+\"px\"}function Ta(e,o,t,r,a){var n;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||Bu(e.style,o,\"\");if(t)for(o in t)r&&t[o]===r[o]||Bu(e.style,o,t[o])}else if(o[0]==\"o\"&&o[1]==\"n\")n=o!=(o=o.replace(Du,\"$1\")),o=o.toLowerCase()in e||o==\"onFocusOut\"||o==\"onFocusIn\"?o.toLowerCase().slice(2):o.slice(2),e.l||(e.l={}),e.l[o+n]=t,t?r?t.t=r.t:(t.t=af,e.addEventListener(o,n?tf:of,n)):e.removeEventListener(o,n?tf:of,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(l){}typeof t==\"function\"||(t==null||t===!1&&o[4]!=\"-\"?e.removeAttribute(o):e.setAttribute(o,o==\"popover\"&&t==1?\"\":t))}}function Pu(e){return function(o){if(this.l){var t=this.l[o.type+e];if(o.u==null)o.u=af++;else if(o.u<t.t)return;return t(oe.event?oe.event(o):o)}}}function lf(e,o,t,r,a,n,l,f,s,i){var m,c,x,I,h,b,S,w,F,B,A,D,O,P,E,T,W,V=o.type;if(o.constructor!==void 0)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],A=m?B?B.props.value:m.__:r,t.__c?S=(c=o.__c=t.__c).__=c.__E:(F?o.__c=c=new V(w,A):(o.__c=c=new Sr(w,A),c.constructor=V,c.render=bS),B&&B.sub(c),c.props=w,c.state||(c.state={}),c.context=A,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,A),!c.__e&&(c.shouldComponentUpdate!=null&&c.shouldComponentUpdate(w,c.__s,A)===!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(q){q&&(q.__=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,A),F&&c.componentDidUpdate!=null&&c.__h.push(function(){c.componentDidUpdate(I,h,b)})}if(c.context=A,c.props=w,c.__P=e,c.__e=!1,O=oe.__r,P=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&&++P<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===Ce&&m.key==null&&(T=Wu(m.props.children)),f=Nu(e,_r(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(q){if(o.__v=null,s||n!=null)if(q.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(W=n.length;W--;)nf(n[W]);else o.__e=t.__e,o.__k=t.__k;oe.__e(q,o,t)}else n==null&&o.__v==t.__v?(o.__k=t.__k,o.__e=t.__e):f=o.__e=gS(t.__e,o,t,r,a,n,l,s,i);return(m=oe.diffed)&&m(o),128&o.__u?void 0:f}function Uu(e,o,t){for(var r=0;r<t.length;r++)ff(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 Wu(e){return typeof e!=\"object\"||e==null?e:_r(e)?e.map(Wu):uo({},e)}function gS(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&&wr.call(e.childNodes),S=t.props||Cr,!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;Ta(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||Ta(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=\"\"),Nu(o.type===\"template\"?e.content:e,_r(x)?x:[x],o,t,r,F==\"foreignObject\"?\"http://www.w3.org/1999/xhtml\":a,n,l,n?n[0]:t.__k&&Rt(t,0),f,s),n!=null)for(i=n.length;i--;)nf(n[i]);f||(i=\"value\",F==\"progress\"&&h==null?e.removeAttribute(\"value\"):h!==void 0&&(h!==e[i]||F==\"progress\"&&!h||F==\"option\"&&h!==S[i])&&Ta(e,i,h,S[i],a),i=\"checked\",b!==void 0&&b!==e[i]&&Ta(e,i,b,S[i],a))}return e}function ff(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 Vu(e,o,t){var r,a;if(oe.unmount&&oe.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||ff(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]&&Vu(r[a],o,t||typeof e.type!=\"function\");t||nf(e.__e),e.__c=e.__=e.__e=void 0}function bS(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=[],lf(o,e=(!r&&t||o).__k=La(Ce,null,[e]),a||Cr,Cr,o.namespaceURI,!r&&t?[t]:a?null:o.firstChild?wr.call(o.childNodes):null,n,!r&&t?t:a?a.__e:o.firstChild,r,l),Uu(n,e,l)}function $u(e,o){ka(e,o,$u)}function vS(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!==void 0?l[n]:o[n];return arguments.length>2&&(f.children=arguments.length>3?wr.call(arguments,2):t),yr(e.type,f,r||e.key,a||e.ref,null)}function yS(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,rf(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\"+Lu++,o.__=e,o.Provider=o.__l=(o.Consumer=function(t,r){return t.children(r)}).contextType=o,o}var wr,oe,Au,Eu,ot,Ru,Mu,Tu,Du,af,of,tf,Lu,Cr,ku,pS,_r,Bt=d(()=>{Cr={},ku=[],pS=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,_r=Array.isArray;wr=ku.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}},Au=0,Eu=function(e){return e!=null&&e.constructor==null},Sr.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),rf(this))},Sr.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),rf(this))},Sr.prototype.render=Ce,ot=[],Mu=typeof Promise==\"function\"?Promise.prototype.then.bind(Promise.resolve()):setTimeout,Tu=function(e,o){return e.__v.__b-o.__v.__b},Da.__r=0,Du=/(PointerCapture)$|Capture$/i,af=0,of=Pu(!1),tf=Pu(!0),Lu=0});function ju(){return`${String.fromCharCode(Math.floor(Math.random()*26)+97)}${mr()}`}var Gu=d(()=>{\"use strict\";yl()});var fd={};X(fd,{useCallback:()=>_S,useContext:()=>FS,useDebugValue:()=>RS,useEffect:()=>SS,useErrorBoundary:()=>BS,useId:()=>PS,useImperativeHandle:()=>wS,useLayoutEffect:()=>nd,useMemo:()=>uf,useReducer:()=>ad,useRef:()=>CS,useState:()=>rd});function tt(e,o){me.__h&&me.__h(fe,e,Pt||o),Pt=0;var t=fe.__H||(fe.__H={__:[],__h:[]});return e>=t.__.length&&t.__.push({}),t.__[e]}function rd(e){return Pt=1,ad(ld,e)}function ad(e,o,t){var r=tt(Fo++,2);if(r.t=e,!r.__c&&(r.__=[t?t(o):ld(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=fe,!fe.__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};fe.__f=!0;var n=fe.shouldComponentUpdate,l=fe.componentWillUpdate;fe.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)},fe.shouldComponentUpdate=a}return r.__N||r.__}function SS(e,o){var t=tt(Fo++,3);!me.__s&&df(t.__H,o)&&(t.__=e,t.u=o,fe.__H.__h.push(t))}function nd(e,o){var t=tt(Fo++,4);!me.__s&&df(t.__H,o)&&(t.__=e,t.u=o,fe.__h.push(t))}function CS(e){return Pt=5,uf(function(){return{current:e}},[])}function wS(e,o,t){Pt=6,nd(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 uf(e,o){var t=tt(Fo++,7);return df(t.__H,o)&&(t.__=e(),t.__H=o,t.__h=e),t.__}function _S(e,o){return Pt=8,uf(function(){return e},o)}function FS(e){var o=fe.context[e.__c],t=tt(Fo++,9);return t.c=e,o?(t.__==null&&(t.__=!0,o.sub(fe)),o.props.value):e.__}function RS(e,o){me.useDebugValue&&me.useDebugValue(o?o(e):e)}function BS(e){var o=tt(Fo++,10),t=rd();return o.__=e,fe.componentDidCatch||(fe.componentDidCatch=function(r,a){o.__&&o.__(r,a),t[1](r)}),[t[0],function(){t[1](void 0)}]}function PS(){var e=tt(Fo++,11);if(!e.__){for(var o=fe.__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 AS(){for(var e;e=td.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Oa),e.__H.__h.forEach(cf),e.__H.__h=[]}catch(o){e.__H.__h=[],me.__e(o,e.__v)}}function ES(e){var o,t=function(){clearTimeout(r),od&&cancelAnimationFrame(o),setTimeout(e)},r=setTimeout(t,100);od&&(o=requestAnimationFrame(t))}function Oa(e){var o=fe,t=e.__c;typeof t==\"function\"&&(e.__c=void 0,t()),fe=o}function cf(e){var o=fe;e.__c=e.__(),fe=o}function df(e,o){return!e||e.length!==o.length||o.some(function(t,r){return t!==e[r]})}function ld(e,o){return typeof o==\"function\"?o(e):o}var Fo,fe,sf,Xu,Pt,td,me,Ku,Yu,Zu,Qu,Ju,ed,od,sd=d(()=>{Bt();Pt=0,td=[],me=oe,Ku=me.__b,Yu=me.__r,Zu=me.diffed,Qu=me.__c,Ju=me.unmount,ed=me.__;me.__b=function(e){fe=null,Ku&&Ku(e)},me.__=function(e,o){e&&o.__k&&o.__k.__m&&(e.__m=o.__k.__m),ed&&ed(e,o)},me.__r=function(e){Yu&&Yu(e),Fo=0;var o=(fe=e.__c).__H;o&&(sf===fe?(o.__h=[],fe.__h=[],o.__.forEach(function(t){t.__N&&(t.__=t.__N),t.u=t.__N=void 0})):(o.__h.forEach(Oa),o.__h.forEach(cf),o.__h=[],Fo=0)),sf=fe},me.diffed=function(e){Zu&&Zu(e);var o=e.__c;o&&o.__H&&(o.__H.__h.length&&(td.push(o)!==1&&Xu===me.requestAnimationFrame||((Xu=me.requestAnimationFrame)||ES)(AS)),o.__H.__.forEach(function(t){t.u&&(t.__H=t.u),t.u=void 0})),sf=fe=null},me.__c=function(e,o){o.some(function(t){try{t.__h.forEach(Oa),t.__h=t.__h.filter(function(r){return!r.__||cf(r)})}catch(r){o.some(function(a){a.__h&&(a.__h=[])}),o=[],me.__e(r,t.__v)}}),Qu&&Qu(e,o)},me.unmount=function(e){Ju&&Ju(e);var o,t=e.__c;t&&t.__H&&(t.__H.__.forEach(function(r){try{Oa(r)}catch(a){o=a}}),t.__H=void 0,o&&me.__e(o,t.__v))};od=typeof requestAnimationFrame==\"function\"});var y=sr(K=>{var z=(Bt(),Ac(qu)),re=(sd(),Ac(fd));function hd(e,o){for(var t in o)e[t]=o[t];return e}function pf(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 xf(e,o){var t=o(),r=re.useState({t:{__:t,u:o}}),a=r[0].t,n=r[1];return re.useLayoutEffect(function(){a.__=t,a.u=o,mf(a)&&n({t:a})},[e,t,o]),re.useEffect(function(){return mf(a)&&n({t:a}),e(function(){mf(a)&&n({t:a})})},[e]),t}function mf(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 If(e){e()}function hf(e){return e}function gf(){return[!1,If]}var bf=re.useLayoutEffect;function Na(e,o){this.props=e,this.context=o}function gd(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:pf(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}(Na.prototype=new z.Component).isPureReactComponent=!0,Na.prototype.shouldComponentUpdate=function(e,o){return pf(this.props,e)||pf(this.state,o)};var id=z.options.__b;z.options.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),id&&id(e)};var MS=typeof Symbol<\"u\"&&Symbol.for&&Symbol.for(\"react.forward_ref\")||3911;function bd(e){function o(t){var r=hd({},t);return delete r.ref,e(r,t.ref||null)}return o.$$typeof=MS,o.render=o,o.prototype.isReactComponent=o.__f=!0,o.displayName=\"ForwardRef(\"+(e.displayName||e.name)+\")\",o}var cd=function(e,o){return e==null?null:z.toChildArray(z.toChildArray(e).map(o))},vd={map:cd,forEach:cd,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},TS=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)}TS(e,o,t,r)};var ud=z.options.unmount;function yd(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=hd({},e)).__c!=null&&(e.__c.__P===t&&(e.__c.__P=o),e.__c=null),e.__k=e.__k&&e.__k.map(function(r){return yd(r,o,t)})),e}function Sd(e,o,t){return e&&t&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(r){return Sd(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 Fr(){this.__u=0,this.o=null,this.__b=null}function Cd(e){var o=e.__.__c;return o&&o.__a&&o.__a(e)}function wd(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),ud&&ud(e)},(Fr.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=Cd(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]=Sd(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)},Fr.prototype.componentWillUnmount=function(){this.o=[]},Fr.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]=yd(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 dd=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 DS(e){return this.getChildContext=function(){return e.context},e.children}function LS(e){var o=this,t=e.p;o.componentWillUnmount=function(){z.render(null,o.h),o.h=null,o.p=null},o.p&&o.p!==t&&o.componentWillUnmount(),o.h||(o.p=t,o.h={nodeType:1,parentNode:t,childNodes:[],contains:function(){return!0},appendChild:function(r){this.childNodes.push(r),o.p.appendChild(r)},insertBefore:function(r,a){this.childNodes.push(r),o.p.insertBefore(r,a)},removeChild:function(r){this.childNodes.splice(this.childNodes.indexOf(r)>>>1,1),o.p.removeChild(r)}}),z.render(z.createElement(DS,{context:o.context},e.__v),o.h)}function _d(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=Cd(o.__v),r=o.l.get(e);return r[0]++,function(a){var n=function(){o.props.revealOrder?(r.push(a),dd(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){dd(e,t,o)})};var Fd=typeof Symbol<\"u\"&&Symbol.for&&Symbol.for(\"react.element\")||60103,kS=/^(?: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]/,OS=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,NS=/[A-Z0-9]/g,HS=typeof document<\"u\",zS=function(e){return(typeof Symbol<\"u\"&&typeof Symbol()==\"symbol\"?/fil|che|rad/:/fil|che|ra/).test(e)};function Rd(e,o,t){return o.__k==null&&(o.textContent=\"\"),z.render(e,o),typeof t==\"function\"&&t(),e?e.__c:null}function Bd(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 md=z.options.event;function US(){}function WS(){return this.cancelBubble}function VS(){return this.defaultPrevented}z.options.event=function(e){return md&&(e=md(e)),e.persist=US,e.isPropagationStopped=WS,e.isDefaultPrevented=VS,e.nativeEvent=e};var vf,$S={enumerable:!1,configurable:!0,get:function(){return this.class}},pd=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||HS&&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\"||zS(t.type)?s===\"onfocus\"?l=\"onfocusin\":s===\"onblur\"?l=\"onfocusout\":OS.test(l)&&(l=s):s=l=\"oninput\":n&&kS.test(l)?l=l.replace(NS,\"-$&\").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=Fd,pd&&pd(e)};var xd=z.options.__r;z.options.__r=function(e){xd&&xd(e),vf=e.__c};var Id=z.options.diffed;z.options.diffed=function(e){Id&&Id(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),vf=null};var Pd={ReactCurrentDispatcher:{current:{readContext:function(e){return vf.__n[e.__c].props.value},useCallback:re.useCallback,useContext:re.useContext,useDebugValue:re.useDebugValue,useDeferredValue:hf,useEffect:re.useEffect,useId:re.useId,useImperativeHandle:re.useImperativeHandle,useInsertionEffect:bf,useLayoutEffect:re.useLayoutEffect,useMemo:re.useMemo,useReducer:re.useReducer,useRef:re.useRef,useState:re.useState,useSyncExternalStore:xf,useTransition:gf}}};function Ad(e){return z.createElement.bind(null,e)}function Rr(e){return!!e&&e.$$typeof===Fd}function Ed(e){return Rr(e)&&e.type===z.Fragment}function Md(e){return!!e&&!!e.displayName&&(typeof e.displayName==\"string\"||e.displayName instanceof String)&&e.displayName.startsWith(\"Memo(\")}function Td(e){return Rr(e)?z.cloneElement.apply(null,arguments):e}function Dd(e){return!!e.__k&&(z.render(null,e),!0)}function Ld(e){return e&&(e.base||e.nodeType===1&&e)||null}var kd=function(e,o){return e(o)},Od=function(e,o){return e(o)},Nd=z.Fragment,Hd=Rr,qS={useState:re.useState,useId:re.useId,useReducer:re.useReducer,useEffect:re.useEffect,useLayoutEffect:re.useLayoutEffect,useInsertionEffect:bf,useTransition:gf,useDeferredValue:hf,useSyncExternalStore:xf,startTransition:If,useRef:re.useRef,useImperativeHandle:re.useImperativeHandle,useMemo:re.useMemo,useCallback:re.useCallback,useContext:re.useContext,useDebugValue:re.useDebugValue,version:\"18.3.1\",Children:vd,render:Rd,hydrate:Bd,unmountComponentAtNode:Dd,createPortal:_d,createElement:z.createElement,createContext:z.createContext,createFactory:Ad,cloneElement:Td,createRef:z.createRef,Fragment:z.Fragment,isValidElement:Rr,isElement:Hd,isFragment:Ed,isMemo:Md,findDOMNode:Ld,Component:z.Component,PureComponent:Na,memo:gd,forwardRef:bd,flushSync:Od,unstable_batchedUpdates:kd,StrictMode:Nd,Suspense:Fr,SuspenseList:At,lazy:wd,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:Pd};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=vd,K.PureComponent=Na,K.StrictMode=Nd,K.Suspense=Fr,K.SuspenseList=At,K.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Pd,K.cloneElement=Td,K.createFactory=Ad,K.createPortal=_d,K.default=qS,K.findDOMNode=Ld,K.flushSync=Od,K.forwardRef=bd,K.hydrate=Bd,K.isElement=Hd,K.isFragment=Ed,K.isMemo=Md,K.isValidElement=Rr,K.lazy=wd,K.memo=gd,K.render=Rd,K.startTransition=If,K.unmountComponentAtNode=Dd,K.unstable_batchedUpdates=kd,K.useDeferredValue=hf,K.useInsertionEffect=bf,K.useSyncExternalStore=xf,K.useTransition=gf,K.version=\"18.3.1\",Object.keys(re).forEach(function(e){e===\"default\"||K.hasOwnProperty(e)||Object.defineProperty(K,e,{enumerable:!0,get:function(){return re[e]}})})});function Ha(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 zd(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 Ge,Et=d(()=>{Ge=function(){return Ge=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},Ge.apply(this,arguments)}});var rt,at,yf,Sf,za=d(()=>{rt=\"right-scroll-bar-position\",at=\"width-before-scroll-bar\",yf=\"with-scroll-bars-hidden\",Sf=\"--removed-body-scroll-bar-size\"});function Ua(e,o){return typeof e==\"function\"?e(o):e&&(e.current=o),e}var Ud=d(()=>{});function Vd(e,o){var t=(0,Wd.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 Wd,$d=d(()=>{Wd=v(y())});function Cf(e,o){var t=Vd(o||null,function(r){return e.forEach(function(a){return Ua(a,r)})});return jS(function(){var r=qd.get(t);if(r){var a=new Set(r),n=new Set(e),l=t.current;a.forEach(function(f){n.has(f)||Ua(f,null)}),n.forEach(function(f){a.has(f)||Ua(f,l)})}qd.set(t,e)},[e]),t}var Wa,jS,qd,jd=d(()=>{Wa=v(y());Ud();$d();jS=typeof window<\"u\"?Wa.useLayoutEffect:Wa.useEffect,qd=new WeakMap});var Gd=d(()=>{jd()});function GS(e){return e}function XS(e,o){o===void 0&&(o=GS);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 wf(e){e===void 0&&(e={});var o=XS(null);return o.options=Ge({async:!0,ssr:!1},e),o}var Xd=d(()=>{Et()});function _f(e,o){return e.useMedium(o),Yd}var Kd,Yd,Zd=d(()=>{Et();Kd=v(y()),Yd=function(e){var o=e.sideCar,t=Ha(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 Kd.createElement(r,Ge({},t))};Yd.isSideCarExport=!0});var Ff=d(()=>{Xd();Zd()});var Va,Rf=d(()=>{Ff();Va=wf()});var Ne,Bf,Br,Qd=d(()=>{Et();Ne=v(y());za();Gd();Rf();Bf=function(){},Br=Ne.forwardRef(function(e,o){var t=Ne.useRef(null),r=Ne.useState({onScrollCapture:Bf,onWheelCapture:Bf,onTouchMoveCapture:Bf}),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=Ha(e,[\"forwardProps\",\"children\",\"className\",\"removeScrollBar\",\"enabled\",\"shards\",\"sideCar\",\"noIsolation\",\"inert\",\"allowPinchZoom\",\"as\",\"gapMode\"]),A=x,D=Cf([t,o]),O=Ge(Ge({},B),a);return Ne.createElement(Ne.Fragment,null,m&&Ne.createElement(A,{sideCar:Va,removeScrollBar:i,shards:c,noIsolation:I,inert:h,setCallbacks:n,allowPinchZoom:!!b,lockRef:t,gapMode:F}),l?Ne.cloneElement(Ne.Children.only(f),Ge(Ge({},O),{ref:D})):Ne.createElement(w,Ge({},O,{className:s,ref:D}),f))});Br.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Br.classNames={fullWidth:at,zeroRight:rt}});var Jd,em,om=d(()=>{em=function(){if(Jd)return Jd;if(typeof __webpack_nonce__<\"u\")return __webpack_nonce__}});function KS(){if(!document)return null;var e=document.createElement(\"style\");e.type=\"text/css\";var o=em();return o&&e.setAttribute(\"nonce\",o),e}function YS(e,o){e.styleSheet?e.styleSheet.cssText=o:e.appendChild(document.createTextNode(o))}function ZS(e){var o=document.head||document.getElementsByTagName(\"head\")[0];o.appendChild(e)}var Pf,Af=d(()=>{om();Pf=function(){var e=0,o=null;return{add:function(t){e==0&&(o=KS())&&(YS(o,t),ZS(o)),e++},remove:function(){e--,!e&&o&&(o.parentNode&&o.parentNode.removeChild(o),o=null)}}}});var tm,Ef,Mf=d(()=>{tm=v(y());Af();Ef=function(){var e=Pf();return function(o,t){tm.useEffect(function(){return e.add(o),function(){e.remove()}},[o&&t])}}});var Pr,rm=d(()=>{Mf();Pr=function(){var e=Ef(),o=function(t){var r=t.styles,a=t.dynamic;return e(r,a),null};return o}});var Tf=d(()=>{rm();Af();Mf()});var QS,Df,JS,Lf,kf=d(()=>{QS={left:0,top:0,right:0,gap:0},Df=function(e){return parseInt(e||\"\",10)||0},JS=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[Df(t),Df(r),Df(a)]},Lf=function(e){if(e===void 0&&(e=\"margin\"),typeof window>\"u\")return QS;var o=JS(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 Tt,eC,Mt,oC,am,tC,Of,nm=d(()=>{Tt=v(y());Tf();za();kf();eC=Pr(),Mt=\"data-scroll-locked\",oC=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(yf,` {\n overflow: hidden `).concat(r,`;\n padding-right: `).concat(f,\"px \").concat(r,`;\n }\n body[`).concat(Mt,`] {\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(rt,` {\n right: `).concat(f,\"px \").concat(r,`;\n }\n \n .`).concat(at,` {\n margin-right: `).concat(f,\"px \").concat(r,`;\n }\n \n .`).concat(rt,\" .\").concat(rt,` {\n right: 0 `).concat(r,`;\n }\n \n .`).concat(at,\" .\").concat(at,` {\n margin-right: 0 `).concat(r,`;\n }\n \n body[`).concat(Mt,`] {\n `).concat(Sf,\": \").concat(f,`px;\n }\n`)},am=function(){var e=parseInt(document.body.getAttribute(Mt)||\"0\",10);return isFinite(e)?e:0},tC=function(){Tt.useEffect(function(){return document.body.setAttribute(Mt,(am()+1).toString()),function(){var e=am()-1;e<=0?document.body.removeAttribute(Mt):document.body.setAttribute(Mt,e.toString())}},[])},Of=function(e){var o=e.noRelative,t=e.noImportant,r=e.gapMode,a=r===void 0?\"margin\":r;tC();var n=Tt.useMemo(function(){return Lf(a)},[a]);return Tt.createElement(eC,{styles:oC(n,!o,a,t?\"\":\"!important\")})}});var lm=d(()=>{nm();za();kf()});var Nf,Ar,nt,fm=d(()=>{Nf=!1;if(typeof window<\"u\")try{Ar=Object.defineProperty({},\"passive\",{get:function(){return Nf=!0,!0}}),window.addEventListener(\"test\",Ar,Ar),window.removeEventListener(\"test\",Ar,Ar)}catch(e){Nf=!1}nt=Nf?{passive:!1}:!1});var rC,sm,aC,nC,Hf,lC,fC,im,cm,sC,um,dm=d(()=>{rC=function(e){return e.tagName===\"TEXTAREA\"},sm=function(e,o){if(!(e instanceof Element))return!1;var t=window.getComputedStyle(e);return t[o]!==\"hidden\"&&!(t.overflowY===t.overflowX&&!rC(e)&&t[o]===\"visible\")},aC=function(e){return sm(e,\"overflowY\")},nC=function(e){return sm(e,\"overflowX\")},Hf=function(e,o){var t=o.ownerDocument,r=o;do{typeof ShadowRoot<\"u\"&&r instanceof ShadowRoot&&(r=r.host);var a=im(e,r);if(a){var n=cm(e,r),l=n[1],f=n[2];if(l>f)return!0}r=r.parentNode}while(r&&r!==t.body);return!1},lC=function(e){var o=e.scrollTop,t=e.scrollHeight,r=e.clientHeight;return[o,t,r]},fC=function(e){var o=e.scrollLeft,t=e.scrollWidth,r=e.clientWidth;return[o,t,r]},im=function(e,o){return e===\"v\"?aC(o):nC(o)},cm=function(e,o){return e===\"v\"?lC(o):fC(o)},sC=function(e,o){return e===\"h\"&&o===\"rtl\"?-1:1},um=function(e,o,t,r,a){var n=sC(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=cm(e,f),h=I[0],b=I[1],S=I[2],w=b-S-n*h;(h||w)&&im(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 xm(e){var o=ce.useRef([]),t=ce.useRef([0,0]),r=ce.useRef(),a=ce.useState(uC++)[0],n=ce.useState(Pr)[0],l=ce.useRef(e);ce.useEffect(function(){l.current=e},[e]),ce.useEffect(function(){if(e.inert){document.body.classList.add(\"block-interactivity-\".concat(a));var b=zd([e.lockRef.current],(e.shards||[]).map(pm),!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=ce.useCallback(function(b,S){if(\"touches\"in b&&b.touches.length===2||b.type===\"wheel\"&&b.ctrlKey)return!l.current.allowPinchZoom;var w=$a(b),F=t.current,B=\"deltaX\"in b?b.deltaX:F[0]-w[0],A=\"deltaY\"in b?b.deltaY:F[1]-w[1],D,O=b.target,P=Math.abs(B)>Math.abs(A)?\"h\":\"v\";if(\"touches\"in b&&P===\"h\"&&O.type===\"range\")return!1;var E=Hf(P,O);if(!E)return!0;if(E?D=P:(D=P===\"v\"?\"h\":\"v\",E=Hf(P,O)),!E)return!1;if(!r.current&&\"changedTouches\"in b&&(B||A)&&(r.current=D),!D)return!0;var T=r.current||D;return um(T,S,b,T===\"h\"?B:A,!0)},[]),s=ce.useCallback(function(b){var S=b;if(!(!Dt.length||Dt[Dt.length-1]!==n)){var w=\"deltaY\"in S?mm(S):$a(S),F=o.current.filter(function(D){return D.name===S.type&&(D.target===S.target||S.target===D.shadowParent)&&iC(D.delta,w)})[0];if(F&&F.should){S.cancelable&&S.preventDefault();return}if(!F){var B=(l.current.shards||[]).map(pm).filter(Boolean).filter(function(D){return D.contains(S.target)}),A=B.length>0?f(S,B[0]):!l.current.noIsolation;A&&S.cancelable&&S.preventDefault()}}},[]),i=ce.useCallback(function(b,S,w,F){var B={name:b,delta:S,target:w,should:F,shadowParent:dC(w)};o.current.push(B),setTimeout(function(){o.current=o.current.filter(function(A){return A!==B})},1)},[]),m=ce.useCallback(function(b){t.current=$a(b),r.current=void 0},[]),c=ce.useCallback(function(b){i(b.type,mm(b),b.target,f(b,e.lockRef.current))},[]),x=ce.useCallback(function(b){i(b.type,$a(b),b.target,f(b,e.lockRef.current))},[]);ce.useEffect(function(){return Dt.push(n),e.setCallbacks({onScrollCapture:c,onWheelCapture:c,onTouchMoveCapture:x}),document.addEventListener(\"wheel\",s,nt),document.addEventListener(\"touchmove\",s,nt),document.addEventListener(\"touchstart\",m,nt),function(){Dt=Dt.filter(function(b){return b!==n}),document.removeEventListener(\"wheel\",s,nt),document.removeEventListener(\"touchmove\",s,nt),document.removeEventListener(\"touchstart\",m,nt)}},[]);var I=e.removeScrollBar,h=e.inert;return ce.createElement(ce.Fragment,null,h?ce.createElement(n,{styles:cC(a)}):null,I?ce.createElement(Of,{gapMode:e.gapMode}):null)}function dC(e){for(var o=null;e!==null;)e instanceof ShadowRoot&&(o=e.host,e=e.host),e=e.parentNode;return o}var ce,$a,mm,pm,iC,cC,uC,Dt,Im=d(()=>{Et();ce=v(y());lm();Tf();fm();dm();$a=function(e){return\"changedTouches\"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},mm=function(e){return[e.deltaX,e.deltaY]},pm=function(e){return e&&\"current\"in e?e.current:e},iC=function(e,o){return e[0]===o[0]&&e[1]===o[1]},cC=function(e){return`\n .block-interactivity-`.concat(e,` {pointer-events: none;}\n .allow-interactivity-`).concat(e,` {pointer-events: all;}\n`)},uC=0,Dt=[]});var hm,gm=d(()=>{Ff();Im();Rf();hm=_f(Va,xm)});var qa,bm,zf,vm=d(()=>{Et();qa=v(y());Qd();gm();bm=qa.forwardRef(function(e,o){return qa.createElement(Br,Ge({},e,{ref:o,sideCar:hm}))});bm.classNames=Br.classNames;zf=bm});var ym=d(()=>{vm()});function Ue(e){return Object.keys(e)}var Lt=d(()=>{\"use client\"});function Uf(e){return e&&typeof e==\"object\"&&!Array.isArray(e)}function Er(e,o){let t=u({},e),r=o;return Uf(e)&&Uf(o)&&Object.keys(o).forEach(a=>{Uf(r[a])&&a in e?t[a]=Er(t[a],r[a]):t[a]=r[a]}),t}var Wf=d(()=>{});function Sm(e){return e.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`)}var Cm=d(()=>{\"use client\"});function mC(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 wm(e){let o=mC(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 _m=d(()=>{});function Fm(e){return e===\"0rem\"?\"0rem\":`calc(${e} * var(--mantine-scale))`}function Rm(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?Fm(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?Fm(n):n}}return r}return t}var _,Vf,pe=d(()=>{_=Rm(\"rem\",{shouldScale:!0}),Vf=Rm(\"em\")});function kt(e){return Object.keys(e).reduce((o,t)=>(e[t]!==void 0&&(o[t]=e[t]),o),{})}var ja=d(()=>{\"use client\"});function Ga(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 $f=d(()=>{\"use client\"});function Pm(e){return Array.isArray(e)||e===null?!1:typeof e==\"object\"?e.type!==Bm.Fragment:!1}var Bm,Am=d(()=>{\"use client\";Bm=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:--pC,__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 pC,RB,Em=d(()=>{Bt();Bt();pC=0,RB=Array.isArray});var R=d(()=>{Em()});function zo(e){let o=(0,Xa.createContext)(null);return[({children:a,value:n})=>p(o.Provider,{value:n,children:a}),()=>{let a=(0,Xa.useContext)(o);if(a===null)throw new Error(e);return a}]}var Xa,Mr=d(()=>{\"use client\";R();Xa=v(y(),1)});function mo(e=null){let o=(0,Ka.createContext)(e);return[({children:a,value:n})=>p(o.Provider,{value:n,children:a}),()=>(0,Ka.useContext)(o)]}var Ka,Ot=d(()=>{\"use client\";R();Ka=v(y(),1)});function ro(e){return xC[e]}var xC,Nt=d(()=>{\"use client\";xC={app:100,modal:200,popover:300,overlay:400,max:9999}});function G(e,o=\"size\",t=!0){if(e!==void 0)return Ga(e)?t?_(e):e:`var(--${o}-${e})`}function Ya(e){return G(e,\"mantine-spacing\")}function ie(e){return e===void 0?\"var(--mantine-radius-default)\":G(e,\"mantine-radius\")}function ue(e){return G(e,\"mantine-font-size\")}function Mm(e){return G(e,\"mantine-line-height\",!1)}function Za(e){if(e)return G(e,\"mantine-shadow\",!1)}var xe=d(()=>{\"use client\";$f();pe()});function Tm(e=\"mantine-\"){return`${e}${Math.random().toString(36).slice(2,11)}`}var Dm=d(()=>{\"use client\"});function ao(e){let o=(0,Ht.useRef)(e);return(0,Ht.useEffect)(()=>{o.current=e}),(0,Ht.useMemo)(()=>(...t)=>{var r;return(r=o.current)==null?void 0:r.call(o,...t)},[])}var Ht,qf=d(()=>{\"use client\";Ht=v(y(),1)});function Ro(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=ao(e),l=(0,Uo.useRef)(0),f=(0,Uo.useRef)(()=>{}),s=(0,Uo.useRef)(a),i=Object.assign((0,Uo.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,Uo.useEffect)(()=>()=>{window.clearTimeout(l.current),r&&i.flush()},[i,r]),i}var Uo,Lm=d(()=>{\"use client\";Uo=v(y(),1);qf()});function IC(e,o){try{return e.addEventListener(\"change\",o),()=>e.removeEventListener(\"change\",o)}catch(t){return e.addListener(o),()=>e.removeListener(o)}}function hC(e,o){return typeof window<\"u\"&&\"matchMedia\"in window?window.matchMedia(e).matches:!1}function km(e,o,{getInitialValueInEffect:t}={getInitialValueInEffect:!0}){let[r,a]=(0,zt.useState)(t?o:hC(e)),n=(0,zt.useRef)(null);return(0,zt.useEffect)(()=>{if(\"matchMedia\"in window)return n.current=window.matchMedia(e),a(n.current.matches),IC(n.current,l=>a(l.matches))},[e]),r}var zt,Om=d(()=>{\"use client\";zt=v(y(),1)});var Qa,no,jf=d(()=>{\"use client\";Qa=v(y(),1),no=typeof document<\"u\"?Qa.useLayoutEffect:Qa.useEffect});function Dr(e,o){let t=(0,Tr.useRef)(!1);(0,Tr.useEffect)(()=>()=>{t.current=!1},[]),(0,Tr.useEffect)(()=>{if(t.current)return e();t.current=!0},o)}var Tr,Gf=d(()=>{\"use client\";Tr=v(y(),1)});function Xf({opened:e,shouldReturnFocus:o=!0}){let t=(0,Nm.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 Dr(()=>{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 Nm,Hm=d(()=>{\"use client\";Nm=v(y(),1);Gf()});function bC(e){return e.style.display===\"none\"}function vC(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(bC(t))return!1;t=t.parentNode}return!0}function zm(e){let o=e.getAttribute(\"tabindex\");return o===null&&(o=void 0),parseInt(o,10)}function Ja(e){let o=e.nodeName.toLowerCase(),t=!Number.isNaN(zm(e));return(gC.test(o)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||t)&&vC(e)}function Yf(e){let o=zm(e);return(Number.isNaN(o)||o>=0)&&Ja(e)}function Um(e){return Array.from(e.querySelectorAll(Kf)).filter(Yf)}var gC,Kf,Zf=d(()=>{\"use client\";gC=/input|select|textarea|button|object/,Kf=\"a, input, select, textarea, button, object, [tabindex]\"});function Wm(e,o){let t=Um(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 Vm=d(()=>{\"use client\";Zf()});function Qf(e=!0){let o=(0,Ut.useRef)(null),t=a=>{let n=a.querySelector(\"[data-autofocus]\");if(!n){let l=Array.from(a.querySelectorAll(Kf));n=l.find(Yf)||l.find(Ja)||null,!n&&Ja(a)&&(n=a)}n&&n.focus({preventScroll:!0})},r=(0,Ut.useCallback)(a=>{e&&a!==null&&o.current!==a&&(a?(setTimeout(()=>{a.getRootNode()&&t(a)}),o.current=a):o.current=null)},[e]);return(0,Ut.useEffect)(()=>{if(!e)return;o.current&&setTimeout(()=>t(o.current));let a=n=>{n.key===\"Tab\"&&o.current&&Wm(o.current,n)};return document.addEventListener(\"keydown\",a),()=>document.removeEventListener(\"keydown\",a)},[e]),r}var Ut,$m=d(()=>{\"use client\";Ut=v(y(),1);Vm();Zf()});function jm(){let e=yC();return e?`mantine-${e.replace(/:/g,\"\")}`:\"\"}var qm,yC,Gm=d(()=>{\"use client\";qm=v(y(),1),yC=qm.default.useId||(()=>{})});function lo(e){let o=jm(),[t,r]=(0,Xm.useState)(o);return no(()=>{r(Tm())},[]),typeof e==\"string\"?e:typeof window>\"u\"?o:t}var Xm,Km=d(()=>{\"use client\";Xm=v(y(),1);jf();Dm();Gm()});function Jf(e,o,t){(0,Ym.useEffect)(()=>(window.addEventListener(e,o,t),()=>window.removeEventListener(e,o,t)),[e,o])}var Ym,Zm=d(()=>{\"use client\";Ym=v(y(),1)});function Lr(e,o){if(typeof e==\"function\")return e(o);typeof e==\"object\"&&e!==null&&\"current\"in e&&(e.current=o)}function Jm(...e){let o=new Map;return t=>{if(e.forEach(r=>{let a=Lr(r,t);a&&o.set(r,a)}),o.size>0)return()=>{e.forEach(r=>{let a=o.get(r);a?a():Lr(r,null)}),o.clear()}}}function We(...e){return(0,Qm.useCallback)(Jm(...e),e)}var Qm,ep=d(()=>{\"use client\";Qm=v(y(),1)});function lt({value:e,defaultValue:o,finalValue:t,onChange:r=()=>{}}){let[a,n]=(0,op.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 op,tp=d(()=>{\"use client\";op=v(y(),1)});function kr(e,o){return km(\"(prefers-reduced-motion: reduce)\",e,o)}var rp=d(()=>{\"use client\";Om()});function es(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,ap=d(()=>{\"use client\";Wt=v(y(),1)});var Ie=d(()=>{qf();Lm();Hm();Gf();$m();Km();jf();ep();rp();tp();Zm();ap()});function np(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=np(e[o]))&&(r&&(r+=\" \"),r+=t)}else for(t in e)e[t]&&(r&&(r+=\" \"),r+=t);return r}function SC(){for(var e,o,t=0,r=\"\",a=arguments.length;t<a;t++)(e=arguments[t])&&(o=np(e))&&(r&&(r+=\" \"),r+=o);return r}var se,k=d(()=>{se=SC});function wC(e){let o={};return e.forEach(t=>{Object.entries(t).forEach(([r,a])=>{o[r]?o[r]=se(o[r],a):o[r]=a})}),o}function Wo({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||CC);return wC(n)}var CC,Or=d(()=>{\"use client\";k();CC={}});function ft({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 en=d(()=>{\"use client\"});function Vo(){let e=(0,on.useContext)(tn);if(!e)throw new Error(\"[@mantine/core] MantineProvider was not found in tree\");return e}function lp(){return Vo().cssVariablesResolver}function fp(){return Vo().classNamesPrefix}function Vt(){return Vo().getStyleNonce}function sp(){return Vo().withStaticClasses}function ip(){return Vo().headless}function cp(){var e;return(e=Vo().stylesTransform)==null?void 0:e.sx}function up(){var e;return(e=Vo().stylesTransform)==null?void 0:e.styles}function rn(){return Vo().env||\"default\"}var on,tn,po=d(()=>{\"use client\";on=v(y(),1),tn=(0,on.createContext)(null)});function _C(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function FC(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 RC(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 BC(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 $t(e){return _C(e)?FC(e):e.startsWith(\"rgb\")?RC(e):e.startsWith(\"hsl\")?BC(e):{r:0,g:0,b:0,a:1}}var an=d(()=>{});function Nr(e,o){if(e.startsWith(\"var(\"))return`color-mix(in srgb, ${e}, black ${o*100}%)`;let{r:t,g:r,b:a,a:n}=$t(e),l=1-o,f=s=>Math.round(s*l);return`rgba(${f(t)}, ${f(r)}, ${f(a)}, ${n})`}var dp=d(()=>{an()});function Bo(e,o){return typeof e.primaryShade==\"number\"?e.primaryShade:o===\"dark\"?e.primaryShade.dark:e.primaryShade.light}var Hr=d(()=>{\"use client\"});function os(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 AC(e){if(e.startsWith(\"oklch(\"))return(PC(e)||0)/100;let{r:o,g:t,b:r}=$t(e),a=o/255,n=t/255,l=r/255,f=os(a),s=os(n),i=os(l);return .2126*f+.7152*s+.0722*i}function qt(e,o=.179){return e.startsWith(\"var(\")?!1:AC(e)>o}var mp=d(()=>{an()});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:qt(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:qt(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:qt(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][Bo(o,t||\"light\")];return{color:r,value:f,shade:n,isThemeColor:l,isLight:qt(f,o.luminanceThreshold),variable:a?`--mantine-color-${r}-${n}`:`--mantine-color-${r}-filled`}}return{color:e,value:e,isThemeColor:l,isLight:qt(e,o.luminanceThreshold),shade:n,variable:void 0}}var st=d(()=>{\"use client\";Hr();mp()});function Ve(e,o){let t=Ye({color:e||o.primaryColor,theme:o});return t.variable?`var(${t.variable})`:e}var it=d(()=>{\"use client\";st()});function zr(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 ts=d(()=>{\"use client\";it()});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}=$t(e);return`rgba(${t}, ${r}, ${a}, ${o})`}var ct,nn=d(()=>{an();ct=eo});var GP,pp,xp=d(()=>{\"use client\";pe();GP=v(y(),1);R();dp();ts();st();nn();pp=({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:Nr(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:Nr(o.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${_(1)} solid transparent`}:{background:\"var(--mantine-color-white)\",hover:Nr(o.white,.01),color:`var(--mantine-color-${n.color}-${n.shade})`,border:`${_(1)} solid transparent`}:{background:\"var(--mantine-color-white)\",hover:Nr(o.white,.01),color:e,border:`${_(1)} solid transparent`}:t===\"gradient\"?{background:zr(r,o),hover:zr(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 Ip,hp=d(()=>{Ip={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 tA,gp,Ur,rs=d(()=>{pe();tA=v(y(),1);R();xp();hp();gp=\"-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji\",Ur={scale:1,fontSmoothing:!0,focusRing:\"auto\",white:\"#fff\",black:\"#000\",colors:Ip,primaryShade:{light:6,dark:8},primaryColor:\"blue\",variantColorResolver:pp,autoContrast:!1,luminanceThreshold:.3,fontFamily:gp,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:gp,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 as(e){return e===\"auto\"||e===\"dark\"||e===\"light\"}var bp=d(()=>{\"use client\"});function vp({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 as(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&&as(r.newValue)&&t(r.newValue)},window.addEventListener(\"storage\",o)},unsubscribe:()=>{window.removeEventListener(\"storage\",o)},clear:()=>{window.localStorage.removeItem(e)}}}var yp=d(()=>{\"use client\";bp()});function ns(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function Cp(e){if(!(e.primaryColor in e.colors))throw new Error(EC);if(typeof e.primaryShade==\"object\"&&(!ns(e.primaryShade.dark)||!ns(e.primaryShade.light)))throw new Error(Sp);if(typeof e.primaryShade==\"number\"&&!ns(e.primaryShade))throw new Error(Sp)}function wp(e,o){var r;if(!o)return Cp(e),e;let t=Er(e,o);return o.fontFamily&&!((r=o.headings)!=null&&r.fontFamily)&&(t.headings.fontFamily=o.fontFamily),Cp(t),t}var uA,EC,Sp,_p=d(()=>{Wf();uA=v(y(),1);R();EC=\"[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more \\u2013 https://mantine.dev/theming/colors/#primary-color\",Sp=\"[@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,ut.useContext)(ls);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 ln({theme:e,children:o,inherit:t=!0}){let r=MC(),a=(0,ut.useMemo)(()=>wp(t?r:Ur,e),[e,r,t]);return p(ls.Provider,{value:a,children:o})}var ut,ls,MC,xo=d(()=>{\"use client\";R();ut=v(y(),1);rs();_p();ls=(0,ut.createContext)(null),MC=()=>(0,ut.useContext)(ls)||Ur;ln.displayName=\"@mantine/core/MantineThemeProvider\"});function Fp(){let e=He(),o=Vt(),t=Ue(e.breakpoints).reduce((r,a)=>{let n=e.breakpoints[a].includes(\"px\"),l=wm(e.breakpoints[a]),f=n?`${l-.1}px`:Vf(l-.1),s=n?`${l}px`:Vf(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 SA,Rp=d(()=>{\"use client\";R();Lt();_m();pe();SA=v(y(),1);po();xo()});function fn(e){return Object.entries(e).map(([o,t])=>`${o}: ${t};`).join(\"\")}var Bp=d(()=>{\"use client\"});function jt(e,o){return(Array.isArray(e)?e:[e]).reduce((r,a)=>`${a}{${r}}`,o)}var Pp=d(()=>{\"use client\"});function Ap(e,o){let t=fn(e.variables),r=t?jt(o,t):\"\",a=fn(e.dark),n=fn(e.light),l=a?o===\":host\"?jt(`${o}([data-mantine-color-scheme=\"dark\"])`,a):jt(`${o}[data-mantine-color-scheme=\"dark\"]`,a):\"\",f=n?o===\":host\"?jt(`${o}([data-mantine-color-scheme=\"light\"])`,n):jt(`${o}[data-mantine-color-scheme=\"light\"]`,n):\"\";return`${r}${l}${f}`}var Ep=d(()=>{\"use client\";Bp();Pp()});function Wr({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 fs(e,o){return Wr({color:e.colors[e.primaryColor][Bo(e,o)],theme:e,autoContrast:null})}var sn=d(()=>{\"use client\";Hr();st()});function Vr({theme:e,color:o,colorScheme:t,name:r=o,withColorValues:a=!0}){if(!e.colors[o])return{};if(t===\"light\"){let f=Bo(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`]:ct(e.colors[o][f],.1),[`--mantine-color-${r}-light-hover`]:ct(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`]:ct(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=Bo(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`]:ct(e.colors[o][Math.max(0,n-2)],.15),[`--mantine-color-${r}-light-hover`]:ct(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`]:ct(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 LA,Mp=d(()=>{\"use client\";Hr();LA=v(y(),1);R();nn()});function Tp(e){return!!e&&typeof e==\"object\"&&\"mantine-virtual-color\"in e}var zA,Dp=d(()=>{zA=v(y(),1);R()});function Gt(e,o,t){Ue(o).forEach(r=>Object.assign(e,{[`--mantine-${t}-${r}`]:o[r]}))}var qA,cn,ss=d(()=>{\"use client\";Lt();pe();qA=v(y(),1);R();Hr();sn();Mp();Dp();cn=e=>{let o=Bo(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\":fs(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\":fs(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)\"}};Gt(r.variables,e.breakpoints,\"breakpoint\"),Gt(r.variables,e.spacing,\"spacing\"),Gt(r.variables,e.fontSizes,\"font-size\"),Gt(r.variables,e.lineHeights,\"line-height\"),Gt(r.variables,e.shadows,\"shadow\"),Gt(r.variables,e.radius,\"radius\"),e.colors[e.primaryColor].forEach((n,l)=>{r.variables[`--mantine-primary-color-${l}`]=`var(--mantine-color-${e.primaryColor}-${l})`}),Ue(e.colors).forEach(n=>{let l=e.colors[n];if(Tp(l)){Object.assign(r.light,Vr({theme:e,name:l.name,color:l.light,colorScheme:\"light\",withColorValues:!0})),Object.assign(r.dark,Vr({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,Vr({theme:e,color:n,colorScheme:\"light\",withColorValues:!1})),Object.assign(r.dark,Vr({theme:e,color:n,colorScheme:\"dark\",withColorValues:!1}))});let a=e.headings.sizes;return Ue(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 Lp({theme:e,generator:o}){let t=cn(e),r=o==null?void 0:o(e);return r?Er(t,r):t}var JA,kp=d(()=>{\"use client\";Wf();JA=v(y(),1);R();ss()});function Op(e){let o={variables:{},light:{},dark:{}};return Ue(e.variables).forEach(t=>{is.variables[t]!==e.variables[t]&&(o.variables[t]=e.variables[t])}),Ue(e.light).forEach(t=>{is.light[t]!==e.light[t]&&(o.light[t]=e.light[t])}),Ue(e.dark).forEach(t=>{is.dark[t]!==e.dark[t]&&(o.dark[t]=e.dark[t])}),o}var aE,is,Np=d(()=>{\"use client\";Lt();aE=v(y(),1);R();rs();ss();is=cn(Ur)});function TC(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 cs({cssVariablesSelector:e,deduplicateCssVariables:o}){let t=He(),r=Vt(),a=lp(),n=Lp({theme:t,generator:a}),l=e===\":root\"&&o,f=l?Op(n):n,s=Ap(f,e);return s?p(\"style\",{\"data-mantine-styles\":!0,nonce:r==null?void 0:r(),dangerouslySetInnerHTML:{__html:`${s}${l?\"\":TC(e)}`}}):null}var Hp=d(()=>{\"use client\";R();Ep();po();xo();kp();Np();cs.displayName=\"@mantine/CssVariables\"});function Xt(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 zp({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||(Xt(m,t),l(m),e.set(m))},[e.set,f,r]),i=(0,Io.useCallback)(()=>{l(o),Xt(o,t),e.clear()},[e.clear,o]);return(0,Io.useEffect)(()=>(e.subscribe(s),e.unsubscribe),[e.subscribe,e.unsubscribe]),no(()=>{Xt(e.get(o),t)},[]),(0,Io.useEffect)(()=>{var c;if(r)return Xt(r,t),()=>{};r===void 0&&Xt(n,t),typeof window<\"u\"&&\"matchMedia\"in window&&(a.current=window.matchMedia(\"(prefers-color-scheme: dark)\"));let m=x=>{n===\"auto\"&&Xt(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,Up=d(()=>{\"use client\";Io=v(y(),1);Ie()});function Wp({respectReducedMotion:e,getRootElement:o}){no(()=>{var t;e&&((t=o())==null||t.setAttribute(\"data-respect-reduced-motion\",\"true\"))},[e])}var Vp=d(()=>{\"use client\";Ie()});function un({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=vp(),defaultColorScheme:m=\"light\",getRootElement:c=()=>document.documentElement,cssVariablesResolver:x,forceColorScheme:I,stylesTransform:h,env:b}){let{colorScheme:S,setColorScheme:w,clearColorScheme:F}=zp({defaultColorScheme:m,forceColorScheme:I,manager:i,getRootElement:c});return Wp({respectReducedMotion:(e==null?void 0:e.respectReducedMotion)||!1,getRootElement:c}),p(tn.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(ln,{theme:e,children:[l&&p(cs,{cssVariablesSelector:f,deduplicateCssVariables:n}),a&&p(Fp,{}),o]})})}function $p({children:e,theme:o}){return p(tn.Provider,{value:{colorScheme:\"auto\",setColorScheme:()=>{},clearColorScheme:()=>{},getRootElement:()=>document.documentElement,classNamesPrefix:\"mantine\",cssVariablesSelector:\":root\",withStaticClasses:!1,headless:!0},children:p(ln,{theme:o,children:e})})}var _E,qp=d(()=>{\"use client\";R();yp();po();Rp();Hp();_E=v(y(),1);xo();Up();Vp();un.displayName=\"@mantine/core/MantineProvider\";$p.displayName=\"@mantine/core/HeadlessMantineProvider\"});function jp({classNames:e,styles:o,props:t,stylesCtx:r}){let a=He();return{resolvedClassNames:Wo({theme:a,classNames:e,props:t,stylesCtx:r||void 0}),resolvedStyles:ft({theme:a,styles:o,props:t,stylesCtx:r||void 0})}}var AE,Gp=d(()=>{\"use client\";AE=v(y(),1);R();xo();Or();en()});function Xp({theme:e,options:o,unstyled:t}){return se((o==null?void 0:o.focusable)&&!t&&(e.focusClassName||DC[e.focusRing]),(o==null?void 0:o.active)&&!t&&e.activeClassName)}var DC,Kp=d(()=>{\"use client\";k();DC={always:\"mantine-focus-always\",auto:\"mantine-focus-auto\",never:\"mantine-focus-never\"}});function Yp({selector:e,stylesCtx:o,options:t,props:r,theme:a}){return Wo({theme:a,classNames:t==null?void 0:t.classNames,props:(t==null?void 0:t.props)||r,stylesCtx:o})[e]}var Zp=d(()=>{\"use client\";Or()});function us({selector:e,stylesCtx:o,theme:t,classNames:r,props:a}){return Wo({theme:t,classNames:r,props:a,stylesCtx:o})[e]}var Qp=d(()=>{\"use client\";Or()});function Jp({rootSelector:e,selector:o,className:t}){return e===o?t:void 0}var ex=d(()=>{\"use client\"});function ox({selector:e,classes:o,unstyled:t}){return t?void 0:o[e]}var tx=d(()=>{\"use client\"});function rx({themeName:e,classNamesPrefix:o,selector:t,withStaticClass:r}){return r===!1?[]:e.map(a=>`${o}-${a}-${t}`)}var ax=d(()=>{\"use client\"});function nx({themeName:e,theme:o,selector:t,props:r,stylesCtx:a}){return e.map(n=>{var l,f;return(f=Wo({theme:o,classNames:(l=o.components[n])==null?void 0:l.classNames,props:r,stylesCtx:a}))==null?void 0:f[t]})}var lx=d(()=>{\"use client\";Or()});function fx({options:e,classes:o,selector:t,unstyled:r}){return e!=null&&e.variant&&!r?o[`${t}--${e.variant}`]:void 0}var sx=d(()=>{\"use client\"});function ix({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 se(Xp({theme:e,options:o,unstyled:f||I}),nx({theme:e,themeName:t,selector:r,props:m,stylesCtx:c}),fx({options:o,classes:l,selector:r,unstyled:f}),us({selector:r,stylesCtx:c,theme:e,classNames:n,props:m}),us({selector:r,stylesCtx:c,theme:e,classNames:h,props:m}),Yp({selector:r,stylesCtx:c,options:o,props:m,theme:e}),Jp({rootSelector:i,selector:r,className:s}),ox({selector:r,classes:l,unstyled:f||I}),x&&!I&&rx({themeName:t,classNamesPrefix:a,selector:r,withStaticClass:o==null?void 0:o.withStaticClass}),o==null?void 0:o.className)}var cx=d(()=>{\"use client\";k();Kp();Zp();Qp();ex();tx();ax();lx();sx()});function ux({theme:e,themeName:o,props:t,stylesCtx:r,selector:a}){return o.map(n=>{var l;return ft({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 dx=d(()=>{\"use client\";en()});function dn({style:e,theme:o}){return Array.isArray(e)?[...e].reduce((t,r)=>u(u({},t),dn({style:r,theme:o})),{}):typeof e==\"function\"?e(o):e==null?{}:e}var mx=d(()=>{\"use client\"});function px(e){return e.reduce((o,t)=>(t&&Object.keys(t).forEach(r=>{o[r]=u(u({},o[r]),kt(t[r]))}),o),{})}var cM,xx=d(()=>{\"use client\";ja();cM=v(y(),1);R()});function Ix({vars:e,varsResolver:o,theme:t,props:r,stylesCtx:a,selector:n,themeName:l,headless:f}){var s;return(s=px([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 hx=d(()=>{\"use client\";xx()});function gx({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&&ux({theme:e,themeName:o,props:a,stylesCtx:n,selector:t})),!x&&ft({theme:e,styles:f,props:a,stylesCtx:n})[t]),!x&&ft({theme:e,styles:r==null?void 0:r.styles,props:(r==null?void 0:r.props)||a,stylesCtx:n})[t]),Ix({theme:e,props:a,stylesCtx:n,vars:i,varsResolver:m,selector:t,themeName:o,headless:c})),l===t?dn({style:s,theme:e}):null),dn({style:r==null?void 0:r.style,theme:e}))}var bx=d(()=>{\"use client\";dx();mx();en();hx()});function vx({props:e,stylesCtx:o,themeName:t}){var l;let r=He(),a=(l=up())==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 SM,yx=d(()=>{\"use client\";SM=v(y(),1);R();po();xo()});function U({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=fp(),h=sp(),b=ip(),S=(Array.isArray(e)?e:[e]).filter(B=>B),{withStylesTransform:w,getTransformedStyles:F}=vx({props:t,stylesCtx:r,themeName:S});return(B,A)=>({className:ix({theme:x,options:A,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([A==null?void 0:A.styles,i])}),style:gx({theme:x,themeName:S,selector:B,options:A,props:t,stylesCtx:r,rootSelector:l,styles:i,style:n,vars:m,varsResolver:c,headless:b,withStylesTransform:w})})}var RM,ae=d(()=>{\"use client\";RM=v(y(),1);R();po();xo();cx();bx();yx()});function mn(e,o){return typeof e==\"boolean\"?e:o.autoContrast}var ds=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 OM,j=d(()=>{\"use client\";ja();OM=v(y(),1);R();xo()});function pn(e){return Ue(e).reduce((o,t)=>e[t]!==void 0?`${o}${Sm(t)}:${e[t]};`:o,\"\").trim()}var $M,Sx=d(()=>{\"use client\";Lt();Cm();$M=v(y(),1);R()});function Cx({selector:e,styles:o,media:t,container:r}){let a=o?pn(o):\"\",n=Array.isArray(t)?t.map(f=>`@media${f.query}{${e}{${pn(f.styles)}}}`):[],l=Array.isArray(r)?r.map(f=>`@container ${f.query}{${e}{${pn(f.styles)}}}`):[];return`${a?`${e}{${a}}`:\"\"}${n.join(\"\")}${l.join(\"\")}`.trim()}var wx=d(()=>{\"use client\";Sx()});function _x(e){let o=Vt();return p(\"style\",{\"data-mantine-styles\":\"inline\",nonce:o==null?void 0:o(),dangerouslySetInnerHTML:{__html:Cx(e)}})}var YM,Fx=d(()=>{\"use client\";R();YM=v(y(),1);po();wx()});function $o(e){let Fc=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:A,c:D,opacity:O,ff:P,fz:E,fw:T,lts:W,ta:V,lh:q,fs:de,tt:Y,td:ve,w:te,miw:ye,maw:De,h:Pe,mih:ge,mah:je,bgsz:Qo,bgp:Se,bgr:No,bga:Je,pos:Ho,top:Jo,left:wt,bottom:ma,right:fl,inset:uy,display:dy,flex:my,hiddenFrom:py,visibleFrom:xy,lightHidden:Iy,darkHidden:hy,sx:gy}=Fc,by=C(Fc,[\"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:A,c:D,opacity:O,ff:P,fz:E,fw:T,lts:W,ta:V,lh:q,fs:de,tt:Y,td:ve,w:te,miw:ye,maw:De,h:Pe,mih:ge,mah:je,bgsz:Qo,bgp:Se,bgr:No,bga:Je,pos:Ho,top:Jo,left:wt,bottom:ma,right:fl,inset:uy,display:dy,flex:my,hiddenFrom:py,visibleFrom:xy,lightHidden:Iy,darkHidden:hy,sx:gy}),rest:by}}var oT,$r=d(()=>{\"use client\";ja();oT=v(y(),1);R()});var Rx,Bx=d(()=>{\"use client\";Rx={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 qr(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 Px(e,o){let t=Ye({color:e,theme:o});return t.isThemeColor&&t.shade===void 0?`var(--mantine-color-${t.color}-text)`:qr(e,o)}var fT,ms=d(()=>{\"use client\";st();fT=v(y(),1);R()});function Ax(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+=` ${qr(a.join(\" \"),o)}`),n.trim()}return e}var uT,Ex=d(()=>{\"use client\";pe();uT=v(y(),1);R();ms()});function Tx(e){return typeof e==\"string\"&&e in Mx?Mx[e]:e}var Mx,Dx=d(()=>{\"use client\";Mx={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 Lx(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 hT,LC,kx=d(()=>{\"use client\";pe();hT=v(y(),1);R();LC=[\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\"]});function Ox(e){return e}var Nx=d(()=>{\"use client\"});function Hx(e,o){return typeof e==\"string\"&&e in o.lineHeights?`var(--mantine-line-height-${e})`:typeof e==\"string\"&&kC.includes(e)?`var(--mantine-${e}-line-height)`:e}var kC,zx=d(()=>{\"use client\";kC=[\"h1\",\"h2\",\"h3\",\"h4\",\"h5\",\"h6\"]});function Ux(e){return typeof e==\"number\"?_(e):e}var CT,Wx=d(()=>{\"use client\";pe();CT=v(y(),1);R()});function Vx(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 RT,$x=d(()=>{\"use client\";pe();RT=v(y(),1);R()});var xn,qx=d(()=>{\"use client\";Ex();ms();Dx();kx();Nx();zx();Wx();$x();xn={color:qr,textColor:Px,fontSize:Lx,spacing:Vx,identity:Ox,size:Ux,lineHeight:Hx,fontFamily:Tx,border:Ax}});function jx(e){return e.replace(\"(min-width: \",\"\").replace(\"em)\",\"\")}function Gx(t){var r=t,{media:e}=r,o=C(r,[\"media\"]);let n=Object.keys(e).sort((l,f)=>Number(jx(l))-Number(jx(f))).map(l=>({query:l,styles:e[l]}));return g(u({},o),{media:n})}var Xx=d(()=>{\"use client\"});function OC(e){if(typeof e!=\"object\"||e===null)return!1;let o=Object.keys(e);return!(o.length===1&&o[0]===\"base\")}function NC(e){return typeof e==\"object\"&&e!==null?\"base\"in e?e.base:void 0:e}function HC(e){return typeof e==\"object\"&&e!==null?Ue(e).filter(o=>o!==\"base\"):[]}function zC(e,o){return typeof e==\"object\"&&e!==null&&o in e?e[o]:e}function Kx({styleProps:e,data:o,theme:t}){return Gx(Ue(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=NC(e[a]);if(!OC(e[a]))return l.forEach(i=>{r.inlineStyles[i]=xn[n.type](f,t)}),r;r.hasResponsiveStyles=!0;let s=HC(e[a]);return l.forEach(i=>{f&&(r.styles[i]=xn[n.type](f,t)),s.forEach(m=>{let c=`(min-width: ${t.breakpoints[m]})`;r.media[c]=g(u({},r.media[c]),{[i]:xn[n.type](zC(e[a],m),t)})})}),r},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}var WT,Yx=d(()=>{\"use client\";Lt();WT=v(y(),1);R();qx();Xx()});function Qx(){return`__m__-${(0,Zx.useId)().replace(/:/g,\"\")}`}var Zx,Jx=d(()=>{\"use client\";Zx=v(y(),1)});function eI(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[eI(t)]=e[t]),o},{})}function ps(e){return e?typeof e==\"string\"?{[eI(e)]:!0}:Array.isArray(e)?[...e].reduce((o,t)=>u(u({},o),ps(t)),{}):UC(e):null}var oI=d(()=>{\"use client\"});function xs(e,o){return Array.isArray(e)?[...e].reduce((t,r)=>u(u({},t),xs(r,o)),{}):typeof e==\"function\"?e(o):e==null?{}:e}function tI({theme:e,style:o,vars:t,styleProps:r}){let a=xs(o,e),n=xs(t,e);return u(u(u({},a),n),r)}var rI=d(()=>{\"use client\"});var aI,nI,L,Z=d(()=>{\"use client\";R();aI=v(y(),1);k();Fx();$f();po();xo();oI();rI();$r();Bx();Yx();Jx();nI=(0,aI.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 W;let w=He(),F=e||\"div\",{styleProps:B,rest:A}=$o(I),D=cp(),O=(W=D==null?void 0:D())==null?void 0:W(B.sx),P=Qx(),E=Kx({styleProps:B,theme:w,data:Rx}),T=u(u({ref:h,style:tI({theme:w,style:o,vars:t,styleProps:E.inlineStyles}),className:se(r,O,{[P]: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\":Ga(l)?void 0:l||void 0,size:x},ps(n)),A);return p(Ce,{children:[E.hasResponsiveStyles&&p(_x,{selector:`.${P}`,styles:E.styles,media:E.media}),typeof c==\"function\"?c(T):p(F,u({},T))]})});nI.displayName=\"@mantine/core/Box\";L=nI});function hs(e){return e}function N(e){let o=(0,Is.forwardRef)(e);return o.extend=hs,o.withProps=t=>{let r=(0,Is.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 Is,ee=d(()=>{\"use client\";R();Is=v(y(),1)});function Fe(e){let o=(0,gs.forwardRef)(e);return o.withProps=t=>{let r=(0,gs.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=hs,o}var gs,ho=d(()=>{\"use client\";R();gs=v(y(),1);ee()});function In(){return(0,jr.useContext)(WC)}var jr,WC,bs=d(()=>{\"use client\";R();jr=v(y(),1),WC=(0,jr.createContext)({dir:\"ltr\",toggleDirection:()=>{},setDirection:()=>{}})});function fI(e){return Xe.useMemo(()=>e.every(o=>o==null)?null:o=>{e.forEach(t=>{typeof t==\"function\"?t(o):t!=null&&(t.current=o)})},e)}var Xe,vs,lI,sI,CD,VC,$C,qC,jC,GC,XC,wD,_D,iI=d(()=>{Xe=v(y(),1),vs=v(y(),1),lI=v(y(),1);sI=u({},Xe),CD=sI.useInsertionEffect,VC=\"ArrowUp\",$C=\"ArrowDown\",qC=\"ArrowLeft\",jC=\"ArrowRight\",GC=[qC,jC],XC=[VC,$C],wD=[...GC,...XC],_D=sI.useId});var BD,cI,he,Ze=d(()=>{\"use client\";BD=v(y(),1);Mr();R();k();[cI,he]=zo(\"ScrollArea.Root component was not found in tree\")});function Po(e,o){let t=ao(o);no(()=>{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 hn=d(()=>{\"use client\";Ie()});var Kt,KC,uI,dI=d(()=>{\"use client\";R();Kt=v(y(),1);Ze();hn();KC=(0,Kt.forwardRef)((e,o)=>{let m=e,{style:t}=m,r=C(m,[\"style\"]),a=he(),[n,l]=(0,Kt.useState)(0),[f,s]=(0,Kt.useState)(0),i=!!(n&&f);return Po(a.scrollbarX,()=>{var x;let c=((x=a.scrollbarX)==null?void 0:x.offsetHeight)||0;a.onCornerHeightChange(c),s(c)}),Po(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}),uI=(0,Kt.forwardRef)((e,o)=>{let t=he(),r=!!(t.scrollbarX&&t.scrollbarY);return t.type!==\"scroll\"&&r?p(KC,g(u({},e),{ref:o})):null})});var oo,YC,ys,mI=d(()=>{\"use client\";R();oo=v(y(),1);Ie();k();j();Z();Ze();YC={scrollHideDelay:1e3,type:\"hover\"},ys=(0,oo.forwardRef)((e,o)=>{let W=M(\"ScrollAreaRoot\",YC,e),{type:t,scrollHideDelay:r,scrollbars:a,getStyles:n}=W,l=C(W,[\"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,A]=(0,oo.useState)(0),[D,O]=(0,oo.useState)(!1),[P,E]=(0,oo.useState)(!1),T=We(o,V=>s(V));return p(cI,{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:P,onScrollbarYEnabledChange:E,onCornerWidthChange:F,onCornerHeightChange:A,getStyles:n},children:p(L,g(u({},l),{ref:T,__vars:{\"--sa-corner-width\":a!==\"xy\"?\"0px\":`${w}px`,\"--sa-corner-height\":a!==\"xy\"?\"0px\":`${B}px`}}))})});ys.displayName=\"@mantine/core/ScrollAreaRoot\"});function gn(e,o){let t=e/o;return Number.isNaN(t)?0:t}var Ss=d(()=>{\"use client\"});function qo(e){let o=gn(e.viewport,e.content),t=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,r=(e.scrollbar.size-t)*o;return Math.max(r,18)}var Gr=d(()=>{\"use client\";Ss()});function bn(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 Cs=d(()=>{\"use client\"});function ZC(e,[o,t]){return Math.min(t,Math.max(o,e))}function ws(e,o,t=\"ltr\"){let r=qo(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=ZC(e,s);return bn([0,l],[0,f])(i)}var pI=d(()=>{\"use client\";Gr();Cs()});function xI(e,o,t,r=\"ltr\"){let a=qo(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 bn([s,i],c)(e)}var II=d(()=>{\"use client\";Gr();Cs()});function vn(e,o){return e>0&&e<o}var _s=d(()=>{\"use client\"});function Yt(e){return e?parseInt(e,10):0}var Fs=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 yn=d(()=>{\"use client\"});var f1,hI,Rs,Bs=d(()=>{\"use client\";f1=v(y(),1);Mr();R();k();[hI,Rs]=zo(\"ScrollAreaScrollbar was not found in tree\")});var bo,Sn,Ps=d(()=>{\"use client\";R();bo=v(y(),1);Ie();Ze();hn();yn();Bs();Sn=(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=he(),[I,h]=(0,bo.useState)(null),b=We(o,T=>h(T)),S=(0,bo.useRef)(null),w=(0,bo.useRef)(\"\"),{viewport:F}=x,B=t.content-t.viewport,A=ao(i),D=ao(f),O=Ro(m,10),P=T=>{if(S.current){let W=T.clientX-S.current.left,V=T.clientY-S.current.top;s({x:W,y:V})}};return(0,bo.useEffect)(()=>{let T=W=>{let V=W.target;(I==null?void 0:I.contains(V))&&A(W,B)};return document.addEventListener(\"wheel\",T,{passive:!1}),()=>document.removeEventListener(\"wheel\",T,{passive:!1})},[F,I,B,A]),(0,bo.useEffect)(D,[t,D]),Po(I,O),Po(x.content,O),p(hI,{value:{scrollbar:I,hasThumb:r,onThumbChange:ao(a),onThumbPointerUp:ao(n),onThumbPositionChange:D,onThumbPointerDown:ao(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\",P(T))}),onPointerMove:go(e.onPointerMove,P),onPointerUp:go(e.onPointerUp,T=>{let W=T.target;W.hasPointerCapture(T.pointerId)&&(T.preventDefault(),W.releasePointerCapture(T.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=w.current,S.current=null}}))})})});var jo,As,gI=d(()=>{\"use client\";R();jo=v(y(),1);Ie();Ze();_s();Gr();Fs();Ps();As=(0,jo.forwardRef)((e,o)=>{let c=e,{sizes:t,onSizesChange:r,style:a}=c,n=C(c,[\"sizes\",\"onSizesChange\",\"style\"]),l=he(),[f,s]=(0,jo.useState)(),i=(0,jo.useRef)(null),m=We(o,i,l.onScrollbarXChange);return(0,jo.useEffect)(()=>{i.current&&s(getComputedStyle(i.current))},[i]),p(Sn,g(u({\"data-orientation\":\"horizontal\"},n),{ref:m,sizes:t,style:g(u({},a),{\"--sa-thumb-width\":`${qo(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),vn(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:Yt(f.paddingLeft),paddingEnd:Yt(f.paddingRight)}})}}))});As.displayName=\"@mantine/core/ScrollAreaScrollbarX\"});var Go,Es,bI=d(()=>{\"use client\";R();Go=v(y(),1);Ie();Ze();_s();Gr();Fs();Ps();Es=(0,Go.forwardRef)((e,o)=>{let c=e,{sizes:t,onSizesChange:r,style:a}=c,n=C(c,[\"sizes\",\"onSizesChange\",\"style\"]),l=he(),[f,s]=(0,Go.useState)(),i=(0,Go.useRef)(null),m=We(o,i,l.onScrollbarYChange);return(0,Go.useEffect)(()=>{i.current&&s(window.getComputedStyle(i.current))},[]),p(Sn,g(u({},n),{\"data-orientation\":\"vertical\",ref:m,sizes:t,style:u({\"--sa-thumb-height\":`${qo(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),vn(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:Yt(f.paddingTop),paddingEnd:Yt(f.paddingBottom)}})}}))});Es.displayName=\"@mantine/core/ScrollAreaScrollbarY\"});var dt,mt,Cn=d(()=>{\"use client\";R();dt=v(y(),1);k();bs();Ze();Ss();pI();II();gI();bI();mt=(0,dt.forwardRef)((e,o)=>{let I=e,{orientation:t=\"vertical\"}=I,r=C(I,[\"orientation\"]),{dir:a}=In(),n=he(),l=(0,dt.useRef)(null),f=(0,dt.useRef)(0),[s,i]=(0,dt.useState)({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),m=gn(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)=>xI(h,f.current,s,b);return t===\"horizontal\"?p(As,g(u({},c),{ref:o,onThumbPositionChange:()=>{if(n.viewport&&l.current){let h=n.viewport.scrollLeft,b=ws(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(Es,g(u({},c),{ref:o,onThumbPositionChange:()=>{if(n.viewport&&l.current){let h=n.viewport.scrollTop,b=ws(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});mt.displayName=\"@mantine/core/ScrollAreaScrollbarVisible\"});var wn,Xr,Ms=d(()=>{\"use client\";R();wn=v(y(),1);Ie();Ze();hn();Cn();Xr=(0,wn.forwardRef)((e,o)=>{let t=he(),i=e,{forceMount:r}=i,a=C(i,[\"forceMount\"]),[n,l]=(0,wn.useState)(!1),f=e.orientation===\"horizontal\",s=Ro(()=>{if(t.viewport){let m=t.viewport.offsetWidth<t.viewport.scrollWidth,c=t.viewport.offsetHeight<t.viewport.scrollHeight;l(f?m:c)}},10);return Po(t.viewport,s),Po(t.content,s),r||n?p(mt,g(u({\"data-state\":n?\"visible\":\"hidden\"},a),{ref:o})):null});Xr.displayName=\"@mantine/core/ScrollAreaScrollbarAuto\"});var Zt,Ts,vI=d(()=>{\"use client\";R();Zt=v(y(),1);Ze();Ms();Ts=(0,Zt.forwardRef)((e,o)=>{let f=e,{forceMount:t}=f,r=C(f,[\"forceMount\"]),a=he(),[n,l]=(0,Zt.useState)(!1);return(0,Zt.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(Xr,g(u({\"data-state\":n?\"visible\":\"hidden\"},r),{ref:o})):null});Ts.displayName=\"@mantine/core/ScrollAreaScrollbarHover\"});var pt,yI,SI=d(()=>{\"use client\";R();pt=v(y(),1);Ie();Ze();yn();Cn();yI=(0,pt.forwardRef)((e,o)=>{let i=e,{forceMount:t}=i,r=C(i,[\"forceMount\"]),a=he(),n=e.orientation===\"horizontal\",[l,f]=(0,pt.useState)(\"hidden\"),s=Ro(()=>f(\"idle\"),100);return(0,pt.useEffect)(()=>{if(l===\"idle\"){let m=window.setTimeout(()=>f(\"hidden\"),a.scrollHideDelay);return()=>window.clearTimeout(m)}},[l,a.scrollHideDelay]),(0,pt.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(mt,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 _n,Fn,CI=d(()=>{\"use client\";R();_n=v(y(),1);Ze();Ms();vI();SI();Cn();Fn=(0,_n.forwardRef)((e,o)=>{let s=e,{forceMount:t}=s,r=C(s,[\"forceMount\"]),a=he(),{onScrollbarXEnabledChange:n,onScrollbarYEnabledChange:l}=a,f=e.orientation===\"horizontal\";return(0,_n.useEffect)(()=>(f?n(!0):l(!0),()=>{f?n(!1):l(!1)}),[f,n,l]),a.type===\"hover\"?p(Ts,g(u({},r),{ref:o,forceMount:t})):a.type===\"scroll\"?p(yI,g(u({},r),{ref:o,forceMount:t})):a.type===\"auto\"?p(Xr,g(u({},r),{ref:o,forceMount:t})):a.type===\"always\"?p(mt,g(u({},r),{ref:o})):null});Fn.displayName=\"@mantine/core/ScrollAreaScrollbar\"});function wI(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 _I=d(()=>{\"use client\"});var xt,FI,Rn,RI=d(()=>{\"use client\";R();xt=v(y(),1);Ie();Ze();Bs();yn();_I();FI=(0,xt.forwardRef)((e,o)=>{let m=e,{style:t}=m,r=C(m,[\"style\"]),a=he(),n=Rs(),{onThumbPositionChange:l}=n,f=We(o,c=>n.onThumbChange(c)),s=(0,xt.useRef)(void 0),i=Ro(()=>{s.current&&(s.current(),s.current=void 0)},100);return(0,xt.useEffect)(()=>{let{viewport:c}=a;if(c){let x=()=>{if(i(),!s.current){let I=wI(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)}))});FI.displayName=\"@mantine/core/ScrollAreaThumb\";Rn=(0,xt.forwardRef)((e,o)=>{let n=e,{forceMount:t}=n,r=C(n,[\"forceMount\"]),a=Rs();return t||a.hasThumb?p(FI,u({ref:o},r)):null});Rn.displayName=\"@mantine/core/ScrollAreaThumb\"});var BI,Ds,PI=d(()=>{\"use client\";R();BI=v(y(),1);Ie();k();Z();Ze();Ds=(0,BI.forwardRef)((a,r)=>{var n=a,{children:e,style:o}=n,t=C(n,[\"children\",\"style\"]);let l=he(),f=We(r,l.onViewportChange);return p(L,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}))}))});Ds.displayName=\"@mantine/core/ScrollAreaViewport\"});var Bn,AI=d(()=>{\"use client\";Bn={root:\"m_d57069b5\",viewport:\"m_c0783ff9\",viewportInner:\"m_f8f631dd\",scrollbar:\"m_c44ba933\",thumb:\"m_d8b5e363\",corner:\"m_21657268\",content:\"m_b1336c6\"}});var Xo,EI,QC,Qt,Ls,MI=d(()=>{\"use client\";R();Xo=v(y(),1);iI();pe();k();j();ae();Z();ee();dI();mI();CI();RI();PI();AI();EI={scrollHideDelay:1e3,type:\"hover\",scrollbars:\"xy\"},QC=(e,{scrollbarSize:o,overscrollBehavior:t})=>({root:{\"--scrollarea-scrollbar-size\":_(o),\"--scrollarea-over-scroll-behavior\":t}}),Qt=N((e,o)=>{let t=M(\"ScrollArea\",EI,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:A}=ve,D=C(ve,[\"classNames\",\"className\",\"style\",\"styles\",\"unstyled\",\"scrollbarSize\",\"vars\",\"type\",\"scrollHideDelay\",\"viewportProps\",\"viewportRef\",\"onScrollPositionChange\",\"children\",\"offsetScrollbars\",\"scrollbars\",\"onBottomReached\",\"onTopReached\",\"overscrollBehavior\"]),[O,P]=(0,Xo.useState)(!1),[E,T]=(0,Xo.useState)(!1),[W,V]=(0,Xo.useState)(!1),q=U({name:\"ScrollArea\",props:t,classes:Bn,className:a,style:n,classNames:r,styles:l,unstyled:f,vars:i,varsResolver:QC}),de=(0,Xo.useRef)(null),Y=fI([I,de]);return(0,Xo.useEffect)(()=>{if(!de.current||S!==\"present\")return;let te=de.current,ye=new ResizeObserver(()=>{let{scrollHeight:De,clientHeight:Pe,scrollWidth:ge,clientWidth:je}=te;T(De>Pe),V(ge>je)});return ye.observe(te),()=>ye.disconnect()},[de,S]),p(ys,g(u(u({getStyles:q,type:m===\"never\"?\"always\":m,scrollHideDelay:c,ref:o,scrollbars:w},q(\"root\")),D),{children:[p(Ds,g(u(u({},x),q(\"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\"&&!W?\"true\":void 0,\"data-vertical-hidden\":S===\"present\"&&!E?\"true\":void 0,onScroll:te=>{var ge;(ge=x==null?void 0:x.onScroll)==null||ge.call(x,te),h==null||h({x:te.currentTarget.scrollLeft,y:te.currentTarget.scrollTop});let{scrollTop:ye,scrollHeight:De,clientHeight:Pe}=te.currentTarget;ye-(De-Pe)>=0&&(F==null||F()),ye===0&&(B==null||B())},children:b})),(w===\"xy\"||w===\"x\")&&p(Fn,g(u({},q(\"scrollbar\")),{orientation:\"horizontal\",\"data-hidden\":m===\"never\"||S===\"present\"&&!W?!0:void 0,forceMount:!0,onMouseEnter:()=>P(!0),onMouseLeave:()=>P(!1),children:p(Rn,u({},q(\"thumb\")))})),(w===\"xy\"||w===\"y\")&&p(Fn,g(u({},q(\"scrollbar\")),{orientation:\"vertical\",\"data-hidden\":m===\"never\"||S===\"present\"&&!E?!0:void 0,forceMount:!0,onMouseEnter:()=>P(!0),onMouseLeave:()=>P(!1),children:p(Rn,u({},q(\"thumb\")))})),p(uI,g(u({},q(\"corner\")),{\"data-hovered\":O||void 0,\"data-hidden\":m===\"never\"||void 0}))]}))});Qt.displayName=\"@mantine/core/ScrollArea\";Ls=N((e,o)=>{let D=M(\"ScrollAreaAutosize\",EI,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,A=C(D,[\"children\",\"classNames\",\"styles\",\"scrollbarSize\",\"scrollHideDelay\",\"type\",\"dir\",\"offsetScrollbars\",\"viewportRef\",\"onScrollPositionChange\",\"unstyled\",\"variant\",\"viewportProps\",\"scrollbars\",\"style\",\"vars\",\"onBottomReached\",\"onTopReached\"]);return p(L,g(u({},A),{ref:o,style:[{display:\"flex\",overflow:\"auto\"},S],children:p(L,{style:{display:\"flex\",flexDirection:\"column\",flex:1},children:p(Qt,{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})})}))});Qt.classes=Bn;Ls.displayName=\"@mantine/core/ScrollAreaAutosize\";Ls.classes=Bn;Qt.Autosize=Ls});var ks,TI=d(()=>{\"use client\";ks={root:\"m_87cf2631\"}});var rk,JC,vo,Kr=d(()=>{\"use client\";R();rk=v(y(),1);k();j();ae();Z();ho();TI();JC={__staticSelector:\"UnstyledButton\"},vo=Fe((e,o)=>{let t=M(\"UnstyledButton\",JC,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=U({name:n,props:t,classes:ks,className:r,style:i,classNames:f,styles:s,unstyled:l});return p(L,u(g(u({},c(\"root\",{focusable:!0})),{component:a,ref:o,type:a===\"button\"?\"button\":void 0}),m))});vo.classes=ks;vo.displayName=\"@mantine/core/UnstyledButton\"});var Os,DI=d(()=>{\"use client\";Os={root:\"m_515a97f8\"}});var pk,e0,Pn,LI=d(()=>{\"use client\";R();pk=v(y(),1);k();j();ae();Z();ee();DI();e0={},Pn=N((e,o)=>{let t=M(\"VisuallyHidden\",e0,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=U({name:\"VisuallyHidden\",classes:Os,props:t,className:a,style:n,classNames:r,styles:l,unstyled:f});return p(L,u(u({component:\"span\",ref:o},m(\"root\")),i))});Pn.classes=Os;Pn.displayName=\"@mantine/core/VisuallyHidden\"});var Ns,kI=d(()=>{\"use client\";Ns={root:\"m_1b7284a3\"}});var _k,o0,t0,An,OI=d(()=>{\"use client\";R();_k=v(y(),1);xe();k();j();ae();Z();ho();kI();o0={},t0=(e,{radius:o,shadow:t})=>({root:{\"--paper-radius\":o===void 0?void 0:ie(o),\"--paper-shadow\":Za(t)}}),An=Fe((e,o)=>{let t=M(\"Paper\",o0,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=U({name:\"Paper\",props:t,classes:Ns,className:a,style:n,classNames:r,styles:l,unstyled:f,vars:i,varsResolver:t0});return p(L,u(g(u({ref:o,mod:[{\"data-with-border\":s},I]},b(\"root\")),{variant:x}),h))});An.classes=Ns;An.displayName=\"@mantine/core/Paper\"});var Hs,NI=d(()=>{\"use client\";Hs={root:\"m_9814e45f\"}});var Nk,r0,a0,En,HI=d(()=>{\"use client\";R();pe();Nk=v(y(),1);Nt();xe();k();nn();j();ae();Z();ho();NI();r0={zIndex:ro(\"modal\")},a0=(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()}}),En=Fe((e,o)=>{let t=M(\"Overlay\",r0,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\"]),A=U({name:\"Overlay\",props:t,classes:Hs,className:a,style:n,classNames:r,styles:l,unstyled:f,vars:s,varsResolver:a0});return p(L,g(u(g(u({ref:o},A(\"root\")),{mod:[{center:m,fixed:i},F]}),B),{children:c}))});En.classes=Hs;En.displayName=\"@mantine/core/Overlay\"});function zs(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 n0(r){var a=r,{target:e,reuseTargetNode:o}=a,t=C(a,[\"target\",\"reuseTargetNode\"]);if(e)return typeof e==\"string\"?document.querySelector(e)||zs(t):e;if(o){let n=document.querySelector(\"[data-mantine-shared-portal-node]\");if(n)return n;let l=zs(t);return l.setAttribute(\"data-mantine-shared-portal-node\",\"true\"),document.body.appendChild(l),l}return zs(t)}var Mn,zI,l0,Us,UI=d(()=>{\"use client\";R();Mn=v(y(),1),zI=v(y(),1);Ie();k();j();ee();l0={reuseTargetNode:!0},Us=N((e,o)=>{let i=M(\"Portal\",l0,e),{children:t,target:r,reuseTargetNode:a}=i,n=C(i,[\"children\",\"target\",\"reuseTargetNode\"]),[l,f]=(0,Mn.useState)(!1),s=(0,Mn.useRef)(null);return no(()=>(f(!0),s.current=n0(u({target:r,reuseTargetNode:a},n)),Lr(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,zI.createPortal)(p(Ce,{children:t}),s.current)});Us.displayName=\"@mantine/core/Portal\"});var aO,Ws,WI=d(()=>{\"use client\";R();aO=v(y(),1);k();po();ee();UI();Ws=N((a,r)=>{var n=a,{withinPortal:e=!0,children:o}=n,t=C(n,[\"withinPortal\",\"children\"]);return rn()===\"test\"||!e?p(Ce,{children:o}):p(Us,g(u({ref:r},t),{children:o}))});Ws.displayName=\"@mantine/core/OptionalPortal\"});var Yr,Zr,VI=d(()=>{\"use client\";Yr=e=>({in:{opacity:1,transform:\"scale(1)\"},out:{opacity:0,transform:`scale(.9) translateY(${e===\"bottom\"?10:-10}px)`},transitionProperty:\"transform, opacity\"}),Zr={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({},Yr(\"bottom\")),{common:{transformOrigin:\"center center\"}}),\"pop-bottom-left\":g(u({},Yr(\"bottom\")),{common:{transformOrigin:\"bottom left\"}}),\"pop-bottom-right\":g(u({},Yr(\"bottom\")),{common:{transformOrigin:\"bottom right\"}}),\"pop-top-left\":g(u({},Yr(\"top\")),{common:{transformOrigin:\"top left\"}}),\"pop-top-right\":g(u({},Yr(\"top\")),{common:{transformOrigin:\"top right\"}})}});function qI({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 Zr?u(u(u({transitionProperty:Zr[e].transitionProperty},a),Zr[e].common),Zr[e][$I[o]]):{}:u(u(u({transitionProperty:e.transitionProperty},a),e.common),e[$I[o]])}var $I,jI=d(()=>{\"use client\";VI();$I={entering:\"in\",entered:\"in\",exiting:\"out\",exited:\"out\",\"pre-exiting\":\"out\",\"pre-entering\":\"out\"}});function XI({duration:e,exitDuration:o,timingFunction:t,mounted:r,onEnter:a,onExit:n,onEntered:l,onExited:f,enterDelay:s,exitDelay:i}){let m=He(),c=kr(),x=m.respectReducedMotion?c:!1,[I,h]=(0,Ao.useState)(x?0:e),[b,S]=(0,Ao.useState)(r?\"entered\":\"exited\"),w=(0,Ao.useRef)(-1),F=(0,Ao.useRef)(-1),B=(0,Ao.useRef)(-1);function A(){window.clearTimeout(w.current),window.clearTimeout(F.current),cancelAnimationFrame(B.current)}let D=P=>{A();let E=P?a:n,T=P?l:f,W=x?0:P?e:o;h(W),W===0?(typeof E==\"function\"&&E(),typeof T==\"function\"&&T(),S(P?\"entered\":\"exited\")):B.current=requestAnimationFrame(()=>{GI.default.flushSync(()=>{S(P?\"pre-entering\":\"pre-exiting\")}),B.current=requestAnimationFrame(()=>{typeof E==\"function\"&&E(),S(P?\"entering\":\"exiting\"),w.current=window.setTimeout(()=>{typeof T==\"function\"&&T(),S(P?\"entered\":\"exited\")},W)})})},O=P=>{if(A(),typeof(P?s:i)!=\"number\"){D(P);return}F.current=window.setTimeout(()=>{D(P)},P?s:i)};return Dr(()=>{O(r)},[r]),(0,Ao.useEffect)(()=>()=>{A()},[]),{transitionDuration:I,transitionStatus:b,transitionTimingFunction:t||\"ease\"}}var Ao,GI,KI=d(()=>{\"use client\";Ao=v(y(),1),GI=v(y(),1);Ie();R();k();xo()});function Eo({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=rn(),{transitionDuration:h,transitionStatus:b,transitionTimingFunction:S}=XI({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(Ce,{children:n({})}):e?n({display:\"none\"}):null:b===\"exited\"?e?n({display:\"none\"}):null:p(Ce,{children:n(qI({transition:o,duration:h,state:b,timingFunction:S}))})}var SO,Qr=d(()=>{\"use client\";R();SO=v(y(),1);k();po();jI();KI();Eo.displayName=\"@mantine/core/Transition\"});function It({children:e,active:o=!0,refProp:t=\"ref\",innerRef:r}){let a=Qf(o),n=We(a,r);return Pm(e)?(0,YI.cloneElement)(e,{[t]:n}):e}function Vs(e){return p(Pn,u({tabIndex:-1,\"data-autofocus\":!0},e))}var YI,$s=d(()=>{\"use client\";R();YI=v(y(),1);Ie();Am();k();LI();It.displayName=\"@mantine/core/FocusTrap\";Vs.displayName=\"@mantine/core/FocusTrapInitialFocus\";It.InitialFocus=Vs});var $e,Jr=d(()=>{\"use client\";$e={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 ZI,qs,QI=d(()=>{\"use client\";R();ZI=v(y(),1);k();Z();Jr();qs=(0,ZI.forwardRef)((r,t)=>{var a=r,{className:e}=a,o=C(a,[\"className\"]);return p(L,g(u({component:\"span\",className:se($e.barsLoader,e)},o),{ref:t,children:[p(\"span\",{className:$e.bar}),p(\"span\",{className:$e.bar}),p(\"span\",{className:$e.bar})]}))});qs.displayName=\"@mantine/core/Bars\"});var JI,js,eh=d(()=>{\"use client\";R();JI=v(y(),1);k();Z();Jr();js=(0,JI.forwardRef)((r,t)=>{var a=r,{className:e}=a,o=C(a,[\"className\"]);return p(L,g(u({component:\"span\",className:se($e.dotsLoader,e)},o),{ref:t,children:[p(\"span\",{className:$e.dot}),p(\"span\",{className:$e.dot}),p(\"span\",{className:$e.dot})]}))});js.displayName=\"@mantine/core/Dots\"});var oh,Gs,th=d(()=>{\"use client\";R();oh=v(y(),1);k();Z();Jr();Gs=(0,oh.forwardRef)((r,t)=>{var a=r,{className:e}=a,o=C(a,[\"className\"]);return p(L,g(u({component:\"span\",className:se($e.ovalLoader,e)},o),{ref:t}))});Gs.displayName=\"@mantine/core/Oval\"});var oN,rh,f0,s0,ht,Xs=d(()=>{\"use client\";R();oN=v(y(),1);xe();k();it();j();ae();Z();ee();QI();eh();th();Jr();rh={bars:qs,oval:Gs,dots:js},f0={loaders:rh,type:\"oval\"},s0=(e,{size:o,color:t})=>({root:{\"--loader-size\":G(o,\"loader-size\"),\"--loader-color\":t?Ve(t,e):void 0}}),ht=N((e,o)=>{let t=M(\"Loader\",f0,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=U({name:\"Loader\",props:t,classes:$e,className:f,style:s,classNames:i,styles:m,unstyled:c,vars:l,varsResolver:s0});return h?p(L,g(u(g(u({},S(\"root\")),{ref:o}),b),{children:h})):p(L,u(g(u({},S(\"root\")),{ref:o,component:x[n],variant:I,size:r}),b))});ht.defaultLoaders=rh;ht.classes=$e;ht.displayName=\"@mantine/core/Loader\"});var Mo,Tn=d(()=>{\"use client\";Mo={root:\"m_8d3f4000\",icon:\"m_8d3afb97\",loader:\"m_302b9fb1\",group:\"m_1a0f1b21\",groupSection:\"m_437b6484\"}});var gN,ah,i0,Dn,nh=d(()=>{\"use client\";R();pe();gN=v(y(),1);k();j();ae();Z();ee();Tn();ah={orientation:\"horizontal\"},i0=(e,{borderWidth:o})=>({group:{\"--ai-border-width\":_(o)}}),Dn=N((e,o)=>{let t=M(\"ActionIconGroup\",ah,e),b=M(\"ActionIconGroup\",ah,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=U({name:\"ActionIconGroup\",props:t,classes:Mo,className:r,style:a,classNames:n,styles:l,unstyled:f,vars:i,varsResolver:i0,rootSelector:\"group\"});return p(L,u(g(u({},h(\"group\")),{ref:o,variant:c,mod:[{\"data-orientation\":s},x],role:\"group\"}),I))});Dn.classes=Mo;Dn.displayName=\"@mantine/core/ActionIconGroup\"});var BN,lh,c0,Ln,fh=d(()=>{\"use client\";R();BN=v(y(),1);xe();k();j();ae();Z();ee();Tn();lh={},c0=(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\":G(l,\"section-height\"),\"--section-padding-x\":G(l,\"section-padding-x\"),\"--section-fz\":ue(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}}},Ln=N((e,o)=>{let t=M(\"ActionIconGroupSection\",lh,e),b=M(\"ActionIconGroupSection\",lh,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=U({name:\"ActionIconGroupSection\",props:t,classes:Mo,className:r,style:a,classNames:n,styles:l,unstyled:f,vars:s,varsResolver:c0,rootSelector:\"groupSection\"});return p(L,u(g(u({},h(\"groupSection\")),{ref:o,variant:i}),I))});Ln.classes=Mo;Ln.displayName=\"@mantine/core/ActionIconGroupSection\"});var HN,u0,d0,To,sh=d(()=>{\"use client\";R();HN=v(y(),1);xe();k();j();ae();Z();ho();Xs();Qr();Kr();nh();fh();Tn();u0={},d0=(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\":G(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}}},To=Fe((e,o)=>{let t=M(\"ActionIcon\",u0,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:A,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\"]),P=U({name:[\"ActionIcon\",h],props:t,className:r,style:s,classes:Mo,classNames:l,styles:f,unstyled:a,vars:S,varsResolver:d0});return p(vo,g(u(u({},P(\"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(Eo,{mounted:!!i,transition:\"slide-down\",duration:150,children:T=>p(L,g(u({component:\"span\"},P(\"loader\",{style:T})),{\"aria-hidden\":!0,children:p(ht,u({color:\"var(--ai-color)\",size:\"calc(var(--ai-size) * 0.55)\"},m))}))}),p(L,g(u({component:\"span\",mod:{loading:i}},P(\"icon\")),{children:w}))]}))});To.classes=Mo;To.displayName=\"@mantine/core/ActionIcon\";To.Group=Dn;To.GroupSection=Ln});var ih,Ks,ch=d(()=>{\"use client\";R();ih=v(y(),1),Ks=(0,ih.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\"})}))});Ks.displayName=\"@mantine/core/CloseIcon\"});var Ys,uh=d(()=>{\"use client\";Ys={root:\"m_86a44da5\",\"root--subtle\":\"m_220c80f2\"}});var l2,m0,p0,Jt,Zs=d(()=>{\"use client\";R();pe();l2=v(y(),1);xe();k();j();ae();ho();Kr();ch();uh();m0={variant:\"subtle\"},p0=(e,{size:o,radius:t,iconSize:r})=>({root:{\"--cb-size\":G(o,\"cb-size\"),\"--cb-radius\":t===void 0?void 0:ie(t),\"--cb-icon-size\":_(r)}}),Jt=Fe((e,o)=>{let t=M(\"CloseButton\",m0,e),A=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}=A,F=C(A,[\"iconSize\",\"children\",\"vars\",\"radius\",\"className\",\"classNames\",\"style\",\"styles\",\"unstyled\",\"data-disabled\",\"disabled\",\"variant\",\"icon\",\"mod\",\"__staticSelector\"]),B=U({name:w||\"CloseButton\",props:t,className:f,style:i,classes:Ys,classNames:s,styles:m,unstyled:c,vars:n,varsResolver:p0});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(Ks,{}),a]}))});Jt.classes=Ys;Jt.displayName=\"@mantine/core/CloseButton\"});var h2,dh,Re,fo=d(()=>{\"use client\";h2=v(y(),1);Mr();R();k();[dh,Re]=zo(\"ModalBase component was not found in tree\")});function mh({opened:e,transitionDuration:o}){let[t,r]=(0,er.useState)(e),a=(0,er.useRef)(-1),l=kr()?0:o;return(0,er.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 er,ph=d(()=>{\"use client\";er=v(y(),1);Ie()});function xh({id:e,transitionProps:o,opened:t,trapFocus:r,closeOnEscape:a,onClose:n,returnFocus:l}){let f=lo(e),[s,i]=(0,Qs.useState)(!1),[m,c]=(0,Qs.useState)(!1),x=typeof(o==null?void 0:o.duration)==\"number\"?o==null?void 0:o.duration:200,I=mh({opened:t,transitionDuration:x});return Jf(\"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}),Xf({opened:t,shouldReturnFocus:r&&l}),{_id:f,titleMounted:s,bodyMounted:m,shouldLockScroll:I,setTitleMounted:i,setBodyMounted:c}}var Qs,Ih=d(()=>{\"use client\";Qs=v(y(),1);Ie();ph()});var hh,Js,gh=d(()=>{\"use client\";R();hh=v(y(),1);ym();Nt();xe();k();Z();WI();fo();Ih();Js=(0,hh.forwardRef)((P,O)=>{var E=P,{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:A}=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:W,bodyMounted:V,shouldLockScroll:q,setTitleMounted:de,setBodyMounted:Y}=xh({id:r,transitionProps:a,opened:o,trapFocus:f,closeOnEscape:s,onClose:t,returnFocus:i}),ye=A||{},{key:ve}=ye,te=C(ye,[\"key\"]);return p(Ws,g(u({},x),{withinPortal:c,children:p(dh,{value:{opened:o,onClose:t,closeOnClickOutside:m,onExitTransitionEnd:n,onEnterTransitionEnd:l,transitionProps:g(u({},a),{keepMounted:e}),getTitleId:()=>`${T}-title`,getBodyId:()=>`${T}-body`,titleMounted:W,bodyMounted:V,setTitleMounted:de,setBodyMounted:Y,trapFocus:f,closeOnEscape:s,zIndex:b,unstyled:B},children:p(zf,g(u({enabled:q&&I},te),{children:p(L,g(u({ref:O},D),{__vars:g(u({},F),{\"--mb-z-index\":(b||ro(\"modal\")).toString(),\"--mb-shadow\":Za(S),\"--mb-padding\":Ya(w)}),children:h}))}),ve)})}))});Js.displayName=\"@mantine/core/ModalBase\"});function vh(){let e=Re();return(0,bh.useEffect)(()=>(e.setBodyMounted(!0),()=>e.setBodyMounted(!1)),[]),e.getBodyId()}var bh,yh=d(()=>{\"use client\";bh=v(y(),1);fo()});var so,or=d(()=>{\"use client\";so={title:\"m_615af6c9\",header:\"m_b5489c3c\",inner:\"m_60c222c7\",content:\"m_fd1ab0aa\",close:\"m_606cb269\",body:\"m_5df29311\"}});var Sh,ei,Ch=d(()=>{\"use client\";R();Sh=v(y(),1);k();Z();fo();yh();or();ei=(0,Sh.forwardRef)((r,t)=>{var a=r,{className:e}=a,o=C(a,[\"className\"]);let n=vh(),l=Re();return p(L,g(u({ref:t},o),{id:n,className:se({[so.body]:!l.unstyled},e)}))});ei.displayName=\"@mantine/core/ModalBaseBody\"});var wh,oi,_h=d(()=>{\"use client\";R();wh=v(y(),1);k();Zs();fo();or();oi=(0,wh.forwardRef)((a,r)=>{var n=a,{className:e,onClick:o}=n,t=C(n,[\"className\",\"onClick\"]);let l=Re();return p(Jt,g(u({ref:r},t),{onClick:f=>{l.onClose(),o==null||o(f)},className:se({[so.close]:!l.unstyled},e),unstyled:l.unstyled}))});oi.displayName=\"@mantine/core/ModalBaseCloseButton\"});var Fh,ti,Rh=d(()=>{\"use client\";R();Fh=v(y(),1);k();$s();OI();Qr();fo();or();ti=(0,Fh.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=Re();return p(Eo,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:se({[so.inner]:!i.unstyled},t.className),children:p(It,{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:se({[so.content]:!i.unstyled},o),unstyled:i.unstyled,children:n.children}))})}))}))});ti.displayName=\"@mantine/core/ModalBaseContent\"});var Bh,ri,Ph=d(()=>{\"use client\";R();Bh=v(y(),1);k();Z();fo();or();ri=(0,Bh.forwardRef)((r,t)=>{var a=r,{className:e}=a,o=C(a,[\"className\"]);let n=Re();return p(L,u({component:\"header\",ref:t,className:se({[so.header]:!n.unstyled},e)},o))});ri.displayName=\"@mantine/core/ModalBaseHeader\"});function Ah(e){let o=Re();return u(u(u({},x0),o.transitionProps),e)}var x0,Eh=d(()=>{\"use client\";fo();x0={duration:200,timingFunction:\"ease\",transition:\"fade\"}});var Mh,ai,Th=d(()=>{\"use client\";R();Mh=v(y(),1);HI();Qr();fo();Eh();ai=(0,Mh.forwardRef)((l,n)=>{var f=l,{onClick:e,transitionProps:o,style:t,visible:r}=f,a=C(f,[\"onClick\",\"transitionProps\",\"style\",\"visible\"]);let s=Re(),i=Ah(o);return p(Eo,g(u({mounted:r!==void 0?r:s.opened},i),{transition:\"fade\",children:m=>p(En,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))}))});ai.displayName=\"@mantine/core/ModalBaseOverlay\"});function Lh(){let e=Re();return(0,Dh.useEffect)(()=>(e.setTitleMounted(!0),()=>e.setTitleMounted(!1)),[]),e.getTitleId()}var Dh,kh=d(()=>{\"use client\";Dh=v(y(),1);fo()});var Oh,ni,Nh=d(()=>{\"use client\";R();Oh=v(y(),1);k();Z();fo();kh();or();ni=(0,Oh.forwardRef)((r,t)=>{var a=r,{className:e}=a,o=C(a,[\"className\"]);let n=Lh(),l=Re();return p(L,g(u({component:\"h2\",ref:t,className:se({[so.title]:!l.unstyled},e)},o),{id:n}))});ni.displayName=\"@mantine/core/ModalBaseTitle\"});function Hh({children:e}){return p(Ce,{children:e})}var zh=d(()=>{\"use client\";R()});var zH,Uh,Wh,li=d(()=>{\"use client\";zH=v(y(),1);R();Ot();k();[Uh,Wh]=mo({size:\"sm\"})});var jH,I0,fi,Vh=d(()=>{\"use client\";R();jH=v(y(),1);k();Gp();j();ee();Zs();li();I0={},fi=N((e,o)=>{let t=M(\"InputClearButton\",I0,e),x=t,{size:r,variant:a,vars:n,classNames:l,styles:f}=x,s=C(x,[\"size\",\"variant\",\"vars\",\"classNames\",\"styles\"]),i=Wh(),{resolvedClassNames:m,resolvedStyles:c}=jp({classNames:l,styles:f,props:t});return p(Jt,u({variant:a||\"transparent\",ref:o,size:r||(i==null?void 0:i.size)||\"sm\",classNames:m,styles:c,__staticSelector:\"InputClearButton\"},s))});fi.displayName=\"@mantine/core/InputClearButton\"});var o3,$h,yo,gt=d(()=>{\"use client\";o3=v(y(),1);R();Ot();k();[$h,yo]=mo({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0})});var Be,bt=d(()=>{\"use client\";Be={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 i3,qh,h0,tr,si=d(()=>{\"use client\";R();pe();i3=v(y(),1);xe();k();j();ae();Z();ee();gt();bt();qh={},h0=(e,{size:o})=>({description:{\"--input-description-size\":o===void 0?void 0:`calc(${ue(o)} - ${_(2)})`}}),tr=N((e,o)=>{let t=M(\"InputDescription\",qh,e),w=M(\"InputDescription\",qh,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=U({name:[\"InputWrapper\",m],props:t,classes:Be,className:a,style:n,classNames:r,styles:l,unstyled:f,rootSelector:\"description\",vars:s,varsResolver:h0}),S=c&&(h==null?void 0:h.getStyles)||b;return p(L,u(u({component:\"p\",ref:o,variant:x,size:i},S(\"description\",h!=null&&h.getStyles?{className:a,style:n}:void 0)),I))});tr.classes=Be;tr.displayName=\"@mantine/core/InputDescription\"});var S3,g0,b0,rr,ii=d(()=>{\"use client\";R();pe();S3=v(y(),1);xe();k();j();ae();Z();ee();gt();bt();g0={},b0=(e,{size:o})=>({error:{\"--input-error-size\":o===void 0?void 0:`calc(${ue(o)} - ${_(2)})`}}),rr=N((e,o)=>{let t=M(\"InputError\",g0,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=U({name:[\"InputWrapper\",m],props:t,classes:Be,className:a,style:n,classNames:r,styles:l,unstyled:f,rootSelector:\"error\",vars:s,varsResolver:b0}),b=yo(),S=c&&(b==null?void 0:b.getStyles)||h;return p(L,u(u({component:\"p\",ref:o,variant:x,size:i},S(\"error\",b!=null&&b.getStyles?{className:a,style:n}:void 0)),I))});rr.classes=Be;rr.displayName=\"@mantine/core/InputError\"});var D3,jh,v0,ar,ci=d(()=>{\"use client\";R();D3=v(y(),1);xe();k();j();ae();Z();ee();gt();bt();jh={labelElement:\"label\"},v0=(e,{size:o})=>({label:{\"--input-label-size\":ue(o),\"--input-asterisk-color\":void 0}}),ar=N((e,o)=>{let t=M(\"InputLabel\",jh,e),O=M(\"InputLabel\",jh,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=U({name:[\"InputWrapper\",b],props:t,classes:Be,className:a,style:n,classNames:r,styles:l,unstyled:f,rootSelector:\"label\",vars:s,varsResolver:v0}),A=yo(),D=(A==null?void 0:A.getStyles)||B;return p(L,g(u(g(u({},D(\"label\",A!=null&&A.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:P=>{I==null||I(P),!P.defaultPrevented&&P.detail>1&&P.preventDefault()}}),F),{children:[h,c&&p(\"span\",g(u({},D(\"required\")),{\"aria-hidden\":!0,children:\" *\"}))]}))});ar.classes=Be;ar.displayName=\"@mantine/core/InputLabel\"});var j3,Gh,kn,Xh=d(()=>{\"use client\";R();j3=v(y(),1);k();j();ae();Z();ee();bt();Gh={},kn=N((e,o)=>{let t=M(\"InputPlaceholder\",Gh,e),b=M(\"InputPlaceholder\",Gh,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=U({name:[\"InputPlaceholder\",i],props:t,classes:Be,className:a,style:n,classNames:r,styles:l,unstyled:f,rootSelector:\"placeholder\"});return p(L,u(g(u({},h(\"placeholder\")),{mod:[{error:!!c},x],component:\"span\",variant:m,ref:o}),I))});kn.classes=Be;kn.displayName=\"@mantine/core/InputPlaceholder\"});function Kh(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 Yh=d(()=>{\"use client\"});var On,y0,S0,vt,ui=d(()=>{\"use client\";R();On=v(y(),1);Ie();pe();xe();k();j();ae();Z();ee();si();ii();ci();gt();Yh();bt();y0={labelElement:\"label\",inputContainer:e=>e,inputWrapperOrder:[\"label\",\"description\",\"input\",\"error\"]},S0=(e,{size:o})=>({label:{\"--input-label-size\":ue(o),\"--input-asterisk-color\":void 0},error:{\"--input-error-size\":o===void 0?void 0:`calc(${ue(o)} - ${_(2)})`},description:{\"--input-description-size\":o===void 0?void 0:`calc(${ue(o)} - ${_(2)})`}}),vt=N((e,o)=>{let t=M(\"InputWrapper\",y0,e),ma=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:A,children:D,withAsterisk:O,id:P,required:E,__stylesApiProps:T,mod:W}=ma,V=C(ma,[\"classNames\",\"className\",\"style\",\"styles\",\"unstyled\",\"vars\",\"size\",\"variant\",\"__staticSelector\",\"inputContainer\",\"inputWrapperOrder\",\"label\",\"error\",\"description\",\"labelProps\",\"descriptionProps\",\"errorProps\",\"labelElement\",\"children\",\"withAsterisk\",\"id\",\"required\",\"__stylesApiProps\",\"mod\"]),q=U({name:[\"InputWrapper\",c],props:T||t,classes:Be,className:a,style:n,classNames:r,styles:l,unstyled:f,vars:s,varsResolver:S0}),de={size:i,variant:m,__staticSelector:c},Y=lo(P),ve=typeof O==\"boolean\"?O:E,te=(B==null?void 0:B.id)||`${Y}-error`,ye=(F==null?void 0:F.id)||`${Y}-description`,De=Y,Pe=!!b&&typeof b!=\"boolean\",ge=!!S,je=`${Pe?te:\"\"} ${ge?ye:\"\"}`,Qo=je.trim().length>0?je.trim():void 0,Se=(w==null?void 0:w.id)||`${Y}-label`,No=h&&p(ar,g(u(u({labelElement:A,id:Se,htmlFor:De,required:ve},de),w),{children:h}),\"label\"),Je=ge&&p(tr,g(u(u({},F),de),{size:(F==null?void 0:F.size)||de.size,id:(F==null?void 0:F.id)||ye,children:S}),\"description\"),Ho=p(On.Fragment,{children:x(D)},\"input\"),Jo=Pe&&(0,On.createElement)(rr,g(u(u({},B),de),{size:(B==null?void 0:B.size)||de.size,key:\"error\",id:(B==null?void 0:B.id)||te}),b),wt=I.map(fl=>{switch(fl){case\"label\":return No;case\"input\":return Ho;case\"description\":return Je;case\"error\":return Jo;default:return null}});return p($h,{value:u({getStyles:q,describedBy:Qo,inputId:De,labelId:Se},Kh(I,{hasDescription:ge,hasError:Pe})),children:p(L,g(u(u({ref:o,variant:m,size:i,mod:[{error:!!b},W]},q(\"root\")),V),{children:wt}))})});vt.classes=Be;vt.displayName=\"@mantine/core/InputWrapper\"});var y6,C0,w0,we,ea=d(()=>{\"use client\";R();pe();y6=v(y(),1);xe();k();j();ae();$r();Z();ho();li();Vh();si();ii();ci();Xh();gt();ui();bt();C0={variant:\"default\",leftSectionPointerEvents:\"none\",rightSectionPointerEvents:\"none\",withAria:!0,withErrorStyles:!0},w0=(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\":G(o.size,\"input-height\"),\"--input-fz\":ue(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?G(o.size,\"input-padding-y\"):void 0,\"--input-left-section-pointer-events\":o.leftSectionPointerEvents,\"--input-right-section-pointer-events\":o.rightSectionPointerEvents}}),we=Fe((e,o)=>{let t=M(\"Input\",C0,e),wt=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:A,rightSectionPointerEvents:D,leftSectionPointerEvents:O,variant:P,vars:E,pointer:T,multiline:W,radius:V,id:q,withAria:de,withErrorStyles:Y,mod:ve,inputSize:te,__clearSection:ye,__clearable:De,__defaultRightSection:Pe}=wt,ge=C(wt,[\"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:je,rest:Qo}=$o(ge),Se=yo(),No={offsetBottom:Se==null?void 0:Se.offsetBottom,offsetTop:Se==null?void 0:Se.offsetTop},Je=U({name:[\"Input\",i],props:m||t,classes:Be,className:a,style:n,classNames:r,styles:l,unstyled:f,stylesCtx:No,rootSelector:\"wrapper\",vars:E,varsResolver:w0}),Ho=de?{required:s,disabled:h,\"aria-invalid\":!!I,\"aria-describedby\":Se==null?void 0:Se.describedBy,id:(Se==null?void 0:Se.inputId)||q}:{},Jo=F||De&&ye||Pe;return p(Uh,{value:{size:c||\"sm\"},children:p(L,g(u(u(u({},Je(\"wrapper\")),je),x),{mod:[{error:!!I&&Y,pointer:T,disabled:h,multiline:W,\"data-with-right-section\":!!Jo,\"data-with-left-section\":!!b},ve],variant:P,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(L,u(g(u(u({component:\"input\"},Qo),Ho),{ref:o,required:s,mod:{disabled:h,error:!!I&&Y},variant:P,__size:te}),Je(\"input\"))),Jo&&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:Jo}))]}))})});we.classes=Be;we.Wrapper=vt;we.Label=ar;we.Error=rr;we.Description=tr;we.Placeholder=kn;we.ClearButton=fi;we.displayName=\"@mantine/core/Input\"});var di,Zh=d(()=>{\"use client\";di={root:\"m_b6d8b162\"}});function _0(e){if(e===\"start\")return\"start\";if(e===\"end\"||e)return\"end\"}var W6,F0,R0,Ko,mi=d(()=>{\"use client\";R();W6=v(y(),1);xe();k();it();ts();j();ae();Z();ho();Zh();F0={inherit:!1},R0=(e,{variant:o,lineClamp:t,gradient:r,size:a,color:n})=>({root:{\"--text-fz\":ue(a),\"--text-lh\":Mm(a),\"--text-gradient\":o===\"gradient\"?zr(r,e):void 0,\"--text-line-clamp\":typeof t==\"number\"?t.toString():void 0,\"--text-color\":n?Ve(n,e):void 0}}),Ko=Fe((e,o)=>{let t=M(\"Text\",F0,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\"]),A=U({name:[\"Text\",i],props:t,classes:di,className:c,style:x,classNames:I,styles:h,unstyled:b,vars:m,varsResolver:R0});return p(L,u(g(u({},A(\"root\",{focusable:!0})),{ref:o,component:s?\"span\":\"p\",variant:S,mod:[{\"data-truncate\":_0(a),\"data-line-clamp\":typeof r==\"number\",\"data-inline\":n,\"data-inherit\":l},w],size:F}),B))});Ko.classes=di;Ko.displayName=\"@mantine/core/Text\"});var pi,Qh=d(()=>{\"use client\";pi={root:\"m_849cf0da\"}});var r8,B0,oa,Jh=d(()=>{\"use client\";R();k();r8=v(y(),1);j();ho();mi();Qh();B0={underline:\"hover\"},oa=Fe((e,o)=>{let f=M(\"Anchor\",B0,e),{underline:t,className:r,unstyled:a,mod:n}=f,l=C(f,[\"underline\",\"className\",\"unstyled\",\"mod\"]);return p(Ko,g(u({component:\"a\",ref:o,className:se({[pi.root]:!a},r)},l),{mod:[{underline:t},n],__staticSelector:\"Anchor\",unstyled:a}))});oa.classes=pi;oa.displayName=\"@mantine/core/Anchor\"});var xi,eg=d(()=>{\"use client\";xi={root:\"m_5f75b09e\",body:\"m_5f6e695e\",labelWrapper:\"m_d3ea56bb\",label:\"m_8ee546b8\",description:\"m_328f68c0\",error:\"m_8e8a99cc\"}});var og,tg,ta,Ii=d(()=>{\"use client\";R();og=v(y(),1);xe();k();ae();Z();ea();eg();tg=xi,ta=(0,og.forwardRef)((O,D)=>{var P=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}=P,A=C(P,[\"__staticSelector\",\"__stylesApiProps\",\"className\",\"classNames\",\"styles\",\"unstyled\",\"children\",\"label\",\"description\",\"id\",\"disabled\",\"error\",\"size\",\"labelPosition\",\"bodyElement\",\"labelElement\",\"variant\",\"style\",\"vars\",\"mod\"]);let E=U({name:e,props:o,className:t,style:w,classes:xi,classNames:r,styles:a,unstyled:n});return p(L,g(u(g(u({},E(\"root\")),{ref:D,__vars:{\"--label-fz\":ue(x),\"--label-lh\":G(x,\"label-lh\")},mod:[{\"label-position\":I},B],variant:S,size:x}),A),{children:p(L,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(L,g(u({component:b,htmlFor:b===\"label\"?i:void 0},E(\"label\")),{\"data-disabled\":m||void 0,children:f})),s&&p(we.Description,g(u({size:x,__inheritStyles:!1},E(\"description\")),{children:s})),c&&typeof c!=\"boolean\"&&p(we.Error,g(u({size:x,__inheritStyles:!1},E(\"error\")),{children:c}))]}))]}))}))});ta.displayName=\"@mantine/core/InlineInput\"});function Nn({children:e,role:o}){let t=yo();return t?p(\"div\",{role:o,\"aria-labelledby\":t.labelId,\"aria-describedby\":t.describedBy,children:e}):p(Ce,{children:e})}var y8,hi=d(()=>{\"use client\";R();y8=v(y(),1);k();gt()});var Do,Hn=d(()=>{\"use client\";Do={root:\"m_77c9d27d\",inner:\"m_80f1301b\",label:\"m_811560b9\",section:\"m_a74036a\",loader:\"m_a25b86ee\",group:\"m_80d6d844\",groupSection:\"m_70be2a01\"}});var B8,rg,P0,zn,ag=d(()=>{\"use client\";R();pe();B8=v(y(),1);k();j();ae();Z();ee();Hn();rg={orientation:\"horizontal\"},P0=(e,{borderWidth:o})=>({group:{\"--button-border-width\":_(o)}}),zn=N((e,o)=>{let t=M(\"ButtonGroup\",rg,e),b=M(\"ButtonGroup\",rg,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=U({name:\"ButtonGroup\",props:t,classes:Do,className:r,style:a,classNames:n,styles:l,unstyled:f,vars:i,varsResolver:P0,rootSelector:\"group\"});return p(L,u(g(u({},h(\"group\")),{ref:o,variant:c,mod:[{\"data-orientation\":s},x],role:\"group\"}),I))});zn.classes=Do;zn.displayName=\"@mantine/core/ButtonGroup\"});var N8,ng,A0,Un,lg=d(()=>{\"use client\";R();N8=v(y(),1);xe();k();j();ae();Z();ee();Hn();ng={},A0=(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\":G(l,\"section-height\"),\"--section-padding-x\":G(l,\"section-padding-x\"),\"--section-fz\":l!=null&&l.includes(\"compact\")?ue(l.replace(\"compact-\",\"\")):ue(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}}},Un=N((e,o)=>{let t=M(\"ButtonGroupSection\",ng,e),b=M(\"ButtonGroupSection\",ng,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=U({name:\"ButtonGroupSection\",props:t,classes:Do,className:r,style:a,classNames:n,styles:l,unstyled:f,vars:s,varsResolver:A0,rootSelector:\"groupSection\"});return p(L,u(g(u({},h(\"groupSection\")),{ref:o,variant:i}),I))});Un.classes=Do;Un.displayName=\"@mantine/core/ButtonGroupSection\"});var Y8,E0,M0,T0,yt,fg=d(()=>{\"use client\";R();pe();Y8=v(y(),1);xe();k();j();ae();Z();ho();Xs();Qr();Kr();ag();lg();Hn();E0={in:{opacity:1,transform:`translate(-50%, calc(-50% + ${_(1)}))`},out:{opacity:0,transform:\"translate(-50%, -200%)\"},common:{transformOrigin:\"center\"},transitionProperty:\"transform, opacity\"},M0={},T0=(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\":G(n,\"button-height\"),\"--button-padding-x\":G(n,\"button-padding-x\"),\"--button-fz\":n!=null&&n.includes(\"compact\")?ue(n.replace(\"compact-\",\"\")):ue(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}}},yt=Fe((e,o)=>{let t=M(\"Button\",M0,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\":A,autoContrast:D,mod:O}=V,P=C(V,[\"style\",\"vars\",\"className\",\"color\",\"disabled\",\"children\",\"leftSection\",\"rightSection\",\"fullWidth\",\"variant\",\"radius\",\"loading\",\"loaderProps\",\"gradient\",\"classNames\",\"styles\",\"unstyled\",\"data-disabled\",\"autoContrast\",\"mod\"]),E=U({name:\"Button\",props:t,classes:Do,className:n,style:r,classNames:w,styles:F,unstyled:B,vars:a,varsResolver:T0}),T=!!i,W=!!m;return p(vo,g(u(g(u({ref:o},E(\"root\",{active:!f&&!h&&!A})),{unstyled:B,variant:x,disabled:f||h,mod:[{disabled:f||A,loading:h,block:c,\"with-left-section\":T,\"with-right-section\":W},O]}),P),{children:[p(Eo,{mounted:!!h,transition:E0,duration:150,children:q=>p(L,g(u({component:\"span\"},E(\"loader\",{style:q})),{\"aria-hidden\":!0,children:p(ht,u({color:\"var(--button-color)\",size:\"calc(var(--button-height) / 1.8)\"},b))}))}),p(\"span\",g(u({},E(\"inner\")),{children:[i&&p(L,g(u({component:\"span\"},E(\"section\")),{mod:{position:\"left\"},children:i})),p(L,g(u({component:\"span\",mod:{loading:h}},E(\"label\")),{children:s})),m&&p(L,g(u({component:\"span\"},E(\"section\")),{mod:{position:\"right\"},children:m}))]}))]}))});yt.classes=Do;yt.displayName=\"@mantine/core/Button\";yt.Group=zn;yt.GroupSection=Un});var u9,sg,to,Yo=d(()=>{\"use client\";u9=v(y(),1);Mr();R();k();[sg,to]=zo(\"Modal component was not found in tree\")});var Ee,Lo=d(()=>{\"use client\";Ee={root:\"m_9df02822\",content:\"m_54c44539\",inner:\"m_1f958f16\",header:\"m_d0e2b9cd\"}});var g9,D0,ra,ig=d(()=>{\"use client\";R();g9=v(y(),1);k();j();ee();Ch();Yo();Lo();D0={},ra=N((e,o)=>{let m=M(\"ModalBody\",D0,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(\"body\",{classNames:r,style:n,styles:l,className:a})),s))});ra.classes=Ee;ra.displayName=\"@mantine/core/ModalBody\"});var B9,L0,aa,cg=d(()=>{\"use client\";R();B9=v(y(),1);k();j();ee();_h();Yo();Lo();L0={},aa=N((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(oi,u(u({ref:o},i.getStyles(\"close\",{classNames:r,style:n,styles:l,className:a})),s))});aa.classes=Ee;aa.displayName=\"@mantine/core/ModalCloseButton\"});var H9,k0,na,ug=d(()=>{\"use client\";R();pe();H9=v(y(),1);k();j();ee();Rh();zh();Yo();Lo();k0={},na=N((e,o)=>{let I=M(\"ModalContent\",k0,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||Hh;return p(ti,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})}))});na.classes=Ee;na.displayName=\"@mantine/core/ModalContent\"});var Y9,O0,la,dg=d(()=>{\"use client\";R();Y9=v(y(),1);k();j();ee();Ph();Yo();Lo();O0={},la=N((e,o)=>{let m=M(\"ModalHeader\",O0,e),{classNames:r,className:a,style:n,styles:l,vars:f}=m,s=C(m,[\"classNames\",\"className\",\"style\",\"styles\",\"vars\"]),i=to();return p(ri,u(u({ref:o},i.getStyles(\"header\",{classNames:r,style:n,styles:l,className:a})),s))});la.classes=Ee;la.displayName=\"@mantine/core/ModalHeader\"});var l5,N0,fa,mg=d(()=>{\"use client\";R();l5=v(y(),1);k();j();ee();Th();Yo();Lo();N0={},fa=N((e,o)=>{let m=M(\"ModalOverlay\",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(ai,u(u({ref:o},i.getStyles(\"overlay\",{classNames:r,style:n,styles:l,className:a})),s))});fa.classes=Ee;fa.displayName=\"@mantine/core/ModalOverlay\"});var h5,H0,z0,sa,pg=d(()=>{\"use client\";R();pe();h5=v(y(),1);Nt();xe();k();j();ae();ee();gh();MI();Yo();Lo();H0={__staticSelector:\"Modal\",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:ro(\"modal\"),transitionProps:{duration:200,transition:\"fade-down\"},yOffset:\"5dvh\"},z0=(e,{radius:o,size:t,yOffset:r,xOffset:a})=>({root:{\"--modal-radius\":o===void 0?void 0:ie(o),\"--modal-size\":G(t,\"modal-size\"),\"--modal-y-offset\":_(r),\"--modal-x-offset\":_(a)}}),sa=N((e,o)=>{let t=M(\"ModalRoot\",H0,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=U({name:b,classes:Ee,props:t,className:a,style:n,classNames:r,styles:l,unstyled:f,vars:s,varsResolver:z0});return p(sg,{value:{yOffset:i,scrollAreaComponent:m,getStyles:w,fullScreen:x},children:p(Js,u(g(u({ref:o},w(\"root\")),{\"data-full-screen\":x||void 0,\"data-centered\":I||void 0,\"data-offset-scrollbars\":m===Qt.Autosize||void 0,unstyled:f}),S))})});sa.classes=Ee;sa.displayName=\"@mantine/core/ModalRoot\"});function bi({children:e}){let[o,t]=(0,gi.useState)([]),[r,a]=(0,gi.useState)(ro(\"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 gi,U0,xg,Ig=d(()=>{\"use client\";R();gi=v(y(),1);Ot();Nt();k();[U0,xg]=mo();bi.displayName=\"@mantine/core/ModalStack\"});var k5,W0,ia,hg=d(()=>{\"use client\";R();k5=v(y(),1);k();j();ee();Nh();Yo();Lo();W0={},ia=N((e,o)=>{let m=M(\"ModalTitle\",W0,e),{classNames:r,className:a,style:n,styles:l,vars:f}=m,s=C(m,[\"classNames\",\"className\",\"style\",\"styles\",\"vars\"]),i=to();return p(ni,u(u({ref:o},i.getStyles(\"title\",{classNames:r,style:n,styles:l,className:a})),s))});ia.classes=Ee;ia.displayName=\"@mantine/core/ModalTitle\"});var gg,V0,qe,bg=d(()=>{\"use client\";R();gg=v(y(),1);Nt();k();j();ee();ig();cg();ug();dg();mg();pg();Ig();hg();Lo();V0={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:ro(\"modal\"),transitionProps:{duration:200,transition:\"fade-down\"},withOverlay:!0,withCloseButton:!0},qe=N((e,o)=>{let w=M(\"Modal\",V0,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=xg(),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,gg.useEffect)(()=>{I&&m&&(i?I.addModal(m,c||ro(\"modal\")):I.removeModal(m))},[i,m,c]),p(sa,g(u(u({ref:o,radius:s,opened:i,zIndex:I&&m?I.getZIndex(m):c},x),b),{children:[r&&p(fa,u({visible:S,transitionProps:I&&m?{duration:0}:void 0},a)),p(na,{radius:s,__hidden:I&&m&&i?m!==I.currentId:!1,children:[h&&p(la,{children:[t&&p(ia,{children:t}),n&&p(aa,u({},l))]}),p(ra,{children:f})]})]}))});qe.classes=Ee;qe.displayName=\"@mantine/core/Modal\";qe.Root=sa;qe.Overlay=fa;qe.Content=na;qe.Body=ra;qe.Header=la;qe.Title=ia;qe.CloseButton=aa;qe.Stack=bi});var f7,vg,Wn,Vn=d(()=>{\"use client\";f7=v(y(),1);R();Ot();k();[vg,Wn]=mo()});var d7,yg,Sg,vi=d(()=>{\"use client\";d7=v(y(),1);R();Ot();k();[yg,Sg]=mo()});var yi,Cg=d(()=>{\"use client\";yi={card:\"m_9dc8ae12\"}});var b7,$0,q0,$n,wg=d(()=>{\"use client\";R();b7=v(y(),1);xe();k();j();ae();ee();bs();Kr();Vn();vi();Cg();$0={withBorder:!0},q0=(e,{radius:o})=>({card:{\"--card-radius\":ie(o)}}),$n=N((e,o)=>{let t=M(\"RadioCard\",$0,e),P=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}=P,S=C(P,[\"classNames\",\"className\",\"style\",\"styles\",\"unstyled\",\"vars\",\"checked\",\"mod\",\"withBorder\",\"value\",\"onClick\",\"name\",\"onKeyDown\"]),w=U({name:\"RadioCard\",classes:yi,props:t,className:a,style:n,classNames:r,styles:l,unstyled:f,vars:s,varsResolver:q0,rootSelector:\"card\"}),{dir:F}=In(),B=Wn(),A=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\"}\"]`)),W=T.findIndex(de=>de===E.target),V=W+1>=T.length?0:W+1,q=W-1<0?T.length-1:W-1;E.nativeEvent.code===\"ArrowDown\"&&(T[V].focus(),T[V].click()),E.nativeEvent.code===\"ArrowUp\"&&(T[q].focus(),T[q].click()),E.nativeEvent.code===\"ArrowLeft\"&&(T[F===\"ltr\"?q:V].focus(),T[F===\"ltr\"?q:V].click()),E.nativeEvent.code===\"ArrowRight\"&&(T[F===\"ltr\"?V:q].focus(),T[F===\"ltr\"?V:q].click())}};return p(yg,{value:{checked:A},children:p(vo,g(u(u({ref:o,mod:[{\"with-border\":c,checked:A},m]},w(\"card\")),S),{role:\"radio\",\"aria-checked\":A,name:D,onClick:E=>{I==null||I(E),B==null||B.onChange(x||\"\")},onKeyDown:O}))})});$n.displayName=\"@mantine/core/RadioCard\";$n.classes=yi});var D7,j0,qn,_g=d(()=>{\"use client\";R();Ie();D7=v(y(),1);k();j();ee();ea();hi();Vn();j0={},qn=N((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=lo(s),[x,I]=lt({value:t,defaultValue:r,finalValue:\"\",onChange:a});return p(vg,{value:{value:x,onChange:S=>!i&&I(typeof S==\"string\"?S:S.currentTarget.value),size:n,name:c},children:p(we.Wrapper,g(u(u({size:n,ref:o},l),m),{labelElement:\"div\",__staticSelector:\"RadioGroup\",children:p(Nn,{role:\"radiogroup\",children:f})}))})});qn.classes=we.Wrapper.classes;qn.displayName=\"@mantine/core/RadioGroup\"});function jn(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 q7,Si=d(()=>{\"use client\";R();pe();q7=v(y(),1);k()});var Ci,Fg=d(()=>{\"use client\";Ci={indicator:\"m_717d7ff6\",icon:\"m_3e4da632\",\"indicator--outline\":\"m_2980836c\"}});var Z7,G0,X0,Gn,Rg=d(()=>{\"use client\";R();Z7=v(y(),1);xe();k();st();it();sn();ds();j();ae();Z();ee();vi();Si();Fg();G0={icon:jn},X0=(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\":G(r,\"radio-size\"),\"--radio-radius\":o===void 0?void 0:ie(o),\"--radio-color\":n===\"outline\"?s:Ve(t,e),\"--radio-icon-size\":G(r,\"radio-icon-size\"),\"--radio-icon-color\":a?Ve(a,e):mn(l,e)?Wr({color:t,theme:e,autoContrast:l}):void 0}}},Gn=N((e,o)=>{let t=M(\"RadioIndicator\",G0,e),P=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}=P,F=C(P,[\"classNames\",\"className\",\"style\",\"styles\",\"unstyled\",\"vars\",\"icon\",\"radius\",\"color\",\"iconColor\",\"autoContrast\",\"checked\",\"mod\",\"variant\",\"disabled\"]),B=i,A=U({name:\"RadioIndicator\",classes:Ci,props:t,className:a,style:n,classNames:r,styles:l,unstyled:f,vars:s,varsResolver:X0,rootSelector:\"indicator\"}),D=Sg(),O=typeof h==\"boolean\"?h:(D==null?void 0:D.checked)||!1;return p(L,g(u(g(u({ref:o},A(\"indicator\",{variant:S})),{variant:S,mod:[{checked:O,disabled:w},b]}),F),{children:p(B,u({},A(\"icon\")))}))});Gn.displayName=\"@mantine/core/RadioIndicator\";Gn.classes=Ci});var wi,Bg=d(()=>{\"use client\";wi={root:\"m_f3f1af94\",inner:\"m_89c4f5e4\",icon:\"m_f3ed6b2b\",radio:\"m_8a3dbb89\",\"radio--outline\":\"m_1bfe9d39\"}});var I4,K0,Y0,Me,Pg=d(()=>{\"use client\";R();Ie();I4=v(y(),1);xe();k();st();it();sn();ds();j();ae();$r();Z();ee();Ii();wg();Vn();_g();Si();Rg();Bg();K0={labelPosition:\"right\"},Y0=(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\":G(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):mn(l,e)?Wr({color:r,theme:e,autoContrast:l}):void 0,\"--radio-icon-size\":G(o,\"radio-icon-size\")}}},Me=N((e,o)=>{var Pe,ge;let t=M(\"Radio\",K0,e),De=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:A=jn,rootRef:D,iconColor:O,onChange:P,mod:E}=De,T=C(De,[\"classNames\",\"className\",\"style\",\"styles\",\"unstyled\",\"vars\",\"id\",\"size\",\"label\",\"labelPosition\",\"description\",\"error\",\"radius\",\"color\",\"variant\",\"disabled\",\"wrapperProps\",\"icon\",\"rootRef\",\"iconColor\",\"onChange\",\"mod\"]),W=U({name:\"Radio\",classes:wi,props:t,className:a,style:n,classNames:r,styles:l,unstyled:f,vars:s,varsResolver:Y0}),V=Wn(),q=(Pe=V==null?void 0:V.size)!=null?Pe:m,de=t.size?m:q,{styleProps:Y,rest:ve}=$o(T),te=lo(i),ye=V?{checked:V.value===ve.value,name:(ge=ve.name)!=null?ge:V.name,onChange:je=>{V.onChange(je),P==null||P(je)}}:{};return p(ta,g(u(u(g(u({},W(\"root\")),{__staticSelector:\"Radio\",__stylesApiProps:t,id:te,size:de,labelPosition:x,label:c,description:I,error:h,disabled:F,classNames:r,styles:l,unstyled:f,\"data-checked\":ye.checked||void 0,variant:w,ref:D,mod:E}),Y),B),{children:p(L,g(u({},W(\"inner\")),{mod:{\"label-position\":x},children:[p(L,g(u(u(g(u({},W(\"radio\",{focusable:!0,variant:w})),{onChange:P}),ve),ye),{component:\"input\",mod:{error:!!h},ref:o,id:te,disabled:F,type:\"radio\"})),p(A,g(u({},W(\"icon\")),{\"aria-hidden\":!0}))]}))}))});Me.classes=wi;Me.displayName=\"@mantine/core/Radio\";Me.Group=qn;Me.Card=$n;Me.Indicator=Gn});var _i,Ag=d(()=>{\"use client\";_i={root:\"m_6d731127\"}});var H4,Z0,Q0,St,Eg=d(()=>{\"use client\";R();H4=v(y(),1);xe();k();j();ae();Z();ee();Ag();Z0={gap:\"md\",align:\"stretch\",justify:\"flex-start\"},Q0=(e,{gap:o,align:t,justify:r})=>({root:{\"--stack-gap\":Ya(o),\"--stack-align\":t,\"--stack-justify\":r}}),St=N((e,o)=>{let t=M(\"Stack\",Z0,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=U({name:\"Stack\",props:t,classes:_i,className:a,style:n,classNames:r,styles:l,unstyled:f,vars:s,varsResolver:Q0});return p(L,u(g(u({ref:o},h(\"root\")),{variant:x}),I))});St.classes=_i;St.displayName=\"@mantine/core/Stack\"});var Xn,Mg,Tg,Dg,Fi=d(()=>{\"use client\";Xn=v(y(),1),Mg=(0,Xn.createContext)(null),Tg=Mg.Provider,Dg=()=>(0,Xn.useContext)(Mg)});var Q4,J0,Kn,Lg=d(()=>{\"use client\";R();Ie();Q4=v(y(),1);k();j();ee();ea();hi();Fi();J0={},Kn=N((e,o)=>{let I=M(\"SwitchGroup\",J0,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]=lt({value:t,defaultValue:r,finalValue:[],onChange:a});return p(Tg,{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(we.Wrapper,g(u(u({size:n,ref:o},l),i),{labelElement:\"div\",__staticSelector:\"SwitchGroup\",children:p(Nn,{role:\"group\",children:f})}))})});Kn.classes=we.Wrapper.classes;Kn.displayName=\"@mantine/core/SwitchGroup\"});var Ri,kg=d(()=>{\"use client\";Ri={root:\"m_5f93f3bb\",input:\"m_926b4011\",track:\"m_9307d992\",thumb:\"m_93039a1d\",trackLabel:\"m_8277e082\"}});var cz,ew,ow,Q,Og=d(()=>{\"use client\";R();Ie();cz=v(y(),1);xe();k();it();j();ae();$r();Z();ee();Ii();Fi();Lg();kg();ew={labelPosition:\"right\",withThumbIndicator:!0},ow=(e,{radius:o,color:t,size:r})=>({root:{\"--switch-radius\":o===void 0?void 0:ie(o),\"--switch-height\":G(r,\"switch-height\"),\"--switch-width\":G(r,\"switch-width\"),\"--switch-thumb-size\":G(r,\"switch-thumb-size\"),\"--switch-label-font-size\":G(r,\"switch-label-font-size\"),\"--switch-track-label-padding\":G(r,\"switch-track-label-padding\"),\"--switch-color\":t?Ve(t,e):void 0}}),Q=N((e,o)=>{var No;let t=M(\"Switch\",ew,e),Se=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:A,labelPosition:D,description:O,error:P,disabled:E,variant:T,rootRef:W,mod:V,withThumbIndicator:q}=Se,de=C(Se,[\"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=Dg(),ve=h||(Y==null?void 0:Y.size),te=U({name:\"Switch\",props:t,classes:Ri,className:a,style:n,classNames:r,styles:l,unstyled:f,vars:s,varsResolver:ow}),{styleProps:ye,rest:De}=$o(de),Pe=lo(I),ge=Y?{checked:Y.value.includes(De.value),onChange:Y.onChange}:{},[je,Qo]=lt({value:(No=ge.checked)!=null?No:F,defaultValue:B,finalValue:!1});return p(ta,g(u(u(g(u({},te(\"root\")),{__staticSelector:\"Switch\",__stylesApiProps:t,id:Pe,size:ve,labelPosition:D,label:m,description:O,error:P,disabled:E,bodyElement:\"label\",labelElement:\"span\",classNames:r,styles:l,unstyled:f,\"data-checked\":ge.checked||F||void 0,variant:T,ref:W,mod:V}),ye),S),{children:[p(\"input\",u(g(u({},De),{disabled:E,checked:je,\"data-checked\":ge.checked||F||void 0,onChange:Je=>{var Ho;Y?(Ho=ge.onChange)==null||Ho.call(ge,Je):A==null||A(Je),Qo(Je.currentTarget.checked)},id:Pe,ref:o,type:\"checkbox\",role:\"switch\"}),te(\"input\"))),p(L,g(u({\"aria-hidden\":\"true\",component:\"span\",mod:{error:P,\"label-position\":D,\"without-labels\":!x&&!c}},te(\"track\")),{children:[p(L,g(u({component:\"span\",mod:{\"reduce-motion\":!0,\"with-thumb-indicator\":q&&!w}},te(\"thumb\")),{children:w})),p(\"span\",g(u({},te(\"trackLabel\")),{children:je?x:c}))]}))]}))});Q.classes=u(u({},Ri),tg);Q.displayName=\"@mantine/core/Switch\";Q.Group=Kn});var _e=d(()=>{qp();sh();ea();ui();Jh();fg();$s();bg();Pg();Eg();Og();mi()});function Zn({size:e}){return Yn.default.createElement(\"svg\",{width:e,height:e,viewBox:\"0 0 300 350\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\"},Yn.default.createElement(\"path\",{fillRule:\"evenodd\",clipRule:\"evenodd\",d:\"M299.912 297H300V151H299.997C299.999 150.667 300 150.334 300 150C300 67.1573 232.843 0 150 0C67.1573 0 0 67.1573 0 150C0 150.334 0.00108895 150.667 0.00326349 151H0V297H0.0885008C0.0297676 297.992 -1.52588e-05 298.993 -1.52588e-05 300C-1.52588e-05 327.614 22.3857 350 50 350C77.6142 350 100 327.614 100 300C100 327.614 122.386 350 150 350C177.614 350 200 327.614 200 300C200 327.614 222.386 350 250 350C277.614 350 300 327.614 300 300C300 298.993 299.97 297.992 299.912 297ZM200 300C200 298.993 199.97 297.992 199.911 297H200.089C200.03 297.992 200 298.993 200 300ZM100 300C100 298.993 99.9702 297.992 99.9115 297H100.089C100.03 297.992 100 298.993 100 300ZM225 150C225 163.807 213.807 175 200 175C186.193 175 175 163.807 175 150C175 136.193 186.193 125 200 125C213.807 125 225 136.193 225 150ZM100 175C113.807 175 125 163.807 125 150C125 136.193 113.807 125 100 125C86.1929 125 75 136.193 75 150C75 163.807 86.1929 175 100 175ZM130.303 219.697C127.374 216.768 122.626 216.768 119.697 219.697C116.768 222.626 116.768 227.374 119.697 230.303C128.848 239.454 138.976 245 150 245C161.024 245 171.152 239.454 180.303 230.303C183.232 227.374 183.232 222.626 180.303 219.697C177.374 216.768 172.626 216.768 169.697 219.697C162.181 227.213 155.643 230 150 230C144.357 230 137.819 227.213 130.303 219.697Z\",fill:\"currentColor\"}),Yn.default.createElement(\"path\",{d:\"M237.355 294H68V319H237.355V294Z\",fill:\"currentColor\"}))}var Yn,Ng=d(()=>{\"use strict\";Yn=v(y())});var Hg,zg=d(()=>{Hg={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 nr,Qn,Bi=d(()=>{nr=v(y(),1);zg();Qn=(e,o,t,r)=>{let a=(0,nr.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,nr.createElement)(\"svg\",u(u(g(u({ref:x},Hg[e]),{width:l,height:l,className:[\"tabler-icon\",`tabler-icon-${o}`,i].join(\" \")}),e===\"filled\"?{fill:n}:{strokeWidth:f,stroke:n}),c),[s&&(0,nr.createElement)(\"title\",{key:\"svg-title\"},s),...r.map(([b,S])=>(0,nr.createElement)(b,S)),...Array.isArray(m)?m:[m]])});return a.displayName=`${t}`,a}});var Pi,Ug=d(()=>{Bi();Pi=Qn(\"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 Ai,Wg=d(()=>{Bi();Ai=Qn(\"outline\",\"x\",\"IconX\",[[\"path\",{d:\"M18 6l-12 12\",key:\"svg-0\"}],[\"path\",{d:\"M6 6l12 12\",key:\"svg-1\"}]])});var Vg=d(()=>{Ug();Wg();});function Mi({size:e}){return Ei.default.createElement(\"svg\",{xmlns:\"http://www.w3.org/2000/svg\",viewBox:\"0 0 127.14 96.36\",width:e,height:e},Ei.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 Ei,$g=d(()=>{\"use strict\";Ei=v(y())});function ko(e){return Array.isArray?Array.isArray(e):Qg(e)===\"[object Array]\"}function rw(e){if(typeof e==\"string\")return e;let o=e+\"\";return o==\"0\"&&1/e==-tw?\"-0\":o}function aw(e){return e==null?\"\":rw(e)}function So(e){return typeof e==\"string\"}function Yg(e){return typeof e==\"number\"}function nw(e){return e===!0||e===!1||lw(e)&&Qg(e)==\"[object Boolean]\"}function Zg(e){return typeof e==\"object\"}function lw(e){return Zg(e)&&e!==null}function Qe(e){return e!=null}function Ti(e){return!e.trim().length}function Qg(e){return e==null?e===void 0?\"[object Undefined]\":\"[object Null]\":Object.prototype.toString.call(e)}function Jg(e){let o=null,t=null,r=null,a=1,n=null;if(So(e)||ko(e))r=e,o=jg(e),t=Li(e);else{if(!qg.call(e,\"name\"))throw new Error(cw(\"name\"));let l=e.name;if(r=l,qg.call(e,\"weight\")&&(a=e.weight,a<=0))throw new Error(uw(l));o=jg(l),t=Li(l),n=e.getFn}return{path:o,id:t,weight:a,src:r,getFn:n}}function jg(e){return ko(e)?e:e.split(\".\")}function Li(e){return ko(e)?e.join(\".\"):e}function dw(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)||Yg(i)||nw(i)))t.push(aw(i));else if(ko(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 gw(e=1,o=3){let t=new Map,r=Math.pow(10,o);return{get(a){let n=a.match(hw).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 eb(e,o,{getFn:t=$.getFn,fieldNormWeight:r=$.fieldNormWeight}={}){let a=new ca({getFn:t,fieldNormWeight:r});return a.setKeys(e.map(Jg)),a.setSources(o),a.create(),a}function bw(e,{getFn:o=$.getFn,fieldNormWeight:t=$.fieldNormWeight}={}){let{keys:r,records:a}=e,n=new ca({getFn:o,fieldNormWeight:t});return n.setKeys(r),n.setIndexRecords(a),n}function Jn(e,{errors:o=0,currentLocation:t=0,expectedLocation:r=0,distance:a=$.distance,ignoreLocation:n=$.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 vw(e=[],o=$.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 yw(e,o,t,{location:r=$.location,distance:a=$.distance,threshold:n=$.threshold,findAllMatches:l=$.findAllMatches,minMatchCharLength:f=$.minMatchCharLength,includeMatches:s=$.includeMatches,ignoreLocation:i=$.ignoreLocation}={}){if(o.length>Ct)throw new Error(iw(Ct));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 P=Jn(o,{currentLocation:w,expectedLocation:x,distance:a,ignoreLocation:i});if(I=Math.min(P,I),h=w+m,b){let E=0;for(;E<m;)S[w+E]=1,E+=1}}h=-1;let F=[],B=1,A=m+c,D=1<<m-1;for(let P=0;P<m;P+=1){let E=0,T=A;for(;E<T;)Jn(o,{errors:P,currentLocation:x+T,expectedLocation:x,distance:a,ignoreLocation:i})<=I?E=T:A=T,T=Math.floor((A-E)/2+E);A=T;let W=Math.max(1,x-T+1),V=l?c:Math.min(x+T,c)+m,q=Array(V+2);q[V+1]=(1<<P)-1;for(let Y=V;Y>=W;Y-=1){let ve=Y-1,te=t[e.charAt(ve)];if(b&&(S[ve]=+!!te),q[Y]=(q[Y+1]<<1|1)&te,P&&(q[Y]|=(F[Y+1]|F[Y])<<1|1|F[Y+1]),q[Y]&D&&(B=Jn(o,{errors:P,currentLocation:ve,expectedLocation:x,distance:a,ignoreLocation:i}),B<=I)){if(I=B,h=ve,h<=x)break;W=Math.max(1,2*x-h)}}if(Jn(o,{errors:P+1,currentLocation:x,expectedLocation:x,distance:a,ignoreLocation:i})>I)break;F=q}let O={isMatch:h>=0,score:Math.max(.001,B)};if(b){let P=vw(S,f);P.length?s&&(O.indices=P):O.isMatch=!1}return O}function Sw(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 Gg(e,o){let t=e.match(o);return t?t[1]:null}function _w(e,o={}){return e.split(ww).map(t=>{let r=t.trim().split(Cw).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<Xg;){let m=Wi[i],c=m.isMultiMatch(f);c&&(a.push(new m(c,o)),s=!0)}if(!s)for(i=-1;++i<Xg;){let m=Wi[i],c=m.isSingleMatch(f);if(c){a.push(new m(c,o));break}}}return a})}function Rw(...e){$i.push(...e)}function qi(e,o){for(let t=0,r=$i.length;t<r;t+=1){let a=$i[t];if(a.condition(e,o))return new a(e,o)}return new ol(e,o)}function ob(e,o,{auto:t=!0}={}){let r=a=>{let n=Object.keys(a),l=Bw(a);if(!l&&n.length>1&&!Gi(a))return r(Kg(a));if(Pw(a)){let s=l?a[ji.PATH]:n[0],i=l?a[ji.PATTERN]:a[s];if(!So(i))throw new Error(sw(s));let m={keyId:Li(s),pattern:i};return t&&(m.searcher=qi(i,o)),m}let f={children:[],operator:n[0]};return n.forEach(s=>{let i=a[s];ko(i)&&i.forEach(m=>{f.children.push(r(m))})}),f};return Gi(e)||(e=Kg(e)),r(e)}function Aw(e,{ignoreFieldNorm:o=$.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 Ew(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 Mw(e,o){o.score=e.score}function Tw(e,o,{includeMatches:t=$.includeMatches,includeScore:r=$.includeScore}={}){let a=[];return t&&a.push(Ew),r&&a.push(Mw),e.map(n=>{let{idx:l}=n,f={item:o[l],refIndex:l};return a.length&&a.forEach(s=>{s(n,f)}),f})}var tw,fw,sw,iw,cw,uw,qg,Di,mw,pw,xw,Iw,$,hw,ca,Ct,el,ol,Co,ki,Oi,Ni,Hi,zi,Ui,tl,rl,Wi,Xg,Cw,ww,Fw,Vi,$i,al,ji,Gi,Bw,Pw,Kg,Oo,tb=d(()=>{tw=1/0;fw=\"Incorrect 'index' type\",sw=e=>`Invalid value for key ${e}`,iw=e=>`Pattern length exceeds max of ${e}.`,cw=e=>`Missing ${e} property in key`,uw=e=>`Property 'weight' in key '${e}' must be a positive integer`,qg=Object.prototype.hasOwnProperty,Di=class{constructor(o){this._keys=[],this._keyMap={};let t=0;o.forEach(r=>{let a=Jg(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)}};mw={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},pw={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},xw={location:0,threshold:.6,distance:100},Iw={useExtendedSearch:!1,getFn:dw,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1},$=u(u(u(u({},pw),mw),xw),Iw),hw=/[^ ]+/g;ca=class{constructor({getFn:o=$.getFn,fieldNormWeight:t=$.fieldNormWeight}={}){this.norm=gw(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)||Ti(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(ko(l)){let f=[],s=[{nestedArrIndex:-1,value:l}];for(;s.length;){let{nestedArrIndex:i,value:m}=s.pop();if(Qe(m))if(So(m)&&!Ti(m)){let c={v:m,i,n:this.norm.get(m)};f.push(c)}else ko(m)&&m.forEach((c,x)=>{s.push({nestedArrIndex:x,value:c})})}r.$[n]=f}else if(So(l)&&!Ti(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}}};Ct=32;el=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,ol=class{constructor(o,{location:t=$.location,threshold:r=$.threshold,distance:a=$.distance,includeMatches:n=$.includeMatches,findAllMatches:l=$.findAllMatches,minMatchCharLength:f=$.minMatchCharLength,isCaseSensitive:s=$.isCaseSensitive,ignoreDiacritics:i=$.ignoreDiacritics,ignoreLocation:m=$.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?el(o):o,this.pattern=o,this.chunks=[],!this.pattern.length)return;let c=(I,h)=>{this.chunks.push({pattern:I,alphabet:Sw(I),startIndex:h})},x=this.pattern.length;if(x>Ct){let I=0,h=x%Ct,b=x-h;for(;I<b;)c(this.pattern.substr(I,Ct),I),I+=Ct;if(h){let S=x-Ct;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?el(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:A}=yw(o,b,S,{location:n+w,distance:l,threshold:f,findAllMatches:s,minMatchCharLength:i,includeMatches:a,ignoreLocation:m});F&&(I=!0),x+=B,F&&A&&(c=[...c,...A])});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 Gg(o,this.multiRegex)}static isSingleMatch(o){return Gg(o,this.singleRegex)}search(){}};ki=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]}}},Oi=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]}}},Ni=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]}}},Hi=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]}}},zi=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]}}},Ui=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]}}},tl=class extends Co{constructor(o,{location:t=$.location,threshold:r=$.threshold,distance:a=$.distance,includeMatches:n=$.includeMatches,findAllMatches:l=$.findAllMatches,minMatchCharLength:f=$.minMatchCharLength,isCaseSensitive:s=$.isCaseSensitive,ignoreDiacritics:i=$.ignoreDiacritics,ignoreLocation:m=$.ignoreLocation}={}){super(o),this._bitapSearch=new ol(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)}},rl=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}}},Wi=[ki,rl,Ni,Hi,Ui,zi,Oi,tl],Xg=Wi.length,Cw=/ +(?=(?:[^\\\"]*\\\"[^\\\"]*\\\")*[^\\\"]*$)/,ww=\"|\";Fw=new Set([tl.type,rl.type]),Vi=class{constructor(o,{isCaseSensitive:t=$.isCaseSensitive,ignoreDiacritics:r=$.ignoreDiacritics,includeMatches:a=$.includeMatches,minMatchCharLength:n=$.minMatchCharLength,ignoreLocation:l=$.ignoreLocation,findAllMatches:f=$.findAllMatches,location:s=$.location,threshold:i=$.threshold,distance:m=$.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?el(o):o,this.pattern=o,this.query=_w(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?el(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;Fw.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}}},$i=[];al={AND:\"$and\",OR:\"$or\"},ji={PATH:\"$path\",PATTERN:\"$val\"},Gi=e=>!!(e[al.AND]||e[al.OR]),Bw=e=>!!e[ji.PATH],Pw=e=>!ko(e)&&Zg(e)&&!Gi(e),Kg=e=>({[al.AND]:Object.keys(e).map(o=>({[o]:e[o]}))});Oo=class{constructor(o,t={},r){this.options=u(u({},$),t),this.options.useExtendedSearch,this._keyStore=new Di(this.options.keys),this.setCollection(o,r)}setCollection(o,t){if(this._docs=o,t&&!(t instanceof ca))throw new Error(fw);this._myIndex=t||eb(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 Aw(s,{ignoreFieldNorm:f}),n&&s.sort(l),Yg(t)&&t>-1&&(s=s.slice(0,t)),Tw(s,this._docs,{includeMatches:r,includeScore:a})}_searchStringList(o){let t=qi(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=ob(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===al.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=qi(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(ko(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}};Oo.version=\"7.1.0\";Oo.createIndex=eb;Oo.parseIndex=bw;Oo.config=$;Oo.parseQuery=ob;Rw(Vi)});function J(e){let[o,t]=Xi.default.useState(()=>H.getSetting(e));Xi.default.useEffect(()=>{function a(n){t(n)}return H.on(`${e}.setting:update`,a),()=>{H.off(`${e}.setting:update`,a)}},[e]);function r(a){t(a),H.setSetting(e,a)}return[o,r]}var Xi,Te=d(()=>{\"use strict\";Xi=v(y());ke()});var Ki={};X(Ki,{default:()=>Lw});function Dw(){let[e,o]=J(\"ALWAYS_PRESENT\");return rb.default.createElement(Q,{label:ab,description:nb,checked:e,onChange:()=>o(!e)})}var rb,ab,nb,Lw,lb=d(()=>{\"use strict\";rb=v(y());Te();_e();ab=\"Always Present\",nb=\"Bypass Snapchat's presence detection.\";Lw={name:ab,description:nb,component:Dw}});var Yi={};X(Yi,{default:()=>Hw});function Nw(){let[e,o]=J(\"BITMOJI_PRESENCE\");return lr.default.createElement(Me.Group,{label:fb,value:e,onChange:t=>o(t)},lr.default.createElement(St,null,lr.default.createElement(Me,{value:\"DEFAULT\",label:sb,description:ib}),lr.default.createElement(Me,{value:\"MOBILE\",label:kw,description:Ow}),lr.default.createElement(Me,{value:\"HIDE\",label:cb,description:ub})))}var lr,fb,sb,ib,cb,ub,kw,Ow,Hw,db=d(()=>{\"use strict\";lr=v(y());_e();Te();_o();fb=\"Bitmoji Presence\",sb=\"Default\",ib=\"Do what Snapchat normally does.\",cb=\"Invisible\",ub=\"Hide your bitmoji from chat.\",kw=\"Mobile\",Ow=\"Appear as if you are on mobile.\";Hw={name:[fb,sb,cb],description:[ib,ub],component:Nw}});var Zi={};X(Zi,{default:()=>Vw});function Ww(){let[e,o]=J(\"CHAT_HANDLING\");return ua.default.createElement(Me.Group,{label:mb,value:e,onChange:t=>o(t)},ua.default.createElement(St,null,ua.default.createElement(Me,{value:\"DEFAULT\",label:pb,description:xb}),ua.default.createElement(Me,{value:\"AUTO_SAVE\",label:Ib,description:hb})))}var ua,mb,pb,xb,Ib,hb,zw,Uw,Vw,gb=d(()=>{\"use strict\";ua=v(y());_e();Te();_o();mb=\"Message Handling\",pb=\"Default\",xb=\"Do what Snapchat normally does.\",Ib=\"Auto-Save Messages\",hb=\"Automatically save all messages to your history.\",zw=\"Unread\",Uw=\"Prevent others from knowing you read their message.\";Vw={name:[mb,pb,Ib,zw],description:[xb,hb,Uw],component:Ww}});var Qi={};X(Qi,{default:()=>qw});function $w(){let[e,o]=J(\"ALLOW_CROSS_TAB\");return bb.default.createElement(Q,{label:vb,description:yb,checked:e,onChange:()=>o(!e)})}var bb,vb,yb,qw,Sb=d(()=>{\"use strict\";bb=v(y());Te();_e();vb=\"Multiple Snapchat Tabs\",yb=\"Allow multiple tabs of Snapchat to be open at once.\";qw={name:vb,description:yb,component:$w}});var Ji={};X(Ji,{default:()=>Gw});function jw(){let[e,o]=J(\"SAVE_IMAGE\");return Cb.default.createElement(Q,{label:wb,description:_b,checked:e,onChange:()=>o(!e)})}var Cb,wb,_b,Gw,Fb=d(()=>{\"use strict\";Cb=v(y());Te();_e();wb=\"Media Saving\",_b=\"Enable right-click saving of images and videos.\";Gw={name:wb,description:_b,component:jw}});var oc={};X(oc,{default:()=>Kw});function Xw(){let[e,o]=J(\"HALF_SWIPE_NOTIFICATION\"),t=ec.default.useCallback(async r=>{r&&Notification.permission!==\"granted\"&&await Notification.requestPermission(),o(r)},[o]);return ec.default.createElement(Q,{label:Rb,description:Bb,checked:e,onChange:()=>t(!e)})}var ec,Rb,Bb,Kw,Pb=d(()=>{\"use strict\";ec=v(y());Te();_e();Rb=\"Peeking Notification\",Bb=\"Receive a notification when someone is peeking at a conversation.\";Kw={name:Rb,description:Bb,component:Xw}});var tc={};X(tc,{default:()=>Zw});function Yw(){let[e,o]=J(\"PRESENCE_LOGGING\");return Ab.default.createElement(Q,{label:Eb,description:Mb,checked:e,onChange:()=>o(!e)})}var Ab,Eb,Mb,Zw,Tb=d(()=>{\"use strict\";Ab=v(y());Te();_e();Eb=\"Presence Logging\",Mb=\"Log presence changes to the dev-console.\";Zw={name:Eb,description:Mb,component:Yw}});var rc={};X(rc,{default:()=>Jw});function Qw(){let[e,o]=J(\"ALLOW_SCREENSHOT\");return Db.default.createElement(Q,{label:Lb,description:kb,checked:e,onChange:()=>o(!e)})}var Db,Lb,kb,Jw,Ob=d(()=>{\"use strict\";Db=v(y());Te();_e();Lb=\"Screenshots\",kb=\"Bypass Snapchat's screenshot detection.\";Jw={name:Lb,description:kb,component:Qw}});var ac={};X(ac,{default:()=>o_});function e_(){let[e,o]=J(\"SNAP_AS_MOBILE\");return Nb.default.createElement(Q,{label:Hb,description:zb,checked:e,onChange:()=>o(!e)})}var Nb,Hb,zb,o_,Ub=d(()=>{\"use strict\";Nb=v(y());Te();_e();Hb=\"Send Snaps as Mobile\",zb=\"Snaps sent will appear sent from Mobile.\";o_={name:Hb,description:zb,component:e_}});var nc={};X(nc,{default:()=>r_});function t_(){let[e,o]=J(\"SEND_UNSAVEABLE_MESSAGES\");return Wb.default.createElement(Q,{label:Vb,description:$b,checked:e,onChange:()=>o(!e)})}var Wb,Vb,$b,r_,qb=d(()=>{\"use strict\";Wb=v(y());Te();_e();Vb=\"Send Messages as Unsaveable\",$b=\"Chats and Snaps will be sent as unsaveable.\";r_={name:Vb,description:$b,component:t_}});var lc={};X(lc,{default:()=>n_});function a_(){let[e,o]=J(\"PREVENT_STORY_READ_RECEIPTS\");return jb.default.createElement(Q,{label:Gb,description:Xb,checked:!e,onChange:()=>o(!e)})}var jb,Gb,Xb,n_,Kb=d(()=>{\"use strict\";jb=v(y());Te();_e();Gb=\"Story View-Receipts\",Xb=\"Let others know you have viewed their story.\";n_={name:Gb,description:Xb,component:a_}});var fc={};X(fc,{default:()=>f_});function l_(){let[e,o]=J(\"PREVENT_TYPING\"),[t]=J(\"HIDE_BITMOJI\");return Yb.default.createElement(Q,{disabled:t,label:Zb,description:Qb,checked:!e,onChange:()=>o(!e)})}var Yb,Zb,Qb,f_,Jb=d(()=>{\"use strict\";Yb=v(y());Te();_e();Zb=\"Actively Typing Animation\",Qb=\"Let others know when you are typing.\";f_={name:Zb,description:Qb,component:l_}});var sc={};X(sc,{default:()=>i_});function s_(){let[e,o]=J(\"PREVENT_TYPING_NOTIFICATION\");return ev.default.createElement(Q,{label:ov,description:tv,checked:!e,onChange:()=>o(!e)})}var ev,ov,tv,i_,rv=d(()=>{\"use strict\";ev=v(y());Te();_e();ov=\"Started Typing Notification\",tv=\"Let others know when you are typing by push-notification.\";i_={name:ov,description:tv,component:s_}});var ic={};X(ic,{default:()=>u_});function c_(){let[e,o]=J(\"UNLIMITED_FILE_SIZE\");return av.default.createElement(Q,{label:nv,description:lv,checked:e,onChange:()=>o(!e)})}var av,nv,lv,u_,fv=d(()=>{\"use strict\";av=v(y());Te();_e();nv=\"Unrestricted Files\",lv=\"Enable sending media of any size.\";u_={name:nv,description:lv,component:c_}});var cc={};X(cc,{default:()=>m_});function d_(){let[e,o]=J(\"UPLOAD_SNAPS\");return sv.default.createElement(Q,{label:iv,description:cv,checked:e,onChange:()=>o(!e)})}var sv,iv,cv,m_,uv=d(()=>{\"use strict\";sv=v(y());Te();_e();iv=\"Upload Images as Snaps\",cv=\"Uploaded images will be sent as snaps.\";m_={name:iv,description:cv,component:d_}});var uc={};X(uc,{default:()=>x_});function p_(){let[e,o]=J(\"PRIVATE_STORIES\");return dv.default.createElement(Q,{label:mv,description:pv,checked:e,onChange:()=>o(!e)})}var dv,mv,pv,x_,xv=d(()=>{\"use strict\";dv=v(y());Te();_e();mv=\"Private Stories\",pv=\"Interact with private stories on web.\";x_={name:mv,description:pv,component:p_}});var dc={};X(dc,{default:()=>h_,filenames:()=>g_});var I_,h_,g_,Iv=d(()=>{lb();db();gb();Sb();Fb();Pb();Tb();Ob();Ub();qb();Kb();Jb();rv();fv();uv();xv();I_=[Ki,Yi,Zi,Qi,Ji,oc,tc,rc,ac,nc,lc,fc,sc,ic,cc,uc],h_=I_,g_=[\"./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/StoryReadReceipt.tsx\",\"./settings/TypingAnimation.tsx\",\"./settings/TypingNotification.tsx\",\"./settings/UnlimitedFileSize.tsx\",\"./settings/UploadImageSnaps.tsx\",\"./settings/ViewPrivateStories.tsx\"]});function y_(r,t){var a=r,{children:e}=a,o=C(a,[\"children\"]);return nl.default.createElement(un,u({defaultColorScheme:\"light\",colorSchemeManager:v_,theme:b_,cssVariablesSelector:\":host > main\",withGlobalClasses:!1,withCssVariables:!0},o),nl.default.createElement(\"main\",{ref:t},e))}var nl,hv,Zo,b_,v_,gv,bv=d(()=>{\"use strict\";nl=v(y());_e();co();hv=Oe(),b_={primaryColor:\"indigo\",cursorType:\"pointer\",components:{Radio:Me.extend({defaultProps:{size:\"md\"}}),Switch:Q.extend({defaultProps:{size:\"md\"},styles:()=>({body:{alignItems:\"center\",gap:4},track:{\"--switch-width\":\"40px\"}})}),InputWrapper:vt.extend({styles:()=>({label:{marginBottom:16}})}),Modal:qe.extend({styles:()=>({body:{display:\"flex\",flexDirection:\"column\",gap:20,padding:20},content:{borderRadius:12,borderWidth:1,borderStyle:\"solid\",borderColor:\"var(--mantine-color-gray-light)\"}})})}},v_={set:()=>{},get:()=>{let e=hv.getState().localSettings.appTheme;return e===\"system\"?\"dark\":e},subscribe:e=>{Zo==null||Zo(),Zo=hv.subscribe((o,t)=>{o.localSettings.appTheme!==t.localSettings.appTheme&&(o.localSettings.appTheme===\"system\"?e(\"dark\"):e(o.localSettings.appTheme))})},unsubscribe:()=>{Zo==null||Zo(),Zo=void 0},clear:()=>{}};gv=nl.default.forwardRef(y_)});function C_({search:e}){let o=ne.default.useMemo(()=>new Oo(vv,{keys:[\"name\",\"description\"]}),[]),t=ne.default.useMemo(()=>e.length>0?o.search(e).map(r=>r.item):vv,[e,o]);return ne.default.createElement(\"div\",{className:\"modalSettings\"},e.length>0&&t.length===0?ne.default.createElement(Ko,{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 ne.default.createElement(a,{key:n})}),e.length===0?ne.default.createElement(oa,{className:\"resetButton\",component:\"button\",onClick:()=>H.setSettings(ur)},\"Reset Settings\"):null)}function w_({onClose:e,search:o,setSearch:t}){return ne.default.createElement(\"div\",{className:\"modalSection\"},ne.default.createElement(To,{size:\"lg\",className:\"iconButton\",variant:\"filled\",component:\"a\",href:ml.BUY_ME_A_COFFEE},ne.default.createElement(Zn,{size:18})),ne.default.createElement(It,{active:!0},ne.default.createElement(we,{variant:\"default\",size:\"sm\",autoFocus:!0,placeholder:\"Search settings\",leftSection:ne.default.createElement(Pi,{size:16}),value:o,onChange:r=>t(r.currentTarget.value)})),ne.default.createElement(To,{size:\"md\",color:\"gray\",variant:\"transparent\",onClick:e,className:\"closeButton\"},ne.default.createElement(Ai,null)))}function __({isOpen:e,onClose:o,portalTarget:t}){let[r,a]=ne.default.useState(\"\");return ne.default.createElement(qe,{withCloseButton:!1,opened:e,onClose:o,centered:!0,size:\"lg\",lockScroll:!1,portalProps:{target:t}},ne.default.createElement(w_,{onClose:o,search:r,setSearch:a}),ne.default.createElement(C_,{search:r}),ne.default.createElement(\"div\",{className:\"modalSection\"},ne.default.createElement(yt,{leftSection:ne.default.createElement(Mi,{size:18}),variant:\"light\",component:\"a\",href:ml.DISCORD},\"Join our Discord\"),ne.default.createElement(Ko,{className:\"footerText\"},\"BetterSnap v\",\"1.4.2\",\" \\u2764\\uFE0F\")))}function F_(){let[e,{toggle:o,close:t}]=es(!1),r=ne.default.useRef(null);return ne.default.createElement(gv,{ref:r,getRootElement:()=>r.current},ne.default.createElement(To,{size:\"xl\",className:\"settingsButton\",variant:\"filled\",onClick:o},ne.default.createElement(Zn,{size:18})),ne.default.createElement(__,{isOpen:e,onClose:t,portalTarget:r.current}))}var ne,S_,vv,yv,Sv=d(()=>{\"use strict\";ne=v(y());_e();Ng();Vg();$g();tb();Iv();_o();ke();bv();Ie();({default:S_}=dc),vv=S_.map(({default:e})=>e);yv=F_});var Cv,wv=d(()=>{Cv=\".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 _v,Fv=d(()=>{_v=\".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 Rv,Bv=d(()=>{Rv=\".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 Pv,Av=d(()=>{Pv=\".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 Ev,Mv=d(()=>{Ev=\".m_8bffd616{display:flex}\"});var Tv,Dv=d(()=>{Tv=\".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 Lv,kv=d(()=>{Lv=\".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 Ov,Nv=d(()=>{Ov=\".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 Hv,zv=d(()=>{Hv='.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 Uv,Wv=d(()=>{Uv=\".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 Vv,$v=d(()=>{Vv=\".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 qv,jv=d(()=>{qv=\".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 Gv,Xv=d(()=>{Gv='.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 Kv,Yv=d(()=>{Kv=\".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 Zv,Qv=d(()=>{\"use strict\";Zv=\":host{font-family:Inter,sans-serif}.settingsButton{z-index:9999;position:fixed;top:50%;right:0}.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{margin:0 0 0 auto}.emptySettings{margin:0}.resetButton{text-align:left;margin:0}\"});var Jv,ey=d(()=>{\"use strict\";wv();Fv();Bv();Av();Mv();Dv();kv();Nv();zv();Wv();$v();jv();Xv();Yv();Qv();Jv=[Cv,_v,Rv,Pv,Ev,Tv,Lv,Ov,Hv,Uv,Vv,qv,Gv,Kv,Zv]});var xc={};X(xc,{default:()=>R_});var oy,ll,mc,pc,R_,ty=d(()=>{\"use strict\";Bt();Ke();Gu();Sv();ey();oy=ju(),ll=null,mc=class extends HTMLElement{constructor(){super()}};customElements.define(oy,mc);pc=class extends le{constructor(){super(\"Settings Menu\")}load(){if(ll!=null)return;ll=document.createElement(oy);let o=ll.attachShadow({mode:\"closed\"});for(let t of Jv){let r=new CSSStyleSheet;r.replaceSync(t),o.adoptedStyleSheets.push(r)}document.documentElement.appendChild(ll),ka(La(yv,{}),o)}},R_=new pc});var Ic={};X(Ic,{default:()=>P_,filenames:()=>A_});var B_,P_,A_,hc=d(()=>{nu();fu();cu();du();mu();pu();gu();bu();Cu();_u();Fu();ty();B_=[Rl,Al,Ml,Ll,Nl,zl,Wl,ql,Xl,Ql,ef,xc],P_=B_,A_=[\"./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\"]});var io,da=d(()=>{\"use strict\";ir();io=class{constructor(o){this.name=o;try{this.patch(),wo(`Patched: ${this.name}`)}catch(t){Ia(`Error loading patch ${this.name}:`,t)}}patch(){throw new Error(\"load() method must be implemented in subclass\")}}});var bc={};X(bc,{default:()=>E_});var ry,gc,E_,ay=d(()=>{\"use strict\";da();ke();ry=\"cross_tab\",gc=class extends io{constructor(){super(\"Cross-Tab Broadcast Channel\")}patch(){let o=window.BroadcastChannel;window.BroadcastChannel=class extends window.BroadcastChannel{constructor(r){super(r),r===ry&&(window.BroadcastChannel=o)}addEventListener(r,a){return this.name!==ry?super.addEventListener(r,a):super.addEventListener(r,n=>{H.getSetting(\"ALLOW_CROSS_TAB\")&&n.data.type===\"CLAIM_ACTIVE\"||a(n)})}}}},E_=new gc});var yc={};X(yc,{default:()=>M_});var ny,vc,M_,ly=d(()=>{\"use strict\";da();ny=[\"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36\",\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36\"],vc=class extends io{constructor(){super(\"User Agent\")}patch(){let o=ny[Math.floor(Math.random()*ny.length)];Object.defineProperty(Navigator.prototype,\"userAgent\",{get:()=>o})}},M_=new vc});var Cc={};X(Cc,{default:()=>T_});var Sc,T_,fy=d(()=>{\"use strict\";da();Sc=class extends io{constructor(){super(\"User Media Permissions\")}patch(){var t,r;if(!(\"permissions\"in navigator)||typeof navigator.permissions.query!=\"function\"||!navigator.userAgent.toLowerCase().includes(\"firefox\"))return;navigator.getUserMedia=(r=(t=navigator.getUserMedia)!=null?t:navigator.webkitGetUserMedia)!=null?r:navigator.mozGetUserMedia;function o(){return new Promise(a=>{navigator.getUserMedia({audio:!0,video:!0},()=>a({state:\"granted\"}),()=>a({state:\"denied\"}))})}navigator.permissions.query=new Proxy(navigator.permissions.query,{apply:async(a,n,l)=>{let[f]=l;return f.name===\"camera\"||f.name===\"microphone\"?o():a.apply(n,l)}})}},T_=new Sc});var _c={};X(_c,{default:()=>L_});var D_,wc,L_,sy=d(()=>{\"use strict\";da();ke();D_=/\\/readreceipt-indexer\\/batchuploadreadreceipts/,wc=class extends io{constructor(){super(\"Window Fetch\")}patch(){window.fetch=new Proxy(window.fetch,{apply(o,t,[r,...a]){return H.getSetting(\"PREVENT_STORY_READ_RECEIPTS\")&&D_.test(r.url)?new Promise(n=>n(new Response(null,{status:200}))):Reflect.apply(o,t,[r,...a])}})}},L_=new wc});var iy={};X(iy,{default:()=>O_,filenames:()=>N_});var k_,O_,N_,cy=d(()=>{ay();ly();fy();sy();k_=[bc,yc,Cc,_c],O_=k_,N_=[\"./patches/cross-tab-broadcast-channel.ts\",\"./patches/user-agent.ts\",\"./patches/user-media-permissions.ts\",\"./patches/window-fetch.ts\"]});ir();(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\")||(wo(\"BetterSnap v1.4.2\"),document.readyState===\"complete\"?(Ec(\"BetterSnap did not inject immediately, page was already loaded.\"),Promise.resolve().then(()=>(hc(),Ic))):(Promise.resolve().then(()=>cy()),document.addEventListener(\"DOMContentLoaded\",()=>Promise.resolve().then(()=>(hc(),Ic)),{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/tabler-icons-react.mjs:\n (**\n * @license @tabler/icons-react v3.31.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"
});